CN110381171A - Remote cluster networking divides chucking method and relevant device - Google Patents
Remote cluster networking divides chucking method and relevant device Download PDFInfo
- Publication number
- CN110381171A CN110381171A CN201910505719.3A CN201910505719A CN110381171A CN 110381171 A CN110381171 A CN 110381171A CN 201910505719 A CN201910505719 A CN 201910505719A CN 110381171 A CN110381171 A CN 110381171A
- Authority
- CN
- China
- Prior art keywords
- card
- pool
- cat
- cat pool
- cards
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 32
- 230000006855 networking Effects 0.000 title claims abstract description 26
- 241000282326 Felis catus Species 0.000 claims abstract description 91
- 238000004891 communication Methods 0.000 claims description 13
- 230000005540 biological transmission Effects 0.000 abstract description 2
- 238000012216 screening Methods 0.000 abstract description 2
- 238000000926 separation method Methods 0.000 description 8
- 230000009286 beneficial effect Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 239000008186 active pharmaceutical agent Substances 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012856 packing Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of networkings of remote cluster to divide chucking method and relevant device, this method comprises: after receiving point card request of cat pond transmission, the cat pond is given according to a point card strategy point card from card card to be divided pond, wherein should be completely used for distributing to any cat pond to a point card of card Ka Chi.The present invention point card from card card to be divided pond gives cat pond, compared to point card from card pond, reduces the card screening range of point card, is conducive to improve and divides card efficiency.The present invention is widely used in remote cluster networking point card.
Description
Technical Field
The invention relates to the technical field of communication, in particular to a remote cluster networking card distribution method and related equipment.
Background
A cat pool: the Chinese name of Modem POOL is a device which connects a plurality of Modem together by using special dialing request access equipment and can accept dialing connection of a plurality of users at the same time. The cat pool can be considered as a special terminal whose main functions are to log in to the server, request a card extension for making a call. One development direction of the remote cluster networking sub-card is as follows: how to improve the efficiency of remote cluster networking card distribution.
cmdUtils: a user control class. The access server establishes a cache object for each user, and the cache object is used for storing user basic information, tcp link information, request information and the like.
Redis: an open source (BSD licensed) data structure storage system written in ANSI C language, supporting networks, in-memory, can be used as database, cache and message middleware, supporting multiple types of data mechanisms, and providing multiple languages of APIs.
proto protocol: protobuf is a tool library developed by google for coding and decoding protocols during data storage and network communication. It is comparable to XML and Json data, and stores the data in some form. Protobuf differs from XML and Json in that it is a binary data format with higher transmission, packing and unpacking efficiency.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art. Therefore, an object of the present invention is to provide a remote cluster networking card distribution method and related devices, so as to improve the efficiency of remote cluster networking card distribution.
The technical scheme adopted by the invention is as follows:
in a first aspect, the present invention provides a remote cluster networking card distribution method, including: after receiving a card distribution request sent by a cat pool, distributing cards to the cat pool according to a card distribution strategy from a card pool to be distributed, wherein all cards of the card pool to be distributed are used for being distributed to any cat pool.
Before receiving a card distribution request sent by a cat pool, the method comprises the following steps: receiving a communication connection establishment request sent by the cat pool; after communication connection is established with the cat pool, receiving at least one login connection request sent by the cat pool; and after receiving at least one login connection request, receiving a card distribution request sent by a login request user of the cat pool.
Before card separation, verifying whether the card separation request is legal or not comprises the following steps: verifying whether the information of the login user is correct or not; if the information of the login user is correct, judging whether the login user logs in; if the login user logs in, judging whether the login user belongs to a cat pool user or not; and if the login user belongs to the cat pool user, judging that the card distribution request is legal.
Wherein, according to the card distribution strategy, after the card is distributed to the cat pool from the card pool to be distributed, the method further comprises the following steps: if the cat pool does not acquire the card mirror image, after receiving a card mirror image acquisition request sent by the cat pool, searching the card mirror image from a database, and sending the card mirror image to the cat pool; wherein the database stores mirror images of all cards of the card pool.
And the cards in the card pool to be sorted are scored and sorted according to a specific quality standard, and the card with the highest score is firstly sorted out.
In a second aspect, the invention provides a remote cluster networking card distribution device, which includes a card distribution module, configured to distribute cards from a card pool to be distributed to a cat pool after receiving a card distribution request sent by the cat pool, where all cards in the card pool to be distributed are used for being distributed to any cat pool.
In a third aspect, the present invention provides a computer-readable storage medium having stored thereon computer-executable instructions for causing a computer to perform the method as described above.
In a fourth aspect, the present invention provides a server, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being capable of performing the method as described above.
In a fifth aspect, the invention provides a cat pool for requesting credit cards from a server as described above.
In a sixth aspect, the invention provides a remote cluster networking card distribution system, which includes the server as described above and the cat pool as described above.
The invention has the beneficial effects that:
the invention distributes the cards from the card pool to be distributed to the cat pool, and compared with distributing the cards from the card pool, the invention reduces the card screening range of the card distribution and is beneficial to improving the card distribution efficiency.
Furthermore, the cards in the card pool to be sorted are scored and sorted according to a specific quality standard, and the card with the highest score is firstly sorted out. Therefore, the card distributing efficiency can be further improved, and the cards distributed in the cat pool are guaranteed to be high-quality cards.
Furthermore, the invention also supports a plurality of users to divide the card at the same time.
In addition, whether the card distribution request is legal or not is verified before the card distribution, and the safety of the card distribution is guaranteed.
In addition, the invention also has a card mirror image backup function, if the card mirror image data is failed to be sent to the cat pool, the card mirror image is supported to be sent to the cat pool, and the card mirror image backup method is beneficial to improving the efficiency of obtaining the card splitting data.
Drawings
FIG. 1 is a schematic flowchart of an embodiment of a remote cluster networking card distribution method according to the present invention;
FIG. 2 is a flowchart illustrating an embodiment of step S11 of FIG. 1;
fig. 3 is a schematic structural diagram of an embodiment of a remote cluster networking card distribution device of the present invention;
fig. 4 is a schematic structural diagram of an embodiment of the remote cluster networking card distribution system of the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
The first embodiment is as follows:
referring to fig. 1, fig. 1 is a schematic flowchart illustrating a remote cluster networking card distribution method according to an embodiment of the present invention. As shown in fig. 1, the method comprises the steps of:
s11: after receiving a card distribution request sent by a cat pool, verifying whether the card distribution request is legal or not;
wherein, before step S11, the method comprises the following steps: receiving a communication connection establishment request sent by the cat pool; and after communication connection is established with the cat pool, a login connection request sent by the cat pool is received. The steps before step S11 are described in detail below:
the first step is to receive a request for establishing communication connection sent by a cat pool. The cat pool establishes socket connection with the server by adopting a TCP protocol, and is commonly called long connection. Optionally, one cat pool has multiple login accounts, for example, one cat pool is configured with 8 accounts (users), and each account creates a socket connection. The server allocates an object cmdUtils for each user, the object cmdUtils is placed in the redis, and all information such as basic information, socket connection, current state, request content and the like of the user are stored in the cmdUtils object.
And secondly, receiving an account login request sent by the cat pool. After the cat pool is linked with the server, each built-in account sends a login request to the server and sends the login request according to the proto protocol format, the server judges the uniqueness of the terminal user, after the login is successful, the server stores data, changes the state into 'logged-in', and returns a login result to the cat pool. If the login fails, the server alarms and the result is also returned to the cat pool.
Specifically, referring to fig. 2, the verification method of fig. 2 includes the following steps:
s111: verifying whether the information of the login user is correct or not;
optionally, it is verified whether the user name and the login password of the login user match, and whether the user name meets the predetermined requirements, such as whether the length is legal and specific characters are included.
If the information of the user is correct, executing step S112; otherwise, the step S11 is exited, and a new card distribution request is received.
S112: judging whether the login user logs in;
if the login user has logged in, executing step S113; otherwise, the step S11 is exited, and a new card distribution request is received.
S113: judging whether the login user belongs to a cat pool user or not;
in step S114, for example, by determining whether the beginning of the user name is "MP", if yes, it is determined that the user belongs to the cat pool, and step S114 is executed; otherwise, the step S11 is exited, and a new card distribution request is received.
S114: and judging that the card distribution request is legal.
In step S11, if the cat pool receives a login failure, the cat pool can log in repeatedly, and after multiple failures, the cat pool is suspended and does not log in any more, and the operation and maintenance staff are waited to process the login; if the cat pool login is successful, step S12 is executed.
S12: and if the card distribution request is legal, distributing the card from the card pool to be distributed to the cat pool according to the card distribution strategy.
In step S12, all cards of the card pool to be divided are used for assignment to any cat pool. Specifically, each card has an attribute-belonging group, by which it can be determined whether the card belongs to the cards of the cat pool group, and if so, the cards can be assigned to the cat pool for use, otherwise, the cards cannot be assigned to the cat pool. That is, all cards in the server card pool are filtered through the pre-separation cards, and the cards distributed to the cat pool are stored in the card pool to be separated. It should be noted that any change of each card triggers the pre-card-sorting logic, and then determines whether the card is stored in the card pool to be sorted.
And the cards in the card pool to be sorted are scored and sorted according to a specific quality standard, and the card with the highest score is firstly sorted. For example, the initial score of each card in the card pool to be divided is 100, the scores of the cards are changed due to abnormality, alarm, package, signal strength and the like, and the default allocation of the card with the highest quality score to the user is equivalent to always providing the user with the best quality card for use.
Preferably, after step S12, the method further comprises the steps of: if the cat pool does not obtain the card mirror image, after a card mirror image obtaining request sent by the cat pool is received, searching the card mirror image from a database and sending the card mirror image to the cat pool. Specifically, the cat pool sends a request for obtaining a card mirror image, similar to the request for sending a card splitting request, after the server receives the request for obtaining the card mirror image, the server searches the database for the mirror image of the card to the cat pool, and if the mirror image does not exist, the server returns to null. When the card mirror image is reported from the card pool, the card data corresponding to the card is reported to the server and stored in the database, namely, the database stores the mirror images of all the cards in the card pool.
It can be understood that, if there are multiple login users in the cat pool sending card splitting requests to the server at the same time, the server performs all the steps described in the first embodiment to the multiple login users at the same time.
In other embodiments, if the card separation request must be secure or request card separation for a specific user, step S11 may be omitted, i.e. it is not necessary to verify whether the card separation request is legitimate.
Example two:
referring to fig. 3, fig. 3 is a schematic structural diagram of a remote cluster networking card distribution device according to an embodiment of the present invention. As shown in fig. 3, the apparatus includes:
a module 31 for receiving a request of establishing communication connection, configured to receive a request of establishing communication connection sent by the cat pool.
A login request receiving module 32, configured to receive at least one login connection request sent by the cat pool after establishing a communication connection with the cat pool.
The card separation request receiving module 33 receives the card separation request sent by the login requesting user in the cat pool after receiving the at least one login connection request.
And the card distribution request verifying module 34 is configured to verify whether the card distribution request is legal or not after receiving the card distribution request sent by the cat pool.
And the card distribution module 35 is configured to distribute the cards from the card pool to be distributed to the cat pool if the card distribution request is legal.
And a card mirror image sending module 36, configured to, if the cat pool does not obtain a card mirror image, after receiving a card mirror image obtaining request sent by the cat pool, search the card mirror image from the database, and send the card mirror image to the cat pool.
Specifically, please refer to the method described in the embodiment for the working method of each module of the apparatus, which is not described herein again. In other embodiments, only the card distribution module 35 may be configured, or a combination of the card distribution module 35 and other modules may be configured according to actual situations.
Example three:
the present invention provides a computer-readable storage medium having stored thereon computer-executable instructions for causing a computer to perform the method of embodiment one.
Example four:
referring to fig. 4, fig. 4 is a schematic structural diagram of a remote cluster networking card distribution system according to an embodiment of the present invention. As shown in fig. 4, the remote cluster networked card distribution system includes a plurality of cat pools 41 and a server 42. The cat pool 41 and the server 42 communicate by wired or wireless communication.
Among them, the server 42 includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being capable of performing the method of embodiment one.
The cat pool 41 is used for requesting the server 42 for the sub-card. Each cat pool 41 has multiple users and can request separate cards from the server at the same time.
In summary, the remote cluster networking card distribution method and the related device provided by the invention are beneficial to improving the card distribution efficiency.
While the preferred embodiments of the present invention have been illustrated and described, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (10)
1. A remote cluster networking card distribution method is characterized by comprising the following steps:
after a card distribution request sent by a cat pool is received, distributing cards from a card pool to be distributed to the cat pool, wherein all cards in the card pool to be distributed are used for being distributed to any cat pool.
2. The remote cluster networking card distribution method according to claim 1, wherein before receiving the card distribution request sent by the cat pool, the method comprises:
receiving a communication connection establishment request sent by the cat pool;
after communication connection is established with the cat pool, receiving at least one login connection request sent by the cat pool;
and after receiving at least one login connection request, receiving a card distribution request sent by a login request user of the cat pool.
3. The remote cluster networking card distribution method according to claim 1, wherein verifying whether the card distribution request is legal before card distribution comprises:
verifying whether the information of the login user is correct or not;
if the information of the login user is correct, judging whether the login user logs in;
if the login user logs in, judging whether the login user belongs to a cat pool user or not;
and if the login user belongs to the cat pool user, judging that the card distribution request is legal.
4. The remote cluster networking card distribution method according to claim 1, further comprising, after distributing the cards from the card pool to be distributed to the cat pool:
if the cat pool does not acquire the card mirror image, after receiving a card mirror image acquisition request sent by the cat pool, searching the card mirror image from a database, and sending the card mirror image to the cat pool; wherein the database stores mirror images of all cards in the card pool.
5. The remote cluster networking card distribution method according to any one of claims 1 to 4, wherein the cards in the card pool to be distributed are scored and sorted according to a specific quality standard, and the card with the highest score is distributed first.
6. A remote cluster networking card distribution device, comprising:
and the card distributing module is used for distributing cards from the card pool to be distributed to the cat pool after receiving a card distributing request sent by the cat pool, wherein all cards in the card pool to be distributed are used for being distributed to any cat pool.
7. A computer-readable storage medium having stored thereon computer-executable instructions for causing a computer to perform the method of any one of claims 1 to 5.
8. A server, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor, the instructions being capable of performing the method of any one of claims 1 to 5.
9. A cat pool for requesting credit cards from the server of claim 8.
10. A remote cluster networking card distribution system comprising the server of claim 8 and the cat pool of claim 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910505719.3A CN110381171B (en) | 2019-06-12 | 2019-06-12 | Remote cluster networking card distribution method and related equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910505719.3A CN110381171B (en) | 2019-06-12 | 2019-06-12 | Remote cluster networking card distribution method and related equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110381171A true CN110381171A (en) | 2019-10-25 |
CN110381171B CN110381171B (en) | 2022-05-03 |
Family
ID=68250145
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910505719.3A Active CN110381171B (en) | 2019-06-12 | 2019-06-12 | Remote cluster networking card distribution method and related equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110381171B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2000074327A1 (en) * | 1999-05-27 | 2000-12-07 | Helsingin Puhelin Oyj | Method for establishing connections to a data network |
CN105072602A (en) * | 2015-07-14 | 2015-11-18 | 深圳市斯凯荣科技有限公司 | SIM/USIM distribution system, and card distribution, card release and card switching methods thereof |
CN105554728A (en) * | 2015-12-10 | 2016-05-04 | 深圳市迪讯飞科技有限公司 | Cloud SIM card pool system |
CN107071070A (en) * | 2017-06-15 | 2017-08-18 | 北京号码生活网络科技有限公司 | A kind of P2P mobile communication networks based on shared radio frequency resource |
CN108768427A (en) * | 2018-04-03 | 2018-11-06 | 李珉玮 | Controller and its communication means, system |
CN108924820A (en) * | 2018-07-26 | 2018-11-30 | 北京小米移动软件有限公司 | Shared SIM card implementation method, device, equipment and storage medium |
-
2019
- 2019-06-12 CN CN201910505719.3A patent/CN110381171B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2000074327A1 (en) * | 1999-05-27 | 2000-12-07 | Helsingin Puhelin Oyj | Method for establishing connections to a data network |
CN105072602A (en) * | 2015-07-14 | 2015-11-18 | 深圳市斯凯荣科技有限公司 | SIM/USIM distribution system, and card distribution, card release and card switching methods thereof |
CN105554728A (en) * | 2015-12-10 | 2016-05-04 | 深圳市迪讯飞科技有限公司 | Cloud SIM card pool system |
CN107071070A (en) * | 2017-06-15 | 2017-08-18 | 北京号码生活网络科技有限公司 | A kind of P2P mobile communication networks based on shared radio frequency resource |
CN108768427A (en) * | 2018-04-03 | 2018-11-06 | 李珉玮 | Controller and its communication means, system |
CN108924820A (en) * | 2018-07-26 | 2018-11-30 | 北京小米移动软件有限公司 | Shared SIM card implementation method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110381171B (en) | 2022-05-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11647009B2 (en) | Access request conversion method and apparatus | |
US6665674B1 (en) | Framework for open directory operation extensibility | |
US20170163479A1 (en) | Method, Device and System of Renewing Terminal Configuration In a Memcached System | |
US20170163478A1 (en) | Method,electronic device and system for updating client configuration in key-value pair database | |
CN109451032B (en) | Message transmission system | |
EP2458811B1 (en) | Method, apparatus and system for processing user identity information in gigabit passive optical network system | |
CN114338827A (en) | Internet of things protocol adaptation gateway, method and readable storage medium | |
CN110796545A (en) | Batch processing method, equipment and storage medium for blockchain transaction | |
CN109819023B (en) | Distributed transaction processing method and related product | |
CN101908967B (en) | Configuration method and system of Linux virtual server | |
CN110381171B (en) | Remote cluster networking card distribution method and related equipment | |
CN111158716B (en) | Version upgrade calling method and device, computer system and readable storage medium | |
CN111371787B (en) | Login registration method, device, system, server and medium for middle station service | |
CN111159141A (en) | Decentralized distributed data synchronization method, distributed node and system | |
CN102981811A (en) | Processing method and device of user option data | |
CN114499951B (en) | Identity authentication information cracking method and device and electronic equipment | |
CN103248668B (en) | Method, device and system for negotiating virtual desktop service parameters | |
US9182989B1 (en) | System and method for receiving services provided by distributed systems | |
CN112861004B (en) | Method and device for determining rich media | |
CN112486699B (en) | Session management middleware, system and operation method based on domestic database | |
CN111010676B (en) | Short message caching method, device and system | |
CN113347234A (en) | Network information acquisition method, device, system, computer equipment and storage medium | |
CN106484666B (en) | Big data splitting and assembling method, device and public message management system | |
JP2002373149A (en) | Simultaneous access method, request processing server, proxy server, client terminal, simultaneous access control program and storage medium having the same program stored thereon | |
CN117156474B (en) | Remote intelligent operation and maintenance system and operation and maintenance method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 518000 401, building B, No. 2, lanshui Industrial Zone, Longxin community, Baolong street, Longgang District, Shenzhen, Guangdong Province Applicant after: Ocdop Ltd. Address before: 518000 room 602, 6 / F, Langfeng building, No. 2 Kefa Road, Yuehai street, Nanshan District, Shenzhen, Guangdong Applicant before: SHENZHEN OCTOPUS TECHNOLOGY Co.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |