CN106878182B - Data transmission method and equipment - Google Patents

Data transmission method and equipment Download PDF

Info

Publication number
CN106878182B
CN106878182B CN201611251206.7A CN201611251206A CN106878182B CN 106878182 B CN106878182 B CN 106878182B CN 201611251206 A CN201611251206 A CN 201611251206A CN 106878182 B CN106878182 B CN 106878182B
Authority
CN
China
Prior art keywords
up2p
network
packet
destination address
data packet
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
CN201611251206.7A
Other languages
Chinese (zh)
Other versions
CN106878182A (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 Hualistone Technology Co ltd
Original Assignee
Shenzhen Hualistone 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 Hualistone Technology Co ltd filed Critical Shenzhen Hualistone Technology Co ltd
Priority to CN201611251206.7A priority Critical patent/CN106878182B/en
Publication of CN106878182A publication Critical patent/CN106878182A/en
Application granted granted Critical
Publication of CN106878182B publication Critical patent/CN106878182B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • 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)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention relates to the technical field of communication, and discloses a data transmission method and equipment, which comprise the following steps: the method comprises the steps that a network-connected device receives a peer-to-peer network UP2P data packet, and the UP2P data packet comprises a destination address; when the UP2P data packet is judged not to be sent to the network-accessed device according to the destination address, the UP2P data packet is not a broadcast data packet, and the destination address exists in an addressing table of the network-accessed device, the UP2P data packet is forwarded to the destination device corresponding to the destination address; when the UP2P data packet is judged not to be sent to the device which is accessed to the network according to the destination address, the UP2P data packet is not a broadcast data packet, and the destination address does not exist in the addressing table of the device which is accessed to the network, the UP2P data packet is forwarded to the adjacent device of the device which is accessed to the network. By implementing the embodiment of the invention, the transmission distance of the WiFi internet of things can be increased.

Description

Data transmission method and equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data transmission method and device.
Background
The internet of things is an application mode for accessing various devices into a network to realize remote management, acquisition, analysis, control and intercommunication. At present, the access scheme of the internet of things mainly comprises WIreless FIdelity (WiFi), bluetooth, Zigbee protocol (english: Zigbee), private protocols of ISM frequency bands and the like, wherein the WiFi protocol can be directly accessed to the network without gateway conversion. However, at present, the transmission distance of the WiFi internet of things is short.
Disclosure of Invention
The embodiment of the invention discloses a data transmission method and equipment, which can increase the transmission distance of a WiFi internet of things.
The first aspect of the embodiments of the present invention discloses a data transmission method, including:
the method comprises the steps that a networked device receives a peer-to-peer network UP2P data packet, wherein the UP2P data packet comprises a destination address;
when the UP2P data packet is judged not to be sent to the network-connected device according to the destination address, the UP2P data packet is not a broadcast data packet, and the destination address exists in an addressing table of the network-connected device, forwarding the UP2P data packet to the destination device corresponding to the destination address;
or, when it is determined according to the destination address that the UP2P packet is not sent to the networked device, and the UP2P packet is not a broadcast packet, and the destination address does not exist in the addressing table of the networked device, forwarding the UP2P packet to a neighboring device of the networked device;
or, when the UP2P data packet is judged not to be sent to the network-connected device according to the destination address, and when the UP2P data packet is a broadcast data packet, the UP2P data packet is forwarded to a neighboring device of the network-connected device.
A second aspect of the embodiments of the present invention discloses a data transmission method, including:
the method comprises the steps that a device to be accessed to a network receives a special configuration frame sent by a device already accessed to the network, wherein the special configuration frame comprises a special destination address, a special source address, a special access point address, an encrypted Service Set Identifier (SSID) of a wireless Mesh network Mesh where the device already accessed to the network is located and encrypted variable data;
and when the Mesh is judged to be the network to be accessed by the equipment to be accessed according to the Mesh identification number of the SSID, obtaining the network hierarchy of the accessed equipment from the SSID, and sending network access request information to the accessed equipment with the minimum network hierarchy.
The third aspect of the embodiments of the present invention discloses a data transmission system, which is applied to a network architecture including a first wireless Mesh network Mesh, a server, and a second Mesh, and includes:
the device of the first Mesh sends a UP2P data packet to the server;
the server receiving the UP2P data packet and sending the UP2P data packet to the device of the second Mesh;
the device of the second Mesh receives the UP2P packet.
A fourth aspect of the present invention discloses a device that has already accessed a network, where the device that has already accessed a network includes:
a receiving unit for receiving a peer-to-peer network UP2P data packet, the UP2P data packet including a destination address;
a sending unit, configured to forward the UP2P packet to a destination device corresponding to the destination address when it is determined, according to the destination address, that the UP2P packet is not sent to the network-connected device, the UP2P packet is not a broadcast packet, and the destination address exists in an addressing table of the network-connected device;
or, the sending unit is configured to forward the UP2P packet to a neighboring device of the networked device when it is determined, according to the destination address, that the UP2P packet is not sent to the networked device, and the UP2P packet is not a broadcast packet, and the destination address does not exist in an addressing table of the networked device;
or, the sending unit is configured to forward the UP2P packet to a neighboring device of the networked device when it is determined that the UP2P packet is not sent to the networked device according to the destination address and when the UP2P packet is a broadcast packet.
The fifth aspect of the embodiments of the present invention discloses a device to be networked, where the device to be networked includes:
a receiving unit, configured to receive a special configuration frame sent by a device that has already accessed a network, where the special configuration frame includes a special destination address, a special source address, a special access point address, an encrypted service set identifier SSID of a wireless Mesh network Mesh where the device that has accessed the network is located, and encrypted variable data;
a sending unit, configured to, when it is determined that the Mesh is a network to be accessed by the device to be accessed according to the Mesh identification number of the SSID, obtain a network hierarchy of the accessed device from the SSID, and send network access request information to the accessed device with the smallest network hierarchy;
the SSID comprises the SSID name of the root device in the Mesh, the network identification name of the Mesh, the network hierarchy of the network-accessed device and the last 6 bits of the physical address of the network-accessed device.
The embodiment of the invention has the following beneficial effects:
in the embodiment of the present invention, when a network-connected device determines that the UP2P packet is not sent to the network-connected device, and the UP2P packet is not a broadcast packet, and the destination address exists in an addressing table of the network-connected device, the UP2P packet is forwarded to a destination device corresponding to the destination address; or, when the network-connected device determines that the UP2P packet is not sent to the network-connected device, and the UP2P packet is not a broadcast packet, and the destination address does not exist in the addressing table of the network-connected device, forwarding the UP2P packet to a neighboring device of the network-connected device; or, when the network-connected device determines that the UP2P packet is not sent to the network-connected device, and when the UP2P packet is a broadcast packet, the UP2P packet is forwarded to a neighboring device of the network-connected device. Therefore, by implementing the embodiment of the present invention, when the network-connected device receives the UP2P data packet, the data packet is forwarded to a lower node, so that the UP2P data packet can be relayed and transmitted in a level-to-level manner, thereby increasing the transmission distance of the WiFi internet of things.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic diagram of a Mesh structure of a wireless Mesh network according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a data transmission method disclosed in the embodiment of the present invention;
FIG. 3 is a diagram illustrating a structure of a UP2P data packet according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a device to be networked scanning and accessing a network according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a format of a special configuration frame according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a data transmission system according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a device already networked according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a device to be networked according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a terminal disclosed in the embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a schematic diagram of a Mesh structure of a wireless Mesh network according to an embodiment of the present invention. As shown in fig. 1, the Mesh includes: equipment nodes Node (Node 1-Node 7) and a monitoring platform. Mesh of multi-hop path can be formed between the equipment nodes and the monitoring platform by adopting a wireless interconnection mode. The device Node may transmit the collected information to the monitoring platform through the Mesh.
Wherein, the device Node may include: the Mobile phone, the tablet computer, the Mobile Internet Device (MID), the smart wearable Device (such as a smart watch, a smart bracelet, etc.), the server, the application program or the base station, etc. The monitoring platform can comprise a mobile phone, a tablet computer or an MID and the like.
Referring to fig. 2, fig. 2 is a schematic flow chart of a data transmission method according to an embodiment of the present invention. The data transmission method may include the following steps.
Step S201, the network-connected device receives a peer-to-peer network UP2P data packet, wherein the UP2P data packet comprises a destination address.
Step S202, judging whether the UP2P data packet is sent to the accessed network equipment or not according to the destination address, if so, executing step S203; otherwise, the network-connected device processes the UP2P data packet.
Step S203, judging whether the UP2P data packet is a broadcast data packet, if so, forwarding the UP2P data packet to an adjacent device of the network-accessed device; otherwise, step S204 is executed.
Step S204, judging whether the destination address exists in the addressing list of the accessed network equipment, if so, forwarding the UP2P data packet to the destination equipment corresponding to the destination address; otherwise, forwarding the UP2P data packet to the adjacent device of the network-accessed device.
The networked device may include a Node device that has entered the Mesh, such as any one of the Node 1-Node 7 shown in fig. 1.
The UP2P packet may include a destination address (which may also refer to a destination port number), determine whether the destination address is the same as the address of the network-connected device, and if so, determine that the UP2P packet is sent to the network-connected device; otherwise, the UP2P data packet is judged not to be sent to the network-accessed device. When the UP2P data packet is determined to be sent to the networked device, the networked device may perform data analysis on the UP2P data packet or upload the data packet to the monitoring platform.
The neighboring devices of the networked device may refer to node devices within a one-hop or multi-hop range of the networked device. For example, as shown in fig. 1, if the already-networked device is a Node4, and a Node device within a hop range of the Node4 is defined as a neighboring device of the Node4, the neighboring device may be a Node1, a Node2, a Node6, and a Node 7; if the already-networked device is a Node4, and a Node device in the two-hop range of the Node4 is defined as a neighboring device of the Node4, the neighboring devices may be a Node3 and a Node 5.
The address table of the networked device may include addresses of device nodes connected to the networked device. For example, as shown in fig. 1, if the already-networked device is Node4 and the device nodes connected to the Node4 are Node1, Node2, Node6 and Node7, the address table of the Node4 may store the addresses of Node1, Node2, Node6 and Node 7.
Further, referring to the schematic diagram of the UP2P packet structure shown in fig. 3, the UP2P packet may further include a number identifier, a source address, a packet sequence number, a packet length, and variable data, wherein the UP2P packet is composed of 7 fields from a first field to a seventh field, and the first field includes 4 bytes of the number identifier;
the second domain and the third domain respectively occupy 4 bytes and comprise the destination address;
the fourth domain and the fifth domain respectively occupy 4 bytes and comprise the source address;
the sixth field contains the packet sequence number of 2 bytes;
the seventh field contains the variable data.
It should be noted that the determining operations in step S202, step S203 and step S204 may also be executed in other devices besides the network-connected device, such as a server.
As an optional implementation manner, the device to be networked may scan for network access through the following steps 11) to 13):
step 11), the network accessed device sends a special configuration frame to the device to be accessed, wherein the special configuration frame comprises a special destination address, a special source address, a special Wireless Access Point (AP) address, an encrypted Service Set Identifier (SSID) of the Mesh where the network accessed device is located and encrypted variable data.
And step 12), the equipment to be accessed receives the special configuration frame sent by the accessed equipment.
Step 13), when the Mesh is judged to be the network to be accessed by the device to be accessed according to the Mesh identification number of the SSID, the device to be accessed obtains the network level of the accessed device from the SSID, and sends network access request information to the accessed device with the minimum network level.
It should be noted that, in the embodiment of the present invention, the network-accessed device of the Mesh may be divided into network hierarchies, the lowest hierarchy may be a device accessing the AP, the network hierarchy may be 0, the network hierarchy of the next device of the device may be 1, the network hierarchy of the next device may be 2, and so on.
The network hierarchy of the device may be 255 at maximum, and in order to implement unlimited device circulation, after a device with the network hierarchy of 255, the network hierarchy of a device accessed at a next stage may be reset to 0, and circulation is performed sequentially.
For example, referring to the schematic diagram of scanning and accessing a network by a device to be networked shown in fig. 4, Node1 to Node7 may be used as the device to be networked of the Mesh, and if the device to be networked, Node8, scans Node5 and Node7, where the network level of Node5 is 0 and the network level of Node7 may be 255, the Node8 may select the Node7 to access.
In the embodiment of the present invention, the "0 network level" is formed at a next level of the "255 network level", so the "0 network level" may be regarded as the "256 network level", and by analogy, the "1 network level" may be regarded as the "257 network level", and the like.
By implementing the embodiment of the invention, the cutting of the Mesh can be prevented.
Optionally, the special destination address may refer to 0 or other characters that are not the destination address; the special source address may refer to 0, or other characters not being the source address; the special AP address may refer to 0, or other characters not being the AP address, etc.
The format of the special configuration frame may be as shown in fig. 5, where the special configuration frame includes 6 bytes of the special destination address, 6 bytes of the special source address, 2 bytes of the packet sequence number, 0X80, and variable data, where the variable data includes SSID and password information of the root router of the Mesh, and the variable data may be inserted into the special configuration frame after being encrypted and transmitted.
In the method depicted in fig. 1, when a network-connected device determines that the UP2P packet is not sent to a network-connected device, the UP2P packet is not a broadcast packet, and the destination address exists in an addressing table of the network-connected device, the UP2P packet is forwarded to a destination device corresponding to the destination address; or, when the network-connected device determines that the UP2P packet is not sent to the network-connected device, and the UP2P packet is not a broadcast packet, and the destination address does not exist in the addressing table of the network-connected device, forwarding the UP2P packet to a neighboring device of the network-connected device; or, when the network-connected device determines that the UP2P packet is not sent to the network-connected device, and when the UP2P packet is a broadcast packet, the UP2P packet is forwarded to a neighboring device of the network-connected device. It can be seen that, when the network-connected device receives the UP2P data packet, the data packet is forwarded to a lower node, so that the UP2P data packet can be relayed by one level, thereby increasing the transmission distance of the WiFi internet of things.
Referring to fig. 6, fig. 6 is a schematic diagram of a data transmission system according to an embodiment of the disclosure. As shown in fig. 6, the data transmission system is applied to a network architecture including a first Mesh, a server, and a second Mesh.
Wherein the device of the first Mesh sends a UP2P data packet to the server;
the server receiving the UP2P data packet and sending the UP2P data packet to the device of the second Mesh;
the device of the second Mesh receives the UP2P packet.
The device of the first Mesh and the device of the second Mesh can be a smart phone, a notebook computer, or a wearable device with a communication function or an application program.
In the system depicted in fig. 6, the devices of the first Mesh include device 1, device 2, device 3, and the like, the devices of the second Mesh include device 1, device 2, device 3, and the like, and the data collected by the devices of the first Mesh may be sent to the devices of the second Mesh through a server, so that implementing the system depicted in fig. 6 can implement inter-network interworking of different meshes.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a networked device according to an embodiment of the present invention. The networked device shown in fig. 7 may include:
a receiving unit 701, configured to receive a peer-to-peer network UP2P data packet, where the UP2P data packet includes a destination address;
a sending unit 702, configured to forward the UP2P packet to a destination device corresponding to the destination address when it is determined, according to the destination address, that the UP2P packet is not sent to the network-connected device, the UP2P packet is not a broadcast packet, and the destination address exists in an addressing table of the network-connected device;
or, the sending unit 702 is configured to forward the UP2P packet to a neighboring device of the networked device when it is determined, according to the destination address, that the UP2P packet is not sent to the networked device, and the UP2P packet is not a broadcast packet, and the destination address does not exist in an addressing table of the networked device;
or, the sending unit 702 is configured to forward the UP2P packet to a neighboring device of the networked device when it is determined that the UP2P packet is not sent to the networked device according to the destination address and when the UP2P packet is a broadcast packet.
As an optional implementation, the UP2P data packet further includes a number identifier, a source address, a packet sequence number, a packet length, and variable data, the UP2P data packet is composed of 7 fields of a first field to a seventh field, the first field contains 4 bytes of the number identifier;
the second domain and the third domain respectively occupy 4 bytes and comprise the destination address;
the fourth domain and the fifth domain respectively occupy 4 bytes and comprise the source address;
the sixth field contains the packet sequence number of 2 bytes;
the seventh field contains the variable data;
the sending unit is further configured to send a special configuration frame to the device to be networked, where the special configuration frame includes a special destination address, a special source address, a special access point address, an encrypted service set identifier SSID of a Mesh where the device to be networked is located, and encrypted variable data;
the receiving unit is further configured to receive network access request information sent by the device to be networked for the special configuration frame;
the SSID comprises the SSID name of the root device in the Mesh, the network identification name of the Mesh, the network hierarchy of the network-accessed device and the last 6 bits of the physical address of the network-accessed device.
It can be seen that, by implementing the networked device described in fig. 7, the transmission distance of the WiFi internet of things can be increased.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a device to be networked according to an embodiment of the present invention. Wherein, the equipment to be networked comprises: a receiving unit 801, configured to receive a special configuration frame sent by a device that has already accessed a network, where the special configuration frame includes a special destination address, a special source address, a special access point address, an encrypted service set identifier SSID of a Mesh where the device that has already accessed a network is located, and encrypted variable data;
a sending unit 802, configured to, when it is determined that the Mesh is a network to be accessed by the device to be accessed according to the Mesh identification number of the SSID, obtain a network hierarchy of the accessed device from the SSID, and send network access request information to the accessed device with the smallest network hierarchy;
the SSID comprises the SSID name of the root device in the Mesh, the network identification name of the Mesh, the network hierarchy of the network-accessed device and the last 6 bits of the physical address of the network-accessed device.
It can be seen that, by implementing the networked device described in fig. 8, the transmission distance of the WiFi internet of things can be increased.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a terminal according to an embodiment of the present invention. For convenience of description, only the portions related to the embodiments of the present invention are shown, and details of the specific technology are not disclosed, please refer to the embodiments of the present invention shown in fig. 1 to 6. Among them, the terminal shown in fig. 9 may include:
an input device 3, which processor 1 is connected to the processor 1 via an interface 2, an output device 6, which is connected to the processor 1 via the interface 2, and a memory 5, which is connected to the processor 1 via a bus 4. Wherein, the memory 5 is used for storing a group of program codes; the processor 1 is adapted to call up program code stored in the memory 5 for performing the following operations:
the input device 3 receives a peer-to-peer network UP2P data packet, the UP2P data packet including a destination address;
when the UP2P data packet is judged not to be sent to the network-connected device according to the destination address, the UP2P data packet is not a broadcast data packet, and the destination address exists in an addressing table of the network-connected device, the output device 6 forwards the UP2P data packet to the destination device corresponding to the destination address;
or, when it is determined according to the destination address that the UP2P packet is not sent to the networked device, and the UP2P packet is not a broadcast packet, and the destination address does not exist in the addressing table of the networked device, the output device 6 forwards the UP2P packet to a neighboring device of the networked device;
or, when it is determined that the UP2P packet is not sent to the network-connected device according to the destination address, and when the UP2P packet is a broadcast packet, the output device 6 forwards the UP2P packet to a neighboring device of the network-connected device.
Therefore, the transmission distance of the WiFi internet of things can be increased by implementing the terminal described in the figure 9.
It will be understood by those skilled in the art that all or part of the steps in the methods of the embodiments described above may be implemented by instructions associated with a program, which may be stored in a computer-readable storage medium, where the storage medium includes Read-Only Memory (ROM), Random Access Memory (RAM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), One-time Programmable Read-Only Memory (OTPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), compact disc-Read-Only Memory (CD-ROM), or other Memory, magnetic disk, magnetic tape, or magnetic tape, Or any other medium which can be used to carry or store data and which can be read by a computer.
The data transmission method and the data transmission device disclosed by the embodiment of the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (5)

1. A method of data transmission, the method comprising:
the method comprises the steps that a networked device receives a peer-to-peer network UP2P data packet, wherein the UP2P data packet comprises a destination address;
when the UP2P data packet is judged not to be sent to the network-connected device according to the destination address, the UP2P data packet is not a broadcast data packet, and the destination address exists in an addressing table of the network-connected device, forwarding the UP2P data packet to the destination device corresponding to the destination address;
or, when it is determined according to the destination address that the UP2P packet is not sent to the networked device, and the UP2P packet is not a broadcast packet, and the destination address does not exist in the addressing table of the networked device, forwarding the UP2P packet to a neighboring device of the networked device;
or, when the UP2P data packet is judged not to be sent to the network-connected device according to the destination address and the UP2P data packet is a broadcast data packet, forwarding the UP2P data packet to a neighboring device of the network-connected device;
the method further comprises the following steps:
the equipment which has accessed the network sends a special configuration frame to equipment to be accessed the network, wherein the special configuration frame comprises a special destination address, a special source address, a special access point address, an encrypted Service Set Identifier (SSID) of a wireless Mesh network Mesh where the equipment which has accessed the network is located and encrypted variable data;
and the network-accessed equipment receives network-accessing request information sent by the equipment to be networked aiming at the special configuration frame.
2. The method of claim 1 wherein the UP2P data packet further comprises a numeric identifier, a source address, a packet sequence number, a packet length, and variable data, wherein the UP2P data packet consists of 7 fields in total from a first field to a seventh field, the first field containing 4 bytes of the numeric identifier;
the second domain and the third domain respectively occupy 4 bytes and comprise the destination address;
the fourth domain and the fifth domain respectively occupy 4 bytes and comprise the source address;
the sixth field contains the packet sequence number of 2 bytes;
the seventh field contains the variable data.
3. The method of claim 1, wherein the SSID comprises an SSID name of a root device in the Mesh, a network identification name of the Mesh, a network hierarchy of the networked device, and a last 6 bits of a physical address of the networked device.
4. A networked device, the networked device comprising:
a receiving unit for receiving a peer-to-peer network UP2P data packet, the UP2P data packet including a destination address;
a sending unit, configured to forward the UP2P packet to a destination device corresponding to the destination address when it is determined, according to the destination address, that the UP2P packet is not sent to the network-connected device, the UP2P packet is not a broadcast packet, and the destination address exists in an addressing table of the network-connected device;
or, the sending unit is configured to forward the UP2P packet to a neighboring device of the networked device when it is determined, according to the destination address, that the UP2P packet is not sent to the networked device, and the UP2P packet is not a broadcast packet, and the destination address does not exist in an addressing table of the networked device;
or, the sending unit is configured to forward the UP2P packet to a neighboring device of the networked device when it is determined that the UP2P packet is not sent to the networked device according to the destination address and when the UP2P packet is a broadcast packet;
the sending unit is further configured to send a special configuration frame to the device to be networked, where the special configuration frame includes a special destination address, a special source address, a special access point address, an encrypted service set identifier SSID of a Mesh of a wireless Mesh network where the device to be networked is located, and encrypted variable data;
the receiving unit is further configured to receive network access request information sent by the device to be networked for the special configuration frame.
5. The meshed device of claim 4, wherein the UP2P data packet further comprises a numeric identifier, a source address, a packet sequence number, a packet length, and variable data, the UP2P data packet is composed of 7 fields in total from a first field to a seventh field, the first field contains 4 bytes of the numeric identifier;
the second domain and the third domain respectively occupy 4 bytes and comprise the destination address;
the fourth domain and the fifth domain respectively occupy 4 bytes and comprise the source address;
the sixth field contains the packet sequence number of 2 bytes;
the seventh field contains the variable data;
the SSID comprises the SSID name of the root device in the Mesh, the network identification name of the Mesh, the network hierarchy of the network-accessed device and the last 6 bits of the physical address of the network-accessed device.
CN201611251206.7A 2016-12-29 2016-12-29 Data transmission method and equipment Active CN106878182B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611251206.7A CN106878182B (en) 2016-12-29 2016-12-29 Data transmission method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611251206.7A CN106878182B (en) 2016-12-29 2016-12-29 Data transmission method and equipment

Publications (2)

Publication Number Publication Date
CN106878182A CN106878182A (en) 2017-06-20
CN106878182B true CN106878182B (en) 2020-11-06

Family

ID=59164171

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611251206.7A Active CN106878182B (en) 2016-12-29 2016-12-29 Data transmission method and equipment

Country Status (1)

Country Link
CN (1) CN106878182B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108289288A (en) * 2018-01-22 2018-07-17 上海晶曦微电子科技有限公司 A kind of method, apparatus of communication, communication equipment and storage medium
CN110907951A (en) * 2018-09-17 2020-03-24 林志弘 Tracking and positioning system for predetermined range
CN114363994B (en) * 2021-09-27 2024-04-30 北京小米移动软件有限公司 Method, device and system for node network access, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102695287A (en) * 2012-06-20 2012-09-26 电子科技大学 VANET (vehicular ad-hoc network) media access control method

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050106815A (en) * 2004-05-06 2005-11-11 삼성전자주식회사 Method of routing in a wireless network
CN101127696B (en) * 2006-08-15 2012-06-27 华为技术有限公司 Data forwarding method for layer 2 network and network and node devices
CN101175025B (en) * 2006-10-30 2011-08-03 华为技术有限公司 System, switchboard and method supporting mixed forwarding message
CN101459618B (en) * 2009-01-06 2011-01-19 北京航空航天大学 Data packet forwarding method and device for virtual machine network
CN101867920B (en) * 2010-02-09 2013-02-13 利尔达科技有限公司 Grading type wireless sensor networking method
CN101902795B (en) * 2010-06-21 2012-10-03 利尔达科技有限公司 Wireless sensor network diffusion routing algorithm based on connection
CN101873273A (en) * 2010-07-08 2010-10-27 华为技术有限公司 Routing forwarding method, routing node and wireless communication network
CN102905340B (en) * 2011-07-28 2015-08-12 大唐联诚信息系统技术有限公司 A kind of addressing method and device being applied to aeronautical communications network
US9071451B2 (en) * 2012-07-31 2015-06-30 At&T Intellectual Property I, L.P. Geocast-based situation awareness
CN104917790A (en) * 2014-03-11 2015-09-16 北京风行在线技术有限公司 P2P-based data transmission method, apparatus and system
CN105163349B (en) * 2015-08-03 2016-05-04 东南大学 A kind of multiple gateway Wireless Mesh network implementation method based on IEEE802.11s
CN105611489A (en) * 2016-01-20 2016-05-25 深圳市金溢科技股份有限公司 Terminal, base station and communication mechanism applied in wide area internet of things M2M (Machine to Machine) communication network

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102695287A (en) * 2012-06-20 2012-09-26 电子科技大学 VANET (vehicular ad-hoc network) media access control method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《基于P2P的CDN网络中紧急消息广播技术》;闫正航等;《计算机应用研究》;20070531;对等 *

Also Published As

Publication number Publication date
CN106878182A (en) 2017-06-20

Similar Documents

Publication Publication Date Title
CN103534993B (en) Connect the system of selection of Tag switching route and the device in low-power network territory
US8732338B2 (en) Mesh network bridge routing
CN106878182B (en) Data transmission method and equipment
JP6195014B2 (en) COMMUNICATION SYSTEM, COMMUNICATION METHOD, RELAY DEVICE, AND COMMUNICATION PROGRAM
CN107257561B (en) Relay communication configuration method and device
JP2007325261A (en) Method of establishing route
CN106507414B (en) Message forwarding method and device
JP2017017477A (en) Communication device, communication method and communication program
US9537986B2 (en) Dynamic contact sharing in a mesh network
CN105450585A (en) Information transmission method and device
JP2010074691A (en) Ad-hoc network wireless communication method
CN106712989B (en) QoS management method and device
CN103634214A (en) Route information generating method and device
EP1760967A1 (en) Wireless communication terminal and QoS information collection method
CN108370610A (en) Interference mitigation in dense grid network
CN105530185A (en) Overlay routing network, routing method based on overlay routing network, and router
KR20160126892A (en) Repeating method and corresponding communication network device, system, computer readable program product and computer readable storage medium
CN110662258A (en) Message forwarding method, device and medium
CN107005464B (en) Method and device for processing service flow data packet
CN112887209B (en) Entry establishment method and related equipment for data transmission
CN107249204B (en) Antenna setting method and device for relay communication
CN107786441B (en) Communication method, OpenFlow switch and communication system
CN111095893B (en) Conditional routing apparatus and method
CN111526512A (en) Gateway bridging method, device, equipment and medium based on Wi-Fi data packet
CN109041022B (en) Network management method, Bluetooth module, medium and computer

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