WO2019119346A1 - Method and network device for determining communication path - Google Patents

Method and network device for determining communication path Download PDF

Info

Publication number
WO2019119346A1
WO2019119346A1 PCT/CN2017/117717 CN2017117717W WO2019119346A1 WO 2019119346 A1 WO2019119346 A1 WO 2019119346A1 CN 2017117717 W CN2017117717 W CN 2017117717W WO 2019119346 A1 WO2019119346 A1 WO 2019119346A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
routing
target
communication path
path
Prior art date
Application number
PCT/CN2017/117717
Other languages
French (fr)
Chinese (zh)
Inventor
刘培
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2017/117717 priority Critical patent/WO2019119346A1/en
Priority to CN201780038263.3A priority patent/CN110178410A/en
Publication of WO2019119346A1 publication Critical patent/WO2019119346A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/12Communication route or path selection, e.g. power-based or shortest path routing based on transmission quality or channel quality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Definitions

  • the present application relates to the field of wireless communications technologies, and in particular, to a communication path determining method and a network device.
  • IPv6 over Low-Power Wireless Personal Area Networks (6LoWPAN) is the most widely used IPv6-based short-range wireless communication standard.
  • the 6LoWPAN protocol stack includes: an application layer, a transport layer, an IPv6 network layer, an adaptation layer, a media access control (MAC) layer, and a physical layer related protocol.
  • Mesh-under routing technology is a routing method that uses the MAC address to perform path calculation in the adaptation layer, and transmits the data to the destination node in a multi-hop manner through wireless signals, that is, the data packet is transmitted to the intermediate node through the source node. Then, the intermediate node forwards the data packet to the destination node.
  • the ad hoc on-demand distance vector routing (AODV) protocol is one of many routing protocols.
  • the source node needs to send data to the destination node in the communication system network, if the source node does not directly reach the route of the destination node, the source node advertises the network layer carrying the active node and the destination node in multicast form.
  • the route request message of the address finds the path from the source node to the target node, and the source node sends data to the destination node through the found path.
  • the source node when the source node does not directly reach the path of the destination node, the source node needs to send a route request packet to find the path through the multicast mode.
  • the route request packet needs to occupy the wireless network resource, and the search path takes a certain period of time. Therefore, in the case that the source node does not directly reach the path of the destination node, determining the communication path of the source node to the destination node using the above multicast method may cause waste of wireless network resources.
  • the present application provides a communication path determining method and a network device, which are used to save wireless network resources and improve the reliability and efficiency of wireless data transmission when the source node does not directly reach the communication path of the destination node.
  • the application provides a communication path determining method, including:
  • the control node acquires network information of the wireless communication system, where the network information includes scheduling waiting time and channel quality between any two routing nodes that can directly communicate in the wireless communication system;
  • the control node receives the routing request sent by the source node, where the routing request carries the addresses of the active node and the destination node, and the source node and the destination node are any two nodes in the wireless communication system that cannot directly communicate;
  • the control node determines the target communication path from the source node to the destination node according to the scheduling wait time and channel quality associated with the source node and the target node.
  • the communication path determination method in the present application has the following advantages:
  • the control node determines the communication path between the routing nodes according to the scheduling waiting time and the channel quality between the source node and the destination node in the communication system network, and it is known that the communication path is determined during the communication path determination process.
  • the wireless network resource is not occupied, so the communication path determining method of the present application can save wireless network resources.
  • the control node determines, according to a scheduling waiting duration and a channel quality associated with the source node and the target node, After the source node reaches the target communication path of the destination node, the method further includes:
  • the control node assigns a target path identifier to the target communication path, where the target path identifier is used to uniquely identify the target communication path;
  • control node generates a graph path adding message according to the target communication path and the target path identifier
  • the control node receives the first type of path confirmation message sent by each routing node on the target communication path, and the first type of picture path confirmation message is used to confirm the picture path addition message.
  • the acquiring, by the control node, the network information of the wireless communication system includes:
  • the control node acquires neighbor information of the control node, where neighbor information of the control node includes a scheduling waiting duration of the neighboring node of the control node to the control node, and the control node and the control node
  • the channel quality between the neighbor nodes, the neighbor node of the control node is a node that can directly communicate with the control node, and the network information includes neighbor information of the control node;
  • the control node acquires neighbor information of the routing node, where the network information includes neighbor information of the routing node.
  • each routing node reports the neighbor information to the control node, so that the control node can quickly and accurately know the topology of the entire wireless communication system, thereby determining the communication path according to the scheduling waiting time and the link quality between the routing nodes, thereby saving wireless network resources.
  • the acquiring, by the control node, the neighbor information of the routing node includes:
  • the control node receives the neighbor report message sent by the routing node, where the neighbor report message carries the neighbor information of the routing node, and the neighbor information of the routing node includes the routing node to the a scheduling waiting duration of a neighboring node of the routing node, and a channel quality between the routing node and a neighboring node of the routing node, the neighboring node of the routing node being a node capable of directly communicating with the routing node;
  • the control node sends a second type of path confirmation message to the routing node, and the second type of path confirmation message is used to confirm the neighbor report message.
  • control node is configured according to the scheduling related to the source node and the target node After determining the target communication path of the source node to the destination node, the method further includes:
  • the control node When the one or more routing nodes on the target communication path are not in the working state, the control node sends a path deletion message to the source node, the destination node, and other routing nodes on the communication path,
  • the target path deletion identifier carries the target path identifier, so that the source node, the destination node, and the other routing node delete the target communication path and the target path identifier;
  • the control node receives a third type of path confirmation message sent by the source node, the destination node, and the other routing node, where the third type of path confirmation message is used to delete the report of the path Confirmation of the text.
  • the second aspect of the present application provides a network device, where the network device has a function of implementing the behavior of the network device in the foregoing first aspect.
  • This function can be implemented in hardware or in hardware by executing the corresponding software.
  • the hardware or software includes one or more modules corresponding to the functions described above.
  • an embodiment of the present application provides a network device, including: a processor, a memory, a bus, and a communication interface; the memory is configured to store a computer execution instruction, and the processor is connected to the memory through the bus, when the network device In operation, the processor executes the computer-executable instructions stored by the memory to cause the network device to perform the communication path determining method of any of the above first aspects.
  • the embodiment of the present application provides a computer readable storage medium, configured to store computer software instructions used by the network device, and when executed on a computer, enable the computer to perform any one of the foregoing first aspects.
  • an embodiment of the present application provides a computer program product comprising instructions, which, when run on a computer, cause the computer to perform the communication path determining method of any of the above first aspects.
  • FIG. 1 is a schematic structural diagram of a system for determining a communication path in an embodiment of the present application
  • FIG. 2 is a schematic diagram of a wireless communication system in a method for determining a communication path according to an embodiment of the present application
  • FIG. 3 is a schematic diagram of an embodiment of a method for determining a communication path according to an embodiment of the present application
  • FIG. 4 is a diagram of a relationship between scheduling wait times between routing nodes in an embodiment of the present application.
  • FIG. 5 is a diagram of a link quality relationship between routing nodes in the embodiment of the present application.
  • FIG. 6 is a schematic diagram of an embodiment of a network device according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of another embodiment of a network device according to an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a hardware of a network device according to an embodiment of the present application.
  • the present application provides a communication path determining method and a network device, which are used to save wireless network resources and improve the reliability and efficiency of wireless data transmission when the source node does not directly reach the communication path of the destination node.
  • the communication path determination method in the present application is mainly applied to an industrial wireless sensor network, and the system architecture of the application is a 6LoWPAN protocol stack.
  • the system architecture is as shown in FIG. 1 , and the 6LoWPAN protocol stack includes: an application layer, a transport layer, and an IPv6 network layer.
  • the relevant protocols of the adaptation layer, MAC layer and physical layer are described as follows:
  • the application layer, the application layer of the 6LoWPAN protocol stack adopts the CoAP protocol, which is a REST-based application layer protocol designed by the IETF working group for resource-constrained networks (such as wireless sensor networks), and supports CoAP client access and operation. Resources included in the CoAP server;
  • the transport layer, the transport layer of the 6LoWPAN protocol stack supports the UDP protocol
  • the 6LoWPAN protocol stack supports both the transmission control protocol (TCP) and the user datagram protocol (UDP) because of limited device resources and TCP.
  • TCP transmission control protocol
  • UDP user datagram protocol
  • the protocol is more complicated, and the UDP transmission method is mostly used in practical applications, and the [RFC 4944] standard and the latest [RFC 6282] standard both design a compression mechanism for UDP;
  • IPv6 network layer the network layer of 6LoWPAN protocol stack adopts standard IP protocol, supports neighbor discovery, internet control message protocol version 6, ICMPv6 and resource reservation;
  • the adaptation layer coordinates the difference between the IP layer and the IEEE802.15.4 bottom layer (including the MAC layer and the physical layer). In order to provide support for the IPv6 network layer, it supports the fragment reassembly function and the header compression mechanism.
  • 6LoWPAN bottom layer supports IEEE802.15.4 standard.
  • the bottom layer of the protocol stack supports time division multiple access (TDMA) and determination according to deterministic, reliable and real-time application requirements. Sexual scheduling.
  • TDMA time division multiple access
  • the Mesh-under routing protocol works at the adaptation layer.
  • the adaptation layer and the network layer of the 6LoWPAN protocol stack are redesigned, as shown in FIG. 1, the path identifier PATH ID is added in the IPv6 network layer, and the map routing header including the PATH ID in the adaptation layer configuration is used for Data forwarding between routing nodes, and four new ICMPv6 messages are added: graph neighbor report (GNR), graph add report (GAR), and graph delete message.
  • GNR graph neighbor report
  • GAR graph add report
  • GNR graph Delete Report
  • GPCR graph path confirm report
  • GNR is specifically used to report the neighbor node information to the system manager after the node is powered on and the subsequent neighbor nodes.
  • Information update the neighbor node information may include a message to the node's scheduling waiting time, link quality, and the like;
  • GAR specifically refers to a message used by the system manager to add a path to each node in the network;
  • GDR Specifically, a packet used by the system manager to delete a path in the network;
  • GPCR specifically for a node to receive the GNR, GAR, and GDR three packets to the source node Confirmation message.
  • the wireless communication system shown in FIG. 2 includes six routing nodes, which in turn are nodes A, B, C, D, E, and F, wherein node A is the control node that bears the system manager in the wireless communication system.
  • Function, Node B, C, D, and E are the nodes that undertake the route forwarding function, and Node F is the node that does not have the route forwarding function.
  • the communication path determination method in the present application will be described in detail by taking the wireless communication system shown in FIG. 2 as an example.
  • an embodiment of the method for determining a communication path in the embodiment of the present application includes:
  • the control node acquires network information in the wireless communication system.
  • the network information includes scheduling waiting time and channel quality between any two directly communicating nodes in the wireless communication system, and two nodes that can communicate directly are called neighbor nodes, and the network information includes: neighbor information and routing of the controlling node. Neighbor information of the node.
  • the acquiring, by the control node, the network information of the wireless communication system includes: the control node acquires the neighbor information of the control node, and the control node acquires the neighbor information of the other routing node, where the neighbor information of the control node includes the neighbor of the control node to the control node.
  • the neighbor information of the routing node includes the scheduling waiting duration of the neighboring nodes of the other routing nodes to the routing node, and the neighbor nodes of the routing node and the routing node. Channel quality between.
  • the acquiring, by the control node, the neighbor information of the other routing node includes: the control node receiving the neighbor report message sent by the routing node, where the neighbor report message carries the neighbor information of the routing node.
  • control node When the control node obtains the map neighbor report message sent by the routing node, the control node sends a second type of picture acknowledgement message to the routing node, and the second type of picture acknowledgement message is used to confirm the picture neighbor report message.
  • a possible frame format of the neighbor report message in the foregoing figure is: a report neighbor information sequence number GNRSequence maintained by the node, a node capability Node Capacity, a long address enable flag Long Address Enable, and a short address enable flag. Short Address Enable, reserved flag bit option Flag, reserved bit Reserved, reporting node's own link layer address Source Address, neighbor node description item Option.
  • each routing node has not yet established a communication path after power-on, the control node sets a default route for the routing node that cannot directly communicate with the control node, so that the routing node sends the graph neighbor report to the control node through the default route.
  • the message reports neighbor information.
  • the default route may be a neighbor node with the best link quality detected by the routing node as the default router, and the direct communication path of the routing node to the default router is used as the default path.
  • the node A obtains the neighbor information of the neighbor node B and the node C of the node A through the neighbor discovery function, and the description of the IPv6 network layer is as described above.
  • the neighbor transmission function is in the IPv6 network layer.
  • the neighbor information obtained by node A is shown in Table 1 below:
  • the link quality between nodes is a normalized result, 1 is the best, 0 is the worst, and the scheduling waiting time is in milliseconds ms.
  • the scheduling waiting time mentioned below is in ms. This will not be repeated here.
  • Table 2 above is the routing information of the Node B. Although the node F has the highest link quality, the node F is the leaf router and does not assume the routing function. Therefore, the node A is used as the default router.
  • Table 3 is the neighbor information of the node C
  • Table 4 is the neighbor information of the node D
  • Table 5 is the neighbor information of the node E
  • Table 6 is the neighbor information of the node F.
  • the node A can obtain the scheduling time relationship diagram between the nodes as shown in FIG. 4 and the link quality relationship diagram between the nodes shown in FIG. 5.
  • the node D As the power-on preparation to access the wireless communication system shown in FIG. 2 as an example, it is assumed that a communication path is established between other nodes except the node D.
  • the node D acquires the For the neighbor information shown in Table 4, the node D will encapsulate the information of the three neighboring nodes B, C, and E in the neighbor node description item Option in the frame format of the neighbor report packet, because the current node D routes.
  • the table is empty and there is no path information.
  • the path ID of the graph routing header is set to 0xFFFF, indicating that the route has not been established yet.
  • the default route is used, and the D node sends the packet to its default router E.
  • the E-node When receiving the packet from D, the E-node will know that the packet is sent to node A by analyzing the destination address in the routing header. However, the Path ID field of the routing header is 0xFFFF, indicating that the default route is used. At this time, node E searches for its own routing table with A as the destination address, and selects the next hop of the path with A as the destination address as the next hop of the packet. In this way, the D neighbor report message will be forwarded to the A node.
  • the control node receives a routing request sent by the source node.
  • the control node receives the routing request sent by the source node, where the routing request carries the addresses of the active node and the destination node, and is used to request the control node to allocate a communication path between the source node and the destination node, where the source node and the destination node It is a node that cannot communicate directly.
  • the source node and the destination node are not in direct communication with each other's neighbor nodes, and the control node must assign a communication path to it so that the source node can send data to the destination node.
  • the communication path is the direction. Sex, for the same pair of source and destination nodes, the communication path from the source node to the destination node, and the communication path from the destination node to the source node are determined by the control node, and whether the two paths are forwarded through the same routing node. Directly inevitable contact.
  • node A needs to send data to node D. At this time, node A will add a path from A to D. If nodes B, C, D, E, and F need to send data to other nodes that cannot communicate directly. At this time, it is necessary to send a routing request as described above to the node A.
  • the control node determines a target communication path from the source node to the destination node according to a scheduling waiting duration and a channel quality associated with the source node and the destination node.
  • the control node first determines a plurality of communication paths from the source node to the destination node according to the scheduling waiting time and channel quality associated with the source node and the destination node in the network information, and then calculates the weight of each path, and the one with the largest weight.
  • the path is determined as the target path.
  • a possible weight calculation method is as follows: first, normalize the scheduling waiting time and link quality to obtain a normalized value, and secondly, subtract 1 to normalize the scheduling waiting time. The value is then added to the normalized value of the link quality to get the weight of each path.
  • node A determines that the three alternative paths of nodes A to D are: path one A->C->D, path two A->B->D, Path three A->C->E->D; according to the above weight calculation method, the weights of the three paths are obtained, and finally the path A->C->D is taken as the target communication path from node A to node D according to the weight. .
  • the remaining energy of the node may be used as an indicator to determine the communication path, so that the remaining energy value is not low.
  • the path corresponding to the node of the preset threshold is used as the target communication path.
  • the control node takes the path two A->B->D as the target communication path.
  • the foregoing two factors of determining the scheduling waiting duration and the link quality are used as the basis for determining the target communication path, where the request is sent in the routing request of the source node, if the routing request is in the routing request.
  • Path requirements are prioritized for their path requirements.
  • node A can only path three A->C->E- >D The destination communication path from node A to node D.
  • the control node allocates a target path identifier to the target communication path.
  • control node After the control node determines the target communication path in the above step 303, the control node assigns a path identifier to the target communication path between the source node and the destination node, and the path identifier is a unique target communication path identifying the source node to the destination node.
  • control node generates a graph addition message GAR carrying the target communication path and the target path identifier, and the control node notifies the routing information of the foregoing graph to the routing nodes on the target communication path, and further, the routing node receives After the message sent by the control node adds the message, the routing node replies to the control node with the first type of picture acknowledgement message to confirm the added message of the above figure, and the routing node adds the target communication path and the target path identifier in the picture increase message. Go to the routing table for routing forwarding.
  • the source node When the source node performs data transmission, the source node writes the target path identifier into the packet header of the data packet, so that each routing node can directly forward the data according to the target road strength identifier.
  • a possible frame format of the message GAR added in the foregoing figure is: an added path sequence number GARSequence, a reserved bit Reserved, and a path information Option maintained by the system manager.
  • the node A after adding the routing table for itself, the node A constructs a graph to add a path message GAR to the node C, regarding A->C-
  • the path information of the >D is loaded in the path information Option in the format of the added message frame described above.
  • the contents of the path information Option are as follows:
  • the node C After receiving the path message, the node C adds the content of the path information Option to the routing table of the node C.
  • the path establishment process of A->C->D is completed. If A needs to send a data packet to D, node C constructs a map routing header in the adaptation layer, and finds its own routing table, and then A->C->D path
  • the Path ID is added to the graph routing header of the packet, and the corresponding next hop address is selected as its next hop.
  • routing node C searches for the route, it searches the routing table according to the Path ID to select the next hop address. Path ID It remains unchanged during the transfer.
  • a system may allocate multiple paths between two nodes. For example, the path A->C->D and path A-> may be simultaneously allocated between node A and node D. B->D.
  • the method in this embodiment further includes: when one or more routing nodes on the target communication path are not in the working state, the control node sends the deletion message to the source node, the destination node, and other routing nodes on the communication path,
  • the target deletion path carries the target path identifier, so that the source node, the destination node, and other routing nodes delete the target communication path and the target path identifier.
  • the control node receives the third type of path confirmation message picture confirmation message sent by the source node, the destination node, and other routing nodes, and the third type of path confirmation message picture confirmation message is used to delete the message picture deletion report of the picture path. Confirmation of the text.
  • one possible frame format of the GDR deletion message in the above figure is: a deletion path sequence number GDRSequence maintained by the system manager, a reserved flag bit option Flag, and an undefined option Option.
  • node B if node B checks that node C is unreachable, node B sends a graph neighbor report message to node A to report the event. Since node C belongs to the dropped state, when constructing the neighbor description Option for node C, the "O" flag will be set to 0 to indicate that this is a dropped report. After receiving the neighbor report message sent by the node B, the node A knows that the node C has been dropped. At this time, the node A will find all the paths related to the node C, and send the map deletion path message GDR to each node on the relevant path. The figure delete path message contains the path ID of the path to be deleted. After the path is deleted, the node A needs to recalculate the path for the affected node, and then sends the routing message to the relevant node through the graph.
  • node D also detects that node C is unreachable before the path is repaired, it will also perform the same reporting as node B.
  • the only difference is that if there is only one path to the node A in the routing table of the node C, the neighbor report packet cannot be sent to the node A through the route of the graph. In this case, the same process as when the power is turned on must be repeated. This is done by selecting the default router.
  • a possible picture path confirmation message GPCR frame format is: an event type, a sequence sequence of the acknowledgement message, a confirmed state, an undefined option Option, and an undefined option Option;
  • the event type is a neighbor report event
  • the path confirmation message obtained according to the GPCR frame format is the second type path confirmation message
  • the event type is a path increase event, according to the GPCR frame format.
  • the obtained path confirmation message is the first type of path confirmation message
  • the picture path confirmation message obtained according to the GPCR frame format is the third type of path. Confirm the message.
  • the graph routing header corresponding to the foregoing neighbor report message, the map add message, and the picture delete message includes: an event type description value and a path identifier PATH ID, wherein, in the graph routing header of the graph neighbor report message: an event
  • the type description value refers to the graph neighbor report event.
  • the event type description value refers to the graph path increment event.
  • the event type description value refers to The map path deletes the event.
  • the control node determines the communication path between the routing nodes according to the scheduling waiting time and the channel quality between the source node and the destination node in the communication system network, and it is known that In the process of determining the communication path, the wireless network resources are not occupied. Therefore, the communication path determining method of the present application can save wireless network resources.
  • the protocol stack adaptation layer and the network layer are redesigned.
  • the adaptation layer header is added.
  • Figure routing header adding 4 new ICMPv6 messages at the network layer.
  • the routing protocol needs to implement a similar system manager function on the aggregation node or the border router, and uses centralized control to manage the entire network route, which can better optimize the entire network routing, improve the determinism, reliability, and transmission efficiency of data transmission. .
  • a network device in the embodiment of the present application where the network device is a control node, includes:
  • the obtaining module 601 is configured to acquire network information of the wireless communication system, where the network information includes scheduling waiting duration and channel quality between any two routing nodes that can directly communicate in the wireless communication system;
  • the receiving module 602 is configured to receive a routing request sent by the source node, where the routing request carries an address of the active node and the destination node, where the source node and the destination node are any two routing nodes in the wireless communication system that cannot directly communicate;
  • the determining module 603 is configured to determine a target communication path of the source node to the destination node according to a scheduling waiting duration and a channel quality associated with the source node and the target node.
  • the network device further includes:
  • An allocating module 704 configured to allocate a target path identifier for the target communication path, where the target path identifier is used to uniquely identify the target communication path;
  • a generating module 705, configured to generate a message according to the target communication path and the target path identifier
  • the sending module 706 is configured to send the graph addition message to each routing node on the target communication path;
  • the receiving module 702 is further configured to:
  • the first type of picture acknowledgement message sent by each routing node on the target communication path is received, and the first type of picture acknowledgement message is used to confirm the picture added message.
  • the obtaining module 701 is specifically configured to:
  • the neighbor information of the control node includes a scheduling waiting duration of the neighbor node of the control node to the control node, and a channel quality between the control node and the neighbor node of the control node, and the neighbor node of the control node is capable of a node that directly controls communication of the node, and the network information includes neighbor information of the control node;
  • the receiving module 702 is further configured to:
  • the channel quality between the neighbor nodes, and the neighbor nodes of the routing node are nodes that can directly communicate with the routing node;
  • the sending module 706 is further configured to:
  • the second type of picture acknowledgement message is sent to the routing node, and the second type of picture acknowledgement message is used to confirm the picture neighbor report message.
  • the sending module 706 is further configured to:
  • the image deletion message is sent to the source node, the destination node, and the other routing nodes on the communication path, and the deleted message carries the target path identifier, so that The source node, the destination node, and other routing nodes delete the target communication path and the target path identifier;
  • the Receive Mode 702 block is also used to:
  • the third type of picture confirmation message sent by the source node, the destination node, and other routing nodes is received, and the third type of picture confirmation message is used to confirm the picture deletion message.
  • FIG. 8 is a schematic diagram of a hardware structure of a network device in the embodiment of the present application, where the network device 80 includes:
  • the main control board 801, the switching network board 803, the two interface boards are 802 and 804 respectively, and the connection relationship between the four boards is as shown in FIG. 8;
  • the interface boards 802 and 804 each include: a central processing unit, a forwarding entry storage, a physical interface card, and a network processor;
  • the forwarding entry storage is used to store the routing table
  • the physical interface card slot is used to connect with other external devices
  • the network processor is used to process the data received by the physical interface card
  • the central processor is used to store the forwarding entry in the memory.
  • the routing table performs the routing forwarding function and controls the network processor to perform corresponding processing operations.
  • the network device 80 is also used to perform the operations of the control node in the embodiment corresponding to FIG. 3 under the coordinated control of the main control board, the central processing unit, and the network processor.
  • the network device 80 For detailed operations, refer to the implementation of FIG. 3 above. The related description of the example section is not described here.
  • the embodiment of the present application further provides a computer storage medium for storing computer software instructions used by the network device 90, and when the computer is running on the computer, the computer can execute the communication path determining method performed by the network device 90.
  • the storage medium may be specifically the foregoing forwarding entry storage.
  • the embodiment of the present application further provides a computer program product comprising instructions, when executed on a computer, to enable a computer to execute a communication path determining method performed by the network device.
  • the computer program product includes one or more computer instructions.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transmission to another website site, computer, server or data center via wired (eg coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg infrared, wireless, microwave, etc.).
  • the computer readable storage medium can be any available media that can be stored by a computer or a data storage device such as a server, data center, or the like that includes one or more available media.
  • the usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)) or the like.
  • a magnetic medium eg, a floppy disk, a hard disk, a magnetic tape
  • an optical medium eg, a DVD
  • a semiconductor medium eg, a solid state disk (SSD)
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • a computer readable storage medium A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program code. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present application discloses a method and a network device for determining a communication path, used to conserve wireless network resources when a source node does not directly reach a communication path of a destination node, so as to improve reliability and efficiency of wireless data transmission. The method of the present application comprises: a control node obtaining network information of a wireless communication system, wherein the network information comprises a scheduling waiting time and a channel quality between any two routing nodes that can directly perform communication in the wireless communication system; the control node receiving a routing request transmitted by a source node, wherein the routing request comprises addresses of the source node and a destination node, and the source node and the destination node are any two routing nodes that cannot directly perform communication in the wireless communication system; and the control node determining, according to the scheduling waiting time and the channel quality associated with the source node and a target node, a target communication path from the source node to the destination node.

Description

一种通信路径确定方法及网络设备Communication path determination method and network device 技术领域Technical field
本申请涉及无线通信技术领域,尤其涉及一种通信路径确定方法及网络设备。The present application relates to the field of wireless communications technologies, and in particular, to a communication path determining method and a network device.
背景技术Background technique
基于IPv6的低速无线个域网标准(IPv6 over Low-Power Wireless Personal Area Networks,6LoWPAN)是目前最广泛的基于IPv6的短距离无线通信标准。6LoWPAN协议栈包括:应用层、传输层、IPv6网络层、适配层、媒体介入控制层(media access control,MAC)层和物理层的相关协议。Mesh-under路由技术是一种在适配层使用MAC地址执行路径计算的路由方法,并通过无线信号将数据包括以多跳的方式传输至目的节点,即通过源节点将数据包传输至中间节点,再由中间节点将数据包转发至目的节点。在6LoWPAN协议栈中支持上述Mesh-under路由技术的路由协议有多种,其中,按需路由(ad hoc on-demand distance vector routing,AODV)协议是众多路由协议中的一种。在AODV路由协议中,当源节点需要向通信系统网络中目的节点发送数据时,如果源节点没有直接到达目的节点的路由,则源节点以多播形式发布携带有源节点和目的节点的网络层地址的路由请求报文,找到源节点至目标节点的路径,进而源节点通过查找到的路径向目的节点发送数据。IPv6 over Low-Power Wireless Personal Area Networks (6LoWPAN) is the most widely used IPv6-based short-range wireless communication standard. The 6LoWPAN protocol stack includes: an application layer, a transport layer, an IPv6 network layer, an adaptation layer, a media access control (MAC) layer, and a physical layer related protocol. Mesh-under routing technology is a routing method that uses the MAC address to perform path calculation in the adaptation layer, and transmits the data to the destination node in a multi-hop manner through wireless signals, that is, the data packet is transmitted to the intermediate node through the source node. Then, the intermediate node forwards the data packet to the destination node. There are various routing protocols supporting the above Mesh-under routing technology in the 6LoWPAN protocol stack. Among them, the ad hoc on-demand distance vector routing (AODV) protocol is one of many routing protocols. In the AODV routing protocol, when the source node needs to send data to the destination node in the communication system network, if the source node does not directly reach the route of the destination node, the source node advertises the network layer carrying the active node and the destination node in multicast form. The route request message of the address finds the path from the source node to the target node, and the source node sends data to the destination node through the found path.
在上述AODV路由协议中,当源节点没有直接到达目的节点的路径时,源节点需要通过多播方式发送路由请求报文查找路径,路由请求报文需要占用无线网络资源,并且查找路径需要一定时长,因此,在源节点没有直接到达目的节点的路径的情况下,使用上述多播方法确定源节点至目的节点的通信路径会造成无线网络资源浪费。In the foregoing AODV routing protocol, when the source node does not directly reach the path of the destination node, the source node needs to send a route request packet to find the path through the multicast mode. The route request packet needs to occupy the wireless network resource, and the search path takes a certain period of time. Therefore, in the case that the source node does not directly reach the path of the destination node, determining the communication path of the source node to the destination node using the above multicast method may cause waste of wireless network resources.
发明内容Summary of the invention
本申请提供了一种通信路径确定方法及网络设备,用于在源节点没有直接到达目的节点的通信路径的情况下,节约无线网络资源,提高无线数据传输的可靠性及效率。The present application provides a communication path determining method and a network device, which are used to save wireless network resources and improve the reliability and efficiency of wireless data transmission when the source node does not directly reach the communication path of the destination node.
第一方面,本申请提供了一种通信路径确定方法,包括:In a first aspect, the application provides a communication path determining method, including:
控制节点获取无线通信系统的网络信息,网络信息包括无线通信系统中任意两个可以直接通信的路由节点之间的调度等待时长和信道质量;The control node acquires network information of the wireless communication system, where the network information includes scheduling waiting time and channel quality between any two routing nodes that can directly communicate in the wireless communication system;
控制节点接收源节点发送的路由请求,路由请求中携带有源节点和目的节点的地址,源节点和目的节点为无线通信系统中不能直接通信的任意两个节点;The control node receives the routing request sent by the source node, where the routing request carries the addresses of the active node and the destination node, and the source node and the destination node are any two nodes in the wireless communication system that cannot directly communicate;
控制节点根据与源节点和目标节点相关的调度等待时长和信道质量,确定源节点至目的节点的目标通信路径。The control node determines the target communication path from the source node to the destination node according to the scheduling wait time and channel quality associated with the source node and the target node.
从以上技术方法可以看出,本申请中的通信路径确定方法具有以下优点:As can be seen from the above technical methods, the communication path determination method in the present application has the following advantages:
当源节点和目的节点之间不能直接通信时,控制节点根据通信系统网络中源节点和目的节点之间的调度等待时长和信道质量确定路由节点之间的通信路径,可知在通信路径确定过程中,不会占用无线网络资源,因此本申请的通信路径确定方法可以节约无线网络资源。When the source node and the destination node cannot communicate directly, the control node determines the communication path between the routing nodes according to the scheduling waiting time and the channel quality between the source node and the destination node in the communication system network, and it is known that the communication path is determined during the communication path determination process. The wireless network resource is not occupied, so the communication path determining method of the present application can save wireless network resources.
结合本申请的第一方面,在本申请的第一方面的第一种实现方式中,在述控制节点根据与所述源节点和所述目标节点相关的调度等待时长和信道质量,确定所述源节点至所述目的节点的目标通信路径之后,所述方法还包括:With reference to the first aspect of the present application, in a first implementation manner of the first aspect of the present application, the control node determines, according to a scheduling waiting duration and a channel quality associated with the source node and the target node, After the source node reaches the target communication path of the destination node, the method further includes:
所述控制节点为所述目标通信路径分配一个目标路径标识,所述目标路径标识用于唯一的标识所述目标通信路径;The control node assigns a target path identifier to the target communication path, where the target path identifier is used to uniquely identify the target communication path;
所述控制节点根据所述目标通信路径和所述目标路径标识生成图路径增加报文;And the control node generates a graph path adding message according to the target communication path and the target path identifier;
所述控制节点将所述图路径增加报文发送至所述目标通信路径上的各路由节点;Sending, by the control node, the graph path addition message to each routing node on the target communication path;
所述控制节点接收所述目标通信路径上的各路由节点发送的第一类图路径确认报文,所述第一类图路径确认报文用于对所述图路径增加报文进行确认。The control node receives the first type of path confirmation message sent by each routing node on the target communication path, and the first type of picture path confirmation message is used to confirm the picture path addition message.
为通信路径分配路径标识对路径进行标识,可以使得路由节点在进行路由选择下一跳时直接查找路由表中的路径标识确定下一跳地址,快速跳转,提高路由速度。结合本申请的第一方面或第一方面的第一种实现方式,本申请的第一方面的第二种实现方式中,所述控制节点获取无线通信系统的网络信息包括:Assigning a path identifier to the communication path identifies the path, so that the routing node directly searches for the path identifier in the routing table to determine the next hop address, fast jumps, and improves the routing speed when performing the routing next hop. With reference to the first aspect of the present application or the first implementation manner of the first aspect, in the second implementation manner of the first aspect of the application, the acquiring, by the control node, the network information of the wireless communication system includes:
所述控制节点获取所述控制节点的邻居信息,所述控制节点的邻居信息包括所述控制节点至所述控制节点的邻居节点的调度等待时长,和所述所述控制节点与所述控制节点的邻居节点之间的信道质量,所述控制节点的邻居节点为能与所述控制节点直接通信的节点,所述网络信息包括所述控制节点的邻居信息;The control node acquires neighbor information of the control node, where neighbor information of the control node includes a scheduling waiting duration of the neighboring node of the control node to the control node, and the control node and the control node The channel quality between the neighbor nodes, the neighbor node of the control node is a node that can directly communicate with the control node, and the network information includes neighbor information of the control node;
所述控制节点获取路由节点的邻居信息,所述网络信息包括所述路由节点的邻居信息。The control node acquires neighbor information of the routing node, where the network information includes neighbor information of the routing node.
各路由节点向控制节点上报邻居信息,可以使得控制节点快速准确的获知整个无线通信系统的拓扑结构,从而根据路由节点之间的调度等待时长以及链路质量确定通信路径,节约无线网络资源。结合第一方面的第二种实现方式,在本申请的第一方面的第三种实现方式中,所述控制节点获取路由节点的邻居信息包括:Each routing node reports the neighbor information to the control node, so that the control node can quickly and accurately know the topology of the entire wireless communication system, thereby determining the communication path according to the scheduling waiting time and the link quality between the routing nodes, thereby saving wireless network resources. With reference to the second implementation manner of the first aspect, in the third implementation manner of the first aspect of the application, the acquiring, by the control node, the neighbor information of the routing node includes:
所述控制节点接收所述路由节点发送的图邻居汇报报文,所述图邻居汇报报文中携带有所述路由节点的邻居信息,所述路由节点的邻居信息包括所述路由节点至所述路由节点的邻居节点的调度等待时长,和所述所述路由节点与所述路由节点的邻居节点之间的信道质量,所述路由节点的邻居节点为能与所述路由节点直接通信的节点;The control node receives the neighbor report message sent by the routing node, where the neighbor report message carries the neighbor information of the routing node, and the neighbor information of the routing node includes the routing node to the a scheduling waiting duration of a neighboring node of the routing node, and a channel quality between the routing node and a neighboring node of the routing node, the neighboring node of the routing node being a node capable of directly communicating with the routing node;
所述控制节点向所述路由节点发送第二类图路径确认报文,所述第二类图路径确认报文用于对所述图邻居汇报报文进行确认。The control node sends a second type of path confirmation message to the routing node, and the second type of path confirmation message is used to confirm the neighbor report message.
结合第一方面、第一方面的第一种实现方式至第一方面的第三种实现方式的任一种实现方式,在所述控制节点根据与所述源节点和所述目标节点相关的调度等待时长和信道质量,确定所述源节点至所述目的节点的目标通信路径之后,所述方法还包括:In combination with the first aspect, the first implementation manner of the first aspect, or any implementation manner of the third implementation manner of the first aspect, the control node is configured according to the scheduling related to the source node and the target node After determining the target communication path of the source node to the destination node, the method further includes:
当所述目标通信路径上的一个或多个路由节点不在工作状态时,所述控制节点向所述通信路径上的所述源节点、所述目的节点和其他路由节点发送图路径删除报文,所述图路径删除报文中携带有所述目标路径标识,以使得所述源节点、所述目的节点和所述其他路由节点删除所述目标通信路径和所述目标路径标识;When the one or more routing nodes on the target communication path are not in the working state, the control node sends a path deletion message to the source node, the destination node, and other routing nodes on the communication path, The target path deletion identifier carries the target path identifier, so that the source node, the destination node, and the other routing node delete the target communication path and the target path identifier;
所述控制节点接收所述源节点、所述目的节点和所述其他路由节点发送的第三类图路径确认报文,所述第三类图路径确认报文用于对所述图路径删除报文进行确认。The control node receives a third type of path confirmation message sent by the source node, the destination node, and the other routing node, where the third type of path confirmation message is used to delete the report of the path Confirmation of the text.
对路径进行维护,可以及时删除失效路径,重新确定新路径,避免出现路径不同,造成无法进行数据传输或传输延迟等问题,可以提升无线通信系统的可靠性和确定性。By maintaining the path, you can delete the failed path in time, re-determine the new path, avoid different paths, and prevent data transmission or transmission delay. This can improve the reliability and certainty of the wireless communication system.
第二方面本申请实施例提供一种网络设备,该网络设备具有实现上述第一方面中网络设备行为的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。The second aspect of the present application provides a network device, where the network device has a function of implementing the behavior of the network device in the foregoing first aspect. This function can be implemented in hardware or in hardware by executing the corresponding software. The hardware or software includes one or more modules corresponding to the functions described above.
第三方面,本申请实施例提供一种网络设备,包括:处理器、存储器、总线和通信接口;该存储器用于存储计算机执行指令,该处理器与该存储器通过该总线连接,当该网络设备运行时,该处理器执行该存储器存储的该计算机执行指令,以使该网络设备备执行如上述第一方面任意一项的通信路径确定方法。In a third aspect, an embodiment of the present application provides a network device, including: a processor, a memory, a bus, and a communication interface; the memory is configured to store a computer execution instruction, and the processor is connected to the memory through the bus, when the network device In operation, the processor executes the computer-executable instructions stored by the memory to cause the network device to perform the communication path determining method of any of the above first aspects.
第四方面,本申请实施例提供了一种计算机可读存储介质,用于储存为上述网络设备所用的计算机软件指令,当其在计算机上运行时,使得计算机可以执行上述第一方面中任意一项的通信路径确定方法。In a fourth aspect, the embodiment of the present application provides a computer readable storage medium, configured to store computer software instructions used by the network device, and when executed on a computer, enable the computer to perform any one of the foregoing first aspects. The communication path determination method of the item.
第五方面,本申请实施例提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机可以执行上述第一方面中任意一项的通信路径确定方法。In a fifth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when run on a computer, cause the computer to perform the communication path determining method of any of the above first aspects.
另外,第二方面至第五方面中任一种设计方式所带来的技术效果可参见第一方面中不同设计方式所带来的技术效果,此处不再赘述。In addition, the technical effects brought by the design mode of any one of the second aspect to the fifth aspect can be referred to the technical effects brought by different design modes in the first aspect, and details are not described herein again.
附图说明DRAWINGS
图1为本申请实施例中通信路径确定方法的系统架构示意图;1 is a schematic structural diagram of a system for determining a communication path in an embodiment of the present application;
图2为本申请实施例中通信路径确定方法的一个无线通信系统示意图;2 is a schematic diagram of a wireless communication system in a method for determining a communication path according to an embodiment of the present application;
图3为本申请实施例中通信路径确定方法的一个实施例示意图;3 is a schematic diagram of an embodiment of a method for determining a communication path according to an embodiment of the present application;
图4为本申请实施例中各路由节点之间的调度等待时长关系图;4 is a diagram of a relationship between scheduling wait times between routing nodes in an embodiment of the present application;
图5为本申请实施例中各路由节点之间的链路质量关系图;FIG. 5 is a diagram of a link quality relationship between routing nodes in the embodiment of the present application;
图6为本申请实施例中网络设备的一个实施例示意图;FIG. 6 is a schematic diagram of an embodiment of a network device according to an embodiment of the present application;
图7为本申请实施例中网络设备的另一个实施例示意图;FIG. 7 is a schematic diagram of another embodiment of a network device according to an embodiment of the present application;
图8为本申请实施例中网络设备的一个硬件结构示意图。FIG. 8 is a schematic structural diagram of a hardware of a network device according to an embodiment of the present application.
具体实施方式Detailed ways
本申请提供了一种通信路径确定方法及网络设备,用于在源节点没有直接到达目的节点的通信路径的情况下,节约无线网络资源,提高无线数据传输的可靠性及效率。The present application provides a communication path determining method and a network device, which are used to save wireless network resources and improve the reliability and efficiency of wireless data transmission when the source node does not directly reach the communication path of the destination node.
下面将结合本申请中的附图,对本申请中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。The technical solutions in the present application are clearly and completely described in the following with reference to the drawings in the present application. It is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或 设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if present) in the specification and claims of the present application and the above figures are used to distinguish similar objects without having to use To describe a specific order or order. It is to be understood that the data so used may be interchanged where appropriate so that the embodiments described herein can be implemented in a sequence other than what is illustrated or described herein. In addition, the terms "comprises" and "comprises" and "the" and "the" are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or device that comprises a series of steps or units is not necessarily limited to Those steps or units may include other steps or units not explicitly listed or inherent to such processes, methods, products or devices.
本申请中的通信路径确定方法主要应用于工业无线传感器网络中,应用的系统架构是6LoWPAN协议栈,其系统架构如图1所示,6LoWPAN协议栈包括:应用层、传输层、IPv6网络层、适配层、MAC层和物理层的相关协议,具体描述如下:The communication path determination method in the present application is mainly applied to an industrial wireless sensor network, and the system architecture of the application is a 6LoWPAN protocol stack. The system architecture is as shown in FIG. 1 , and the 6LoWPAN protocol stack includes: an application layer, a transport layer, and an IPv6 network layer. The relevant protocols of the adaptation layer, MAC layer and physical layer are described as follows:
一、应用层,6LoWPAN协议栈的应用层采用CoAP协议,CoAP协议是IETF工作组为资源受限网络(如无线传感器网络等)设计的基于REST架构的应用层协议,支持CoAP客户端访问并操作CoAP服务器中包含的资源;First, the application layer, the application layer of the 6LoWPAN protocol stack adopts the CoAP protocol, which is a REST-based application layer protocol designed by the IETF working group for resource-constrained networks (such as wireless sensor networks), and supports CoAP client access and operation. Resources included in the CoAP server;
二、传输层,6LoWPAN协议栈的传输层支持UDP协议,6LoWPAN协议栈同时支持传输控制协议(transmission control protocol,TCP)和用户数据报协议(user datagram protocol,UDP),因为设备资源有限,并且TCP协议较复杂,实际应用中多采用UDP的传输方式,并且[RFC 4944]标准和最新的[RFC 6282]标准都设计了针对UDP的压缩机制;Second, the transport layer, the transport layer of the 6LoWPAN protocol stack supports the UDP protocol, and the 6LoWPAN protocol stack supports both the transmission control protocol (TCP) and the user datagram protocol (UDP) because of limited device resources and TCP. The protocol is more complicated, and the UDP transmission method is mostly used in practical applications, and the [RFC 4944] standard and the latest [RFC 6282] standard both design a compression mechanism for UDP;
三、IPv6网络层,6LoWPAN协议栈的网络层采用标准的IP协议,支持邻居发现、互联网控制信息协议版本六(internet control message protocol version 6,ICMPv6)和资源预留等;Third, IPv6 network layer, the network layer of 6LoWPAN protocol stack adopts standard IP protocol, supports neighbor discovery, internet control message protocol version 6, ICMPv6 and resource reservation;
四、适配层:适配层协调IP层和IEEE802.15.4底层(包括MAC层和物理层)之间的差异,为了给IPv6网络层提供支持,支持分片重组功能、报头压缩机制;4. Adaptation layer: The adaptation layer coordinates the difference between the IP layer and the IEEE802.15.4 bottom layer (including the MAC layer and the physical layer). In order to provide support for the IPv6 network layer, it supports the fragment reassembly function and the header compression mechanism.
五、IEEE 802.15.4 MAC层与物理层,6LoWPAN底层支持IEEE802.15.4标准,协议栈底层根据确定性、可靠性、实时性的应用要求,支持时分多址(time division multiple access,TDMA)和确定性调度。5. IEEE 802.15.4 MAC layer and physical layer, 6LoWPAN bottom layer supports IEEE802.15.4 standard. The bottom layer of the protocol stack supports time division multiple access (TDMA) and determination according to deterministic, reliable and real-time application requirements. Sexual scheduling.
在上述描述的6LoWPAN协议栈中,Mesh-under路由协议工作在适配层,针对上述Mesh-under路由协议中的AODV路由协议,使用多播方式确定通信路径会造成无线网络资源浪费的问题。本申请中对6LoWPAN协议栈的适配层和网络层进行了重新设计,如图1所示,在IPv6网络层增加路径标识PATH ID以及在适配层构造包括PATH ID的图路由头部用于路由节点之间的数据转发,并且新增加了四个ICMPv6报文分别称为:图邻居汇报报文(graph neighbor report,GNR)、图增加报文(graph add report,GAR)、图删除报文(Graph Delete Report,GDR)和图路径确认报文(graph path confirm report,GPCR),其中,GNR特指一个用于节点上电后主动向系统管理器汇报自己的邻居节点信息以及后续对邻居节点信息的更新,邻居节点信息可以包括到该节点的调度等待时间、链路质量等信息的报文;GAR:特指一个用于系统管理器向网内的各节点增加路径的报文;GDR:特指一个用于系统管理器删除网络中的某一条路径的报文;GPCR:特指一个用于节点在收到GNR、GAR和GDR三种报文时向发送源节点进行确认的报文。通过上述设计,本申请提出了一种集中调度式的图路由协议,可以更好的优化整个无线通信网络系统中的路由,提高数据传输的准确性、可靠性和传输效率。In the 6LoWPAN protocol stack described above, the Mesh-under routing protocol works at the adaptation layer. For the AODV routing protocol in the Mesh-under routing protocol, using the multicast mode to determine the communication path may cause waste of wireless network resources. In this application, the adaptation layer and the network layer of the 6LoWPAN protocol stack are redesigned, as shown in FIG. 1, the path identifier PATH ID is added in the IPv6 network layer, and the map routing header including the PATH ID in the adaptation layer configuration is used for Data forwarding between routing nodes, and four new ICMPv6 messages are added: graph neighbor report (GNR), graph add report (GAR), and graph delete message. (Graph Delete Report, GDR) and graph path confirm report (GPCR), where GNR is specifically used to report the neighbor node information to the system manager after the node is powered on and the subsequent neighbor nodes. Information update, the neighbor node information may include a message to the node's scheduling waiting time, link quality, and the like; GAR: specifically refers to a message used by the system manager to add a path to each node in the network; GDR: Specifically, a packet used by the system manager to delete a path in the network; GPCR: specifically for a node to receive the GNR, GAR, and GDR three packets to the source node Confirmation message. Through the above design, the present application proposes a centralized scheduling graph routing protocol, which can better optimize the routing in the entire wireless communication network system, and improve the accuracy, reliability and transmission efficiency of data transmission.
为了更好地理解本申请实施例中的通信路径确定方法,下面结合以下实施例对本申请实施例中的通信路径确定方法进行详细说明,具体如下:For a better understanding of the communication path determining method in the embodiment of the present application, the following describes the communication path determining method in the embodiment of the present application in detail, as follows:
如图2所示的无线通信系统中,包括六个路由节点,依次为节点A、B、C、D、E和F, 其中,节点A为控制节点承担该无线通信系统中的系统管理器的功能,节点B、C、D和E作为承担路由转发功能的节点,节点F为不具有路由转发功能的节点。The wireless communication system shown in FIG. 2 includes six routing nodes, which in turn are nodes A, B, C, D, E, and F, wherein node A is the control node that bears the system manager in the wireless communication system. Function, Node B, C, D, and E are the nodes that undertake the route forwarding function, and Node F is the node that does not have the route forwarding function.
以图2所示的无线通信系统为例,对本申请中的通信路径确定方法进行详细说明。The communication path determination method in the present application will be described in detail by taking the wireless communication system shown in FIG. 2 as an example.
如图3所示,本申请实施例中的通信路径确定方法的一个实施例,包括:As shown in FIG. 3, an embodiment of the method for determining a communication path in the embodiment of the present application includes:
301、控制节点获取无线通信系统中的网络信息。301. The control node acquires network information in the wireless communication system.
网络信息包括无线通信系统中任意两个可以直接通信的节点之间的调度等待时长和信道质量,将两个可以直接通信的节点互相称为邻居节点,网络信息包括:控制节点的邻居信息和路由节点的邻居信息。The network information includes scheduling waiting time and channel quality between any two directly communicating nodes in the wireless communication system, and two nodes that can communicate directly are called neighbor nodes, and the network information includes: neighbor information and routing of the controlling node. Neighbor information of the node.
可选的,控制节点获取无线通信系统的网络信息包括:控制节点获取控制节点的邻居信息,以及控制节点获取其他路由节点的邻居信息,其中,控制节点的邻居信息包括控制节点至控制节点的邻居节点的调度等待时长以及控制节点与控制节点的邻居节点之间的信道质量,路由节点的邻居信息包括其他路由节点至路由节点的邻居节点的调度等待时长,和路由节点与路由节点的邻居节点之间的信道质量。Optionally, the acquiring, by the control node, the network information of the wireless communication system includes: the control node acquires the neighbor information of the control node, and the control node acquires the neighbor information of the other routing node, where the neighbor information of the control node includes the neighbor of the control node to the control node. The scheduling wait time of the node and the channel quality between the control node and the neighbor node of the control node. The neighbor information of the routing node includes the scheduling waiting duration of the neighboring nodes of the other routing nodes to the routing node, and the neighbor nodes of the routing node and the routing node. Channel quality between.
可选的,在上述控制节点获取其他路由节点的邻居信息包括:控制节点接收路由节点发送的图邻居汇报报文,图邻居汇报报文中携带有路由节点的邻居信息。Optionally, the acquiring, by the control node, the neighbor information of the other routing node includes: the control node receiving the neighbor report message sent by the routing node, where the neighbor report message carries the neighbor information of the routing node.
在控制节点获取到路由节点发送的图邻居汇报报文时,控制节点向路由节点发送第二类图确认报文,第二类图确认报文用于对图邻居汇报报文进行确认。When the control node obtains the map neighbor report message sent by the routing node, the control node sends a second type of picture acknowledgement message to the routing node, and the second type of picture acknowledgement message is used to confirm the picture neighbor report message.
可选的,上述图邻居汇报报文的一种可能的帧格式为:节点维护的汇报邻居信息序列号GNRSequence、节点能力Node Capacity、长地址使能标志位Long Address Enable、短地址使能标志位Short Address Enable、预留的标志位选项Flag、保留位Reserved、汇报节点自己的链路层地址Source Address、邻居节点描述项Option。Optionally, a possible frame format of the neighbor report message in the foregoing figure is: a report neighbor information sequence number GNRSequence maintained by the node, a node capability Node Capacity, a long address enable flag Long Address Enable, and a short address enable flag. Short Address Enable, reserved flag bit option Flag, reserved bit Reserved, reporting node's own link layer address Source Address, neighbor node description item Option.
在各路由节点刚上电还没有建立通信路径的情况下,控制节点为不能与控制节点进行直接通信的路由节点设置了一条缺省路由以使得路由节点通过缺省路由向控制节点发送图邻居汇报报文汇报邻居信息。其中缺省路由可以为路由节点检测到的链路质量最好的一个邻居节点作为缺省路由器,将路由节点至缺省路由器的直接通信路径作为缺省路径。对于每一个节点的缺省路由都分配有同一个路由标识如PATH ID=0xFFFF。In the case that each routing node has not yet established a communication path after power-on, the control node sets a default route for the routing node that cannot directly communicate with the control node, so that the routing node sends the graph neighbor report to the control node through the default route. The message reports neighbor information. The default route may be a neighbor node with the best link quality detected by the routing node as the default router, and the direct communication path of the routing node to the default router is used as the default path. The default route for each node is assigned the same route identifier as PATH ID=0xFFFF.
以上述图2所示的无线通信系统为例:节点A通过邻居发现功能获取到节点A的邻居节点B和节点C的邻居信息,如上述对IPv6网络层的描述邻居发送功能是IPv6网络层中的一个基本功能。节点A获取的邻居信息如下表1所示:Taking the wireless communication system shown in FIG. 2 as an example: the node A obtains the neighbor information of the neighbor node B and the node C of the node A through the neighbor discovery function, and the description of the IPv6 network layer is as described above. The neighbor transmission function is in the IPv6 network layer. A basic function. The neighbor information obtained by node A is shown in Table 1 below:
表1Table 1
节点地址Node address 调度等待时间Scheduling wait time 链路质量 Link quality
BB 3030 0.90.9
C C 1010 0.80.8
其中,节点之间的链路质量是一个归一化结果,1表示最好,0表示最差,调度等待时间的单位为毫秒ms,下文中提到的调度等待时长均是以ms为单位,对此下文将不再赘述。Among them, the link quality between nodes is a normalized result, 1 is the best, 0 is the worst, and the scheduling waiting time is in milliseconds ms. The scheduling waiting time mentioned below is in ms. This will not be repeated here.
节点B、C、D、E和F通过邻居发现功能获取到节点B的邻居信息图分别如下表2至表 6所示:The neighbor information maps of Node B, C, D, E, and F obtained by the neighbor discovery function are shown in Table 2 to Table 6 below:
表2Table 2
节点地址Node address 调度等待时间Scheduling wait time 链路质量Link quality 是否为缺省路由器Is it the default router?
AA 6060 0.80.8 Yes
CC 2020 0.60.6 no
D D 8080 0.80.8 no
F F 5050 0.90.9 no
上述表2为节点B的邻居信息中,虽然节点F的链路质量最高的路由节点,但是由于节点F是叶子节点不承担路由功能,因此将节点A作为缺省路由器。Table 2 above is the routing information of the Node B. Although the node F has the highest link quality, the node F is the leaf router and does not assume the routing function. Therefore, the node A is used as the default router.
表3table 3
节点地址Node address 调度等待时间Scheduling wait time 链路质量Link quality 是否为缺省路由器Is it the default router?
AA 1010 0.90.9 Yes
BB 3030 0.60.6 no
E E 4040 0.70.7 no
表4Table 4
节点地址Node address 调度等待时间Scheduling wait time 链路质量Link quality 是否为缺省路由器Is it the default router?
B B 4040 0.80.8 no
C C 3030 0.70.7 no
E E 6060 0.90.9 Yes
表5table 5
节点地址Node address 调度等待时间Scheduling wait time 链路质量Link quality 是否为缺省路由器Is it the default router?
C C 3030 0.70.7 Yes
DD 5050 0.90.9 no
表6Table 6
节点地址Node address 调度等待时间Scheduling wait time 链路质量Link quality 是否为缺省路由器Is it the default router?
B B 7070 0.90.9 Yes
表3为节点C的邻居信息,表4为节点D的邻居信息,表5是节点E的邻居信息,表6是节点F的邻居信息。Table 3 is the neighbor information of the node C, Table 4 is the neighbor information of the node D, Table 5 is the neighbor information of the node E, and Table 6 is the neighbor information of the node F.
根据上述各节点获取到的邻居信息,节点A可以获得如图4所示的节点之间的调度时间关系图和图5所示的节点之间的链路质量关系图。According to the neighbor information acquired by each node, the node A can obtain the scheduling time relationship diagram between the nodes as shown in FIG. 4 and the link quality relationship diagram between the nodes shown in FIG. 5.
以节点D为刚上电准备接入上述图2所示的无线通信系统为例,假设出节点D外其他 节点之间都以建立了通信路径,此时,节点D通过邻居发现功能获取到如表4所示的邻居信息,节点D将会将B、C和E三个邻居节点的信息分别封装在上述图邻居汇报报文帧格式中的邻居节点描述项Option中,由于目前节点D的路由表为空,没有任何路径信息,此时将图路由头的Path ID设为0xFFFF,表明路由尚未建立完成,使用缺省路由,D节点会将这个报文发给自己的缺省路由器E;Taking the node D as the power-on preparation to access the wireless communication system shown in FIG. 2 as an example, it is assumed that a communication path is established between other nodes except the node D. At this time, the node D acquires the For the neighbor information shown in Table 4, the node D will encapsulate the information of the three neighboring nodes B, C, and E in the neighbor node description item Option in the frame format of the neighbor report packet, because the current node D routes. The table is empty and there is no path information. In this case, the path ID of the graph routing header is set to 0xFFFF, indicating that the route has not been established yet. The default route is used, and the D node sends the packet to its default router E.
E节点在收到D过来的报文时,通过解析图路由头里面的目的地址会知道该报文是发给节点A,但图路由头的Path ID域为0xFFFF,表明使用缺省路由。这时节点E会以A为目的地址查找自己的路由表,选择以A为目的地址的路径的下一跳作为这个包的下一跳。这样一直进行,D构造的图邻居汇报报文将会转发到A节点。When receiving the packet from D, the E-node will know that the packet is sent to node A by analyzing the destination address in the routing header. However, the Path ID field of the routing header is 0xFFFF, indicating that the default route is used. At this time, node E searches for its own routing table with A as the destination address, and selects the next hop of the path with A as the destination address as the next hop of the packet. In this way, the D neighbor report message will be forwarded to the A node.
302、控制节点接收源节点发送的路由请求。302. The control node receives a routing request sent by the source node.
控制节点接收到源节点发送的路由请求,该路由请求中携带有源节点和目的节点的地址,用于向控制节点请求分配源节点与目的节点之间的通信路径,其中,源节点和目的节点是不能直接通信的节点。The control node receives the routing request sent by the source node, where the routing request carries the addresses of the active node and the destination node, and is used to request the control node to allocate a communication path between the source node and the destination node, where the source node and the destination node It is a node that cannot communicate directly.
换言之,源节点和目的节点不互为对方节点的邻居节点无法进行直接通信,必须由控制节点为其分配通信路径,以使得源节点可以向目的节点发送数据,可以理解的是,通信路径是方向性,对于同一对源节点和目的节点而言,源节点至目的节点的通信路径,以及目的节点至源节点的通信路径均是控制节点确定的,对于两条路径是否经过相同的路由节点转发没有直接必然联系。In other words, the source node and the destination node are not in direct communication with each other's neighbor nodes, and the control node must assign a communication path to it so that the source node can send data to the destination node. It can be understood that the communication path is the direction. Sex, for the same pair of source and destination nodes, the communication path from the source node to the destination node, and the communication path from the destination node to the source node are determined by the control node, and whether the two paths are forwarded through the same routing node. Directly inevitable contact.
以图2为例,节点A需要向节点D发送数据,则此时节点A会添加一条A至D的路径,若节点B、C、D、E和F需要向不能直接通信的其他节点发送数据时,则需要向节点A发送如上述所述的路由请求。Taking Figure 2 as an example, node A needs to send data to node D. At this time, node A will add a path from A to D. If nodes B, C, D, E, and F need to send data to other nodes that cannot communicate directly. At this time, it is necessary to send a routing request as described above to the node A.
303、控制节点根据与源节点和目的节点相关的调度等待时长和信道质量,确定源节点至目的节点的目标通信路径。303. The control node determines a target communication path from the source node to the destination node according to a scheduling waiting duration and a channel quality associated with the source node and the destination node.
控制节点根据网络信息中与源节点和目的节点相关的调度等待时长和信道质量,先确定多条由源节点至目的节点的通信路径,进而计算每一条路径的权值,将权值最大的一条路径确定为目标路径。The control node first determines a plurality of communication paths from the source node to the destination node according to the scheduling waiting time and channel quality associated with the source node and the destination node in the network information, and then calculates the weight of each path, and the one with the largest weight. The path is determined as the target path.
一种可能的权值计算方法为:首先,将调度等待时长和链路质量两个指标进行归一化处理,以得到归一化的值,其次,用1减去调度等待时长的归一化值然后加上链路质量归一化的值,得到每条路径的权值。A possible weight calculation method is as follows: first, normalize the scheduling waiting time and link quality to obtain a normalized value, and secondly, subtract 1 to normalize the scheduling waiting time. The value is then added to the normalized value of the link quality to get the weight of each path.
以图2中节点A至节点D的路径为例:首先节点A确定节点A至D的三条备选路径依次为:路径一A->C->D,路径二A->B->D,路径三A->C->E->D;按照上述权值计算方法得到三条路径的权值,最终根据权值将路径一A->C->D作为节点A至节点D的目标通信路径。Taking the path from node A to node D in Figure 2 as an example: First, node A determines that the three alternative paths of nodes A to D are: path one A->C->D, path two A->B->D, Path three A->C->E->D; according to the above weight calculation method, the weights of the three paths are obtained, and finally the path A->C->D is taken as the target communication path from node A to node D according to the weight. .
可选的,通信路径确定过程中,除考虑上述调度等待时长和链路质量两个指标之外,还可以将节点的剩余能量作为指标进行通信路径的确定,以使得不将存在剩余能量值低于预设阈值的节点对应的路径作为目标通信路径。Optionally, in the communication path determining process, in addition to considering the foregoing scheduling waiting time length and link quality, the remaining energy of the node may be used as an indicator to determine the communication path, so that the remaining energy value is not low. The path corresponding to the node of the preset threshold is used as the target communication path.
以上述节点A至节点D的路径一、路径二和路径三为例,若控制节点获知节点C的剩余电量不足,则控制节点将路径二A->B->D作为目标通信路径。Taking the path one, the path two and the path three of the above node A to the node D as an example, if the control node knows that the remaining power of the node C is insufficient, the control node takes the path two A->B->D as the target communication path.
可选的,通信路径确定过程中,上述考虑上述调度等待时长和链路质量两个指标作为确定目标通信路径的依据是建立在源节点的路由请求中发包需求的情况下的,若路由请求中有路径要求则优先考虑其路径要求。Optionally, in the process of determining the communication path, the foregoing two factors of determining the scheduling waiting duration and the link quality are used as the basis for determining the target communication path, where the request is sent in the routing request of the source node, if the routing request is in the routing request. Path requirements are prioritized for their path requirements.
以上述节点A至节点D的路径一、路径二和路径三为例,若在路由请求中有必须通过节点E转发的发包需求时,节点A只能将路径三A->C->E->D最为节点A至节点D的目标通信路径。Taking path 1, path 2, and path 3 of node A to node D as an example, if there is a packet request that must be forwarded by node E in the route request, node A can only path three A->C->E- >D The destination communication path from node A to node D.
304、控制节点为目标通信路径分配目标路径标识。304. The control node allocates a target path identifier to the target communication path.
在上述步骤303中控制节点确定目标通信路径之后,控制节点为源节点与目的节点之间的目标通信路径分配一个路径标识,该路径标识是唯一的识别源节点至目的节点的目标通信路径。After the control node determines the target communication path in the above step 303, the control node assigns a path identifier to the target communication path between the source node and the destination node, and the path identifier is a unique target communication path identifying the source node to the destination node.
可选的,控制节点生成携带有目标通信路径和目标路径标识的图增加报文GAR,并且,控制节点将上述图增加报文通知至目标通信路径上的各路由节点,进而,路由节点接收到控制节点发送的图增加报文之后,路由节点向控制节点回复第一类图确认报文对上述图增加报文进行确认,并且路由节点将图增加报文中的目标通信路径和目标路径标识添加到路由表中,以便进行路由转发。Optionally, the control node generates a graph addition message GAR carrying the target communication path and the target path identifier, and the control node notifies the routing information of the foregoing graph to the routing nodes on the target communication path, and further, the routing node receives After the message sent by the control node adds the message, the routing node replies to the control node with the first type of picture acknowledgement message to confirm the added message of the above figure, and the routing node adds the target communication path and the target path identifier in the picture increase message. Go to the routing table for routing forwarding.
源节点在进行数据传输时,源节点将目标路径标识写入数据报文的报文头部中,以使得各路由节点可以直接根据目标路劲标识进行数据转发When the source node performs data transmission, the source node writes the target path identifier into the packet header of the data packet, so that each routing node can directly forward the data according to the target road strength identifier.
可选的,上述图增加报文GAR的一种可能的帧格式为:系统管理器维护的增加路径序列号GARSequence、保留位Reserved、路径信息Option。Optionally, a possible frame format of the message GAR added in the foregoing figure is: an added path sequence number GARSequence, a reserved bit Reserved, and a path information Option maintained by the system manager.
以上述步骤303中所述的路径一A->C->D为例:节点A在为自己添加完路由表后会构造一个图增加路径报文GAR发往节点C,关于A->C->D的路径信息会装载在上述所述的图增加报文帧格式中的路径信息Option中,路径信息Option的内容如下表7所示:Taking the path A->C->D described in the above step 303 as an example: after adding the routing table for itself, the node A constructs a graph to add a path message GAR to the node C, regarding A->C- The path information of the >D is loaded in the path information Option in the format of the added message frame described above. The contents of the path information Option are as follows:
表7Table 7
Path IDPath ID 目的地址Destination address 原地址Original address 下一跳地址Next hop address
0x01FF0x01FF DD AA CC
节点C收到该图增加路径报文后会将路径信息Option中的内容添加到节点C的路由表中。这样A->C->D的路径建立过程完毕,如果A需要向D发送数据包,节点C在适配层构造图路由头,查找自己的路由表后将A->C->D路径的Path ID添加到数据包的图路由头中,并选择相应的下一跳地址作为自己的下一跳,路由节点C在路由转发时,根据Path ID查找路由表来选择下一跳地址,Path ID在传输过程中保持不变。After receiving the path message, the node C adds the content of the path information Option to the routing table of the node C. Thus, the path establishment process of A->C->D is completed. If A needs to send a data packet to D, node C constructs a map routing header in the adaptation layer, and finds its own routing table, and then A->C->D path The Path ID is added to the graph routing header of the packet, and the corresponding next hop address is selected as its next hop. When routing node C searches for the route, it searches the routing table according to the Path ID to select the next hop address. Path ID It remains unchanged during the transfer.
需要说明的是,无线网络系统中,系统可能为两个节点之间分配多条路径,如节点A和节点D之间可能同时分配上述路径一A->C->D和路径二A->B->D。It should be noted that in a wireless network system, a system may allocate multiple paths between two nodes. For example, the path A->C->D and path A-> may be simultaneously allocated between node A and node D. B->D.
可选的,本实施例方法还包括:当目标通信路径上的一个或多个路由节点不在工作状态时,控制节点向通信路径上的源节点、目的节点和其他路由节点发送图删除报文,图删除报文中携带有目标路径标识,以使得源节点、目的节点和其他路由节点删除目标通信路径和目标路径标识;Optionally, the method in this embodiment further includes: when one or more routing nodes on the target communication path are not in the working state, the control node sends the deletion message to the source node, the destination node, and other routing nodes on the communication path, The target deletion path carries the target path identifier, so that the source node, the destination node, and other routing nodes delete the target communication path and the target path identifier.
控制节点接收源节点、目的节点和其他路由节点发送的第三类图路径确认报文图确认 报文,第三类图路径确认报文图确认报文用于对图路径删除报文图删除报文进行确认。The control node receives the third type of path confirmation message picture confirmation message sent by the source node, the destination node, and other routing nodes, and the third type of path confirmation message picture confirmation message is used to delete the message picture deletion report of the picture path. Confirmation of the text.
可选的,上述图删除报文GDR的一种可能的帧格式为:系统管理器维护的删除路径序列号GDRSequence、预留的标志位选项Flag、未定义选项Option。Optionally, one possible frame format of the GDR deletion message in the above figure is: a deletion path sequence number GDRSequence maintained by the system manager, a reserved flag bit option Flag, and an undefined option Option.
以上述A->C->D路径为例,对本申请中实施例中的路径维护过程进行说明:The path maintenance process in the embodiment of the present application is described by taking the above A->C->D path as an example:
以节点C失效为例,若节点B检查到节点C不可达,节点B会向节点A发送一个图邻居汇报报文来报告这个事件。由于节点C属于掉线状态,在构造关于节点C的邻居描述Option时,“O”标志位将置0表示这是一个掉线汇报。节点A在收到节点B发过来的图邻居汇报报文后,会知道节点C已经掉线。此时,节点A会找出所有与节点C有关的路径,并向相关路径上的每个节点发送图删除路径报文GDR,图删除路径报文包含了需要被删除路径的Path ID。在删除路径完成后节点A需要为受到影响的节点重新计算路径,然后通过图增加路由报文下发到相关节点;Taking node C failure as an example, if node B checks that node C is unreachable, node B sends a graph neighbor report message to node A to report the event. Since node C belongs to the dropped state, when constructing the neighbor description Option for node C, the "O" flag will be set to 0 to indicate that this is a dropped report. After receiving the neighbor report message sent by the node B, the node A knows that the node C has been dropped. At this time, the node A will find all the paths related to the node C, and send the map deletion path message GDR to each node on the relevant path. The figure delete path message contains the path ID of the path to be deleted. After the path is deleted, the node A needs to recalculate the path for the affected node, and then sends the routing message to the relevant node through the graph.
若节点D在路径修复之前也检测到节点C不可达,它也会进行同节点B一样的汇报工作。唯一区别的是,若节点C的路由表里面到节点A的路径只有一条,此时不能通过图路由的方式将邻居汇报报文发送到节点A,这时必须重复和刚上电时一样的过程,通过选择缺省路由器来完成这个操作。If node D also detects that node C is unreachable before the path is repaired, it will also perform the same reporting as node B. The only difference is that if there is only one path to the node A in the routing table of the node C, the neighbor report packet cannot be sent to the node A through the route of the graph. In this case, the same process as when the power is turned on must be repeated. This is done by selecting the default router.
可选的,一种可能的图路径确认报文GPCR帧格式为:对本报文所确认的事情类型说明Event Type、确认报文的序列Sequence、确认的状态State、未定义选项Option;其中,当上述Event Type为图邻居汇报事件时,根据上述GPCR帧格式得到的图路径确认报文即为上述第二类图路径确认报文;当上述Event Type为图路径增加事件时,根据上述GPCR帧格式得到的图路径确认报文即为上述第一类图路径确认报文;当上述Event Type为图路径删除事件时,根据上述GPCR帧格式得到的图路径确认报文即为上述第三类图路径确认报文。Optionally, a possible picture path confirmation message GPCR frame format is: an event type, a sequence sequence of the acknowledgement message, a confirmed state, an undefined option Option, and an undefined option Option; When the event type is a neighbor report event, the path confirmation message obtained according to the GPCR frame format is the second type path confirmation message; when the event type is a path increase event, according to the GPCR frame format. The obtained path confirmation message is the first type of path confirmation message; when the event type is the picture path deletion event, the picture path confirmation message obtained according to the GPCR frame format is the third type of path. Confirm the message.
上述图邻居汇报报文、图增加报文和图删除报文对应的图路由头部包括:事件类型说明值和路径标识PATH ID,其中,在图邻居汇报报文的图路由头部中:事件类型说明值指代图邻居汇报事件,在图增加报文的图路由头部中:事件类型说明值指代图路径增加事件,在图删除报文的图路由头部中:事件类型说明值指代图路径删除事件。The graph routing header corresponding to the foregoing neighbor report message, the map add message, and the picture delete message includes: an event type description value and a path identifier PATH ID, wherein, in the graph routing header of the graph neighbor report message: an event The type description value refers to the graph neighbor report event. In the graph routing header of the graph, the event type description value refers to the graph path increment event. In the graph routing header of the graph delete message: the event type description value refers to The map path deletes the event.
本实施例中,当源节点和目的节点之间不能直接通信时,控制节点根据通信系统网络中源节点和目的节点之间的调度等待时长和信道质量确定路由节点之间的通信路径,可知在通信路径确定过程中,不会占用无线网络资源,因此本申请的通信路径确定方法可以节约无线网络资源。In this embodiment, when the source node and the destination node cannot directly communicate with each other, the control node determines the communication path between the routing nodes according to the scheduling waiting time and the channel quality between the source node and the destination node in the communication system network, and it is known that In the process of determining the communication path, the wireless network resources are not occupied. Therefore, the communication path determining method of the present application can save wireless network resources.
为了使6LoWPAN标准适用于工业应用环境,满足确定性调度需求,重新设计了协议栈适配层和网络层,为了实现集中控制的6LoWPAN Mesh-under图路由协议,在适配层帧头中增加了图路由头,在网络层增加了4个新的ICMPv6报文。本路由协议需要在汇聚节点或者边界路由器上实现类似系统管理器的功能,使用集中控制的方式管理全网路由,可以更好的优化全网路由,提高数据传输的确定性、可靠性以及传输效率。In order to make the 6LoWPAN standard applicable to the industrial application environment and meet the deterministic scheduling requirements, the protocol stack adaptation layer and the network layer are redesigned. In order to realize the centralized control 6LoWPAN Mesh-under diagram routing protocol, the adaptation layer header is added. Figure routing header, adding 4 new ICMPv6 messages at the network layer. The routing protocol needs to implement a similar system manager function on the aggregation node or the border router, and uses centralized control to manage the entire network route, which can better optimize the entire network routing, improve the determinism, reliability, and transmission efficiency of data transmission. .
如图6所示,本申请实施例中的一种网络设备,网络设备为控制节点,包括:As shown in FIG. 6 , a network device in the embodiment of the present application, where the network device is a control node, includes:
获取模块601,用于获取无线通信系统的网络信息,网络信息包括无线通信系统中任 意两个可以直接通信的路由节点之间的调度等待时长和信道质量;The obtaining module 601 is configured to acquire network information of the wireless communication system, where the network information includes scheduling waiting duration and channel quality between any two routing nodes that can directly communicate in the wireless communication system;
接收模块602,用于接收源节点发送的路由请求,路由请求中携带有源节点和目的节点的地址,源节点和目的节点为无线通信系统中不能直接通信的任意两个路由节点;The receiving module 602 is configured to receive a routing request sent by the source node, where the routing request carries an address of the active node and the destination node, where the source node and the destination node are any two routing nodes in the wireless communication system that cannot directly communicate;
确定模块603,用于根据与源节点和目标节点相关的调度等待时长和信道质量,确定源节点至目的节点的目标通信路径。The determining module 603 is configured to determine a target communication path of the source node to the destination node according to a scheduling waiting duration and a channel quality associated with the source node and the target node.
在第一种示例中,如图7所示,网络设备还包括:In the first example, as shown in FIG. 7, the network device further includes:
分配模块704,用于为目标通信路径分配目标路径标识,目标路径标识用于唯一的标识目标通信路径;An allocating module 704, configured to allocate a target path identifier for the target communication path, where the target path identifier is used to uniquely identify the target communication path;
生成模块705,用于根据目标通信路径和目标路径标识生成图增加报文;a generating module 705, configured to generate a message according to the target communication path and the target path identifier;
发送模块706,用于将图增加报文发送至目标通信路径上的各路由节点;The sending module 706 is configured to send the graph addition message to each routing node on the target communication path;
接收模块702还用于:The receiving module 702 is further configured to:
接收目标通信路径上的各路由节点发送的第一类图确认报文,第一类图确认报文用于对图增加报文进行确认。The first type of picture acknowledgement message sent by each routing node on the target communication path is received, and the first type of picture acknowledgement message is used to confirm the picture added message.
在第二种示例中,获取模块701具体用于:In the second example, the obtaining module 701 is specifically configured to:
获取控制节点的邻居信息,控制节点的邻居信息包括控制节点至控制节点的邻居节点的调度等待时长,和,控制节点与控制节点的邻居节点之间的信道质量,控制节点的邻居节点为能与控制节点直接通信的节点,网络信息包括控制节点的邻居信息;Obtaining neighbor information of the control node, the neighbor information of the control node includes a scheduling waiting duration of the neighbor node of the control node to the control node, and a channel quality between the control node and the neighbor node of the control node, and the neighbor node of the control node is capable of a node that directly controls communication of the node, and the network information includes neighbor information of the control node;
获取路由节点的邻居信息,网络信息包括路由节点的邻居信息。结合上述第二种示例,在第三种示例中,接收模块702还用于:Obtain neighbor information of the routing node, where the network information includes neighbor information of the routing node. In conjunction with the second example above, in a third example, the receiving module 702 is further configured to:
接收路由节点发送的图邻居汇报报文,图邻居汇报报文中携带有路由节点的邻居信息,路由节点的邻居信息包括路由节点至路由节点的邻居节点的调度等待时长,和路由节点与路由节点的邻居节点之间的信道质量,路由节点的邻居节点为能与路由节点直接通信的节点;Receiving the neighbor report message sent by the routing node, where the neighbor report message carries the neighbor information of the routing node, and the neighbor information of the routing node includes the scheduling waiting time of the neighboring node of the routing node to the routing node, and the routing node and the routing node. The channel quality between the neighbor nodes, and the neighbor nodes of the routing node are nodes that can directly communicate with the routing node;
发送模块706还用于:The sending module 706 is further configured to:
向路由节点发送第二类图确认报文,第二类图确认报文用于对图邻居汇报报文进行确认。The second type of picture acknowledgement message is sent to the routing node, and the second type of picture acknowledgement message is used to confirm the picture neighbor report message.
结合上述图6所示的网络设备以及第一种至第三种示例中的任一种网络设备,在第四种示例中,发送模块706还用于:In combination with the network device shown in FIG. 6 and the network device of any one of the first to third examples, in the fourth example, the sending module 706 is further configured to:
当目标通信路径上的一个或多个路由节点不在工作状态时,向通信路径上的源节点、目的节点和其他路由节点发送图删除报文,图删除报文中携带有目标路径标识,以使得源节点、目的节点和其他路由节点删除目标通信路径和目标路径标识;When the one or more routing nodes on the target communication path are not in the working state, the image deletion message is sent to the source node, the destination node, and the other routing nodes on the communication path, and the deleted message carries the target path identifier, so that The source node, the destination node, and other routing nodes delete the target communication path and the target path identifier;
接收模702块还用于:The Receive Mode 702 block is also used to:
接收源节点、目的节点和其他路由节点发送的第三类图确认报文,第三类图确认报文用于对图删除报文进行确认。The third type of picture confirmation message sent by the source node, the destination node, and other routing nodes is received, and the third type of picture confirmation message is used to confirm the picture deletion message.
本实施例中的网络设备的其他描述可参阅上述图3对应的实施例中对控制节点的相关描述,此处不再赘述。本实施例中网络设备的有益效果与上述图3对应的实施例中的有益效果类似,对此此处也不再赘述。For other descriptions of the network device in this embodiment, refer to the related description of the control node in the embodiment corresponding to FIG. 3 above, and details are not described herein again. The beneficial effects of the network device in this embodiment are similar to those in the embodiment corresponding to FIG. 3 above, and details are not described herein again.
如图8所示为本申请实施例中网络设备的一个硬件结构示意图,网络设备80包括:FIG. 8 is a schematic diagram of a hardware structure of a network device in the embodiment of the present application, where the network device 80 includes:
主控板801,交换网板803,两个接口板分别为802和804,其四块板之间的连接关系如图8所示;The main control board 801, the switching network board 803, the two interface boards are 802 and 804 respectively, and the connection relationship between the four boards is as shown in FIG. 8;
其中接口板802和804均包括:中央处理器、转发表项存储器、物理接口卡和网络处理器;The interface boards 802 and 804 each include: a central processing unit, a forwarding entry storage, a physical interface card, and a network processor;
转发表项存储器用于存储路由表,物理接口卡槽用于与其他外部设备进行连接,网络处理器用于对物理接口卡接收到的数据进行处理,中央处理器用于通过查找转发表项存储器中存储的路由表进行执行路由转发功能,以及控制网络处理器进行相应的处理操作。The forwarding entry storage is used to store the routing table, the physical interface card slot is used to connect with other external devices, the network processor is used to process the data received by the physical interface card, and the central processor is used to store the forwarding entry in the memory. The routing table performs the routing forwarding function and controls the network processor to perform corresponding processing operations.
此外,网络设备80在主控板、中央处理器以及网络处理器的协同控制下,还用于执行上述图3对应的实施例中的控制节点的操作,详细操作可参阅上述图3对应的实施例部分的相关描述,对此此处不再赘述。In addition, the network device 80 is also used to perform the operations of the control node in the embodiment corresponding to FIG. 3 under the coordinated control of the main control board, the central processing unit, and the network processor. For detailed operations, refer to the implementation of FIG. 3 above. The related description of the example section is not described here.
本申请实施例还提供了一种计算机存储介质,用于储存为上述网络设备90所用的计算机软件指令,当其在计算机上运行时,使得计算机可以执行上述网络设备90所执行的通信路径确定方法。其中,该存储介质具体可以为上述转发表项存储器。The embodiment of the present application further provides a computer storage medium for storing computer software instructions used by the network device 90, and when the computer is running on the computer, the computer can execute the communication path determining method performed by the network device 90. . The storage medium may be specifically the foregoing forwarding entry storage.
本申请实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机可以执行上述网络设备所执行的通信路径确定方法。The embodiment of the present application further provides a computer program product comprising instructions, when executed on a computer, to enable a computer to execute a communication path determining method performed by the network device.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘solid state disk(SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in accordance with the present application are generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transmission to another website site, computer, server or data center via wired (eg coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg infrared, wireless, microwave, etc.). The computer readable storage medium can be any available media that can be stored by a computer or a data storage device such as a server, data center, or the like that includes one or more available media. The usable medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)) or the like.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的 部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application, in essence or the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program code. .
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案范围。The above embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still The technical solutions described in the embodiments are modified, or some of the technical features are equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present application.

Claims (13)

  1. 一种通信路径确定方法,其特征在于,包括:A communication path determining method, comprising:
    控制节点获取无线通信系统的网络信息,所述网络信息包括所述无线通信系统中任意两个可以直接通信的节点之间的调度等待时长和信道质量;The control node acquires network information of the wireless communication system, where the network information includes scheduling waiting time and channel quality between any two nodes in the wireless communication system that can directly communicate;
    所述控制节点接收源节点发送的路由请求,所述路由请求中携带有所述源节点和目的节点的地址,所述源节点和所述目的节点为所述无线通信系统中不能直接通信的任意两个节点;Receiving, by the control node, a routing request sent by the source node, where the routing request carries an address of the source node and the destination node, where the source node and the destination node are any that cannot be directly communicated in the wireless communication system. Two nodes;
    所述控制节点根据与所述源节点和所述目标节点相关的调度等待时长和信道质量,确定所述源节点至所述目的节点的目标通信路径。The control node determines a target communication path of the source node to the destination node according to a scheduling waiting duration and a channel quality associated with the source node and the target node.
  2. 根据权利要求1所述的方法,其特征在于,在所述控制节点根据与所述源节点和所述目标节点相关的调度等待时长和信道质量,确定所述源节点至所述目的节点的目标通信路径之后,所述方法还包括:The method according to claim 1, wherein the control node determines a target of the source node to the destination node according to a scheduling waiting duration and a channel quality associated with the source node and the target node. After the communication path, the method further includes:
    所述控制节点为所述目标通信路径分配目标路径标识,所述目标路径标识用于唯一的标识所述目标通信路径;The control node assigns a target path identifier to the target communication path, where the target path identifier is used to uniquely identify the target communication path;
    所述控制节点根据所述目标通信路径和所述目标路径标识生成图增加报文;The control node generates a map adding message according to the target communication path and the target path identifier;
    所述控制节点将所述图增加报文发送至所述目标通信路径上的各路由节点;Sending, by the control node, the picture addition message to each routing node on the target communication path;
    所述控制节点接收所述目标通信路径上的各路由节点发送的第一类图确认报文,所述第一类图确认报文用于对所述图增加报文进行确认。The control node receives the first type of picture acknowledgement message sent by each routing node on the target communication path, and the first type of picture acknowledgement message is used to confirm the picture added message.
  3. 根据权利要求1或2所述的方法,其特征在于,所述控制节点获取无线通信系统的网络信息包括:The method according to claim 1 or 2, wherein the acquiring, by the control node, the network information of the wireless communication system comprises:
    所述控制节点获取所述控制节点的邻居信息,所述控制节点的邻居信息包括所述控制节点至所述控制节点的邻居节点的调度等待时长,和,所述控制节点与所述控制节点的邻居节点之间的信道质量,所述控制节点的邻居节点为能与所述控制节点直接通信的节点,所述网络信息包括所述控制节点的邻居信息;The control node acquires neighbor information of the control node, where the neighbor information of the control node includes a scheduling waiting duration of the neighboring node of the control node to the control node, and the control node and the control node a channel quality between the neighbor nodes, the neighbor node of the control node is a node that can directly communicate with the control node, and the network information includes neighbor information of the control node;
    所述控制节点获取路由节点的邻居信息,所述网络信息包括所述路由节点的邻居信息。The control node acquires neighbor information of the routing node, where the network information includes neighbor information of the routing node.
  4. 根据权利要求3所述的方法,其特征在于,所述控制节点获取路由节点的邻居信息包括:The method according to claim 3, wherein the obtaining, by the control node, the neighbor information of the routing node comprises:
    所述控制节点接收所述路由节点发送的图邻居汇报报文,所述图邻居汇报报文中携带有所述路由节点的邻居信息,所述路由节点的邻居信息包括所述路由节点至所述路由节点的邻居节点的调度等待时长,和所述路由节点与所述路由节点的邻居节点之间的信道质量,所述路由节点的邻居节点为能与所述路由节点直接通信的节点;The control node receives the neighbor report message sent by the routing node, where the neighbor report message carries the neighbor information of the routing node, and the neighbor information of the routing node includes the routing node to the a scheduling waiting duration of a neighboring node of the routing node, and a channel quality between the routing node and a neighboring node of the routing node, the neighboring node of the routing node being a node capable of directly communicating with the routing node;
    所述控制节点向所述路由节点发送第二类图确认报文,所述第二类图确认报文用于对所述图邻居汇报报文进行确认。The control node sends a second type of picture acknowledgement message to the routing node, and the second type of picture acknowledgement message is used to confirm the picture neighbor report message.
  5. 根据权利要求1至4中任一项所述的方法,其特征在于,在所述控制节点根据与所述源节点和所述目标节点相关的调度等待时长和信道质量,确定所述源节点至所述目的节点的目标通信路径之后,所述方法还包括:The method according to any one of claims 1 to 4, wherein the control node determines that the source node is based on a scheduling waiting time and channel quality associated with the source node and the target node After the target communication path of the destination node, the method further includes:
    当所述目标通信路径上的一个或多个路由节点不在工作状态时,所述控制节点向所述 通信路径上的所述源节点、所述目的节点和其他路由节点发送图删除报文,所述图删除报文中携带有所述目标路径标识,以使得所述源节点、所述目的节点和所述其他路由节点删除所述目标通信路径和所述目标路径标识;When the one or more routing nodes on the target communication path are not in the working state, the control node sends a map deletion message to the source node, the destination node, and other routing nodes on the communication path. The target deletion path carries the target path identifier, so that the source node, the destination node, and the other routing node delete the target communication path and the target path identifier;
    所述控制节点接收所述源节点、所述目的节点和所述其他路由节点发送的第三类图确认报文,所述第三类图确认报文用于对所述图删除报文进行确认。The control node receives a third type of picture confirmation message sent by the source node, the destination node, and the other routing node, and the third type of picture confirmation message is used to confirm the picture deletion message. .
  6. 一种网络设备,其特征在于,所述网络设备为控制节点,包括:A network device, wherein the network device is a control node, and includes:
    获取模块,用于获取无线通信系统的网络信息,所述网络信息包括所述无线通信系统中任意两个可以直接通信的节点之间的调度等待时长和信道质量;An acquiring module, configured to acquire network information of a wireless communication system, where the network information includes scheduling waiting duration and channel quality between any two nodes in the wireless communication system that can directly communicate;
    接收模块,用于接收源节点发送的路由请求,所述路由请求中携带有所述源节点和目的节点的地址,所述源节点和所述目的节点为所述无线通信系统中不能直接通信的任意两个节点;a receiving module, configured to receive a routing request sent by the source node, where the routing request carries an address of the source node and the destination node, where the source node and the destination node are incapable of directly communicating in the wireless communication system Any two nodes;
    确定模块,用于根据与所述源节点和所述目标节点相关的调度等待时长和信道质量,确定所述源节点至所述目的节点的目标通信路径。And a determining module, configured to determine a target communication path of the source node to the destination node according to a scheduling waiting duration and a channel quality associated with the source node and the target node.
  7. 根据权利要求6所述的设备,其特征在于,所述网络设备还包括:The device according to claim 6, wherein the network device further comprises:
    分配模块,用于为所述目标通信路径分配目标路径标识,所述目标路径标识用于唯一的标识所述目标通信路径;An allocating module, configured to allocate a target path identifier for the target communication path, where the target path identifier is used to uniquely identify the target communication path;
    生成模块,用于根据所述目标通信路径和所述目标路径标识生成图增加报文;a generating module, configured to generate a message according to the target communication path and the target path identifier;
    发送模块,用于将所述图增加报文发送至所述目标通信路径上的各路由节点;a sending module, configured to send the graph addition message to each routing node on the target communication path;
    所述接收模块还用于:The receiving module is further configured to:
    接收所述目标通信路径上的各路由节点发送的第一类图确认报文,所述第一类图确认报文用于对所述图增加报文进行确认。And receiving a first type of picture acknowledgement message sent by each routing node on the target communication path, where the first type of picture acknowledgement message is used to confirm the added message of the figure.
  8. 根据权利要求6或7所述的设备,其特征在于,所述获取模块具体用于:The device according to claim 6 or 7, wherein the obtaining module is specifically configured to:
    获取所述控制节点的邻居信息,所述控制节点的邻居信息包括所述控制节点至所述控制节点的邻居节点的调度等待时长,和,所述控制节点与所述控制节点的邻居节点之间的信道质量,所述控制节点的邻居节点为能与所述控制节点直接通信的节点,所述网络信息包括所述控制节点的邻居信息;Obtaining neighbor information of the control node, where neighbor information of the control node includes a scheduling waiting duration of the neighboring node of the control node to the control node, and between the control node and a neighbor node of the control node Channel quality, the neighbor node of the control node is a node that can directly communicate with the control node, and the network information includes neighbor information of the control node;
    获取路由节点的邻居信息,所述网络信息包括所述路由节点的邻居信息。Obtaining neighbor information of the routing node, where the network information includes neighbor information of the routing node.
  9. 根据权利要求8所述的设备,其特征在于,所述接收模块还用于:The device according to claim 8, wherein the receiving module is further configured to:
    接收所述路由节点发送的图邻居汇报报文,所述图邻居汇报报文中携带有所述路由节点的邻居信息,所述路由节点的邻居信息包括所述路由节点至所述路由节点的邻居节点的调度等待时长,和所述路由节点与所述路由节点的邻居节点之间的信道质量,所述路由节点的邻居节点为能与所述路由节点直接通信的节点;And receiving the neighbor report message sent by the routing node, where the neighbor report message carries the neighbor information of the routing node, and the neighbor information of the routing node includes the neighbor of the routing node to the routing node. a scheduling waiting duration of the node, and a channel quality between the routing node and the neighboring node of the routing node, the neighboring node of the routing node being a node capable of directly communicating with the routing node;
    所述发送模块还用于:The sending module is further configured to:
    向所述路由节点发送第二类图确认报文,所述第二类图确认报文用于对所述图邻居汇报报文进行确认。Sending a second type of picture confirmation message to the routing node, where the second type of picture confirmation message is used to confirm the picture neighbor report message.
  10. 根据权利要求6至9中所述的设备,其特征在于,所述发送模块还用于:The device according to any one of claims 6 to 9, wherein the sending module is further configured to:
    当所述目标通信路径上的一个或多个路由节点不在工作状态时,向所述通信路径上的 所述源节点、所述目的节点和其他路由节点发送图删除报文,所述图删除报文中携带有所述目标路径标识,以使得所述源节点、所述目的节点和所述其他路由节点删除所述目标通信路径和所述目标路径标识;When the one or more routing nodes on the target communication path are not in the working state, sending a delete message to the source node, the destination node, and other routing nodes on the communication path, where the map deletes the report. The target path identifier is carried in the text, so that the source node, the destination node, and the other routing node delete the target communication path and the target path identifier;
    所述接收模块还用于:The receiving module is further configured to:
    接收所述源节点、所述目的节点和所述其他路由节点发送的第三类图确认报文,所述第三类图确认报文用于对所述图删除报文进行确认。Receiving a third type of picture confirmation message sent by the source node, the destination node, and the other routing node, where the third type of picture confirmation message is used to confirm the picture deletion message.
  11. 一种网络设备,其特征在于,所述网络设备为控制节点,包括:A network device, wherein the network device is a control node, and includes:
    接收器、发射器、存储器、总线和处理器;Receiver, transmitter, memory, bus, and processor;
    所述总线,用于连接所述接收器、所述发射器、所述存储器和所述处理器;The bus for connecting the receiver, the transmitter, the memory, and the processor;
    所述存储器,用于存储操作指令;The memory is configured to store an operation instruction;
    所述处理器,用于通过调用所述操作指令,执行上述权利要求1至5中任一项所述的操作。The processor is configured to perform the operations of any one of the preceding claims 1 to 5 by calling the operation instruction.
  12. 一种计算机可读存储介质,其特征在于,所述计算机存储介质用于存储计算机指令,当其在计算机上运行时,使得计算机可以执行上述权利要求1至5中任一项所述的通信路径确定方法。A computer readable storage medium for storing computer instructions that, when run on a computer, cause the computer to perform the communication path of any one of claims 1 to 5 Determine the method.
  13. 一种计算机程序产品,其特征在于,包括计算机指令,当其在计算机上运行时,使得计算机可以执行上述权利要求1至5中任一项所述的通信路径确定方法。A computer program product, comprising computer instructions that, when run on a computer, cause the computer to perform the communication path determining method of any one of claims 1 to 5.
PCT/CN2017/117717 2017-12-21 2017-12-21 Method and network device for determining communication path WO2019119346A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2017/117717 WO2019119346A1 (en) 2017-12-21 2017-12-21 Method and network device for determining communication path
CN201780038263.3A CN110178410A (en) 2017-12-21 2017-12-21 A kind of communication path determines method and the network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/117717 WO2019119346A1 (en) 2017-12-21 2017-12-21 Method and network device for determining communication path

Publications (1)

Publication Number Publication Date
WO2019119346A1 true WO2019119346A1 (en) 2019-06-27

Family

ID=66992994

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/117717 WO2019119346A1 (en) 2017-12-21 2017-12-21 Method and network device for determining communication path

Country Status (2)

Country Link
CN (1) CN110178410A (en)
WO (1) WO2019119346A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11929907B2 (en) 2022-03-08 2024-03-12 T-Mobile Usa, Inc. Endpoint assisted selection of routing paths over multiple networks

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110401596B (en) * 2019-09-10 2023-05-26 迈普通信技术股份有限公司 Message transmission method and device, electronic equipment and readable storage medium
CN111885668B (en) * 2020-06-19 2023-03-24 国网湖南省电力有限公司供电服务中心(计量中心) Hybrid route establishing method of dual-mode Mesh network
CN112003787B (en) * 2020-08-14 2022-09-09 北京灵汐科技有限公司 Routing path determining method, device, control equipment and storage medium
CN113472646B (en) * 2021-05-31 2023-02-10 华为技术有限公司 Data transmission method, node, network manager and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118413A (en) * 2013-02-04 2013-05-22 重庆邮电大学 IPv6 (Internet protocol version 6) industrial wireless sensor network routing method based on definiteness scheduling
US20140098685A1 (en) * 2004-08-02 2014-04-10 Steve J. Shattil Content Delivery in Wireless Wide Area Networks
CN106604348A (en) * 2017-01-04 2017-04-26 清华大学 Wireless ad hoc network routing method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101854696B (en) * 2010-05-25 2012-10-10 重庆邮电大学 Routing method based on scheduling and link quality in wireless sensor network
CN106851769A (en) * 2015-12-03 2017-06-13 电信科学技术研究院 Method, the device of generation routing iinformation and determination transmission path

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140098685A1 (en) * 2004-08-02 2014-04-10 Steve J. Shattil Content Delivery in Wireless Wide Area Networks
CN103118413A (en) * 2013-02-04 2013-05-22 重庆邮电大学 IPv6 (Internet protocol version 6) industrial wireless sensor network routing method based on definiteness scheduling
CN106604348A (en) * 2017-01-04 2017-04-26 清华大学 Wireless ad hoc network routing method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11929907B2 (en) 2022-03-08 2024-03-12 T-Mobile Usa, Inc. Endpoint assisted selection of routing paths over multiple networks

Also Published As

Publication number Publication date
CN110178410A (en) 2019-08-27

Similar Documents

Publication Publication Date Title
WO2019119346A1 (en) Method and network device for determining communication path
JP6463839B2 (en) System and method for flow-based addressing in a mobile environment
EP3228123B1 (en) Efficient hybrid resource and schedule management in time slotted channel hopping networks
US10057342B2 (en) Infrastructure access via neighbor awareness networking data path
JP6204510B2 (en) Topology discovery in hybrid networks
US10820253B2 (en) Distributed reactive resource and schedule management in time slotted channel hopping networks
KR101961049B1 (en) Efficient centralized resource and schedule management in time slotted channel hopping networks
US20080137556A1 (en) Mesh networking auto configuration method, virtual link setting method, packet transmission method in multi-hop wireless lan, and terminal thereof
WO2015090057A1 (en) Method and device for transmitting and receiving routing information and routing information processing system
JP2007142612A (en) Wireless multi-hop network, communication terminal and resource reservation communication method for use therein
WO2012130083A1 (en) Address resolution protocol (arp) table entry configuration method and device
CN106900174B (en) Data transmission method, device and system for wireless local area network mesh network
JP2018526923A (en) Enhanced neighborhood discovery for communication networks
WO2014056412A1 (en) Message sending method, routing bridge and system
JP2006279168A (en) Communication apparatus for configuring adhoc network, bridge apparatus, and communication system
Mu An improved AODV routing for the zigbee heterogeneous networks in 5G environment
WO2012060686A1 (en) Method of communication in wireless sensor networks
JP5673840B2 (en) Node device and communication method
US20160182252A1 (en) Wireless and Powerline Communication Mesh Network
Jin et al. MANET for Disaster Relief based on NDN
US20150098457A1 (en) Enabling internet protocol connectivity across multi-hop mobile wireless networks via a service oriented architecture
WO2023035836A1 (en) Message processing method and related apparatus
KR101922041B1 (en) Method for allocating ip address in d2d communication, and user equipment
WO2011131688A1 (en) A path selection method for a network
JP2011109412A (en) Node device, ad hoc network system, and method of participating in network

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17935205

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17935205

Country of ref document: EP

Kind code of ref document: A1