CN111800322A - mesh wired ad hoc network method, distributed routing device and equipment - Google Patents

mesh wired ad hoc network method, distributed routing device and equipment Download PDF

Info

Publication number
CN111800322A
CN111800322A CN202010854867.9A CN202010854867A CN111800322A CN 111800322 A CN111800322 A CN 111800322A CN 202010854867 A CN202010854867 A CN 202010854867A CN 111800322 A CN111800322 A CN 111800322A
Authority
CN
China
Prior art keywords
router
networking
information
mesh
identity information
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
CN202010854867.9A
Other languages
Chinese (zh)
Other versions
CN111800322B (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.)
Shenzhen Skyworth Digital Technology Co Ltd
Original Assignee
Shenzhen Skyworth Digital 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 Shenzhen Skyworth Digital Technology Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CN202010854867.9A priority Critical patent/CN111800322B/en
Publication of CN111800322A publication Critical patent/CN111800322A/en
Application granted granted Critical
Publication of CN111800322B publication Critical patent/CN111800322B/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
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • H04W84/22Self-organising networks, e.g. ad-hoc networks or sensor networks with access to wired networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a mesh wired ad hoc network method, a distributed routing device, equipment and a readable storage medium, wherein the mesh wired ad hoc network method comprises the following steps: periodically broadcasting networking request information when the router detects a wired connection; when the router receives networking request information in a network, the router judges identity information of the router, if the identity information of the router is a temporary host, whether networking can be performed or not is detected, if the identity information of the router is the temporary host, the identity information of the router is changed from the temporary host to a permanent host, and reply information is fed back when the networking request information in the network is received; if the router is not networked, when the router receives reply information in the network, the identity information of the router is changed from the temporary host to the slave. The mesh wired ad hoc network method has the advantages of reducing the production cost of the mesh router, facilitating networking of users and improving user experience.

Description

mesh wired ad hoc network method, distributed routing device and equipment
Technical Field
The invention relates to the technical field of multi-hop networks, in particular to a mesh wired ad hoc network method, a distributed routing device, equipment and a computer readable storage medium.
Background
Easy Mesh is a new network coverage technology, special hardware collocation is not needed, the Easy Mesh authentication is realized by software, the Wi-Fi alliance provides Easy Mesh authentication in 2018, and a cross-platform distributed wireless network can be built by the authenticated product. Compared with the traditional networking mode, Easy Mesh can solve the problems that wds systems depend on chip manufacturers, compatibility is poor, wireless relay speed is attenuated and the like.
Generally, mesh networking equipment completes pairing among a plurality of pieces of equipment when leaving a factory, and the paired equipment needs to be sold integrally and is generally called a master-slave machine. Or the pairing is not performed when the device leaves the factory, and the pairing is performed through wps key pairing or APP operation by a user. The mesh device has a problem that if pairing is completed before leaving a factory, factory production cost is increased, and if pairing is performed autonomously by a user, user experience is not friendly.
Disclosure of Invention
The embodiment of the application provides a mesh wired ad hoc network method, and aims to solve the technical problems of high production cost of a mesh networking device manufacturer and poor user experience.
In order to achieve the above object, an embodiment of the present application provides a mesh wired ad hoc network method, including the following steps:
periodically broadcasting networking request information when the router detects a wired connection;
when the router receives networking request information in a network, the identity information of the router is judged, wherein the factory identity information of each router is set as a temporary host;
if the identity information of the router is a temporary host, whether networking can be performed is detected,
if so, changing the identity information of the host into a permanent host from the temporary host, and feeding back reply information when receiving networking request information in the network;
if the router is not networked, when the router receives reply information in the network, the identity information of the router is changed from the temporary host to the slave.
In an embodiment, the mesh wired ad hoc network method further includes, if the router whose identity information is the temporary host receives the networking request information in the network, before detecting whether networking is possible, the router performs the steps of:
and detecting whether the networking request information in the network comes from the local area network interface of the network or not, and if so, detecting whether networking can be performed or not.
In one embodiment, the router detects whether networking is possible by detecting the state of its wan interface and whether a network protocol is available.
In an embodiment, the mesh wired ad hoc network method further includes: if the identity information of the router is a permanent host, then
When the router receives the networking request information in the network, the router feeds back reply information;
and the number of the first and second groups,
if the identity information of the router is a permanent sub-machine, then
And when the router receives the reply information, the identity information of the router is unchanged.
In an embodiment, the mesh wired ad hoc network method further includes: if the identity information of the router is a permanent host, when the router receives the networking request information, before feeding back reply information, executing the following steps:
and detecting whether the networking request information comes from a local area network interface of the networking request information, and if so, feeding back reply information.
In an embodiment, the mesh wired ad hoc network method further includes: if the identity information of the router is a permanent sub-machine, then
And when the router receives the networking request information, forwarding the networking request information to the router with the identity information of the permanent host, and keeping the identity information of the router unchanged.
In one embodiment, when a wired connection is detected, the router broadcasts the networking request information to its wide area network interface and local area network interface simultaneously.
In order to achieve the above object, an embodiment of the present application further provides a distributed routing device, which includes at least two routers for mesh networking, where the distributed routing device performs networking by using any one of the mesh wired ad hoc networking methods described above.
In order to achieve the above object, an embodiment of the present application further provides a distributed routing device, including a memory, a processor, and a mesh wired ad hoc network program stored on the memory and capable of running on the processor, where the processor implements any one of the above mesh wired ad hoc network methods when executing the mesh wired ad hoc network program.
In order to achieve the above object, an embodiment of the present application further provides a computer-readable storage medium, on which a mesh wired ad hoc network program is stored, where the mesh wired ad hoc network program, when executed by a processor, implements the mesh wired ad hoc network method as described in any of the above.
The mesh wired ad hoc network method sets factory identity information of a router of the mesh network as a temporary host, and sets the router as: when the networking request information is received, if the identity information of the user is a temporary host and can be networked, the identity information of the user is changed from the temporary host to a permanent host, and after the identity information is changed to the permanent host, the reply information is fed back when the networking request information is received; and when the networking request information is received, if the identity information of the user is the temporary host and the networking cannot be performed, changing the identity information of the user from the temporary host to the permanent slave after the reply information is received. Therefore, when the user performs mesh networking for the first time, the identity information of the router can be automatically changed into a permanent host or a permanent sub-machine, and the host and the sub-machine in the router do not need to be manually specified by the user. Therefore, the mesh wired ad hoc network method has the advantages of reducing the production cost of the mesh router, facilitating the networking of users and improving the user experience.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the structures shown in the drawings without creative efforts.
FIG. 1 is a block diagram of an embodiment of a distributed routing device according to the present invention;
fig. 2 is a schematic flow chart of an embodiment of a mesh wired ad hoc network method of the present invention;
fig. 3 is a schematic flow chart of an embodiment of a mesh wired ad hoc network method of the present invention;
fig. 4 is a schematic flow chart of another embodiment of the mesh wired ad hoc network method of the present invention;
fig. 5 is a schematic flowchart of a mesh wired ad hoc network method according to another embodiment of the present invention;
fig. 6 is a schematic flowchart of a mesh wired ad hoc network method according to still another embodiment of the present invention;
fig. 7 is a flowchart illustrating a mesh wired ad hoc network method according to still another embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
For a better understanding of the above technical solutions, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a server 1 (also called a distributed routing device) in a hardware operating environment according to an embodiment of the present invention.
The server provided by the embodiment of the invention comprises equipment with a display function, such as Internet of things equipment, an intelligent air conditioner with a networking function, an intelligent lamp, an intelligent power supply, AR/VR equipment with a networking function, an intelligent sound box, an automatic driving automobile, a PC, a smart phone, a tablet personal computer, an electronic book reader, a portable computer and the like.
As shown in fig. 1, the server 1 includes: memory 11, processor 12, and network interface 13.
The memory 11 includes at least one type of readable storage medium, which includes a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, and the like. The memory 11 may in some embodiments be an internal storage unit of the server 1, for example a hard disk of the server 1. The memory 11 may also be an external storage device of the server 1 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the server 1.
Further, the memory 11 may also include both an internal storage unit of the server 1 and an external storage device. The memory 11 may be used not only to store application software installed in the server 1 and various types of data such as a code of the distributed routing device program 10, but also to temporarily store data that has been output or is to be output.
Processor 12, which in some embodiments may be a Central Processing Unit (CPU), controller, microcontroller, microprocessor or other data Processing chip, executes program code or processes data stored in memory 11, such as executing distributed routing device program 10.
The network interface 13 may optionally comprise a standard wired interface, a wireless interface (e.g. WI-FI interface), typically used for establishing a communication connection between the server 1 and other electronic devices.
The network may be the internet, a cloud network, a wireless fidelity (Wi-Fi) network, a Personal Area Network (PAN), a Local Area Network (LAN), and/or a Metropolitan Area Network (MAN). Various devices in the network environment may be configured to connect to the communication network according to various wired and wireless communication protocols. Examples of such wired and wireless communication protocols may include, but are not limited to, at least one of: transmission control protocol and internet protocol (TCP/IP), User Datagram Protocol (UDP), hypertext transfer protocol (HTTP), File Transfer Protocol (FTP), ZigBee, EDGE, IEEE 802.11, optical fidelity (Li-Fi), 802.16, IEEE 802.11s, IEEE 802.11g, multi-hop communications, wireless Access Points (APs), device-to-device communications, cellular communication protocol, and/or BlueTooth (BlueTooth) communication protocol, or a combination thereof.
Optionally, the server may further comprise a user interface, which may include a Display (Display), an input unit such as a Keyboard (Keyboard), and an optional user interface may also include a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is used for displaying information processed in the server 1 and for displaying a visualized user interface.
While fig. 1 shows only a server 1 having components 11-13 and a distributed routing device 10, those skilled in the art will appreciate that the configuration shown in fig. 1 is not limiting of server 1 and may include fewer or more components than those shown, or some components in combination, or a different arrangement of components.
In this embodiment, the processor 12 may be configured to call the distributed routing device program stored in the memory 11 and perform the following operations:
periodically broadcasting networking request information when the router detects a wired connection;
when the router receives networking request information in a network, the identity information of the router is judged, wherein the factory identity information of each router is set as a temporary host;
if the identity information of the router is a temporary host, whether networking can be performed is detected,
if so, changing the identity information of the host into a permanent host from the temporary host, and feeding back reply information when receiving networking request information in the network;
if the router is not networked, when the router receives reply information in the network, the identity information of the router is changed from the temporary host machine to the permanent sub machine.
In one embodiment, the processor 12 may be configured to invoke the distributed routing device program stored in the memory 11 and perform the following operations:
if the router with the identity information of the temporary host receives networking request information in the network, the router executes the following steps before detecting whether networking can be carried out or not:
and detecting whether the networking request information in the network comes from the local area network interface of the network or not, and if so, detecting whether networking can be performed or not.
In one embodiment, the processor 12 may be configured to invoke the distributed routing device program stored in the memory 11 and perform the following operations:
the router detects whether networking is available or not by detecting the state of the WAN interface of the router and whether a network protocol can be acquired or not.
In one embodiment, the processor 12 may be configured to invoke the distributed routing device program stored in the memory 11 and perform the following operations:
if the identity information of the router is a permanent host, then
When the router receives the networking request information in the network, the router feeds back reply information;
and the number of the first and second groups,
if the identity information of the router is a permanent sub-machine, then
And when the router receives the reply information, the identity information of the router is unchanged.
In one embodiment, the processor 12 may be configured to invoke the distributed routing device program stored in the memory 11 and perform the following operations:
if the identity information of the router is a permanent host, when the router receives the networking request information, before feeding back reply information, executing the following steps:
and detecting whether the networking request information comes from a local area network interface of the networking request information, and if so, feeding back reply information.
In one embodiment, the processor 12 may be configured to invoke the distributed routing device program stored in the memory 11 and perform the following operations:
if the identity information of the router is a permanent sub-machine, then
And when the router receives the networking request information, forwarding the networking request information to the router with the identity information of the permanent host, and keeping the identity information of the router unchanged.
In one embodiment, the processor 12 may be configured to invoke the distributed routing device program stored in the memory 11 and perform the following operations:
when the wired connection is detected, the router broadcasts the networking request information to the wide area network interface and the local area network interface of the router at the same time.
Based on the hardware architecture of the distributed routing device, the invention provides a mesh wired ad hoc network method, aiming at solving the problems of high production cost and poor user experience of a mesh networking device manufacturer.
As shown in fig. 2, fig. 2 is an embodiment of a mesh wired ad hoc network method according to the present invention, where the mesh wired ad hoc network method includes the following steps:
and S110, when the router detects the wired connection, periodically broadcasting networking request information.
Specifically, in the mesh network, a master is connected to the internet, and a slave is connected to the master. Therefore, when mesh networking is performed, at least one router needs to be connected to the internet (i.e., a wide area network or an extranet) in a wired manner (i.e., a network cable), and other routers in the mesh networking are directly or indirectly connected to the router connected to the internet through the network cable. If the router detects the wired connection, the mesh networking is started. At this time, each router in the network broadcasts the networking request information periodically. In this case, the networking request information broadcast by one router can be simultaneously received by a plurality of routers wired thereto. For example, when mesh networking is performed, if router a is connected to the internet and router B is connected to router a, router C may be connected to router a or router B. The networking request information of router a can be received by router B, and the networking request information broadcast by router B can also be received by router a.
And S120, when the router receives networking request information in the network, judging the identity information of the router, wherein the factory identity information of each router is set as a temporary host.
Specifically, the temporary host refers to that the identity information of each router used for mesh networking is not determined, that is, the host and the slave are not specified in the router of mesh networking when the router leaves the factory. Therefore, when the manufacturer leaves the router for mesh networking, the router does not need to be paired in advance, and the time cost and the labor cost of the manufacturer can be saved. When mesh networking is carried out, the router in the network can receive the networking request information broadcast by other routers while broadcasting the networking request information. Therefore, after the router receives the networking request information, the router starts to judge the identity information of the router, wherein the identity information comprises the temporary host, the permanent host and the permanent sub-machine.
S130, if the identity information of the router is the temporary host, whether networking can be performed is detected.
Specifically, if the identity information of the router receiving the networking request information is the temporary host, the router starts to detect whether the router can perform networking. The factory identity information of each router is set as a temporary host, and meanwhile, each router can receive networking request information in the network. Therefore, when mesh networking is performed for the first time, the identity information of each router receiving the networking request information is a temporary host.
And S140, if yes, changing the identity information of the user from the temporary host to the permanent host, and feeding back reply information when networking request information in the network is received.
Specifically, if the router whose identity information is the temporary host receives the networking request information and the router can be networked (i.e., access to the network), the router changes its own identity information to the permanent host to complete the automatic designation of the host. After the host computer is determined, the host computer feeds back reply information when receiving networking request information in the network, and the reply information is used for enabling the sub computer to acquire an IP (even if the sub computer can surf the internet) so as to complete the establishment of the mesh network. The host can feed back reply information to different routers in sequence or simultaneously according to the received networking request information.
S150, if the router is not networked, when the router receives reply information in the network, the identity information of the router is changed from the temporary host machine to the permanent sub machine.
Specifically, if the router of the temporary master identity is not connected to the network when receiving the networking request message, the router cannot become the master, and if the router receives a reply message from the network (the reply message is from the master), the router changes its own identity information from the temporary master to the slave, thereby completing the automatic designation of the slave.
It can be understood that, when mesh networking is performed for the first time, the identity information of each router in the network is a temporary host, and the router can receive networking request information, and meanwhile, based on the characteristic that the host in the mesh network has to directly access the internet (wide area network), the router can be set as: when the networking request information is received, if the identity information of the user is a temporary host and can be networked, the identity information of the user is changed from the temporary host to a permanent host, and after the identity information is changed to the permanent host, the reply information is fed back when the networking request information is received; and when the networking request information is received, if the identity information of the user is the temporary host and the networking cannot be performed, changing the identity information of the user from the temporary host to the permanent slave after the reply information is received.
Therefore, when a user performs mesh networking for the first time, the identity information of the router can be automatically changed into a permanent host or a permanent sub-machine, so that the host and the sub-machine in the router are not required to be manually appointed by the user, the flow of the mesh networking is greatly simplified, the use by the user is facilitated, and the use experience of the user can be improved.
It should be noted that, because the identity information of the slave unit is determined based on the reply information fed back by the host unit, when mesh networking is performed, it can be ensured that the host unit is determined first and then the slave unit is determined, thereby reducing the error condition during mesh networking and improving the stability during networking.
In summary, the mesh wired ad hoc network method of the present application sets the factory identity information of the router of the mesh network as a temporary host, and sets the router as: when the networking request information is received, if the identity information of the user is a temporary host and can be networked, the identity information of the user is changed from the temporary host to a permanent host, and after the identity information is changed to the permanent host, the reply information is fed back when the networking request information is received; and when the networking request information is received, if the identity information of the user is the temporary host and the networking cannot be performed, changing the identity information of the user from the temporary host to the permanent slave after the reply information is received. Therefore, when the user performs mesh networking for the first time, the identity information of the router can be automatically changed into a permanent host or a permanent sub-machine, and the host and the sub-machine in the router do not need to be manually specified by the user. Therefore, compared with common mesh networking equipment, the mesh wired ad hoc networking method does not need a manufacturer to pre-match a router when leaving a factory, and does not need a user to manually specify a host machine and a sub machine when networking, so that the production cost of the mesh component is reduced, the matching process of the mesh networking is simplified, and the user experience is improved.
Specifically, after receiving the networking request information, the router judges whether networking is possible or not by detecting the state of the WAN port of the router and whether a network protocol (IP) can be acquired or not. And when the WAN port state of the router is up and the IP address can be acquired, judging that the router can be networked. Otherwise, the network cannot be connected. The router can judge whether the router can be networked or not by simultaneously detecting the state of a WAN port and acquiring two conditions of whether a network protocol (IP) can be acquired or not, so that errors can be reduced, and the accuracy of networking judgment is improved.
It should be noted that only when the router is capable of accessing the internet, the identity information of the router is changed from the temporary host to the host, so that the mesh network completed by networking can be ensured to normally receive and transmit wireless data, the situation that networking is completed but internet surfing is unavailable is avoided, and user experience is improved.
As shown in fig. 3, in an embodiment, the mesh wired ad hoc network method further includes, if the router whose identity information is the temporary host receives the networking request information in the network, before detecting whether networking is possible, the router performs the steps of:
s240, detecting whether the networking request information in the network is from the local area network interface of the network, if so, detecting whether networking can be performed.
Specifically, when mesh networking is performed, when the router of the temporary host identity receives networking request information, before whether networking is possible is detected, whether the networking request information is from a local area network interface (namely a LAN interface) of the router is detected, and if so, whether networking is possible is detected. This is because if the networking request message is from a wide area network interface (i.e., WAN port) of the router (i.e., the networking request message is not from a LAN port of the router), it indicates that the router sending the networking request message is connected to the router receiving the networking request message through the switch (or other bridging device). At this time, if the router receiving the networking request information can access the internet, the router transmitting the networking request information can also access the internet through the switch. Then, in order to save network resources and guarantee the network quality of a wireless local area network in which two routers are independently manufactured, networking is not performed between two or more routers that are both connected to a switch (or other bridging device).
As shown in fig. 4, in an embodiment, the mesh wired ad hoc network method further includes:
s330, if the identity information of the router is the permanent host, feeding back reply information when the router receives networking request information in the network.
Specifically, after mesh networking is performed for the first time, a router serving as a host is determined, and the mesh networking is completed. At this time, if the user needs to expand the network, a new router can be accessed in the existing mesh network. After the newly accessed router is accessed to the mesh network, the newly accessed router broadcasts networking request information, and because the sub-machines in the mesh network need to interact with the host machine to be capable of being assembled into the network, the networking request information broadcasted by the newly accessed router is finally received by the host machine router. When the host router receives the networking request information, the host router feeds back reply information based on the received networking request information. The host router feeds back reply information to different routers in sequence or simultaneously according to the received networking request information. After receiving the reply information fed back by the host router, the newly accessed router changes the identity information of the newly accessed router from the temporary host to the sub-machine, and then the newly accessed router is combined into the existing mesh network to complete the expansion of the mesh network. It can be understood that after the host is determined, the identity of the slave machine of the router newly combined into the mesh network can be determined through the reply information fed back by the host router, so that when the mesh network is expanded, the router does not need to be limited to a specific slave machine router, and the expandability of the mesh network can be increased.
As shown in fig. 5, in an embodiment, the mesh wired ad hoc network method further includes, if the identity information of the router is a permanent host, when the router receives the networking request information, before feeding back a reply information, performing the steps of:
s430, detecting whether the networking request information comes from the local area network interface of the networking request information, and if so, feeding back reply information.
Specifically, when the mesh network is expanded, when the host receives the networking request information, before feeding back the reply information, it is detected whether the networking request information is from its own local area network interface (i.e., LAN interface), and if so, the reply information is fed back. This is because if the networking request message is from the wide area network interface (i.e., WAN port) of the router (i.e., the networking request message is not from the LAN port of the router), it indicates that the router sending the networking request message is connected to the host through the switch (or other bridging device). At this time, the router that transmits the networking request information can access the internet through the switch. Then, in order to save network resources and ensure the network quality of the wireless local area network which is independently manufactured by the two routers, the identity information of the newly accessed router is still kept as a temporary host, that is, the newly accessed router is rejected to be combined into the existing mesh network.
As shown in fig. 6, in an embodiment, the mesh wired ad hoc network method further includes:
s530, if the identity information of the router is a permanent sub-machine, when the router receives the networking request information, the networking request information is forwarded to the router of which the identity information is a permanent main machine, and the identity information of the router is kept unchanged.
Specifically, when a user accesses a new router in an existing mesh network to expand the mesh network, the newly accessed router may be directly connected to a router whose identity information is a permanent master or to a router whose identity information is a permanent slave. If the router which is newly accessed is directly connected with the router of which the identity information is the permanent host, the networking request information broadcasted by the router which is newly accessed can be directly received by the router of the host; if the newly accessed router is connected with the router with the identity information of the permanent sub-machine, the sub-machine forwards the networking request information to the main machine and keeps the identity information of the sub-machine unchanged. After receiving the networking request information, the host feeds back reply information based on the received networking request information. The network connection request information of the newly accessed router is forwarded by the sub-machine, and the newly accessed router does not need to be limited to be in wired connection with the host router when the mesh network is expanded, so that convenience in expanding the mesh network is improved, and a user can conveniently expand the network.
As shown in fig. 7, in an embodiment, the mesh wired ad hoc network method further includes:
s600, if the identity information of the router is a permanent sub-machine, when the router receives the reply information, the identity information of the router is unchanged.
Specifically, when the identity information of the router is the temporary host, the router changes the identity information of the router into a permanent sub-machine after receiving the reply information; and when the identity information of the router is the permanent sub-machine, the identity information of the router is unchanged after the router receives the reply information. Therefore, identity information of the submachine does not need to be set again, and rapid network expansion is facilitated.
In one embodiment, when a wired connection is detected, the router sends the networking request information to its wide area network interface and local area network interface simultaneously. Through the arrangement, the wide area network interface and the local area network interface of each router can perform information interaction, so that mesh networking can be performed no matter the network cable is plugged in the wide area network interface or the local area network interface, and convenience in networking of users is greatly facilitated. It should be noted that, based on the characteristics of the router, in order to be able to construct a mesh network, the router connected to the internet is connected to the internet through a wide area network interface.
In addition, the invention also provides a distributed routing device, which comprises at least two routers used for mesh networking, wherein the distributed routing device performs networking by using the mesh wired ad hoc networking method according to any embodiment.
In addition, the embodiment of the present invention further provides a computer-readable storage medium, which may be any one of or any combination of a hard disk, a multimedia card, an SD card, a flash memory card, an SMC, a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), a portable compact disc read only memory (CD-ROM), a USB memory, and the like. The computer readable storage medium includes a mesh wired ad hoc network program 10, and the specific implementation of the computer readable storage medium of the present invention is substantially the same as the above-mentioned mesh wired ad hoc network method and the specific implementation of the server 1, and will not be described herein again.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A mesh wired ad hoc network method is characterized by comprising the following steps:
periodically broadcasting networking request information when the router detects a wired connection;
when the router receives networking request information in a network, the identity information of the router is judged, wherein the factory identity information of each router is set as a temporary host;
if the identity information of the router is a temporary host, whether networking can be performed is detected,
if so, changing the identity information of the host into a permanent host from the temporary host, and feeding back reply information when receiving networking request information in the network;
if the router is not networked, when the router receives reply information in the network, the identity information of the router is changed from the temporary host machine to the permanent sub machine.
2. The mesh wired ad hoc network method of claim 1, further comprising, if the router whose identity information is the temporary host receives the networking request information in the network, the router performs the steps of:
and detecting whether the networking request information in the network comes from the local area network interface of the network or not, and if so, detecting whether networking can be performed or not.
3. The mesh wired ad hoc network method of claim 1, wherein the router detects whether networking is possible by detecting a state of its own wide area network interface and whether a network protocol can be acquired.
4. The mesh wired ad hoc network method of claim 1, further comprising: if the identity information of the router is a permanent host, then
When the router receives the networking request information in the network, the router feeds back reply information;
and the number of the first and second groups,
if the identity information of the router is a permanent sub-machine, then
And when the router receives the reply information, the identity information of the router is unchanged.
5. The mesh wired ad hoc network method of claim 4, further comprising, if the identity information of the router is a permanent host, when the router receives the networking request information, before feeding back the reply information, performing the steps of:
and detecting whether the networking request information comes from a local area network interface of the networking request information, and if so, feeding back reply information.
6. The mesh wired ad hoc network method of claim 4, further comprising: if the identity information of the router is a permanent sub-machine, then
And when the router receives the networking request information, forwarding the networking request information to the router with the identity information of the permanent host, and keeping the identity information of the router unchanged.
7. The mesh wired ad hoc network method of claim 1, wherein when a wired connection is detected, the router broadcasts the networking request information to its own wide area network interface and local area network interface at the same time.
8. A distributed routing device comprising at least two routers for mesh networking, said distributed routing device networking through the mesh wired ad hoc networking method according to any one of claims 1 to 7.
9. A distributed routing device, comprising a memory, a processor and a mesh wired ad hoc network program stored on the memory and operable on the processor, wherein the processor implements the mesh wired ad hoc network method according to any one of claims 1 to 7 when executing the mesh wired ad hoc network program.
10. A computer-readable storage medium, on which a mesh wired ad-hoc network program is stored, wherein the mesh wired ad-hoc network program, when executed by a processor, implements the mesh wired ad-hoc network method according to any one of claims 1 to 7.
CN202010854867.9A 2020-08-20 2020-08-20 mesh wired ad hoc network method, distributed routing device and equipment Active CN111800322B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010854867.9A CN111800322B (en) 2020-08-20 2020-08-20 mesh wired ad hoc network method, distributed routing device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010854867.9A CN111800322B (en) 2020-08-20 2020-08-20 mesh wired ad hoc network method, distributed routing device and equipment

Publications (2)

Publication Number Publication Date
CN111800322A true CN111800322A (en) 2020-10-20
CN111800322B CN111800322B (en) 2022-03-08

Family

ID=72833788

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010854867.9A Active CN111800322B (en) 2020-08-20 2020-08-20 mesh wired ad hoc network method, distributed routing device and equipment

Country Status (1)

Country Link
CN (1) CN111800322B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112511402A (en) * 2020-12-02 2021-03-16 深圳创维数字技术有限公司 Role mode adjusting method and device, wireless mesh network equipment and storage medium
CN112911426A (en) * 2021-01-22 2021-06-04 博为科技有限公司 Network control system, method and device and intelligent optical gateway
CN113141308A (en) * 2021-06-21 2021-07-20 之江实验室 Lightweight wired Mesh networking design method
CN114302433A (en) * 2021-12-28 2022-04-08 深圳市创维软件有限公司 Mesh networking method and device for multiple devices and readable storage medium
CN114465947A (en) * 2022-02-15 2022-05-10 青岛海信宽带多媒体技术有限公司 Router and automatic role selection method of router in Mesh networking
CN114615674A (en) * 2022-03-30 2022-06-10 西安宇飞电子技术有限公司 Wireless Mesh ad hoc network method and system
CN115412581A (en) * 2022-10-31 2022-11-29 深圳市华曦达科技股份有限公司 Mesh multi-scene fusion networking method and system and readable storage medium
CN117440469A (en) * 2023-12-07 2024-01-23 西安优光谱信息科技有限公司 Identity recognition method and system of host and slave in easy mesh networking

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180375724A1 (en) * 2015-02-02 2018-12-27 Eero Inc. Systems and methods for intuitive home networking
CN110740460A (en) * 2019-10-25 2020-01-31 深圳创维数字技术有限公司 device network access method, device, network device and storage medium
CN111147315A (en) * 2019-12-31 2020-05-12 深圳市共进电子股份有限公司 Communication method, expander, router, and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180375724A1 (en) * 2015-02-02 2018-12-27 Eero Inc. Systems and methods for intuitive home networking
CN110740460A (en) * 2019-10-25 2020-01-31 深圳创维数字技术有限公司 device network access method, device, network device and storage medium
CN111147315A (en) * 2019-12-31 2020-05-12 深圳市共进电子股份有限公司 Communication method, expander, router, and storage medium

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112511402A (en) * 2020-12-02 2021-03-16 深圳创维数字技术有限公司 Role mode adjusting method and device, wireless mesh network equipment and storage medium
CN112911426B (en) * 2021-01-22 2022-11-08 博为科技有限公司 Network control system, method and device and intelligent optical gateway
CN112911426A (en) * 2021-01-22 2021-06-04 博为科技有限公司 Network control system, method and device and intelligent optical gateway
CN113141308A (en) * 2021-06-21 2021-07-20 之江实验室 Lightweight wired Mesh networking design method
CN114302433A (en) * 2021-12-28 2022-04-08 深圳市创维软件有限公司 Mesh networking method and device for multiple devices and readable storage medium
CN114302433B (en) * 2021-12-28 2023-09-01 深圳市创维软件有限公司 Mesh networking method for multiple devices, device and readable storage medium
CN114465947A (en) * 2022-02-15 2022-05-10 青岛海信宽带多媒体技术有限公司 Router and automatic role selection method of router in Mesh networking
CN114465947B (en) * 2022-02-15 2024-02-27 青岛海信宽带多媒体技术有限公司 Router and automatic role selection method for router in Mesh networking
CN114615674A (en) * 2022-03-30 2022-06-10 西安宇飞电子技术有限公司 Wireless Mesh ad hoc network method and system
CN114615674B (en) * 2022-03-30 2023-08-29 西安宇飞电子技术有限公司 Wireless Mesh Ad Hoc Network Method and System
CN115412581A (en) * 2022-10-31 2022-11-29 深圳市华曦达科技股份有限公司 Mesh multi-scene fusion networking method and system and readable storage medium
CN117440469A (en) * 2023-12-07 2024-01-23 西安优光谱信息科技有限公司 Identity recognition method and system of host and slave in easy mesh networking
CN117440469B (en) * 2023-12-07 2024-03-12 西安优光谱信息科技有限公司 Identity recognition method and system of host and slave in easy mesh networking

Also Published As

Publication number Publication date
CN111800322B (en) 2022-03-08

Similar Documents

Publication Publication Date Title
CN111800322B (en) mesh wired ad hoc network method, distributed routing device and equipment
US11012286B2 (en) Communication apparatus, methods, and non-transitory computer-readable media for determining IP addresses for use in different networks
US11979274B2 (en) Network management method and apparatus
US10797988B2 (en) Method and apparatus for controlling and managing a field device using an industry internet operating system
US9173161B2 (en) Peer-to-peer pre-association discovery operations
JP4944564B2 (en) COMMUNICATION PARAMETER SETTING METHOD, COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD, AND PROGRAM
CN110830968A (en) Networking method and device, Bluetooth equipment and computer readable medium
RU2738260C1 (en) D2d communication method, remote user equipment and relaying user equipment
WO2012041683A1 (en) Server management using baseboard management controller to establish wireless network
US8873429B2 (en) Method and system to dynamically detect and form a master slave network
US10701536B1 (en) Quarantine network for wireless devices
CN105338595A (en) Intelligent terminal joining method, apparatus and system based on intelligent terminal system
CN111741509A (en) Network distribution method and device, storage medium and processor
CN106453370B (en) Method and device for registering IPC (inter-programmable logic controller) to NVR (network video recorder)
CN106506717A (en) A kind of automatic discovering method and equipment
CN113365227A (en) WI-SUN network system, and network access method, device and equipment based on WI-SUN network system
CN113543277A (en) Distribution network processing method and device and electronic equipment
KR20090084670A (en) Method and system for two-phase mechanism for discovering web services based management service
CN110071950B (en) Information transmission method, transfer device, terminal, controlled device and storage medium
CN104703211A (en) A virtualization accessing method and apparatus
CN115866022A (en) Security information discovery method, security information configuration method and device
CN107708142B (en) Grouping method, device and system for access device AP
US10111051B2 (en) Communication apparatus, control method therefor, program, and storage medium
CN113259928A (en) OTA (over the air) upgrading method and device, electronic equipment, storage medium and program product
CN106034344B (en) Data transmission method and device

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