WO2024066637A1 - Data transmission method and device, and storage medium - Google Patents

Data transmission method and device, and storage medium Download PDF

Info

Publication number
WO2024066637A1
WO2024066637A1 PCT/CN2023/105400 CN2023105400W WO2024066637A1 WO 2024066637 A1 WO2024066637 A1 WO 2024066637A1 CN 2023105400 W CN2023105400 W CN 2023105400W WO 2024066637 A1 WO2024066637 A1 WO 2024066637A1
Authority
WO
WIPO (PCT)
Prior art keywords
path
transmission
data transmission
node
transmission path
Prior art date
Application number
PCT/CN2023/105400
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 WO2024066637A1 publication Critical patent/WO2024066637A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]

Definitions

  • the present application relates to the field of data communication technology, and in particular to a data transmission method, device and storage medium.
  • the path with the shortest transmission distance is often selected as the optimal path for single-path data transmission.
  • audio and video data has a larger data volume and longer transmission time among the data to be transmitted.
  • the intermediate nodes or links of the path are abnormal, it will cause the interruption or failure of audio and video data transmission.
  • the transmission path needs to be replanned and connected, and then the audio and video data needs to be transmitted again, resulting in low data transmission reliability.
  • the main purpose of the present application is to provide a data transmission method, device and storage medium, aiming to solve the technical problem of low reliability of existing data transmission.
  • the present application provides a data transmission method, comprising:
  • a target transmission path is determined in the preferred path set, and the sending device is enabled to perform data transmission based on the target transmission path.
  • the present application also provides a data transmission device, which includes: a memory, a processor, and a data transmission program stored in the memory and executable on the processor, wherein the data transmission program is configured to implement the above-mentioned data transmission method.
  • the present application also provides a storage medium, which is a computer-readable storage medium.
  • a data transmission program is stored on the computer-readable storage medium.
  • the data transmission program is executed by a processor to implement the above-mentioned data transmission method.
  • FIG1 is a schematic diagram of the structure of a data transmission device in a hardware operating environment according to an embodiment of the present application
  • FIG2 is a flow chart of an embodiment of a data transmission method according to an embodiment of the present application.
  • FIG3 is a schematic diagram of a detailed flow chart of an embodiment of step S20 in FIG2 ;
  • FIG4 is a schematic diagram of a scenario of an implementation of a data transmission method according to an embodiment of the present application.
  • FIG5 is a schematic diagram of a detailed flow chart of an embodiment of step S30 in FIG2 ;
  • FIG6 is a schematic diagram of a scenario of another implementation of the data transmission method involved in an embodiment of the present application.
  • Figure 1 is a schematic diagram of the data transmission device structure of the hardware operating environment involved in the embodiment of the present application.
  • the data transmission device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005.
  • the communication bus 1002 is used to realize the connection and communication between these components.
  • the user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the user interface 1003 may also include a standard wired interface and a wireless interface.
  • the network interface 1004 may include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, WI-FI) interface).
  • the memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory.
  • RAM Random Access Memory
  • NVM Non-Volatile Memory
  • the memory 1005 may also be a storage device independent of the aforementioned processor 1001.
  • FIG. 1 does not constitute a limitation on the data transmission device, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
  • the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module, and a data transmission program.
  • the network interface 1004 is mainly used for data communication with other devices;
  • the user interface 1003 is mainly used for data interaction with the user;
  • the processor 1001 and the memory 1005 in the data transmission device of the present application can be set in the data transmission device, and the data transmission device calls the data transmission program stored in the memory 1005 through the processor 1001, and performs the following operations:
  • a target transmission path is determined in the preferred path set, and the sending device is enabled to perform data transmission based on the target transmission path.
  • determining the preferred path set from the start node to the end node according to the preset path algorithm and the data transmission request includes:
  • the shortest transmission path is offset to generate a candidate path set, and k transmission paths are selected from the candidate path set and merged to form the preferred path set, where k is an integer greater than one.
  • the step of offsetting the shortest transmission path and generating a set of candidate paths includes:
  • a deviation node in the shortest transmission path is determined, and a first deviation path from the deviation node to the terminal node is generated;
  • the first deviated path is concatenated with the path from the starting node to the deviated node to form a second deviated path, and the second deviated paths are merged into the set of candidate paths.
  • selecting k transmission paths from the candidate path set and merging them as the preferred path set includes:
  • the discrete value of each of the path combinations is determined, and the path combination with the highest discrete value is used as the preferred path set.
  • monitoring the path status of the transmission path in the preferred path set includes:
  • the paths are sorted from small to large according to their distances to generate a sorted preferred path set, and each transmission path in the sorted preferred path set is monitored one by one.
  • monitoring the path status of the transmission path in the preferred path set further includes:
  • the processor 1001 may call the data transmission program stored in the memory 1005, and further perform the following operations:
  • the path status includes an abnormal state and a normal state. After monitoring the path status of the transmission path in the preferred path set, the method further includes:
  • the path state is a transmission path in an abnormal state, switching the transmission path;
  • the transmission path is not switched, and the transmission path in the normal state continues to be monitored.
  • determining a target transmission path in the preferred path set according to the path state, and causing the sending device to perform data transmission based on the target transmission path includes:
  • the transmission path selected from the preferred path set and having the path status being normal for the first time is used as the target transmission path;
  • the target transmission path is sent to the sending device, so that the sending device performs data transmission based on the target transmission path.
  • the data transmission method includes:
  • Step S10 receiving a data transmission request sent by a sending device, wherein the data transmission request includes a start node and an end node of the data transmission.
  • the executor of the data transmission method is a data transmission device.
  • the data transmission device may be a network device.
  • the network device may be connected to a sending device through, but not limited to, the Internet, a local area network, or a physical connection, thereby receiving a data transmission request sent by the sending device, and extracting the starting node and the ending node in the data transmission request, thereby determining the data receiving device, and further determining a preferred path set including the starting node and the ending node, so that the sending device performs data transmission based on the transmission path in the preferred path set.
  • the network device can be a traditional server or a cloud server, etc., and there is no limitation here.
  • the sending device is a terminal that can connect to the Internet, such as a mobile phone, a laptop computer, a desktop computer, or a smart bracelet.
  • the sending device and the network device are connected through, but not limited to, the Internet, a local area network, or a physical connection.
  • a node is a connection point, which represents a redistribution point or a communication endpoint in the data transmission process.
  • the node includes a starting node, an ending node, an intermediate node, etc.
  • the starting node corresponds to a sending device
  • the ending node corresponds to a receiving device
  • the intermediate node is other nodes in the transmission path except the starting node and the ending node.
  • the receiving device is a terminal that can connect to the Internet, such as a mobile phone, laptop computer, desktop computer, smart bracelet.
  • the receiving device is connected to the network device and the sending device through but not limited to the Internet, local area network, and physical connection, and receives the data sent by the sending device based on the transmission path and sends its own heartbeat message.
  • a path set refers to a whole composed of one or more transmission paths.
  • the path set includes a preferred path set, an alternative path set, a path combination, etc.
  • Step S20 determining a preferred path set from the start node to the end node according to a preset path algorithm and the data transmission request, wherein the preferred path set contains at least one transmission path.
  • the network device extracts the starting node and the ending node in the data transmission request, and determines the shortest transmission path from the starting node to the ending node according to a preset path algorithm, and then offsets the shortest transmission path according to a preset Yen algorithm and generates a set of alternative paths, thereby planning multiple transmission paths from the starting node to the ending node, providing multiple transmission paths for data transmission, and further improving the reliability of data transmission, and then multiple times selecting k non-completely identical transmission paths from the alternative path set to merge into multiple path combinations, calculating the discrete value of each of the path combinations, and taking the path combination with the highest discrete value as the preferred path set.
  • a path algorithm refers to a method for generating a path that meets the requirements by traversing each node in the network from the starting node to the ending node position according to the requirements.
  • the path algorithm includes but is not limited to the Dijkstra algorithm, Bellman-Ford algorithm, SPFA algorithm, Yen algorithm, etc.
  • the Yen algorithm refers to a method of offsetting the shortest transmission path from the starting node to the ending node to obtain other transmission paths from the starting node to the ending node in sequence; when calculating, all nodes except the ending node are regarded as deviation nodes, and the first deviation path from each deviation node to the ending node is calculated, and the first deviation path does not overlap with the existing transmission path, and then the transmission path from the starting node to the deviation node is calculated.
  • the path away from the node is concatenated with the first deviated path to obtain n second deviated paths, where n is an integer greater than one.
  • a transmission path refers to the entire distance from a starting node to an ending node, and the transmission path includes at least one link; in some embodiments of the present application, the transmission path includes a shortest transmission path, a first deviation path, a second deviation path, a target transmission path, etc.; a link refers to a connection line from one node to another.
  • the first deviation path is the shortest transmission path from the deviation node to the termination node, and the path does not overlap with the existing path;
  • the second deviation path is a transmission path obtained by splicing the path from the starting node to the deviation node and the first deviation path.
  • the path combination refers to a combination of k (k is less than or equal to n) transmission paths selected from the candidate path set containing n transmission paths.
  • the discrete value refers to the degree of deviation of each transmission path in the path combination. Two transmission paths are randomly selected from the path combination for node comparison to obtain the difference between the transmission paths. The total difference value obtained by adding up all the differences is the discrete value of the path combination.
  • Step S30 monitoring the path status of the transmission paths in the preferred path set.
  • the heartbeat message sent by the terminating node of each of the transmission paths is monitored at preset period intervals to determine the path status of the transmission path; if the heartbeat message is received, indicating that the link connection between the nodes in the transmission path is normal and data can be effectively transmitted, the path status of the transmission path is determined to be normal, so that the sending device transmits data based on the transmission path and continues to monitor the transmission path in the normal state; if the heartbeat message is not received, indicating that there are abnormal nodes or abnormal links in the transmission path and data transmission cannot be performed, the path status of the transmission path is determined to be abnormal, and the transmission path is switched until a transmission path in the normal state is monitored.
  • the preset cycle duration can be preset based on the big data statistical analysis results, or determined based on actual conditions. This embodiment does not impose any restrictions on this. For example, the preset cycle duration is small enough to basically achieve real-time monitoring of the path status of the transmission path, thereby further improving the reliability of data transmission.
  • the heartbeat message is a technical signal that is sent continuously in a cycle of 0-15.
  • the network device or the sending device determines the path status of the transmission path by monitoring the heartbeat message sent by the termination node at intervals of a preset period based on the transmission path.
  • Step S40 determining a target transmission path in the preferred path set according to the path status, and enabling the sending device to perform data transmission based on the target transmission path.
  • the network device monitors each transmission path one by one according to the order of each transmission path in the preferred path set. If the transmission path whose path status is selected for the first time is in a normal state, indicating that the link connection between the nodes in the transmission path is normal and data can be effectively transmitted, the transmission path is used as the target transmission path, and then the target transmission path is sent to the sending device, so that the sending device transmits data with the receiving device based on the target transmission path.
  • the data transmission request includes a starting node and an ending node of the data transmission, thereby determining the starting node and the ending node of the transmission path, and then determining a preferred path set from the starting node to the ending node according to a preset path algorithm and the data transmission request, wherein the preferred path set contains at least one transmission path, thereby realizing the establishment of multiple transmission paths from the starting node to the ending node, realizing the provision of multiple reliable transmission paths for data transmission, and avoiding the occurrence of data transmission failure due to a single path abnormality, and then monitoring the path status of the transmission paths in the preferred path set, realizing real-time monitoring of the path status of the transmission paths, and then determining a target transmission path in the preferred path set according to the path status, and causing the sending device to perform data transmission based on the target transmission path; through a preset path algorithm, multiple transmission paths are established between the starting node and the ending node, thereby avoiding the failure of
  • the determining, according to a preset path algorithm and the data transmission request, a preferred path set from the start node to the end node includes:
  • Step S21 extracting the start node and the end node in the data transmission request.
  • the sending device corresponds to the starting node A
  • the receiving device corresponds to the ending node F
  • B, C, D, and E are intermediate nodes, and all nodes are stored in the network device; any two nodes constitute a link, and the numbers between the nodes represent the weights of each link, that is, the link length.
  • the weight of the A-D link is 3, that is, the length of the A-D link is 3, and a transmission path contains one or more links;
  • the shortest transmission path for transmitting data from the starting node A to the ending node F is A-F with a weight of 1.
  • a new transmission path can also be generated through any node of B, C, D, and E.
  • the sending device sends a data transmission request to the network device, the network device receives the data transmission request, and extracts the start node A and the end node F in the data transmission request.
  • Step S22 determining the shortest transmission path from the starting node to the ending node according to a preset path algorithm.
  • the network device obtains all transmission paths from the starting node to the ending node according to a preset path algorithm, and calculates the weight of each transmission path, thereby obtaining the transmission path with the smallest weight, that is, the shortest transmission path.
  • the sending device sends a data transmission request
  • the network device receives the data transmission request, and extracts the starting node A and the ending node F in the data transmission request.
  • the network device obtains all transmission paths from the starting node A to the ending node F according to the Dijkstra algorithm, and then calculates the weight of each transmission path, where the weight of the transmission path A-F is 1, which is the shortest transmission path.
  • Step S23 offset the shortest transmission path and generate a candidate path set, select k transmission paths from the candidate path set and merge them to form the preferred path set, where k is an integer greater than one.
  • the network device offsets the shortest transmission path according to a preset Yen calculation to obtain a set of alternative paths, and selects k non-completely identical transmission paths from the set of alternative paths multiple times, merges the k transmission paths selected each time into a path combination, and calculates the discrete value of each path combination, and uses the path combination with the highest discrete value as the preferred path set, so that the difference between the transmission paths in the preferred path set is increased, avoiding the abnormality of most transmission paths in the path set due to a single node failure, providing multiple reliable transmission paths for data transmission, and further improving the reliability of data transmission.
  • the network device determines the nodes that must be included in the transmission path by extracting the starting node and the ending node in the data transmission request, and then calculates and determines the shortest transmission path including the starting node and the ending node according to a preset path algorithm, providing a transmission path with the shortest transmission distance and the least transmission time for data transmission, and then offsets the shortest transmission path and generates an alternative path set according to a preset Yen algorithm, selects k non-completely identical transmission paths from the alternative path set multiple times, merges the k transmission paths selected each time into a path combination, and then calculates the discrete value of each path combination, and uses the path combination with the highest discrete value as the preferred path set, so that the difference between the transmission paths in the preferred path set is increased, avoiding the abnormality of most transmission paths in the path set due to a single node failure, providing multiple reliable transmission paths for data transmission, and further improving the reliability of data transmission.
  • the step S23 offsets the shortest transmission path and generates a set of candidate paths, and selects k transmission paths from the set of candidate paths to be merged as the set of preferred paths, where k is an integer greater than one and includes:
  • Step S231 Determine a deviation node in the shortest transmission path according to a preset Yen algorithm, and generate a first deviation path from the deviation node to the terminal node.
  • the network device determines a deviation node in the shortest transmission path according to a preset Yen algorithm, wherein the deviation node may be all nodes except the terminating node, and calculates the shortest path from the deviation node to the terminating node except the existing transmission path as the first deviation path.
  • the starting node is A
  • the ending node is F
  • the shortest transmission path obtained according to the Dijkstra algorithm is A-F.
  • the network device uses the preset Yen algorithm to take node A as the offset point, and the shortest path from the deviated node A to the ending node F except the existing path A-F is: A-B-C-F, that is, the deviated path from node A; point B is taken as the deviation point, and the shortest transmission path from B to F is obtained according to the Yen algorithm (which does not overlap with the known transmission path A-B-C-F): B-E-F, that is, the deviated path from node B, and the above steps are repeated to obtain the deviated paths of all deviated nodes.
  • Step S232 concatenate the first deviated path with the path from the starting node to the deviated node to form a second deviated path, and merge the second deviated paths into the set of candidate paths.
  • the starting node is A
  • the ending node is F
  • the shortest transmission path AF is obtained according to the Yen algorithm
  • the first deviation path that deviates from the node B is: BEF
  • BEF is spliced with the path AB from the starting node A to the deviation node B to obtain the second deviation path: ABEF
  • repeat the above steps merge all the obtained second deviation paths to form the alternative path set.
  • the deviation node in the shortest transmission path is determined, and the first deviation path from the deviation node to the termination node is calculated, and then the deviation path is spliced with the path from the starting node to the deviation node to form a second deviation path, and each of the second deviation paths is merged to form the alternative path set.
  • Step S233 Select k transmission paths that are not completely the same from the candidate path set multiple times, and merge the k transmission paths selected each time into a path combination.
  • the set of alternative paths includes n transmission paths
  • the network device selects k (k is less than or equal to n) non-completely identical transmission paths from the n transmission paths multiple times according to the combination number formula, and merges the k transmission paths selected each time into a path combination, and the number of combinations of the path combinations is C(n, k).
  • the formula for the number of combinations means that taking k (k is less than or equal to n) elements from n different elements and forming a group is called a combination of k elements from n different elements; the number of all combinations of taking k (k is less than or equal to n) elements from n different elements is called the number of combinations of k elements from n different elements. It is represented by the symbol C(n, k).
  • Step S234 determine the discrete value of each path combination, and use the path combination with the highest discrete value as the preferred path set.
  • the network device arbitrarily selects two transmission paths from the path combination for node comparison, and then obtains the difference between the two transmission paths.
  • the total difference value obtained by adding up all the differences is the discrete value of the path combination, and the path combination with the highest discrete value is used as the preferred path set.
  • the starting node is A
  • the ending node is F
  • path combination 1 is (A-F, A-B-F, A-C-F)
  • path combination 2 is (A-F, A-B-D-F, A-C-E-F).
  • the nodes of any two transmission paths of transmission paths A-F, A-B-F, and A-C-F in path combination 1 are compared, and then the difference between the two transmission paths A-F and A-B-F is 1, the difference between A-F and A-C-F is 1, and the difference between A-B-F and A-C-F is 1.
  • the discrete value of path combination 1 is 3 when the differences are added.
  • the discrete value of path combination 2 is 6 when calculated.
  • the discrete value of path combination 2 is greater than the discrete value of path combination 1, and path combination 2 is used as the preferred path set.
  • k non-completely identical transmission paths are selected multiple times from the alternative path set, and the k transmission paths selected each time are merged into a path combination, and then the discrete value of the path combination is calculated, and the path combination with the highest discrete value is used as the preferred path set, so that the difference between the transmission paths in the preferred path set is increased, and the situation where the failure of other multiple transmission paths caused by the abnormality of a single intermediate node is avoided, and multiple effective and highly differentiated transmission paths are provided for data transmission between the sending device and the receiving device, thereby further improving the reliability of data transmission.
  • monitoring the path status of the transmission path in the preferred path set includes:
  • Step S31 determining the path distance of each transmission path in the preferred path set.
  • the network device calculates the weight value of each transmission path in the preferred path set to obtain the path distance of each transmission path.
  • the starting node is A
  • the ending node is F
  • the path distance of the transmission path A-B-C-F is 2+1+1, that is, 4
  • the path distance of the transmission path A-D-C-F is 3+4+1, that is, 8.
  • the path distances of other transmission paths from A to F can be obtained.
  • Step S32 sorting the paths from small to large according to the path distances to generate a sorted preferred path set, and monitoring each transmission path in the sorted preferred path set one by one.
  • the network device sorts each transmission path in the preferred path set according to the path distance of each transmission path, generates a preferred path set with the path distance sorted from small to large, and monitors each transmission path in the preferred path set one by one according to the sorting, and then determines the target transmission path from the preferred path set for data transmission according to the monitoring results.
  • the network device calculates the path distance of each transmission path in the preferred path set, and sorts the transmission paths in the preferred path set from small to large according to the calculation results of the path distance, thereby generating a sorted preferred path set, and monitors each transmission path in the sorted preferred path set one by one according to the order, so that the path distance of the target transmission path is as short as possible, thereby reducing the data transmission time and improving the data transmission efficiency.
  • Step S33 monitoring the heartbeat messages sent by the terminating nodes of each of the transmission paths at intervals of a preset period.
  • the network device receives the termination information of each transmission path in the preferred path set at intervals of a preset period of time.
  • the node receives the heartbeat message sent by the node, thereby determining the path status of each transmission path according to the reception status of the heartbeat message.
  • the network device sends the transmission paths to the receiving device one by one according to the order of the transmission paths in the preferred path set, so that the receiving device sends a heartbeat message based on the transmission path, thereby determining the path status of the transmission path according to the reception status of the heartbeat message.
  • the network device sends the transmission paths to the sending device one by one according to the order of the transmission paths in the preferred path set, so that the sending device sends path information to the receiving device based on the transmission paths, wherein the path information encapsulates all the nodes of the transmission path, and the receiving device receives and saves the path information, thereby enabling the receiving device to send a heartbeat message to the sending device at preset period intervals based on the transmission path, and the sending device determines the path status of the transmission path based on the heartbeat message.
  • Step S34 If the heartbeat message is received, it is determined that the path state of the transmission path is normal.
  • the network device if the network device receives the heartbeat message at intervals of a preset period, it indicates that the nodes in the transmission path or the links between the nodes are connected normally and data can be effectively transmitted. Then, the path state of the transmission path is determined to be normal, and the sending device transmits data based on the transmission path, and continues to monitor the path state of the transmission path during data transmission.
  • Step S35 If the heartbeat message is not received, it is determined that the path state of the transmission path is an abnormal state.
  • the network device if the network device does not receive the heartbeat message, it indicates that there are abnormal nodes or abnormal links in the transmission path and data transmission is impossible. Then, the path state of the transmission path is determined to be an abnormal state, and the transmission path is switched to another transmission path in the preferred path set. The path state of the other transmission path is monitored to ensure that the transmission path connection is normal.
  • the failure to receive the heartbeat message may be the failure to receive a periodic message or the receipt of an erroneous periodic message, and this embodiment does not limit this.
  • A is the starting node
  • F is the terminating node
  • B, C, D, and E are intermediate nodes
  • the numbers between the nodes represent the transmission path identifier.
  • Transmission path 1 is A-B-C-F
  • transmission path 2 is A-D-E-F.
  • the order of transmission path 1 is 1, and the order of transmission path 2 is 2.
  • the order of transmission path 1 precedes that of transmission path 2.
  • the direction of the arrow indicates the next node to which the data to be transmitted or the heartbeat message to be sent arrives during the data transmission process or the heartbeat message sending process; the network device receives the heartbeat message sent by the terminating node F based on the transmission path 1. If the link between the C-F nodes in the transmission path 1 is abnormal, the network device cannot receive the heartbeat message sent by the terminating node, then it is determined that the path state of the transmission path 1 is an abnormal state, and the transmission path 1 is switched to the alternative transmission path 2, and the path state of the transmission path 2 is monitored.
  • the network device monitors the heartbeat message sent by the terminating node of each of the transmission paths at a preset period interval, so as to determine and monitor the path status of the transmission path in real time; if the heartbeat message is received, it is determined that the path status of the transmission path is normal, so that the sending device performs data transmission based on the transmission path; if the heartbeat message is not received, it indicates that there is an abnormal node or abnormal link in the transmission path and data transmission cannot be performed, so the path status of the transmission path is determined to be abnormal, and the transmission path is switched to another transmission path in the preferred path set, and the path status of the other transmission path is monitored again, so as to ensure that the connection of the transmission path is normal, avoid the failure of data transmission due to the abnormality of a single transmission path, and if the transmission path is detected to be abnormal, the transmission path is switched immediately to ensure the continuous data transmission between user devices and further improve the reliability of data transmission.
  • Step S36 If it is detected that the path state is an abnormal transmission path, the transmission path is switched.
  • the network device monitors each transmission path one by one according to the order of each transmission path in the preferred path set. If a transmission path with an abnormal path status is detected, indicating that there is a node abnormality or a link abnormality in the transmission path and data transmission is impossible, the transmission path is switched to another transmission path in the preferred path set.
  • the network device sends each transmission path in the preferred path set to the sending device one by one according to the order of the transmission paths in the preferred path set, and the sending device receives the heartbeat message sent by the terminating node based on each transmission path, and then determines the path state of the transmission path. If any node or link of the transmission path is abnormal, the sending device will not be able to receive the heartbeat message within a preset cycle time. After the waiting time exceeds the preset cycle time, the sending device switches the transmission path to another transmission path in the preferred path set, and determines the path state of the other transmission path.
  • Step S37 if the path status is monitored to be a transmission path in a normal state, the transmission path is not switched, and the transmission path in the normal state continues to be monitored.
  • the network device monitors each transmission path in the preferred path set one by one according to the order of each transmission path. If the transmission path whose path status is normal is detected, indicating that the transmission path can effectively transmit data, the transmission path is not switched, and the transmission path is continued. Continue to monitor the transmission path to ensure smooth data transmission.
  • the network device monitors the heartbeat message sent by the termination node of each transmission path at a preset period interval, and then monitors each transmission path in the preferred path set one by one, and through the combination of the difference of the transmission path and the path distance, the user device transmits data based on a reliable transmission path with the shortest path distance, thereby providing a plurality of effective and fast transmission paths for the sending device; if a transmission path with an abnormal path status is detected, indicating that there is a node abnormality or a link abnormality in the transmission path and data transmission cannot be performed, the transmission path is switched to another transmission path according to the sorting, so as to ensure smooth data transmission, avoid the sending device repeatedly initiating connection requests to the receiving device and then re-planning the transmission path, and improve the efficiency of data transmission; if a transmission path with a normal path status is detected, indicating that the transmission path can effectively transmit data, the transmission path switching is not executed, and the transmission path continues to be monitored, so as to ensure smooth data transmission and further improve the reliability of
  • Step S38 taking the transmission path selected from the preferred path set and having the path status being normal for the first time as the target transmission path.
  • the network device monitors each transmission path in the sorted preferred path set one by one. If it is determined that the path status of the first selected transmission path is normal, it indicates that the nodes or link connections between nodes in the transmission path are normal, and data can be effectively transmitted. In addition, the transmission distance is shorter than other transmission paths in the preferred path set, and the data transmission takes less time. Then, the transmission path whose path status is normal for the first time is selected as the target transmission path for the sending device to transmit data.
  • Step S39 sending the target transmission path to the sending device, so that the sending device performs data transmission based on the target transmission path.
  • the network device sends the target transmission path to the sending device, and the sending device transmits data to the receiving device based on the target transmission path; the path information of the transmission path is carried in the data to be transmitted, so that each intermediate node in the transmission path can determine the next intermediate node address after receiving the data to be transmitted, and forward the data, and stop forwarding when the data reaches the termination node.
  • A is the starting node
  • F is the terminating node
  • transmission path 1 is A-B-C-F
  • transmission path 2 is A-D-E-F
  • the order of transmission path 1 is 1
  • the order of transmission path 2 is 2
  • the order of transmission path 1 is prior to transmission path 2.
  • the network device receives a heartbeat message sent by the terminating node F based on transmission path 1, the transmission path 1 is used as the target transmission path, and the target transmission path 1 is sent to the sending device, so that the sending device performs data transmission based on the target transmission path; during data transmission, the network device continues to monitor the path status of the transmission path 1.
  • the network device If an abnormality suddenly occurs in the link between the C-F nodes in the transmission path 1, and the network device cannot receive the heartbeat message sent by the terminating node based on the transmission path 1, then it is determined that the path status of the transmission path 1 is an abnormal state, and the transmission path 1 is immediately switched to the transmission path 2 to continue data transmission between devices.
  • the sending device after the sending device receives another transmission path sent by the network device, it can automatically switch the current transmission path to the another transmission path, and perform data transmission based on the another transmission path.
  • the path status of the transmission path is determined, real-time monitoring of the transmission path is achieved, and the reliability of data transmission is improved.
  • the transmission path whose path status is normal for the first time selected from the preferred path set is used as the target transmission path, and the information of the target transmission path is sent to the sending device, so that the sending device transmits data to the receiving device based on the target transmission path, thereby providing the sending device with a short and reliable transmission path, and continuing to monitor the path status of the transmission path in real time during data transmission, so as to quickly perceive the abnormal state of the path.
  • the transmission path is switched to an alternative transmission path, and data transmission between the sending device and the receiving device is continued, thereby avoiding the interruption or failure of data transmission between devices due to the abnormality of a single transmission path, and further improving the reliability of data transmission.
  • the technical solution of the present application can essentially or the part that contributes to the prior art can be embodied in the form of a software product.
  • the computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) as described above, and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present application.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present application discloses a data transmission method and device, and a storage medium. The data transmission method comprises: receiving a data transmission request sent by a sending device, wherein the data transmission request comprises a starting node and an ending node of data transmission; according to a preset path algorithm and the data transmission request, determining a set of preferred paths from the starting node to the ending node, wherein the set of preferred paths comprises at least one transmission path; monitoring the path state of transmission paths in the set of preferred paths; and according to the path state, determining a target transmission path from the set of preferred paths, and enabling the sending device to perform data transmission on the basis of the target transmission path.

Description

数据传输方法、设备及存储介质Data transmission method, device and storage medium
相关申请Related Applications
本申请要求于2022年9月30日申请的、申请号为202211209217.4的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to Chinese patent application No. 202211209217.4 filed on September 30, 2022, the entire contents of which are incorporated by reference into this application.
技术领域Technical Field
本申请涉及数据通信技术领域,尤其涉及一种数据传输方法、设备及存储介质。The present application relates to the field of data communication technology, and in particular to a data transmission method, device and storage medium.
背景技术Background technique
随着数据通信技术的发展,数据通信技术的应用已经遍及世界的各个角落,渗透进人们生活、生产的方方面面。网络作为数据通信技术应用的基石,早已在企业、学校、政府机关与个人之间普及开来,成为数据传输的基本工具,而其中路径的规划和选择对于网络传输有着极其重要的影响。With the development of data communication technology, its application has spread to every corner of the world and penetrated into all aspects of people's lives and production. As the cornerstone of data communication technology application, the network has long been popularized among enterprises, schools, government agencies and individuals, becoming a basic tool for data transmission, and the planning and selection of paths have an extremely important impact on network transmission.
在常规的数据传输网络中,多选择传输距离最短的路径作为最优路径进行单路径数据传输。而在待传输数据中,音视频数据相较于其他类型数据,其数据量较大,传输时间长,当使用常规的单路径进行数据传输时,若路径的中间节点异常或链路异常,则会导致音视频数据传输的中断或失败,需重新规划传输路径并连接,再重新对音视频数据进行传输,造成数据传输可靠性低。In conventional data transmission networks, the path with the shortest transmission distance is often selected as the optimal path for single-path data transmission. Compared with other types of data, audio and video data has a larger data volume and longer transmission time among the data to be transmitted. When using a conventional single path for data transmission, if the intermediate nodes or links of the path are abnormal, it will cause the interruption or failure of audio and video data transmission. The transmission path needs to be replanned and connected, and then the audio and video data needs to be transmitted again, resulting in low data transmission reliability.
上述内容仅用于辅助理解本申请的技术方案,并不代表承认上述内容是现有技术。The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art.
发明内容Summary of the invention
本申请的主要目的在于提供一种数据传输方法、设备及存储介质,旨在解决现有数据传输可靠性低的技术问题。The main purpose of the present application is to provide a data transmission method, device and storage medium, aiming to solve the technical problem of low reliability of existing data transmission.
为实现上述目的,本申请提供一种数据传输方法,包括:To achieve the above object, the present application provides a data transmission method, comprising:
接收发送设备发送的数据传输请求,其中,所述数据传输请求中包含数据传输的起始节点和终止节点;Receiving a data transmission request sent by a sending device, wherein the data transmission request includes a starting node and an ending node of the data transmission;
根据预设的路径算法和所述数据传输请求,确定自所述起始节点至所述终止节点的首选路径集合,其中,所述首选路径集合中含有至少一条传输路径;Determine a preferred path set from the start node to the end node according to a preset path algorithm and the data transmission request, wherein the preferred path set contains at least one transmission path;
监测所述首选路径集合中传输路径的路径状态;Monitoring the path status of the transmission paths in the preferred path set;
根据所述路径状态,在所述首选路径集合中确定目标传输路径,并使所述发送设备基于所述目标传输路径进行数据传输。According to the path status, a target transmission path is determined in the preferred path set, and the sending device is enabled to perform data transmission based on the target transmission path.
本申请还提供一种数据传输设备,所述数据传输设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的数据传输程序,所述数据传输程序配置为实现上述的数据传输方法。The present application also provides a data transmission device, which includes: a memory, a processor, and a data transmission program stored in the memory and executable on the processor, wherein the data transmission program is configured to implement the above-mentioned data transmission method.
本申请还提供一种存储介质,所述存储介质为计算机可读存储介质,所述计算机可读存储介质上存储有数据传输程序,所述数据传输程序被处理器执行以实现上述的数据传输方法。The present application also provides a storage medium, which is a computer-readable storage medium. A data transmission program is stored on the computer-readable storage medium. The data transmission program is executed by a processor to implement the above-mentioned data transmission method.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是本申请实施例方案涉及的硬件运行环境的数据传输设备的结构示意图;FIG1 is a schematic diagram of the structure of a data transmission device in a hardware operating environment according to an embodiment of the present application;
图2为本申请实施例方案涉及的数据传输方法一实施例的流程示意图;FIG2 is a flow chart of an embodiment of a data transmission method according to an embodiment of the present application;
图3为图2中步骤S20一实施例的细化流程示意图;FIG3 is a schematic diagram of a detailed flow chart of an embodiment of step S20 in FIG2 ;
图4为本申请实施例涉及的数据传输方法的一种实现方式的场景示意图;FIG4 is a schematic diagram of a scenario of an implementation of a data transmission method according to an embodiment of the present application;
图5为图2中步骤S30一实施例的细化流程示意图;FIG5 is a schematic diagram of a detailed flow chart of an embodiment of step S30 in FIG2 ;
图6为本申请实施例涉及的数据传输方法的另一种实现方式的场景示意图。FIG6 is a schematic diagram of a scenario of another implementation of the data transmission method involved in an embodiment of the present application.
本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。 The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
参照图1,图1为本申请实施例方案涉及的硬件运行环境的数据传输设备结构示意图。Refer to Figure 1, which is a schematic diagram of the data transmission device structure of the hardware operating environment involved in the embodiment of the present application.
如图1所示,该数据传输设备可以包括:处理器1001,例如中央处理器(Central Processing Unit,CPU),通信总线1002、用户接口1003,网络接口1004,存储器1005。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可以包括标准的有线接口、无线接口(如无线保真(Wireless-Fidelity,WI-FI)接口)。存储器1005可以是高速的随机存取存储器(Random Access Memory,RAM)存储器,也可以是稳定的非易失性存储器(Non-Volatile Memory,NVM),例如磁盘存储器。存储器1005还可以是独立于前述处理器1001的存储装置。As shown in FIG1 , the data transmission device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, WI-FI) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
本领域技术人员可以理解,图1中示出的结构并不构成对数据传输设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art will appreciate that the structure shown in FIG. 1 does not constitute a limitation on the data transmission device, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
如图1所示,作为一种存储介质的存储器1005中可以包括操作系统、数据存储模块、网络通信模块、用户接口模块以及数据传输程序。As shown in FIG. 1 , the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module, and a data transmission program.
在图1所示的数据传输设备中,网络接口1004主要用于与其他设备进行数据通信;用户接口1003主要用于与用户进行数据交互;本申请数据传输设备中的处理器1001、存储器1005可以设置在数据传输设备中,所述数据传输设备通过处理器1001调用存储器1005中存储的数据传输程序,并执行以下操作:In the data transmission device shown in FIG1 , the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the data transmission device of the present application can be set in the data transmission device, and the data transmission device calls the data transmission program stored in the memory 1005 through the processor 1001, and performs the following operations:
接收发送设备发送的数据传输请求,其中,所述数据传输请求中包含数据传输的起始节点和终止节点;Receiving a data transmission request sent by a sending device, wherein the data transmission request includes a starting node and an ending node of the data transmission;
根据预设的路径算法和所述数据传输请求,确定自所述起始节点至所述终止节点的首选路径集合,其中,所述首选路径集合中含有至少一条传输路径;Determine a preferred path set from the start node to the end node according to a preset path algorithm and the data transmission request, wherein the preferred path set contains at least one transmission path;
监测所述首选路径集合中传输路径的路径状态;Monitoring the path status of the transmission paths in the preferred path set;
根据所述路径状态,在所述首选路径集合中确定目标传输路径,并使所述发送设备基于所述目标传输路径进行数据传输。According to the path status, a target transmission path is determined in the preferred path set, and the sending device is enabled to perform data transmission based on the target transmission path.
在一实施例中,所述根据预设的路径算法和所述数据传输请求,确定自所述起始节点至所述终止节点的首选路径集合包括:In one embodiment, determining the preferred path set from the start node to the end node according to the preset path algorithm and the data transmission request includes:
提取所述数据传输请求中的起始节点和终止节点;Extracting a starting node and an ending node in the data transmission request;
根据预设的路径算法,确定自所述起始节点至所述终止节点的最短传输路径;Determine the shortest transmission path from the starting node to the ending node according to a preset path algorithm;
对所述最短传输路径进行偏移并生成备选路径集合,从所述备选路径集合中选取k条传输路径合并以作为所述首选路径集合,其中k为大于一的整数。The shortest transmission path is offset to generate a candidate path set, and k transmission paths are selected from the candidate path set and merged to form the preferred path set, where k is an integer greater than one.
在一实施例中,所述对所述最短传输路径进行偏移并生成备选路径集合包括:In one embodiment, the step of offsetting the shortest transmission path and generating a set of candidate paths includes:
根据预设的Yen算法,确定所述最短传输路径中的偏离节点,并生成自所述偏离节点至所述终止节点的第一偏离路径;According to a preset Yen algorithm, a deviation node in the shortest transmission path is determined, and a first deviation path from the deviation node to the terminal node is generated;
将所述第一偏离路径与自所述起始节点至所述偏离节点的路径进行拼接,形成第二偏离路径,将所述第二偏离路径合并成所述备选路径集合。The first deviated path is concatenated with the path from the starting node to the deviated node to form a second deviated path, and the second deviated paths are merged into the set of candidate paths.
在一实施例中,所述从所述备选路径集合中选取k条传输路径合并以作为所述首选路径集合包括:In one embodiment, selecting k transmission paths from the candidate path set and merging them as the preferred path set includes:
从所述备选路径集合中多次选取k条不完全相同的传输路径,将每次选取的k条传输路径合并成路径组合;Selecting k transmission paths that are not completely the same from the candidate path set multiple times, and merging the k transmission paths selected each time into a path combination;
确定各所述路径组合的离散值,将所述离散值最高的路径组合作为所述首选路径集合。The discrete value of each of the path combinations is determined, and the path combination with the highest discrete value is used as the preferred path set.
在一实施例中,所述监测所述首选路径集合中传输路径的路径状态包括:In one embodiment, monitoring the path status of the transmission path in the preferred path set includes:
确定所述首选路径集合中各传输路径的路径距离;Determining the path distance of each transmission path in the preferred path set;
根据所述路径距离由小到大进行排序,生成排序后的首选路径集合,并对所述排序后的首选路径集合中各传输路径逐个进行监测。The paths are sorted from small to large according to their distances to generate a sorted preferred path set, and each transmission path in the sorted preferred path set is monitored one by one.
在一实施例中,所述监测所述首选路径集合中传输路径的路径状态,还包括:In one embodiment, monitoring the path status of the transmission path in the preferred path set further includes:
每间隔预设周期时长监测各所述传输路径的所述终止节点发送的心跳报文; Monitoring the heartbeat messages sent by the terminating nodes of each transmission path at intervals of a preset period;
若接收到所述心跳报文,则确定所述传输路径的路径状态为正常状态;If the heartbeat message is received, determining that the path state of the transmission path is a normal state;
若未接收到所述心跳报文,则确定所述传输路径的路径状态为异常状态。If the heartbeat message is not received, it is determined that the path state of the transmission path is an abnormal state.
在一实施例中,处理器1001可以调用存储器1005中存储的数据传输程序,还执行以下操作:In one embodiment, the processor 1001 may call the data transmission program stored in the memory 1005, and further perform the following operations:
所述路径状态包括异常状态和正常状态,在所述监测所述首选路径集合中传输路径的路径状态之后,还包括:The path status includes an abnormal state and a normal state. After monitoring the path status of the transmission path in the preferred path set, the method further includes:
若监测到所述路径状态为异常状态的传输路径,则切换传输路径;If it is detected that the path state is a transmission path in an abnormal state, switching the transmission path;
若监测到所述路径状态为正常状态的传输路径,则不切换传输路径,继续监测所述正常状态的传输路径。If it is monitored that the path state is a transmission path in a normal state, the transmission path is not switched, and the transmission path in the normal state continues to be monitored.
在一实施例中,所述根据所述路径状态,在所述首选路径集合中确定目标传输路径,并使所述发送设备基于所述目标传输路径进行数据传输包括:In one embodiment, determining a target transmission path in the preferred path set according to the path state, and causing the sending device to perform data transmission based on the target transmission path includes:
将在所述首选路径集合中选出的首次所述路径状态为正常状态的传输路径作为目标传输路径;The transmission path selected from the preferred path set and having the path status being normal for the first time is used as the target transmission path;
将所述目标传输路径发送至所述发送设备,使所述发送设备基于所述目标传输路径进行数据传输。The target transmission path is sent to the sending device, so that the sending device performs data transmission based on the target transmission path.
本申请实施例提供了一种数据传输方法,参照图2,在数据传输方法的第一实施例中,所述数据传输方法包括:The present application provides a data transmission method. Referring to FIG. 2 , in a first embodiment of the data transmission method, the data transmission method includes:
步骤S10,接收发送设备发送的数据传输请求,其中,所述数据传输请求中包含数据传输的起始节点和终止节点。Step S10: receiving a data transmission request sent by a sending device, wherein the data transmission request includes a start node and an end node of the data transmission.
在本实施例中,所述数据传输方法的执行主体是一种数据传输设备,在一些实施例中,所述数据传输设备可以是网络设备,网络设备可以通过但不限于互联网、局域网、物理连接的方式与发送设备连接,从而接收发送设备发送的数据传输请求,并提取所述数据传输请求中的起始节点和终止节点,从而确定数据的接收设备,进而确定包含所述起始节点和所述终止节点的首选路径集合,使所述发送设备基于所述首选路径集合中的传输路径进行数据传输。In this embodiment, the executor of the data transmission method is a data transmission device. In some embodiments, the data transmission device may be a network device. The network device may be connected to a sending device through, but not limited to, the Internet, a local area network, or a physical connection, thereby receiving a data transmission request sent by the sending device, and extracting the starting node and the ending node in the data transmission request, thereby determining the data receiving device, and further determining a preferred path set including the starting node and the ending node, so that the sending device performs data transmission based on the transmission path in the preferred path set.
网络设备可以是传统服务器,也可以是云服务器等,在此不做限定。The network device can be a traditional server or a cloud server, etc., and there is no limitation here.
发送设备为可连接网络的终端,如手机、笔记本电脑、台式电脑、智能手环,发送设备与网络设备之间通过但不限于互联网、局域网、物理连接的方式连接。The sending device is a terminal that can connect to the Internet, such as a mobile phone, a laptop computer, a desktop computer, or a smart bracelet. The sending device and the network device are connected through, but not limited to, the Internet, a local area network, or a physical connection.
节点即一个连接点,表示数据传输过程中的一个再分发点或者是一个通信端点,在本申请一些实施例中,节点包括起始节点、终止节点、中间节点等,起始节点对应于发送设备,终止节点对应于接收设备,中间节点为传输路径中除起始节点和终止节点以外的其他节点。A node is a connection point, which represents a redistribution point or a communication endpoint in the data transmission process. In some embodiments of the present application, the node includes a starting node, an ending node, an intermediate node, etc. The starting node corresponds to a sending device, the ending node corresponds to a receiving device, and the intermediate node is other nodes in the transmission path except the starting node and the ending node.
接收设备为可连接网络的终端,如手机、笔记本电脑、台式电脑、智能手环,接收设备与网络设备和发送设备之间通过但不限于互联网、局域网、物理连接的方式连接,并基于传输路径接收发送设备发送的数据并发送自身的心跳报文。The receiving device is a terminal that can connect to the Internet, such as a mobile phone, laptop computer, desktop computer, smart bracelet. The receiving device is connected to the network device and the sending device through but not limited to the Internet, local area network, and physical connection, and receives the data sent by the sending device based on the transmission path and sends its own heartbeat message.
路径集合是指由一条或多条传输路径所构成的整体,在本申请一些实施例中,路径集合包括首选路径集合、备选路径集合、路径组合等。A path set refers to a whole composed of one or more transmission paths. In some embodiments of the present application, the path set includes a preferred path set, an alternative path set, a path combination, etc.
步骤S20,根据预设的路径算法和所述数据传输请求,确定自所述起始节点至所述终止节点的首选路径集合,其中,所述首选路径集合中含有至少一条传输路径。Step S20, determining a preferred path set from the start node to the end node according to a preset path algorithm and the data transmission request, wherein the preferred path set contains at least one transmission path.
在一些实施例中,网络设备提取所述数据传输请求中的起始节点和终止节点,并根据预设的路径算法,确定自所述起始节点至所述终止节点的最短传输路径,进而根据预设的Yen算法对所述最短传输路径进行偏移并生成备选路径集合,实现自起始节点至终止节点间多条传输路径的规划,为数据传输提供多条传输路径,进一步提升数据传输的可靠性,进而从所述备选路径集合中多次选取k条不完全相同的传输路径合并为多个路径组合,计算各所述路径组合的离散值,将离散值最高的路径组合作为所述首选路径集合。In some embodiments, the network device extracts the starting node and the ending node in the data transmission request, and determines the shortest transmission path from the starting node to the ending node according to a preset path algorithm, and then offsets the shortest transmission path according to a preset Yen algorithm and generates a set of alternative paths, thereby planning multiple transmission paths from the starting node to the ending node, providing multiple transmission paths for data transmission, and further improving the reliability of data transmission, and then multiple times selecting k non-completely identical transmission paths from the alternative path set to merge into multiple path combinations, calculating the discrete value of each of the path combinations, and taking the path combination with the highest discrete value as the preferred path set.
路径算法是指根据需求从起始节点开始遍历网络中的各节点直至终止节点位置,从而得到满足需求的路径的生成方法,所述路径算法包括但不限于Dijkstra算法、Bellman-Ford算法、SPFA算法、Yen算法等。A path algorithm refers to a method for generating a path that meets the requirements by traversing each node in the network from the starting node to the ending node position according to the requirements. The path algorithm includes but is not limited to the Dijkstra algorithm, Bellman-Ford algorithm, SPFA algorithm, Yen algorithm, etc.
Yen算法是指对自起始节点至终止节点的最短传输路径进行偏移,依次得到自起始节点至终止节点的其他传输路径的方法;在计算时将除终止节点外的所有节点都视为偏离节点,并计算每个偏离节点至终止节点的第一偏离路径,且所述第一偏离路径与已有传输路径不重合,再将自所述起始节点至所述偏 离节点的路径与所述第一偏离路径进行拼接,进而得到n条第二偏离路径,其中n为大于一的整数。The Yen algorithm refers to a method of offsetting the shortest transmission path from the starting node to the ending node to obtain other transmission paths from the starting node to the ending node in sequence; when calculating, all nodes except the ending node are regarded as deviation nodes, and the first deviation path from each deviation node to the ending node is calculated, and the first deviation path does not overlap with the existing transmission path, and then the transmission path from the starting node to the deviation node is calculated. The path away from the node is concatenated with the first deviated path to obtain n second deviated paths, where n is an integer greater than one.
重合是指两条传输路径的所有节点一致。Coincidence means that all nodes of the two transmission paths are consistent.
传输路径,是指自起始节点至终止节点的全路程,传输路径中包括至少一条链路;在本申请一些实施例中,传输路径包括最短传输路径、第一偏离路径、第二偏离路径、目标传输路径等;链路是指一节点到另一节点之间的连接线路。A transmission path refers to the entire distance from a starting node to an ending node, and the transmission path includes at least one link; in some embodiments of the present application, the transmission path includes a shortest transmission path, a first deviation path, a second deviation path, a target transmission path, etc.; a link refers to a connection line from one node to another.
第一偏离路径为自所述偏离节点至所述终止节点的最短传输路径,且所述路径与已有路径不重合;第二偏路径为自所述起始节点至所述偏离节点的路径与所述第一偏离路径进行拼接得到的传输路径。本申请实施例的说明书和权利要求书中的术语第一偏离路径和第二偏离路径是用于区别不同的偏离路径,而不是用于描述偏离路径的特定顺序。The first deviation path is the shortest transmission path from the deviation node to the termination node, and the path does not overlap with the existing path; the second deviation path is a transmission path obtained by splicing the path from the starting node to the deviation node and the first deviation path. The terms first deviation path and second deviation path in the specification and claims of the embodiments of the present application are used to distinguish different deviation paths, rather than to describe a specific order of deviation paths.
路径组合是指从所述含有n条传输路径的备选路径集合中,任选k(k小于或等于n)条传输路径所组合成的组合。The path combination refers to a combination of k (k is less than or equal to n) transmission paths selected from the candidate path set containing n transmission paths.
离散值是指路径组合中各传输路径的偏离程度,从所述路径组合中任选两条传输路径进行节点的比较,进而得到传输路径之间的差异度,再将得到的所有差异度相加得到的总差异度值即为路径组合的离散值。The discrete value refers to the degree of deviation of each transmission path in the path combination. Two transmission paths are randomly selected from the path combination for node comparison to obtain the difference between the transmission paths. The total difference value obtained by adding up all the differences is the discrete value of the path combination.
步骤S30,监测所述首选路径集合中传输路径的路径状态。Step S30: monitoring the path status of the transmission paths in the preferred path set.
在一些实施例中,每间隔预设周期时长监测各所述传输路径的所述终止节点发送的心跳报文,从而确定所述传输路径的路径状态;若接收到所述心跳报文,表明所述传输路径中各节点间的链路连接正常,能够进行数据的有效传输,则确定所述传输路径的路径状态为正常状态,使发送设备基于所述传输路径进行数据传输,并继续监测所述正常状态的传输路径;若未接收到所述心跳报文,表明所述传输路径中存在异常节点或异常链路,无法进行数据传输,则确定所述传输路径的路径状态为异常状态,并切换传输路径,直至监测到正常状态的传输路径。In some embodiments, the heartbeat message sent by the terminating node of each of the transmission paths is monitored at preset period intervals to determine the path status of the transmission path; if the heartbeat message is received, indicating that the link connection between the nodes in the transmission path is normal and data can be effectively transmitted, the path status of the transmission path is determined to be normal, so that the sending device transmits data based on the transmission path and continues to monitor the transmission path in the normal state; if the heartbeat message is not received, indicating that there are abnormal nodes or abnormal links in the transmission path and data transmission cannot be performed, the path status of the transmission path is determined to be abnormal, and the transmission path is switched until a transmission path in the normal state is monitored.
所述预设周期时长可以根据大数据统计分析结果进行预设,也可以根据实际情况进行确定,本实施例对此不加以限制,例如预设周期时长足够小,基本实现实时监测传输路径的路径状态,进一步提升数据传输的可靠性。The preset cycle duration can be preset based on the big data statistical analysis results, or determined based on actual conditions. This embodiment does not impose any restrictions on this. For example, the preset cycle duration is small enough to basically achieve real-time monitoring of the path status of the transmission path, thereby further improving the reliability of data transmission.
心跳报文是一种技术信号,以0-15为一个周期不间断的发送,网络设备或发送设备基于所述传输路径,通过每间隔预设周期时长监测所述终止节点发送的心跳报文,从而确定所述传输路径的路径状态。The heartbeat message is a technical signal that is sent continuously in a cycle of 0-15. The network device or the sending device determines the path status of the transmission path by monitoring the heartbeat message sent by the termination node at intervals of a preset period based on the transmission path.
步骤S40,根据所述路径状态,在所述首选路径集合中确定目标传输路径,并使所述发送设备基于所述目标传输路径进行数据传输。Step S40: determining a target transmission path in the preferred path set according to the path status, and enabling the sending device to perform data transmission based on the target transmission path.
在一些实施例中,网络设备根据首选路径集合中各传输路径的顺序逐条进行监测,若选出的首次所述路径状态为正常状态的传输路径,表明所述传输路径中各节点间的链路连接正常,能够进行数据的有效传输,则将所述传输路径作为目标传输路径,进而将所述目标传输路径发送至发送设备,使所述发送设备基于所述目标传输路径与所述接收设备之间进行数据传输。In some embodiments, the network device monitors each transmission path one by one according to the order of each transmission path in the preferred path set. If the transmission path whose path status is selected for the first time is in a normal state, indicating that the link connection between the nodes in the transmission path is normal and data can be effectively transmitted, the transmission path is used as the target transmission path, and then the target transmission path is sent to the sending device, so that the sending device transmits data with the receiving device based on the target transmission path.
在本实施例中,通过接收发送设备发送的数据传输请求,所述数据传输请求中包含数据传输的起始节点和终止节点,从而确定传输路径的起始节点和终止节点,进而根据预设的路径算法和所述数据传输请求,确定自所述起始节点至所述终止节点的首选路径集合,所述首选路径集合中含有至少一条传输路径,实现自所述起始节点至所述终止节点之间多条传输路径的建立,实现了为数据传输提供多条可靠的传输路径,避免了因单路径异常而导致数据传输失败情况的发生,进而监测所述首选路径集合中传输路径的路径状态,实现对传输路径的路径状态的实时监测,进而根据所述路径状态,在所述首选路径集合中确定目标传输路径,并使所述发送设备基于所述目标传输路径进行数据传输;通过预设的路径算法,在起始节点和终止节点之间建立多条传输路径,避免了因单路径故障而导致数据传输的失败,进而提升了数据传输的可靠性,并对传输路径进行实时监测,当监测到路径异常时,基于所述首选路径集合及时进行传输路径的切换,避免多次重复的规划传输路径,提升传输效率,进一步提升数据传输过程的可靠性。In this embodiment, by receiving a data transmission request sent by a sending device, the data transmission request includes a starting node and an ending node of the data transmission, thereby determining the starting node and the ending node of the transmission path, and then determining a preferred path set from the starting node to the ending node according to a preset path algorithm and the data transmission request, wherein the preferred path set contains at least one transmission path, thereby realizing the establishment of multiple transmission paths from the starting node to the ending node, realizing the provision of multiple reliable transmission paths for data transmission, and avoiding the occurrence of data transmission failure due to a single path abnormality, and then monitoring the path status of the transmission paths in the preferred path set, realizing real-time monitoring of the path status of the transmission paths, and then determining a target transmission path in the preferred path set according to the path status, and causing the sending device to perform data transmission based on the target transmission path; through a preset path algorithm, multiple transmission paths are established between the starting node and the ending node, thereby avoiding the failure of data transmission due to a single path failure, thereby improving the reliability of data transmission, and performing real-time monitoring of the transmission paths. When a path abnormality is detected, the transmission path is switched in time based on the preferred path set, thereby avoiding repeated planning of transmission paths, improving transmission efficiency, and further improving the reliability of the data transmission process.
在一实施例中,在本申请数据传输方法的另一实施例中,参照图3,所述根据预设的路径算法和所述数据传输请求,确定自所述起始节点至所述终止节点的首选路径集合包括:In one embodiment, in another embodiment of the data transmission method of the present application, referring to FIG. 3 , the determining, according to a preset path algorithm and the data transmission request, a preferred path set from the start node to the end node includes:
步骤S21,提取所述数据传输请求中的起始节点和终止节点。 Step S21, extracting the start node and the end node in the data transmission request.
为辅助理解以上技术方案,以下以一个具体的数据传输方法的一种实现方式的场景示意图进行辅助说明,参照图4,发送设备对应起始节点A,接收设备对应终止节点F,B、C、D、E为各中间节点,网络设备中存储有所有节点;任意两节点构成一条链路,各节点之间的数字代表各链路权重,即链路长度,例如A-D链路的权重为3,即A-D链路的长度为3,一条传输路径包含一条或以上链路;从起始节点A传输数据至终止节点F的最短传输路径为A-F权重为1,除A-F外还可以经过B、C、D、E任意节点生成新的传输路径。To assist in understanding the above technical solution, the following is an auxiliary explanation of a scenario diagram of an implementation method of a specific data transmission method. Referring to Figure 4, the sending device corresponds to the starting node A, the receiving device corresponds to the ending node F, B, C, D, and E are intermediate nodes, and all nodes are stored in the network device; any two nodes constitute a link, and the numbers between the nodes represent the weights of each link, that is, the link length. For example, the weight of the A-D link is 3, that is, the length of the A-D link is 3, and a transmission path contains one or more links; the shortest transmission path for transmitting data from the starting node A to the ending node F is A-F with a weight of 1. In addition to A-F, a new transmission path can also be generated through any node of B, C, D, and E.
在一种可实施方式中,参照图4,发送设备向网络设备发送数据传输请求,网络设备接收所述数据传输请求,并提取出所述数据传输请求中的起始节点A和终止节点F。In one possible implementation, referring to FIG. 4 , the sending device sends a data transmission request to the network device, the network device receives the data transmission request, and extracts the start node A and the end node F in the data transmission request.
步骤S22,根据预设的路径算法,确定自所述起始节点至所述终止节点的最短传输路径。Step S22: determining the shortest transmission path from the starting node to the ending node according to a preset path algorithm.
在一些实施例中,网络设备根据预设的路径算法得到自所述起始节点至所述终止节点的所有传输路径,并计算各传输路径的权重,进而得到权重最小的传输路径即最短传输路径。In some embodiments, the network device obtains all transmission paths from the starting node to the ending node according to a preset path algorithm, and calculates the weight of each transmission path, thereby obtaining the transmission path with the smallest weight, that is, the shortest transmission path.
例如,参照图4,发送设备发送数据传输请求,网络设备接收所述数据传输请求,并提取出所述数据传输请求中的起始节点A和终止节点F,网络设备根据Dijkstra算法得到从起始节点A到终止节点F的所有传输路径,进而计算各传输路径的权重,其中传输路径A-F的权重为1,即为最短传输路径。For example, referring to Figure 4, the sending device sends a data transmission request, the network device receives the data transmission request, and extracts the starting node A and the ending node F in the data transmission request. The network device obtains all transmission paths from the starting node A to the ending node F according to the Dijkstra algorithm, and then calculates the weight of each transmission path, where the weight of the transmission path A-F is 1, which is the shortest transmission path.
步骤S23,对所述最短传输路径进行偏移并生成备选路径集合,从所述备选路径集合中选取k条传输路径合并以作为所述首选路径集合,其中k为大于一的整数。Step S23, offset the shortest transmission path and generate a candidate path set, select k transmission paths from the candidate path set and merge them to form the preferred path set, where k is an integer greater than one.
在一些实施例中,网络设备根据预设的Yen算对所述最短传输路径进行偏移从而得到备选路径集合,并从所述备选路径集合中多次选取k条不完全相同的传输路径,将每次选取的k条传输路径合并成路径组合,并计算各所述路径组合的离散值,将所述离散值最高的路径组合作为首选路径集合,使首选路径集合中各传输路径的差异度增加,避免因单一节点故障导致路径集合中多数传输路径异常,为数据传输提供多条可靠的传输路径,进一步提升数据传输的可靠性。In some embodiments, the network device offsets the shortest transmission path according to a preset Yen calculation to obtain a set of alternative paths, and selects k non-completely identical transmission paths from the set of alternative paths multiple times, merges the k transmission paths selected each time into a path combination, and calculates the discrete value of each path combination, and uses the path combination with the highest discrete value as the preferred path set, so that the difference between the transmission paths in the preferred path set is increased, avoiding the abnormality of most transmission paths in the path set due to a single node failure, providing multiple reliable transmission paths for data transmission, and further improving the reliability of data transmission.
在本实施例中,网络设备通过提取所述数据传输请求中的起始节点和终止节点,确定了传输路径必须包含的节点,进而根据预设的路径算法,计算并确定包含所述起始节点和所述终止节点的最短传输路径,为数据传输提供了一条传输距离最短、传输耗时最少的传输路径,进而根据预设的Yen算法,对所述最短传输路径进行偏移并生成备选路径集合,从所述备选路径集合中多次选取k条不完全相同的传输路径,将每次选取的k条传输路径合并成路径组合,再计算各所述路径组合的离散值,将所述离散值最高的路径组合作为首选路径集合,使首选路径集合中各传输路径的差异度增加,避免因单一节点故障导致路径集合中多数传输路径异常,为数据传输提供多条可靠的传输路径,进一步提升数据传输的可靠性。In this embodiment, the network device determines the nodes that must be included in the transmission path by extracting the starting node and the ending node in the data transmission request, and then calculates and determines the shortest transmission path including the starting node and the ending node according to a preset path algorithm, providing a transmission path with the shortest transmission distance and the least transmission time for data transmission, and then offsets the shortest transmission path and generates an alternative path set according to a preset Yen algorithm, selects k non-completely identical transmission paths from the alternative path set multiple times, merges the k transmission paths selected each time into a path combination, and then calculates the discrete value of each path combination, and uses the path combination with the highest discrete value as the preferred path set, so that the difference between the transmission paths in the preferred path set is increased, avoiding the abnormality of most transmission paths in the path set due to a single node failure, providing multiple reliable transmission paths for data transmission, and further improving the reliability of data transmission.
在一实施例中,所述步骤S23对所述最短传输路径进行偏移并生成备选路径集合,从所述备选路径集合中选取k条传输路径合并以作为所述首选路径集合,其中k为大于一的整数包括:In one embodiment, the step S23 offsets the shortest transmission path and generates a set of candidate paths, and selects k transmission paths from the set of candidate paths to be merged as the set of preferred paths, where k is an integer greater than one and includes:
步骤S231,根据预设的Yen算法,确定所述最短传输路径中的偏离节点,并生成自所述偏离节点至所述终止节点的第一偏离路径。Step S231: Determine a deviation node in the shortest transmission path according to a preset Yen algorithm, and generate a first deviation path from the deviation node to the terminal node.
在一些实施例中,网络设备根据预设的Yen算法,在所述最短传输路径中确定偏离节点,其中,所述偏离节点可以为除终止节点以外的所有节点,计算自所述偏离节点至所述终止节点的除已有传输路径以外的最短路径,作为第一偏离路径。In some embodiments, the network device determines a deviation node in the shortest transmission path according to a preset Yen algorithm, wherein the deviation node may be all nodes except the terminating node, and calculates the shortest path from the deviation node to the terminating node except the existing transmission path as the first deviation path.
在一种可实施方式中,参照图4,起始节点为A,终止节点为F,根据Dijkstra算法得到最短传输路径为A-F,网络设备根据预设的Yen算法,将节点A作为偏移点,从所述偏离节点A至所述终止节点F除已有路径A-F外的最短路径为:A-B-C-F即偏离节点A的偏离路径;将B点作为偏离点,根据Yen算法得到B到F的最短传输路径(不与已知传输路径A-B-C-F重合)为:B-E-F即偏离节点B的偏离路径,重复上述步骤得到所有偏离节点的偏离路径。In one possible implementation, referring to Figure 4, the starting node is A, the ending node is F, and the shortest transmission path obtained according to the Dijkstra algorithm is A-F. The network device uses the preset Yen algorithm to take node A as the offset point, and the shortest path from the deviated node A to the ending node F except the existing path A-F is: A-B-C-F, that is, the deviated path from node A; point B is taken as the deviation point, and the shortest transmission path from B to F is obtained according to the Yen algorithm (which does not overlap with the known transmission path A-B-C-F): B-E-F, that is, the deviated path from node B, and the above steps are repeated to obtain the deviated paths of all deviated nodes.
步骤S232,将所述第一偏离路径与自所述起始节点至所述偏离节点的路径进行拼接,形成第二偏离路径,将所述第二偏离路径合并成所述备选路径集合。Step S232: concatenate the first deviated path with the path from the starting node to the deviated node to form a second deviated path, and merge the second deviated paths into the set of candidate paths.
在一些实施例中,参照图4,起始节点为A,终止节点为F,根据Yen算法得到最短传输路径A-F,偏离节点B的第一偏离路径为:B-E-F,将B-E-F与自所述起始节点A至所述偏离节点B的路径A-B进行拼接,得到第二偏离路径:A-B-E-F,重复上述步骤,将所有得到的第二偏离路径合并,形成所述备选路径集合。 In some embodiments, referring to Figure 4, the starting node is A, the ending node is F, the shortest transmission path AF is obtained according to the Yen algorithm, the first deviation path that deviates from the node B is: BEF, BEF is spliced with the path AB from the starting node A to the deviation node B to obtain the second deviation path: ABEF, repeat the above steps, merge all the obtained second deviation paths to form the alternative path set.
在本实施例中,根据预设的Yen算法,确定所述最短传输路径中的偏离节点,并计算自所述偏离节点至所述终止节点的第一偏离路径,进而将所述偏离路径与自所述起始节点至所述偏离节点的路径进行拼接,形成第二偏离路径,将各所述第二偏离路径合并,形成所述备选路径集合,通过生产备选路径集合为发送设备和接收设备提供多条有效、可靠的传输路径,避免因单路径异常而造成数据传输失败的情况的发生,进而提升数据传输的可靠性。In this embodiment, according to the preset Yen algorithm, the deviation node in the shortest transmission path is determined, and the first deviation path from the deviation node to the termination node is calculated, and then the deviation path is spliced with the path from the starting node to the deviation node to form a second deviation path, and each of the second deviation paths is merged to form the alternative path set. By producing the alternative path set, multiple effective and reliable transmission paths are provided for the sending device and the receiving device, thereby avoiding the occurrence of data transmission failure due to single path abnormalities, thereby improving the reliability of data transmission.
步骤S233,从所述备选路径集合中多次选取k条不完全相同的传输路径,将每次选取的k条传输路径合并成路径组合。Step S233: Select k transmission paths that are not completely the same from the candidate path set multiple times, and merge the k transmission paths selected each time into a path combination.
在一些实施例中,所述备选路径集合中包含n条传输路径,网络设备根据组合数公式从n条传输路径中多次选取k(k小于或等于n)条不完全相同的传输路径,将每次选取的k条传输路径合并成路径组合,所述路径组合的组合个数为C(n,k)。In some embodiments, the set of alternative paths includes n transmission paths, and the network device selects k (k is less than or equal to n) non-completely identical transmission paths from the n transmission paths multiple times according to the combination number formula, and merges the k transmission paths selected each time into a path combination, and the number of combinations of the path combinations is C(n, k).
组合数公式是指从n个不同元素中,任取k(k小于或等于n)个元素并成一组,叫做从n个不同元素中取出k个元素的一个组合;从n个不同元素中取出k(k小于或等于n)个元素的所有组合的个数,叫做n个不同元素中取出k个元素的组合数。用符号C(n,k)表示。The formula for the number of combinations means that taking k (k is less than or equal to n) elements from n different elements and forming a group is called a combination of k elements from n different elements; the number of all combinations of taking k (k is less than or equal to n) elements from n different elements is called the number of combinations of k elements from n different elements. It is represented by the symbol C(n, k).
步骤S234,确定各所述路径组合的离散值,将所述离散值最高的路径组合作为所述首选路径集合。Step S234: determine the discrete value of each path combination, and use the path combination with the highest discrete value as the preferred path set.
在一些实施例中,网络设备从所述路径组合中任意选取两条传输路径进行节点比较,进而得到所述两条传输路径的差异度,得到的所有差异度相加得到的总差异度值即为路径组合的离散值,将所述离散值最高的路径组合作为首选路径集合。In some embodiments, the network device arbitrarily selects two transmission paths from the path combination for node comparison, and then obtains the difference between the two transmission paths. The total difference value obtained by adding up all the differences is the discrete value of the path combination, and the path combination with the highest discrete value is used as the preferred path set.
例如,参照图4,起始节点为A,终止节点为F,路径组合1为(A-F,A-B-F,A-C-F),路径组合2为(A-F,A-B-D-F,A-C-E-F),对路径组合1中传输路径A-F,A-B-F,A-C-F中任意两条传输路径的节点进行比较,进而得到所述两条传输路径的差异度A-F和A-B-F差异度为1,A-F和A-C-F差异度为1,A-B-F和A-C-F差异度为1,将所述差异度相加得到路径组合1的离散值为3,同理计算得到路径组合2的离散值为6,路径组合2的离散值大于路径组合1的离散值,则将所述路径组合2作为所述首选路径集合。For example, referring to Figure 4, the starting node is A, the ending node is F, path combination 1 is (A-F, A-B-F, A-C-F), and path combination 2 is (A-F, A-B-D-F, A-C-E-F). The nodes of any two transmission paths of transmission paths A-F, A-B-F, and A-C-F in path combination 1 are compared, and then the difference between the two transmission paths A-F and A-B-F is 1, the difference between A-F and A-C-F is 1, and the difference between A-B-F and A-C-F is 1. The discrete value of path combination 1 is 3 when the differences are added. Similarly, the discrete value of path combination 2 is 6 when calculated. The discrete value of path combination 2 is greater than the discrete value of path combination 1, and path combination 2 is used as the preferred path set.
在本实施例中,从所述备选路径集合中多次选取k条不完全相同的传输路径,将每次选取的k条传输路径合并成路径组合,进而计算所述路径组合的离散值,将所述离散值最高的路径组合作为所述首选路径集合,使所述首选路径集合中各传输路径的差异度增加,避免因其中单一中间节点异常,导致其他多条传输路径故障的情况的发生,为发送设备和接收设备间的数据传输提供多条有效且差异度大的传输路径,进一步提升数据传输的可靠性。In this embodiment, k non-completely identical transmission paths are selected multiple times from the alternative path set, and the k transmission paths selected each time are merged into a path combination, and then the discrete value of the path combination is calculated, and the path combination with the highest discrete value is used as the preferred path set, so that the difference between the transmission paths in the preferred path set is increased, and the situation where the failure of other multiple transmission paths caused by the abnormality of a single intermediate node is avoided, and multiple effective and highly differentiated transmission paths are provided for data transmission between the sending device and the receiving device, thereby further improving the reliability of data transmission.
在一实施例中,在本申请数据传输方法的另一实施例中,参照图5,所述监测所述首选路径集合中传输路径的路径状态包括:In one embodiment, in another embodiment of the data transmission method of the present application, referring to FIG. 5 , monitoring the path status of the transmission path in the preferred path set includes:
步骤S31,确定所述首选路径集合中各传输路径的路径距离。Step S31, determining the path distance of each transmission path in the preferred path set.
在一些实施例中,网络设备对所述首选路径集合中各传输路径的权重值进行计算,得到各传输路径的路径距离。In some embodiments, the network device calculates the weight value of each transmission path in the preferred path set to obtain the path distance of each transmission path.
例如,参照图4,起始节点为A,终止节点为F,传输路径A-B-C-F的路径距离为2+1+1即4,传输路径A-D-C-F的路径距离为3+4+1即8,同理可得A到F的其他传输路径的路径距离。For example, referring to Figure 4, the starting node is A, the ending node is F, the path distance of the transmission path A-B-C-F is 2+1+1, that is, 4, and the path distance of the transmission path A-D-C-F is 3+4+1, that is, 8. Similarly, the path distances of other transmission paths from A to F can be obtained.
步骤S32,根据所述路径距离由小到大进行排序,生成排序后的首选路径集合,并对所述排序后的首选路径集合中各传输路径逐个进行监测。Step S32 , sorting the paths from small to large according to the path distances to generate a sorted preferred path set, and monitoring each transmission path in the sorted preferred path set one by one.
在一些实施例中,网络设备根据首选路径集合中各传输路径的路径距离,将各所述传输路径进行排序,生成路径距离由小到大的排序后的首选路径集合,并根据排序对首选路径集合中各传输路径逐条进行监测,进而根据监测结果从所述首选路径集合确定目标传输路径进行数据传输。In some embodiments, the network device sorts each transmission path in the preferred path set according to the path distance of each transmission path, generates a preferred path set with the path distance sorted from small to large, and monitors each transmission path in the preferred path set one by one according to the sorting, and then determines the target transmission path from the preferred path set for data transmission according to the monitoring results.
在本实施例中,网络设备对首选路径集合中各传输路径的路径距离进行计算,并根据路径距离的计算结果将首选路径集合中各传输路径由小到大进行排序,进而生成排序后的首选路径集合,并根据顺序对所述排序后的首选路径集合中各传输路径逐个进行监测,使目标传输路径的路径距离尽可能短,减少数据传输时间,进而提升数据传输效率。In this embodiment, the network device calculates the path distance of each transmission path in the preferred path set, and sorts the transmission paths in the preferred path set from small to large according to the calculation results of the path distance, thereby generating a sorted preferred path set, and monitors each transmission path in the sorted preferred path set one by one according to the order, so that the path distance of the target transmission path is as short as possible, thereby reducing the data transmission time and improving the data transmission efficiency.
步骤S33,每间隔预设周期时长监测各所述传输路径的所述终止节点发送的心跳报文。Step S33: monitoring the heartbeat messages sent by the terminating nodes of each of the transmission paths at intervals of a preset period.
在一些实施例中,网络设备通过每间隔预设周期时长,接收所述首选路径集合中各传输路径的终止 节点发送的心跳报文,从而根据所述心跳报文的接收情况确定各传输路径的路径状态。In some embodiments, the network device receives the termination information of each transmission path in the preferred path set at intervals of a preset period of time. The node receives the heartbeat message sent by the node, thereby determining the path status of each transmission path according to the reception status of the heartbeat message.
在一种可实施方式中,网络设备根据首选路径集合中各传输路径的顺序,逐条发送所述传输路径至接收设备,进而使所述接收设备基于所述传输路径发送心跳报文,从而根据所述心跳报文的接收情况确定所述传输路径的路径状态。In one possible implementation, the network device sends the transmission paths to the receiving device one by one according to the order of the transmission paths in the preferred path set, so that the receiving device sends a heartbeat message based on the transmission path, thereby determining the path status of the transmission path according to the reception status of the heartbeat message.
在另一种可实施方式中,网络设备根据首选路径集合中各传输路径的顺序,逐条发送所述传输路径至发送设备,使发送设备基于所述传输路径向接收设备发送路径信息,其中,所述路径信息中封装有所述传输路径的所有节点,接收设备接收并保存所述路径信息,进而使所述接收设备基于所述传输路径,每隔预设周期时长向所述发送设备发送心跳报文,发送设备根据所述心跳报文确定所述传输路径的路径状态。In another possible implementation, the network device sends the transmission paths to the sending device one by one according to the order of the transmission paths in the preferred path set, so that the sending device sends path information to the receiving device based on the transmission paths, wherein the path information encapsulates all the nodes of the transmission path, and the receiving device receives and saves the path information, thereby enabling the receiving device to send a heartbeat message to the sending device at preset period intervals based on the transmission path, and the sending device determines the path status of the transmission path based on the heartbeat message.
步骤S34,若接收到所述心跳报文,则确定所述传输路径的路径状态为正常状态。Step S34: If the heartbeat message is received, it is determined that the path state of the transmission path is normal.
在一些实施例中,若网络设备每间隔预设周期时长接收到所述心跳报文,表明所述传输路径中各节点或节点间的链路连接正常,能够进行数据的有效传输,则确定所述传输路径的路径状态为正常状态,使发送设备基于所述传输路径进行数据传输,并在数据传输过程中继续监测所述传输路径的路径状态。In some embodiments, if the network device receives the heartbeat message at intervals of a preset period, it indicates that the nodes in the transmission path or the links between the nodes are connected normally and data can be effectively transmitted. Then, the path state of the transmission path is determined to be normal, and the sending device transmits data based on the transmission path, and continues to monitor the path state of the transmission path during data transmission.
步骤S35,若未接收到所述心跳报文,则确定所述传输路径的路径状态为异常状态。Step S35: If the heartbeat message is not received, it is determined that the path state of the transmission path is an abnormal state.
在一些实施例中,若网络设备未接收到所述心跳报文,表明所述传输路径中存在异常节点或异常链路,无法进行数据传输,则确定所述传输路径的路径状态为异常状态,将所述传输路径切换所述首选路径集合中的另一条传输路径,并监测所述另一条传输路径的路径状态,进而保证传输路径连接正常;所述未接收到所述心跳报文可以为未接收到周期性报文或接收到错误的周期报文,本实施例对此不加以限制。In some embodiments, if the network device does not receive the heartbeat message, it indicates that there are abnormal nodes or abnormal links in the transmission path and data transmission is impossible. Then, the path state of the transmission path is determined to be an abnormal state, and the transmission path is switched to another transmission path in the preferred path set. The path state of the other transmission path is monitored to ensure that the transmission path connection is normal. The failure to receive the heartbeat message may be the failure to receive a periodic message or the receipt of an erroneous periodic message, and this embodiment does not limit this.
为辅助理解以上技术方案,以下以一个具体的数据传输方法的另一种实现方式的场景示意图进行辅助说明,参照图6,A为起始节点,F为终止节点,B、C、D、E为各中间节点,各节点之间的数字表示传输路径标识,传输路径1为A-B-C-F,传输路径2为A-D-E-F,传输路径1的顺序为1,传输路径2的顺序为2,传输路径1的顺序先于传输路径2,箭头的指向表示数据传输过程中或心跳报文发送过程中,待传输数据或待发送心跳报文到达的下一节点;网络设备基于传输路径1接收终止节点F发送的心跳报文,若传输路径1中C-F节点间的链路异常,网络设备无法接收到所述终止节点发送的心跳报文,则确定所述传输路径1的路径状态为异常状态,将所述传输路径1切换为备选的传输路径2,对所述传输路径2的路径状态进行监测。To assist in understanding the above technical solution, a scenario diagram of another implementation method of a specific data transmission method is used for auxiliary explanation below. Referring to Figure 6, A is the starting node, F is the terminating node, B, C, D, and E are intermediate nodes, and the numbers between the nodes represent the transmission path identifier. Transmission path 1 is A-B-C-F, and transmission path 2 is A-D-E-F. The order of transmission path 1 is 1, and the order of transmission path 2 is 2. The order of transmission path 1 precedes that of transmission path 2. The direction of the arrow indicates the next node to which the data to be transmitted or the heartbeat message to be sent arrives during the data transmission process or the heartbeat message sending process; the network device receives the heartbeat message sent by the terminating node F based on the transmission path 1. If the link between the C-F nodes in the transmission path 1 is abnormal, the network device cannot receive the heartbeat message sent by the terminating node, then it is determined that the path state of the transmission path 1 is an abnormal state, and the transmission path 1 is switched to the alternative transmission path 2, and the path state of the transmission path 2 is monitored.
在本实施例中,网络设备每间隔预设周期时长监测各所述传输路径的所述终止节点发送的心跳报文,实现对传输路径的路径状态的确定与实时监测;进而若接收到所述心跳报文,则确定所述传输路径的路径状态为正常状态,使发送设备基于所述传输路径进行数据传输;若未接收到所述心跳报文,表明所述传输路径中存在异常节点或异常链路,无法进行数据传输,则确定所述传输路径的路径状态为异常状态,将所述传输路径切换为首选路径集合中的另一传输路径,并再次监测所述另一传输路径的路径状态,进而保证传输路径的连接正常,避免了因单一传输路径异常而导致数据传输的失败,若监测到传输路径存在异常,则马上切换传输路径,确保用户设备间数据传输的持续进行,进一步提升数据传输的可靠性。In this embodiment, the network device monitors the heartbeat message sent by the terminating node of each of the transmission paths at a preset period interval, so as to determine and monitor the path status of the transmission path in real time; if the heartbeat message is received, it is determined that the path status of the transmission path is normal, so that the sending device performs data transmission based on the transmission path; if the heartbeat message is not received, it indicates that there is an abnormal node or abnormal link in the transmission path and data transmission cannot be performed, so the path status of the transmission path is determined to be abnormal, and the transmission path is switched to another transmission path in the preferred path set, and the path status of the other transmission path is monitored again, so as to ensure that the connection of the transmission path is normal, avoid the failure of data transmission due to the abnormality of a single transmission path, and if the transmission path is detected to be abnormal, the transmission path is switched immediately to ensure the continuous data transmission between user devices and further improve the reliability of data transmission.
步骤S36,若监测到所述路径状态为异常状态的传输路径,则切换传输路径。Step S36: If it is detected that the path state is an abnormal transmission path, the transmission path is switched.
在一些实施例中,网络设备根据首选路径集合中各传输路的顺序逐条进行监测,若监测到所述路径状态为异常状态的传输路径,表明所述传输路径存在节点异常或链路异常,无法进行数据传输,则将传输路径切换为所述首选路径集合中的另一传输路径。In some embodiments, the network device monitors each transmission path one by one according to the order of each transmission path in the preferred path set. If a transmission path with an abnormal path status is detected, indicating that there is a node abnormality or a link abnormality in the transmission path and data transmission is impossible, the transmission path is switched to another transmission path in the preferred path set.
在一种可实施方式中,网络设备根据首选路径集合中各传输路的顺序逐条发送至所述发送设备,发送设备基于所述各传输路径接收所述终止节点发送的心跳报文,进而确定所述传输路径的路径状态,若所述传输路径的任意节点或链路异常,所述发送设备将无法在预设周期时长内接收到所述心跳报文,则在等待时间超过所述预设周期时长后,发送设备切换传输路径为所述首选路径集合中的另一传输路径,并确定所述另一传输路径的路径状态。In one possible implementation, the network device sends each transmission path in the preferred path set to the sending device one by one according to the order of the transmission paths in the preferred path set, and the sending device receives the heartbeat message sent by the terminating node based on each transmission path, and then determines the path state of the transmission path. If any node or link of the transmission path is abnormal, the sending device will not be able to receive the heartbeat message within a preset cycle time. After the waiting time exceeds the preset cycle time, the sending device switches the transmission path to another transmission path in the preferred path set, and determines the path state of the other transmission path.
步骤S37,若监测到所述路径状态为正常状态的传输路径,则不切换传输路径,继续监测所述正常状态的传输路径。Step S37: if the path status is monitored to be a transmission path in a normal state, the transmission path is not switched, and the transmission path in the normal state continues to be monitored.
在一些实施例中,网络设备根据首选路径集合中各传输路的顺序逐条进行监测,若监测到所述路径状态为正常状态的传输路径,表明所述传输路径能够进行数据的有效传输,则不执行切换传输路径,继 续监测该条传输路径,保证数据传输的顺利进行。In some embodiments, the network device monitors each transmission path in the preferred path set one by one according to the order of each transmission path. If the transmission path whose path status is normal is detected, indicating that the transmission path can effectively transmit data, the transmission path is not switched, and the transmission path is continued. Continue to monitor the transmission path to ensure smooth data transmission.
在本实施例中,网络设备每间隔预设周期时长监测各所述传输路径的所述终止节点发送的心跳报文,进而对首选路径集合中各传输路径逐个进行监测,通过传输路径的差异度和路径距离相结合,使用户设备基于可靠且路径距离最短的传输路径进行数据传输,实现为发送设备提供多条有效且快速的传输路径;若监测到所述路径状态为异常状态的传输路径,表明所述传输路径存在节点异常或链路异常,无法进行数据传输,则根据排序切换传输路径为另一传输路径,保证数据传输的顺利进行,避免了发送设备重复多次对接收设备发起连接请求再重新规划传输路径,提升了数据传输的效率;若监测到所述路径状态为正常状态的传输路径,表明所述传输路径能够进行数据的有效传输,则不执行切换传输路径,继续监测该条传输路径,保证数据传输的顺利进行,进一步提升数据传输的可靠性。In this embodiment, the network device monitors the heartbeat message sent by the termination node of each transmission path at a preset period interval, and then monitors each transmission path in the preferred path set one by one, and through the combination of the difference of the transmission path and the path distance, the user device transmits data based on a reliable transmission path with the shortest path distance, thereby providing a plurality of effective and fast transmission paths for the sending device; if a transmission path with an abnormal path status is detected, indicating that there is a node abnormality or a link abnormality in the transmission path and data transmission cannot be performed, the transmission path is switched to another transmission path according to the sorting, so as to ensure smooth data transmission, avoid the sending device repeatedly initiating connection requests to the receiving device and then re-planning the transmission path, and improve the efficiency of data transmission; if a transmission path with a normal path status is detected, indicating that the transmission path can effectively transmit data, the transmission path switching is not executed, and the transmission path continues to be monitored, so as to ensure smooth data transmission and further improve the reliability of data transmission.
步骤S38,将在所述首选路径集合中选出的首次所述路径状态为正常状态的传输路径作为目标传输路径。Step S38: taking the transmission path selected from the preferred path set and having the path status being normal for the first time as the target transmission path.
在一些实施例中,网络设备对所述排序后的首选路径集合中各传输路径逐个进行监测,若确定选出的首次所述传输路径的路径状态为正常状态,表明所述传输路径中各节点或节点间的链路连接正常,能够进行数据的有效传输,并且传输距离相较于所述首选路径集合中其他传输路径更短,数据传输的耗时更少,则将选出的首次所述路径状态为正常状态的传输路径作为目标传输路径,以供发送设备进行数据传输。In some embodiments, the network device monitors each transmission path in the sorted preferred path set one by one. If it is determined that the path status of the first selected transmission path is normal, it indicates that the nodes or link connections between nodes in the transmission path are normal, and data can be effectively transmitted. In addition, the transmission distance is shorter than other transmission paths in the preferred path set, and the data transmission takes less time. Then, the transmission path whose path status is normal for the first time is selected as the target transmission path for the sending device to transmit data.
步骤S39,将所述目标传输路径发送至所述发送设备,使所述发送设备基于所述目标传输路径进行数据传输。Step S39: sending the target transmission path to the sending device, so that the sending device performs data transmission based on the target transmission path.
在一些实施例中,网络设备将目标传输路径发送至发送设备,发送设备基于所述目标传输路径向接收设备进行数据传输;在待传输的数据中携带有传输路径的路径信息,使传输路径中的每个中间节点,在接收到所述待传输的数据后能够确定下一中间节点地址,并进行所述数据的转发,而当所述数据到达终止节点后停止转发。In some embodiments, the network device sends the target transmission path to the sending device, and the sending device transmits data to the receiving device based on the target transmission path; the path information of the transmission path is carried in the data to be transmitted, so that each intermediate node in the transmission path can determine the next intermediate node address after receiving the data to be transmitted, and forward the data, and stop forwarding when the data reaches the termination node.
在一种可实施方式中,参照图6,A为起始节点,F为终止节点,传输路径1为A-B-C-F,传输路径2为A-D-E-F,传输路径1的顺序为1,传输路径2的顺序为2,传输路径1的顺序先于传输路径2,在进行数据传输前,若网络设备基于传输路径1接收到了终止节点F发送的心跳报文,则将所述传输路径1作为目标传输路径,将所述目标传输路径1发送至所述发送设备,使所述发送设备基于所述目标传输路径进行数据传输;在数据传输过程中,网络设备继续监测所述传输路径1的路径状态,若传输路径1中C-F节点间的链路突然发生异常,网络设备无法基于所述传输路径1接收到所述终止节点发送的心跳报文,则确定所述传输路径1的路径状态为异常状态,将所述传输路径1立刻切换为传输路径2,继续进行设备间的数据传输。In one possible implementation, referring to Figure 6, A is the starting node, F is the terminating node, transmission path 1 is A-B-C-F, transmission path 2 is A-D-E-F, the order of transmission path 1 is 1, and the order of transmission path 2 is 2, and the order of transmission path 1 is prior to transmission path 2. Before data transmission, if the network device receives a heartbeat message sent by the terminating node F based on transmission path 1, the transmission path 1 is used as the target transmission path, and the target transmission path 1 is sent to the sending device, so that the sending device performs data transmission based on the target transmission path; during data transmission, the network device continues to monitor the path status of the transmission path 1. If an abnormality suddenly occurs in the link between the C-F nodes in the transmission path 1, and the network device cannot receive the heartbeat message sent by the terminating node based on the transmission path 1, then it is determined that the path status of the transmission path 1 is an abnormal state, and the transmission path 1 is immediately switched to the transmission path 2 to continue data transmission between devices.
在另一种可实施方式中,当发送设备接收到网络设备发送的另一传输路径后,可以自动将当前传输路径切换为所述另一传输路径,并基于所述另一传输路径进行数据传输。In another possible implementation, after the sending device receives another transmission path sent by the network device, it can automatically switch the current transmission path to the another transmission path, and perform data transmission based on the another transmission path.
在本实施例中,通过在数据传输前对终止节点发送的心跳报文的接收,进而确定所述传输路径的路径状态,实现对传输路径的实时监测,提升数据传输的可靠性,进而将在所述首选路径集合中选出的首次所述路径状态为正常状态的传输路径作为目标传输路径,并将所述目标传输路径的信息发送至发送设备,使所述发送设备基于所述目标传输路径向接收设备进行数据传输,实现为发送设备提供距离短且可靠的传输路径,并在数据传输过程中继续实时监测所述传输路径的路径状态,实现对路径异常状态的快速感知,若所述路径状态被判定为异常状态,则切换所述传输路径为备选的传输路径,继续进行发送设备和接收设备之间的数据传输,避免了因单传输路径异常导致设备间数据传输的中断或失败情况的发生,进一步提升数据传输的可靠性。In this embodiment, by receiving the heartbeat message sent by the terminating node before data transmission, the path status of the transmission path is determined, real-time monitoring of the transmission path is achieved, and the reliability of data transmission is improved. The transmission path whose path status is normal for the first time selected from the preferred path set is used as the target transmission path, and the information of the target transmission path is sent to the sending device, so that the sending device transmits data to the receiving device based on the target transmission path, thereby providing the sending device with a short and reliable transmission path, and continuing to monitor the path status of the transmission path in real time during data transmission, so as to quickly perceive the abnormal state of the path. If the path status is determined to be an abnormal state, the transmission path is switched to an alternative transmission path, and data transmission between the sending device and the receiving device is continued, thereby avoiding the interruption or failure of data transmission between devices due to the abnormality of a single transmission path, and further improving the reliability of data transmission.
在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。In this article, the terms "comprises", "includes" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system that includes a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of more restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or system that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基 于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the above description of the implementation mode, those skilled in the art can clearly understand that the above embodiment method can be implemented by means of software plus a necessary general hardware platform, or by hardware, but in many cases the former is a better implementation mode. Based on this understanding, the technical solution of the present application can essentially or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM/RAM, disk, CD) as described above, and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present application.
以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。 The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims (10)

  1. 一种数据传输方法,包括:A data transmission method, comprising:
    接收发送设备发送的数据传输请求,其中,所述数据传输请求中包含数据传输的起始节点和终止节点;Receiving a data transmission request sent by a sending device, wherein the data transmission request includes a starting node and an ending node of the data transmission;
    根据预设的路径算法和所述数据传输请求,确定自所述起始节点至所述终止节点的首选路径集合,其中,所述首选路径集合中含有至少一条传输路径;Determine a preferred path set from the start node to the end node according to a preset path algorithm and the data transmission request, wherein the preferred path set contains at least one transmission path;
    监测所述首选路径集合中传输路径的路径状态;Monitoring the path status of the transmission paths in the preferred path set;
    根据所述路径状态,在所述首选路径集合中确定目标传输路径,并使所述发送设备基于所述目标传输路径进行数据传输。According to the path status, a target transmission path is determined in the preferred path set, and the sending device is enabled to perform data transmission based on the target transmission path.
  2. 如权利要求1所述的数据传输方法,其中,所述根据预设的路径算法和所述数据传输请求,确定自所述起始节点至所述终止节点的首选路径集合包括:The data transmission method according to claim 1, wherein the step of determining a preferred path set from the starting node to the ending node according to a preset path algorithm and the data transmission request comprises:
    提取所述数据传输请求中的起始节点和终止节点;Extracting a starting node and an ending node in the data transmission request;
    根据预设的路径算法,确定自所述起始节点至所述终止节点的最短传输路径;Determine the shortest transmission path from the starting node to the ending node according to a preset path algorithm;
    对所述最短传输路径进行偏移并生成备选路径集合,从所述备选路径集合中选取k条传输路径合并以作为所述首选路径集合,其中k为大于一的整数。The shortest transmission path is offset to generate a candidate path set, and k transmission paths are selected from the candidate path set and merged to form the preferred path set, where k is an integer greater than one.
  3. 如权利要求2所述的数据传输方法,其中,所述对所述最短传输路径进行偏移并生成备选路径集合包括:The data transmission method according to claim 2, wherein the step of offsetting the shortest transmission path and generating a set of alternative paths comprises:
    根据预设的Yen算法,确定所述最短传输路径中的偏离节点,并生成自所述偏离节点至所述终止节点的第一偏离路径;According to a preset Yen algorithm, a deviation node in the shortest transmission path is determined, and a first deviation path from the deviation node to the terminal node is generated;
    将所述第一偏离路径与自所述起始节点至所述偏离节点的路径进行拼接,形成第二偏离路径,将所述第二偏离路径合并成所述备选路径集合。The first deviated path is concatenated with the path from the starting node to the deviated node to form a second deviated path, and the second deviated paths are merged into the set of candidate paths.
  4. 如权利要求2所述的数据传输方法,其中,所述从所述备选路径集合中选取k条传输路径合并以作为所述首选路径集合包括:The data transmission method according to claim 2, wherein the step of selecting k transmission paths from the candidate path set and merging them as the preferred path set comprises:
    从所述备选路径集合中多次选取k条不完全相同的传输路径,将每次选取的k条传输路径合并成路径组合;Selecting k transmission paths that are not completely the same from the candidate path set multiple times, and merging the k transmission paths selected each time into a path combination;
    确定各所述路径组合的离散值,将所述离散值最高的路径组合作为所述首选路径集合。The discrete value of each of the path combinations is determined, and the path combination with the highest discrete value is used as the preferred path set.
  5. 如权利要求1所述的数据传输方法,其中,所述监测所述首选路径集合中传输路径的路径状态包括:The data transmission method according to claim 1, wherein the monitoring of the path status of the transmission path in the preferred path set comprises:
    确定所述首选路径集合中各传输路径的路径距离;Determining the path distance of each transmission path in the preferred path set;
    根据所述路径距离由小到大进行排序,生成排序后的首选路径集合,并对所述排序后的首选路径集合中各传输路径逐个进行监测。The paths are sorted from small to large according to their distances to generate a sorted preferred path set, and each transmission path in the sorted preferred path set is monitored one by one.
  6. 如权利要求1所述的数据传输方法,其中,所述监测所述首选路径集合中传输路径的路径状态,还包括:The data transmission method according to claim 1, wherein the monitoring the path status of the transmission path in the preferred path set further comprises:
    每间隔预设周期时长监测各所述传输路径的所述终止节点发送的心跳报文;Monitoring the heartbeat messages sent by the terminating nodes of each transmission path at intervals of a preset period;
    若接收到所述心跳报文,则确定所述传输路径的路径状态为正常状态;If the heartbeat message is received, determining that the path state of the transmission path is a normal state;
    若未接收到所述心跳报文,则确定所述传输路径的路径状态为异常状态。If the heartbeat message is not received, it is determined that the path state of the transmission path is an abnormal state.
  7. 如权利要求1所述的数据传输方法,其中,所述路径状态包括异常状态和正常状态,在所述监测所述首选路径集合中传输路径的路径状态之后,还包括:The data transmission method according to claim 1, wherein the path status includes an abnormal state and a normal state, and after monitoring the path status of the transmission path in the preferred path set, further comprising:
    若监测到所述路径状态为异常状态的传输路径,则切换传输路径;If it is detected that the path state is a transmission path in an abnormal state, switching the transmission path;
    若监测到所述路径状态为正常状态的传输路径,则不切换传输路径,继续监测所述正常状态的传 输路径。If the path status is detected as a transmission path in a normal state, the transmission path is not switched, and the transmission path in the normal state is continuously monitored. Transmission path.
  8. 如权利要求1至7中任一项所述的数据传输方法,其中,所述根据所述路径状态,在所述首选路径集合中确定目标传输路径,并使所述发送设备基于所述目标传输路径进行数据传输包括:The data transmission method according to any one of claims 1 to 7, wherein determining a target transmission path in the preferred path set according to the path state, and causing the sending device to perform data transmission based on the target transmission path comprises:
    将在所述首选路径集合中选出的首次所述路径状态为正常状态的传输路径作为目标传输路径;The transmission path selected from the preferred path set and having the path status being normal for the first time is used as the target transmission path;
    将所述目标传输路径发送至所述发送设备,使所述发送设备基于所述目标传输路径进行数据传输。The target transmission path is sent to the sending device, so that the sending device performs data transmission based on the target transmission path.
  9. 一种数据传输设备,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的数据传输程序,所述数据传输程序配置为实现如权利要求1至8中任一项所述的数据传输方法。A data transmission device comprises: a memory, a processor and a data transmission program stored in the memory and executable on the processor, wherein the data transmission program is configured to implement the data transmission method according to any one of claims 1 to 8.
  10. 一种存储介质,其中,所述存储介质上存储有数据传输程序,所述数据传输程序被处理器执行时实现如权利要求1至8任一项所述的数据传输方法。 A storage medium, wherein a data transmission program is stored on the storage medium, and when the data transmission program is executed by a processor, the data transmission method according to any one of claims 1 to 8 is implemented.
PCT/CN2023/105400 2022-09-30 2023-06-30 Data transmission method and device, and storage medium WO2024066637A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211209217.4A CN117811983A (en) 2022-09-30 2022-09-30 Data transmission method, device and storage medium
CN202211209217.4 2022-09-30

Publications (1)

Publication Number Publication Date
WO2024066637A1 true WO2024066637A1 (en) 2024-04-04

Family

ID=90424061

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/105400 WO2024066637A1 (en) 2022-09-30 2023-06-30 Data transmission method and device, and storage medium

Country Status (2)

Country Link
CN (1) CN117811983A (en)
WO (1) WO2024066637A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120099421A1 (en) * 2008-10-03 2012-04-26 Masahiro Hayashitani Communication system, node device, communication method in the communication system, and program
CN109995653A (en) * 2019-04-15 2019-07-09 深圳市迅雷网络技术有限公司 Data transmission method, device, system and the readable storage medium storing program for executing of cross-node
CN110677343A (en) * 2019-09-27 2020-01-10 中国联合网络通信集团有限公司 Data transmission method and system, electronic equipment and storage medium
CN110891021A (en) * 2018-09-11 2020-03-17 中兴通讯股份有限公司 Path calculation method and device and computer readable storage medium
CN112511340A (en) * 2020-11-11 2021-03-16 平安科技(深圳)有限公司 Data transmission method and device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120099421A1 (en) * 2008-10-03 2012-04-26 Masahiro Hayashitani Communication system, node device, communication method in the communication system, and program
CN110891021A (en) * 2018-09-11 2020-03-17 中兴通讯股份有限公司 Path calculation method and device and computer readable storage medium
CN109995653A (en) * 2019-04-15 2019-07-09 深圳市迅雷网络技术有限公司 Data transmission method, device, system and the readable storage medium storing program for executing of cross-node
CN110677343A (en) * 2019-09-27 2020-01-10 中国联合网络通信集团有限公司 Data transmission method and system, electronic equipment and storage medium
CN112511340A (en) * 2020-11-11 2021-03-16 平安科技(深圳)有限公司 Data transmission method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN117811983A (en) 2024-04-02

Similar Documents

Publication Publication Date Title
US10938722B2 (en) In-band telemetry congestion control system
CN108540536B (en) Block chain-based network mass service processing method, equipment and storage medium
US5687168A (en) Link state routing device in ATM communication system
US9755950B2 (en) Path routing for communication sessions
EP3116189A1 (en) Service link selection control method and device
WO2017031858A1 (en) Method and apparatus for detecting time delay state information, and network architecture
US9191269B2 (en) Method and system for providing latency detection based on automated latency measurements of communication network paths
US10623313B2 (en) Path computation method, message responding method, and related device
US10171345B2 (en) Routing communication sessions
CN108401490B (en) Network performance measuring method and detection equipment
US8085688B2 (en) Methods and systems for determining a network data path
WO2016091156A1 (en) Node fault judgement method and device
CN113965508B (en) Dual path data transmission method, electronic device, and computer-readable storage medium
CN114679350A (en) SD-WAN-based link selection method, device and storage medium
CN113542098B (en) Method, system, device and storage medium for establishing and switching SD-WAN tunnel
WO2024066637A1 (en) Data transmission method and device, and storage medium
WO2018188570A1 (en) Data transmission method and apparatus
WO2014029287A1 (en) Method and device for sharing tunnel load
US8379636B2 (en) Methods and apparatuses for establishing M3UA linksets and routes
CN108737264B (en) Data transmission method and device
US11606282B2 (en) Method and device for detecting network reliability
JP5957249B2 (en) Call recording system
CN113595894B (en) Communication method, device, equipment and medium between service nodes and client nodes
US8719448B2 (en) Route determination method and device
CN113872860A (en) Path switching method and device