Business flow data transmission method, device, electronic device and storage medium

By monitoring the data volume of service flow on network equipment and redirecting ports when the threshold is reached or exceeded, the problem of increased service delay caused by sudden congestion in network nodes is solved, and low-latency transmission of service flow and user experience is achieved. promote.

CN114466404BActive Publication Date: 2024-11-12CHINA TELECOM CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210287936.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-22
Publication Date
2024-11-12
Estimated Expiration
2042-03-22

AI Technical Summary

Technical Problem

The prior art cannot respond quickly when the network nodes are suddenly congested, resulting in increased service delay and worse user experience.

Method used

By monitoring the amount of traffic flow data on the network device, redirecting critical traffic flows from the congested port to the low load port when the preset threshold is reached or exceeded, and vice versa, redirecting to the original port when the load is reduced to dynamically adjust the transmission path.

Benefits of technology

It effectively reduces business delays, ensures the delay requirements of key business flows, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114466404B_ABST
    Figure CN114466404B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method, device, electronic device and storage medium for transmitting business flow data, and relates to the field of data communication technology. The method includes: monitoring the business flow data volume outputted by the first target port of a network device, wherein the network device includes: multiple ports, and the first target port is any port of the network device connected to the next-hop device; when the business flow data volume outputted by the first target port is higher than the preset threshold value corresponding to the first target port, the key business flow transmitted by the target port is directed to the second target port, and transmitted to the destination network through the second target port; continue to monitor the business flow data volume outputted by the first target port of the network device, and when the business flow data volume outputted by the first target port is lower than the preset threshold value corresponding to the first target port, the key business flow directed to the second target port is redirected to the first target port, and transmitted to the destination network through the first target port. The present disclosure can guarantee the requirements for the delay of key business flows.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] With the rapid development of the fifth generation mobile communication technology (5G) and the growth of network users, the Internet is facing the problem of users' diversified demands for network services and the huge growth of network traffic. Among them, the burst characteristics of network traffic pose a challenge to the service delay in routing technology.

[0003] At present, the existing commonly used related algorithms usually select optimized paths based on static parameters to reduce service delay, such as link transmission delay and link cost. However, the impact of service delay changes is mainly reflected in network congestion. Since network congestion is a dynamic process, it is more manifested as a sudden increase in queuing delay caused by instantaneous congestion of a certain network node. When the queuing delay increases suddenly and causes the link to suddenly become congested, the existing algorithms cannot respond quickly or effectively, resulting in increased service delay and poor user experience.

[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0005] The present disclosure provides a method, device, electronic device and storage medium for transmitting business flow data, which at least to some extent overcome the problem of increased business delay caused by sudden congestion of network nodes in the related art.

[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.

[0007] According to one aspect of the present disclosure, a method for transmitting business flow data is provided, characterized in that it includes: monitoring the business flow data volume output by a first target port on a network device, wherein the network device includes: multiple ports, and the first target port is any port of the network device connected to a next-hop device; when the business flow data volume output by the first target port is higher than a preset threshold corresponding to the first target port, directing the key business flow transmitted by the first target port to a second target port, and transmitting it to a destination network through the second target port, wherein the second target port is a port on the network device where the business flow data volume is lower than the preset threshold corresponding to the corresponding port and is different from the first target port, and the key business flow is one of the business flows; continuing to monitor the business flow data volume output by the first target port on the network device, and when the business flow data volume output by the first target port is lower than the preset threshold corresponding to the first target port, re-directing the key business flow directed to the second target port to the first target port, and transmitting it to the destination network through the first target port.

[0008] In one embodiment of the present disclosure, the method further includes: detecting whether the network device has a parallel port, wherein the parallel port is a port of the network device connected to a next-hop device and different from the first target port; if the network device has a parallel port, determining the parallel port as a second target port.

[0009] In one embodiment of the present disclosure, the method further includes: if the network device does not have a parallel port, determining a neighbor port as the second target port, the neighbor port being a port of the network device connected to a neighbor device.

[0010] In one embodiment of the present disclosure, the network device is connected to a plurality of neighbor devices, and the method further comprises: filtering out one or more neighbor devices that meet a first preset condition from the plurality of neighbor devices, wherein the first preset condition is:

[0011] Distance(N,D)<Distance(N,S)+Distance(S,D),

[0012] Among them, Distance(N, D) represents the distance from neighbor device N to destination network D, Distance(N, S) represents the distance from neighbor device N to network device S, and Distance(S, D) represents the distance from network device S to destination network D.

[0013] In one embodiment of the present disclosure, after filtering out one or more neighbor devices that meet the first preset condition from the multiple neighbor devices, the method further includes: filtering out one or more neighbor devices that meet the second preset condition from the multiple neighbor devices that meet the first preset condition, wherein the second preset condition is: based on the shortest path first algorithm, calculating the shortest distance from the neighbor device to the destination network.

[0014] In one embodiment of the present disclosure, the preset threshold is determined in the following manner: the preset threshold of the network device is determined according to the queue length value of the first target port of the network device; the preset threshold of the network device is determined according to the packet loss event occurring at the first target port of the network device; or the preset threshold of the network device is determined according to the port utilization of the first target port of the network device. .

[0015] In one embodiment of the present disclosure, the method further includes: marking a message header of the key business flow data; and redirecting a port for outputting the key business flow according to the mark.

[0016] According to another aspect of the present disclosure, a service flow data transmission device is provided, comprising: a service flow data volume monitoring module, used to monitor the service flow data volume output by a first target port on a network device, wherein the network device comprises: a plurality of ports, wherein the first target port is any port of the network device connected to a next-hop device; a port switching module, used to direct a key service flow transmitted by the first target port to a second target port when the service flow data volume output by the first target port is higher than a preset threshold value corresponding to the first target port, and transmit the key service flow transmitted by the first target port to a destination network through the second target port, wherein the second target port is a port on the network device where the service flow data volume is lower than the preset threshold value corresponding to the corresponding port and is different from the first target port, and the key service flow is one of the service flows; a port switching back module, used to continue to monitor the service flow data volume output by the first target port on the network device, and when the service flow data volume output by the first target port is lower than the preset threshold value corresponding to the first target port, redirect the key service flow directed to the second target port to the first target port, and transmit the key service flow to the destination network through the first target port.

[0017] According to another aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the above-mentioned service flow data transmission method by executing the executable instructions.

[0018] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned service flow data transmission method is implemented.

[0019] The embodiment of the present disclosure provides a method for transmitting business flow data, which monitors the business flow data volume output by the first target port of a network device, and when the business flow data volume output by the first target port is higher than the preset threshold value corresponding to the first target port, directs the business flow transmitted by the first target port to the second target port, and continues to monitor the business flow data volume output by the first target port of the network device, and when the business flow data volume output by the first target port is lower than the preset threshold value corresponding to the first target port, redirects the business flow directed to the second target port to the first target port. The embodiment of the present disclosure can redirect the key business flow in time when congestion is detected on the port, so as to ensure the latency requirement of the data transmission of the key business flow and improve the user experience.

[0020] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0022] Figure 1 A flow chart of a method for transmitting business flow data in an embodiment of the present disclosure is shown;

[0023] Figure 2 A flow chart of a method for redirecting a transmission port of a service flow in an embodiment of the present disclosure is shown;

[0024] Figure 3 A schematic diagram showing a business flow data transmission with a parallel port in an embodiment of the present disclosure is shown;

[0025] Figure 4 A flowchart showing a specific example of a method for transmitting business flow data in an embodiment of the present disclosure;

[0026] Figure 5 A schematic diagram showing a service flow data transmission with neighboring devices in an embodiment of the present disclosure is shown;

[0027] Figure 6 A schematic diagram of a device for transmitting business flow data in an embodiment of the present disclosure is shown;

[0028] Figure 7 A structural block diagram of a computer device according to an embodiment of the present disclosure is shown;

[0029] Figure 8 A structural block diagram of a computer-readable storage medium in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0030] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0031] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0032] The present exemplary implementation is described in detail below with reference to the accompanying drawings and embodiments.

[0033] First, a method for transmitting business flow data is provided in an embodiment of the present disclosure. The method can be executed by any electronic device with computing and processing capabilities.

[0034] Figure 1 A flow chart of a method for transmitting business flow data in an embodiment of the present disclosure is shown as follows: Figure 1 As shown, the service flow data transmission method provided in the embodiment of the present disclosure includes the following steps:

[0035] S102, monitoring the volume of business flow data output by a first target port on a network device, wherein the network device comprises: a plurality of ports, and the first target port is any port of the network device connected to a next-hop device.

[0036] It should be noted that the above-mentioned network device can be a physical entity connected to the network. Optionally, the network device in the embodiment of the present disclosure can be any network device such as a bridge, a gateway, a switch, a computer, etc. The above-mentioned port can be a data outlet for the network device to communicate with the outside world. Optionally, the port in the embodiment of the present disclosure can be an interface for connecting other network devices in any network device such as a bridge, a gateway, a switch, a computer, etc. The above-mentioned data volume can be the number of data or the capacity of the data.

[0037] For example, the number of business flow data output by the first target port on the gateway is detected.

[0038] S104, when the amount of business flow data output by the first target port is higher than the preset threshold corresponding to the first target port, the key business flow transmitted by the first target port is directed to the second target port, and transmitted to the destination network through the second target port, wherein the second target port is a port on the network device where the amount of business flow data is lower than the preset threshold corresponding to the corresponding port and is different from the first target port.

[0039] It should be noted that the above-mentioned service flow may be a data unit exchanged and transmitted in a network with a deterministic requirement for latency. The above-mentioned key service flow may be a service flow with a deterministic latency. For example, the above-mentioned service flow may be a message. The above-mentioned destination network may be a network address for receiving the service flow.

[0040] For example, in one embodiment, a business flow is transmitted to a destination network through a first target port, and the number of data packets of the output queue length threshold (equivalent to the above-mentioned preset threshold) corresponding to the first target port is set to 1000. At this time, when the hardware detects in real time that the number of data packets of the output queue length of the second target port is 200, when the hardware detects in real time that the number of data packets of the output queue length of the first target port suddenly increases to 1200, the key business flow (such as delay-sensitive or packet loss-sensitive business flow) transmitted by the first target port is redirected to the second target port and transmitted to the destination network through the second target port.

[0041] Optionally, in one embodiment, the business flow is transmitted to the destination network through the first target port, and the threshold of the first target port is set to the occurrence of packet loss (equivalent to the above-mentioned preset threshold), and when the hardware detects in real time that no packet loss occurs at the second target port, the key business flow (such as delay-sensitive or packet loss-sensitive business flow) transmitted by the first target port is redirected to the second target port and transmitted to the destination network through the second target port.

[0042] Optionally, in one embodiment, the business flow is transmitted to the destination network through the first target port, the port utilization threshold of the first target port (equivalent to the above-mentioned preset threshold) is set to 90%, and the port utilization of the second target port is detected to be 20% at this time. When the port utilization of the first target port is detected in real time by hardware to be greater than 90%, the key business flow (such as delay-sensitive or packet loss-sensitive business flow) transmitted by the first target port is redirected to the second target port and transmitted to the destination network through the second target port.

[0043] S106, continue to monitor the business flow data volume output by the first target port on the network device, and when the business flow data volume output by the first target port is lower than the preset threshold value corresponding to the first target port, redirect the key business flow directed to the second target port to the first target port, and transmit it to the destination network through the first target port.

[0044] For example, in one embodiment, the number of data packets whose output queue length of the first target port on the network device continues to be monitored is 500, and the key business flow data directed to the second target port is redirected to the first target port. At this time, the key data business flow is still transmitted to the destination network through the first target port.

[0045] Optionally, in one embodiment, while continuing to monitor that no packet loss event occurs at the first target port on the network device, the key business flow data directed to the second target port is redirected to the first target port. At this time, the key data business flow is still transmitted to the destination network through the first target port.

[0046] Optionally, in one embodiment, when the port utilization of the first target port on the network device continues to be monitored to be 50%, the key business flow data directed to the second target port is redirected to the first target port. At this time, the key data business flow is still transmitted to the destination network through the first target port.

[0047] In the specific implementation, the output port of the key business flow is dynamically adjusted according to the amount of business flow data output by the port and the preset threshold corresponding to the port. This can ensure that the key business flow will not be congested when the amount of business flow data surges, and quickly transmit the business flow to ensure the latency requirements of the key business flow.

[0048] In one embodiment of the present disclosure, Figure 2 As shown, the service flow data transmission method provided in the embodiment of the present disclosure can redirect the transmission port of the key service flow through the following steps, which can ensure the low latency requirement of key service data transmission:

[0049] S202, detecting whether the network device has a parallel port, wherein the parallel port is a port of the network device connected to a next-hop device and different from the first target port.

[0050] It should be noted that the above-mentioned parallel port may be a port on a network device through which data is transmitted in a parallel manner.

[0051] For example, in one embodiment, the A device is connected to the B device via two ports, namely, an X port and a Y port, where the Y port is a parallel port of the X port.

[0052] S204: If the network device has a parallel port, determine the parallel port as the second target port.

[0053] In specific implementation, Figure 3 As shown, the service flow is transmitted from network device PE1 to network device PE2 through network device P1 and network device P2, and then transmitted to the destination network by network device PE2. Among them, network device P1 has two parallel ports P11 (equivalent to the above-mentioned first target port) and P12 (equivalent to the above-mentioned parallel port) connected to the next-hop network device P2. When the P11 port is instantly congested (equivalent to the service flow data volume output by the above-mentioned first target port being higher than the preset threshold corresponding to the first target port), the non-congested port P12 is selected as the redirection port (equivalent to the above-mentioned second target port).

[0054] Through the above embodiment, based on the amount of business flow data output by the port and the preset threshold corresponding to the port, when congestion occurs at the port, the output port of the key business flow is adjusted to be changed to the parallel port of the port, which can ensure the low latency requirement of key business data transmission when the amount of business flow data surges.

[0055] In one embodiment of the present disclosure, Figure 4 As shown, the service flow data transmission method provided in the embodiment of the present disclosure can redirect the service flow port that is congested and does not have a parallel port through the following steps, thereby reducing the service flow delay caused by the absence of a parallel port:

[0056] S402: If the network device does not have a parallel port, determine a neighbor port as the second target port, where the neighbor port is a port of the network device connected to a neighbor device.

[0057] It should be noted that the above-mentioned neighbor device can be a physical entity in the network directly connected to the network device. The neighbor device in the embodiment of the present disclosure can be any neighbor device such as a router, a bridge, a gateway, a switch, a computer, etc.

[0058] In one embodiment of the present disclosure, the service flow data transmission method provided in the embodiment of the present disclosure screens neighbor devices by the following steps: screening one or more neighbor devices that meet a first preset condition from a plurality of neighbor devices, wherein the first preset condition is:

[0059] Distance(N, D)<Distance(N, S)+Distance(S, D), where Distance(N, D) represents the distance from neighbor device N to destination network D, Distance(N, S) represents the distance from neighbor device N to local network device S, and Distance(S, D) represents the distance from local network device S to destination network D.

[0060] In specific implementation, Figure 5As shown in the figure, the service flow is transmitted from network device PE1 to network device PE2 through network device P1 and network device P2, and then transmitted to the destination network by network device PE2. Network device P1 does not have a parallel port to connect to network device P2. Network device P1 has neighbor device P3 (equivalent to network device P3) and neighbor device P6 (equivalent to network device P6). Network device P7 is the next hop device of neighbor device P6, and network device P4 is the next hop device of neighbor device P3. The delay between network device PE1 and network device P1 is 100ms, the delay between network device PE1 and network device P3 is 100ms, and the delay between network device P1 and network device P3 is 200ms. The delay between network equipment P1 and network equipment P6 is 500ms, the delay between network equipment P3 and network equipment P4 is 300ms, the delay between network equipment P1 and network equipment P2 is 200ms, the delay between network equipment P6 and network equipment P7 is 300ms, the delay between network equipment P2 and network equipment P4 is 1000ms, the delay between network equipment P4 and network equipment PE2 is 300ms, the delay between network equipment P2 and network equipment PE2 is 100ms, and the delay between network equipment P7 and network equipment P2 is 200ms. The delay between the devices PE2 is 300ms. At this time, a loop-free shortest path port (device) is calculated as the redirection port (device) by the following method (equivalent to the first preset condition): the neighbor device needs to meet the following conditions to be a loop-free neighbor device, the distance from the neighbor device to the destination network is less than the sum of the distance from the neighbor device to the local network device and the distance from the local network device to the destination network. When network device P1 to network device P2 is instantly congested and becomes congested, it is necessary to calculate the network device P1 in addition to the neighbor device P2. 2, where the neighbor device P3 of network device P1 calculates the shortest path according to the above steps: the delay between network device P3 and network device P4 is 300ms, and the sum of the delay between network device P4 and network device PE2 is 300ms, which is 600ms, which is greater than the sum of the delay between P3 and network device P1 (200ms), the delay between P1 and network device P2 (200ms), and the delay between network device P2 and network device PE2 (100ms), which is 500ms. The condition of a loop-free neighbor device is not met. The neighbor device P6 of the network device P1 calculates the shortest path according to the above steps: the sum of the delay between the network device P6 and the network device P7 (300ms) and the delay between the network device P7 and the network device PE2 (300ms) is 600ms, which is less than the sum of the delay between the network device P6 and the network device P1 (500ms) plus the delay between P1 and the network device P2 (200ms) and the delay between the network device P2 and the network device PE2 (100ms) (800ms), satisfying the loop-free neighbor device condition, that is, the neighbor port between the network device P1 and the neighbor device P6 is determined as the second target port.

[0061] Through the above embodiment, when congestion occurs on a port and the port has no parallel port, the formula is used to calculate the loop-free neighbor device, which can ensure that the business data can be transmitted with low latency when the business flow data volume surges and the port has no parallel port.

[0062] In one embodiment of the present disclosure, the present disclosure selects a neighbor device with the shortest distance to a destination network from multiple neighbor devices that satisfy a first preset condition by the following method: selects one or more neighbor devices that satisfy a second preset condition from multiple neighbor devices that satisfy the first preset condition, wherein the second preset condition is: based on the shortest path first algorithm, the shortest distance from the neighbor device to the destination network is calculated.

[0063] Taking the case where there are three neighbor devices that meet the first preset condition, namely neighbor device N1, neighbor device N2, and neighbor device N3, based on the shortest path first algorithm, it is calculated that the shortest path time of neighbor device N1 is 800ms, the shortest path time of neighbor device N2 is 700ms, and the shortest path time of neighbor device N3 is 900ms, and the neighbor device N2 with the shortest distance to the destination network is screened out.

[0064] Through the above embodiments, when a port has multiple loop-free neighbor devices, the shortest path first algorithm is used to find the neighbor device with the shortest distance, thereby ensuring that service data can be transmitted with low latency.

[0065] In one embodiment of the present disclosure, the preset threshold is determined according to the following methods: the preset threshold of the network device is determined according to the queue length value of the first target port of the network device; the preset threshold of the network device is determined according to the packet loss event occurring at the first target port of the network device; or the preset threshold of the network device is determined according to the port utilization of the first target port of the network device.

[0066] For example, in one embodiment, the queue length information of the network device is obtained; and the preset threshold of the network device is determined according to the queue length of the network device. For example, the queue length of the network device is obtained to be 100; and the preset threshold of the network device is determined to be 50 according to the queue length of the network device.

[0067] In one embodiment of the present disclosure, the present disclosure controls the port for outputting the service flow by the following method: marking a message header of the service flow data; and determining the port for outputting the service flow according to the mark.

[0068] It should be noted that the above-mentioned message header may be a Hyper Text Transfer Protocol (HTTP) message header. Optionally, the message header in the embodiment of the present disclosure may be any one of the fields such as General Header Fields, Request Header Fields, Response Header Fields, and Content Header Fields.

[0069] For example, in the IPv4 packet header, the Type Of Service (ToS) field / Differentiated Services Code Point (DSCP) field is identified, and in the IPv6 packet header, the Traffic Control (TC) or Flow Label (Flow Label) field is identified. Based on the identification, the port for outputting the service flow is controlled through the Access Control Lists (ACL).

[0070] Based on the same inventive concept, the embodiments of the present disclosure also provide a service flow data transmission device, as described in the following embodiments. Since the principle of solving the problem in the device embodiment is similar to that in the above method embodiment, the implementation of the device embodiment can refer to the implementation of the above method embodiment, and the repeated parts will not be repeated.

[0071] Figure 6 A schematic diagram of a device for transmitting business flow data in an embodiment of the present disclosure is shown. Figure 6 As shown, the device includes: a service flow data volume monitoring module 601, a port switching module 602 and a port switching back module 603.

[0072] Among them, the business flow data volume monitoring module 601 is used to monitor the business flow data volume output by the first target port on the network device, wherein the network device includes: multiple ports, the first target port is any port of the network device connecting to the next-hop device; the port switching module 602 is used to direct the key business flow transmitted by the first target port to the second target port when the business flow data volume output by the first target port is higher than the preset threshold corresponding to the first target port, and transmit it to the destination network through the second target port, wherein the second target port is a port on the network device where the business flow data volume is lower than the preset threshold corresponding to the corresponding port and is different from the first target port, and the key business flow is one of the business flows; the port switching back module 603 is used to continue to monitor the business flow data volume output by the first target port on the network device, and when the business flow data volume output by the first target port is lower than the preset threshold corresponding to the first target port, the key business flow directed to the second target port is redirected to the first target port, and transmitted to the destination network through the first target port.

[0073] In one embodiment of the present disclosure, the above-mentioned business flow data transmission device also includes a parallel port module 604: used to detect whether there is a parallel port on the network device, wherein the parallel port is a port on the network device that connects to the next-hop device and is different from the first target port; if the network device has a parallel port, the parallel port is determined as the second target port.

[0074] In one embodiment of the present disclosure, the above-mentioned business flow data transmission device also includes a neighbor port module 605: if the network device does not have a parallel port, then determine the neighbor port as the second target port, and the neighbor port is a port of the network device connecting to the neighbor device.

[0075] In one embodiment of the present disclosure, the neighbor port module 605 is further used to: filter out one or more neighbor devices that meet a first preset condition from a plurality of neighbor devices, wherein the first preset condition is:

[0076] Distance(N, D)<Distance(N, S)+Distance(S, D), where Distance(N, D) represents the distance from neighbor device N to destination network D, Distance(N, S) represents the distance from neighbor device N to network device S, and Distance(S, D) represents the distance from network device S to destination network D.

[0077] In one embodiment of the present disclosure, the neighbor port module 605 is further used to filter out one or more neighbor devices that meet a second preset condition from a plurality of neighbor devices that meet a first preset condition, wherein the second preset condition is to calculate the shortest distance from the neighbor device to the destination network based on a shortest path first algorithm.

[0078] In one embodiment of the present disclosure, the above-mentioned business flow data transmission device also includes a preset threshold determination module 606: used to determine the preset threshold according to the following methods: determining the preset threshold of the network device according to the queue length value of the first target port of the network device; determining the preset threshold of the network device according to the packet loss event occurring at the first target port of the network device; or determining the preset threshold of the network device according to the port utilization of the first target port of the network device.

[0079] In one embodiment of the present disclosure, the above-mentioned business flow data transmission device also includes a business flow output control module 607: marking the message header of the key business flow data; and redirecting the port of the key business flow output according to the mark.

[0080] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".

[0081] Refer to the following Figure 7 An electronic device 700 according to this embodiment of the present disclosure is described. Figure 7 The electronic device 700 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0082] like Figure 7 As shown, the electronic device 700 is in the form of a general computing device. The components of the electronic device 700 may include but are not limited to: at least one processing unit 710, at least one storage unit 720, and a bus 730 connecting different system components (including the storage unit 720 and the processing unit 710).

[0083] The storage unit stores program codes, which can be executed by the processing unit 710, so that the processing unit 710 executes the steps described in the above “exemplary method” section of this specification according to various exemplary embodiments of the present disclosure.

[0084] For example, the processing unit 710 can execute the following steps of the above-mentioned method embodiment: monitor the business flow data volume output by the first target port on the network device, wherein the network device includes: multiple ports, and the first target port is any port of the network device connecting to the next-hop device; when the business flow data volume output by the first target port is higher than the preset threshold corresponding to the first target port, direct the key business flow transmitted by the first target port to the second target port, and transmit it to the destination network through the second target port, wherein the second target port is a port on the network device where the business flow data volume is lower than the preset threshold corresponding to the corresponding port and is different from the first target port, and the key business flow is one of the business flows; continue to monitor the business flow data volume output by the first target port on the network device, and when the business flow data volume output by the first target port is lower than the preset threshold corresponding to the first target port, re-direct the key business flow directed to the second target port to the first target port, and transmit it to the destination network through the first target port.

[0085] For example, the processing unit 710 can execute the following steps of the above method embodiment: detect whether the network device has a parallel port, where the parallel port is a port that connects the network device to the next-hop device and is different from the target port; if the network device has a parallel port, determine the parallel port as the second target port.

[0086] For example, the processing unit 710 may execute the following steps of the above method embodiment: if the network device does not have a parallel port, determine a neighbor port as the second target port, where the neighbor port is a port of the network device connected to a neighbor device.

[0087] For example, the processing unit 710 may perform the following steps of the above method embodiment: filter out one or more neighbor devices that meet a first preset condition from a plurality of neighbor devices, wherein the first preset condition is:

[0088] Distance(N, D)<Distance(N, S)+Distance(S, D), where Distance(N, D) represents the distance from neighbor device N to destination network D, Distance(N, S) represents the distance from neighbor device N to network device S, and Distance(S, D) represents the distance from network device S to destination network D.

[0089] For example, the processing unit 710 can execute the following steps of the above method embodiment: filter out one or more neighbor devices that meet the second preset condition from multiple neighbor devices that meet the first preset condition, wherein the second preset condition is: based on the shortest path first algorithm, calculate the shortest distance from the neighbor device to the destination network.

[0090] For example, the processing unit 710 can execute the following steps of the above method embodiment: determine the preset threshold according to the following methods: determine the preset threshold of the network device according to the queue length value of the first target port of the network device; determine the preset threshold of the network device according to the packet loss event occurring at the first target port of the network device; or determine the preset threshold of the network device according to the port utilization of the first target port of the network device.

[0091] For example, the processing unit 710 may execute the following steps of the above method embodiment: marking the message header of the key business flow data; and redirecting the port of the key business flow output according to the mark.

[0092] The storage unit 720 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 7201 and / or a cache storage unit 7202 , and may further include a read-only storage unit (ROM) 7203 .

[0093] The storage unit 720 may also include a program / utility 7204 having a set (at least one) of program modules 7205, such program modules 7205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0094] Bus 730 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0095] The electronic device 700 may also communicate with one or more external devices 740 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 700, and / or communicate with any device that enables the electronic device 700 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 750. Furthermore, the electronic device 700 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 760. As shown, the network adapter 760 communicates with other modules of the electronic device 700 via a bus 730. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 700, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0096] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0097] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is further provided, which may be a readable signal medium or a readable storage medium. Figure 8 A schematic diagram of a computer-readable storage medium in an embodiment of the present disclosure is shown. Figure 8 As shown, a program product capable of implementing the above method of the present disclosure is stored on the computer-readable storage medium 800. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary implementations of the present disclosure described in the above “Exemplary Method” section of this specification.

[0098] For example, when the program product in the embodiment of the present disclosure is executed by a processor, the method implements the following steps: monitoring the business flow data volume output by the first target port on the network device, wherein the network device includes: multiple ports, and the first target port is any port of the network device connecting to the next-hop device; when the business flow data volume output by the first target port is higher than the preset threshold corresponding to the first target port, directing the key business flow transmitted by the first target port to the second target port, and transmitting it to the destination network through the second target port, wherein the second target port is a port on the network device where the business flow data volume is lower than the preset threshold corresponding to the corresponding port and is different from the first target port, and the key business flow is one of the business flows; continuing to monitor the business flow data volume output by the first target port on the network device, and when the business flow data volume output by the first target port is lower than the preset threshold corresponding to the first target port, re-directing the key business flow directed to the second target port to the first target port, and transmitting it to the destination network through the first target port.

[0099] For example, when the program product in the embodiment of the present disclosure is executed by a processor, the method implements the following steps: detecting whether the network device has a parallel port, wherein the parallel port is a port of the network device connected to the next-hop device and different from the target port; if the network device has a parallel port, determining the parallel port as the second target port.

[0100] For example, when the program product in the embodiment of the present disclosure is executed by a processor, the following steps are implemented: if the network device does not have a parallel port, a neighbor port is determined as the second target port, and the neighbor port is a port of the network device connected to the neighbor device.

[0101] For example, when the program product in the embodiment of the present disclosure is executed by a processor, the method implements the following steps: one or more neighbor devices that meet a first preset condition are screened out from a plurality of neighbor devices, wherein the first preset condition is:

[0102] Distance(N,D)<Distance(N,S)+Distance(S,D),

[0103] Among them, Distance(N, D) represents the distance from neighbor device N to destination network D, Distance(N, S) represents the distance from neighbor device N to network device S, and Distance(S, D) represents the distance from network device S to destination network D.

[0104] For example, when the program product in the embodiment of the present disclosure is executed by a processor, the method implements the following steps: filtering out one or more neighbor devices that meet a second preset condition from multiple neighbor devices that meet a first preset condition, wherein the second preset condition is: based on the shortest path first algorithm, calculating the shortest distance from the neighbor device to the destination network.

[0105] For example, when the program product in the embodiment of the present disclosure is executed by a processor, the method implements the following steps: determining the preset threshold value according to the following method: determining the preset threshold value of the network device according to the queue length value of the first target port of the network device; determining the preset threshold value of the network device according to the packet loss event occurring at the first target port of the network device; or determining the preset threshold value of the network device according to the port utilization of the first target port of the network device.

[0106] For example, when the program product in the embodiment of the present disclosure is executed by a processor, the following steps are implemented: marking the message header of the key business flow data; and redirecting the port of the key business flow output according to the mark.

[0107] More specific examples of computer-readable storage media in the present disclosure may include, but are not limited to, an electrical connection having one or more conductors, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0108] In the present disclosure, a computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, wherein a readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0109] Alternatively, the program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0110] In a specific implementation, the program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).

[0111] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0112] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0113] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0114] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.

Claims

1. A method for transmitting business flow data, characterized in that: include: Monitoring the volume of business flow data output by a first target port on a network device, wherein the network device comprises: a plurality of ports, and the first target port is any port of the network device connected to a next-hop device; When the amount of business flow data output by the first target port is higher than a preset threshold value corresponding to the first target port, direct the key business flow transmitted by the first target port to a second target port, and transmit it to the destination network through the second target port, wherein the second target port is a port on the network device where the amount of business flow data is lower than the preset threshold value corresponding to the corresponding port and is different from the first target port, and the key business flow is one of the business flows; Continue to monitor the amount of business flow data output by the first target port on the network device, and when the amount of business flow data output by the first target port is lower than a preset threshold corresponding to the first target port, redirect the key business flow directed to the second target port to the first target port, and transmit it to the destination network through the first target port; Detecting whether the network device has a parallel port, wherein the parallel port is a port of the network device connected to a next-hop device and different from the first target port; If the network device does not have a parallel port, a neighbor port is determined as the second target port, wherein the neighbor port is a port of the network device connected to a neighbor device; The network device is connected to multiple neighbor devices, and one or more neighbor devices that meet a first preset condition are screened out from the multiple neighbor devices, wherein the first preset condition is: a distance from the neighbor device N to the destination network D is less than the sum of a distance from the neighbor device N to the network device S and a distance from the network device S to the destination network D.

2. The method for transmitting service flow data according to claim 1, characterized in that: The method further comprises: Detecting whether the network device has a parallel port, wherein the parallel port is a port of the network device connected to a next-hop device and different from the first target port; If the network device has a parallel port, the parallel port is determined as the second target port.

3. The method for transmitting business flow data according to claim 1, characterized in that: After one or more neighbor devices satisfying the first preset condition are screened out from the plurality of neighbor devices, the method further includes: One or more neighbor devices that meet a second preset condition are screened out from the multiple neighbor devices that meet the first preset condition, wherein the second preset condition is: based on a shortest path first algorithm, the shortest distance from the neighbor device to the destination network is calculated.

4. The method for transmitting service flow data according to claim 1, characterized in that: The preset threshold is determined as follows: Determine a preset threshold of the network device according to a queue length value of the first target port of the network device; Determine the preset threshold of the network device according to the packet loss event occurring at the first target port of the network device; or, A preset threshold of the network device is determined according to the port utilization of the first target port of the network device.

5. The method for transmitting service flow data according to claim 1, characterized in that: The method further comprises: Marking the message header of the key business flow data; Redirect the port of the key business flow output according to the identifier.

6. A service flow data transmission device, characterized in that: include: A service flow data volume monitoring module, used to monitor the service flow data volume output by a first target port on a network device, wherein the network device comprises: a plurality of ports, the first target port being any port of the network device connected to a next-hop device; a port switching module, configured to direct the key business flow transmitted by the first target port to a second target port when the business flow data volume output by the first target port is higher than a preset threshold value corresponding to the first target port, and transmit the key business flow transmitted by the first target port to a destination network through the second target port, wherein the second target port is a port on the network device where the business flow data volume is lower than the preset threshold value corresponding to the corresponding port and is different from the first target port, and the key business flow is one of the business flows; a port switching back module, configured to continue to monitor the amount of business flow data output by the first target port on the network device, and when the amount of business flow data output by the first target port is lower than a preset threshold value corresponding to the first target port, redirect the key business flow directed to the second target port to the first target port, and transmit it to the destination network through the first target port; A parallel port module, used for detecting whether the network device has a parallel port, wherein the parallel port is a port of the network device connected to a next-hop device and different from the first target port; A neighbor port module is used to determine a neighbor port as a second target port if the network device does not have a parallel port, and the neighbor port is a port of the network device connected to a neighbor device; the network device is connected to multiple neighbor devices, and one or more neighbor devices that meet a first preset condition are screened out from the multiple neighbor devices, wherein the first preset condition is: the distance from the neighbor device N to the destination network D is less than the sum of the distance from the neighbor device N to the network device S and the distance from the network device S to the destination network D.

7. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the service flow data transmission method according to any one of claims 1 to 5 by executing the executable instructions.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the service flow data transmission method according to any one of claims 1 to 5 is implemented.