CN108810881B - Network distribution method, equipment and system - Google Patents

Network distribution method, equipment and system Download PDF

Info

Publication number
CN108810881B
CN108810881B CN201810645563.4A CN201810645563A CN108810881B CN 108810881 B CN108810881 B CN 108810881B CN 201810645563 A CN201810645563 A CN 201810645563A CN 108810881 B CN108810881 B CN 108810881B
Authority
CN
China
Prior art keywords
network
network address
value
devices
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.)
Active
Application number
CN201810645563.4A
Other languages
Chinese (zh)
Other versions
CN108810881A (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.)
Opple Lighting Co Ltd
Suzhou Op Lighting Co Ltd
Original Assignee
Opple Lighting Co Ltd
Suzhou Op Lighting Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Opple Lighting Co Ltd, Suzhou Op Lighting Co Ltd filed Critical Opple Lighting Co Ltd
Priority to CN201810645563.4A priority Critical patent/CN108810881B/en
Publication of CN108810881A publication Critical patent/CN108810881A/en
Application granted granted Critical
Publication of CN108810881B publication Critical patent/CN108810881B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support
    • 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/5046Resolving address allocation conflicts; Testing of addresses
    • 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/5053Lease time; Renewal aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides a network distribution method, equipment and a system, wherein the method is applied to any equipment in a wireless mesh network and comprises the following steps: receiving communication information sent by other equipment in the mesh network, wherein the communication information comprises network addresses and unique identification marks of the equipment; judging whether the network address of the device is the same as the received network addresses of other devices or not; if so, calculating the unique identity of each device with the same network address according to a preset rule to obtain the ID value of each device; and comparing the ID value with the obtained ID values of other devices by using a comparison strategy, and determining whether to modify the network address of the device according to a comparison result. The autonomous communication is realized through mutual interaction among the devices in the mesh network, the synchronization of network addresses is realized, the time of distribution network is shortened, and the efficiency of distribution network is improved. If the equipment is abnormal, the uniqueness of the equipment address can still be ensured through transient network synchronization, and the compatibility of the equipment in the mesh network is improved.

Description

Network distribution method, equipment and system
Technical Field
The invention relates to the technical field of wireless networking and lighting, in particular to a network distribution method, equipment and a system.
Background
With the continuous development of lighting technology and mesh (wireless grid) network technology, the appearance of a large number of mesh nodes in general application occasions becomes a common phenomenon. However, in the current stage, the distribution network of the mesh node usually needs to be uniformly distributed through a master device or distributed through a single-point network in sequence, the distribution mode usually consumes much time, and the distribution network failure condition can occur, which seriously affects the distribution network efficiency. Moreover, if the mesh node is abnormal after the network distribution, the address of the corresponding node is restored to the original unset initial address, the address of the corresponding node may conflict with the addresses of other mesh nodes in the existing network, the fault tolerance is poor, the address repair for the abnormal mesh node still needs to be performed in the existing network distribution mode, and the current abnormal problem of the network distribution cannot be solved as quickly as possible. Therefore, many problems still exist in the mesh network at the present stage when the network is distributed for each device.
Disclosure of Invention
In view of the above, the present invention has been developed to provide a method, device and system for distribution network that overcomes or at least partially solves the above-mentioned problems.
According to one aspect of the present invention, a network distribution method is provided, which is applied to any device in a wireless mesh network, and comprises:
receiving communication information sent by other equipment in a mesh network, wherein the communication information comprises a network address and a unique identity of each equipment;
judging whether the network address of the device is the same as the received network addresses of other devices or not;
if so, calculating the unique identity of each device with the same network address according to a preset rule to obtain the ID value of each device;
and comparing the ID value with the obtained ID values of other devices by using a comparison strategy, and determining whether to modify the network address of the device according to a comparison result.
Optionally, the receiving communication information sent by other devices in the mesh network includes:
and receiving heartbeat packets periodically sent by other equipment in the mesh network, wherein the heartbeat packets carry the communication information of each equipment.
Optionally, the calculating, according to a preset rule, the unique identity of each device with the same network address to obtain an ID value of each device includes:
calculating the unique identity of each device with the same network address by using a Hash algorithm to obtain a Hash value of each device;
and taking the hash value of each device as the ID value of each device.
Optionally, the comparing, by using the comparison policy, the self ID value with the obtained other device ID value includes:
and comparing the ID value with the obtained ID values of other equipment one by one according to the size of the ID value to obtain a comparison result.
Optionally, the determining whether to modify the network address of the mobile terminal according to the comparison result includes:
if the ID value of the self is larger than the ID values of other devices, the network address of the self is modified, otherwise, the original network address is reserved; or
If the ID value of the self is smaller than the ID values of other devices, the network address of the self is modified, otherwise, the original network address is reserved.
Optionally, the modifying the network address of the self includes:
and the device autonomously modifies the network address of the device by combining the received network addresses of other devices in the mesh network so as to ensure that the network address of each device in the mesh network is unique.
According to another aspect of the present invention, there is also provided a distribution network device, including:
the receiving module is configured to receive communication information sent by other equipment in the mesh network, wherein the communication information comprises network addresses and unique identity marks of the equipment;
the judging module is configured to judge whether the network address of the judging module is the same as the received network addresses of other devices;
if so, calculating the unique identity of each device with the same network address according to a preset rule to obtain the ID value of each device;
and the determining module is configured to compare the self ID value with the obtained other equipment ID values by using a comparison strategy and determine whether to modify the self network address according to a comparison result.
Optionally, the receiving module is further configured to:
and receiving heartbeat packets periodically sent by other equipment in the mesh network, wherein the heartbeat packets carry the communication information of each equipment.
Optionally, the computing module is further configured to:
calculating the unique identity of each device with the same network address by using a Hash algorithm to obtain a Hash value of each device;
and taking the hash value of each device as the ID value of each device.
Optionally, the determining module is further configured to:
and comparing the ID value with the obtained ID values of other equipment one by one according to the size of the ID value to obtain a comparison result.
Optionally, the determining module is further configured to:
if the ID value of the self is larger than the ID values of other devices, the network address of the self is modified, otherwise, the original network address is reserved; or
If the ID value of the self is smaller than the ID values of other devices, the network address of the self is modified, otherwise, the original network address is reserved.
Optionally, the determining module is further configured to:
and the device autonomously modifies the network address of the device by combining the received network addresses of other devices in the mesh network so as to ensure that the network address of each device in the mesh network is unique.
According to another aspect of the invention, a distribution network system is further provided, which comprises a plurality of distribution network devices described in any one of the above.
According to the network distribution method, for any equipment in the mesh network, the communication information sent by other equipment in the mesh network can be received firstly. The communication information carries the network address and the unique identity of each other device. At this time, the device side acquires the network addresses and the unique identification information of other devices in the mesh network. Further, the acquired network address of each device is compared with the network address of the device itself, and whether the network address of the device itself is the same as the received network addresses of the other devices is judged. If so, calculating the unique identity of each device with the same network address according to a preset rule to obtain the ID value of each device. And then, the self ID value is further compared with the obtained other equipment ID values by using a comparison strategy, and whether the network address of the self is modified or not is determined according to the comparison result. Therefore, the network distribution method realizes the autonomous communication through the mutual interaction among the devices in the mesh network, does not need to relate to additional components, and can realize the synchronization of network addresses only through the mesh devices, thereby greatly shortening the network distribution time and reducing the network distribution time cost. And all the devices are communicated with each other, so that all the devices participate in the process of distribution network, the efficiency of distribution network is improved, and the error rate of uniformly distributing the network for all the devices by the additional components is reduced from the side. In addition, by the network distribution mode, even if the mesh equipment is abnormal after the network distribution, the uniqueness of the mesh equipment can be still ensured through transient network synchronization, and the compatibility of each equipment in the mesh network is improved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
The above and other objects, advantages and features of the present invention will become more apparent to those skilled in the art from the following detailed description of specific embodiments thereof, taken in conjunction with the accompanying drawings.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart of a method for distributing a network to devices in a mesh network according to an embodiment of the present invention;
fig. 2 is a communication diagram of nodes in a mesh network according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for a bluetooth device a and a bluetooth device B to participate in a network distribution according to an embodiment of the present invention;
fig. 4 is a flowchart of a method for determining whether the bluetooth device a needs to modify its own network address according to an embodiment of the present invention; and
fig. 5 is a schematic block diagram of a distribution network device according to an embodiment of the present invention.
Detailed Description
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.
In order to solve the technical problem, an embodiment of the present invention provides a network distribution method. Fig. 1 is a flow chart of a network distribution method according to an embodiment of the present invention. As shown in fig. 1, the network distribution method at least includes steps S102 to S108:
step S102, receiving communication information sent by other equipment in the mesh network, wherein the communication information comprises network addresses and unique identification marks of the equipment;
step S104, judging whether the network address of the user is the same as the received network addresses of other devices;
step S106, if yes, calculating the unique identity of each device with the same network address according to a preset rule to obtain the ID value of each device;
and S108, comparing the ID value with the obtained ID values of other devices by using a comparison strategy, and determining whether to modify the network address of the device according to the comparison result.
According to the network distribution method, for any equipment in the mesh network, the communication information sent by other equipment in the mesh network can be received firstly. The communication information carries the network address and the unique identity of each other device. At this time, the device side acquires the network addresses and the unique identification information of other devices in the mesh network. Further, the acquired network address of each device is compared with the network address of the device itself, and whether the network address of the device itself is the same as the received network addresses of the other devices is judged. If so, calculating the unique identity of each device with the same network address according to a preset rule to obtain the ID value of each device. And then, comparing the self ID value with the obtained other equipment ID values by using a comparison strategy, and determining whether to modify the self network address according to the comparison result. Therefore, the network distribution method realizes the autonomous communication through the mutual interaction among the devices in the mesh network, does not need to relate to additional components, and can realize the synchronization of network addresses only through the mesh devices, thereby greatly shortening the network distribution time and reducing the network distribution time cost. And all the devices are communicated with each other, so that all the devices participate in the process of distribution network, the efficiency of distribution network is improved, and the error rate of uniformly distributing the network for all the devices by the additional components is reduced from the side. In addition, by the network distribution mode, even if the mesh equipment is abnormal after the network distribution, the uniqueness of the mesh equipment can be still ensured through transient network synchronization, and the compatibility of the equipment in the mesh network is improved.
The network distribution method of the embodiment is based on a mesh network, namely a wireless mesh network, which is a wireless multi-hop network, is a novel wireless mobile communication technology based on IP access, and is suitable for regional environment coverage and broadband high-speed wireless access. In practical application, the mesh network has the advantages of high broadband speed and high spectrum efficiency based on mutual cooperation and cooperation among a plurality of wireless access points distributed in a mesh manner, and has the outstanding characteristics of dynamic self-organization, self-configuration, self-maintenance and the like.
Fig. 2 is a schematic diagram of interaction among devices in a mesh network according to an embodiment of the present invention. As shown in fig. 2, there are A, B, C, D four devices in the mesh network, each of which may exist as a node of the mesh network. Of course, any multiple devices may also exist in the mesh network, for example, multiple devices may be added or reduced according to actual requirements on the basis of the current device, so as to form a new mesh network. This embodiment only exemplifies A, B, C, D four devices in fig. 2, and does not constitute a specific limitation to the number of devices in the mesh network of the present invention.
It should be further noted that, in this embodiment, as shown in fig. 2, connection lines are shown among the device A, B, the device A, C, the device A, D, the device B, C, and the device B, D, and no connection line exists among the devices C, D, which indicates that the devices showing the connection lines may directly communicate with each other, and the device C, D may not implement direct communication due to too far distance or other possible reasons, and this embodiment may implement indirect communication between the devices C, D in a form that the other device nodes receive and forward communication information, and serve as relay points. Of course, if the device C, D satisfies the condition for direct communication, the direct communication may be adopted, and fig. 2 is only an example and does not constitute a specific limitation on the communication method between the devices. The connection lines shown in fig. 2 also represent only a direct communication method between the devices, and do not limit a specific communication path or other communication means between the devices.
Further, with the continuous development of wireless mesh networks, more and more devices are in the mesh networks. According to the method of the present invention, when each device in the mesh network is connected to the network, step S102 may be executed for any device in the mesh network to receive the communication information sent by other devices in the mesh network. The communication information may include a network address and a unique identifier of each device. Specifically, in this embodiment, a specific time window (for example, after power-on) of each device in the mesh network may periodically send a heartbeat packet to other devices in a specific range around, so that the devices in the mesh network perceive each other through the heartbeat packet. Of course, if the coverage area of the mesh network is large, when the heartbeat packet sent by a certain device node cannot be directly transmitted to all device nodes in the mesh network, part of the device nodes in the mesh network may also be used as relay points, and the heartbeat packet is forwarded to a device node in a farther range through the part of the device nodes until all the device nodes in the mesh network can sense other device nodes except the device node.
In this embodiment, when each device in the mesh network is configured, the network address and the unique identity of each device are carried in the heartbeat packet based on the heartbeat packet. By the method, each device in the mesh network can acquire the communication information of other devices within a short time after the device is powered on. Further, step S104 is executed to determine whether the own network address is the same as the received network address of the other device. Whether the network addresses of the devices in the mesh network conflict can be determined through the judging step. If so, further processing is carried out on each device with the network address conflict, so that the network addresses of all the devices in the mesh network are unique. If not, the network addresses of the devices in the mesh network are not conflicted, other operations are not required to be executed on the devices, and the process is directly finished.
Specifically, after step S104 is executed, if the network address of the device is the same as the received network address of the other device, step S106 is further executed, and the unique ID of each device with the same network address is calculated according to the preset rule, so as to obtain the ID value of each device. In this embodiment, a hash algorithm may be used to calculate the unique identifiers of the devices with the same network address to obtain hash values of the devices, and then the hash values of the devices are used as ID values of the devices. In addition, in this embodiment, the unique identifier of each device may be calculated by using any other feasible algorithm as a preset rule, and the hash algorithm is only an example and does not constitute a specific limitation on the preset rule in this embodiment.
After the ID values of the devices with the same network address in the mesh network are obtained according to the above operation steps, step S108 may be further performed, the ID value of the device itself is compared with the obtained ID values of the other devices by using a comparison policy, and whether to modify the network address of the device itself is determined according to the comparison result. Specifically, the self ID value may be first compared with the obtained ID values of the other devices one by one according to the size of the ID value, so as to obtain a comparison result.
After the comparison result is obtained, whether to modify the network address of the mobile terminal according to the comparison result can be determined. In this embodiment, the comparison policy may be set in a user-defined manner according to actual requirements of the user, for example, the comparison policy may be set in advance such that the device with the larger ID value of the two devices with the conflict modifies the comparison policy, the device with the smaller ID value retains the original network address, that is, it is determined that the device with the conflict is present, and it is further determined that the network address of the device with the smaller ID value is modified if the ID value of the device with the smaller ID value is greater than the ID values of the other devices, and otherwise, the original network address is retained. In this case, when the ID value of the device itself is compared with the ID values of the other devices according to the comparison policy, if the ID value of the device itself is smaller than the ID values of the other devices, it is not necessary to perform other operations on the device, and if the ID value of the device itself is larger than the ID values of the other devices, it is necessary to further modify the network address of the device. In addition, the comparison policy may be preset such that the device with a smaller ID value of the two conflicting devices modifies the comparison policy, the device with a larger ID value retains the original network address, that is, determines that the conflicting device exists, and further determines to modify the network address if the ID value of the device is smaller than the ID values of the other devices, otherwise, retains the original network address. In this case, when the ID value of the device itself is compared with the ID values of the other devices according to the comparison policy, if the ID value of the device itself is larger than the ID values of the other devices, it is not necessary to perform other operations on the device, and if the ID value of the device itself is smaller than the ID values of the other devices, it is necessary to further modify the network address of the device.
In the embodiment, only by comparing and distinguishing the ID values of the devices with the same network address, selective modification is performed, so that the devices with the same network address originally have different network addresses. It should be noted that the comparison policy in this embodiment is only an example, and the network distribution method of the present invention may also perform operation processing on the ID values of the devices with the same network address through other various measures, which is not specifically limited in this embodiment.
In addition, in this embodiment, when modifying the network address of the corresponding device in the mesh network, the network address can be modified uniformly by an additional device, or can be modified autonomously by the device. In this embodiment, the network address of the device may be modified, preferably by means of an autonomous modification of the device. When the network address of the other equipment in the mesh network is modified, the equipment can be combined with the received network address of the other equipment in the mesh network to modify autonomously, so that the modified network address does not conflict with the network addresses of the other equipment in the mesh network, and the network addresses of the equipment in the mesh network are unique.
Therefore, the network distribution method realizes the autonomous communication through the mutual interaction among the devices in the mesh network, does not need to relate to additional components, and can realize the synchronization of network addresses only through the mesh devices, thereby greatly shortening the network distribution time and reducing the network distribution time cost. And all the devices are communicated with each other, so that all the devices participate in the process of distribution network, the efficiency of distribution network is improved, and the error rate of uniformly distributing the network for all the devices by the additional components is reduced from the side. In addition, through the network distribution mode, even if the equipment is abnormal after the network is distributed, the uniqueness of each equipment can be still ensured through transient network synchronization, and the compatibility of the equipment in the mesh network is improved.
The network distribution method of the present invention is specifically described in several specific embodiments below.
Example one
The mesh network of the invention can be composed of a plurality of wireless nodes, and with the development of the standard Bluetooth mesh protocol, more and more Bluetooth nodes in the mesh network become common. In this embodiment, a network distribution method according to the present invention is described in detail by taking a bluetooth device as a basis and taking two bluetooth devices (bluetooth device A, B) as an example.
Fig. 3 is a flowchart of a method for a bluetooth device a and a bluetooth device B to participate in a network distribution according to an embodiment of the present invention. As shown in fig. 3, in this embodiment, a bluetooth device a is mainly used for introduction (a bluetooth device B is the same as a method for the bluetooth device a to participate in a distribution network).
In this embodiment, step S302 is first executed, where the bluetooth device a receives a heartbeat packet sent by the bluetooth device B, and the heartbeat packet carries a network address and a unique identity of the bluetooth device B. In this step, the bluetooth device B may also receive the heartbeat packet sent by the bluetooth device a, and the two perform communication interaction through the heartbeat packet of each other. The present embodiment will be described mainly with respect to a bluetooth device a.
Further, step S304 is executed to determine whether the network address of the bluetooth device a itself is the same as the received network address of the bluetooth device B. If not, the network addresses of the Bluetooth device A and the Bluetooth device B are not conflicted, the network addresses do not need to be modified, and the judgment process is finished. If the network addresses of the bluetooth device a and the bluetooth device B are the same, step S306 is executed to further determine whether the network address of the bluetooth device a and the network address of the bluetooth device B need to be modified.
It should be noted that, in this embodiment, the network distribution method of the present invention is specifically described only by taking the bluetooth device a and the bluetooth device B as examples, and in this embodiment, a plurality of other bluetooth devices may be further added on the basis of the bluetooth device A, B, and the network distribution mode of the present embodiment is the same as the network distribution mode of the present embodiment, and is not described herein again.
Example two
The present embodiment is based on the first embodiment, and is still described mainly by the bluetooth device a. When the network addresses of the bluetooth device a and the bluetooth device B conflict, it needs to be further determined whether the network address of the bluetooth device a and the network address of the bluetooth device B need to be modified.
Specifically, fig. 4 is a flowchart of a method for determining whether the bluetooth device a needs to modify its own network address according to an embodiment of the present invention. As shown in fig. 4, step S402 is first executed to obtain the unique id information of the bluetooth device B. In this step, the unique id may be carried in a heartbeat packet sent by the bluetooth device B, and after the bluetooth device a receives the heartbeat packet, the unique id information of the bluetooth device B may be obtained.
Further, step S404 is executed to calculate the unique identifiers of the bluetooth device a and the bluetooth device B according to the preset rule, so as to obtain the ID value of the bluetooth device A, B. In this step, the unique ID of the bluetooth device A, B may be processed by using a hash algorithm, and a corresponding hash value is obtained by calculation, and the hash value of the bluetooth device A, B is further used as the ID value of each of the unique IDs. Of course, the unique identity of the bluetooth device A, B may also be calculated by other algorithms, which is not specifically limited in this embodiment.
Subsequently, in the present embodiment, the comparison policy may be continuously set, and the ID value of the bluetooth device A, B may be determined according to the comparison policy. The comparison policy may be customized according to a user selection, for example, in this embodiment, it may be set that when the ID value of the comparison policy is larger than the ID values of other devices, the network address of the comparison policy is modified, and otherwise, the original network address is retained. Further, step S406 is executed to determine whether the ID value of the bluetooth device a itself is larger than the ID value of the bluetooth device B, if so, step S408 is executed, and if not, step S410 is executed. Of course, this embodiment may also set other comparison strategies to compare the ID values of the bluetooth devices A, B, which is not specifically limited in this embodiment. The present embodiment is mainly described with the bluetooth device a, and it should be understood that the bluetooth device B also performs the determination of the ID value at the same time, except that the determination result of the bluetooth device B is opposite to that of the bluetooth device a, that is, when the bluetooth device a subsequently performs step S408, the bluetooth device B subsequently performs step S410.
Step S408, the network address of the user is modified. In this step, the network address of the bluetooth device a may be modified by an additional component, and the network address of the bluetooth device a itself may also be modified autonomously by the bluetooth device a.
Step S410, the original network address is retained.
In conclusion, the invention realizes the autonomous communication through the mutual interaction among the devices in the mesh network, does not need to relate to additional components, and can realize the synchronization of network addresses only through the mesh devices, thereby greatly shortening the time of the network distribution and reducing the time cost of the network distribution. And all the devices are communicated with each other, so that all the devices participate in the process of distribution network, the efficiency of distribution network is improved, and the error rate of uniformly distributing the network for all the devices by the additional components is reduced from the side. In addition, through the network distribution mode, even if the equipment is abnormal after the network is distributed, the uniqueness of each equipment can be still ensured through transient network synchronization, and the compatibility of the equipment in the mesh network is improved.
Based on the same inventive concept, the present invention further provides a distribution network device, as shown in fig. 5, the device includes:
a receiving module 510, configured to receive communication information sent by other devices in the mesh network, where the communication information includes a network address and a unique identity of each device;
a determining module 520, coupled to the receiving module 510, configured to determine whether the network address of the receiving module is the same as the network address of the other device;
a calculating module 530, coupled to the determining module 520, configured to calculate, if yes, unique identifiers of the devices with the same network address according to a preset rule, so as to obtain ID values of the devices;
and a determining module 540, coupled to the calculating module 530, configured to compare the self ID value with the obtained other device ID values by using the comparison policy, and determine whether to modify the self network address according to the comparison result.
In a preferred embodiment, the receiving module 510 is further configured to:
and receiving heartbeat packets periodically sent by other equipment in the mesh network, wherein the heartbeat packets carry communication information of each equipment.
In a preferred embodiment, the calculation module 530 is further configured to:
calculating the unique identity of each device with the same network address by using a Hash algorithm to obtain a Hash value of each device;
and taking the hash value of each device as the ID value of each device.
In a preferred embodiment, the determining module 540 is further configured to:
and comparing the ID value with the obtained ID values of other equipment one by one according to the size of the ID value to obtain a comparison result.
In a preferred embodiment, the determining module 540 is further configured to:
if the ID value of the self is larger than the ID values of other devices, the network address of the self is modified, otherwise, the original network address is reserved; or
If the ID value of the self is smaller than the ID values of other devices, the network address of the self is modified, otherwise, the original network address is reserved.
In a preferred embodiment, the determining module 540 is further configured to:
and the device autonomously modifies the network address of the device by combining the received network addresses of other devices in the mesh network so as to ensure that the network address of each device in the mesh network is unique.
In addition, the invention also provides a distribution network system which is composed of a plurality of distribution network devices.
It is clear to those skilled in the art that the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and for the sake of brevity, further description is omitted here.
In addition, the functional units in the embodiments of the present invention may be physically independent of each other, two or more functional units may be integrated together, or all the functional units may be integrated in one processing unit. The integrated functional units may be implemented in the form of hardware, or in the form of software or firmware.
Those of ordinary skill in the art will understand that: the integrated functional units, if implemented in software and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computing device (e.g., a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention when the instructions are executed. And the aforementioned storage medium includes: u disk, removable hard disk, Read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disk, and other various media capable of storing program code.
Alternatively, all or part of the steps of implementing the foregoing method embodiments may be implemented by hardware (such as a computing device, e.g., a personal computer, a server, or a network device) associated with program instructions, which may be stored in a computer-readable storage medium, and when the program instructions are executed by a processor of the computing device, the computing device executes all or part of the steps of the method according to the embodiments of the present invention.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments can be modified or some or all of the technical features can be equivalently replaced within the spirit and principle of the present invention; such modifications or substitutions do not depart from the scope of the present invention.

Claims (7)

1. A network distribution method is applied to any device in a wireless mesh network, and comprises the following steps:
receiving communication information sent by other equipment in a mesh network, wherein the communication information comprises a network address and a unique identity of each equipment;
judging whether the network address of the device is the same as the received network addresses of other devices or not;
if so, calculating the unique identity of each device with the same network address according to a preset rule to obtain the ID value of each device;
comparing the ID value with the obtained ID values of other devices by using a comparison strategy, and determining whether to modify the network address of the device according to a comparison result;
the calculating the unique identity of each device with the same network address according to the preset rule to obtain the ID value of each device includes:
calculating the unique identity of each device with the same network address by using a Hash algorithm to obtain a Hash value of each device;
taking the hash value of each device as the ID value of each device;
the comparing the self ID value with the obtained other equipment ID values by using the comparison strategy comprises the following steps:
comparing the ID value with the obtained ID values of other equipment one by one according to the size of the ID value to obtain a comparison result;
the determining whether to modify the network address according to the comparison result includes:
if the ID value of the self is larger than the ID values of other devices, the network address of the self is modified, otherwise, the original network address is reserved; or
If the ID value of the self is smaller than the ID values of other devices, the network address of the self is modified, otherwise, the original network address is reserved.
2. The network distribution method according to claim 1, wherein the receiving communication information sent by other devices in the mesh network comprises:
and receiving heartbeat packets periodically sent by other equipment in the mesh network, wherein the heartbeat packets carry the communication information of each equipment.
3. The network distribution method of claim 1, wherein the modifying the network address of the network comprises:
and the device autonomously modifies the network address of the device by combining the received network addresses of other devices in the mesh network so as to ensure that the network address of each device in the mesh network is unique.
4. A network distribution device, comprising:
the receiving module is configured to receive communication information sent by other equipment in the mesh network, wherein the communication information comprises network addresses and unique identity marks of the equipment;
the judging module is configured to judge whether the network address of the judging module is the same as the received network addresses of other devices;
if so, calculating the unique identity of each device with the same network address according to a preset rule to obtain the ID value of each device;
the determining module is configured to compare the ID value with the obtained ID values of other devices by using a comparison strategy and determine whether to modify the network address of the determining module according to a comparison result;
wherein the computing module is further configured to:
calculating the unique identity of each device with the same network address by using a Hash algorithm to obtain a Hash value of each device;
taking the hash value of each device as the ID value of each device;
the determination module is further configured to:
comparing the ID value with the obtained ID values of other equipment one by one according to the size of the ID value to obtain a comparison result;
the determination module is further configured to:
if the ID value of the self is larger than the ID values of other devices, the network address of the self is modified, otherwise, the original network address is reserved; or
If the ID value of the self is smaller than the ID values of other devices, the network address of the self is modified, otherwise, the original network address is reserved.
5. The distribution network device of claim 4, wherein the receiving module is further configured to:
and receiving heartbeat packets periodically sent by other equipment in the mesh network, wherein the heartbeat packets carry the communication information of each equipment.
6. The distribution network device of claim 4, wherein the determination module is further configured to:
and the device autonomously modifies the network address of the device by combining the received network addresses of other devices in the mesh network so as to ensure that the network address of each device in the mesh network is unique.
7. A distribution network system comprising a plurality of distribution network devices of any one of claims 4-6.
CN201810645563.4A 2018-06-21 2018-06-21 Network distribution method, equipment and system Active CN108810881B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810645563.4A CN108810881B (en) 2018-06-21 2018-06-21 Network distribution method, equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810645563.4A CN108810881B (en) 2018-06-21 2018-06-21 Network distribution method, equipment and system

Publications (2)

Publication Number Publication Date
CN108810881A CN108810881A (en) 2018-11-13
CN108810881B true CN108810881B (en) 2021-10-15

Family

ID=64084354

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810645563.4A Active CN108810881B (en) 2018-06-21 2018-06-21 Network distribution method, equipment and system

Country Status (1)

Country Link
CN (1) CN108810881B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111836350B (en) * 2020-07-22 2023-04-18 乐鑫信息科技(上海)股份有限公司 Method for adjusting active duty ratio of nodes in mesh network
CN112291386B (en) * 2020-11-13 2022-03-29 珠海雷特科技股份有限公司 Bluetooth address allocation method of intelligent lamp, computer device and computer readable storage medium
CN113179507B (en) * 2021-06-30 2021-09-28 南京沁恒微电子股份有限公司 Bluetooth mesh-based self-distribution networking method and system without main equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101742512A (en) * 2009-12-24 2010-06-16 北京交通大学 Specific application method for Node ID on MAC layer
CN102291448A (en) * 2011-08-08 2011-12-21 华南理工大学 Automatic IP (Internet protocol) address allocation method based on geographical position in mobile ad hoc network
CN104754067A (en) * 2013-12-30 2015-07-01 北京大唐高鸿软件技术有限公司 Vehicle-mounted short-distance communication network based vehicle-mounted node IP address dynamic configuration method
CN108076163A (en) * 2016-11-16 2018-05-25 中国电信股份有限公司 Mobile ad hoc network IP address distribution method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101742512A (en) * 2009-12-24 2010-06-16 北京交通大学 Specific application method for Node ID on MAC layer
CN102291448A (en) * 2011-08-08 2011-12-21 华南理工大学 Automatic IP (Internet protocol) address allocation method based on geographical position in mobile ad hoc network
CN104754067A (en) * 2013-12-30 2015-07-01 北京大唐高鸿软件技术有限公司 Vehicle-mounted short-distance communication network based vehicle-mounted node IP address dynamic configuration method
CN108076163A (en) * 2016-11-16 2018-05-25 中国电信股份有限公司 Mobile ad hoc network IP address distribution method and device

Also Published As

Publication number Publication date
CN108810881A (en) 2018-11-13

Similar Documents

Publication Publication Date Title
US7561581B2 (en) Method of allocating IP address and detecting duplication of IP address in an ad-hoc network environment
CN108810881B (en) Network distribution method, equipment and system
KR102392120B1 (en) Processing method, device and system for nf component abnormality
US10911400B2 (en) Network device movement validation
US9350651B2 (en) Packet forwarding device and wireless communication system
US10049068B2 (en) SAS system, SAS system traversal method, and apparatus
KR20150084647A (en) Method and apparatus for establishing a virtual interface for a set of mutual-listener devices
CN111182659B (en) Mode switching method and mode switching device of Mesh equipment and Mesh equipment
CN108173757B (en) Port state setting method and device
CN113852976A (en) Data processing method, controller and forwarding equipment
TW201916643A (en) Role-based automatic configuration system and method for ethernet switches
CN104703211B (en) A kind of virtualization cut-in method and equipment
CN104869621A (en) Method and device for network awareness
US20140204953A1 (en) Communication System and Network Relay Device
US10447497B2 (en) Lighting network
US20210006412A1 (en) Communications system and devices for routing data
CN105681229B (en) The method and interchanger of ECP Extended Capabilities Port number
CN108574587B (en) Capacity updating method and device for distributed equipment
CN109981462B (en) Message processing method and device
CN108989173B (en) Message transmission method and device
CN107666443B (en) Message forwarding method and device
CN106506375A (en) A kind of route renewing method and device
US11095514B2 (en) System and method for propagating anima network objective changes
CN110233713B (en) Multi-link communication method and system based on LLDP message
CN109831541B (en) Equipment address allocation method, system and related equipment

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