CN112672404B - Network access distribution method and system - Google Patents

Network access distribution method and system Download PDF

Info

Publication number
CN112672404B
CN112672404B CN202011490834.7A CN202011490834A CN112672404B CN 112672404 B CN112672404 B CN 112672404B CN 202011490834 A CN202011490834 A CN 202011490834A CN 112672404 B CN112672404 B CN 112672404B
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.)
Active
Application number
CN202011490834.7A
Other languages
Chinese (zh)
Other versions
CN112672404A (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 residual accessible quantity from a first allowed access quantity table according to a first access request; and rejecting the first access request of the network device if the first remaining number of accessible devices is less than a first threshold. The distribution problem of router access equipment can be intelligently solved through the method, the reasonable and balanced quantity of the equipment accessed by each router is guaranteed, and the stability of equipment networks is guaranteed.

Description

Network access distribution method and system
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a network access allocation method and system.
Background
The router is an important component of the networking and serves as a node for the device to connect to the network for authentication of the distribution network before the device is connected to the network. But in practice the number of devices that a router can access is limited. When there are few devices accessed by one router, the network speed experience of the user may not be affected, but when there are too many devices accessed by one router, the network speed is greatly affected. In addition, if devices are all connected to one or more routers, and some routers are idle, resource maldistribution may result. How to improve the user network speed experience and intelligently allocate the number of access devices becomes a technical problem.
Disclosure of Invention
In order to solve the technical problem of uneven network resource allocation caused by uneven number allocation of router access devices, the embodiment of the application provides a network access allocation 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 router in router nodes, and the method includes:
receiving a first access request of network equipment;
acquiring a first residual accessible quantity from a first allowed access quantity table according to a first access request;
if the first remaining accessible number is less than the first threshold, rejecting the first access request of the network device;
the first allowed access number table characterizes a state of the corresponding router access device.
Optionally, obtaining the first remaining accessible number from the first allowed access number table includes:
and obtaining a first residual accessible quantity according to the difference value between the allowable quantity of the router accessible equipment and the accessed quantity of the accessed equipment in the first allowable access quantity table.
Optionally, the method further comprises:
if the first residual accessible quantity is greater than or equal to a first threshold value, acquiring the current access states of other routers and network equipment in the router node within a first preset distance range;
if the current access states of the other routers and the network device are: and if no other router in the router nodes within the first preset distance range has established connection with the network equipment, establishing connection with the network equipment.
Optionally, the method further comprises:
updating a first allowed access quantity table after establishing connection with the network equipment;
updating the network device information into an accessed device management table;
and sharing the updated accessed device management table to the router node.
Optionally, if the current access states of the other routers and the network device are: and if any other router in the router nodes within the first preset distance range has established connection with the network equipment, the connection with the network equipment is refused to be established.
Optionally, the method further comprises:
if the first residual accessible quantity is greater than or equal to a first threshold value, acquiring the current access states of other routers and network equipment in the router node within a first preset distance range;
if the current access states of the other routers and the network device are: if no other router in the router node within the first preset distance range has established connection with the network equipment, acquiring a first residual accessible quantity of each other router in the router node within the first preset distance range;
comparing the first remaining accessible number of the router with the first remaining accessible number of each other router;
if the first residual accessible quantity of any one other router is higher than the first residual accessible quantity of the router, rejecting the first access request of the network equipment;
if the first residual accessible number of any other router is higher than the first residual accessible number of the router, connection is established with the network equipment.
Optionally, the method further comprises:
if the first residual accessible quantity is greater than or equal to a first threshold value, acquiring the current access states of other routers and network equipment in the router node within a first preset distance range;
if the current access states of the other routers and the network device are: if no other router in the router nodes within the first preset distance range is connected with the network equipment, acquiring the communication feasibility of the router nodes and the network equipment;
wherein the communication feasibility is determined by the communication distance and/or the communication signal strength;
acquiring a first residual accessible number of each other router in the router nodes within a first preset distance range;
selecting routers with the first residual 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 of the router with the network equipment with the communication feasibility of each candidate router with the network equipment;
if the communication feasibility of any one candidate router and the network equipment is higher than the communication feasibility of the candidate router and the network equipment, rejecting a first access request of the network equipment;
if the communication feasibility of any one candidate router with the network equipment is higher than the communication feasibility of the candidate router with the network equipment, the candidate router is connected with the network equipment.
Optionally, before receiving the first access request of the network device, the method further comprises:
sending a second access request to a gateway node comprising at least one gateway connected to a network;
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.
In a second aspect, an embodiment of the present application provides a network access allocation method, applied to a gateway, where the gateway is a gateway of any one connected network in a gateway node, and the method includes:
receiving a second access request of the router to be accessed;
acquiring a second residual 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 residual accessible quantity is greater than or equal to a second threshold value, acquiring the current access states of other gateways in the gateway node and the router to be accessed within a second preset distance range;
if the current access states of the other gateways and the router to be accessed are: and if no other gateway in the gateway node within the second preset distance range is connected with the router to be accessed, the connection is established 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 router information to be accessed into an accessed router management table;
and sharing the updated accessed router management table to the gateway node.
Optionally, if the current access states of the other gateways and the router to be accessed are: and if any other gateway exists in the router node within the second preset distance range and is connected with the router to be accessed, the connection with the router to be accessed is refused.
In a third aspect, an embodiment of the present application provides a network access allocation method, applied to a network device, where 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;
responding to the authentication request of the target router to establish a communication connection with the target router.
In a fourth aspect, an embodiment of the present application provides a network access allocation system, including: a gateway node comprising a plurality of gateways connected to the network, and a router node comprising a plurality of routers;
any gateway is used for receiving a second access request of the router to be accessed, acquiring a second residual accessible quantity from a second allowed access quantity table according to the second access request, and if the second residual accessible quantity is greater than or equal to a second threshold value and no other gateway in the gateway nodes within a second preset distance range is connected with the router to be accessed, establishing connection with the router to be accessed;
and any router is used for receiving a first access request of the network equipment, acquiring a first residual accessible quantity from an allowed access quantity table according to the first access request, and if the first residual accessible quantity is greater than or equal to a first threshold value and no other router in the router nodes within a first preset distance range is connected with the network equipment, establishing connection 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, which, when executed by a processor, causes the processor to perform the steps of a method as in any 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 steps of the method as in any of the preceding claims when the program is executed.
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 residual accessible quantity from a first allowed access quantity table according to a first access request; and rejecting the first access request of the network device if the first remaining number of accessible devices is less than a first threshold. The distribution problem of router access equipment can be intelligently solved through the method, the reasonable and balanced quantity of the equipment accessed by each router is guaranteed, the stability of equipment networks is guaranteed, and the network speed experience of users 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 invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a flow chart of a network access allocation method according to an embodiment of the present application;
fig. 2 is a flow chart of a network access allocation method according to an embodiment of the present application;
fig. 3 is a block diagram of a network access allocation system according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of 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 apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present application based on the embodiments herein.
Fig. 1 is a flow chart of 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 steps of:
S100A: a first access request of a network device is received.
Specifically, the network device is a device to be accessed to the network. The network equipment can access the network through the router and the gateway in turn. The first access request of the network device is sent in broadcast form, so that each router in the router node can receive the first access request of the network device.
S200A: and acquiring a first residual 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 the router receives the first access request, the router obtains the first remaining accessible number of the current accessible device by searching a first allowed access number table of the router. The first remaining accessible number is a number of router remaining accessible devices.
The first allowed access number table characterizes a state of the corresponding router access device. The first allowed access number table may store an allowed amount of router accessible devices and an accessed amount of accessed devices.
The allowable amount of each router accessible device is set in advance by engineering personnel according to actual conditions.
The first allowed access number table may also store a current first remaining accessible number.
The step S200A specifically includes: and obtaining a first residual accessible quantity according to the difference value between the allowable quantity of the router accessible equipment and the accessed quantity of the accessed equipment in the first allowable access quantity table.
In another embodiment, the first allowed access number table stores a first remaining accessible number of routers, the first remaining accessible number being obtained by subtracting 1 from a current first remaining accessible number after each successful access to one network device, an initial value of the current first remaining accessible number being an allowed number of the router accessible devices.
S300A: and rejecting the first access request of the network device if the first remaining number of accessible devices is less than a first threshold.
Specifically, if the router knows through the table look-up that the current first remaining number of accessible devices is smaller than the first threshold, the router refuses the first access request of the network device.
The first threshold 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 denies the first access request of the network device even if the first remaining accessible number is not 0. This arrangement allows for emergency access channels to be reserved for each router to cope 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 value determines the reserved access quantity of the router, and the specific value can be set according to actual conditions.
In a specific embodiment, in order to ensure the communication quality and reduce unnecessary delay, a pre-selection rule may be set for each router, and the router in the router node obtains the communication distance with the network device, and if the communication distance is greater than the distance threshold, the first access request of the network device is refused.
In one embodiment, the method further comprises the steps of:
S400A: if the first residual accessible quantity is greater than or equal to a first threshold value, acquiring the current access states of other routers and network equipment in the router node within a first preset distance range;
S500A: if the current access states of the other routers and the network device are: and if no other router in the router nodes within the first preset distance range has established connection with the network equipment, establishing connection with the network equipment.
If the current access states of the other routers and the network equipment are: and if any other router in the router nodes within the first preset distance range has established connection with the network equipment, the connection with the network equipment is refused to be established.
Specifically, each router in the router node receives the first access request of the network device, so any router may first establish a connection 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, each router needs to know whether other routers have established connection with the network device when acquiring that the router has residual access quantity. If no other router has established a connection with the network device, the router may establish 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 a first allowed access quantity table after establishing connection with the network equipment;
S070A: updating the network device information into an accessed device management table;
S080A: and sharing the updated accessed device management table to the router node.
Specifically, each router has its own first allowed access number table and accessed device management table. The first allowed access number table and the accessed device management table may be stored in the corresponding router, or the first allowed access number table and the accessed device management table of all routers may be stored in a common storage area, so that all routers may share the first allowed access number table and the accessed device management table of all routers.
After the router establishes connection with the network device, the router updates the first allowed access quantity table of the router, and meanwhile, the information of the network device is stored and updated in the accessed device management table.
Each router in the router nodes can broadcast the updated current device access state 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 the preset distance range.
In a specific embodiment, the method further comprises the steps of:
S400A: if the first residual accessible quantity is greater than or equal to a first threshold value, acquiring the current access states of other routers and network equipment in the router node within a first preset distance range;
S500A: if the current access states of the other routers and the network device are: if no other router in the router node within the first preset distance range has established connection with the network equipment, acquiring a first residual accessible quantity of each other router in the router node within the first preset distance range;
S600A: comparing the first remaining accessible number of the router with the first remaining accessible number of each other router;
S700A: if the first residual accessible quantity of any one other router is higher than the first residual accessible quantity of the router, rejecting the first access request of the network equipment, and if the first residual accessible quantity of any one other router is not higher than the first residual accessible quantity of the router, establishing connection with the network equipment.
Specifically, if the router has a remaining accessible amount and no other router has been connected to the network device in the first preset range, the router compares the first remaining accessible amount of the router with the first remaining accessible amount of other routers in the first preset range, and if the first remaining accessible amount of the router is higher than the first remaining accessible amount of any one of the other routers in the first preset range, the router establishes a connection with the network device. If the first residual accessible number of any one other router exists in the first preset distance range is higher than the first residual accessible number of the router, the router refuses to establish connection with the network equipment.
The principle of small amount of priority allocation is realized through the embodiment. A small amount means a small number of accessed devices, meaning a large amount of unaccessed or remaining accessible. It is further achieved that the number of access devices per router is balanced.
In one embodiment, the method further comprises the steps of:
S400A: and if the first residual accessible quantity is greater than or equal to a first threshold value, acquiring the current access states of other routers and network equipment in the router node within a first preset distance range.
S500A: if the current access states of the other routers and the network device are: if no other router in the router nodes within the first preset distance range is connected with the network equipment, acquiring the communication feasibility of the router nodes and the network equipment;
wherein the communication feasibility is determined by the communication distance and/or the communication signal strength.
In particular, communication feasibility is used to characterize whether a router is suitable for a communication connection with a network device. The communication feasibility is determined by the communication distance and/or the communication signal strength of the router and the network device.
The farther the router is from the network device, the less suitable the router is for communication; the smaller the communication signal strength of the router with the network device, the less suitable for communication.
The communication feasibility may be inversely related to the communication distance, e.g. the communication feasibility is the inverse or negative of the communication distance.
The communication feasibility degree can also be in direct proportion to the communication signal strength.
The communication feasibility may also be a weighting of the communication distance and the communication signal strength.
S600A: a first remaining accessible number of each other router in the router node within a first preset distance range is obtained.
S700A: and selecting the router with the first residual accessible number larger than the first threshold value from other routers as a candidate router.
Specifically, the router may acquire a first remaining accessible number of other routers within a first preset distance range, and if there are routers with the first remaining accessible number greater than a first threshold, the router is used as a candidate router. The candidate router determines whether the router is more suitable for establishing a connection with the network device.
S800A: and acquiring the communication feasibility of each candidate router and the network equipment.
S900A: the communication feasibility of the router with the network device is compared with the communication feasibility of each candidate router with the network device.
S1000A: if the communication feasibility of any one candidate router and the network equipment is higher than the communication feasibility of the candidate router and the network equipment, rejecting a first access request of the network equipment; if the communication feasibility of any one candidate router with the network equipment is higher than the communication feasibility of the candidate router with the network equipment, the candidate router is connected with the network equipment.
Specifically, if the communication feasibility is inversely related to the communication distance, the router obtains the communication feasibility after taking the reciprocal or negative of the communication distance between itself and the network device.
If the communication feasibility 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.
If the communication feasibility is a weight of the communication distance and the communication signal strength, the router weights 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 of the router with the communication feasibility of other candidate routers, and if any one of the candidate routers has the communication feasibility higher than the communication feasibility of the router and the network equipment, the router refuses the first access request of the network equipment; if the communication feasibility of any one candidate router with the network equipment is higher than the communication feasibility of the candidate router with the network equipment, the candidate router is connected with the network equipment.
According to the embodiment, the communication feasibility of each router and the network equipment is detected in advance from two dimensions of the communication signal intensity and the communication distance, so that the network equipment can be connected to a network with strong communication signals or a network with short delay and quick communication can be connected to the network, and the communication quality of the network equipment is guaranteed.
In one embodiment, prior to step S100A, the method further comprises the steps of:
S010A: sending a second access request to a gateway node comprising at least one gateway connected to a network;
S020A: receiving an authentication request of a target gateway responding to the second access request;
S030A: responding to the authentication request of the target gateway to establish communication with the target gateway.
Specifically, there is at least one gateway in the gateway node. The router also needs to establish a connection with a gateway in the gateway node to access the network. The router sends the second access request to the gateway node in the form of a broadcast. Thus, each gateway of the connected network 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 establishes communication after mutual authentication with the target gateway. The authentication process specifically includes confirming whether the connection authority is available, whether the connection is illegal through encryption and decryption technology, and the like. The authenticated content may include: the process is an identity intercommunication before the two parties establish communication.
Fig. 2 is a flow chart of 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, which is a gateway of any one connected network in gateway nodes, and the method includes the following steps:
S100B: receiving a second access request of the router to be accessed;
S200B: acquiring a second residual 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 number table characterizes 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 broadcast form, so that each of the gateway nodes can receive the second access request of the router.
Taking a gateway in the gateway node as an example, after the gateway receives the second access request, the gateway obtains a second residual accessible number of the current accessible router by searching a second allowed access number table of the gateway. The second remaining number of accessible routers is the number of gateway remaining accessible routers.
The second allowed access number table characterizes the state of the corresponding gateway access router. The second allowed access number table may store an allowed amount of gateway accessible routers and an accessed amount of accessed routers.
The second allowed access number table may also store a current second remaining accessible number.
The allowable amount of each gateway accessible router is set by engineering personnel according to actual conditions in advance.
The step S200B specifically includes: and obtaining a second residual accessible quantity according to the difference value between the allowable quantity of the gateway accessible router and the accessed quantity of the accessed router in the second allowable access quantity table.
In another embodiment, the second allowed access number table stores a second remaining accessible number of gateways, the second remaining accessible number being obtained by subtracting 1 from a current second remaining accessible number after each successful access to one router, an initial value of the current second remaining accessible number being an allowed number of routers accessible to the gateway.
S300B: and if the second remaining accessible number is smaller than the second threshold, rejecting the second access request of the router.
Specifically, if the gateway knows through the table lookup that the current second remaining accessible number is smaller than the second threshold, the gateway refuses the second access request of the router.
The second threshold 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 denies the second access request of the router even if the second remaining accessible number is not 0. This arrangement allows for emergency access channels to be reserved for each gateway to cope 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 value determines the reserved access quantity of the gateway, and the specific value can be set according to actual conditions.
In a specific embodiment, in order to ensure the communication quality and reduce unnecessary delay, a pre-selection rule may be set for each gateway, and the gateway in the gateway node obtains the communication distance between the gateway node and the router, and if the communication distance is greater than the distance threshold, the second access request of the router is refused.
In one embodiment, the method further comprises the steps of:
S400B: if the second residual accessible quantity is greater than or equal to a second threshold value, acquiring the current access states of other gateways in the gateway node and the router to be accessed within a second preset distance range;
S500B: if the current access states of the other gateways and the router to be accessed are: and if no other gateway in the gateway node within the second preset distance range is connected with the router to be accessed, the connection is established with the router to be accessed.
If the current access states of the other gateways and the router to be accessed are: and if any other gateway exists in the router node within the second preset distance range and is connected with the router to be accessed, the connection with the router to be accessed is refused.
Specifically, if the current access states of the other gateways and the router are: and if any other gateway in the gateway node within the second preset distance range has established connection 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, so any gateway may first establish a connection 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, each gateway needs to know whether other gateways have established connection with the router when acquiring the residual access quantity of the gateway. If no other gateway has established a connection with the router, the gateway may establish a connection with the router.
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 residual accessible quantity is greater than or equal to a second threshold value, acquiring the current access states of other gateways in the gateway node and the router to be accessed within a second preset distance range;
S500B: if the current access states of the other gateways and the router to be accessed are: if no other gateway in the gateway node within the second preset distance range is connected with the router to be accessed, obtaining a second residual accessible quantity of each other gateway in the gateway node within the second preset distance range;
S600B: comparing the second remaining accessible number of the gateway with the second remaining accessible number of each other gateway;
S700B: if the second residual accessible quantity of any one other gateway is higher than the second residual accessible quantity of the other gateway, rejecting the second access request of the router to be accessed, and if the second residual accessible quantity of any one other gateway is not higher than the second residual accessible quantity of the other gateway, establishing connection with the router to be accessed.
Specifically, if the gateway has a remaining accessible amount and no other gateway has been connected to the router to be accessed in the second preset range, the gateway compares the second remaining accessible amount of the gateway with the second remaining accessible amount of other gateways in the second preset distance range, and if the second remaining accessible amount of the gateway is higher than the second remaining accessible amount of any other gateway in the second preset distance range, the gateway establishes connection with the router to be accessed. If the second residual accessible number of any one other gateway exists in the second preset distance range is higher than the second residual accessible number of the gateway, the gateway refuses to establish connection with the router to be accessed.
The principle of small amount of priority allocation is realized through the embodiment. A small number means that the number of accessed routers is small, meaning that the amount of unaccessed or the remaining accessible amount is large. Further balancing the number of access routers per gateway is achieved.
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 router information to be accessed into an accessed router management table;
S080B: and sharing the updated accessed router management table to the gateway node.
Specifically, each gateway has its own second allowed access number table and accessed router management table. The second allowed access number table and the accessed router management table may be stored in the corresponding gateway, or the second allowed access number table and the accessed router management table of all gateways may be stored in a common storage area, so that all gateways may share the second allowed access number table and the accessed router management table of all gateways.
After the gateway establishes connection with the router to be accessed, the second allowed access quantity table is updated, and meanwhile, the information of the router to be accessed is stored and updated into the accessed router management table.
Each gateway in the gateway node can broadcast the updated current router access state 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 the preset distance range.
In one embodiment, an embodiment of the present application provides a network access allocation method, applied to a network device, including 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;
responding to the authentication request of the target router to establish a communication connection with the target router.
It should be understood that, although the steps in the flowcharts of fig. 1 and 2 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 1 and 2 may include multiple sub-steps or phases that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or phases are performed necessarily occur sequentially, but may be performed alternately or alternately with at least a portion of the sub-steps or phases of other steps or other steps.
Fig. 3 is a block diagram of a network access allocation system according to an embodiment of the present application; referring to fig. 3, the network access allocation system includes: a gateway node comprising a plurality of gateways connected to the network, and a router node comprising a plurality of routers;
any gateway is used for receiving a second access request of the router to be accessed, acquiring a second residual accessible quantity from a second allowed access quantity table according to the second access request, and if the second residual accessible quantity is greater than or equal to a second threshold value and no other gateway in the gateway nodes within a second preset distance range is connected with the router to be accessed, establishing connection with the router to be accessed;
and any router is used for receiving a first access request of the network equipment, acquiring a first residual accessible quantity from an allowed access quantity table according to the first access request, and if the first residual accessible quantity is greater than or equal to a first threshold value and no other router in the router nodes within a first preset distance range is connected with the network equipment, establishing connection with the network equipment.
In one embodiment, the networking mode of the network access distribution system of the present application is a Mesh networking mode. The router is a mesh router, and the gateway is a mesh gateway. Of course, the present application is not only applied to a network communication system of mesh networking, but also to a network communication system of networking in other manners.
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 because one router is damaged. The only disadvantage is that too many devices are accessed by the router, which results in a reduced user network speed experience. Since the devices that each router can access are limited, how to intelligently allocate the number of access devices is an important issue.
Mesh networking has been slowly entering into community, home, enterprise networks. When the gateway router and the gateway are connected, a network device and a bridge of the network connection are formed, and due to the plurality of devices, routers near the access device are required to be matched and connected to the network. However, a large number of gateway routers are deployed to cause cost increase and influence on network resource allocation, so that Mesh routers are added to serve as access points to nearby devices, that is, the devices only need to be connected with the Mesh routers, but excessive access Mesh routers influence the user network speed experience. The network access distribution system is used for distributing the access quantity of the router and the network equipment. This is divided into gateway nodes and router nodes. Each node is respectively allocated with an allowed access quantity table for each router and gateway, and each time the router is to be accessed to the network equipment or the router is to be accessed to the gateway, the router or the gateway can determine whether to accept the access request or not through table lookup, thereby realizing intelligent network access allocation.
The method and the device solve the problem of intelligent distribution of the router by adopting a mesh networking mode. mesh networking is just like a massive spider network. Each mesh router acts as a node in the network. Intelligent allocation is achieved by adding an allowed access number table in each node. The number of the access devices of each router and the number of the access routers of each gateway can be controlled through the method and the device, 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 experience of the network speed is influenced because of too many router access devices or too many gateway access routers is reduced as much as possible.
It should be noted that in this document, relational terms such as "first" and "second" and the like are 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. Moreover, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is only a specific embodiment of the invention to enable those skilled in the art to understand or practice the 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 (8)

1. A network access allocation method applied to a router, wherein the router is any router in a router node, and the method comprises the following steps:
receiving a first access request of network equipment;
acquiring a first residual 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 device;
the first allowed access quantity table characterizes the state of the access equipment of the corresponding router;
wherein the method further comprises:
if the first residual accessible quantity is greater than or equal to a first threshold value, acquiring the current access states of other routers in the router node and the network equipment within a first preset distance range;
if the current access states of the other routers and the network equipment are: and if no other router in the router node within the first preset distance range has established connection with the network equipment, establishing connection with the network equipment.
2. The method according to claim 1, wherein the method further comprises:
updating the first allowed access quantity table after establishing connection with the network equipment;
updating the network equipment information into an accessed equipment management table;
and sharing the updated accessed device management table to the router node.
3. The method of claim 1, wherein if the current access state of the other router and the network device is: and if any other router in the router node within the first preset distance range has established connection with the network equipment, the connection with the network equipment is refused to be established.
4. The method according to claim 1, wherein the method further comprises:
if the first residual accessible quantity is greater than or equal to a first threshold value, acquiring the current access states of other routers in the router node and the network equipment within a first preset distance range;
if the current access states of the other routers and the network equipment are: if no other router in the router node is connected with the network equipment in the first preset distance range, acquiring a first residual accessible quantity of each other router in the router node in the first preset distance range;
comparing the first remaining accessible number of the router with the first remaining accessible number of each other router;
if the first residual accessible quantity of any one other router is higher than the first residual accessible quantity of the router, rejecting the first access request of the network equipment;
and if the first residual accessible quantity of any other router is higher than the first residual accessible quantity of the router, establishing connection with the network equipment.
5. The method of claim 1, wherein prior to the receiving the first access request by the network device, the method further comprises:
sending a second access request to a gateway node, the gateway node comprising at least one gateway connected to a network;
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.
6. A network access allocation method applied to a gateway, wherein the gateway is any gateway of a connected network in a gateway node, and the method comprises the following steps:
receiving a second access request of the router to be accessed;
acquiring a second residual accessible quantity from a second allowed access quantity table according to the second access request;
if the second residual 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;
wherein the method further comprises:
if the second residual accessible quantity is greater than or equal to a second threshold value, acquiring the current access states of other gateways in the gateway node and the router to be accessed within a second preset distance range;
if the current access states of the other gateways and the router to be accessed are: and if no other gateway in the gateway node is connected with the router to be accessed within a second preset distance range, the gateway node establishes connection with the router to be accessed.
7. The method of claim 6, wherein the method further comprises:
updating the second allowed access quantity table after establishing connection with the router to be accessed;
updating the router information to be accessed into an accessed router management table;
and sharing the updated accessed router management table to the gateway node.
8. A network access allocation system, the system comprising: a gateway node comprising a plurality of gateways of connected networks and a router node comprising a plurality of routers;
any gateway is configured to receive a second access request of a router to be accessed, obtain a second remaining accessible number from a second allowed access number table according to the second access request, and if the second remaining accessible number is greater than or equal to a second threshold, and no other gateway in the gateway node has established a connection with the router to be accessed within a second preset distance range, establish a connection with the router to be accessed;
and any router is used for receiving a first access request of network equipment, acquiring a first residual accessible quantity from an allowed access quantity table according to the first access request, and if the first residual accessible quantity is larger than or equal to a first threshold value and no other router in the router node is connected with the network equipment within a first preset distance range, establishing connection with the network equipment.
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 CN112672404A (en) 2021-04-16
CN112672404B true 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
CN112672404A (en) 2021-04-16

Similar Documents

Publication Publication Date Title
US11362898B2 (en) Network policy configuration
US11096051B2 (en) Connection establishment method, device, and system
US20230032802A1 (en) Methods and systems for connecting to a wireless network
CN106332182B (en) Wireless access method and device
US11528167B2 (en) Method and device for implementing gateway cooperation, IoT gateway and storage medium
US11146477B2 (en) Discovery and admission control of forwarding boxes in a software-defined network
US20160226790A1 (en) Provisioning and managing resources
US20130305393A1 (en) Method for configuring access rights, control point, device and communication system
CN109660593B (en) Internet of things platform access management method, device and system
US11888957B2 (en) Methods, systems, and computer readable media for locality and serving scope set based network function (NF) profile prioritization and message routing
CN117397230A (en) Method, system and computer readable medium for distributing Network Function (NF) High Availability (HA) topology information in a core network
CN112672404B (en) Network access distribution method and system
EP1974525A2 (en) System and method for providing content security in upnp systems
US20230171099A1 (en) Methods, systems, and computer readable media for sharing key identification and public certificate data for access token verification
CN114500380A (en) Flow control method and device and electronic equipment
CN113228776A (en) Resource allocation for unmanaged communication links
SG178407A1 (en) Method and apparatus for constructing seed group in peer-to-peer application and method for using seed group
CN116389173B (en) Method, system, medium and equipment for realizing enterprise production network ad hoc network
US11825349B2 (en) Methods, systems, and computer readable media for dynamic network function discovery responses
JP2019169806A (en) Control device, communication relay device, communication system, and communication control method
CN113572642A (en) Networking method, device and system
US20230345223A1 (en) Methods, systems, and computer readable media for identifying roaming messages
US20240121199A1 (en) Methods, systems, and computer readable media for adjusting and using priorities of service/notification request messages at network functions with multiple slice support
CN113498062A (en) Network equipment role self-adaption method and device
US20230388268A1 (en) Methods and devices for ue service management

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