CN113037652A - Network connection method and device based on distributed networking system and computer equipment - Google Patents

Network connection method and device based on distributed networking system and computer equipment Download PDF

Info

Publication number
CN113037652A
CN113037652A CN202110314578.4A CN202110314578A CN113037652A CN 113037652 A CN113037652 A CN 113037652A CN 202110314578 A CN202110314578 A CN 202110314578A CN 113037652 A CN113037652 A CN 113037652A
Authority
CN
China
Prior art keywords
networking
network
slave
resource
equipment
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
CN202110314578.4A
Other languages
Chinese (zh)
Other versions
CN113037652B (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.)
Yichen Shenzhen Technology Co ltd
Original Assignee
Yichen Shenzhen 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 Yichen Shenzhen Technology Co ltd filed Critical Yichen Shenzhen Technology Co ltd
Priority to CN202110314578.4A priority Critical patent/CN113037652B/en
Publication of CN113037652A publication Critical patent/CN113037652A/en
Application granted granted Critical
Publication of CN113037652B publication Critical patent/CN113037652B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/78Architectures of resource allocation
    • H04L47/783Distributed allocation of resources, e.g. bandwidth brokers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]

Abstract

The application relates to a network connection method, a network connection device, computer equipment and a storage medium based on a distributed networking system. The method comprises the following steps: acquiring a networking resource set corresponding to a first network area from superior master control networking equipment based on a network resource discovery service; receiving a first networking resource allocation request sent by a first slave networking device in a first network area; and responding to the first networking resource allocation request, allocating the first networking resources to the first slave networking equipment based on the networking resource set, so that the first slave networking equipment joins a networking system corresponding to the first network area based on the first networking resources and closes the network resource discovery service. The scheme can orderly control the networking resources of the current master control networking equipment and the slave control networking equipment in the networking system through the on-off control of the network resource discovery service, thereby ensuring the orderly network connection of the equipment.

Description

Network connection method and device based on distributed networking system and computer equipment
Technical Field
The present application relates to the field of network connection technologies, and in particular, to a network connection method and apparatus based on a distributed networking system, a computer device, and a storage medium.
Background
In the networking system, networking equipment and terminal equipment need to be connected based on the established networking system.
In the conventional technology, a configuration guide is provided for networking equipment, and a networking working mode is selected by a user. Due to the influence of subjective factors of users and the like, the networking system may have a situation that the networking working mode is disordered, so that the distribution of network resources in the networking system is disordered.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present application and therefore may include information that does not constitute prior art known to a person of ordinary skill in the art.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a network connection method, apparatus, computer device and storage medium based on a distributed networking system.
A network connection method based on a distributed networking system, the method comprising: acquiring a networking resource set corresponding to a first network area from superior master control networking equipment based on a network resource discovery service; the superior master control networking equipment carries a networking resource set corresponding to a second network area, and the first network area and the second network area have a corresponding relation; receiving a first networking resource allocation request sent by a first slave networking device in the first network area; the first network resource allocation request is generated by the first slave network control device based on the started network resource discovery service; responding to the first networking resource allocation request, allocating first networking resources to the first slave networking equipment based on the networking resource set, so that the first slave networking equipment joins a networking system corresponding to the first network area based on the first networking resources and closes network resource discovery service.
In one embodiment, after the allocating, in response to the first networking resource allocation request, a first networking resource to the first slave networking device based on the set of networking resources, so that the first slave networking device joins a networking system corresponding to the first network area based on the first networking resource and closes a network resource discovery service, the method further includes: receiving a terminal networking resource allocation request transmitted by a terminal device and forwarded by the first slave control networking device after closing the network resource discovery service; the terminal networking resource allocation request is sent to the first slave networking equipment by the terminal equipment based on second networking resources, and the second networking resources are allocated to the terminal equipment by the first slave networking equipment based on the networking resource set; and responding to the terminal networking resource allocation request, allocating a first connection resource to the terminal equipment so that the terminal equipment performs network connection based on the first connection resource.
In one embodiment, the receiving a first networking resource allocation request sent by a first slave networking device in the first network area includes: receiving the first network resource allocation request sent by the first slave network control device after determining that the second slave network control device keeps a silent state to the first slave network control device; the second slave networking control device is in a state of starting the network resource discovery service when keeping a silent state for the first slave networking control device, and closes the network resource discovery service when receiving a third networking resource distributed based on the networking resource set.
In one embodiment, the first slave networking device communicates with the second slave networking device based on a target network connection mode; the receiving a first networking resource allocation request sent by a first slave networking device in the first network area includes: and receiving a first networking resource allocation request sent by the first slave networking equipment based on the target network connection mode.
In one embodiment, the first networking resource allocation request carries an equipment cluster identifier corresponding to the first slave networking equipment; the allocating, in response to the first networking resource allocation request, a first networking resource to the first slave networking device based on the set of networking resources includes: when the device cluster corresponding to the first slave control networking device is determined to be the device cluster in the first network region according to the device cluster identifier corresponding to the first slave control networking device, responding to the first networking resource allocation request, and allocating first networking resources to the first slave control networking device based on the networking resource set.
In one embodiment, the method further comprises: receiving a second networking resource allocation request sent by a third slave networking device; the second networking resource allocation request carries an equipment cluster identifier corresponding to the third slave control networking equipment; and when determining that the device cluster corresponding to the third slave control networking device is not the device cluster in the first network region according to the device cluster identifier corresponding to the third slave control networking device, maintaining a silent state for the second networking resource allocation request.
In one embodiment, after allocating the first networking resource to the first slave networking device based on the networking resource set in response to the first networking resource allocation request, the method further includes: receiving a networking resource allocation request sent by the first slave networking equipment based on the first networking resource; responding to a networking resource allocation request sent by a first slave networking device, allocating a second networking resource to the first slave networking device, so that the first slave networking device performs network connection based on the second networking resource.
A network connection device based on a distributed networking system is applied to current master control networking equipment, and the device comprises: a resource set acquisition module, configured to acquire a networking resource set corresponding to a first network area from a superior master control networking device based on a network resource discovery service; the superior master control networking equipment carries a networking resource set corresponding to a second network area, and the first network area and the second network area have a corresponding relation; the distribution request receiving module is used for receiving a first networking resource distribution request sent by first slave networking equipment in the first network area; the first network resource allocation request is generated by the first slave network control device based on the started network resource discovery service; and the networking system joining module is used for responding to the first networking resource allocation request, allocating first networking resources to the first slave networking equipment based on the networking resource set, so that the first slave networking equipment joins the networking system corresponding to the first network area based on the first networking resources and closes the network resource discovery service.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program: acquiring a networking resource set corresponding to a first network area from superior master control networking equipment based on a network resource discovery service; the superior master control networking equipment carries a networking resource set corresponding to a second network area, and the first network area and the second network area have a corresponding relation; receiving a first networking resource allocation request sent by a first slave networking device in the first network area; the first network resource allocation request is generated by the first slave network control device based on the started network resource discovery service; responding to the first networking resource allocation request, allocating first networking resources to the first slave networking equipment based on the networking resource set, so that the first slave networking equipment joins a networking system corresponding to the first network area based on the first networking resources and closes network resource discovery service.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of: acquiring a networking resource set corresponding to a first network area from superior master control networking equipment based on a network resource discovery service; the superior master control networking equipment carries a networking resource set corresponding to a second network area, and the first network area and the second network area have a corresponding relation; receiving a first networking resource allocation request sent by a first slave networking device in the first network area; the first network resource allocation request is generated by the first slave network control device based on the started network resource discovery service; responding to the first networking resource allocation request, allocating first networking resources to the first slave networking equipment based on the networking resource set, so that the first slave networking equipment joins a networking system corresponding to the first network area based on the first networking resources and closes network resource discovery service.
According to the network connection method and device based on the distributed networking system, the computer equipment and the storage medium, the current master control networking equipment obtains a networking resource set corresponding to the first network area from the superior master control networking equipment based on the network resource discovery service; the first slave control networking equipment in the first network area can acquire the first networking resources from the current master control networking equipment based on the started network resource discovery service, join the networking system corresponding to the first network area based on the first networking resources, and close the network resource discovery service when joining the networking system corresponding to the first network area, so that the first slave control networking equipment is prevented from distributing networking resources to the master control networking equipment and other slave control networking equipment. By controlling the on and off of the network resource discovery service, the networking resources of the current master control networking equipment and the slave control networking equipment in the networking system can be orderly controlled, and the orderly network connection of the networking equipment and the terminal equipment is further ensured.
Drawings
FIG. 1 is a diagram of an application environment of a network connection method based on a distributed networking system in an embodiment;
FIG. 2 is a flowchart illustrating a method for network connection based on a distributed networking system in one embodiment;
FIG. 3 is a network topology diagram of networking devices and terminal devices in one embodiment;
FIG. 4 is a network topology diagram of a networking device in one embodiment;
fig. 5 is a schematic flowchart of a network connection method based on a distributed networking system in another embodiment;
FIG. 6 is a network topology diagram of networking devices and terminal devices in another embodiment;
FIG. 7 is a timing diagram of a method for network connectivity based on a distributed networking system in one embodiment;
FIG. 8 is a block diagram of a network connection device based on a distributed networking system in one embodiment;
FIG. 9 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The network connection method based on the distributed networking system can be applied to the application environment shown in fig. 1. The application environment includes an upper level master networking device 102, a current master networking device 104, and a first slave networking device 106. The current master networking device 104 communicates with the upper master networking device 102 and the first slave networking device 106 through a network, and may communicate with the first slave networking device through a wired or wireless network. As shown in fig. 1, the current master networking device and the first slave networking device are located in a first network area, the first network area is located in a second network area, and the superior master networking device is located in the second network area. And the superior master control networking equipment in the second network area is connected with the current master control networking equipment in the first network area. The current master control networking equipment acquires a networking resource set corresponding to the first network area from the superior master control networking equipment after starting the network resource discovery service. When a first networking resource allocation request sent by a first slave control networking device is received, allocating first networking resources to the first slave control networking device based on a networking resource set, so that the first slave control networking device joins a networking system corresponding to a first network area based on the first networking resources and closes a network resource discovery service. The upper level master networking device may be, but is not limited to, various networking devices, such as a modem, a switch, a router, or the like. The current master networking device and the first slave networking device may be, but are not limited to, various networking devices, such as: may be at least one of a router, a switch, a network card, or the like. In one embodiment, the upper master networking device, the current master networking device, and the first slave networking device may be the same type of networking device, or different types of networking devices.
In one embodiment, as shown in fig. 2, a network connection method based on a distributed networking system is provided. The description is given by taking the example that the method is applied to the current master control networking device in fig. 1, and the method comprises the following steps:
s202, acquiring a networking resource set corresponding to a first network area from superior master control networking equipment based on a network resource discovery service; the superior master control networking equipment carries a networking resource set corresponding to the second network area, and the first network area and the second network area have a corresponding relation.
The networking device refers to a device for establishing a network, and may include a switch, a router, and the like. When the router is a router, a router provided with a Mesh (wireless broadband ad hoc network) function or an Access Control (AC) function may be assigned. The current Master networking device may be a networking device that assumes overall networking management responsibilities and may be referred to as an AC (Access Controller) or a Master (Master Access Controller) in some embodiments. The first Slave networking device is mainly a networking device that undertakes network Access and network responsibility of extended networking, and may be referred to as an AP (Access Point) or a Slave Access controller. The upper-level master control networking equipment is networking equipment connected with the master control networking equipment and is used for distributing network resources for the networking equipment in the second network area. When the networking device is a router, the current master networking device may also be referred to as a master router, a master route, or a master route, the first slave networking device may also be referred to as a slave router, a slave route, or a child route, and the superior master networking device may be referred to as an superior route.
The current master control networking equipment, the first slave control networking equipment and the superior master control networking equipment can form a networking system. The networking system allocates network resources, such as IP (Internet Protocol) addresses and the like, to the terminal device. The terminal equipment realizes network connection based on network resources distributed by the networking equipment in the networking system, so that network communication between the terminal equipment and other terminals or servers is ensured. In some embodiments, the networking system may also include a terminal device, and the terminal device and the networking device may be in a connected state or a temporarily unconnected state. The terminal device may be various devices requiring network connection, and may be a personal computer, a smart phone, a wearable device, and the like. In some cases, the terminal device may also be referred to as a networking terminal. In one embodiment, the terminal device may be a device within a set area, for example, a terminal device within a certain home area. In one embodiment, in a home networking environment, a system formed by a master-slave router, a personal computer, a smart phone, a smart television or a smart bracelet and the like in a home area can be used as a networking system, and the networking system can provide a stable networking system for a home.
In one embodiment, the networking system is a distributed networking system. The distributed networking system is a system formed by a plurality of networking devices, and the networking devices in the system are connected in a wired or wireless mode so as to achieve the purposes of expanding the network coverage range or carrying out centralized control.
A network area may refer to an area covered by a certain network, for example: a network area covered by at least one of a WIFI (Wireless Fidelity, Wireless communication technology) network, a Wireless network, a wired network, or the like. The Network Area may be a Local Area Network (LAN), a Metropolitan Area Network (MAN), a Wide Area Network (WAN), a personal Area Network (personal Area Network), or other Network types. The first network region and the second network region may belong to the same network type or may belong to different network types.
In one embodiment, the correspondence between the first network area and the second network area may include at least one of: 1) the network types of the first network area and the second network area are consistent, for example: the first network area and the second network area are both local area networks; 2) the spatial position corresponding to the first network area is included in the spatial position corresponding to the second network area; 3) the network coverage range corresponding to the first network area and the network coverage range corresponding to the second network area are located at different spatial positions, and the spatial positions where the two are located are in an equal state, for example: the first network area is a local area network area corresponding to the family A, the second network area is a local area network area corresponding to the family B, and the family A and the family B are in a neighbor relation or a relative relation; 4) the network coverage corresponding to the first network area is included in the network coverage corresponding to the second network area, for example: the first network area is a local area network, the second network area is a wide area network, and the first network area is included in the second network area.
In one embodiment, the current master networking device may be a networking device in the target local area network. The spatial position of the current master networking device is included in the spatial position corresponding to the first network area. That is, the local area network corresponding to the current master networking device is covered by the wide area network corresponding to the superior master networking device.
The network resource discovery service includes at least one of a network resource search service, a network resource acquisition service, or a network resource allocation service. The networking equipment can acquire networking resources from superior master control networking equipment based on the network resource discovery service, and also can acquire networking resources from other networking equipment in the networking system based on the network resource discovery service, and complete networking tasks based on the networking resources. In an embodiment, when the network resource discovery service is a network resource allocation service, the network resource discovery service may specifically be a service corresponding to a Dynamic Host Configuration Protocol (DHCP), so as to allocate an IP address to a corresponding networking device and a corresponding terminal device based on the DHCP service.
In one embodiment, the current master networking device may start a network resource discovery service after being started, and obtain a networking resource set corresponding to the first network area from the upper-level master networking device based on the started network resource discovery service. In an embodiment, when the network resource discovery service is DHCP, the current master networking device may serve as a DHCP client to obtain a networking resource set corresponding to the first network area from the upper master networking device.
In an embodiment, the upper master networking device may also start the network resource discovery service after being started, and keep the state of starting the network resource discovery service all the time. The upper level master networking device may be a networking device for accessing network information to the first network area. Taking the first network area as an example of a certain home area, the upper level master control networking device is a networking device for accessing network information into the home network. Further, the upper level master control networking device may be an in-home optical modem (modem) or an in-home switch (up-connection operator router), and the like. In addition, the current master control networking equipment can also carry out network communication with the superior master control networking equipment in a specific network connection mode so as to acquire a networking resource set from the superior master control networking equipment.
The networking resources are networking system information, internet protocol address information and the like required for network construction. The networking resource may be an IP address or the like, and may be understood as a temporary IP address used in the network establishment process, and after the network establishment is completed, the networking device and the terminal device may acquire the IP address again to implement network connection. A networking resource set is a set of at least one networking resource. Different network regions may correspond to different sets of networking resources. Further, the upper level master networking device carries a networking resource set corresponding to the second network area, that is, the upper level master networking device is used for managing networking resources of each sub-network area in the second network area. When a networking resource set acquisition request sent by a master networking device in a certain sub-network area A is received, a networking resource set corresponding to the sub-network area A is returned to the master networking device. In one embodiment, the networking resource set may be a networking resource sequence within a certain sequence range, and when a networking resource allocation request is received, a networking resource sequence at a certain position is selected from the networking resource sequence as the allocated networking resource. For example: and if the networking resource set is 10.1.10.100-10.1.10.200, 10.1.10.100, 10.1.10.101, … … and 10.1.10.200 can be sequentially distributed as networking resources.
In an embodiment, the current master networking device may also acquire the networking resource set from the superior master networking device by using a PPP (Point to Point Protocol) dialing or the like.
In one embodiment, the implementation process of S202 may be: the current master control networking equipment starts a network resource discovery service, sends a networking resource set acquisition request to the superior master control networking equipment based on the network resource discovery service, and receives a networking resource set corresponding to the first network area returned by the superior master control networking equipment based on the networking resource set acquisition request.
S204, receiving a first networking resource allocation request sent by a first slave control networking device in a first network area; the first network resource allocation request is generated by the first slave network control device based on the started network resource discovery service.
The networking resource allocation request is a request for acquiring networking resources, network establishment is carried out based on the acquired networking resources, and a basis for providing network connection for the terminal equipment is provided based on the established network.
In one embodiment, the first slave networking device may be a networking device in a first network region. Further, the spatial position where the first slave networking device is located includes a spatial position corresponding to the first network area.
In one embodiment, the implementation process of S204 may be: the first slave control networking equipment starts a network resource discovery service when being started, generates a first networking resource allocation request based on the started network resource discovery service, and sends the first networking resource allocation request to the current master control networking equipment so as to trigger the current master control networking equipment to allocate networking resources to the first slave control networking equipment based on the first networking resource allocation request.
When the networking system has the condition that networking equipment allocates IP addresses to each other, if the networking equipment A allocates the IP addresses to the networking equipment B and the networking equipment B allocates the IP addresses to the networking equipment C, the IP addresses of the whole networking system are disordered and intertwined, so that the whole network is in an unavailable state. In one embodiment, the first network area may be a network area governed by the current master networking device, that is, the current master networking device performs centralized allocation of networking resources and networking resources to devices in the first network area, and keeps a silent state for devices in other network areas. Furthermore, only one authorized distribution mechanism of networking resources is arranged in the first network area, and the ordering of the distribution of the networking resources can be effectively ensured in a centralized distribution mode.
S206, responding to the first networking resource allocation request, allocating the first networking resources to the first slave control networking equipment based on the networking resource set, so that the first slave control networking equipment joins the networking system corresponding to the first network area based on the first networking resources and closes the network resource discovery service.
The networking resource set comprises at least one networking resource, and the current master control networking device can allocate a first networking resource for the first slave control networking device from the networking resource set in a specific allocation mode. The specific allocation mode may be determined sequentially according to the numbering sequence of the networking resources, or may be determined randomly. Specifically, the current master networking device randomly selects one from the networking resource set as a first networking resource, and sends the first networking resource to the first slave networking device.
The network equipment can complete the networking process for the networking equipment when being added into the networking system. When networking is completed, the corresponding networking equipment is connected with the corresponding networking system, so that the networking system is in network communication with other networking equipment in the same networking system, and meanwhile, the networking equipment can be in communication with the terminal equipment and networking resources are distributed to the terminal equipment. In addition, the networking equipment can also be understood as the networking equipment added into the corresponding network environment, so that the networking equipment can perform network communication with other equipment in the same network environment based on networking resources. Specifically, when receiving the first networking resource, the first slave networking device may establish connection with the networking system in which the first network area is located based on the first networking resource, so as to perform network communication with the networking device in the first network area through the networking system in which the first network area is located, and simultaneously, may perform communication with the terminal device and allocate the networking resource to the terminal device.
In one embodiment, the first slave networking device joins the networking system corresponding to the first network area, and closes the network resource discovery service after allocating networking resources to the terminal device based on the networking system corresponding to the first network area. After the network resource discovery service is closed, the first slave networking device cannot allocate networking resources. After the network resource discovery service is started and before the network resource discovery service is closed, the first slave networking device may allocate networking resources, for example, allocate networking resources to the terminal device.
In one embodiment, the implementation process of S206 may be: when receiving a first networking resource allocation request, the current master networking device selects a first networking resource from the networking resource set and sends the first networking resource to the first slave networking device, and the first slave networking device joins a networking system corresponding to a first network area based on the first networking resource and closes a network resource discovery service.
In the network connection method based on the distributed networking system, the current master control networking equipment acquires a networking resource set corresponding to a first network area from the superior master control networking equipment based on a network resource discovery service; the first slave networking control device in the first network area can acquire the first networking resources from the current master networking control device based on the started network resource discovery service, join the networking system corresponding to the first network area based on the first networking resources, and close the network resource discovery service after joining the networking system corresponding to the first network area, so that the first slave networking control device is prevented from distributing networking resources to the master networking control device and other slave networking control devices. By controlling the on and off of the network resource discovery service, the networking resources of the current master control networking equipment and the slave control networking equipment in the networking system can be orderly controlled, and the orderly network connection of the networking equipment and the terminal equipment is further ensured.
In an embodiment, after the first slave networking device starts the network resource discovery service, the first slave networking device may allocate networking resources to the terminal device, so that the terminal device joins the networking system corresponding to the first network area. After the first slave networking device and the terminal device join the networking system corresponding to the first network area, the first slave networking device may close the network resource discovery service. And the terminal device needs to acquire networking resources to make a network connection based on the networking resources. Since the first slave networking device has already closed the network resource discovery service and the current master networking device is in a state of opening the network resource discovery service, the terminal device may acquire the networking resource from the current master networking device. The way for the terminal device to acquire the networking resource may be, but is not limited to: and directly sending a networking resource allocation request to the current master control networking equipment, and sending the networking resource allocation request to the current master control networking equipment through the first slave control networking equipment.
The networking resources are networking system information, internet protocol address information and the like required for network connection, and the functions of the networking resources and the networking resources can be different. The terminal device can surf the internet based on the networking resources. The networking resource may be an IP address, etc. In making the allocation of networking resources, the hosting networking device may be implemented based on a predetermined set of networking resources, e.g., determining networking resources from a predetermined set of networking resources. Wherein a set of networked resources is a set of at least one networked resource. Further, the set of networking resources may be a sequence of networking resources within a sequence.
In one embodiment, after the networking system is built, that is, after all the networking devices join the networking system corresponding to the first network area, the current master networking device may allocate networking resources to the slave networking devices and the terminal devices in the networking system. When receiving a networking resource allocation request, the current master networking device selects a networking resource sequence at a certain position from the networking resource sequences as the allocated networking resources. The current master control networking equipment can allocate a first connection resource for the terminal equipment from a pre-acquired networking resource set in a specific allocation mode. The specific allocation method may be determined sequentially according to the numbering order of the networking resources, or may be determined randomly. Specifically, the current master networking device selects one from the networking resource sets in sequence as a first networking resource, and sends the first networking resource to the first slave networking device. For example: the networking resources are 192.168.1.100-192.168.1.200, 192.168.1.100, 192.168.1.101, … …, 192.168.1.200 can be sequentially allocated as the networking resources. In one embodiment, the networking resource set may be the networking resource set, and the current master networking device sequentially obtains resources from the networking resource set in order, and respectively uses the resources as the corresponding networking resources and networking resources. In one embodiment, the joining of the first slave networking device to the networking system is taken as a time node. Before the first slave control networking equipment joins the networking system, a resource allocation request sent by the first slave control networking equipment and terminal equipment connected with the first slave control networking equipment is a networking resource allocation request; after the first slave control networking equipment joins the networking system, the resource allocation requests sent by the first slave control networking equipment and the terminal equipment connected with the first slave control networking equipment are networking resource allocation requests.
In one embodiment, after allocating, in response to the first networking resource allocation request, the first networking resource to the first slave-control networking device based on the networking resource set, so that the first slave-control networking device joins the networking system corresponding to the first network area based on the first networking resource and closes the network resource discovery service, the method further includes: receiving a terminal networking resource allocation request sent by a terminal device and forwarded by a first slave networking device after closing a network resource discovery service; the terminal networking resource allocation request is sent to the first slave networking equipment by the terminal equipment based on the second networking resource, and the second networking resource is allocated to the terminal equipment by the first slave networking equipment based on the networking resource set; and responding to the terminal networking resource allocation request, allocating a first connection resource to the terminal equipment so that the terminal equipment performs network connection based on the first connection resource.
The terminal networking resource allocation request is a request for acquiring networking resources for the terminal equipment. The terminal equipment can carry out network connection based on the acquired networking resources, and further carry out network communication with other terminals or servers outside the autonomous network.
In one embodiment, the terminal device establishes a network connection with a certain networking device in the networking system, and the network connection may be a wired network connection mode or a wireless network connection mode. When the networking resources need to be acquired, the terminal equipment sends a networking resource allocation request to the networking equipment with the network connection. Further, as shown in fig. 3, the terminal device is connected to the first slave networking device in a target network connection manner. The terminal equipment sends a first networking resource allocation request to the first slave networking equipment based on the target network connection mode so as to request to acquire second networking resources and join a networking system corresponding to the first network area based on the second networking resources. In an embodiment, as shown in fig. 3, a network connection relationship is established between the terminal device and the first slave control networking device, and when the first slave control networking device is not yet networked, since a path with the current master control networking device is not yet connected, the networking resource cannot be directly obtained through communication with the current master control networking device, and the terminal device can only communicate with the first slave control networking device. When the first slave control networking device completes networking, the terminal device may communicate with the current touch control networking device and the upper master control networking device in the networking system based on the networking resources, so as to allocate the networking resources through the networking device.
In one embodiment, the first slave networking device may set an effective time after issuing the second networking resource, and turn off the network resource discovery service when the effective time arrives. On the other hand, when receiving the second networking resource, the terminal device needs to join the networking system corresponding to the first network area based on the second networking resource within the effective time, and if the networking system corresponding to the first network area is not joined in the effective time, the networking terminal needs to directly send a networking resource allocation request to the current master networking device so as to obtain the networking resource from the current master networking device again. The slave control networking equipment can be responsible for part of networking resource allocation work by allocating networking resources, the operating pressure of the master control networking equipment is reduced, meanwhile, the terminal equipment is stimulated to be added into a networking system as soon as possible through the setting of the effective time, the network connection efficiency is improved, in addition, the distribution of the networking resources can be concentrated into the master control networking equipment based on the setting of the effective time, and the orderliness of the networking resource allocation is ensured. Specifically, the time limit is mainly to enable the terminal device to complete networking as soon as possible, the terminal device can normally acquire the IP address distributed from the route until the networking is completed, and after the networking is completed, the IP address is not distributed any more, the terminal device can acquire the IP address again from the main route within 1 minute, and quickly enter a networking state, that is, quickly complete networking.
In one embodiment, the terminal device sends a networking resource allocation request to the first slave networking device, and the first slave networking device may access the networking resource set acquired by the current master networking device, so as to allocate a second networking resource to the terminal device based on the networking resource set. In addition, the first slave control networking device may also forward the networking resource allocation request to the current master control networking device when receiving the networking resource allocation request sent by the terminal device, so that the current master control networking device allocates the second networking resource to the terminal device based on the networking resource set.
In one embodiment, when the second networking resource is acquired, the terminal device sends a terminal networking resource allocation request to the first slave networking device based on the second networking resource when receiving a networking trigger operation through a display screen or the like in a networking system corresponding to a first network area. At this time, the first slave networking device may forward the terminal networking resource allocation request sent by the terminal device to the current master networking device.
In one embodiment, when the current master networking device receives the terminal networking resource allocation request, the current master networking device may allocate a first connection resource to the terminal device based on the network resource discovery service, so that the terminal device performs network connection based on the first connection resource. Further, the terminal device may connect to the internet based on the first connection resource, and then perform network communication with other terminals or servers in the internet.
In one embodiment, in response to a terminal networking resource allocation request, allocating a first connection resource to a terminal device to enable the terminal device to perform network connection based on the first connection resource, includes: and responding to the terminal networking resource allocation request, returning the first connection resource to the first slave networking equipment, so that the first slave networking equipment allocates the first connection resource to the terminal equipment and triggers the terminal equipment to perform network connection based on the first connection resource.
In one embodiment, a networking device may set up a configuration management page. When the terminal device acquires the second networking resource, the terminal device enters a configuration management page of the networking device based on the second networking resource, performs configuration modification, and modifies related configuration parameters of the networking device, for example: and setting the signal name or password of the internet access.
In the above embodiment, when the first slave control networking device closes the network resource discovery service, the current master control networking device allocates the networking resources to the terminal device, and by closing the network resource discovery service, the networking resources in the networking system can all be allocated by the current master control networking device, thereby preventing the problem of confusion caused by the allocation of the networking resources by multiple networking devices.
The networking equipment does not allocate networking resources to the networking equipment during networking, and only allocates the networking resources to the terminal equipment, so that the condition that the networking equipment allocates IP addresses to each other before the networking equipment is stable can be avoided, and the stability of the networking system during networking is ensured.
In one embodiment, receiving a first networking resource allocation request sent by a first slave networking device in a first network region comprises: receiving a first networking resource allocation request sent by first slave networking equipment after determining that second slave networking equipment keeps a silent state on the first slave networking equipment; the second slave control networking equipment is in a state of starting the network resource discovery service when keeping a silent state for the first slave control networking equipment, and closes the network resource discovery service when receiving a third networking resource distributed based on the networking resource set.
In one embodiment, when the current master networking device is a master route, the master route may operate in a routing mode or a bridging mode. The routing mode is a working mode of networking equipment, a complete firewall system and an IP management system are arranged in the routing mode, and the networking equipment working in the routing mode can be separated from a connected superior network. That is, the master route and the slave route form an independent autonomous network. The master route is responsible for IP address allocation and management throughout the network. In the routing mode, the autonomous network is isolated from the outside, and the main route is an outlet, namely an external outlet for the autonomous network. The Bridge mode is also called as AP or Bridge mode, and is a working mode of networking equipment.
In one embodiment, the current master networking device receives a mode selection instruction through the input interface, and determines an operation mode based on the received mode selection instruction, namely, whether a routing mode or a bridging mode is selected by a user. And then carrying out networking distribution according to the corresponding working mode.
In one embodiment, the first slave control networking device joins the networking system corresponding to the first network region when acquiring the first networking resource, and the second slave control networking device joins the networking system corresponding to the first network region when acquiring the third networking resource. At this time, as shown in fig. 4, the current master networking device, the first slave networking device, and the second slave networking device form an autonomous network, and the current master networking device performs centralized allocation on networking resources and networking resources in the autonomous network.
In one embodiment, the second slave-control networking device may start the network resource discovery service after being started, and when receiving the networking resource allocation request sent by the first slave-control networking device, the second slave-control networking device keeps a silent state for the first slave-control networking device, that is, does not respond to the networking resource allocation request sent by the first slave-control networking device. In some embodiments, the second slave networking device may also send a prompt message not responding to the request to the first slave networking device when receiving the networking resource allocation request sent by the first slave networking device. And when the first slave control networking equipment determines that the second slave control networking equipment keeps a silent state or receives prompt information of a non-response request sent by the second slave control networking equipment, the first slave control networking equipment sends a first networking resource allocation request to the current master control networking equipment.
In one embodiment, the second slave networking device may send a networking resource allocation request to the current master networking device, and the current master networking device may allocate a third networking resource to the second slave networking device based on the networking resource set, at this time, the second slave networking device may join the networking system corresponding to the first network area based on the third networking resource, that is, join the networking system corresponding to the current master networking device, at this time, the second slave networking device may close the network resource discovery service to stop allocating the networking resource and the networking resource to the terminal device or other networking devices.
In one embodiment, a first slave control networking device sends a networking resource allocation request to a second slave control networking device, and when it is determined that the second slave control networking device keeps a silent state for the first slave control networking device, the first slave control networking device sends the first networking resource allocation request to the current master control networking device.
In the above embodiment, the slave control networking device does not respond to the networking resource sending request sent by other slave control networking devices, that is, keeps a silent state for other slave control networking devices, so that each slave control networking device can only obtain networking resources from the current master control networking device in the networking process, thereby realizing centralized allocation of networking resources, further ensuring the orderliness of networking resource allocation, and effectively improving the networking efficiency.
In one embodiment, the current master networking device, the first slave networking device, and the second slave networking device may restart the network resource discovery service after each restart, so as to perform networking and network connection again. The current master control networking equipment, the first slave control networking equipment and the second slave control networking equipment can be restarted when the power is cut off and the network is reconnected or network reconnection operation of a user is received.
In one embodiment, the slave networking device may send a networking resource allocation request to each networking device in the networking system after being started based on the network resource discovery service. The slave networking device receiving the networking resource allocation request keeps a silent state. The current master networking device receiving the networking resource allocation request responds, and then allocates networking resources to the slave networking device sending the networking resource allocation request.
The current master control networking device and the first slave control networking device can be in network connection in a specific network connection mode. The network connection mode comprises a wireless connection mode and a wired connection mode. And the number of the current master networking device and the first slave networking device may be at least one. For the situation that the current master control networking device is one and the first slave control networking device is multiple, different network connection modes can be adopted between the current master control networking device and each slave control networking device. For example: the current master control networking equipment A and the first slave control networking equipment B adopt a wired connection mode, and the current master control networking equipment A and the second slave control networking equipment C adopt a wireless connection mode.
In one embodiment, a single network connection mode, that is, the same network connection mode, is adopted between each networking device in the networking system. Specifically, each networking device is wirelessly connected or wired connected. Through the arrangement, only one communication mode is arranged between the networking devices in the networking system, the problem of a loop that the two networking devices are communicated in a wireless connection mode and a wired connection mode is solved, and the network stability of the networking system is further ensured. In addition, the complexity of the networking circuit and the probability of the failure of the networking system can be reduced by adopting a single network connection mode.
Further, the first slave control networking equipment is communicated with the second slave control networking equipment based on a target network connection mode; receiving a first networking resource allocation request sent by a first slave networking device in a first network area, wherein the first networking resource allocation request comprises: and receiving a first networking resource allocation request sent by the first slave networking equipment based on the target network connection mode.
The target network connection mode comprises a wireless connection mode or a wired connection mode. The wireless connection mode is simple and quick, and the network connection efficiency of the terminal equipment can be effectively improved. Compared with the prior art, the method has the advantages that the wired connection mode is more stable, the throughput is higher, and the performance is higher, so that more stable communication between the slave control networking equipment and the master control networking equipment can be ensured through the wired connection mode.
In one embodiment, the first slave networking device sends a networking resource allocation request to the second slave networking device through a wired connection mode. And the first slave control networking equipment sends a first networking resource allocation request to the current master control networking equipment in a wired connection mode. Further, the current master networking device may also return the first networking resource to the first slave networking device based on a wired connection manner. That is, in the distributed networking system, the superior master control networking device, the current master control networking device, the first slave control networking device and the second slave control networking device all adopt a wired connection mode for network communication.
In one embodiment, the first networking resource allocation request carries an equipment cluster identifier corresponding to the first slave networking equipment; responding to the first networking resource allocation request, allocating first networking resources to first slave networking equipment based on the networking resource set, and comprising the following steps: when the device cluster corresponding to the first slave control networking device is determined to be the device cluster in the first network region according to the device cluster identifier corresponding to the first slave control networking device, responding to the first networking resource allocation request, and allocating the first networking resources to the first slave control networking device based on the networking resource set.
The device cluster identifier includes an identifier for distinguishing a cluster in which the networking device is located, and may be implemented by a specific number.
The cluster may be a set formed by combining a plurality of networking devices, and one device cluster may be a device in a specific spatial region, where the specific spatial region may be a specific physical spatial region divided according to a physical structure, or a specific spatial region divided according to a network coverage. For example: the device cluster is all devices in a certain home area, and includes at least one of a computer, a smart phone, a smart television, a smart washing machine, a smart speaker, a smart refrigerator, a smart door lock, a Pad (tablet computer), a wearable device, and the like.
In one embodiment, the device cluster identifier may be determined according to a network area, and the device cluster identifiers corresponding to networking devices in different network areas are different. Further, the networking device in the first network area carries a device cluster identifier for identifying the first network area. Still further, the device cluster identification may be a room number, for example, with the room number as the device cluster identification for all networked devices in the same room. Specifically, for the networking system set up in room 302. When all networking devices in the room 302 communicate with other networking devices, the device cluster identifier is carried in the communication data: 302, the other networking devices can know that the corresponding networking device is the networking device in the room 302 based on the device cluster identifier carried by the networking device.
Further, when the network resource discovery service is DHCP, the device cluster identifier may carry the device cluster identifier through an OPTION field, and at this time, the device cluster identifier may also be referred to as an OPTION or an OPTION identifier, and may be used to distinguish different terminal device forms. In one embodiment, the OPTION can be transmitted in an autonomous network corresponding to the current master networking device, and the networking devices in the autonomous network can determine that the corresponding devices are devices in the same autonomous network based on the OPTION, and further respond to a request and the like sent by the devices. Further, the slave networking device in the autonomous network carries the OPTION when communicating with the master networking device. The OPTION does not transmit outside the autonomous network corresponding to the current master networking device. In one embodiment, the terminal device may not carry the OPTION when communicating with the networking device.
In the foregoing embodiment, the current master networking device analyzes the device cluster identifier to determine a network area to which the first slave networking device belongs, and when it is determined that the network area to which the first slave networking device belongs is the first network area, it is determined that the first slave networking device and the current master networking device are located in the same network area, and at this time, the first slave networking device is allocated with the first networking resource. The master control networking equipment can distribute networking resources of the administered network areas, independent autonomy of networking systems corresponding to all the network areas is guaranteed, and accordingly network connection orderliness of all the equipment is guaranteed.
In the conventional technology, a network resource discovery service is managed by using a set wizard, and the state of the network resource discovery service in a route is fixed after the wizard is set, for example: the master route is always in a state of turning on the network resource discovery service, and the slave route is always in a state of turning off the network resource discovery service. On the other hand, when the master route in the networking device is abnormal, the slave route cannot communicate with the master route, so that the slave route is disconnected from the network, and because the network resource discovery service is closed, the user cannot effectively check and manage the abnormal device, so that trouble removal is difficult, and maintenance cost is increased. In an embodiment, when the current master networking device fails, the first slave networking device may restart the network resource discovery service, allocate networking resources to the terminal device based on the network resource discovery service, and ensure that the terminal device performs network connection. Through the processing mode, when the master control networking equipment breaks down, the terminal equipment can still normally distribute networking resources, and the stability of network connection of the terminal equipment is further ensured. In addition, the user can also view and manage abnormal networking equipment based on the restarted network resource discovery service so as to perform troubleshooting.
In one embodiment, the network connection method based on the distributed networking system further includes: receiving a second networking resource allocation request sent by a third slave networking device; the second networking resource allocation request carries an equipment cluster identifier corresponding to the third slave networking equipment; and when the device cluster corresponding to the third slave control networking device is determined not to be the device cluster in the first network region according to the device cluster identifier corresponding to the third slave control networking device, keeping the silent state of the second networking resource allocation request.
In the above embodiment, the current master networking device keeps silent on the networking resource allocation request sent by the slave networking device in the non-first network area, so that the master networking device can allocate networking resources to the managed network area, and the independent autonomy of the networking systems corresponding to the network areas is ensured, thereby ensuring the orderliness of network connections of all devices.
In an embodiment, each networking device and terminal device after networking is completed may send a networking resource allocation request to the current master networking device, so as to obtain networking resources from the current master networking device. For example: when a networking resource allocation request sent by a first slave control networking device is received, the current master control networking device allocates 192.168.1.100 serving as a first networking resource to the first slave control networking device; next, when receiving a networking resource allocation request sent by the terminal device, the current master networking device allocates 192.168.1.101 as networking resources to the terminal device; next, when receiving a networking resource allocation request sent by the terminal device, the current master networking device allocates 192.168.1.102 as a networking resource to the terminal device.
In one embodiment, after allocating the first networking resource to the first slave networking device based on the networking resource set in response to the first networking resource allocation request, the method further includes: receiving a networking resource allocation request sent by a first slave networking device based on a first networking resource; and responding to the networking resource allocation request sent by the first slave networking equipment, allocating second networking resources to the first slave networking equipment so that the first slave networking equipment can carry out network connection based on the second networking resources.
In one embodiment, the first slave networking device may be in a state of starting the network resource discovery service when sending the networking resource allocation request, and when receiving the second networking resource, replace the first networking resource with the second networking resource, perform network connection based on the second networking resource, and close the network resource discovery service.
In the embodiment, the first slave networking device can perform network establishment after acquiring the first networking resource. Networking resources can be obtained based on the established network, and then network communication is carried out with terminal equipment or a server and the like outside the networking system, so that normal network communication of slave networking equipment is ensured.
In one embodiment, before allocating, in response to the first networking resource allocation request, a first networking resource to the first slave networking device based on the set of networking resources, the method further includes: receiving a networking resource allocation request sent by a first slave networking device based on a first networking resource; the request for allocation of networking resources sent for the first set of networking resources remains silent.
In an embodiment, as shown in fig. 5, a network connection method based on a distributed networking system is provided, where the method is applied to a distributed networking system composed of a superior master networking device, a current master networking device, a first slave networking device, a second slave networking device, and a terminal device. And the superior master control networking equipment is used for managing and controlling network connection in the second network area. The current master control networking equipment is connected with the superior master control networking equipment and manages and controls network connection in the first network area. The first network area is a network area located within the range of the second network area. The method comprises the following steps:
s502, the current master control networking device, the first slave control networking device and the second slave control networking device are started, and network resource discovery services are respectively started.
S504, the current master control networking device obtains a networking resource set corresponding to the first network area from the superior master control networking device based on the network resource discovery service.
S506, the first slave control networking device sends networking resource allocation requests to the current master control networking device and the second slave control networking device based on the network resource discovery service.
S508, the second slave networking device keeps a silent state for the networking resource allocation request sent by the first slave networking device.
S510, when the current master networking device determines that the device cluster corresponding to the first slave networking device is a device cluster in the first network area, responding to a networking resource allocation request sent by the first slave networking device, and allocating the first networking resource to the first slave networking device based on the networking resource set.
S512, the first slave networking control device joins the networking system corresponding to the first network area based on the first networking resource and closes the network resource discovery service.
And S514, the second slave control networking device sends a networking resource allocation request to the current master control networking device and the first slave control networking device based on the network resource discovery service.
S516, the first slave networking equipment keeps a silent state for the networking resource allocation request sent by the second slave networking equipment.
S518, when the current master networking device determines that the device cluster corresponding to the second slave networking device is a device cluster in the first network region, responding to the networking resource allocation request sent by the second slave networking device, and allocating a third networking resource to the second slave networking device based on the networking resource set.
S520, the second slave control networking equipment joins the networking system corresponding to the first network area based on the third networking resource.
S522, when receiving the networking resource allocation request sent by the terminal device, the second slave networking device triggers the current master networking device to allocate a second networking resource to the terminal device based on the networking resource set, and the terminal device joins the networking system corresponding to the first network area based on the second networking resource.
S524, the second slave networking device closes the network resource discovery service.
S526, when the second slave networking device receives the terminal networking resource allocation request sent by the terminal device based on the second networking resource, the second slave networking device forwards the terminal networking resource allocation request to the current master networking device based on the first networking resource.
S528, the current master networking device allocates the first connection resource to the terminal device in response to the terminal networking resource allocation request.
S530, the terminal device performs network connection based on the first connection resource.
In the network connection method based on the distributed networking system, the networking resources are distributed only by the current master control networking equipment in the networking process through the on and off control of the network resource discovery service, so that the networking resources of the first slave control networking equipment, the second slave control networking equipment and the terminal equipment in the networking system are orderly controlled, and in addition, after the networking is finished, the networking resources are centrally distributed by the current master control networking equipment, so that the orderly network connection of the networking equipment and the terminal equipment can be ensured.
In one embodiment, an application scenario of a network connection method based on a distributed networking system is provided. This application scenario is illustrated in fig. 6. In fig. 6, the upper master networking device is an upper route, the current master networking device is a master route, the first slave control networking device is a slave route 1, and the second slave control networking device is a slave route 2. The master route operates in a routing mode. The network is formed after the networking IP address is obtained from the main route 1 and the slave route 2, an autonomous network formed by the main route, the slave route 1 and the slave route 2 is formed after the networking is finished, the terminal equipment can also obtain the networking IP address to communicate with the route in the autonomous network, obtain the IP address from the autonomous network, update the networking IP address through the obtained IP address, and then perform network connection based on the obtained IP address. The actions performed by the respective subjects are illustrated in fig. 7, and are explained in detail below:
1. and starting the DHCP service. When the power is cut off and the network is reconnected or the network operation of the user is received, the master route, the slave route 1 and the slave route 2 are restarted and the DHCP service is started.
2. The main route acquires a networking IP address. The master route, as a DHCP client, requests the acquisition of a networking IP address to the superior route, from route 1 and from route 2. The slave route 1 and the slave route 2 keep a silent state for the master route, and the superior route allocates a wide area network networking IP address set to the master route as a networking resource set. Meanwhile, the main route uses one of the networking IP addresses. When receiving the networking IP address set returned by the superior route, the main route successfully networks and waits for the networking request of obtaining the networking IP address from the route and the terminal equipment request. Assume that the set of wide area network IP addresses acquired by the host route from the upper level route is 10.1.10.100.
The main route joins the superior network, and the main route connects the inferior network down, and can distribute the networking IP address to the inferior network based on DHCP. The networking IP address may be considered a temporary IP address distributed from the route before it has been networked. After networking, the networking IP address of the terminal equipment is updated to the networking IP address.
3. Request to get networking IP address from route 1. The OPTION flag is set from route 1 as the DHCP client requests the networking IP address from the master route and from route 2.
4. The slave route 1 joins the master routed autonomous network and shuts down the DHCP service. The master route allocates a local area network IP address 1 to the slave route 1 based on the acquired wide area network IP address set. The networking IP address 1 may be 10.1.10.100-based IP address 192.168.1.100. And when the network IP address 1 distributed by the main route is received from the route 1, the DHCP service is closed, and at the moment, the network is successfully organized from the route 1 (the main route autonomous network is added).
5. The request from route 2 obtains the networking IP address. And setting an OPTION identifier as a DHCP client to request a networking IP address from the main route by the slave route 2. Before networking is completed, the slave route 2 can allocate a networking IP address to the terminal device. Therefore, at this time, the terminal device can be normally distributed with the networking IP address from the route 2. After networking is completed, the IP address is not redistributed to the terminal equipment, and the IP address of the terminal equipment is distributed by the main route.
6. The slave 2 joins the master routed autonomous network and shuts down the DHCP service. The master route allocates a local area network IP address 2 to the slave route 2 based on the acquired set of wide area network IP addresses. The networking IP address 2 may be 10.1.10.100 based IP address 192.168.1.101. And when the slave route 2 receives the networking IP address 2 distributed by the master route, the DHCP service is closed, and at the moment, the slave route 2 successfully networks (joins the master route autonomous network).
7. The terminal equipment requests to acquire a networking IP address. The terminal equipment is started to serve as a DHCP client, a networking IP address is requested from the slave route 2, and the master route is triggered by the slave route 2 to return the networking IP address to the terminal equipment.
8. And the terminal equipment joins the main routing autonomous network. The terminal device receives the networking IP address 3 distributed from the wide area network acquired by the route 2 based on the main route. The networking IP address 3 may be IP address 192.168.1.102 derived based on 10.1.10.100. And joining the main routing autonomous network in the effective time of 1 minute based on the networking IP address 3. If the slave route 2 does not join the master route autonomous network within 1 minute, the slave route 2 is indicated to have closed the DHCP service, and the terminal equipment requests the network IP address from the master route.
Through the steps, the network autonomous state is finally achieved, and the slave route 1, the slave route 2 and the terminal equipment are managed by the master route. The master route is then responsible for assigning IP addresses to the end devices and the slave routes.
9. The terminal device requests an update of the IP address. The terminal equipment requests the IP address update from the slave route 2, and the terminal equipment can turn to the main route to request the IP address because the slave route 2 can automatically close the DHCP service after the networking is successful.
10. The terminal devices are networked. The host route distributes an IP address (which may also be referred to as a networking IP address, to distinguish it from a networking IP address) to the terminal device. The IP address may be IP address 192.168.1.103 derived based on 10.1.10.100. And the terminal equipment replaces the previously allocated networking IP address 3 based on the distributed IP address to perform networking, and the networking is successful.
In one embodiment, requests to obtain the networking IP address sent from the route to other routes remain silent. As shown in fig. 7, the slave route 2 receives the IP address acquisition requests from the master route and the slave route 1, and the IP address acquisition requests of the master route and the slave route 1 are kept silent and are not allocated with IP addresses (because the IP address of the slave route 1 should be allocated and managed by the master route); the slave route 1 receives the IP address acquisition requests from the master route and the slave route 2, and the IP address acquisition requests of the master route and the slave route 2 are kept silent and are not allocated with IP addresses (because the IP address of the slave route 2 should be allocated and managed by the master route).
The above embodiment has at least the following beneficial effects:
1. after networking of the networking equipment is completed, the DHCP service can be automatically started or closed according to the role of the networking equipment. Even if the main route fails, the slave route can allocate the IP address to the terminal equipment by restarting the DHCP service.
2. In the process of constructing the autonomous network and after constructing the autonomous network, the main router distributes the IP addresses in a centralized manner so as to maintain the IP address uniformity of the networking system, avoid the IP address confusion and ensure the stability of the network.
It should be understood that, although the steps in the above-described flowcharts 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 a part of the steps in the above-mentioned flowcharts may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or the stages is not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a part of the steps or the stages in other steps.
Based on the same idea as the network connection method based on the distributed networking system in the above embodiment, the present application further provides a network connection device based on the distributed networking system, and the device can be used for executing the network connection method based on the distributed networking system. For convenience of illustration, in the schematic structural diagram of the network connection device embodiment based on the distributed networking system, only the part related to the embodiment of the present application is shown, and those skilled in the art will understand that the illustrated structure does not constitute a limitation to the device, and may include more or less components than those illustrated, or combine some components, or arrange different components.
In one embodiment, as shown in fig. 8, a network connection apparatus 800 based on a distributed networking system is provided, which is applied to a current master networking device, and the apparatus may adopt a software module or a hardware module, or a combination of the two modules to form a part of a computer device, and specifically includes: a resource collection obtaining module 802, an allocation request receiving module 804, and a networking system joining module 806, wherein:
a resource set obtaining module 802, configured to obtain a networking resource set corresponding to a first network area from a superior master networking device based on a network resource discovery service; the superior master control networking equipment carries a networking resource set corresponding to a second network area, and the first network area and the second network area have a corresponding relation. An allocation request receiving module 804, configured to receive a first networking resource allocation request sent by a first slave networking device in the first network area; the first network resource allocation request is generated by the first slave network control device based on the started network resource discovery service. A networking system joining module 806, configured to, in response to the first networking resource allocation request, allocate a first networking resource to the first slave-control networking device based on the networking resource set, so that the first slave-control networking device joins the networking system corresponding to the first network area based on the first networking resource and closes a network resource discovery service.
In the network connection device based on the distributed networking system, the networking resources of the current master control networking equipment and the first slave control networking equipment in the networking system can be orderly controlled by controlling the on and off of the network resource discovery service, so that the orderly network connection of the networking equipment and the terminal equipment is ensured.
In one embodiment, the apparatus further comprises: a first networking request receiving module, configured to receive a terminal networking resource allocation request sent by a terminal device and forwarded by the first slave networking device after closing the network resource discovery service; the terminal networking resource allocation request is sent to the first slave networking equipment by the terminal equipment based on second networking resources, and the second networking resources are allocated to the terminal equipment by the first slave networking equipment based on the networking resource set; and the first connection resource allocation module is used for responding to the terminal networking resource allocation request, and allocating first connection resources to the terminal equipment so that the terminal equipment performs network connection based on the first connection resources.
In one embodiment, the allocation request receiving module is further configured to receive the first network resource allocation request sent by the first slave networking device after determining that the second slave networking device keeps a mute state for the first slave networking device; the second slave networking control device is in a state of starting the network resource discovery service when keeping a silent state for the first slave networking control device, and closes the network resource discovery service when receiving a third networking resource distributed based on the networking resource set.
In one embodiment, the first slave networking device communicates with the second slave networking device based on a target network connection mode; the allocation request receiving module is further configured to receive a first networking resource allocation request sent by the first slave networking device based on the target network connection mode.
In one embodiment, the first networking resource allocation request carries an equipment cluster identifier corresponding to the first slave networking equipment; the networking system joining module is further configured to respond to the first networking resource allocation request and allocate a first networking resource to the first slave control networking device based on the networking resource set when it is determined that the device cluster corresponding to the first slave control networking device is the device cluster in the first network area according to the device cluster identifier corresponding to the first slave control networking device.
In one embodiment, the apparatus further comprises: the networking resource allocation request receiving module is used for receiving a second networking resource allocation request sent by a third slave networking device; the second networking resource allocation request carries an equipment cluster identifier corresponding to the third slave control networking equipment; and the silencing module is used for keeping a silencing state for the second networking resource allocation request when determining that the device cluster corresponding to the third slave control networking device is not the device cluster in the first network area according to the device cluster identifier corresponding to the third slave control networking device.
In one embodiment, the apparatus further comprises: a second networking request receiving module, configured to receive a networking resource allocation request sent by the first slave networking device based on the first networking resource; and the second networking resource allocation module is used for allocating a second networking resource to the first slave control networking equipment in response to the networking resource allocation request sent by the first slave control networking equipment, so that the first slave control networking equipment performs network connection based on the second networking resource.
For specific limitations of the network connection device based on the distributed networking system, reference may be made to the above limitations of the network connection method based on the distributed networking system, and details are not described here. The modules in the network connection device based on the distributed networking system can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 9. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer equipment is used for storing data such as networking resource sets, networking resources and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a network connection method based on a distributed networking system.
Those skilled in the art will appreciate that the architecture shown in fig. 9 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is further provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, in which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
In one embodiment, a computer program product or computer program is provided that includes computer instructions stored in a computer-readable storage medium. The computer instructions are read by a processor of a computer device from a computer-readable storage medium, and the computer instructions are executed by the processor to cause the computer device to perform the steps in the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A network connection method based on a distributed networking system is characterized in that the method is applied to current master control networking equipment and comprises the following steps:
acquiring a networking resource set corresponding to a first network area from superior master control networking equipment based on a network resource discovery service; the superior master control networking equipment carries a networking resource set corresponding to a second network area, and the first network area and the second network area have a corresponding relation;
receiving a first networking resource allocation request sent by a first slave networking device in the first network area; the first network resource allocation request is generated by the first slave network control device based on the started network resource discovery service;
responding to the first networking resource allocation request, allocating first networking resources to the first slave networking equipment based on the networking resource set, so that the first slave networking equipment joins a networking system corresponding to the first network area based on the first networking resources and closes network resource discovery service.
2. The method of claim 1, wherein, after allocating, in response to the first networking resource allocation request, a first networking resource to the first slave networking device based on the set of networking resources, so that the first slave networking device joins a networking system corresponding to the first network area based on the first networking resource and turns off a network resource discovery service, the method further comprises:
receiving a terminal networking resource allocation request transmitted by a terminal device and forwarded by the first slave control networking device after closing the network resource discovery service; the terminal networking resource allocation request is sent to the first slave networking equipment by the terminal equipment based on second networking resources, and the second networking resources are allocated to the terminal equipment by the first slave networking equipment based on the networking resource set;
and responding to the terminal networking resource allocation request, allocating a first connection resource to the terminal equipment so that the terminal equipment performs network connection based on the first connection resource.
3. The method of claim 1, wherein receiving the first network resource allocation request sent by the first slave networking device in the first network region comprises:
receiving the first network resource allocation request sent by the first slave network control device after determining that the second slave network control device keeps a silent state to the first slave network control device; the second slave networking control device is in a state of starting the network resource discovery service when keeping a silent state for the first slave networking control device, and closes the network resource discovery service when receiving a third networking resource distributed based on the networking resource set.
4. The method according to claim 3, wherein the first slave networking device communicates with the second slave networking device based on a target network connection mode; the receiving a first networking resource allocation request sent by a first slave networking device in the first network area includes:
and receiving a first networking resource allocation request sent by the first slave networking equipment based on the target network connection mode.
5. The method according to any one of claims 1 to 4, wherein the first networking resource allocation request carries a device cluster identifier corresponding to the first slave networking device;
the allocating, in response to the first networking resource allocation request, a first networking resource to the first slave networking device based on the set of networking resources includes:
when the device cluster corresponding to the first slave control networking device is determined to be the device cluster in the first network region according to the device cluster identifier corresponding to the first slave control networking device, responding to the first networking resource allocation request, and allocating first networking resources to the first slave control networking device based on the networking resource set.
6. The method of claim 5, further comprising:
receiving a second networking resource allocation request sent by a third slave networking device; the second networking resource allocation request carries an equipment cluster identifier corresponding to the third slave control networking equipment;
and when determining that the device cluster corresponding to the third slave control networking device is not the device cluster in the first network region according to the device cluster identifier corresponding to the third slave control networking device, maintaining a silent state for the second networking resource allocation request.
7. The method of any of claims 1 to 4, wherein, after allocating a first networking resource to the first slave networking device based on the set of networking resources in response to the first networking resource allocation request, further comprising:
receiving a networking resource allocation request sent by the first slave networking equipment based on the first networking resource;
responding to a networking resource allocation request sent by a first slave networking device, allocating a second networking resource to the first slave networking device, so that the first slave networking device performs network connection based on the second networking resource.
8. A network connection device based on a distributed networking system is characterized in that the device is applied to current master control networking equipment and comprises:
a resource set acquisition module, configured to acquire a networking resource set corresponding to a first network area from a superior master control networking device based on a network resource discovery service; the superior master control networking equipment carries a networking resource set corresponding to a second network area, and the first network area and the second network area have a corresponding relation;
the distribution request receiving module is used for receiving a first networking resource distribution request sent by first slave networking equipment in the first network area; the first network resource allocation request is generated by the first slave network control device based on the started network resource discovery service;
and the networking system joining module is used for responding to the first networking resource allocation request, allocating first networking resources to the first slave networking equipment based on the networking resource set, so that the first slave networking equipment joins the networking system corresponding to the first network area based on the first networking resources and closes the network resource discovery service.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202110314578.4A 2021-03-24 2021-03-24 Network connection method and device based on distributed networking system and computer equipment Active CN113037652B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110314578.4A CN113037652B (en) 2021-03-24 2021-03-24 Network connection method and device based on distributed networking system and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110314578.4A CN113037652B (en) 2021-03-24 2021-03-24 Network connection method and device based on distributed networking system and computer equipment

Publications (2)

Publication Number Publication Date
CN113037652A true CN113037652A (en) 2021-06-25
CN113037652B CN113037652B (en) 2022-04-12

Family

ID=76474075

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110314578.4A Active CN113037652B (en) 2021-03-24 2021-03-24 Network connection method and device based on distributed networking system and computer equipment

Country Status (1)

Country Link
CN (1) CN113037652B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080112355A1 (en) * 2006-11-09 2008-05-15 Avaya Technology Llc Multi-Hop Ad-hoc Wireless Networks That Support Non-Multi-Hop Wireless Terminals
CN104936168A (en) * 2015-05-04 2015-09-23 北京柏惠维康科技有限公司 Efficient wireless mesh networking method
CN108989114A (en) * 2018-07-25 2018-12-11 新华三技术有限公司 A kind of method and device configuring router
CN111163185A (en) * 2019-12-30 2020-05-15 乐鑫信息科技(上海)股份有限公司 Method for IP addressing access to nodes in mesh network
CN111316685A (en) * 2018-03-30 2020-06-19 华为技术有限公司 Method and device for converged networking
CN111935763A (en) * 2020-08-13 2020-11-13 杭州萤石软件有限公司 Method and network system for improving data transmission reliability in wireless grid network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080112355A1 (en) * 2006-11-09 2008-05-15 Avaya Technology Llc Multi-Hop Ad-hoc Wireless Networks That Support Non-Multi-Hop Wireless Terminals
CN104936168A (en) * 2015-05-04 2015-09-23 北京柏惠维康科技有限公司 Efficient wireless mesh networking method
CN111316685A (en) * 2018-03-30 2020-06-19 华为技术有限公司 Method and device for converged networking
CN108989114A (en) * 2018-07-25 2018-12-11 新华三技术有限公司 A kind of method and device configuring router
CN111163185A (en) * 2019-12-30 2020-05-15 乐鑫信息科技(上海)股份有限公司 Method for IP addressing access to nodes in mesh network
CN111935763A (en) * 2020-08-13 2020-11-13 杭州萤石软件有限公司 Method and network system for improving data transmission reliability in wireless grid network

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
网友: ""一文读懂家庭网络无缝漫游,家庭组网实战干货,从AC+AP组网到Mesh组网最全总结"", 《HTTPS://POST.SMZDM.COM/P/AX0220Z9/》 *
网友: ""子路由为什么要关闭dhcp"", 《HTTPS://ZHIDAO.BAIDU.COM/QUESTION/1772268978974893700.HTML》 *

Also Published As

Publication number Publication date
CN113037652B (en) 2022-04-12

Similar Documents

Publication Publication Date Title
CN108521656B (en) Lora communication method and system
JP5799668B2 (en) Communication apparatus, communication system, and communication setting information sharing method
JP4081472B2 (en) Cluster management method and apparatus for network device
CN113098797B (en) Network connection method and device based on distributed networking system and computer equipment
US9912633B2 (en) Selective IP address allocation for probes that do not have assigned IP addresses
CN112584364A (en) Bluetooth network, communication method, device and storage medium thereof
CN110266833B (en) IP address management method and edge cluster
US10051561B2 (en) Methods and nodes for M2M communication
WO2015131757A1 (en) Channel between software defined networking device and controller
JP2017526298A (en) Method and system for managing network traffic
WO2020043209A1 (en) Disconnected network state reporting method and apparatus, and storage medium
CN113037561A (en) Networking equipment mode switching method and device based on distributed networking system
CN114448866A (en) Network domain management and control method, network system, equipment and storage medium
CN112333014B (en) Device management method and communication apparatus
CN113037652B (en) Network connection method and device based on distributed networking system and computer equipment
CN112492030B (en) Data storage method, device, computer equipment and storage medium
US10686752B2 (en) Methods for configuring and managing an IP network, corresponding devices and computer programs
CN107370647B (en) Method for interconnecting local area internal controller systems and local area network system
CN111163463B (en) Method, device, equipment and storage medium for wireless equipment to access router
WO2021110543A1 (en) Method for establishing a wireless network and vehicle
CN115835370A (en) Network distribution method, device, equipment and medium for intelligent equipment
CN113596188B (en) Multi-device management method and device
CN110611589B (en) Control method and device of regional control system and air conditioning system
CN113765795A (en) Networking method, device, system and storage medium
JP3783664B2 (en) Router device and program

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