WO2017219476A1 - Data transmission method and apparatus - Google Patents

Data transmission method and apparatus Download PDF

Info

Publication number
WO2017219476A1
WO2017219476A1 PCT/CN2016/095494 CN2016095494W WO2017219476A1 WO 2017219476 A1 WO2017219476 A1 WO 2017219476A1 CN 2016095494 W CN2016095494 W CN 2016095494W WO 2017219476 A1 WO2017219476 A1 WO 2017219476A1
Authority
WO
WIPO (PCT)
Prior art keywords
link
node
data packet
wireless
data
Prior art date
Application number
PCT/CN2016/095494
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 邦彦技术股份有限公司
Publication of WO2017219476A1 publication Critical patent/WO2017219476A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/005Control of transmission; Equalising
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a data transmission method and apparatus.
  • mobile nodes such as ships and communication vehicles communicate with fixed nodes through satellite, short-wave, scattering, microwave and other communication means. Since the current wireless communication method has only one between the fixed node and the mobile node at the same time. The wireless link is active and in operation, resulting in very low radio link resource utilization and severely limited application data transmission.
  • the main object of the present invention is to provide a data transmission method and apparatus, aiming at solving the technical problem of low efficiency of wireless communication data transmission.
  • the present invention provides a data transmission method, the data transmission method comprising the following steps:
  • Each of the data packets is sent to the destination node through an allocated wireless link.
  • the present invention further provides a data transmission apparatus, where the data transmission apparatus includes:
  • a receiving module configured to receive each data packet sent by the service initiating device in the originating node, and obtain a service priority and a destination node of each data packet;
  • a querying module configured to search, according to a pre-configured routing table of the originating node, each radio link that the originating node reaches the destination node, and obtain link quality of each radio link;
  • An allocating module configured to allocate a wireless link to each data packet according to a service priority of each data packet and a link quality of each wireless link
  • a sending module configured to send each of the data packets to the destination node by using an allocated wireless link.
  • a data transmission method and apparatus obtains a service priority and a destination node of each data packet after receiving each data packet sent by the service initiation device in the originating node; and then, according to the pre-configured route
  • the table finds each radio link from the originating node to the destination node, and acquires the link quality of each radio link, thereby obtaining the link quality of each radio link and each radio link from the originating node to the destination node.
  • a wireless link is allocated for each data packet; after the wireless link allocated for each data packet is obtained, each data packet is allocated through each data packet.
  • the wireless link transmits each data packet, and realizes simultaneous transmission of data by multiple links between two nodes, which greatly improves the utilization of link resources and the data transmission efficiency between nodes.
  • FIG. 1 is a schematic flow chart of a first embodiment of a data transmission method according to the present invention.
  • FIG. 2 is a schematic diagram of functional modules of a first embodiment of a data transmission apparatus according to the present invention
  • FIG. 3 is a schematic diagram of a networking relationship according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a packet according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a data transmission application scenario according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a routing table configuration application scenario according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a neighboring node detection application scenario according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a link notification application scenario according to an embodiment of the present invention.
  • FIG. 9 is a schematic diagram of a data flow control application scenario according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of an application scenario for data transmission between nodes according to an embodiment of the present invention.
  • a first embodiment of a data transmission method of the present invention provides a data transmission method, where the data transmission method includes:
  • Step S10 Receive each data packet sent by the service initiating device in the originating node, and obtain a service priority and a destination node of each data packet.
  • the invention performs comprehensive access, interconnection control and intelligent networking of various wired and wireless communication means and devices through the network interconnection control device; the control data is simultaneously transmitted on multiple transmission links, and the IP data is realized on the wireless transmission link. End-to-end transmission, improve transmission efficiency and improve resource utilization.
  • the networking relationship of the network interconnection control device is shown in FIG. 3.
  • the network interconnection control device is configured between the node and the subnet, and is used for integrated access, interconnection control, and intelligent networking among various wired and wireless heterogeneous networks.
  • each node can be connected by multiple means such as wired or wireless; each subnet is connected through a wireless network, so each subnet can also be called a wireless subnet; each node can include one or more services.
  • Initiating devices such as terminals, servers, or other devices, for transmitting, receiving, and processing data packets.
  • the internal connection of the node is a wired connection
  • the wireless connection between the subnets is exemplified.
  • the network interconnection control device is located between the wired side and the wireless side, the wired side is inside the node, and the wireless side is between the subnets.
  • the network interconnection control device receives the data packet sent by the service initiating device in the originating node, and acquires the priority and destination node of the data packet.
  • the present embodiment exemplifies the destination nodes of multiple data packets as the same node.
  • the data packets may be grouped according to the destination node, and the data packets of the same destination node are in the same group, and are respectively sent by using the method in the embodiment of the present invention to improve data. Sending efficiency.
  • a service priority policy of a data packet is pre-configured, for example, the service priority of the data packet is divided into eight levels, including 0 level, 1 level, 2 levels, 3 levels, 4 levels, and 5 levels. Level, Level 6, and Level 7. Among them, level 0 has the highest priority and level 7 has the lowest priority.
  • the IP data is based on the priority of the service data.
  • Protocol the protocol for interconnecting between networks.
  • the ToS (Type of server) field in the packet header fills in the corresponding priority number.
  • an IPV4 message is used as an example.
  • the message includes Version (version), header Length (header length), ToS, Len (Total Length, total length of IP packets), ID (Identifier, identifier), Offset (offset), TTL (Time To Live, time to live, Proto (Protocol), Header Checksum, IP-SA (IP Source) Address, IP source address), IP-DA (IP Destination Address), Data.
  • the ToS field of the IP packet is 1 byte, and the IP of the ToS field is utilized.
  • the Precedence three bits divide the different data into eight levels.
  • the network interconnection control device may distinguish the data packets of different priorities according to the preset policy. Thereby, the network interconnection control device acquires the service priority and the destination node of each data packet.
  • Step S20 Search, according to a pre-configured routing table of the originating node, each radio link that the originating node reaches the destination node, and obtain link quality of each radio link.
  • the network interconnection control device After acquiring the destination node of the data packet, the network interconnection control device searches for each wireless link from the originating node to the destination node according to the routing table of the pre-configured originating node.
  • the present invention collects routing information of each node's wired link and wireless link through a network interconnection control device, configures a routing table of each node, and shields access to each subnet and channel transmission device in the current communication system. The difference ensures the smooth communication network and realizes the efficient transmission of data between subnets.
  • the routing information of the originating node to other nodes is recorded in the routing table of the originating node.
  • the network interconnection control device After obtaining the radio links from the originating node to the destination node according to the routing table, the network interconnection control device acquires the link quality of each radio link, that is, QoS (Quality of Service, quality of service).
  • the link quality of each radio link is calculated based on preset weights by information such as link bandwidth, transmission quality, availability, throughput, delay, and delay variation (including jitter and drift) of each radio link.
  • the weight value can be used for characterization.
  • Step S30 Allocating a wireless link to each data packet according to the service priority of each data packet and the link quality of each wireless link.
  • Step S40 Send each data packet to the destination node through an allocated wireless link.
  • the network interconnection control device After obtaining the service priority of each data packet and the link quality of each wireless link from the originating node to the destination node, the network interconnection control device selects the wireless link to transmit each data packet to the destination node.
  • the network interconnection control apparatus allocates corresponding radio links in priority order for data packets of different service priorities. Specifically, the network interconnection control device allocates a high-quality wireless link to a data packet with a high priority of service according to a quality level of each wireless link in the routing table from the originating node to the destination node, and the wireless quality is second. The link is assigned to a packet with a lower priority. Then, the network interconnection control device sends the data packet with no high priority to the destination node through the allocated high quality wireless link, and sends the data packet with the lower priority of the service to the wireless link of the assigned quality second. Destination node.
  • the first-to-first-first service is used for forwarding, that is, the high-quality wireless link is preferentially assigned to the first.
  • the arriving data packet assigns the second-quality wireless link to the later arriving data packet. Then, the first arriving data packet is sent to the destination node through the allocated high quality wireless link, and the later arrived data packet is sent to the destination node through the allocated quality secondary wireless link.
  • the network interconnection control apparatus of the originating node receives the service priority, that is, the data packets whose ToS are 0, 1, and 2 respectively
  • the lookup routing table is obtained from the originating node to
  • the radio link of the destination node includes link 1, link 2, and link 3.
  • the link quality of each link is obtained.
  • the QoS of link 1 is 0, and the link quality is the best;
  • the QoS of link 2 is 2, and the link quality is second;
  • the QoS of link 3 is 5, and the link quality is the worst.
  • the network interconnection control device assigns link 1 to the data packet with ToS 0, uses link 1 to transmit the data packet with ToS 0, assigns link 2 to the data packet with ToS 1, and uses the link 2 to send the ToS. 1 packet; link 3 is assigned to a packet with a ToS of 2, and link 3 is used to send a packet with a ToS of 2.
  • the existing conventional IP routing device does not allow more than two links between any two nodes at the same time. Otherwise, a loop will cause a broadcast storm.
  • the existing conventional routing protocol control mode only one radio link between two nodes is activated and in a working state at the same time, the radio link resource utilization is very low, and the transmission of application data is severely limited.
  • all the wireless communication links between the two nodes are in a working state, and multiple links between the two nodes can simultaneously transmit data, which greatly improves the utilization of the link resources and between the nodes. Data transfer efficiency.
  • the second embodiment of the data transmission method of the present invention provides a data transmission method. Based on the embodiment shown in FIG. 1 , the step S10 further includes:
  • Step S50 Obtain routing information of the originating node according to the pre-configured destination node attribute information, the wireless subnet connection relationship, and the wireless subnet routing information that reaches the destination node.
  • the network interconnection control device configures a routing table of the originating node.
  • the network interconnection control device collects routing information in three ways.
  • the network interconnection control device may select a suitable routing information acquisition manner to obtain routing information of each link according to different link states, and finally generate a routing table of the originating node according to all collected routing information.
  • the network interconnection control apparatus acquires routing information of the originating node according to the pre-statically configured destination node attribute information, the wireless subnet connection relationship, and the wireless subnet routing information of the destination node. Applicable to wireless subnets with low subnet bandwidth and subnets that do not report reachable link status.
  • the destination node attribute information includes a destination node number, a destination node IP address, and a subnet mask and a wireless subnet connection relationship to the destination node, as shown in Table 1 below.
  • the wireless subnet connection relationship includes the subnet number, the physical port, and the remote subnet device address and subnet link quality, as shown in Table 2 below.
  • Subnet link quality Subnet number Subnet identifier Physical port Physical network port of the network interconnection control device connected to the subnet device Remote subnet device address Port IP address of the network interconnection control device connected to the subnet on the destination node Subnet link quality
  • the routing information of the wireless subnet to the destination node records the corresponding routing information of the node and the subnet, including the destination node number and the subnet number, as shown in Table 3 below.
  • the network interconnection control device combines Table 1, Table 2, and Table 3 to obtain routing information of the originating node.
  • step S60 acquiring routing information of the originating node according to the pre-configured destination node attribute information and the wireless subnet connection relationship, and the reachability information of the wireless subnet.
  • Some wireless subnets can actively report the reachability status of the wireless subnet. Therefore, the wireless subnet for actively reporting reachability information can be based on pre-configured destination node attribute information and wireless subnet connection relationship, and wireless subnet report.
  • the reachability information obtains the routing information of the originating node.
  • the destination node attribute information is as shown in Table 1 above; the wireless subnet connection relationship is as shown in Table 2 above; the reachability information of the wireless subnet report includes the subnet number and the reachable node list, as shown in Table 4 below. .
  • the network interconnection control device combines Table 1, Table 2, and Table 4 to obtain routing information of the originating node.
  • step S70 performing neighbor node detection and link notification according to a pre-configured routing protocol, and acquiring routing information of the originating node.
  • the routing information of the originating node is collected using a pre-configured routing protocol, mainly for wireless subnets with sufficient bandwidth.
  • the routing information collection method is more flexible and easy to deploy.
  • the network topology can be automatically updated.
  • the routing information can be dynamically updated.
  • Pre-configured routing protocols mainly include two methods, such as wired routing protocols for wired side, such as RIP (Routing). Information Protocol, OSPF (Open Shortest Path) First, open shortest path first), IGRP (Interior Gateway Routing) Protocol, internal gateway routing protocol, etc., and HRP (Heterogeneous Network Router) for the wireless side Protocol, heterogeneous network routing protocol).
  • the network interconnection control device needs to exchange routing information with the router, so the wired side adopts a conventional routing protocol.
  • nodes are connected by means of wireless communication.
  • the network topology and link status are not fixed.
  • the conventional routing protocol occupies a large bandwidth, it takes a long time to achieve algorithm convergence.
  • the network topology may have changed, so that the host gets the old routing information after a lot of cost, and the routing information is always in a non-convergence state. Therefore, in the embodiment of the present invention, the HRP is used as the routing protocol of the wireless side of the communication system, and the routing record is cached only when the two nodes communicate with each other.
  • HRP has the characteristics of fast convergence, reduces the overhead of route lookup, quickly discovers routes, improves the performance and efficiency of route discovery, and at the same time, can track and sense link state changes caused by node movement for dynamic route maintenance.
  • the routing information is collected through neighbor node detection and link notification, and the routing information of the originating node is collected.
  • the neighbor node probe is used to determine the neighbor node relationship, and periodically sends a message to maintain the neighbor relationship; the link notification synchronizes the local link state to the neighbor node; after receiving the link notification of the neighbor node, the response is responsive.
  • the message is sent to the link notification response to inform the neighbor node that the link notification has been received and processed. Thereby, the routing information between the nodes is collected, and the link information between the nodes is obtained. Then, the network interconnection control device will collect the routing information as the routing information of the originating node.
  • Step S80 Generate a routing table of the originating node according to the successfully obtained routing information of the originating node.
  • the routing table of the originating node is generated according to the successfully obtained routing information of the originating node.
  • the routing information collected by the network interconnection control device is synchronized with each other. Specifically, the network interconnection control device collects routing information of the wired side and the wireless side. Then, the network interconnection control device notifies the routing information of the wireless side to the wired side in the subnet through OSPF, and notifies the routing information of the wired side to the wireless side for data transmission between the nodes or subnets.
  • the routing information of the originating node is flexibly collected in multiple manners, and then the routing information of the originating node is successfully collected according to one or more manners, and a routing table of the originating node is generated for searching.
  • the wireless link of the destination node In this embodiment, a plurality of routing information acquisition modes are configured, and access is supported by multiple communication means.
  • the routing protocol has fast convergence and low overhead, which ensures the correctness of the routing information.
  • the third embodiment of the data transmission method of the present invention provides a data transmission method. Based on the second embodiment of the data transmission method of the present invention, the step S70 includes:
  • Step S71 Configure a link state table of the originating node.
  • the wireless side route needs to maintain a link state table by the application layer.
  • the link state table describes the link information that can reach a certain node. There may be multiple links, each of which has its own weight information. It is the neighbor relationship or link state change of each node. After that, I took the initiative to report to my neighbors.
  • the link state table includes the destination network prefix, subnet mask, next hop IP address, local forwarding port, table source, link weight, link attribute, and node list.
  • the source of the link is the source of the link information, which can be static or automatically generated, such as HRP.
  • the weight is calculated from the network quality and port metrics carried in the link request and can be used to characterize the link quality.
  • the attribute is the status of the link. If the link information changes after the last notification, it is set to new (new), otherwise it is set to old (old).
  • the node list is used to record all nodes passing through the packet according to the sequence of nodes through which the link notification message is passed. Therefore, when a link notification message is sent to its neighbor node, the node already existing in the node list can be avoided according to the node list, and used to prevent the routing loop.
  • Step S72 Send a probe message to the neighbor node of the originating node, establish a link with the neighbor node, and update the link state table.
  • the purpose of neighbor node detection is to determine the neighbor relationship, establish a link, and periodically send probe messages to maintain the neighbor relationship.
  • the probe messages between the nodes include a node probe request and a node probe response. It should be noted that both the node probe request and the node probe response are only transmitted between neighbor nodes.
  • the network interconnection control device separately sends a node probe request to each neighbor node of the originating node; after receiving the node probe response of the neighbor node, the network interconnection control device records the routing information of the neighbor node, and sends an acknowledgement message to the neighbor node. Establishing a link and a neighbor relationship; then the network interconnection control device sends a node probe request to the neighbor node according to a preset frequency to maintain the neighbor relationship.
  • the current originating node includes one neighbor node.
  • the originating node is node A, and when node A starts, it detects a port that has been locally turned on.
  • One node A has already opened a port locally and connects to node B.
  • the process of establishing and maintaining a neighbor relationship between node A and neighboring node B is as follows:
  • the node A multicast sending node probes the request, that is, the hello packet.
  • the neighbor field in the packet is empty.
  • the node ID of node B is unknown.
  • the node B After receiving the hello message of the node A, the node B detects that the neighbor field is empty, and immediately sends a hello message of the node probe response to the node A, and fills in the router ID of the node A in the neighbor field; the node A receives After the packet of the Node B, the neighbor field is detected as its own ID, and it is proved that the Node B has received its own hello request.
  • the node A adds the Node B to its neighbor list, establishes a neighbor relationship, and immediately goes to the node. B sends an acknowledgement message, and the neighbor field fills in the node ID of the node B. After receiving the packet of the node A, the node B detects that the neighbor field is its own router ID, and adds the node A to its neighbor node to establish Neighbor relationship
  • Node A and Node B periodically send a node probe request, that is, a hello packet, to the other party to maintain the neighbor relationship. If the node A or the node B does not receive the hello packet sent by the peer, the link is considered to be disconnected. .
  • node A establishes a link with node C and node D, respectively, and maintains the neighbor relationship
  • node B establishes a link with node A and node C, respectively, and maintains the neighbor relationship
  • node C and node A, node B, Node D establishes a link and maintains a neighbor relationship
  • node D establishes a link with node A and node C, respectively, and maintains a neighbor relationship.
  • the network interconnection control device fills the link state table with the link information of the originating node and the neighbor node, and updates the link state table.
  • Step S73 When the link state of the originating node and the neighboring node is updated, send a link notification to the neighboring node to perform link information synchronization, and update the link state table.
  • the purpose of the link notification is to synchronize the link state of the originating node to the neighbor node. To reduce the network traffic, only the changed link state needs to be synchronized, that is, only the link state with the neighbor node is detected. All link information needs to be synchronized when the link status is updated from disconnection to connectivity, from connectivity to disconnection. Further, due to the instability of the wireless link, if the wired side routing link status changes immediately, the network congestion will be rapidly increased, and the network convergence rate will be seriously affected. In view of the characteristics of the wireless side network, By preset time interval. When the link status changes, the link notification is sent after the preset time interval to avoid the link notification being too frequent.
  • the node may send a link notification message to each neighbor node after a preset time interval to update the link status recorded by each node; After the neighbor relationship, if the link is disconnected, the node may send a link notification message to the neighbor node after the preset time interval to update the link status recorded by each node.
  • the link notification message includes: the IP and mask of the destination node, the link quality, the node list, and the CSEQ value.
  • the link quality can be characterized by the link weight. The greater the weight, the better the link quality. If the weight is 0, the link is disconnected.
  • the node list is used to record all nodes passing through the packet according to the sequence of nodes through which the link notification message is passed. Therefore, when a link notification message is sent to its neighbor node, the node already existing in the node list can be avoided according to the node list, and used to prevent the routing loop.
  • a CSEQ Common must be added
  • Sequence Number the name of the command sequence, used to identify and arrange the transaction. This value is generated by the node that initiated the message and is an incremental sequence.
  • the link notification message records all the local link information of the node, and only the link information whose status is updated is recorded.
  • the originating node is exemplified as node A.
  • the neighbor nodes of node A are node B and node C; the neighbor nodes of node B are node A and node C; the neighbor nodes of node C are node B and node D; and the neighbor node of node D is node C.
  • the network interconnection management device When node A starts, the network interconnection management device first learns the route from the local wired network: 192/gateway/link quality.
  • the node A After the node A receives the Hello packet with the ID of the node A sent by the node B, it confirms that the link is successfully established with the node B, determines the neighbor relationship with the node B, and notifies the node B to all the local links. Start the timer to wait for the response of Node B;
  • Node B After receiving the LinkNotice message of Node A, Node B stores the link 192/A/link quality. At the same time, after adding the node to the node list of the source IP packet, the node B forwards it to its neighbor node, but ignores the existing neighbor node in the node list during the sending process, that is, B can only forward to the neighbor node C. Cannot forward to A;
  • Node C receives the RREQ of Node B (Route After the REQuest (route request) request, the link 192/B/link quality is generated, and at the same time, the process of the Node B is repeated, and the link notification is sent to the node D;
  • the node D After receiving the RREQ request from the node C, the node D generates the link 192/C/link quality. Since the node D has no neighbor nodes other than the node C, the link notification is no longer sent.
  • the node A After receiving the Hello message with the ID of the node A sent by the node C, the node A confirms that the link is successfully established with the node C, determines the neighbor relationship with the node C, and notifies the local link to the node C, and Start the timer waiting for the response of node C;
  • the node C After receiving the RREQ request from the node A, the node C finds that the existing link exists with the node A. If the weight of the new link is less than or equal to the existing link, the node C does not perform any processing; otherwise, the node C goes to its neighbor node. Send a link notification.
  • Each node network interconnection control device updates the updated link information to the configured link state table.
  • the link notification response is a response message that is replied to the neighboring node after receiving the link notification of the neighboring node. Like the link notification, it is only transmitted between adjacent nodes, and is used to inform the neighboring node that the node has received the chain. The road informs the message and handles it correctly.
  • the node sends a link notification to the neighbor node, it starts a timer to time. If the link notification response of the neighboring node is not received within the preset time, it is considered to be disconnected from the neighboring node, and the probe message is resent to establish a link.
  • the link state table of the originating node A can be referred to Table 5 below.
  • Step S74 Update the link state table when receiving the link notification sent by the neighboring node.
  • the network interconnection control device of the originating node When the network interconnection control device of the originating node receives the link notification sent by the neighboring node, the link state of the originating node and the neighboring node in the link state table is updated according to the link notification sent by the neighboring node. And send a link notification according to the neighbor node information.
  • Step S75 Acquire routing information of the originating node according to the link state table.
  • the network interconnection configuration device configures the routing information of the originating node based on the state information of each link described in the link state table of the originating node. It should be noted that when there are multiple links to the same destination node as described in the link state table, the link with the highest link weight value, that is, the link with the best link quality, may be selected for configuring the originating node. Routing information.
  • the neighbor node detection is performed, the link between the neighbor nodes is established, and the link information between the nodes is collected.
  • the link information is used to implement the routing information of the wireless link between the nodes in the communication system.
  • the update makes the communication system link consume low and fast convergence, which greatly improves the data transmission efficiency.
  • the fourth embodiment of the data transmission method of the present invention provides a data transmission method. Based on the first embodiment, the second embodiment, and the third embodiment of the data transmission method of the present invention, the step S20 includes:
  • Step S90 Arranging a level-based packet queue according to the service priority of each data packet.
  • the bandwidth of the network is limited, especially for the bandwidth resources of each wireless subnet connected to the network interconnection control device, if the traffic sent by the user is not limited, the sudden burst of data of a large number of users will only make the network more crowded.
  • the user's traffic must be limited. For example, limiting a voice stream at each time interval can only get the part of the resources promised to be allocated to it, preventing network congestion caused by excessive bursts.
  • the network interconnection control apparatus performs flow classification on each received data packet according to the service priority described in the ToS field, and adopts CBQ (Class) for each type of data. Based Queuing, a level-based queue) congestion control strategy. That is, the network interconnection control device allocates packet correspondences of different service priorities into different packet queues.
  • Step S100 sequentially extract the data packet in the data packet queue, and evaluate whether the data traffic exceeds a preset criterion; if the data traffic does not exceed the standard, proceed to step S20.
  • the Internetwork Control Device restricts traffic and its resource usage by regulating traffic specifications.
  • the premise of traffic policing is to know whether the traffic exceeds the specifications, and then implement the control strategy based on the evaluation results.
  • the network interconnection control device uses a token bucket (Token) Bucket) evaluates the traffic specifications.
  • token bucket can be regarded as a container for storing a certain number of tokens.
  • the network interconnection control device places a token into the bucket at a preset speed. When the token in the bucket is full, that is, the preset data traffic standard is reached, the excess token overflows, and the token in the bucket is no longer increased.
  • the network interconnection control device sequentially takes out the data packet from the packet queue and performs evaluation. Each time a packet is taken, an evaluation is performed. If there are enough tokens available in the bucket for each evaluation, the flow control is within the allowable range, and the preset standard is not exceeded. The number of tokens with the same data size as the data packet is taken, and then the data packet is sent to the destination node; otherwise, the current traffic exceeds the standard, and the data packet with low service priority can be discarded, and the physical port is limited.
  • a buffer space is reserved for a queue with a high service priority, so that the transmission quality of the high priority data packet is guaranteed; and the buffer space has no effect on the service priority low queue, that is, , does not cache packets with low business priority.
  • the limited network resources can be better utilized, and the overall efficiency of data transmission is improved.
  • the fifth embodiment of the data transmission method of the present invention provides a data transmission method, based on the first embodiment, the second embodiment, the third embodiment, or the fourth embodiment of the data transmission method of the present invention, the step S30. include:
  • Step S31 Prioritize the wireless links according to the link quality of each radio link.
  • Step S32 According to the service priority of each data packet and the priority of each radio link, polling allocates a corresponding radio link to each data packet.
  • Wireless subnets have tight bandwidth resources relative to wired networks.
  • HF High Frequency, high frequency
  • VHF Very High Frequency, VHF
  • Link bandwidth is generally 4.8Kbps, 9.6Kbps, 19.2Kbps
  • UHF Ultra High Frequency, UHF
  • the two nodes communicate by wireless means.
  • the network interconnection control The device can transmit data by multiple radio links at the same time through the polling and transmitting mode, so that service traffic is load-sharing on multiple wireless links, and the efficiency of service transmission is improved.
  • the polling transmission needs to be combined with the bandwidth and transmission quality of the wireless subnet. The link with high bandwidth and good transmission quality can transmit more data in the same time.
  • the network interconnection control device comprehensively transmits the priority of the data and the state of the wireless network link, and dynamically selects the parallel wireless network link for data transmission.
  • Each subnet periodically reports the link quality of each radio link, and the network interconnection control device periodically queues the radio links according to the quality of the received radio link.
  • the parallel service that needs to be sent by the current originating node is queued with priority.
  • a high-priority radio link is preferentially assigned to a data packet with a high priority, and a priority packet is assigned to a service packet with a lower priority.
  • the data packets of the unassigned wireless link are continuously taken out, and the wireless link is sequentially allocated for each data packet according to the priority of each wireless link.
  • a radio link with a high priority and a high link quality transmits a large number of data packets, and a radio link with a low priority and a poor link quality transmits fewer data packets, so that each radio link is Can be fully utilized.
  • the node 1 transmits data to the node 2 for distance description.
  • Node 1 sends a large amount of data to node 2, including packets 1, 2, 3, 4, 5, and 6.
  • the HF subnet link, the VHF subnet link, and the UHF subnet link between the two nodes can be reached.
  • the UHF subnet has the largest bandwidth and the best link quality
  • the VHF subnet is second
  • the link quality is second
  • the HF subnet has the narrowest bandwidth
  • the link quality is the worst, so the time of sending a packet of data in the HF subnet
  • the VHF subnet can transmit 2 packets of data
  • the UHF subnet can send 3 packets of data.
  • UHF subnets are allocated for packets 1, 4, 6 in a polling manner, VHF subnets are assigned to packets 2, 5, and HF subnets are assigned to packet 3. Thereby, the data of the node 1 is simultaneously transmitted in parallel by the multilink.
  • the data transmission apparatus of the present invention provides a data transmission apparatus, and the data transmission apparatus includes:
  • the receiving module 10 is configured to receive each data packet sent by the service initiating device in the originating node, and obtain a service priority and a destination node of each data packet.
  • the querying module 20 is configured to search, according to the pre-configured routing table of the originating node, each radio link that the originating node reaches the destination node, and acquire the link quality of each radio link.
  • the allocating module 30 is configured to allocate a wireless link to each data packet according to the service priority of each data packet and the link quality of each wireless link.
  • the sending module 40 is configured to send the data packets to the destination node through the allocated wireless link.
  • FIG. 1 For the specific implementation, reference may be made to the first embodiment of the data transmission method of the present invention shown in FIG. 1 above.
  • the embodiment realizes that multiple links between two nodes transmit data at the same time, which greatly improves the utilization of link resources and improves the data transmission efficiency between nodes.
  • the second embodiment of the data transmission apparatus of the present invention provides a data transmission apparatus. Based on the embodiment shown in FIG. 2, the data transmission apparatus further includes:
  • the configuration module 50 is configured to acquire routing information of the originating node according to the pre-configured destination node attribute information, the wireless subnet connection relationship, and the wireless subnet routing information that reaches the destination node; according to the pre-configured destination node attribute The information and the wireless subnet connection relationship, and the reachability information of the wireless subnet report, obtain the routing information of the originating node; perform neighbor node detection and link notification according to the pre-configured routing protocol, and obtain the originating Routing information of the node; generating a routing table of the originating node according to the successfully obtained routing information of the originating node.
  • the third embodiment of the data transmission apparatus of the present invention provides a data transmission apparatus. Based on the second embodiment of the data transmission apparatus of the present invention, the configuration module 50 is further configured to:
  • Configuring a link state table of the originating node transmitting a probe message to a neighbor node of the originating node, establishing a link with the neighbor node, and updating the link state table; at the originating node and When the link state of the neighbor node is updated, sending a link notification to the neighbor node to perform link information synchronization, and updating the link state table; when receiving the link notification sent by the neighbor node, updating the The link state table is obtained; and the routing information of the originating node is obtained according to the link state table.
  • the fourth embodiment of the data transmission apparatus of the present invention provides a data transmission apparatus.
  • the data transmission apparatus further includes: based on the first embodiment, the second embodiment, or the third embodiment of the data transmission apparatus of the present invention.
  • the control module 60 is configured to arrange the level-based data packet queue according to the service priority of each data packet; sequentially extract the data packet in the data packet queue, and evaluate whether the data traffic exceeds a preset standard.
  • the fifth embodiment of the data transmission apparatus of the present invention provides a data transmission apparatus, based on the first embodiment, the second embodiment, the third embodiment or the fourth embodiment of the data transmission apparatus of the present invention, the distribution module 30, also used,
  • the polling distribution of the wireless link realizes that multiple links simultaneously transmit data in parallel between two nodes, so that service traffic is load-sharing on multiple wireless links, fully utilizing each link resource, and improving data transmission. effectiveness.

Abstract

Disclosed is a data transmission method. The method comprises: receiving data packets sent by a service initiating device in an originating node, and obtaining a service priority of each data packet and a destination node; looking for wireless links from the originating node to the destination node according to a preconfigured routing table of the originating node, and obtaining link quality of each wireless link; allocating the wireless links to the data packets according to the service priorities of the data packets and the link quality of the wireless links; and separately sending the data packets to the destination node by means of the allocated wireless links. Also disclosed is a data transmission apparatus. The present invention implements simultaneous data transmission between two nodes by means of multiple links, and significantly improves the utilization rate of link resources and data transmission efficiency between the nodes.

Description

数据传输方法和装置  Data transmission method and device
技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种数据传输方法和装置。The present invention relates to the field of communications technologies, and in particular, to a data transmission method and apparatus.
背景技术Background technique
在机动通信场景下,舰船、通信车等移动节点通过卫星、短波、散射、微波等通信手段与固定节点之间通信,由于目前的无线通信方式在同一时刻固定节点与移动节点之间只有一条无线链路激活且处于工作状态,导致无线链路资源利用率非常低,应用数据的传输严重受限。In the mobile communication scenario, mobile nodes such as ships and communication vehicles communicate with fixed nodes through satellite, short-wave, scattering, microwave and other communication means. Since the current wireless communication method has only one between the fixed node and the mobile node at the same time. The wireless link is active and in operation, resulting in very low radio link resource utilization and severely limited application data transmission.
因此,目前的无线通信数据传输效率低。Therefore, current wireless communication data transmission efficiency is low.
发明内容Summary of the invention
本发明的主要目的在于提供一种数据传输方法和装置,旨在解决无线通信数据传输效率低的技术问题。The main object of the present invention is to provide a data transmission method and apparatus, aiming at solving the technical problem of low efficiency of wireless communication data transmission.
为实现上述目的,本发明提供一种数据传输方法,所述数据传输方法包括以下步骤:To achieve the above object, the present invention provides a data transmission method, the data transmission method comprising the following steps:
接收始发节点中业务发起设备发送的各数据包,并获取所述各数据包的业务优先级和目的节点;Receiving each data packet sent by the service initiating device in the originating node, and acquiring a service priority and a destination node of each data packet;
根据预先配置的所述始发节点的路由表,查找所述始发节点到达所述目的节点的各无线链路,并获取所述各无线链路的链路质量;Obtaining, according to the pre-configured routing table of the originating node, each radio link that the originating node reaches the destination node, and acquiring link quality of each radio link;
根据所述各数据包的业务优先级和所述各无线链路的链路质量,为所述各数据包分配无线链路;Allocating a wireless link to each data packet according to a service priority of each data packet and a link quality of each wireless link;
将所述各数据包分别通过分配的无线链路发送给所述目的节点。Each of the data packets is sent to the destination node through an allocated wireless link.
此外,为实现上述目的,本发明还提供一种数据传输装置,所述数据传输装置包括:In addition, in order to achieve the above object, the present invention further provides a data transmission apparatus, where the data transmission apparatus includes:
接收模块,用于接收始发节点中业务发起设备发送的各数据包,并获取所述各数据包的业务优先级和目的节点;a receiving module, configured to receive each data packet sent by the service initiating device in the originating node, and obtain a service priority and a destination node of each data packet;
查询模块,用于根据预先配置的所述始发节点的路由表,查找所述始发节点到达所述目的节点的各无线链路,并获取所述各无线链路的链路质量;a querying module, configured to search, according to a pre-configured routing table of the originating node, each radio link that the originating node reaches the destination node, and obtain link quality of each radio link;
分配模块,用于根据所述各数据包的业务优先级和所述各无线链路的链路质量,为所述各数据包分配无线链路;An allocating module, configured to allocate a wireless link to each data packet according to a service priority of each data packet and a link quality of each wireless link;
发送模块,用于将所述各数据包分别通过分配的无线链路发送给所述目的节点。And a sending module, configured to send each of the data packets to the destination node by using an allocated wireless link.
本发明实施例提出的一种数据传输方法和装置,在收到始发节点中业务发起设备发送的各数据包后,获取各数据包的业务优先级和目的节点;然后,根据预先配置的路由表,查找从始发节点到达目的节点的各无线链路,并获取各无线链路的链路质量,从而得到从始发节点到目的节点的各无线链路及各无线链路的链路质量;然后,根据各数据包的业务优先级和各无线链路的链路质量,为各数据包分配无线链路;在得到为各数据包分配的无线链路后,分别通过各数据包分配的无线链路发送各数据包,实现了两个节点之间多条链路同时传输数据,大大提升了链路资源的利用率和节点之间的数据传输效率。A data transmission method and apparatus according to an embodiment of the present invention obtains a service priority and a destination node of each data packet after receiving each data packet sent by the service initiation device in the originating node; and then, according to the pre-configured route The table finds each radio link from the originating node to the destination node, and acquires the link quality of each radio link, thereby obtaining the link quality of each radio link and each radio link from the originating node to the destination node. Then, according to the service priority of each data packet and the link quality of each wireless link, a wireless link is allocated for each data packet; after the wireless link allocated for each data packet is obtained, each data packet is allocated through each data packet. The wireless link transmits each data packet, and realizes simultaneous transmission of data by multiple links between two nodes, which greatly improves the utilization of link resources and the data transmission efficiency between nodes.
附图说明DRAWINGS
图1为本发明数据传输方法第一实施例的流程示意图;1 is a schematic flow chart of a first embodiment of a data transmission method according to the present invention;
图2为本发明数据传输装置第一实施例的功能模块示意图;2 is a schematic diagram of functional modules of a first embodiment of a data transmission apparatus according to the present invention;
图3为本发明实施例中一种组网关系示意图;3 is a schematic diagram of a networking relationship according to an embodiment of the present invention;
图4为本发明实施例中一种报文结构示意图;4 is a schematic structural diagram of a packet according to an embodiment of the present invention;
图5为本发明实施例中一种数据发送应用场景示意图;FIG. 5 is a schematic diagram of a data transmission application scenario according to an embodiment of the present invention;
图6为本发明实施例中一种路由表配置应用场景示意图;FIG. 6 is a schematic diagram of a routing table configuration application scenario according to an embodiment of the present invention;
图7为本发明实施例中一种邻居节点探测应用场景示意图;FIG. 7 is a schematic diagram of a neighboring node detection application scenario according to an embodiment of the present invention;
图8为本发明实施例中一种链路通知应用场景示意图;FIG. 8 is a schematic diagram of a link notification application scenario according to an embodiment of the present invention;
图9为本发明实施例中一种数据流量控制应用场景示意图;FIG. 9 is a schematic diagram of a data flow control application scenario according to an embodiment of the present invention;
图10为本发明实施例中一种节点之间数据发送应用场景示意图。FIG. 10 is a schematic diagram of an application scenario for data transmission between nodes according to an embodiment of the present invention.
本发明目的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The object, features, and advantages of the invention will be further described in conjunction with the embodiments.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
参照图1,本发明数据传输方法第一实施例提供一种数据传输方法,所述数据传输方法包括:Referring to FIG. 1, a first embodiment of a data transmission method of the present invention provides a data transmission method, where the data transmission method includes:
步骤S10、接收始发节点中业务发起设备发送的各数据包,并获取所述各数据包的业务优先级和目的节点。Step S10: Receive each data packet sent by the service initiating device in the originating node, and obtain a service priority and a destination node of each data packet.
本发明通过网络互联控制装置进行各种有线、无线通信手段及设备的综合接入、互联控制和智能组网;控制数据在多条传输链路上同时传输,实现IP数据在无线传输链路上的端到端传输,提高传输效率,提升资源利用率。The invention performs comprehensive access, interconnection control and intelligent networking of various wired and wireless communication means and devices through the network interconnection control device; the control data is simultaneously transmitted on multiple transmission links, and the IP data is realized on the wireless transmission link. End-to-end transmission, improve transmission efficiency and improve resource utilization.
网络互联控制装置的组网关系如图3所示,网络互联控制装置配置在节点和子网之间,用于各种有线、无线异构网络间的综合接入、互联控制和智能组网。其中,各节点内部可通过有线、无线等多种方式进行网络联接;各子网之间通过无线网络进行联接,因此各子网也可称为无线子网;各节点可以包括一个或多个业务发起设备,例如终端、服务器或是其他设备,进行数据包的发送、接收和处理等。本实施例中以节点内部为有线连接,子网之间为无线连接进行举例说明。则,网络互联控制装置位于有线侧和无线侧之间,有线侧即为节点内部,无线侧即为子网之间。The networking relationship of the network interconnection control device is shown in FIG. 3. The network interconnection control device is configured between the node and the subnet, and is used for integrated access, interconnection control, and intelligent networking among various wired and wireless heterogeneous networks. Among them, each node can be connected by multiple means such as wired or wireless; each subnet is connected through a wireless network, so each subnet can also be called a wireless subnet; each node can include one or more services. Initiating devices, such as terminals, servers, or other devices, for transmitting, receiving, and processing data packets. In this embodiment, the internal connection of the node is a wired connection, and the wireless connection between the subnets is exemplified. Then, the network interconnection control device is located between the wired side and the wireless side, the wired side is inside the node, and the wireless side is between the subnets.
首先,网络互联控制装置接收始发节点中业务发起设备发送的数据包,并获取数据包的优先级和目的节点。需要说明的是,本实施例中数据包可以有一个,也可以有多个。当有多个数据包时,本实施例以多个数据包的目的节点为同一节点进行举例说明。当多个数据包的目的节点不同时,可将各数据包根据目的节点进行分组,使目的节点相同的数据包在同一小组中,并分别采用本发明实施例所述的方法进行发送,提高数据发送效率。First, the network interconnection control device receives the data packet sent by the service initiating device in the originating node, and acquires the priority and destination node of the data packet. It should be noted that, in this embodiment, there may be one or more data packets. When there are multiple data packets, the present embodiment exemplifies the destination nodes of multiple data packets as the same node. When the destination nodes of the multiple data packets are different, the data packets may be grouped according to the destination node, and the data packets of the same destination node are in the same group, and are respectively sent by using the method in the embodiment of the present invention to improve data. Sending efficiency.
具体的,作为一种实施方式,预先配置有数据包的业务优先级策略,例如将数据包的业务优先级分为8级,包括0级、1级、2级、3级、4级、5级、6级和7级。其中,0级的业务优先级最高,7级的业务优先级最低。Specifically, as an implementation manner, a service priority policy of a data packet is pre-configured, for example, the service priority of the data packet is divided into eight levels, including 0 level, 1 level, 2 levels, 3 levels, 4 levels, and 5 levels. Level, Level 6, and Level 7. Among them, level 0 has the highest priority and level 7 has the lowest priority.
则,各业务发起设备在进行业务数据封装时,根据业务数据的优先级在IP(Internet Protocol,网络之间互联的协议)报文头中的ToS(Type of server,服务类型)字段填写相应优先级编号。Then, when the service initiating device performs the service data encapsulation, the IP data is based on the priority of the service data. Protocol, the protocol for interconnecting between networks. The ToS (Type of server) field in the packet header fills in the corresponding priority number.
参照图4,以IPV4报文进行举例说明。报文中包括Version(版本),header Length(报头长度),ToS,Len(Total length,IP报文总长度),ID(Identifier,标识符),Offset(偏移量),TTL(Time To Live,生存时间),Proto(Protocol,协议),Header Checksum(报头校验和),IP-SA(IP Source Address,IP源地址),IP-DA(IP Destination Address,IP目的地址),Data(数据)。Referring to FIG. 4, an IPV4 message is used as an example. The message includes Version (version), header Length (header length), ToS, Len (Total Length, total length of IP packets), ID (Identifier, identifier), Offset (offset), TTL (Time To Live, time to live, Proto (Protocol), Header Checksum, IP-SA (IP Source) Address, IP source address), IP-DA (IP Destination Address), Data.
其中,IP数据包的ToS字段为1个字节,利用ToS字段的IP Precedence(IP优先级)三位可将不同的数据分成8级。The ToS field of the IP packet is 1 byte, and the IP of the ToS field is utilized. The Precedence three bits divide the different data into eight levels.
当业务发起设备发送的各数据包到达网络互联控制装置时,网络互联控制装置可根据预设策略对不同优先级的数据包进行区分。由此,网络互联控制装置获取各数据包的业务优先级和目的节点。When each data packet sent by the service initiating device arrives at the network interconnection control device, the network interconnection control device may distinguish the data packets of different priorities according to the preset policy. Thereby, the network interconnection control device acquires the service priority and the destination node of each data packet.
步骤S20、根据预先配置的所述始发节点的路由表,查找所述始发节点到达所述目的节点的各无线链路,并获取所述各无线链路的链路质量。Step S20: Search, according to a pre-configured routing table of the originating node, each radio link that the originating node reaches the destination node, and obtain link quality of each radio link.
在获取数据包的目的节点后,网络互联控制装置根据预先配置的始发节点的路由表,查找从始发节点到目的节点的各无线链路。After acquiring the destination node of the data packet, the network interconnection control device searches for each wireless link from the originating node to the destination node according to the routing table of the pre-configured originating node.
需要说明的是,本发明通过网络互联控制装置收集各节点有线链路和无线链路的路由信息,配置各节点的路由表,屏蔽了接入当前通信系统中的各子网及信道传输设备的差异性,保障了通信系统网络的畅通,实现了各子网间的数据高效传输。始发节点的路由表中记载了始发节点到其他各节点的链路信息。It should be noted that the present invention collects routing information of each node's wired link and wireless link through a network interconnection control device, configures a routing table of each node, and shields access to each subnet and channel transmission device in the current communication system. The difference ensures the smooth communication network and realizes the efficient transmission of data between subnets. The routing information of the originating node to other nodes is recorded in the routing table of the originating node.
在根据路由表查找得到从始发节点到目的节点的各无线链路后,网络互联控制装置获取各无线链路的链路质量,也即QoS(Quality of Service,服务质量)。各无线链路的链路质量是由各无线链路的链路带宽、传输质量、可用性、吞吐量、时延、时延变化(包括抖动和漂移)等信息根据预设的权重计算得到的,可使用权重值进行表征。After obtaining the radio links from the originating node to the destination node according to the routing table, the network interconnection control device acquires the link quality of each radio link, that is, QoS (Quality of Service, quality of service). The link quality of each radio link is calculated based on preset weights by information such as link bandwidth, transmission quality, availability, throughput, delay, and delay variation (including jitter and drift) of each radio link. The weight value can be used for characterization.
步骤S30、根据所述各数据包的业务优先级和所述各无线链路的链路质量,为所述各数据包分配无线链路。Step S30: Allocating a wireless link to each data packet according to the service priority of each data packet and the link quality of each wireless link.
步骤S40、将所述各数据包分别通过分配的无线链路发送给所述目的节点Step S40: Send each data packet to the destination node through an allocated wireless link.
在得到各数据包的业务优先级,以及从始发节点到目的节点的各无线链路的链路质量后,网络互联控制装置选择无线链路向目的节点发送各数据包。After obtaining the service priority of each data packet and the link quality of each wireless link from the originating node to the destination node, the network interconnection control device selects the wireless link to transmit each data packet to the destination node.
作为一种实施方式,网络互联控制装置对不同业务优先级的数据包,按优先级顺序,分配对应的无线链路。具体的,网络互联控制装置根据路由表内从始发节点到目的节点的各无线链路的质量等级,将高质量的无线链路分配给业务优先级高的数据包,将质量次之的无线链路分配给业务优先级较低的数据包。然后,网络互联控制装置将业务无优先级高的数据包通过分配的高质量的无线链路发送给目的节点,将业务优先级较低的数据包通过分配的质量次之的无线链路送给目的节点。As an implementation manner, the network interconnection control apparatus allocates corresponding radio links in priority order for data packets of different service priorities. Specifically, the network interconnection control device allocates a high-quality wireless link to a data packet with a high priority of service according to a quality level of each wireless link in the routing table from the originating node to the destination node, and the wireless quality is second. The link is assigned to a packet with a lower priority. Then, the network interconnection control device sends the data packet with no high priority to the destination node through the allocated high quality wireless link, and sends the data packet with the lower priority of the service to the wireless link of the assigned quality second. Destination node.
进一步的,当发往同一目的节点且业务优先级相同的多个数据包同时到达网络互联控制装置时,采用先到先服务的原则进行转发,即:将高质量的无线链路优先分配给先到达的数据包,将质量次之的无线链路分配给后到达的数据包。然后,将先到达的数据包通过分配的高质量的无线链路发送给目的节点,将后到达的数据包通过分配的质量次之的无线链路发送给目的节点。Further, when multiple data packets destined for the same destination node and having the same service priority arrive at the network interconnection control device at the same time, the first-to-first-first service is used for forwarding, that is, the high-quality wireless link is preferentially assigned to the first. The arriving data packet assigns the second-quality wireless link to the later arriving data packet. Then, the first arriving data packet is sent to the destination node through the allocated high quality wireless link, and the later arrived data packet is sent to the destination node through the allocated quality secondary wireless link.
作为一种具体的应用场景,参照图5,始发节点的网络互联控制装置收到业务优先级,也即ToS分别为0、1和2的数据包时,查找路由表得到从始发节点到目的节点的无线链路包括链路1、链路2和链路3。然后,获取得到各链路的链路质量。其中,链路1的QoS为0,链路质量最好;链路2的QoS为2,链路质量次之;链路3的QoS为5,链路质量最差。As a specific application scenario, referring to FIG. 5, when the network interconnection control apparatus of the originating node receives the service priority, that is, the data packets whose ToS are 0, 1, and 2 respectively, the lookup routing table is obtained from the originating node to The radio link of the destination node includes link 1, link 2, and link 3. Then, the link quality of each link is obtained. Among them, the QoS of link 1 is 0, and the link quality is the best; the QoS of link 2 is 2, and the link quality is second; the QoS of link 3 is 5, and the link quality is the worst.
则网络互联控制装置将链路1分配给ToS为0的数据包,使用链路1发送ToS为0的数据包;将链路2分配给ToS为1的数据包,使用链路2发送ToS为1的数据包;将链路3分配给ToS为2的数据包,使用链路3发送ToS为2的数据包。Then, the network interconnection control device assigns link 1 to the data packet with ToS 0, uses link 1 to transmit the data packet with ToS 0, assigns link 2 to the data packet with ToS 1, and uses the link 2 to send the ToS. 1 packet; link 3 is assigned to a packet with a ToS of 2, and link 3 is used to send a packet with a ToS of 2.
由此,实现了在两个节点间通过多条无线链路同时发送数据包。现有的常规IP路由设备,不允许任意两个节点之间同一时刻存在两条以上的链路,否则会形成环路引起广播风暴。按照现有的常规路由协议控制方式,同一时刻两节点之间只有一条无线链路激活且处于工作状态,无线链路资源利用率非常低,应用数据的传输严重受限。Thereby, simultaneous transmission of data packets through two wireless links between two nodes is achieved. The existing conventional IP routing device does not allow more than two links between any two nodes at the same time. Otherwise, a loop will cause a broadcast storm. According to the existing conventional routing protocol control mode, only one radio link between two nodes is activated and in a working state at the same time, the radio link resource utilization is very low, and the transmission of application data is severely limited.
在本实施例中,实现了两节点之间的所有无线通信链路都处于工作状态,两个节点之间多条链路可以同时传输数据,大大提升了链路资源的利用率和节点之间的数据传输效率。In this embodiment, all the wireless communication links between the two nodes are in a working state, and multiple links between the two nodes can simultaneously transmit data, which greatly improves the utilization of the link resources and between the nodes. Data transfer efficiency.
进一步的,本发明数据传输方法第二实施例提供一种数据传输方法,基于上述图1所示的实施例,所述步骤S10之前还包括:Further, the second embodiment of the data transmission method of the present invention provides a data transmission method. Based on the embodiment shown in FIG. 1 , the step S10 further includes:
步骤S50、根据预先配置的目的节点属性信息、无线子网连接关系和到达所述目的节点的无线子网路由信息,获取所述始发节点的路由信息。Step S50: Obtain routing information of the originating node according to the pre-configured destination node attribute information, the wireless subnet connection relationship, and the wireless subnet routing information that reaches the destination node.
本实施例中,网络互联控制装置配置始发节点的路由表。网络互联控制装置通过三种方式收集路由信息。网络互联控制装置根据不同的链路状态,可选择适合的路由信息获取方式以获取各链路的路由信息,最终根据收集到的全部路由信息生成始发节点的路由表。In this embodiment, the network interconnection control device configures a routing table of the originating node. The network interconnection control device collects routing information in three ways. The network interconnection control device may select a suitable routing information acquisition manner to obtain routing information of each link according to different link states, and finally generate a routing table of the originating node according to all collected routing information.
具体的,作为一种实施方式,网络互联控制装置根据预先静态配置的目的节点属性信息、无线子网连接关系和到达目的节点的无线子网路由信息,获取始发节点的路由信息。适用于子网带宽低且子网不上报可达链路状态的无线子网。Specifically, as an implementation manner, the network interconnection control apparatus acquires routing information of the originating node according to the pre-statically configured destination node attribute information, the wireless subnet connection relationship, and the wireless subnet routing information of the destination node. Applicable to wireless subnets with low subnet bandwidth and subnets that do not report reachable link status.
其中,目的节点属性信息包括目的节点号、目的节点IP地址以及子网掩码和到达目的节点的无线子网连接关系,如下表1所示。The destination node attribute information includes a destination node number, a destination node IP address, and a subnet mask and a wireless subnet connection relationship to the destination node, as shown in Table 1 below.
字段Field 说明Description
目的节点号Destination node number 节点标识Node identifier
目的节点IP地址以及子网掩码Destination node IP address and subnet mask 目的IP网段/子网掩码Destination IP network segment/subnet mask
到达目的节点的无线子网连接关系 Wireless subnet connection relationship to the destination node
表1 目的节点属性信息表Table 1 Destination node attribute information table
无线子网连接关系包括子网号、物理端口,以及远端子网设备地址和子网链路质量,如下表2所示。The wireless subnet connection relationship includes the subnet number, the physical port, and the remote subnet device address and subnet link quality, as shown in Table 2 below.
字段Field 说明Description
子网号Subnet number 子网标识Subnet identifier
物理端口Physical port 连接子网设备的网络互联控制装置的物理网口Physical network port of the network interconnection control device connected to the subnet device
远端子网设备地址Remote subnet device address 目的节点上连接本子网的网络互联控制装置的端口IP地址Port IP address of the network interconnection control device connected to the subnet on the destination node
子网链路质量 Subnet link quality
表2 无线子网连接关系表Table 2 Wireless Subnet Connection Relationship Table
到达目的节点的无线子网路由信息记载了节点与子网的对应路由信息,包括目的节点号和子网号,如下表3所示。The routing information of the wireless subnet to the destination node records the corresponding routing information of the node and the subnet, including the destination node number and the subnet number, as shown in Table 3 below.
字段Field 说明Description
目的节点号Destination node number 节点标识Node identifier
子网号Subnet number
表3 到达目的节点的无线子网路由信息表Table 3 Wireless subnet routing information table to the destination node
网络互联控制装置将表1、表2和表3结合,得到始发节点的路由信息。The network interconnection control device combines Table 1, Table 2, and Table 3 to obtain routing information of the originating node.
和/或,步骤S60、根据预先配置的目的节点属性信息和无线子网连接关系,以及无线子网上报的可达性信息,获取所述始发节点的路由信息。And/or, in step S60, acquiring routing information of the originating node according to the pre-configured destination node attribute information and the wireless subnet connection relationship, and the reachability information of the wireless subnet.
部分无线子网可主动上报无线子网的可达状态,因此,针对主动上报可达性信息的无线子网,可以根据预先配置的目的节点属性信息和无线子网连接关系,以及无线子网上报的可达性信息,获取始发节点的路由信息。Some wireless subnets can actively report the reachability status of the wireless subnet. Therefore, the wireless subnet for actively reporting reachability information can be based on pre-configured destination node attribute information and wireless subnet connection relationship, and wireless subnet report. The reachability information obtains the routing information of the originating node.
其中,目的节点属性信息如上述表1所示;无线子网连接关系如上述表2所示;无线子网上报的可达性信息包括子网号和可达节点列表,如下述表4所示。The destination node attribute information is as shown in Table 1 above; the wireless subnet connection relationship is as shown in Table 2 above; the reachability information of the wireless subnet report includes the subnet number and the reachable node list, as shown in Table 4 below. .
自动automatic 说明Description
子网号Subnet number
可达节点列表 Reachable node list
表4 无线子网上报的可达性信息表Table 4 Accessibility information table of wireless subnet report
网络互联控制装置将表1、表2和表4结合,得到始发节点的路由信息。The network interconnection control device combines Table 1, Table 2, and Table 4 to obtain routing information of the originating node.
和/或,步骤S70、根据预先配置的路由协议,进行邻居节点探测和链路通知,获取所述始发节点的路由信息。And/or, in step S70, performing neighbor node detection and link notification according to a pre-configured routing protocol, and acquiring routing information of the originating node.
使用预先配置的路由协议收集始发节点的路由信息,主要针对带宽足够的无线子网。使用路由协议收集路由信息的方式更加灵活且易于部署,在网络拓扑发生变化后能自动更新网络拓扑结构,在链路状态发生变化后也能动态更新路由信息。预先配置的路由协议主要包括两种方式,针对有线侧的有线路由协议,如:RIP(Routing Information Protocol,路由信息协议)、OSPF(Open Shortest Path First,开放最短路径优先)、IGRP(Interior Gateway Routing Protocol,内部网关路由协议)等,以及针对无线侧的无线路由协议HRP(Heterogeneous Network Router Protocol,异构网络路由协议)。在有线侧,网络互联控制装置需要与路由器交互路由信息,所以有线侧采用常规路由协议。在无线侧,节点之间通过无线通信手段相连,网络拓扑及链路状态不固定,由于常规路由协议占用带宽较大,需要花费较长时间才能达到算法收敛,而此时由于节点的移动性,网络拓扑可能已经发生了变化,使得主机在花费了很大代价后得到的是陈旧的路由信息,而使路由信息始终处于不收敛状态。所以在本发明实施例中采用HRP作为通信系统无线侧的路由协议,只有当两个节点间进行通信时,才会缓存路由纪录,因此相对主动路由来说,减小了路由维护的开销。并且,HRP具有快速收敛的特性,减少路由查找的开销,快速发现路由,提高路由发现的性能和效率,同时,应能够跟踪和感知节点移动造成的链路状态变化,以进行动态路由维护。The routing information of the originating node is collected using a pre-configured routing protocol, mainly for wireless subnets with sufficient bandwidth. The routing information collection method is more flexible and easy to deploy. After the network topology changes, the network topology can be automatically updated. After the link status changes, the routing information can be dynamically updated. Pre-configured routing protocols mainly include two methods, such as wired routing protocols for wired side, such as RIP (Routing). Information Protocol, OSPF (Open Shortest Path) First, open shortest path first), IGRP (Interior Gateway Routing) Protocol, internal gateway routing protocol, etc., and HRP (Heterogeneous Network Router) for the wireless side Protocol, heterogeneous network routing protocol). On the wired side, the network interconnection control device needs to exchange routing information with the router, so the wired side adopts a conventional routing protocol. On the wireless side, nodes are connected by means of wireless communication. The network topology and link status are not fixed. Because the conventional routing protocol occupies a large bandwidth, it takes a long time to achieve algorithm convergence. At this time, due to the mobility of the node, The network topology may have changed, so that the host gets the old routing information after a lot of cost, and the routing information is always in a non-convergence state. Therefore, in the embodiment of the present invention, the HRP is used as the routing protocol of the wireless side of the communication system, and the routing record is cached only when the two nodes communicate with each other. Therefore, the relative maintenance of the routing maintenance is reduced. Moreover, HRP has the characteristics of fast convergence, reduces the overhead of route lookup, quickly discovers routes, improves the performance and efficiency of route discovery, and at the same time, can track and sense link state changes caused by node movement for dynamic route maintenance.
针对无线侧,通过邻居节点探测和链路通知收集路由信息,收集始发节点的路由信息。其中,邻居节点探测用于确定邻居节点关系,并周期性的发送消息以维持邻居关系;链路通知将本地的链路状态同步到邻居节点;在收到邻居节点的链路通知后,回复响应消息,进行链路通知响应,从而告知邻居节点已收到链路通知并已处理。由此,实现了节点之间的路由信息收集,得到了各节点之间的链路信息。然后,网络互联控制装置将收集得到路由信息,作为始发节点的路由信息。For the wireless side, the routing information is collected through neighbor node detection and link notification, and the routing information of the originating node is collected. The neighbor node probe is used to determine the neighbor node relationship, and periodically sends a message to maintain the neighbor relationship; the link notification synchronizes the local link state to the neighbor node; after receiving the link notification of the neighbor node, the response is responsive. The message is sent to the link notification response to inform the neighbor node that the link notification has been received and processed. Thereby, the routing information between the nodes is collected, and the link information between the nodes is obtained. Then, the network interconnection control device will collect the routing information as the routing information of the originating node.
步骤S80、根据成功得到的所述始发节点的路由信息生成所述始发节点的路由表。Step S80: Generate a routing table of the originating node according to the successfully obtained routing information of the originating node.
在网络互联控制装置通过一种或多种方式收集得到始发节点的路由信息后,根据成功得到的始发节点路由信息生成始发节点的路由表。After the network interconnection control device collects the routing information of the originating node in one or more manners, the routing table of the originating node is generated according to the successfully obtained routing information of the originating node.
参照图6,网络互联控制装置收集到的路由信息相互之间进行同步。具体的,网络互联控制装置收集有线侧和无线侧的路由信息。然后,网络互联控制装置将无线侧的路由信息通过OSPF通报到将子网内的有线侧,将有线侧的路由信息通报到无线侧,供节点内部或子网之间进行数据传输使用。Referring to FIG. 6, the routing information collected by the network interconnection control device is synchronized with each other. Specifically, the network interconnection control device collects routing information of the wired side and the wireless side. Then, the network interconnection control device notifies the routing information of the wireless side to the wired side in the subnet through OSPF, and notifies the routing information of the wired side to the wireless side for data transmission between the nodes or subnets.
在本实施例中,通过多种方式灵活收集始发节点的路由信息,然后,根据一种或多种方式成功收集得到的始发节点路由信息,生成始发节点的路由表,以供查找达到目的节点的无线链路。本实施例配置了多种路由信息的获取方式,实现了支持多种通信手段的接入,路由协议收敛快、开销低,保障了路由信息的正确性。In this embodiment, the routing information of the originating node is flexibly collected in multiple manners, and then the routing information of the originating node is successfully collected according to one or more manners, and a routing table of the originating node is generated for searching. The wireless link of the destination node. In this embodiment, a plurality of routing information acquisition modes are configured, and access is supported by multiple communication means. The routing protocol has fast convergence and low overhead, which ensures the correctness of the routing information.
进一步的,本发明数据传输方法第三实施例提供一种数据传输方法,基于上述本发明数据传输方法第二实施例,所述步骤S70包括:Further, the third embodiment of the data transmission method of the present invention provides a data transmission method. Based on the second embodiment of the data transmission method of the present invention, the step S70 includes:
步骤S71、配置所述始发节点的链路状态表。Step S71: Configure a link state table of the originating node.
具体的,作为一种实施方式,无线侧路由需要由应用层维护一个链路状态表。不同于路由表,链路状态表描述的是能够到达某一个节点的链路信息,可能会出现多条,每条都有自己的权重信息,是各个节点在建立邻居节点关系或链路状态改变后,主动向自己的邻居关系通报而得来的。链路状态表包括目的网络前缀,子网掩码,下一跳IP地址,本地转发端口,表源,链路权重,链路属性和节点列表。其中,表源为此项链路信息的来源,可以是静态配置(Static),或者自动生成,例如HRP。权重是由链路请求中携带的网络质量和端口度量值计算而得,可以用于表征链路质量。权重越大链路质量越好,权重为0则表示链路断开。属性为链路的状态,若本条链路信息在上一次通知之后发生了改变,则置为new(新),否则置为old(旧)。节点列表用于根据此链路通知消息报文经过的节点顺序,记录此报文经过的所有节点。因此,在向自己的邻居节点发送链路通知消息时,可以根据节点列表,避开已经存在于节点列表中的节点,用于防止路由环路。Specifically, as an implementation manner, the wireless side route needs to maintain a link state table by the application layer. Different from the routing table, the link state table describes the link information that can reach a certain node. There may be multiple links, each of which has its own weight information. It is the neighbor relationship or link state change of each node. After that, I took the initiative to report to my neighbors. The link state table includes the destination network prefix, subnet mask, next hop IP address, local forwarding port, table source, link weight, link attribute, and node list. The source of the link is the source of the link information, which can be static or automatically generated, such as HRP. The weight is calculated from the network quality and port metrics carried in the link request and can be used to characterize the link quality. The greater the weight, the better the link quality. If the weight is 0, the link is disconnected. The attribute is the status of the link. If the link information changes after the last notification, it is set to new (new), otherwise it is set to old (old). The node list is used to record all nodes passing through the packet according to the sequence of nodes through which the link notification message is passed. Therefore, when a link notification message is sent to its neighbor node, the node already existing in the node list can be avoided according to the node list, and used to prevent the routing loop.
步骤S72、向所述始发节点的邻居节点发送探测消息,与所述邻居节点建立链路,并更新所述链路状态表。Step S72: Send a probe message to the neighbor node of the originating node, establish a link with the neighbor node, and update the link state table.
邻居节点探测的目的是为了确定邻居关系,建立链路,并周期性的发送探测消息以维持邻居关系。节点之间的探测消息包括节点探测请求和节点探测响应。需要说明的是,节点探测请求以及节点探测响应都只会在邻居节点之间传送。然后,网络互联控制装置向始发节点的各邻居节点分别发送节点探测请求;在收到邻居节点的节点探测响应后,网络互联控制装置记录邻居节点的路由信息,并向此邻居节点发送确认消息,建立链路和邻居关系;然后网络互联控制装置根据预设的频率向此邻居节点发送节点探测请求,以维持邻居关系。The purpose of neighbor node detection is to determine the neighbor relationship, establish a link, and periodically send probe messages to maintain the neighbor relationship. The probe messages between the nodes include a node probe request and a node probe response. It should be noted that both the node probe request and the node probe response are only transmitted between neighbor nodes. Then, the network interconnection control device separately sends a node probe request to each neighbor node of the originating node; after receiving the node probe response of the neighbor node, the network interconnection control device records the routing information of the neighbor node, and sends an acknowledgement message to the neighbor node. Establishing a link and a neighbor relationship; then the network interconnection control device sends a node probe request to the neighbor node according to a preset frequency to maintain the neighbor relationship.
以当前始发节点包括1个邻居节点进行举例说明。参照图7,始发节点为节点A,当节点A启动之后,检测本地已经开启的端口。1节点A本地已经开启了一个端口,连接节点B。则节点A与邻居节点B建立并维持邻居关系的流程如下:An example is given in which the current originating node includes one neighbor node. Referring to FIG. 7, the originating node is node A, and when node A starts, it detects a port that has been locally turned on. One node A has already opened a port locally and connects to node B. The process of establishing and maintaining a neighbor relationship between node A and neighboring node B is as follows:
节点A组播发送节点探测请求,也即hello报文,报文中的neighbor(邻居)字段为空(由于目前节点A未收到过节点B的hello报文,不知道节点B的节点ID);节点B收到节点A的hello报文之后,检测到neighbor字段为空,则立刻向节点A发送一个节点探测响应的hello报文,并在neighbor字段填节点A的路由器ID;节点A收到节点B的报文之后,检测到neighbor字段为自己的ID,证明节点B收到过自己的hello请求,此时节点A将节点B添加到自己的邻居列表中,建立邻居关系,并立刻向节点B发送一个确认报文,neighbor字段填写节点B的节点ID;节点B收到节点A的报文之后,检测到neighbor字段为自己的路由器ID,则将节点A添加到自己的邻居节点中,建立邻居关系;The node A multicast sending node probes the request, that is, the hello packet. The neighbor field in the packet is empty. (Because node A has not received the hello packet from node B, the node ID of node B is unknown.) After receiving the hello message of the node A, the node B detects that the neighbor field is empty, and immediately sends a hello message of the node probe response to the node A, and fills in the router ID of the node A in the neighbor field; the node A receives After the packet of the Node B, the neighbor field is detected as its own ID, and it is proved that the Node B has received its own hello request. At this time, the node A adds the Node B to its neighbor list, establishes a neighbor relationship, and immediately goes to the node. B sends an acknowledgement message, and the neighbor field fills in the node ID of the node B. After receiving the packet of the node A, the node B detects that the neighbor field is its own router ID, and adds the node A to its neighbor node to establish Neighbor relationship
由此,实现了节点A和节点B之间链路的建立。Thereby, the establishment of a link between the node A and the node B is achieved.
然后,节点A和节点B定期向对方发送节点探测请求,也即hello报文,以维持邻居关系;若节点A或节点B超时未收到对方发送的hello报文,则认为该链路断开。Then, Node A and Node B periodically send a node probe request, that is, a hello packet, to the other party to maintain the neighbor relationship. If the node A or the node B does not receive the hello packet sent by the peer, the link is considered to be disconnected. .
以此类推,节点A分别与节点C和节点D建立链路,并维持邻居关系;节点B分别与节点A、节点C建立链路,并维持邻居关系;节点C分别与节点A、节点B、节点D建立链路,并维持邻居关系;节点D分别与节点A、节点C建立链路,并维持邻居关系。By analogy, node A establishes a link with node C and node D, respectively, and maintains the neighbor relationship; node B establishes a link with node A and node C, respectively, and maintains the neighbor relationship; node C and node A, node B, Node D establishes a link and maintains a neighbor relationship; node D establishes a link with node A and node C, respectively, and maintains a neighbor relationship.
由此,实现了邻居节点探测。网络互联控制装置将始发节点与邻居节点的链路信息填入链路状态表,进行链路状态表的更新。Thereby, neighbor node detection is achieved. The network interconnection control device fills the link state table with the link information of the originating node and the neighbor node, and updates the link state table.
步骤S73、在所述始发节点与邻居节点的链路状态发生更新时,向所述邻居节点发送链路通知进行链路信息同步,并更新所述链路状态表。Step S73: When the link state of the originating node and the neighboring node is updated, send a link notification to the neighboring node to perform link information synchronization, and update the link state table.
链路通知的目的是将始发节点本地的链路状态同步到邻居节点,为减少网络流量,只需要同步改变的链路状态即可,也即只有在探测到与邻居节点的链路通联状态由断开到连通、由联通到断开等链路状态更新时,才需要同步所有的链路信息。进一步的,由于无线链路的不稳定性,若有线侧路由链路状态变化后即刻通报则会快速加大网络阻塞,且会严重影响网络的收敛速度,鉴于无线侧网络的这种特性,可以通过预设时间间隔。当链路状态发生变化,则在预设的时间间隔后,发送链路通知,以避免链路通知过于频繁。The purpose of the link notification is to synchronize the link state of the originating node to the neighbor node. To reduce the network traffic, only the changed link state needs to be synchronized, that is, only the link state with the neighbor node is detected. All link information needs to be synchronized when the link status is updated from disconnection to connectivity, from connectivity to disconnection. Further, due to the instability of the wireless link, if the wired side routing link status changes immediately, the network congestion will be rapidly increased, and the network convergence rate will be seriously affected. In view of the characteristics of the wireless side network, By preset time interval. When the link status changes, the link notification is sent after the preset time interval to avoid the link notification being too frequent.
例如,当节点与邻居节点首次建立邻居关系时,则节点可以在预设的时间间隔后,向各邻居节点发送链路通知消息,以更新各节点记载的链路状态;在节点与邻居节点建立邻居关系后,若链路断开,则节点可以在预设的时间间隔后,向邻居节点发送链路通知消息,以更新各节点记载的链路状态。For example, when a node establishes a neighbor relationship with a neighbor node for the first time, the node may send a link notification message to each neighbor node after a preset time interval to update the link status recorded by each node; After the neighbor relationship, if the link is disconnected, the node may send a link notification message to the neighbor node after the preset time interval to update the link status recorded by each node.
链路通知消息包括:目的节点的IP和掩码,链路质量,节点列表和CSEQ值。其中,链路质量可使用链路权重进行表征,权重越大链路质量越好,权重为0则表示链路断开。节点列表用于根据此链路通知消息报文经过的节点顺序,记录此报文经过的所有节点。因此,在向自己的邻居节点发送链路通知消息时,可以根据节点列表,避开已经存在于节点列表中的节点,用于防止路由环路。为了与链路通知响应相对应,必须增加一个CSEQ(Command Sequence Number,命令序列号)值,用于标识事务并进行排列,这个值由发起报文的节点产生,为一个递增的整形序列。The link notification message includes: the IP and mask of the destination node, the link quality, the node list, and the CSEQ value. The link quality can be characterized by the link weight. The greater the weight, the better the link quality. If the weight is 0, the link is disconnected. The node list is used to record all nodes passing through the packet according to the sequence of nodes through which the link notification message is passed. Therefore, when a link notification message is sent to its neighbor node, the node already existing in the node list can be avoided according to the node list, and used to prevent the routing loop. In order to correspond to the link notification response, a CSEQ (Command must be added) Sequence Number, the name of the command sequence, used to identify and arrange the transaction. This value is generated by the node that initiated the message and is an incremental sequence.
需要说明的是,在节点首次与邻居节点建立邻居关系时,链路通知消息中记载了此节点的全部本地所有的链路信息,只记载状态发生更新的链路信息。It should be noted that when the node establishes a neighbor relationship with the neighboring node for the first time, the link notification message records all the local link information of the node, and only the link information whose status is updated is recorded.
参照图8,以始发节点为节点A进行举例说明。其中,节点A的邻居节点为节点B和节点C;节点B的邻居节点为节点A和节点C;节点C的邻居节点为节点B和节点D;节点D的邻居节点为节点C。Referring to Fig. 8, the originating node is exemplified as node A. The neighbor nodes of node A are node B and node C; the neighbor nodes of node B are node A and node C; the neighbor nodes of node C are node B and node D; and the neighbor node of node D is node C.
当节点A启动后,网络互联管理装置首先会从本地有线网络学习到路由:192/网关/链路质量。When node A starts, the network interconnection management device first learns the route from the local wired network: 192/gateway/link quality.
当节点A收到节点B发送的带节点A的ID的Hello报文之后,确认成功与节点B建立链路,确定与节点B的邻居关系,则将本地所有的链路通知到节点B,并启动定时器等待节点B的响应;After the node A receives the Hello packet with the ID of the node A sent by the node B, it confirms that the link is successfully established with the node B, determines the neighbor relationship with the node B, and notifies the node B to all the local links. Start the timer to wait for the response of Node B;
节点B收到节点A的LinkNotice(链路通知)消息之后,存储链路192/A/链路质量。同时,节点B将本节点加到源IP包的节点列表之后,向自己的邻居节点转发,但是在发送的过程中要忽略节点列表中已有的邻居节点,即B只能向邻居节点C转发,而不能向A转发;After receiving the LinkNotice message of Node A, Node B stores the link 192/A/link quality. At the same time, after adding the node to the node list of the source IP packet, the node B forwards it to its neighbor node, but ignores the existing neighbor node in the node list during the sending process, that is, B can only forward to the neighbor node C. Cannot forward to A;
节点C在收到节点B的RREQ(Route REQuest,路由请求)请求之后,生成链路192/B/链路质量,同时,重复节点B的过程,向节点D发送链路通知;Node C receives the RREQ of Node B (Route After the REQuest (route request) request, the link 192/B/link quality is generated, and at the same time, the process of the Node B is repeated, and the link notification is sent to the node D;
节点D收到节点C的RREQ请求之后,生成链路192/C/链路质量,由于节点D无除节点C以外的邻居节点,不再发送链路通知。After receiving the RREQ request from the node C, the node D generates the link 192/C/link quality. Since the node D has no neighbor nodes other than the node C, the link notification is no longer sent.
当节点A收到节点C发送的带节点A的ID的Hello报文之后,确认成功与节点C建立链路,确定与节点C的邻居关系,则将本地所有的链路通知到节点C,并启动定时器等待节点C的响应;After receiving the Hello message with the ID of the node A sent by the node C, the node A confirms that the link is successfully established with the node C, determines the neighbor relationship with the node C, and notifies the local link to the node C, and Start the timer waiting for the response of node C;
节点C收到节点A的RREQ请求后,发现达到与节点A之间已有链路存在,若新链路的权重小于等于已有链路,不进行任何处理;否则,节点C向其邻居节点发送链路通知。After receiving the RREQ request from the node A, the node C finds that the existing link exists with the node A. If the weight of the new link is less than or equal to the existing link, the node C does not perform any processing; otherwise, the node C goes to its neighbor node. Send a link notification.
需要注意的是,当两个邻居节点之间有超过一条的链路连接时,需要根据链路权重来选取一条最优的链路进行链路的通知,且两个邻接节点之间只要还有一条链路存在,则认为这对邻居节点之间的连接未断掉。由此,实现了各节点之间的链路信息同步。各节点网络互联控制装置将更新的链路信息更新到配置的链路状态表中。It should be noted that when there is more than one link between two neighboring nodes, an optimal link needs to be selected according to the link weight to notify the link, and there is only one between the two adjacent nodes. If a link exists, the connection between the neighbor nodes is considered to be unbroken. Thereby, link information synchronization between the nodes is achieved. Each node network interconnection control device updates the updated link information to the configured link state table.
进一步的,若在预设的时间未收到邻居节点发送的链路通知响应,则转入执行步骤S72。链路通知响应是在收到邻居节点的链路通知之后回复给邻居节点的响应消息,同链路通知一样,只在相邻节点之间传递,用来告知相邻居节点本节点已经收到了链路通知消息并作了正确的处理。当节点在向邻居节点发送链路通知后,启动定时器进行计时。若在预设时间内未收到邻居节点的链路通知响应,则认为与此邻居节点断开,重新发送探测消息建立链路。Further, if the link notification response sent by the neighbor node is not received at the preset time, the process proceeds to step S72. The link notification response is a response message that is replied to the neighboring node after receiving the link notification of the neighboring node. Like the link notification, it is only transmitted between adjacent nodes, and is used to inform the neighboring node that the node has received the chain. The road informs the message and handles it correctly. When the node sends a link notification to the neighbor node, it starts a timer to time. If the link notification response of the neighboring node is not received within the preset time, it is considered to be disconnected from the neighboring node, and the probe message is resent to establish a link.
基于上述图8所示的实施例,始发节点A的链路状态表,可参照下述表5。Based on the above-described embodiment shown in FIG. 8, the link state table of the originating node A can be referred to Table 5 below.
目的网络前缀Destination network prefix 子网掩码Subnet mask 下一跳IP地址Next hop IP address 本端转发端口Local forwarding port 表源Table source 权重Weights 属性Attributes 节点列表Node list
11.36.1.011.36.1.0 255.255.255.0255.255.255.0 1.1.1.1 1.1.1.1 Fei_0/1.1 Fei_0/1.1 Static Static 1 1 old Old A、B A, B
11.36.2.011.36.2.0 255.255.255.0255.255.255.0 1.1.1.11.1.1.1 Fei_0/1.1Fei_0/1.1 StaticStatic 22 NewNew A、CA, C
11.36.3.011.36.3.0 255.255.255.0255.255.255.0 2.1.1.12.1.1.1 Fei_0/1.2Fei_0/1.2 Static Static 55 oldOld B、CB, C
2.1.1.12.1.1.1 255.255.255.255255.255.255.255 2.1.1.12.1.1.1 Fei_0/1.2Fei_0/1.2 HRPHRP 00 oldOld BB
3.0.0.0 3.0.0.0 255.0.0.0255.0.0.0 3.1.1.13.1.1.1 Fei_0/1.3Fei_0/1.3 HRPHRP 00 oldOld BB
10.0.0.010.0.0.0 255.0.0.0255.0.0.0 2.1.1.12.1.1.1 Fei_0/1.2Fei_0/1.2 HRPHRP 00 oldOld CC
0.0.0.00.0.0.0 0.0.0.00.0.0.0 1.1.1.11.1.1.1 Fei_0/1.1Fei_0/1.1 StaticStatic 00 NewNew A、BA, B
表5 链路状态表Table 5 Link Status Table
步骤S74、在收到所述邻居节点发送的链路通知时,更新所述链路状态表。Step S74: Update the link state table when receiving the link notification sent by the neighboring node.
当始发节点的网络互联控制装置收到邻居节点发送的链路通知时,根据邻居节点发送的链路通知更新链路状态表中始发节点与邻居节点的链路状态。并根据邻居节点信息,发送链路通知。When the network interconnection control device of the originating node receives the link notification sent by the neighboring node, the link state of the originating node and the neighboring node in the link state table is updated according to the link notification sent by the neighboring node. And send a link notification according to the neighbor node information.
步骤S75、根据所述链路状态表,获取所述始发节点的路由信息。Step S75: Acquire routing information of the originating node according to the link state table.
网络互联配置装置根据始发节点链路状态表中记载的各链路的状态信息,配置始发节点的路由信息。需要说明的是,当链路状态表中记载的到达同一目的节点有多条链路时,可以选取链路权重值最大,也即链路质量最好的链路,用于配置始发节点的路由信息。The network interconnection configuration device configures the routing information of the originating node based on the state information of each link described in the link state table of the originating node. It should be noted that when there are multiple links to the same destination node as described in the link state table, the link with the highest link weight value, that is, the link with the best link quality, may be selected for configuring the originating node. Routing information.
在本实施例中,通过邻居节点探测,建立邻居节点之间的链路,收集各节点之间的链路信息;通过链路通知,实现了通信系统中各节点之间无线链路的路由信息更新,使得通信系统链路低消耗、快收敛,极大地提升了数据传输效率。In this embodiment, the neighbor node detection is performed, the link between the neighbor nodes is established, and the link information between the nodes is collected. The link information is used to implement the routing information of the wireless link between the nodes in the communication system. The update makes the communication system link consume low and fast convergence, which greatly improves the data transmission efficiency.
进一步的,本发明数据传输方法第四实施例提供一种数据传输方法,基于上述本发明数据传输方法第一实施例、第二实施例、第三实施例,所述步骤S20包括:Further, the fourth embodiment of the data transmission method of the present invention provides a data transmission method. Based on the first embodiment, the second embodiment, and the third embodiment of the data transmission method of the present invention, the step S20 includes:
步骤S90、根据所述各数据包的业务优先级,排列得到基于级别的数据包队列。Step S90: Arranging a level-based packet queue according to the service priority of each data packet.
由于网络的带宽是有限的,特别是对于连接网络互联控制装置的各无线子网带宽资源极其有限,如果不限制用户发送的流量,那么大量用户不断突发的数据只会使网络更拥挤。为了使有限的网络资源能够更好地发挥效用,为用户提供更好的服务,必须对用户的流量加以限制。例如限制每个时间间隔某个语音流只能得到承诺分配给它的那部分资源,防止由于过分突发所引发的网络拥塞。Since the bandwidth of the network is limited, especially for the bandwidth resources of each wireless subnet connected to the network interconnection control device, if the traffic sent by the user is not limited, the sudden burst of data of a large number of users will only make the network more crowded. In order to make the limited network resources work better and provide better services to users, the user's traffic must be limited. For example, limiting a voice stream at each time interval can only get the part of the resources promised to be allocated to it, preventing network congestion caused by excessive bursts.
具体的,作为一种实施方式,首先,网络互联控制装置对接收到的各数据包根据ToS字段记载的业务优先级进行流分级,并对各类数据采用CBQ(Class Based Queuing,基于级别的队列)拥塞控制策略。也即,网络互联控制装置将不同业务优先级的数据包对应排入不同的数据包队列。Specifically, as an implementation manner, first, the network interconnection control apparatus performs flow classification on each received data packet according to the service priority described in the ToS field, and adopts CBQ (Class) for each type of data. Based Queuing, a level-based queue) congestion control strategy. That is, the network interconnection control device allocates packet correspondences of different service priorities into different packet queues.
步骤S100、依次取出所述数据包队列中的数据包,评估数据流量是否超过预设的标准;若数据流量未超标,则转入执行步骤S20。Step S100: sequentially extract the data packet in the data packet queue, and evaluate whether the data traffic exceeds a preset criterion; if the data traffic does not exceed the standard, proceed to step S20.
网络互联控制装置通过对流量规格的监管,来限制流量及其资源使用。进行流量监管的前提,就是要知道流量是否超出了规格,然后才能根据评估结果实施调控策略。本实施例中,网络互联控制装置采用令牌桶(Token Bucket)对流量的规格进行评估,当网络流量过大时,优先发送高优先级数据,对次高优先级数据进行缓存,对优先级较低数据可直接丢弃,以防止网络拥塞。具体的,令牌桶可看作是一个存放一定数量令牌的容器。网络互联控制装置按预设的速度向桶中放置令牌,当桶中令牌存满,也即达到预设的数据流量标准时,多出的令牌溢出,桶中令牌不再增加。The Internetwork Control Device restricts traffic and its resource usage by regulating traffic specifications. The premise of traffic policing is to know whether the traffic exceeds the specifications, and then implement the control strategy based on the evaluation results. In this embodiment, the network interconnection control device uses a token bucket (Token) Bucket) evaluates the traffic specifications. When the network traffic is too large, the high-priority data is sent preferentially, and the next-highest-priority data is cached. The lower-priority data can be directly discarded to prevent network congestion. Specifically, the token bucket can be regarded as a container for storing a certain number of tokens. The network interconnection control device places a token into the bucket at a preset speed. When the token in the bucket is full, that is, the preset data traffic standard is reached, the excess token overflows, and the token in the bucket is no longer increased.
参照图9,网络互联控制装置在得到数据包队列后,依次从数据包队列中取出数据包,进行评估。每取出一个数据包就进行一次评估,每次进行评估时,如果桶中有足够的令牌可供使用,则说明流量控制在允许的范围内,未超过预设的标准,此时要从桶中取走与数据包的数据大小相同的令牌数量,然后发送此数据包到目的节点;否则,说明当前流量超标,可丢弃业务优先级低的数据包,并对物理端口进行限速。Referring to FIG. 9, after obtaining the packet queue, the network interconnection control device sequentially takes out the data packet from the packet queue and performs evaluation. Each time a packet is taken, an evaluation is performed. If there are enough tokens available in the bucket for each evaluation, the flow control is within the allowable range, and the preset standard is not exceeded. The number of tokens with the same data size as the data packet is taken, and then the data packet is sent to the destination node; otherwise, the current traffic exceeds the standard, and the data packet with low service priority can be discarded, and the physical port is limited.
进一步的,可通过设置发送缓冲区,来为业务优先级高的队列保留缓冲空间,使高优先级数据包的传输质量得到保障;而这个缓冲空间对业务优先级低队列不起作用,也即,不缓存业务优先级低的数据包。Further, by setting a transmission buffer, a buffer space is reserved for a queue with a high service priority, so that the transmission quality of the high priority data packet is guaranteed; and the buffer space has no effect on the service priority low queue, that is, , does not cache packets with low business priority.
在本实施例中,通过数据流量控制,使有限的网络资源能够得到更好的利用,提高数据发送的整体效率。In this embodiment, through the data flow control, the limited network resources can be better utilized, and the overall efficiency of data transmission is improved.
进一步的,本发明数据传输方法第五实施例提供一种数据传输方法,基于上述本发明数据传输方法第一实施例、第二实施例、第三实施例或第四实施例,所述步骤S30包括:Further, the fifth embodiment of the data transmission method of the present invention provides a data transmission method, based on the first embodiment, the second embodiment, the third embodiment, or the fourth embodiment of the data transmission method of the present invention, the step S30. include:
步骤S31、根据所述各无线链路的链路质量,对所述各无线链路进行优先级排列;Step S31: Prioritize the wireless links according to the link quality of each radio link.
步骤S32、根据所述各数据包的业务优先级,和所述各无线链路的优先级,轮询为所述各数据包分配对应的无线链路。Step S32: According to the service priority of each data packet and the priority of each radio link, polling allocates a corresponding radio link to each data packet.
无线子网相对于有线网络而言带宽资源紧张。HF(High Frequency,高频)链路带宽一般为300bps~2.4Kbps,VHF(Very High Frequency,甚高频)链路带宽一般为4.8Kbps、9.6Kbps、19.2Kbps,UHF(Ultra High Frequency,特高频)链路带宽一般1Mbps,卫星链路带宽一般为2.4Kbps~2Mbps。两个节点之间通过无线手段进行通信,当有大量数据采用单一手段传送时,很容易发送拥塞,且传输数据时间较长;因此当两个节点之间有多种无线手段时,网络互联控制装置可通过轮询发送方式实现多条无线链路同时传送数据,实现业务流量在多条无线链路上负荷分担,提高业务传送的效率。轮询发送需要与无线子网的带宽、传输质量结合,带宽高、传输质量好的链路在相同的时间内可以传输较多的数据。Wireless subnets have tight bandwidth resources relative to wired networks. HF (High Frequency, high frequency) link bandwidth is generally 300bps ~ 2.4Kbps, VHF (Very High Frequency, VHF) Link bandwidth is generally 4.8Kbps, 9.6Kbps, 19.2Kbps, UHF (Ultra High Frequency, UHF) link bandwidth is generally 1Mbps, satellite link bandwidth is generally 2.4Kbps ~ 2Mbps. The two nodes communicate by wireless means. When a large amount of data is transmitted by a single means, it is easy to send congestion and transmit data for a long time; therefore, when there are multiple wireless means between the two nodes, the network interconnection control The device can transmit data by multiple radio links at the same time through the polling and transmitting mode, so that service traffic is load-sharing on multiple wireless links, and the efficiency of service transmission is improved. The polling transmission needs to be combined with the bandwidth and transmission quality of the wireless subnet. The link with high bandwidth and good transmission quality can transmit more data in the same time.
具体的,作为一种实施方式,在并行传输模式下,网络互联控制装置综合发送数据的优先级和无线网络链路的状态,动态的选择并行无线网络链路进行数据传输。各个子网定时上报各条无线链路的链路质量,网络互联控制装置定时根据收到无线链路质量情况对无线链路进行优先级的排队。同时,对当前始发节点需要发送的并行业务进行优先级排队。然后,根据各数据包的优先级和各无线链路的优先级,为业务优先级高的数据包优先分配优先级高的无线链路,为业务优先级次之的数据包分配优先级次之的无线链路,依次类推,直至各无线链路均已得到分配。然后,继续取出未分配无线链路的数据包,重新根据各无线链路的优先级,依次为各数据包分配无线链路。Specifically, as an implementation manner, in the parallel transmission mode, the network interconnection control device comprehensively transmits the priority of the data and the state of the wireless network link, and dynamically selects the parallel wireless network link for data transmission. Each subnet periodically reports the link quality of each radio link, and the network interconnection control device periodically queues the radio links according to the quality of the received radio link. At the same time, the parallel service that needs to be sent by the current originating node is queued with priority. Then, according to the priority of each data packet and the priority of each radio link, a high-priority radio link is preferentially assigned to a data packet with a high priority, and a priority packet is assigned to a service packet with a lower priority. The wireless link, and so on, until each wireless link has been assigned. Then, the data packets of the unassigned wireless link are continuously taken out, and the wireless link is sequentially allocated for each data packet according to the priority of each wireless link.
由此,实现了优先级高、链路质量高的无线链路发送较多的数据包,优先级低、链路质量较差的无线链路发送较少的数据包,使各无线链路均能得到充分利用。Therefore, a radio link with a high priority and a high link quality transmits a large number of data packets, and a radio link with a low priority and a poor link quality transmits fewer data packets, so that each radio link is Can be fully utilized.
参照图10,以节点1向节点2发送数据进行距离说明。Referring to Fig. 10, the node 1 transmits data to the node 2 for distance description.
节点1发送大量数据到节点2,包括数据包1、2、3、4、5和6。两节点之间HF子网链路、VHF子网链路、UHF子网链路均可达。其中,UHF子网带宽最大、链路质量最好,VHF子网次之、链路质量次之,HF子网带宽最窄、链路质量最差,故在HF子网发送一包数据的时间内,可控制VHF子网发送2包数据,UHF子网发送3包数据。因此,以轮询的方式为数据包1、4、6分配UHF子网,为数据包2、5分配VHF子网,为数据包3分配HF子网。由此,实现了多链路同时并行发送节点1的数据。Node 1 sends a large amount of data to node 2, including packets 1, 2, 3, 4, 5, and 6. The HF subnet link, the VHF subnet link, and the UHF subnet link between the two nodes can be reached. Among them, the UHF subnet has the largest bandwidth and the best link quality, the VHF subnet is second, the link quality is second, the HF subnet has the narrowest bandwidth, and the link quality is the worst, so the time of sending a packet of data in the HF subnet Within the control, the VHF subnet can transmit 2 packets of data, and the UHF subnet can send 3 packets of data. Therefore, UHF subnets are allocated for packets 1, 4, 6 in a polling manner, VHF subnets are assigned to packets 2, 5, and HF subnets are assigned to packet 3. Thereby, the data of the node 1 is simultaneously transmitted in parallel by the multilink.
在本实施例中,通过无线链路的轮询分配,实现了两节点间同时多条链路并行发送数据,使业务流量在多条无线链路上负荷分担,充分利用了各链路资源,提高数据传输效率。In this embodiment, through the polling allocation of the wireless link, data is transmitted in parallel by multiple links at the same time between the two nodes, so that the service traffic is load-sharing on multiple wireless links, and the link resources are fully utilized. Improve data transfer efficiency.
参照图2,本发明数据传输装置提供一种数据传输装置,所述数据传输装置包括:Referring to FIG. 2, the data transmission apparatus of the present invention provides a data transmission apparatus, and the data transmission apparatus includes:
接收模块10,用于接收始发节点中业务发起设备发送的各数据包,并获取所述各数据包的业务优先级和目的节点。The receiving module 10 is configured to receive each data packet sent by the service initiating device in the originating node, and obtain a service priority and a destination node of each data packet.
查询模块20,用于根据预先配置的所述始发节点的路由表,查找所述始发节点到达所述目的节点的各无线链路,并获取所述各无线链路的链路质量。The querying module 20 is configured to search, according to the pre-configured routing table of the originating node, each radio link that the originating node reaches the destination node, and acquire the link quality of each radio link.
分配模块30,用于根据所述各数据包的业务优先级和所述各无线链路的链路质量,为所述各数据包分配无线链路。The allocating module 30 is configured to allocate a wireless link to each data packet according to the service priority of each data packet and the link quality of each wireless link.
发送模块40,用于将所述各数据包分别通过分配的无线链路发送给所述目的节点。The sending module 40 is configured to send the data packets to the destination node through the allocated wireless link.
具体实施方式可参照上述图1所示的本发明数据传输方法第一实施例。实施例实现了两个节点之间多条链路同时传输数据,大大提升了链路资源的利用率,也提高了节点之间的数据传输效率。For the specific implementation, reference may be made to the first embodiment of the data transmission method of the present invention shown in FIG. 1 above. The embodiment realizes that multiple links between two nodes transmit data at the same time, which greatly improves the utilization of link resources and improves the data transmission efficiency between nodes.
进一步的,本发明数据传输装置第二实施例提供一种数据传输装置,基于上述图2所示的实施例,所述数据传输装置还包括:Further, the second embodiment of the data transmission apparatus of the present invention provides a data transmission apparatus. Based on the embodiment shown in FIG. 2, the data transmission apparatus further includes:
配置模块50,用于根据预先配置的目的节点属性信息、无线子网连接关系和到达所述目的节点的无线子网路由信息,获取所述始发节点的路由信息;根据预先配置的目的节点属性信息和无线子网连接关系,以及无线子网上报的可达性信息,获取所述始发节点的路由信息;根据预先配置的路由协议,进行邻居节点探测和链路通知,获取所述始发节点的路由信息;根据成功得到的所述始发节点的路由信息生成所述始发节点的路由表。The configuration module 50 is configured to acquire routing information of the originating node according to the pre-configured destination node attribute information, the wireless subnet connection relationship, and the wireless subnet routing information that reaches the destination node; according to the pre-configured destination node attribute The information and the wireless subnet connection relationship, and the reachability information of the wireless subnet report, obtain the routing information of the originating node; perform neighbor node detection and link notification according to the pre-configured routing protocol, and obtain the originating Routing information of the node; generating a routing table of the originating node according to the successfully obtained routing information of the originating node.
具体实施方式可参照上述本发明数据传输方法第二实施例。本实施例配置了多种路由信息的获取方式,实现了支持多种通信手段的接入,路由协议收敛快、开销低,保障了路由信息的正确性。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Reference may be made to the second embodiment of the data transmission method of the present invention described above. In this embodiment, a plurality of routing information acquisition modes are configured, and access is supported by multiple communication means. The routing protocol has fast convergence and low overhead, which ensures the correctness of the routing information.
进一步的,本发明数据传输装置第三实施例提供一种数据传输装置,基于上述本发明数据传输装置第二实施例,所述配置模块50还用于,Further, the third embodiment of the data transmission apparatus of the present invention provides a data transmission apparatus. Based on the second embodiment of the data transmission apparatus of the present invention, the configuration module 50 is further configured to:
配置所述始发节点的链路状态表;向所述始发节点的邻居节点发送探测消息,与所述邻居节点建立链路,并更新所述链路状态表;在所述始发节点与邻居节点的链路状态发生更新时,向所述邻居节点发送链路通知进行链路信息同步,并更新所述链路状态表;在收到所述邻居节点发送的链路通知时,更新所述链路状态表;根据所述链路状态表,获取所述始发节点的路由信息。Configuring a link state table of the originating node; transmitting a probe message to a neighbor node of the originating node, establishing a link with the neighbor node, and updating the link state table; at the originating node and When the link state of the neighbor node is updated, sending a link notification to the neighbor node to perform link information synchronization, and updating the link state table; when receiving the link notification sent by the neighbor node, updating the The link state table is obtained; and the routing information of the originating node is obtained according to the link state table.
具体实施方式可参照上述本发明数据传输方法第三实施例。本实施例实现了通信系统中各节点之间无线链路的路由信息更新,使得通信系统链路低消耗、快收敛,极大地提升了数据传输效率。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Reference may be made to the third embodiment of the data transmission method of the present invention described above. In this embodiment, the routing information of the wireless link between the nodes in the communication system is updated, so that the communication system link has low consumption and fast convergence, and the data transmission efficiency is greatly improved.
进一步的,本发明数据传输装置第四实施例提供一种数据传输装置,基于上述本发明数据传输装置第一实施例、第二实施例或第三实施例,所述数据传输装置还包括:Further, the fourth embodiment of the data transmission apparatus of the present invention provides a data transmission apparatus. The data transmission apparatus further includes: based on the first embodiment, the second embodiment, or the third embodiment of the data transmission apparatus of the present invention.
控制模块60,用于根据所述各数据包的业务优先级,排列得到基于级别的数据包队列;依次取出所述数据包队列中的数据包,评估数据流量是否超过预设的标准。The control module 60 is configured to arrange the level-based data packet queue according to the service priority of each data packet; sequentially extract the data packet in the data packet queue, and evaluate whether the data traffic exceeds a preset standard.
具体实施方式可参照上述本发明数据传输方法第四实施例。本实施例通过数据流量控制,使有限的网络资源能够得到更好的利用,提高数据发送的整体效率。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Reference may be made to the fourth embodiment of the data transmission method of the present invention described above. In this embodiment, through limited data resources, limited network resources can be better utilized, and the overall efficiency of data transmission is improved.
进一步的,本发明数据传输装置第五实施例提供一种数据传输装置,基于上述本发明数据传输装置第一实施例、第二实施例、第三实施例或第四实施例,所述分配模块30,还用于,Further, the fifth embodiment of the data transmission apparatus of the present invention provides a data transmission apparatus, based on the first embodiment, the second embodiment, the third embodiment or the fourth embodiment of the data transmission apparatus of the present invention, the distribution module 30, also used,
根据所述各无线链路的链路质量,对所述各无线链路进行优先级排列;根据所述各数据包的业务优先级,和所述各无线链路的优先级,轮询为所述各数据包分配对应的无线链路。And prioritizing the radio links according to the link quality of each radio link; and polling according to the service priority of each data packet and the priority of each radio link Each data packet is assigned a corresponding wireless link.
具体实施方式可参照上述本发明数据传输方法第五实施例。本实施例通过无线链路的轮询分配,实现了两节点间同时多条链路并行发送数据,使业务流量在多条无线链路上负荷分担,充分利用了各链路资源,提高数据传输效率。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Referring to the fifth embodiment of the data transmission method of the present invention described above. In this embodiment, the polling distribution of the wireless link realizes that multiple links simultaneously transmit data in parallel between two nodes, so that service traffic is load-sharing on multiple wireless links, fully utilizing each link resource, and improving data transmission. effectiveness.
以上仅为本发明的可选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above is only an alternative embodiment of the present invention, and thus does not limit the scope of the invention, and the equivalent structure or equivalent process transformation made by using the specification and the drawings of the present invention, or directly or indirectly applied to other related technologies. The fields are all included in the scope of patent protection of the present invention.

Claims (14)

  1. 一种数据传输方法,其特征在于,所述数据传输方法包括以下步骤: A data transmission method, characterized in that the data transmission method comprises the following steps:
    接收始发节点中业务发起设备发送的各数据包,并获取所述各数据包的业务优先级和目的节点;Receiving each data packet sent by the service initiating device in the originating node, and acquiring a service priority and a destination node of each data packet;
    根据预先配置的所述始发节点的路由表,查找所述始发节点到达所述目的节点的各无线链路,并获取所述各无线链路的链路质量;Obtaining, according to the pre-configured routing table of the originating node, each radio link that the originating node reaches the destination node, and acquiring link quality of each radio link;
    根据所述各数据包的业务优先级和所述各无线链路的链路质量,为所述各数据包分配无线链路;Allocating a wireless link to each data packet according to a service priority of each data packet and a link quality of each wireless link;
    将所述各数据包分别通过分配的无线链路发送给所述目的节点。Each of the data packets is sent to the destination node through an allocated wireless link.
  2. 如权利要求1所述的数据传输方法,其特征在于,所述接收始发节点中业务发起设备发送的各数据包,并获取所述各数据包的业务优先级和目的节点的步骤之前,还包括:The data transmission method according to claim 1, wherein the step of receiving the data packets sent by the service initiating device in the originating node and acquiring the service priority and the destination node of each data packet is further include:
    根据预先配置的目的节点属性信息、无线子网连接关系和到达所述目的节点的无线子网路由信息,获取所述始发节点的路由信息;和/或,Obtaining routing information of the originating node according to the pre-configured destination node attribute information, the wireless subnet connection relationship, and the wireless subnet routing information that reaches the destination node; and/or,
    根据预先配置的目的节点属性信息和无线子网连接关系,以及无线子网上报的可达性信息,获取所述始发节点的路由信息;和/或,Obtaining routing information of the originating node according to the pre-configured destination node attribute information and the wireless subnet connection relationship, and the reachability information of the wireless subnet report; and/or,
    根据预先配置的路由协议,进行邻居节点探测和链路通知,获取所述始发节点的路由信息;Obtaining neighbor node detection and link notification according to a pre-configured routing protocol, and acquiring routing information of the originating node;
    根据成功得到的所述始发节点的路由信息生成所述始发节点的路由表。Generating a routing table of the originating node according to the successfully obtained routing information of the originating node.
  3. 如权利要求2所述的数据传输方法,其特征在于,所述根据预先配置的路由协议,进行邻居节点探测和链路通知,获取所述始发节点的路由信息的步骤包括:The data transmission method according to claim 2, wherein the step of performing neighbor node detection and link notification according to a pre-configured routing protocol, and obtaining routing information of the originating node comprises:
    配置所述始发节点的链路状态表;Configuring a link state table of the originating node;
    向所述始发节点的邻居节点发送探测消息,与所述邻居节点建立链路,并更新所述链路状态表;Sending a probe message to a neighbor node of the originating node, establishing a link with the neighbor node, and updating the link state table;
    在所述始发节点与邻居节点的链路状态发生更新时,向所述邻居节点发送链路通知进行链路信息同步,并更新所述链路状态表;When the link state of the originating node and the neighboring node is updated, sending a link notification to the neighboring node to perform link information synchronization, and updating the link state table;
    在收到所述邻居节点发送的链路通知时,更新所述链路状态表;Updating the link state table when receiving the link notification sent by the neighbor node;
    根据所述链路状态表,获取所述始发节点的路由信息。Obtaining routing information of the originating node according to the link state table.
  4. 如权利要求1所述的数据传输方法,其特征在于,所述根据预先配置的所述始发节点的路由表,查找所述始发节点到达所述目的节点的各无线链路,并获取所述各无线链路的链路质量的步骤之前,还包括:The data transmission method according to claim 1, wherein the searching for the wireless link of the originating node to the destination node according to a pre-configured routing table of the originating node, and acquiring the Before the step of describing the link quality of each wireless link, the method further includes:
    根据所述各数据包的业务优先级,排列得到基于级别的数据包队列;Arranging a level-based packet queue according to the service priority of each data packet;
    依次取出所述数据包队列中的数据包,评估数据流量是否超过预设的标准;若数据流量未超标,则转入执行步骤:根据预先配置的所述始发节点的路由表,查找所述始发节点到达所述目的节点的各无线链路,并获取所述各无线链路的链路质量。And sequentially extracting the data packet in the data packet queue, and evaluating whether the data traffic exceeds a preset criterion; if the data traffic does not exceed the standard, proceeding to the performing step: searching for the foregoing according to the pre-configured routing table of the originating node The originating node arrives at each radio link of the destination node and acquires the link quality of each radio link.
  5. 如权利要求1所述的数据传输方法,其特征在于,所述根据所述各数据包的业务优先级和所述各无线链路的链路质量,为所述各数据包分配无线链路的步骤包括:The data transmission method according to claim 1, wherein said assigning a wireless link to said each data packet according to a service priority of said each data packet and a link quality of said each wireless link The steps include:
    根据所述各无线链路的链路质量,对所述各无线链路进行优先级排列;And prioritizing the wireless links according to the link quality of each wireless link;
    根据所述各数据包的业务优先级,和所述各无线链路的优先级,轮询为所述各数据包分配对应的无线链路。And according to the service priority of each data packet and the priority of each radio link, the polling allocates a corresponding radio link to each data packet.
  6. 如权利要求3所述的数据传输方法,其特征在于,所述根据预先配置的所述始发节点的路由表,查找所述始发节点到达所述目的节点的各无线链路,并获取所述各无线链路的链路质量的步骤之前,还包括:The data transmission method according to claim 3, wherein the searching for the wireless link of the originating node to the destination node according to a pre-configured routing table of the originating node, and acquiring the Before the step of describing the link quality of each wireless link, the method further includes:
    根据所述各数据包的业务优先级,排列得到基于级别的数据包队列;Arranging a level-based packet queue according to the service priority of each data packet;
    依次取出所述数据包队列中的数据包,评估数据流量是否超过预设的标准;若数据流量未超标,则转入执行步骤:根据预先配置的所述始发节点的路由表,查找所述始发节点到达所述目的节点的各无线链路,并获取所述各无线链路的链路质量。And sequentially extracting the data packet in the data packet queue, and evaluating whether the data traffic exceeds a preset criterion; if the data traffic does not exceed the standard, proceeding to the performing step: searching for the foregoing according to the pre-configured routing table of the originating node The originating node arrives at each radio link of the destination node and acquires the link quality of each radio link.
  7. 如权利要求4所述的数据传输方法,其特征在于,所述根据所述各数据包的业务优先级和所述各无线链路的链路质量,为所述各数据包分配无线链路的步骤包括:The data transmission method according to claim 4, wherein said assigning a wireless link to said each data packet according to a service priority of said each data packet and a link quality of said each wireless link The steps include:
    根据所述各无线链路的链路质量,对所述各无线链路进行优先级排列;And prioritizing the wireless links according to the link quality of each wireless link;
    根据所述各数据包的业务优先级,和所述各无线链路的优先级,轮询为所述各数据包分配对应的无线链路。And according to the service priority of each data packet and the priority of each radio link, the polling allocates a corresponding radio link to each data packet.
  8. 一种数据传输装置,其特征在于,所述数据传输装置包括:A data transmission device, characterized in that the data transmission device comprises:
    接收模块,用于接收始发节点中业务发起设备发送的各数据包,并获取所述各数据包的业务优先级和目的节点;a receiving module, configured to receive each data packet sent by the service initiating device in the originating node, and obtain a service priority and a destination node of each data packet;
    查询模块,用于根据预先配置的所述始发节点的路由表,查找所述始发节点到达所述目的节点的各无线链路,并获取所述各无线链路的链路质量;a querying module, configured to search, according to a pre-configured routing table of the originating node, each radio link that the originating node reaches the destination node, and obtain link quality of each radio link;
    分配模块,用于根据所述各数据包的业务优先级和所述各无线链路的链路质量,为所述各数据包分配无线链路;An allocating module, configured to allocate a wireless link to each data packet according to a service priority of each data packet and a link quality of each wireless link;
    发送模块,用于将所述各数据包分别通过分配的无线链路发送给所述目的节点。And a sending module, configured to send each of the data packets to the destination node by using an allocated wireless link.
  9. 如权利要求8所述的数据传输装置,其特征在于,所述数据传输装置还包括:The data transmission device according to claim 8, wherein the data transmission device further comprises:
    配置模块,用于根据预先配置的目的节点属性信息、无线子网连接关系和到达所述目的节点的无线子网路由信息,获取所述始发节点的路由信息;根据预先配置的目的节点属性信息和无线子网连接关系,以及无线子网上报的可达性信息,获取所述始发节点的路由信息;根据预先配置的路由协议,进行邻居节点探测和链路通知,获取所述始发节点的路由信息;根据成功得到的所述始发节点的路由信息生成所述始发节点的路由表。a configuration module, configured to acquire routing information of the originating node according to pre-configured destination node attribute information, a wireless subnet connection relationship, and wireless subnet routing information that reaches the destination node; and according to the pre-configured destination node attribute information And the wireless sub-network connection relationship, and the reachability information of the wireless subnet report, obtaining routing information of the originating node; performing neighbor node detection and link notification according to a pre-configured routing protocol, acquiring the originating node Routing information; generating a routing table of the originating node according to the successfully obtained routing information of the originating node.
  10. 如权利要求9所述的数据传输装置,其特征在于,所述配置模块还用于,The data transmission device according to claim 9, wherein said configuration module is further configured to:
    配置所述始发节点的链路状态表;向所述始发节点的邻居节点发送探测消息,与所述邻居节点建立链路,并更新所述链路状态表;在所述始发节点与邻居节点的链路状态发生更新时,向所述邻居节点发送链路通知进行链路信息同步,并更新所述链路状态表;在收到所述邻居节点发送的链路通知时,更新所述链路状态表;根据所述链路状态表,获取所述始发节点的路由信息。Configuring a link state table of the originating node; transmitting a probe message to a neighbor node of the originating node, establishing a link with the neighbor node, and updating the link state table; at the originating node and When the link state of the neighbor node is updated, sending a link notification to the neighbor node to perform link information synchronization, and updating the link state table; when receiving the link notification sent by the neighbor node, updating the The link state table is obtained; and the routing information of the originating node is obtained according to the link state table.
  11. 如权利要求8所述的数据传输装置,其特征在于,所述数据传输装置还包括:The data transmission device according to claim 8, wherein the data transmission device further comprises:
    控制模块,用于根据所述各数据包的业务优先级,排列得到基于级别的数据包队列;依次取出所述数据包队列中的数据包,评估数据流量是否超过预设的标准。The control module is configured to: according to the service priority of each data packet, arrange a level-based data packet queue; sequentially extract the data packet in the data packet queue, and evaluate whether the data traffic exceeds a preset standard.
  12. 如权利要8所述的数据传输装置,其特征在于,所述分配模块,还用于,The data transmission device according to claim 8, wherein the allocation module is further configured to:
    根据所述各无线链路的链路质量,对所述各无线链路进行优先级排列;根据所述各数据包的业务优先级,和所述各无线链路的优先级,轮询为所述各数据包分配对应的无线链路。And prioritizing the radio links according to the link quality of each radio link; and polling according to the service priority of each data packet and the priority of each radio link Each data packet is assigned a corresponding wireless link.
  13. 如权利要求10所述的数据传输装置,其特征在于,所述数据传输装置还包括:The data transmission device of claim 10, wherein the data transmission device further comprises:
    控制模块,用于根据所述各数据包的业务优先级,排列得到基于级别的数据包队列;依次取出所述数据包队列中的数据包,评估数据流量是否超过预设的标准。The control module is configured to: according to the service priority of each data packet, arrange a level-based data packet queue; sequentially extract the data packet in the data packet queue, and evaluate whether the data traffic exceeds a preset standard.
  14. 如权利要求11所述的数据传输装置,其特征在于,所述分配模块,还用于,The data transmission device according to claim 11, wherein said distribution module is further configured to:
    根据所述各无线链路的链路质量,对所述各无线链路进行优先级排列;根据所述各数据包的业务优先级,和所述各无线链路的优先级,轮询为所述各数据包分配对应的无线链路。And prioritizing the radio links according to the link quality of each radio link; and polling according to the service priority of each data packet and the priority of each radio link Each data packet is assigned a corresponding wireless link.
PCT/CN2016/095494 2016-06-22 2016-08-16 Data transmission method and apparatus WO2017219476A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610460539.4A CN106160800A (en) 2016-06-22 2016-06-22 Data transmission method and device
CN201610460539.4 2016-06-22

Publications (1)

Publication Number Publication Date
WO2017219476A1 true WO2017219476A1 (en) 2017-12-28

Family

ID=57353629

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/095494 WO2017219476A1 (en) 2016-06-22 2016-08-16 Data transmission method and apparatus

Country Status (2)

Country Link
CN (1) CN106160800A (en)
WO (1) WO2017219476A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110502328A (en) * 2019-08-28 2019-11-26 嘉兴学院 A kind of credible cotasking moving method of sea edge calculations
CN111405531A (en) * 2020-03-26 2020-07-10 上海有个机器人有限公司 Method, medium, terminal and device for improving communication quality
CN113542268A (en) * 2021-07-14 2021-10-22 中能融合智慧科技有限公司 Method for obtaining single industrial control protocol flow based on network link
WO2022068911A1 (en) * 2020-09-30 2022-04-07 中国移动通信有限公司研究院 Data transmission method and apparatus, and device
CN114448903A (en) * 2020-10-20 2022-05-06 华为技术有限公司 Message processing method, device and communication equipment

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106487684B (en) * 2016-11-08 2019-05-10 中国电子科技集团公司第二十研究所 A kind of method for routing based on link-quality and queuing delay
CN108156642B (en) * 2016-12-02 2021-04-23 联芯科技有限公司 Method and system for coexistence of mobile network and WiFi network and mobile terminal
CN106789661B (en) * 2016-12-29 2019-10-11 北京邮电大学 A kind of information forwarding method and space information network system
CN108881014B (en) * 2017-05-12 2021-10-01 北京猎户星空科技有限公司 Data sending system and method
CN109842464B (en) * 2017-09-30 2022-07-01 西门子(中国)有限公司 Method, system and device for retransmitting data packet
CN108235063A (en) * 2017-12-04 2018-06-29 北京奇艺世纪科技有限公司 A kind of method for processing video frequency, device, electronic equipment and storage medium
CN111050353B (en) 2018-10-11 2021-12-03 华为技术有限公司 Data transmission method and device for wireless backhaul network
CN109495931B (en) * 2018-12-26 2022-06-17 Oppo广东移动通信有限公司 Data transmission method for link aggregation and related device
CN109995657B (en) * 2019-03-19 2021-06-08 新华三技术有限公司合肥分公司 Flow forwarding method and device
CN110113193A (en) * 2019-04-25 2019-08-09 上海腾焊智能科技有限公司 Data transmission method, system and medium based on hierarchical agent
CN110099371B (en) * 2019-05-07 2021-10-19 潍坊医学院附属医院 Eye use data monitoring method and eye nursing system
CN110311758A (en) * 2019-07-19 2019-10-08 北京清源新创科技有限公司 Data low latency transmission method, device and equipment and storage medium
CN110838977B (en) * 2019-11-13 2020-11-27 北京连山时代科技有限公司 Multi-path concurrent transmission method and system based on OSPF protocol
CN110932956B (en) * 2019-11-15 2020-08-18 北京连山时代科技有限公司 Method for networking by combining multi-path concurrent system and VPDN
CN112019440B (en) * 2020-07-27 2022-05-20 中国人民解放军海军工程大学 CAN bus multicast method based on identifier multiplexing
CN112188559B (en) * 2020-08-21 2022-12-23 浙江大学 Cross-layer load balancing method and device for self-organizing network of unmanned system
CN112637789B (en) * 2020-12-16 2021-12-28 上海微波技术研究所(中国电子科技集团公司第五十研究所) VHF and UHF section fusion intelligent ad hoc network method
CN114500404B (en) * 2022-01-25 2024-02-20 银清科技有限公司 Communication message transmission isolation method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1857012A (en) * 2003-09-09 2006-11-01 哈里公司 Load leveling in mobile ad-hoc networks to support end-to-end delay reduction, qos and energy leveling
WO2007018911A2 (en) * 2005-07-27 2007-02-15 Interdigital Technology Corporation Wireless communication method and apparatus for scheduling prioritized data for a plurality of mobile station users
CN103428028A (en) * 2013-07-31 2013-12-04 深圳市邦彦信息技术有限公司 Service quality maintenance method and system for heterogeneous network
CN104661260A (en) * 2015-01-20 2015-05-27 中南大学 Wireless Mesh intelligent power grid routing mechanism with QoS perceiving and loading balancing

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9113492B2 (en) * 2011-11-07 2015-08-18 Qualcomm Incorporated Method and apparatus for transmit priority determination within a link
CN103795645A (en) * 2012-10-29 2014-05-14 华为终端有限公司 Data transmission method, device and wireless router terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1857012A (en) * 2003-09-09 2006-11-01 哈里公司 Load leveling in mobile ad-hoc networks to support end-to-end delay reduction, qos and energy leveling
WO2007018911A2 (en) * 2005-07-27 2007-02-15 Interdigital Technology Corporation Wireless communication method and apparatus for scheduling prioritized data for a plurality of mobile station users
CN103428028A (en) * 2013-07-31 2013-12-04 深圳市邦彦信息技术有限公司 Service quality maintenance method and system for heterogeneous network
CN104661260A (en) * 2015-01-20 2015-05-27 中南大学 Wireless Mesh intelligent power grid routing mechanism with QoS perceiving and loading balancing

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110502328A (en) * 2019-08-28 2019-11-26 嘉兴学院 A kind of credible cotasking moving method of sea edge calculations
CN110502328B (en) * 2019-08-28 2022-11-15 嘉兴学院 Offshore edge computing trusted cooperative task migration method
CN111405531A (en) * 2020-03-26 2020-07-10 上海有个机器人有限公司 Method, medium, terminal and device for improving communication quality
WO2022068911A1 (en) * 2020-09-30 2022-04-07 中国移动通信有限公司研究院 Data transmission method and apparatus, and device
CN114448903A (en) * 2020-10-20 2022-05-06 华为技术有限公司 Message processing method, device and communication equipment
CN113542268A (en) * 2021-07-14 2021-10-22 中能融合智慧科技有限公司 Method for obtaining single industrial control protocol flow based on network link
CN113542268B (en) * 2021-07-14 2023-07-28 中能融合智慧科技有限公司 Method for obtaining single industrial control protocol flow based on network link

Also Published As

Publication number Publication date
CN106160800A (en) 2016-11-23

Similar Documents

Publication Publication Date Title
WO2017219476A1 (en) Data transmission method and apparatus
WO2021091225A1 (en) Method and device for providing service to user device by using network slice in communication system
WO2019194486A1 (en) Method and apparatus for discarding buffered data while keeping connection in cp-up separation
WO2018026169A1 (en) Method and apparatus for managing data communication in wireless communication network
WO2018110952A2 (en) Apparatus and method for controlling data flow in wireless communication system
US7864682B2 (en) Method for routing data in networks
WO2020226360A1 (en) Apparatus and method for supporting burst arrival time reference clock based on time-sensitive communication assistance information in wireless communication network
WO2020032769A1 (en) Method and device for managing network traffic in wireless communication system
WO2014163288A1 (en) Method for performing a logical channel prioritization and communication device thereof
WO2018221942A1 (en) Method for managing uplink quality of service and base station for performing same method
WO2015152659A1 (en) Method and apparatus for steering traffic between cellular network and wireless local area network (lan) network in mobile communication system
EP1754386A1 (en) Reducing cost of cellular backhaul
WO2021141335A1 (en) Apparatus and method for controlling network slice data rate in wireless communication system
WO2015030491A1 (en) Bandwidth providing method based on multi-flow grouping
WO2021157974A1 (en) Communication associated with multi-access pdu session
EP3738339A1 (en) Method for data offloading, method for drb identifier allocating, method for resource releasing, and device
WO2021091321A1 (en) Device and method for supporting quality of service in wireless communication system
US20230048117A1 (en) Traffic management technique for variable bandwidth networks using rsvp
US20050159167A1 (en) Data routing
WO2019160298A1 (en) Method for data offloading, method for drb identifier allocating, method for resource releasing, and device
WO2019132454A1 (en) Method and apparatus for controlling traffic of network device in wireless communication network
Niephaus et al. QoS-aware wireless back-haul network for rural areas in practice
WO2013082763A1 (en) State migration processing method and device
US8259742B2 (en) Hybrid channel assignment method and router thereof
KR100862723B1 (en) The IP topology management system using the IP topology auto discovery and a method

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: 16906016

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: 16906016

Country of ref document: EP

Kind code of ref document: A1