CN112672404A - Network access distribution method and system - Google Patents

Network access distribution method and system Download PDF

Info

Publication number
CN112672404A
CN112672404A CN202011490834.7A CN202011490834A CN112672404A CN 112672404 A CN112672404 A CN 112672404A CN 202011490834 A CN202011490834 A CN 202011490834A CN 112672404 A CN112672404 A CN 112672404A
Authority
CN
China
Prior art keywords
router
access
gateway
accessed
network
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
Application number
CN202011490834.7A
Other languages
Chinese (zh)
Other versions
CN112672404B (en
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.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology 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 Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202011490834.7A priority Critical patent/CN112672404B/en
Publication of CN112672404A publication Critical patent/CN112672404A/en
Application granted granted Critical
Publication of CN112672404B publication Critical patent/CN112672404B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application relates to a network access distribution method and a system, wherein the method comprises the following steps: receiving a first access request of network equipment; acquiring a first remaining accessible quantity from the first allowed access quantity table according to the first access request; and if the first remaining accessible quantity is smaller than the first threshold value, rejecting the first access request of the network equipment. By the method and the device, the distribution problem of the router access equipment can be intelligently solved, the reasonable and balanced quantity of the equipment accessed by each router is ensured, and the network stability of the equipment is ensured.

Description

Network access distribution method and system
Technical Field
The present application relates to the field of communications technologies, and in particular, to a network access allocation method and system.
Background
The router is used as an important component of the network, and the router is used as a node of a device connection network and used for verifying the network distribution before the device is connected with the network. But in practice the number of devices that can be accessed by a router is limited. When the number of devices accessed by one router is small, the wire speed experience of a user may not be affected, but when the number of devices accessed by one router is too large, the wire speed is greatly affected. In addition, if the devices are all connected to a certain router or some routers, and some routers are in idle state, the resource allocation may be uneven. How to improve the experience of the network speed of the user and intelligently distribute the number of the access devices becomes a technical problem.
Disclosure of Invention
In order to solve the technical problem that the number of the router access devices is unevenly distributed, which causes uneven network resource distribution, embodiments of the present application provide a network access distribution method and system.
In a first aspect, an embodiment of the present application provides a network access allocation method, which is applied to a router, where the router is any one of router nodes, and the method includes:
receiving a first access request of network equipment;
acquiring a first remaining accessible quantity from the first allowed access quantity table according to the first access request;
if the first remaining accessible quantity is smaller than a first threshold value, rejecting a first access request of the network equipment;
the first allowed access quantity table represents the state of the access equipment of the corresponding router.
Optionally, obtaining the first remaining accessible number from the first allowed access number table includes:
and acquiring a first remaining accessible quantity according to the difference value between the allowed quantity of the router accessible equipment and the accessed quantity of the accessed equipment in the first allowed access quantity table.
Optionally, the method further comprises:
if the first remaining accessible quantity is larger than or equal to a first threshold value, acquiring current access states of other routers and network equipment in the router nodes within a first preset distance range;
if the current access states of other routers and network equipment are as follows: and if no other router in the router nodes in the first preset distance range establishes connection with the network equipment, establishing connection with the network equipment.
Optionally, the method further comprises:
updating the first allowed access quantity table after establishing connection with the network equipment;
updating the network equipment information to an accessed equipment management table;
and sharing the updated accessed equipment management table to the router node.
Optionally, if the current access states of the other routers and the network device are: if any other router exists in the router nodes within the first preset distance range and the connection is established with the network equipment, the connection with the network equipment is refused to be established.
Optionally, the method further comprises:
if the first remaining accessible quantity is larger than or equal to a first threshold value, acquiring current access states of other routers and network equipment in the router nodes within a first preset distance range;
if the current access states of other routers and network equipment are as follows: if no other router in the router nodes in the first preset distance range establishes connection with the network equipment, acquiring a first remaining accessible quantity of each other router in the router nodes in the first preset distance range;
comparing the first remaining accessible quantity of the router with the first remaining accessible quantity of each other router;
if the first remaining accessible quantity of any other router is higher than the first remaining accessible quantity of the router, rejecting a first access request of the network equipment;
and if the first remaining accessible quantity of any other router is not higher than the first remaining accessible quantity of the router, establishing connection with the network equipment.
Optionally, the method further comprises:
if the first remaining accessible quantity is larger than or equal to a first threshold value, acquiring current access states of other routers and network equipment in the router nodes within a first preset distance range;
if the current access states of other routers and network equipment are as follows: if no other router in the router nodes in the first preset distance range establishes connection with the network equipment, the communication feasibility between the router nodes and the network equipment is acquired;
wherein, the communication feasibility is determined by the communication distance and/or the communication signal strength;
acquiring a first remaining accessible quantity of each other router in the router nodes within a first preset distance range;
selecting routers with the first remaining accessible quantity larger than a first threshold value from other routers as candidate routers;
acquiring the communication feasibility of each candidate router and the network equipment;
comparing the communication feasibility between the router and the network equipment with the communication feasibility between each candidate router and the network equipment;
if the communication feasibility between any candidate router and the network equipment is higher than the communication feasibility between the candidate router and the network equipment, rejecting a first access request of the network equipment;
and if the communication feasibility of any candidate router and the network equipment is not higher than the communication feasibility of the candidate router and the network equipment, establishing connection with the network equipment.
Optionally, before receiving the first access request of the network device, the method further includes:
sending a second access request to a gateway node, wherein the gateway node comprises at least one gateway connected with the network;
receiving an authentication request of the target gateway responding to the second access request;
and responding to the authentication request of the target gateway to establish communication with the target gateway.
In a second aspect, an embodiment of the present application provides a network access allocation method, which is applied to a gateway, where the gateway is a gateway of any one of gateway nodes connected to a network, and the method includes:
receiving a second access request of the router to be accessed;
acquiring a second remaining accessible quantity from a second allowed access quantity table according to the second access request;
if the second remaining accessible quantity is smaller than a second threshold value, rejecting a second access request of the router to be accessed;
the second allowed access quantity table represents the state of the corresponding gateway access router;
optionally, the method further comprises:
if the second remaining accessible quantity is larger than or equal to a second threshold value, acquiring the current access states of other gateways in the gateway nodes in a second preset distance range and the router to be accessed;
if the current access states of other gateways and the router to be accessed are as follows: and if no other gateway in the gateway nodes in the second preset distance range is connected with the router to be accessed, the gateway is connected with the router to be accessed.
Optionally, the method further comprises:
updating a second allowed access quantity table after establishing connection with the router to be accessed;
updating the information of the router to be accessed into the management table of the accessed router;
and sharing the updated accessed router management table into the gateway node.
Optionally, if the current access states of the other gateways and the router to be accessed are: if any other gateway exists in the router nodes within the second preset distance range and the connection is established with the router to be accessed, the connection with the router to be accessed is refused to be established.
In a third aspect, an embodiment of the present application provides a network access allocation method, which is applied to a network device, and the method includes:
sending a first connection request to a router node;
receiving an authentication request of a target router responding to the first connection request;
and responding to the authentication request of the target router to establish communication connection with the target router.
In a fourth aspect, an embodiment of the present application provides a network access distribution system, where the system includes: the gateway node comprises a plurality of gateways connected with the network, and the router node comprises a plurality of routers;
any gateway is used for receiving a second access request of the router to be accessed, obtaining a second remaining accessible quantity from a second allowed access quantity table according to the second access request, and if the second remaining accessible quantity is larger than or equal to a second threshold value and no other gateway in the route gateway nodes in a second preset distance range is connected with the router to be accessed, establishing connection with the router to be accessed;
and any one router is used for receiving a first access request of the network equipment, acquiring a first remaining accessible quantity from the allowed access quantity table according to the first access request, and establishing connection with the network equipment if the first remaining accessible quantity is greater than or equal to a first threshold and no other router in the router nodes in the first preset distance range is connected with the network equipment.
In a fifth aspect, embodiments of the present application provide a computer-readable storage medium having a computer program stored thereon, where the computer program, when executed by a processor, causes the processor to perform the steps of the method according to any one of the preceding claims.
In a fifth aspect, embodiments of the present application provide a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor executing the program to perform the steps of the method according to any of the preceding claims.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
the embodiment of the application receives a first access request of network equipment; acquiring a first remaining accessible quantity from the first allowed access quantity table according to the first access request; and if the first remaining accessible quantity is smaller than the first threshold value, rejecting the first access request of the network equipment. By the method and the device, the distribution problem of the router access equipment can be intelligently solved, the reasonable and balanced quantity of the equipment accessed by each router is ensured, the network stability of the equipment is ensured, and the network speed experience of a user is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a flowchart illustrating a network access allocation method according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a network access allocation method according to an embodiment of the present application;
fig. 3 is a block diagram of a network access distribution system according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a flowchart illustrating a network access allocation method according to an embodiment of the present application; referring to fig. 1, the network access allocation method is applied to a router, which is any one of router nodes, and includes the following steps:
S100A: a first access request of a network device is received.
Specifically, the network device is a device to be accessed to a network. The network equipment can access the network through the router and the gateway in sequence. The first access request of the network device is sent in a broadcast manner, so that each router in the router node can receive the first access request of the network device.
S200A: and acquiring the first remaining accessible quantity from the first allowed access quantity table according to the first access request.
Specifically, taking one router in the router nodes as an example, after receiving the first access request, the router obtains the first remaining accessible number of the currently accessible device by looking up its own first allowed access number table. The first remaining accessible number is the number of remaining accessible devices of the router.
The first allowed access quantity table represents the state of the access equipment of the corresponding router. The first access allowance table may store an allowance of the router accessible device and an accessed amount of the accessed device.
The allowable amount of each router accessible device is set in advance by an engineer according to actual conditions.
The first table of allowed access numbers may also store the current first remaining number of accessible accesses.
Step S200A specifically includes: and acquiring a first remaining accessible quantity according to the difference value between the allowed quantity of the router accessible equipment and the accessed quantity of the accessed equipment in the first allowed access quantity table.
In another embodiment, the first allowable access quantity table stores a first remaining accessible quantity of the router, the first remaining accessible quantity is obtained by subtracting 1 from a current first remaining accessible quantity after each successful access to one network device, and an initial value of the current first remaining accessible quantity is an allowable quantity of the router accessible device.
S300A: and if the first remaining accessible quantity is smaller than the first threshold value, rejecting the first access request of the network equipment.
Specifically, if the router knows that the current first remaining accessible quantity is smaller than the first threshold value through table lookup, the router rejects the first access request of the network device.
The first threshold value is a positive integer greater than or equal to 1.
If the first threshold is a positive integer greater than or equal to 2, the router rejects the first access request of the network device even if the first remaining accessible number is not 0. The emergency access channel can be reserved for each router to deal with emergency situations. For example, there are suddenly a large number of devices to access or there are emergency devices to connect, etc.
The setting of the first threshold determines the number of accesses reserved by the router, and the specific value can be set according to the actual situation.
In a specific embodiment, in order to ensure the communication quality and reduce unnecessary delay, a pre-selection rule may be further set for each router, the router in the router node acquires the communication distance with the network device, and rejects the first access request of the network device if the communication distance is greater than the distance threshold.
In one embodiment, the method further comprises the steps of:
S400A: if the first remaining accessible quantity is larger than or equal to a first threshold value, acquiring current access states of other routers and network equipment in the router nodes within a first preset distance range;
S500A: if the current access states of other routers and network equipment are as follows: and if no other router in the router nodes in the first preset distance range establishes connection with the network equipment, establishing connection with the network equipment.
If the current access states of other routers and the network equipment are as follows: if any other router exists in the router nodes within the first preset distance range and the connection is established with the network equipment, the connection with the network equipment is refused to be established.
Specifically, each router in the router nodes receives the first access request of the network device, and therefore, any router may preemptively establish a connection relationship with the network device. In order to avoid network confusion and resource waste caused by the fact that one network device is connected with a plurality of routers at the same time, when each router acquires the residual access amount of the router, whether other routers establish connection with the network device or not is required to be known. A router may establish a connection with the network device if no other router has established a connection with the network device.
The first preset distance range is a communication distance range between the routers.
In one embodiment, the method further comprises the steps of:
S060A: updating the first allowed access quantity table after establishing connection with the network equipment;
S070A: updating the network equipment information to an accessed equipment management table;
S080A: and sharing the updated accessed equipment management table to the router node.
Specifically, each router has its own table of the first allowed access number and the accessed device management table. The first allowed access quantity table and the accessed device management table may be stored in corresponding routers, or the first allowed access quantity table and the accessed device management table of all routers may be stored in a common storage area, so that all routers can share the first allowed access quantity table and the accessed device management table of all routers.
After the router establishes connection with the network equipment, the first allowed access quantity table of the router is updated, and meanwhile, the network equipment information is stored and updated into the accessed equipment management table.
Each router in the router nodes can broadcast the current equipment access state updated by the router to other routers in a sharing mode.
In a specific embodiment, each router may only obtain the current device access status of other routers within a preset distance range.
In a particular embodiment, the method further comprises the steps of:
S400A: if the first remaining accessible quantity is larger than or equal to a first threshold value, acquiring current access states of other routers and network equipment in the router nodes within a first preset distance range;
S500A: if the current access states of other routers and network equipment are as follows: if no other router in the router nodes in the first preset distance range establishes connection with the network equipment, acquiring a first remaining accessible quantity of each other router in the router nodes in the first preset distance range;
S600A: comparing the first remaining accessible quantity of the router with the first remaining accessible quantity of each other router;
S700A: and if the first remaining accessible quantity of any other router is higher than the first remaining accessible quantity of the router, rejecting the first access request of the network equipment, and if the first remaining accessible quantity of any other router is not higher than the first remaining accessible quantity of the router, establishing connection with the network equipment.
Specifically, if the router has a remaining accessible quantity, and no other router currently establishes a connection with the network device within the first preset distance range, the router compares the first remaining accessible quantity of the router with the first remaining accessible quantity of other routers within the first preset distance range, and if the first remaining accessible quantity of the router is higher than the first remaining accessible quantity of any other router within the first preset distance range, the router establishes a connection with the network device. And if the first remaining accessible quantity of any other router in the first preset distance range is higher than the first remaining accessible quantity of the router, the router refuses to establish connection with the network equipment.
The low priority allocation principle is implemented by the present embodiment. Small amount means that the number of accessed devices is small, meaning that the amount of unaccessed or remaining accessible is large. Further, the number of access devices of each router is balanced.
In one embodiment, the method further comprises the steps of:
S400A: and if the first remaining accessible quantity is larger than or equal to the first threshold value, acquiring the current access states of other routers and network equipment in the router nodes within the first preset distance range.
S500A: if the current access states of other routers and network equipment are as follows: if no other router in the router nodes in the first preset distance range establishes connection with the network equipment, the communication feasibility between the router nodes and the network equipment is acquired;
wherein the communication feasibility is determined by the communication distance and/or the communication signal strength.
In particular, the communication feasibility is used for characterizing whether the router and the network equipment are suitable for communication connection. The communication feasibility is determined by the communication distance and/or the communication signal strength of the router and the network equipment.
The longer the communication distance between the router and the network equipment is, the more unsuitable the communication is; the smaller the communication signal strength between the router and the network device, the less suitable the communication is.
The communication feasibility may be in inverse relation to the communication distance, for example, the communication feasibility may be the inverse or negative of the communication distance.
The communication feasibility may also be proportional to the communication signal strength.
The communication feasibility may also be a weighting of the communication distance and the communication signal strength.
S600A: and acquiring a first remaining accessible quantity of each other router in the router nodes within a first preset distance range.
S700A: and selecting the router with the first remaining accessible quantity larger than the first threshold value from other routers as a candidate router.
Specifically, the router obtains a first remaining accessible number of other routers within a first preset distance range, and if there is a router with the first remaining accessible number greater than a first threshold, the router is taken as a candidate router. The candidate router determines whether the router is better suited to establish a connection with the network device.
S800A: and acquiring the communication feasibility degree of each candidate router and the network equipment.
S900A: and comparing the communication feasibility degree of the router and the network equipment with the communication feasibility degree of each candidate router and the network equipment.
S1000A: if the communication feasibility between any candidate router and the network equipment is higher than the communication feasibility between the candidate router and the network equipment, rejecting a first access request of the network equipment; and if the communication feasibility of any candidate router and the network equipment is not higher than the communication feasibility of the candidate router and the network equipment, establishing connection with the network equipment.
Specifically, if the communication feasibility degree is in inverse proportion to the communication distance, the router may obtain the communication feasibility degree by taking the reciprocal or negative of the communication distance between the router and the network device.
If the communication feasibility degree is in direct proportion to the communication signal strength, the router takes the communication signal strength of the router and the network equipment as the communication feasibility degree.
If the communication feasibility is the weighting of the communication distance and the communication signal strength, the router can weight the communication distance and the communication signal strength of the router and the network equipment to obtain the communication feasibility.
The router compares the communication feasibility degree of the router with the communication feasibility degrees of other candidate routers, and if the communication feasibility degree of any candidate router and the network equipment is higher than the communication feasibility degree of the router and the network equipment, the router refuses a first access request of the network equipment; and if the communication feasibility of any candidate router and the network equipment is not higher than the communication feasibility of the candidate router and the network equipment, establishing connection with the network equipment.
In the embodiment, the communication feasibility of each router and the network equipment is detected in advance from two dimensions of communication signal strength and communication distance, so that the network equipment can be accessed to a network with strong communication signals or a network with short delay and capable of fast communication, and the communication quality of the network equipment is ensured.
In one embodiment, before step S100A, the method further comprises the steps of:
S010A: sending a second access request to a gateway node, wherein the gateway node comprises at least one gateway connected with the network;
S020A: receiving an authentication request of the target gateway responding to the second access request;
S030A: and responding to the authentication request of the target gateway to establish communication with the target gateway.
In particular, there is at least one gateway in the gateway node. The router needs to establish a connection with a gateway in the gateway node in order to access the network. The router sends the second access request to the gateway node in a broadcast manner. Thus, each network-connected gateway can receive the second access request. But not every gateway will establish a connection with the router, but at most only one gateway will establish a connection with the router. If the target gateway responds to the second access request in the gateway node, the router and the target gateway establish communication after mutual authentication. The authentication process specifically includes confirming whether the connection authority is provided or not, whether the connection is illegal or not through an encryption and decryption technology, and the like. The authenticated content may include: the process is an identity intercommunication before two parties establish communication.
Fig. 2 is a flowchart illustrating a network access allocation method according to an embodiment of the present application; referring to fig. 2, the network access allocation method is applied to a gateway, where the gateway is a gateway of any one of gateway nodes connected to a network, and the method includes the following steps:
S100B: receiving a second access request of the router to be accessed;
S200B: acquiring a second remaining accessible quantity from a second allowed access quantity table according to the second access request;
S300B: if the second remaining accessible quantity is smaller than a second threshold value, rejecting a second access request of the router to be accessed;
the second allowed access quantity table represents the state of the corresponding gateway access router.
Specifically, the router can access the network through the gateway. The second access request of the router is sent in a broadcast form, so that each gateway in the gateway node can receive the second access request of the router.
Taking one of the gateway nodes as an example, after receiving the second access request, the gateway obtains the second remaining accessible number of the current accessible router by searching the second allowed access number table of the gateway node. The second remaining accessible number is the number of remaining accessible routers of the gateway.
The second allowed access quantity table represents the state of the corresponding gateway access router. The second allowed access quantity table may store the allowed quantity of the accessible router of the gateway and the accessed quantity of the accessed router.
The second table of allowed access numbers may also store a current second remaining accessible number.
The allowed amount of each gateway accessible router is set by an engineer in advance according to actual conditions.
Step S200B specifically includes: and acquiring a second residual accessible quantity according to the difference value between the allowed quantity of the gateway accessible router and the accessed quantity of the accessed router in the second allowed access quantity table.
In another embodiment, the second allowed access number table stores a second remaining accessible number of the gateway, the second remaining accessible number is obtained by subtracting 1 from the current second remaining accessible number after each successful access to one router, and an initial value of the current second remaining accessible number is an allowed number of the router accessible to the gateway.
S300B: and if the second remaining accessible quantity is smaller than a second threshold value, rejecting a second access request of the router.
Specifically, if the gateway knows that the current second remaining accessible quantity is smaller than the second threshold value through table lookup, the gateway rejects the second access request of the router.
The second threshold value is a positive integer greater than or equal to 1.
If the second threshold is a positive integer greater than or equal to 2, the gateway rejects the second access request of the router even if the second remaining accessible number is not 0. The emergency access channel can be reserved for each gateway to deal with emergency situations. For example, there are suddenly a large number of routers to access or there are emergency devices to connect, etc.
The setting of the second threshold determines the access quantity of the gateway reservation, and the specific value can be set according to the actual situation.
In an embodiment, in order to ensure the communication quality and reduce unnecessary delay, a pre-selection rule may be further set for each gateway, and a gateway in the gateway node acquires a communication distance from the router, and rejects the second access request of the router if the communication distance is greater than a distance threshold.
In one embodiment, the method further comprises the steps of:
S400B: if the second remaining accessible quantity is larger than or equal to a second threshold value, acquiring the current access states of other gateways in the gateway nodes in a second preset distance range and the router to be accessed;
S500B: if the current access states of other gateways and the router to be accessed are as follows: and if no other gateway in the gateway nodes in the second preset distance range is connected with the router to be accessed, the gateway is connected with the router to be accessed.
If the current access states of other gateways and the router to be accessed are as follows: if any other gateway exists in the router nodes within the second preset distance range and the connection is established with the router to be accessed, the connection with the router to be accessed is refused to be established.
Specifically, if the current access states of other gateways and routers are: if any other gateway exists in the gateway nodes in the second preset distance range and is connected with the router, the connection with the router is refused to be established.
Specifically, each gateway in the gateway node receives the second access request of the router, and therefore, any gateway may preempt the connection relationship with the router. In order to avoid network confusion and resource waste caused by the fact that one router is connected with a plurality of gateways at the same time, when each gateway acquires the residual access amount of the gateway, whether other gateways establish connection with the router or not is required to be acquired. A gateway may only establish a connection with the router if no other gateway has established a connection with the router.
And the second preset distance range is a communication distance range between the gateways.
In one embodiment, the method further comprises the steps of:
S400B: if the second remaining accessible quantity is larger than or equal to a second threshold value, acquiring the current access states of other gateways in the gateway nodes in a second preset distance range and the router to be accessed;
S500B: if the current access states of other gateways and the router to be accessed are as follows: if no other gateway in the second preset distance range gateway node is connected with the router to be accessed, acquiring a second residual accessible quantity of each other gateway in the second preset distance range gateway node;
S600B: comparing the second remaining accessible quantity of the gateway with the second remaining accessible quantity of each other gateway;
S700B: and if the second remaining accessible quantity of any other gateway is higher than the second remaining accessible quantity of the gateway, rejecting the second access request of the router to be accessed, and if the second remaining accessible quantity of any other gateway is not higher than the second remaining accessible quantity of the gateway, establishing connection with the router to be accessed.
Specifically, if the gateway has the remaining accessible quantity, and no other gateway currently establishes a connection with the router to be accessed within the second preset range, the gateway compares the second remaining accessible quantity of the gateway with the second remaining accessible quantity of the other gateway within the second preset distance range, and if the second remaining accessible quantity of the gateway is higher than the second remaining accessible quantity of any other gateway within the second preset distance range, the gateway establishes a connection with the router to be accessed. And if the second remaining accessible quantity of any other gateway in the second preset distance range is higher than the second remaining accessible quantity of the gateway, the gateway refuses to establish connection with the router to be accessed.
The low priority allocation principle is implemented by the present embodiment. Small means that the number of accessed routers is small, meaning that the amount of unaccessed or remaining accessible is large. Further, the number of access routers of each gateway is balanced.
In one embodiment, the method further comprises:
S060B: updating a second allowed access quantity table after establishing connection with the router to be accessed;
S070B: updating the information of the router to be accessed into the management table of the accessed router;
S080B: and sharing the updated accessed router management table into the gateway node.
Specifically, each gateway has its own table of the second allowed access number and the accessed router management table. The second allowed access quantity table and the accessed router management table may be stored in corresponding gateways, or the second allowed access quantity table and the accessed router management table of all the gateways may be stored in a common storage area, so that all the gateways can share the second allowed access quantity table and the accessed router management table of all the gateways.
After the gateway establishes connection with the router to be accessed, the second allowed access quantity table of the gateway can be updated, and meanwhile, the information of the router to be accessed can be stored and updated into the management table of the accessed router.
Each gateway in the gateway nodes can broadcast the current router access state updated by the gateway node to other gateways in a sharing mode.
In a specific embodiment, each gateway may only obtain the current router access status of other gateways within a preset distance range.
In an embodiment, an embodiment of the present application provides a network access allocation method, which is applied to a network device, and the method includes the following steps:
sending a first connection request to a router node;
receiving an authentication request of a target router responding to the first connection request;
and responding to the authentication request of the target router to establish communication connection with the target router.
It should be understood that although the various steps in the flowcharts of fig. 1 and 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1 and 2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
Fig. 3 is a block diagram of a network access distribution system according to an embodiment of the present application; referring to fig. 3, the network access distribution system includes: the gateway node comprises a plurality of gateways connected with the network, and the router node comprises a plurality of routers;
any gateway is used for receiving a second access request of the router to be accessed, obtaining a second remaining accessible quantity from a second allowed access quantity table according to the second access request, and if the second remaining accessible quantity is larger than or equal to a second threshold value and no other gateway in the route gateway nodes in a second preset distance range is connected with the router to be accessed, establishing connection with the router to be accessed;
and any one router is used for receiving a first access request of the network equipment, acquiring a first remaining accessible quantity from the allowed access quantity table according to the first access request, and establishing connection with the network equipment if the first remaining accessible quantity is greater than or equal to a first threshold and no other router in the router nodes in the first preset distance range is connected with the network equipment.
In one embodiment, the networking mode of the network access distribution system is a Mesh networking mode. The router is a mesh router, and the gateway is a mesh gateway. Of course, the application is not only applied to the network communication system of mesh networking, but also applied to the network communication system of networking in other modes.
The mesh networking has the characteristic of strong independence, so that the gateway node and the router node do not influence the normal operation of the network, the stability of the network is improved, and the whole network cannot be used due to the damage of one router. The only disadvantage is that when the router accesses too many devices, the net speed experience of the user is reduced. Since the number of devices that each router can access is limited, how to intelligently allocate the number of devices that are accessed is a very important issue.
Mesh networking has slowly entered into community, home, enterprise networks. When the gateway router and the gateway are connected, a bridge for connecting the network device and the network is formed, and due to the fact that the devices are numerous, the router near the access device needs to be matched for surfing the internet. However, the cost is increased due to the arrangement of a large number of gateway routers, and the distribution of network resources is also influenced, so that the Mesh routers are added to serve as access points to be provided for nearby devices, that is, the devices only need to be connected with the Mesh routers, but the network speed experience of users is influenced by the excessive access of the Mesh routers. The network access distribution system is adopted to distribute the access quantity of the routers and the network equipment. For this purpose, the gateway node and the router node are divided. Each node respectively allocates an allowed access number table for each router and gateway, and each time when the network device needs to access the router or the router needs to access the gateway, the router or the gateway determines whether to accept the access request or not by table lookup, thereby realizing intelligent allocation of network access.
The method and the device solve the problem of intelligent distribution of the routers in a mesh networking mode. mesh networking is like a huge spider network. Each mesh router is equivalent to a node in the network. Intelligent allocation is achieved by adding an allowed access number table in each node. By the method and the device, the number of the access devices of each router and the number of the access routers of each gateway can be controlled, so that the network speed experience is guaranteed and improved. The trouble that the network speed of the network equipment is too slow or the network speed experience is influenced due to the fact that one router has too many access devices or one gateway has too many access routers is reduced as much as possible.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A network access distribution method is applied to a router, the router is any one router in router nodes, and the method is characterized by comprising the following steps:
receiving a first access request of network equipment;
acquiring a first remaining accessible quantity from a first allowed access quantity table according to the first access request;
if the first remaining accessible quantity is smaller than a first threshold value, rejecting a first access request of the network equipment;
the first allowed access quantity table represents the state of the corresponding router access equipment.
2. The method of claim 1, further comprising:
if the first remaining accessible quantity is larger than or equal to a first threshold value, acquiring current access states of other routers in the router nodes and the network equipment within a first preset distance range;
if the current access states of other routers and the network equipment are as follows: and if no other router in the router nodes is connected with the network equipment within the first preset distance range, the router nodes are connected with the network equipment.
3. The method of claim 2, further comprising:
updating the first allowed access quantity table after establishing connection with the network equipment;
updating the network equipment information to an accessed equipment management table;
and sharing the updated accessed equipment management table to the router node.
4. The method of claim 2, wherein if the current access status of the other routers and the network device is: if any other router exists in the router nodes within the first preset distance range and the connection is established with the network equipment, the connection with the network equipment is refused to be established.
5. The method of claim 1, further comprising:
if the first remaining accessible quantity is larger than or equal to a first threshold value, acquiring current access states of other routers in the router nodes and the network equipment within a first preset distance range;
if the current access states of other routers and the network equipment are as follows: if no other router in the router nodes is connected with the network equipment within a first preset distance range, acquiring a first remaining accessible quantity of each other router in the router nodes within the first preset distance range;
comparing the first remaining accessible quantity of the router with the first remaining accessible quantity of each other router;
if the first remaining accessible quantity of any other router is higher than the first remaining accessible quantity of the router, rejecting the first access request of the network equipment;
and if the first remaining accessible quantity of any other router is not higher than the first remaining accessible quantity of the router, establishing connection with the network equipment.
6. The method of claim 1, wherein prior to the receiving the first access request from the network device, the method further comprises:
sending a second access request to a gateway node, the gateway node comprising at least one network-connected gateway;
receiving an authentication request of a target gateway responding to the second access request;
responding to the authentication request of the target gateway to establish communication with the target gateway.
7. A network access allocation method is applied to a gateway, wherein the gateway is a gateway of any one of gateway nodes connected with a network, and the method comprises the following steps:
receiving a second access request of the router to be accessed;
acquiring a second remaining accessible quantity from a second allowed access quantity table according to the second access request;
if the second remaining accessible quantity is smaller than a second threshold value, rejecting a second access request of the router to be accessed;
and the second allowed access quantity table represents the state of the corresponding gateway access router.
8. The method of claim 7, further comprising:
if the second remaining accessible quantity is larger than or equal to a second threshold value, acquiring current access states of other gateways in the gateway nodes and the router to be accessed within a second preset distance range;
if the current access states of other gateways and the router to be accessed are as follows: and if no other gateway in the gateway nodes is connected with the router to be accessed within a second preset distance range, the gateway nodes are connected with the router to be accessed.
9. The method of claim 8, further comprising:
updating the second allowed access quantity table after establishing connection with the router to be accessed;
updating the information of the router to be accessed into an accessed router management table;
and sharing the updated accessed router management table to the gateway node.
10. A network access distribution system, the system comprising: a gateway node comprising a plurality of network-connected gateways and a router node comprising a plurality of routers;
any gateway, configured to receive a second access request of a router to be accessed, obtain a second remaining accessible quantity from a second allowed access quantity table according to the second access request, and establish a connection with the router to be accessed if the second remaining accessible quantity is greater than or equal to a second threshold and no other gateway in the gateway nodes establishes a connection with the router to be accessed within a second preset distance range;
any router is configured to receive a first access request of a network device, obtain a first remaining accessible number from an allowed access number table according to the first access request, and establish a connection with the network device if the first remaining accessible number is greater than or equal to a first threshold and no other router in the router node has established a connection with the network device within a first preset distance range.
CN202011490834.7A 2020-12-16 2020-12-16 Network access distribution method and system Active CN112672404B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011490834.7A CN112672404B (en) 2020-12-16 2020-12-16 Network access distribution method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011490834.7A CN112672404B (en) 2020-12-16 2020-12-16 Network access distribution method and system

Publications (2)

Publication Number Publication Date
CN112672404A true CN112672404A (en) 2021-04-16
CN112672404B CN112672404B (en) 2023-06-16

Family

ID=75404243

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011490834.7A Active CN112672404B (en) 2020-12-16 2020-12-16 Network access distribution method and system

Country Status (1)

Country Link
CN (1) CN112672404B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104780553A (en) * 2014-01-10 2015-07-15 中兴通讯股份有限公司 Wireless access point access communication terminal management method, wireless access point access communication terminal management device and wireless access terminal
CN105682233A (en) * 2016-01-12 2016-06-15 杭州树熊网络有限公司 Wireless fidelity WI-FI sharing method and device
CN110278568A (en) * 2019-06-11 2019-09-24 广州极飞科技有限公司 Method, network system based on network equipment building networking
CN111818528A (en) * 2020-07-09 2020-10-23 珠海格力电器股份有限公司 Connection method and device of wireless local area network, storage medium and wireless access equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104780553A (en) * 2014-01-10 2015-07-15 中兴通讯股份有限公司 Wireless access point access communication terminal management method, wireless access point access communication terminal management device and wireless access terminal
CN105682233A (en) * 2016-01-12 2016-06-15 杭州树熊网络有限公司 Wireless fidelity WI-FI sharing method and device
CN110278568A (en) * 2019-06-11 2019-09-24 广州极飞科技有限公司 Method, network system based on network equipment building networking
CN111818528A (en) * 2020-07-09 2020-10-23 珠海格力电器股份有限公司 Connection method and device of wireless local area network, storage medium and wireless access equipment

Also Published As

Publication number Publication date
CN112672404B (en) 2023-06-16

Similar Documents

Publication Publication Date Title
US9876824B2 (en) Policy-based control layer in a communication fabric
US10419531B2 (en) Method for setting gateway device identity, and management gateway device
WO2018201630A1 (en) Communication method and related apparatus
US20230032802A1 (en) Methods and systems for connecting to a wireless network
CN106332182B (en) Wireless access method and device
US20210337463A1 (en) Systems and methods for prioritizing service set identifiers on a wireless access point
CN107404512B (en) Resource subscription method, resource subscription device and resource subscription system
US20160226790A1 (en) Provisioning and managing resources
US20200244565A1 (en) Discovery and admission control of forwarding boxes in a software-defined network
US20130305393A1 (en) Method for configuring access rights, control point, device and communication system
CN104429028A (en) Network configuration method, device and system based on sdn
AU2014410591A1 (en) Connection establishment method, device, and system
US20070162980A1 (en) SYSTEM AND METHOD FOR PROVIDING CONTENT SECURITY IN UPnP SYSTEMS
US20160308870A1 (en) Network access method and apparatus
CN104994158B (en) Method for safely controlling household appliances through centralized gateway
WO2018072824A1 (en) Network entity and method for a communication network having core network slices and access network slices
CN112672404A (en) Network access distribution method and system
CN114500380A (en) Flow control method and device and electronic equipment
CN114189817A (en) Group service processing method, device, internet gateway and storage medium
SG178407A1 (en) Method and apparatus for constructing seed group in peer-to-peer application and method for using seed group
CN113228776A (en) Resource allocation for unmanaged communication links
CN116389173B (en) Method, system, medium and equipment for realizing enterprise production network ad hoc network
CN113133130B (en) Communication method and device
JP7327739B2 (en) Network device role self-adaptive method and apparatus
CN111654863B (en) Internet of things network distribution method and system based on double AP independent network bridges

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
GR01 Patent grant
GR01 Patent grant