CN112738909A - Scheduling method for multi-terminal connection bearer and router - Google Patents

Scheduling method for multi-terminal connection bearer and router Download PDF

Info

Publication number
CN112738909A
CN112738909A CN202011592408.4A CN202011592408A CN112738909A CN 112738909 A CN112738909 A CN 112738909A CN 202011592408 A CN202011592408 A CN 202011592408A CN 112738909 A CN112738909 A CN 112738909A
Authority
CN
China
Prior art keywords
terminal
identifier
router
communication
terminals
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.)
Pending
Application number
CN202011592408.4A
Other languages
Chinese (zh)
Inventor
李敬召
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Opple Lighting Co Ltd
Suzhou Op Lighting Co Ltd
Original Assignee
Opple Lighting Co Ltd
Suzhou Op Lighting Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Opple Lighting Co Ltd, Suzhou Op Lighting Co Ltd filed Critical Opple Lighting Co Ltd
Priority to CN202011592408.4A priority Critical patent/CN112738909A/en
Publication of CN112738909A publication Critical patent/CN112738909A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/27Transitions between radio resource control [RRC] states

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a scheduling method of multi-terminal connection bearer and a router. The invention ensures that the terminals continuously obtain connection by setting the keep-alive identification for the terminals which continuously communicate or have higher communication frequency; for a terminal which finishes communication and does not perform communication any more for a certain time, the target device actively disconnects the connection with the terminal, and the position is free to prepare for receiving a new terminal for communication connection; if a large number of terminals are all provided with the keep-alive identifiers, the terminals which are in communication are preferentially ensured according to the condition that the continuous communication is the only standard, and the terminals which have higher communication frequency but are not in communication at present are disconnected, so that the scheduling of connection bearing of the smooth communication of the large number of terminals can be realized, and the utilization rate of target equipment is improved.

Description

Scheduling method for multi-terminal connection bearer and router
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method for scheduling a multi-terminal connection bearer for implementing one-to-many wlan communication applications by using a router as a medium, and a router.
Background
In the current field of Wireless Local Area Network (WLAN) communication, routers play a significant role as communication media. Since only 2-254 except 1 and 255 are used by the terminal in the last byte of the IP address, the theoretical value of the number of terminals that the router can simultaneously carry is 253. However, the number of terminals that most routers can carry at the same time is far from the theoretical value, and even some industrial routers generally do not carry more than 32 routers at most.
In some specific cases, it is desirable that the router can carry a large number of terminals for intermittent communication in a certain time. For example, a large number of wireless local area network communication tests are performed before the smart phone leaves a factory, a large number of devices in the field of internet of things communicate with each other through a wireless local area network, a large number of terminals in the field of smart home communicate through a wireless local area network, and the like.
How to realize connection and bearing of a large number of terminals through a common router under the condition of not increasing other redundant routers and the like is an urgent and troublesome problem.
Disclosure of Invention
The invention aims to provide a scheduling method of multi-terminal connection bearer and a router aiming at the problems in the prior art, which can realize a large number of terminal connection bearers and improve the actual efficiency of the router.
In order to achieve the above object, the present invention provides a method for scheduling a multi-terminal connection bearer, comprising the following steps: setting a first identifier for a terminal which continuously communicates; setting a second identifier for a terminal with an actual communication frequency greater than a preset communication frequency threshold, wherein the priority of the first identifier is higher than that of the second identifier; when the terminal in the dormant state after communication is detected, disconnecting the target equipment from the terminal in the dormant state; judging whether the number of the current accessed terminals of the target equipment is less than the preset maximum connection carrying capacity of the target equipment or not; and if the number of the currently accessed terminals of the target equipment is less than the preset maximum connection carrying capacity, allowing a new terminal to access.
Further preferably, after detecting that the terminal with the first identifier finishes communication, the first identifier of the terminal that finishes communication is updated to the second identifier, or the connection between the terminal that finishes communication and the target device is disconnected.
Further preferably, the preset maximum connection carrying capacity is one half to two thirds of the actual maximum connection carrying capacity of the target device.
Further preferably, a fixed network address is allocated to the newly accessed terminal, or a random network address is allocated to the newly accessed terminal through a dynamic host configuration protocol.
Further preferably, the network address allocation range is configured and the refresh time of the dynamic host configuration protocol is configured. Optionally, the refresh time range of the dynamic host configuration protocol is configured to be 1 minute to 5 minutes.
Further preferably, if the number of currently accessed terminals of the target device is less than the preset maximum connection carrying capacity, the step of allowing a new terminal to access further includes: judging whether the refreshing time of the dynamic host configuration protocol is finished or not; and if the refreshing time of the dynamic host configuration protocol is over, allowing a new terminal to access, and allocating the unused network address in the network address allocation range to the newly accessed terminal. Optionally, when there are multiple terminals waiting for access, the terminal which applies for connection first is allowed to access the target device.
Further preferably, if the number of currently accessed terminals of the target device is greater than or equal to the preset maximum connection carrying capacity, querying whether a terminal with the second identifier exists in terminals connected with the target device; and if the terminal with the second identifier exists, disconnecting the target equipment from the terminal with the second identifier. Optionally, if there is only one terminal with the second identifier, disconnecting the target device from the terminal with the second identifier; and if a plurality of terminals with the second identification exist, disconnecting the target equipment from the terminal with the minimum actual communication frequency in the terminals with the second identification.
To achieve the above object, the present invention further provides a router, including: the configuration module is configured to set a first identifier for a terminal which continuously communicates; the configuration module is further configured to set a second identifier for a terminal with an actual communication frequency greater than a preset communication frequency threshold, wherein the priority of the first identifier is higher than that of the second identifier; the detection processing module is configured to disconnect the router from the terminal in the dormant state when detecting that the communication is finished and the terminal in the dormant state is in the dormant state; the judging module is configured to judge whether the number of the current accessed terminals of the router is less than the preset maximum connection bearing capacity of the router; and the access processing module is configured to allow a new terminal to access if the judging module judges that the number of the currently accessed terminals of the router is less than the preset maximum connection carrying capacity.
Further preferably, the configuration module is further configured to allocate a fixed network address to the newly accessed terminal, or allocate a random network address to the newly accessed terminal through a dynamic host configuration protocol.
Further preferably, the detection processing module is further configured to update the first identifier of the terminal that finishes communication to the second identifier or disconnect the terminal that finishes communication from the target device after detecting that the terminal that finishes communication has the first identifier finishes communication. Optionally, the preset maximum connection carrying capacity is one half to two thirds of the actual maximum connection carrying capacity of the router.
Further preferably, the configuration module is further configured to configure a network address allocation range and configure a refresh time of a dynamic host configuration protocol; the access processing module is further configured to determine whether the refresh time of the dynamic host configuration protocol is finished, and if the refresh time of the dynamic host configuration protocol is finished, allow a new terminal to access, and allocate the network address that is not used in the network address allocation range to the newly accessed terminal. Optionally, the configuration module configures a refresh time range of the dhcp to be 1 to 5 minutes. The access processing module is further configured to allow a terminal, which first applies for connection, to access the router when there are a plurality of terminals waiting for access.
Further preferably, the router further comprises a disconnection processing module; the disconnection processing module is configured to query whether a terminal with the second identifier exists in terminals connected with the router if the judging module judges that the number of currently accessed terminals of the router is greater than or equal to the preset maximum connection carrying capacity, and disconnect the router from the terminal with the second identifier if the terminal with the second identifier exists. Wherein the disconnection processing module is further configured to disconnect the router from the terminal having the second identifier if there is only one terminal having the second identifier; and if a plurality of terminals with the second identification exist, disconnecting the router from the terminal with the minimum actual communication frequency in the terminals with the second identification.
The invention has the advantages that: the terminal continuously performs communication or has higher communication frequency is provided with the keep-alive identifier, so that the terminal is ensured to continuously obtain connection; for a terminal which finishes communication and does not perform communication any more for a certain time, the target device (such as a router) actively breaks the connection with the terminal, and the position is free to prepare for receiving a new terminal to perform communication connection; if a large number of terminals are all provided with the keep-alive identifiers, the terminals which are in communication are preferentially ensured according to the condition that the continuous communication is the only standard, and the terminals which have higher communication frequency but are not in communication at present are disconnected, so that the scheduling of connection bearing of the smooth communication of the large number of terminals can be realized, and the utilization rate of target equipment is improved. The invention solves the practical problem that the communication of the wireless local area network is disturbed, and the effective communication cannot be realized especially under the environment of multiple terminals and a single router. The invention also solves the problem of idle bandwidth of the target equipment by configuring the preset maximum connection carrying capacity, improves the service efficiency, can avoid overhigh communication load of the target equipment, and can obviously improve the communication speed and stability. The invention greatly improves the actual efficiency of the target equipment and reduces the equipment input amount on the basis of not changing the hardware design and adding additional hardware equipment, and has strong practical significance. The invention can also be used for solving the practical problems of multi-terminal, high-complexity network and low-efficiency utilization rate and capacity-expanding capability of wireless local area network communication in various fields in a universalization and intellectualization way.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a scheduling method for a multi-terminal connection bearer according to a first embodiment of the present invention;
fig. 2 is an internal architecture diagram of a router according to a second embodiment of the present invention;
fig. 3A-5B are schematic diagrams illustrating a multi-terminal connection state rotation according to the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings. The embodiments described below with reference to the drawings are illustrative only and should not be construed as limiting the invention. In the description of the present invention, the terms "first" and "second" are used only to distinguish a plurality of elements from each other, and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
The invention provides a scheduling method of multi-terminal connection bearer, which sets a keep-alive identifier for a terminal which continuously communicates or has higher communication frequency, and ensures that the terminal continuously obtains connection so as to communicate in time when communication is needed; for a terminal which finishes communication and does not perform communication any more for a certain time, the target device (such as a router) actively breaks the connection with the terminal, and the position is free to prepare for receiving a new terminal to perform communication connection; if a large number of terminals are all set with keep-alive identifiers, the terminals which are in communication are preferentially ensured according to the condition that continuous communication is the only standard, and the terminals which have higher communication frequency but are not in communication are disconnected, so that the scheduling of connection bearer of smooth communication of the large number of terminals can be repeatedly realized.
Please refer to fig. 1, which is a flowchart illustrating a method for scheduling a multi-terminal connection bearer according to a first embodiment of the present invention. The method comprises the following steps: s1, setting a first identifier for the terminal which continuously communicates; s2, setting a second identifier for the terminal with the actual communication frequency greater than the preset communication frequency threshold; s3, when detecting the terminal in the dormant state after the communication is finished, disconnecting the target device from the terminal in the dormant state; s4, judging whether the number of the current accessed terminals of the target equipment is less than the preset maximum connection carrying capacity of the target equipment, if so, executing a step S5, otherwise, executing a step S6; s5, allowing a new terminal to access; s6, inquiring whether a terminal with the second identification exists in the terminals connected with the target equipment, and if the terminal with the second identification exists, disconnecting the target equipment from the terminal with the second identification. A detailed explanation is given below.
With respect to step S1, a first flag is set for the terminal that continues communication.
Specifically, the first identifier is a keep-alive identifier, which is used to allow the terminal with the first identifier to obtain a persistent connection with the target device, so that communication can be performed in time when communication is needed, and communication continuity is ensured.
In a further embodiment, the method further comprises: and after detecting that the terminal with the first identifier finishes communication, updating the first identifier of the terminal which finishes communication to the second identifier, or disconnecting the terminal which finishes communication from the target equipment. Namely, after the terminal with the first identifier finishes communication, the identifier priority is reduced; or directly disconnecting the terminal from the target device, or disconnecting the terminal from the target device when the terminal is detected to be in a dormant state, so that the terminal is free to be ready to receive a new terminal for communication connection, and the utilization rate of the target device is improved.
With respect to step S2, a second flag is set for a terminal whose actual communication frequency is greater than a preset communication frequency threshold.
Specifically, the second identifier is also a keep-alive identifier, so as to allow the terminal having the second identifier to obtain a persistent connection with the target device, so that communication can be performed in time when communication is needed, and communication continuity is ensured. Wherein the priority of the first identifier is higher than the priority of the second identifier. If a large number of terminals are all provided with the keep-alive identifier, the number of the currently accessed terminals of the target equipment is larger than the preset maximum connection carrying capacity of the target equipment, so that when the terminal waiting for access cannot attempt to access, the connection between the terminal finishing communication and the target equipment needs to be disconnected, and the position is free to prepare for receiving a new terminal for communication connection. Since the priority of the second identifier is lower than the priority of the first identifier, the terminal having the second identifier may be disconnected from the target device first. Namely, according to the condition that continuous communication is the only standard, the terminal which is in communication is preferentially ensured, and the terminal which has higher communication frequency but is not in communication at present is disconnected, so that the scheduling of connection bearing of a large amount of terminal smooth communication can be realized.
In step S3, when the terminal in the dormant state after the communication is detected, the connection between the target device and the terminal in the dormant state is disconnected.
Assume that there are 10 terminals A, B, C, D, E, F, G, H, I, J in total, all connected to communicate on a router. If terminal a is in the communication state, terminals B, C, D, E, F, G, H, I, J are all in the idle state; or the terminal A, B is in communication state, and the terminals C, D, E, F, G, H, I, J are all in idle state; or the terminal A, B, C is in communication state, and the terminals D, E, F, G, H, I, J are all in idle state; or terminal A, B, C, D is in a communication state and terminal E, F, G, H, I, J is in an idle state, which is a non-saturated state, resulting in a significant waste of the processing power of the router.
Therefore, in this embodiment, for a terminal that has completed communication and is no longer communicating for a certain time (greater than a preset time threshold), the target device (e.g., a router) actively disconnects the connection with the terminal, and leaves the position to be ready for receiving a new terminal for communication connection. That is, the router serving as the service medium can actively execute the keep-alive scheduling policy: and the terminal which occasionally communicates (the actual communication frequency is less than the preset communication frequency threshold) and does not communicate for a long time (greater than the preset time threshold) adopts an active service termination mode, so that the communication connection can be quickly established when a new terminal needs to communicate, the problem of idle router bandwidth is solved, and the service efficiency is improved. It should be noted that the terminal may also actively disconnect the communication connection with the router after the communication is completed, so that the router can reserve the idle communication node to other terminals that need to be accessed.
Step S4 is performed to determine whether the number of currently accessed terminals of the target device is less than the preset maximum connection carrying capacity of the target device.
In a further embodiment, the preset maximum connection carrying capacity is one half to two thirds of the actual maximum connection carrying capacity of the target device; can be rounded up and is adjustable. Assuming that the actual maximum connection carrying capacity of a certain target device during normal operation is 40 terminals, the preset maximum connection carrying capacity may be set to 20-27 terminals. Therefore, the communication load of the target equipment can be avoided from being too high, and the communication speed and the stability can be obviously improved.
Assuming that the actual maximum connection carrying capacity of a certain router is 10 terminals, if A, B, C, D, E, F, G, H, I, J terminals are all connected to the router for communication during actual use, the communication pressure of the router is too high, the routing capability of the router cannot be efficiently utilized, and the communication task cannot be completed in time. Therefore, the present embodiment uses 1/2-2/3 of the actual maximum connection carrying capacity according to the carrying capacity of the router. For example, for a router with an actual maximum connection carrying capacity of 10 terminals, a preset maximum connection carrying capacity of 5 terminals is set, that is, only 5 terminals are allowed to access the router at the same time. Therefore, the maximum concurrent number can be ensured, and the communication efficiency is not reduced due to overlarge communication pressure of the router.
Still taking the actual maximum connection carrying capacity of a certain router as 10 terminals as an example, the preset maximum connection carrying capacity is preset as 5 terminals. Assuming that the terminal A, B, C, D, E is already connected to the router and is communicating, the terminal F, G, H, I, J attempts to connect or wait; when one or more of the terminals A, B, C, D, E have completed communication, the router may immediately disconnect it, freeing up its location; the first request in terminal F, G, H, I, J for a router connection will be admitted by the router and communication will begin after the connection is successful. That is, after the terminal currently in communication completes communication, the terminal will be identified by the router and disconnected, and when other terminals needing communication or terminals waking up from the sleep state need communication, there will be an opportunity to connect with the router. The preset maximum connection bearing capacity is dynamically adjusted according to the actual bearing capacity of the router, so that the use efficiency of the router and the flexibility in actual application can be greatly improved, and a common router can be changed into a router with infinite bearing capacity without spending manpower and material resources to deploy networks with various loads and the like.
With respect to step S5, a new terminal is allowed access.
And if the number of the currently accessed terminals of the target equipment is less than the preset maximum connection carrying capacity, allowing a new terminal to access. For a newly accessed terminal, a first identifier may be set to allow the newly accessed terminal to obtain a continuous connection with a target device, so as to ensure communication continuity. Similarly, after the terminal finishes communication, the identification priority can be reduced; or directly disconnecting the terminal from the target device, or disconnecting the terminal from the target device when the terminal is detected to be in a dormant state, so that the terminal is free to be ready to receive a new terminal for communication connection, and the utilization rate of the target device is improved.
In a further embodiment, the method further comprises: allocating a fixed network address for the newly accessed terminal, or allocating a random network address for the newly accessed terminal in a Dynamic Host Configuration Protocol (DHCP) mode; addresses may be assigned by the target device. When the router receives the access of a new terminal, if the router adopts a fixed IP address, the idle fixed IP address is allocated to the newly accessed terminal; if the router adopts the DHCP mode to carry out IP allocation, a random IP address is allocated to the newly accessed terminal through the DHCP mode. At this time, the newly accessed terminal can realize communication with the router.
In a further embodiment, the method further comprises: configuring the network address allocation range and configuring the refresh time of the dynamic host configuration protocol. Specifically, a corresponding number of fixed IP addresses may be configured according to a preset maximum connection carrying capacity; when the target device disconnects the terminal connected with the target device, the fixed IP address allocated to the terminal is recovered to be allocated to the newly accessed terminal. Specifically, the refresh time range of the dhcp can be configured to be 1 minute to 5 minutes. By adopting the smaller refreshing time of the dynamic host configuration protocol, new terminals can be allowed to access in time after the refreshing time is over, and the utilization rate of target equipment is improved.
In a further embodiment, the step S5 further includes: judging whether the refreshing time of the dynamic host configuration protocol is finished or not; if the refreshing time of the dynamic host configuration protocol is over, allowing a new terminal to access, and allocating the unused network address in the network address allocation range to the newly accessed terminal; and if the refreshing time of the dynamic host configuration protocol is not finished, continuing to wait.
In a further embodiment, when there are multiple terminals waiting for access, the terminal which first applies for connection is allowed to access the target device.
In step S6, it is queried whether a terminal with the second identifier exists in the terminals connected to the target device, and if the terminal with the second identifier exists, the connection between the target device and the terminal with the second identifier is disconnected.
And if the number of the currently accessed terminals of the target equipment is greater than or equal to the preset maximum connection carrying capacity, inquiring whether the terminals connected with the target equipment have the terminals with the second identification. That is, if a large number of terminals are all set with keep-alive identifiers, so that the number of currently accessed terminals of the target device is greater than the preset maximum connection carrying capacity of the target device, and when the terminal waiting for access cannot attempt to access, the connection between the terminal completing communication and the target device needs to be disconnected, and the terminal is left free to prepare for receiving a new terminal for communication connection. Since the priority of the second identifier is lower than the priority of the first identifier, the terminal having the second identifier may be disconnected from the target device first. And if the terminal with the second identifier does not exist, not performing terminal disconnection operation and circularly inquiring. Namely, according to the condition that continuous communication is the only standard, the terminal which is in communication is preferentially ensured, and the terminal which has higher communication frequency but is not in communication at present is disconnected, so that the scheduling of connection bearing of a large amount of terminal smooth communication can be realized.
In a further embodiment, the step of disconnecting the target device from the terminal with the second identifier further includes: if only one terminal with the second identifier exists, disconnecting the target device from the terminal with the second identifier; and if a plurality of terminals with the second identification exist, disconnecting the target equipment from the terminal with the minimum actual communication frequency in the terminals with the second identification. For the target device to be a router, after the router disconnects the terminal connected to the router, the router has capacity to accept new terminal access.
In the scheduling method for multi-terminal connection bearer provided by this embodiment, a keep-alive identifier is set for a terminal that continuously performs communication or has a high communication frequency, so that such a terminal is ensured to continuously obtain connection; for a terminal which finishes communication and does not perform communication any more for a certain time, the target device actively disconnects the connection with the terminal, and the position is free to prepare for receiving a new terminal for communication connection; if a large number of terminals are all provided with the keep-alive identifiers, the terminals which are in communication are preferentially ensured according to the condition that the continuous communication is the only standard, and the terminals which have higher communication frequency but are not in communication at present are disconnected, so that the scheduling of connection bearing of the smooth communication of the large number of terminals can be realized, and the utilization rate of target equipment is improved. The practical problem that the communication of the wireless local area network is disturbed, especially the effective communication can not be realized under the environment of multiple terminals and a single router is solved. The embodiment also solves the problem of idle bandwidth of the target equipment by configuring the preset maximum connection carrying capacity, improves the service efficiency, can avoid overhigh communication load of the target equipment, and can obviously improve the communication speed and stability. According to the embodiment, on the basis of not changing hardware design and not increasing additional hardware equipment, the actual efficiency of the target equipment is greatly improved, the equipment input is reduced, and the method has strong practical significance. The implementation can also be used for solving the practical problems of multi-terminal, high-complexity network and low-efficiency utilization rate and capacity-expansion capacity of wireless local area network communication in various fields in a universalization and intellectualization way.
Based on the same inventive concept, the invention also provides a router.
Referring to fig. 2, a diagram of an internal architecture of a router according to a second embodiment of the present invention is provided. The router 20 described in this embodiment includes: a configuration module 21, a detection processing module 22, a judgment module 23 and an access processing module 24.
Specifically, the configuration module 21 is configured to set a first identifier for a terminal that is in continuous communication, so as to allow the terminal having the first identifier to be continuously connected with the router 20. The configuration module is further configured to set a second identifier for a terminal with an actual communication frequency greater than a preset communication frequency threshold; wherein the priority of the first identifier is higher than the priority of the second identifier. The detection processing module 22 is configured to disconnect the router 20 from the terminal in the dormant state when detecting that the communication is completed and the terminal in the dormant state is in the dormant state. The determining module 23 is configured to determine whether the number of currently accessed terminals of the router 20 is less than a preset maximum connection carrying capacity of the router 20. The access processing module 24 is configured to allow a new terminal to access if the determining module 23 determines that the number of currently accessed terminals of the router 20 is less than the preset maximum connection carrying capacity.
In a further embodiment, the detection processing module 22 is further configured to update the first identifier of the terminal having completed communication to the second identifier or disconnect the terminal having completed communication from the router 20 after detecting that the terminal having completed communication has completed communication.
In a further embodiment, the preset maximum connection carrying capacity is one half to two thirds of the actual maximum connection carrying capacity of the router 20; can be rounded up and is adjustable.
In a further embodiment, the configuration module 21 is further configured to allocate a fixed network address to the newly accessed terminal, or allocate a random network address to the newly accessed terminal through a dynamic host configuration protocol.
In a further embodiment, the configuration module 21 is further configured to configure a network address allocation range and configure a refresh time of a dynamic host configuration protocol. Specifically, a corresponding number of fixed IP addresses may be configured according to a preset maximum connection carrying capacity; when the target device disconnects the terminal connected with the target device, the fixed IP address allocated to the terminal is recovered to be allocated to the newly accessed terminal. Specifically, the refresh time range of the dhcp can be configured to be 1 minute to 5 minutes. By adopting the smaller refreshing time of the dynamic host configuration protocol, new terminals can be allowed to access in time after the refreshing time is over, and the utilization rate of the router 20 is improved.
In a further embodiment, the configuration module 21 is further configured to configure a network address allocation range and configure a refresh time of a dynamic host configuration protocol. The access processing module 24 is further configured to determine whether the refresh time of the dynamic host configuration protocol is finished, and if the refresh time of the dynamic host configuration protocol is finished, allow a new terminal to access, and allocate an unused network address in the network address allocation range to the newly accessed terminal. Wherein the access processing module 24 is further configured to allow the terminal which applies for connection first to access the router 20 when there are a plurality of terminals waiting for access.
In a further embodiment, the router 20 further comprises a disconnection processing module 25. The disconnection processing module 25 is configured to, if the determining module 23 determines that the number of currently accessed terminals of the router 20 is greater than or equal to the preset maximum connection carrying capacity, query whether a terminal with the second identifier exists in the terminals connected to the router 20, and if the terminal with the second identifier exists, disconnect the router 20 from the terminal with the second identifier. The disconnection processing module 25 is further configured to disconnect the router 20 from the terminal having the second identifier if there is only one terminal having the second identifier; if a plurality of terminals with the second identifier exist, the router 20 is disconnected from the terminal with the smallest actual communication frequency among the terminals with the second identifier.
Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware circuits or integrated circuits, or in different networks and/or processor means and/or microcontroller means. For technical details which are not described in detail in this example, reference is made to the above-described method embodiments of the invention.
The following further explains the scheduling method of multi-terminal connection bearer according to the embodiment of connection, waiting and dormant state rotation scenario.
Please refer to fig. 3A-5B, which are schematic diagrams illustrating a multi-terminal connection state rotation according to the present invention.
As shown in fig. 3A, the terminal A, B, C, D, E is connected to the router 20, and the terminal F, G, H, I, J is not connected to the router 20 (shown by a dotted line). The corresponding active state is shown in fig. 3B: current terminal A, B, C, D, E is active, connected to router 20 and communicating; terminal F, G, H, I, J is inactive and not connected to router 20 and not communicating.
If the terminal A, B finishes communication and does not communicate any more (i.e. enters a sleep state), the router 20 actively disconnects the terminal A, B after the scheduling policy is identified, and leaves the location free; when the refresh time of DHCP (for example, 5 minutes) elapses and the terminal F, G requests to connect the router 20, the router 20 allocates the IP originally allocated to the terminal a to the terminal F and the IP originally allocated to the terminal B to the terminal G, so that the terminal F, G obtains the communication capability; the scenario switches to that shown in fig. 4A: the terminal C, D, E, F, G is connected to the router 20, and the terminal A, B, H, I, J is not connected to the router 20 (shown by a dotted line). The corresponding active state is shown in fig. 4B: current terminal C, D, E, F, G is active, connected to router 20 and communicating; terminal A, B is in a disconnected state, not connected to router 20, not in communication; terminal H, I, J is active (has a communication need, is waiting for a connection), but is not connected to router 20 and is not communicating.
Then if terminal C, D, E, F also completes the communication and no longer communicates, router 20 will also actively disconnect from terminal C, D, E, F and free up the location; after the refresh time of DHCP elapses, when the terminal H, I, J, A requests to connect the router 20, the router 20 allocates the IP originally allocated to the terminal C to the terminal H, the IP originally allocated to the terminal D to the terminal I, the IP originally allocated to the terminal E to the terminal J, and the IP originally allocated to the terminal F to the terminal a, so that the terminal H, I, J, A obtains a communication capability; the scenario switches to that shown in fig. 5A: the terminal G, H, I, J, A is connected to the router 20, and the terminal B, C, D, E, F is not connected to the router 20 (shown by a dotted line). The corresponding active state is shown in fig. 5B: the current terminal G, H, I, J, A is in an active state but where only terminal G, A may be communicating, terminal H, I, J is not communicating but may be communicating in time when communication is needed; terminal B, C, D, E, F is in a disconnected state and not connected to router 20 and not communicating.
The cyclic rotation can realize the scheduling of the multi-terminal connection bearer by adopting a single router.
While embodiments of the invention have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.

Claims (15)

1. A method for scheduling a multi-terminal connection bearer is characterized by comprising the following steps:
setting a first identifier for a terminal which continuously communicates;
setting a second identifier for a terminal with an actual communication frequency greater than a preset communication frequency threshold, wherein the priority of the first identifier is higher than that of the second identifier;
when the terminal in the dormant state after communication is detected, disconnecting the target equipment from the terminal in the dormant state;
judging whether the number of the current accessed terminals of the target equipment is less than the preset maximum connection carrying capacity of the target equipment or not;
and if the number of the currently accessed terminals of the target equipment is less than the preset maximum connection carrying capacity, allowing a new terminal to access.
2. The method of claim 1, wherein the method further comprises:
and after detecting that the terminal with the first identifier finishes communication, updating the first identifier of the terminal which finishes communication to the second identifier, or disconnecting the terminal which finishes communication from the target equipment.
3. The method of claim 1, wherein the preset maximum connection bearer is one-half to two-thirds of an actual maximum connection bearer of the target device.
4. The method of claim 1, wherein the method further comprises: and allocating a fixed network address for the newly accessed terminal, or allocating a random network address for the newly accessed terminal in a dynamic host configuration protocol mode.
5. The method of claim 1, wherein the method further comprises: configuring the network address allocation range and configuring the refresh time of the dynamic host configuration protocol.
6. The method of claim 5, wherein the dynamic host configuration protocol is configured for a refresh time in a range of 1 minute to 5 minutes.
7. The method of claim 5, wherein if the number of currently accessed terminals of the target device is less than the preset maximum connection carrying capacity, the step of allowing a new terminal to access further comprises:
judging whether the refreshing time of the dynamic host configuration protocol is finished or not;
and if the refreshing time of the dynamic host configuration protocol is over, allowing a new terminal to access, and allocating the unused network address in the network address allocation range to the newly accessed terminal.
8. The method of claim 1 or 7, wherein the step of allowing the new terminal to access further comprises:
and when a plurality of terminals waiting for access exist, allowing the terminal which applies for connection firstly to access the target equipment.
9. The method of claim 1, wherein the method further comprises:
if the number of the currently accessed terminals of the target equipment is greater than or equal to the preset maximum connection carrying capacity, inquiring whether a terminal with the second identifier exists in the terminals connected with the target equipment;
and if the terminal with the second identifier exists, disconnecting the target equipment from the terminal with the second identifier.
10. The method of claim 9, wherein the step of disconnecting the target device from the terminal having the second identity further comprises:
if only one terminal with the second identifier exists, disconnecting the target device from the terminal with the second identifier;
and if a plurality of terminals with the second identification exist, disconnecting the target equipment from the terminal with the minimum actual communication frequency in the terminals with the second identification.
11. A router, comprising:
the configuration module is configured to set a first identifier for a terminal which continuously communicates;
the configuration module is further configured to set a second identifier for a terminal with an actual communication frequency greater than a preset communication frequency threshold, wherein the priority of the first identifier is higher than that of the second identifier;
the detection processing module is configured to disconnect the router from the terminal in the dormant state when detecting that the communication is finished and the terminal in the dormant state is in the dormant state;
the judging module is configured to judge whether the number of the current accessed terminals of the router is less than the preset maximum connection bearing capacity of the router;
and the access processing module is configured to allow a new terminal to access if the judging module judges that the number of the currently accessed terminals of the router is less than the preset maximum connection carrying capacity.
12. The router of claim 11, wherein the configuration module is further configured to assign a fixed network address to the newly accessed terminal or assign a random network address to the newly accessed terminal through dynamic host configuration protocol.
13. The router of claim 11, wherein the detection processing module is further configured to update the first identifier of the terminal having the first identifier as the second identifier or disconnect the terminal having the first identifier from the router after detecting that the terminal having the first identifier has completed communication.
14. The router of claim 11,
the configuration module is further used for configuring the network address allocation range and the refresh time of the dynamic host configuration protocol;
the access processing module is further configured to determine whether the refresh time of the dynamic host configuration protocol is finished, and if the refresh time of the dynamic host configuration protocol is finished, allow a new terminal to access, and allocate the network address that is not used in the network address allocation range to the newly accessed terminal.
15. The router of claim 11, wherein the router further comprises a disconnection processing module; the disconnection processing module is configured to query whether a terminal with the second identifier exists in terminals connected with the router if the judging module judges that the number of currently accessed terminals of the router is greater than or equal to the preset maximum connection carrying capacity, and disconnect the router from the terminal with the second identifier if the terminal with the second identifier exists.
CN202011592408.4A 2020-12-29 2020-12-29 Scheduling method for multi-terminal connection bearer and router Pending CN112738909A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011592408.4A CN112738909A (en) 2020-12-29 2020-12-29 Scheduling method for multi-terminal connection bearer and router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011592408.4A CN112738909A (en) 2020-12-29 2020-12-29 Scheduling method for multi-terminal connection bearer and router

Publications (1)

Publication Number Publication Date
CN112738909A true CN112738909A (en) 2021-04-30

Family

ID=75607541

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011592408.4A Pending CN112738909A (en) 2020-12-29 2020-12-29 Scheduling method for multi-terminal connection bearer and router

Country Status (1)

Country Link
CN (1) CN112738909A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130208638A1 (en) * 2012-02-14 2013-08-15 Htc Corporation Connection dormancy method and wireless communicaiton device and computer readalbe recording medium
WO2014028395A1 (en) * 2012-08-14 2014-02-20 Qualcomm Incorporated Methods, systems and devices for prioritizing access to wireless networks
CN106936729A (en) * 2015-12-29 2017-07-07 中国电信股份有限公司 Control method, system and broadband access network system that a kind of terminal device is accessed
CN107493594A (en) * 2017-07-21 2017-12-19 深圳市盛路物联通讯技术有限公司 A kind of internet of things equipment access AP method and AP
CN108156085A (en) * 2017-12-08 2018-06-12 上海斐讯数据通信技术有限公司 A kind of intelligent speed-limiting method and system of router
CN111131054A (en) * 2019-12-13 2020-05-08 欧普照明股份有限公司 Method for realizing intermittent connection of routers by a large number of terminals and router

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130208638A1 (en) * 2012-02-14 2013-08-15 Htc Corporation Connection dormancy method and wireless communicaiton device and computer readalbe recording medium
WO2014028395A1 (en) * 2012-08-14 2014-02-20 Qualcomm Incorporated Methods, systems and devices for prioritizing access to wireless networks
CN106936729A (en) * 2015-12-29 2017-07-07 中国电信股份有限公司 Control method, system and broadband access network system that a kind of terminal device is accessed
CN107493594A (en) * 2017-07-21 2017-12-19 深圳市盛路物联通讯技术有限公司 A kind of internet of things equipment access AP method and AP
CN108156085A (en) * 2017-12-08 2018-06-12 上海斐讯数据通信技术有限公司 A kind of intelligent speed-limiting method and system of router
CN111131054A (en) * 2019-12-13 2020-05-08 欧普照明股份有限公司 Method for realizing intermittent connection of routers by a large number of terminals and router

Similar Documents

Publication Publication Date Title
US10972545B2 (en) Method and apparatus for multipath communication
US9204390B2 (en) Energy-saving mobile node control method using wireless multi-interfaces
US10419531B2 (en) Method for setting gateway device identity, and management gateway device
US10979285B2 (en) Service transmission method, device, and system
US11071092B2 (en) Response message transmission method and apparatus
CN111432044B (en) Multi-link equipment MAC address management method and device and multi-link equipment
US9100303B2 (en) Methods, devices, and systems for allocating IP address
US9532359B2 (en) Resource allocation method and device
US9584467B2 (en) Technique to delegate prefixes to Wi-Fi clients connected to mobile access point routers
CN108924274B (en) Domain name system DNS processing method and device, storage medium and electronic equipment
US11419181B2 (en) Device control method and apparatus, storage medium, processor, and terminal
US9565112B2 (en) Load balancing in a link aggregation
WO2016089262A1 (en) Methods and nodes for m2m communication
CN111131054A (en) Method for realizing intermittent connection of routers by a large number of terminals and router
JP2016538769A (en) Discovery of WI-FI direct service via discovery probe
CN107370647B (en) Method for interconnecting local area internal controller systems and local area network system
CN112738909A (en) Scheduling method for multi-terminal connection bearer and router
CN106851685B (en) Method and system for controlling bandwidth of mobile terminal
US8050681B2 (en) System and method for controlling connections between a wireless router and unlicensed mobile access capable mobile phones
CN109347743B (en) Special line communication method, computer readable storage medium and terminal equipment
CN114615272B (en) Method and system for scheduling media data forwarding server
WO2009012694A1 (en) Network address processing method and router node
WO2019136655A1 (en) Data replication transmission function configuration method and related product
US20180352009A1 (en) Apparatus for setting up conference call and method thereof
CN105792385B (en) Communication method and device based on wireless local area network

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210430

RJ01 Rejection of invention patent application after publication