CN114466404A - Business flow data transmission method and device, electronic equipment and storage medium - Google Patents

Business flow data transmission method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114466404A
CN114466404A CN202210287936.1A CN202210287936A CN114466404A CN 114466404 A CN114466404 A CN 114466404A CN 202210287936 A CN202210287936 A CN 202210287936A CN 114466404 A CN114466404 A CN 114466404A
Authority
CN
China
Prior art keywords
port
target port
traffic flow
network
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210287936.1A
Other languages
Chinese (zh)
Inventor
何晓明
贺晓东
李韶英
刘志华
郑忠民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202210287936.1A priority Critical patent/CN114466404A/en
Publication of CN114466404A publication Critical patent/CN114466404A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0289Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0231Traffic management, e.g. flow control or congestion control based on communication conditions
    • H04W28/0236Traffic management, e.g. flow control or congestion control based on communication conditions radio quality, e.g. interference, losses or delay
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0231Traffic management, e.g. flow control or congestion control based on communication conditions
    • H04W28/0242Determining whether packet losses are due to overload or to deterioration of radio communication conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/12Communication route or path selection, e.g. power-based or shortest path routing based on transmission quality or channel quality

Abstract

The disclosure provides a service flow data transmission method, a service flow data transmission device, electronic equipment and a storage medium, and relates to the technical field of data communication. The method comprises the following steps: monitoring the traffic flow data volume output by a first target port on a network device, wherein the network device comprises: the first target port is any one port of the network equipment connected with the next hop equipment; when the traffic flow data output by the first target port is higher than a preset threshold corresponding to the first target port, directing the key traffic flow transmitted by the target port to a second target port, and transmitting the key traffic flow to a destination network through the second target port; and continuously monitoring the traffic flow data volume output by the first target port on the network equipment, and when the traffic flow data volume output by the first target port is lower than a preset threshold corresponding to the first target port, redirecting the key traffic flow directed to the second target port to the first target port, and transmitting the key traffic flow to a target network through the first target port. The method and the device can guarantee the requirement of the time delay of the key service flow.

Description

Service flow data transmission method, device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of data communication technologies, and in particular, to a method and an apparatus for transmitting service stream data, an electronic device, and a storage medium.
Background
With the tremendous development of the fifth Generation Mobile Communication Technology (5G) and the growth of network users, the internet faces the problem of diversified demands for network services and the tremendous growth of network traffic. The burst characteristic of the network traffic provides a challenge to the service delay in the routing technology.
At present, the existing common correlation algorithm usually selects an optimized path according to static parameters to reduce service delay, such as link transmission delay and link cost. However, the change affecting the service delay is mainly reflected in the network congestion condition, and the network congestion is a dynamically generated process, which is more reflected in that the instantaneous congestion of a certain network node causes the sudden increase of the queuing delay. When the link suddenly generates congestion due to sudden increase of queuing delay, the conventional algorithm cannot make quick or effective reaction, so that the service delay is increased, and the user experience is poor.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The present disclosure provides a method and an apparatus for transmitting service stream data, an electronic device, and a storage medium, which at least to some extent overcome the problem of service delay increase caused by network node congestion suddenly in the related art.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to an aspect of the present disclosure, there is provided a method for transmitting traffic stream data, including: monitoring traffic flow data volume output by a first target port on a network device, wherein the network device comprises: the first target port is any one port of the network equipment connected with next hop equipment; when the traffic flow data volume output by the first target port is higher than a preset threshold corresponding to the first target port, directing a key traffic flow transmitted by the first target port to a second target port, and transmitting the key traffic flow to a destination network through the second target port, wherein the second target port is a port, which is different from the first target port, of which the traffic flow data volume on the network equipment is lower than the preset threshold corresponding to a corresponding port, and the key traffic flow is one of the traffic flows; and continuously monitoring the traffic flow data volume output by a first target port on the network equipment, and when the traffic flow data volume output by the first target port is lower than a preset threshold corresponding to the first target port, redirecting the key traffic flow directed to the second target port to the first target port, and transmitting the key traffic flow to a target network through the first target port.
In one embodiment of the present disclosure, the method further comprises: detecting whether a parallel port exists in the network equipment, wherein the parallel port is a port which is different from the first target port and is connected with a next hop equipment by the network equipment; and if the network equipment has a parallel port, determining the parallel port as a second target port.
In one embodiment of the present disclosure, the method further comprises: if the network equipment does not have a parallel port, determining a neighbor port as a second target port, wherein the neighbor port is a port of the network equipment connected with the neighbor equipment.
In one embodiment of the present disclosure, the network device connects to a plurality of neighbor devices, and the method further includes: screening one or more neighbor devices meeting a first preset condition from the plurality of neighbor devices, wherein the first preset condition is as follows:
Distance(N,D)<Distance(N,S)+Distance(S,D),
where Distance (N, D) represents the Distance from the neighbor device N to the destination network D, Distance (N, S) represents the Distance from the neighbor device N to the network device S, and Distance (S, D) represents the Distance from the network device S to the destination network D.
In one embodiment of the present disclosure, after screening out one or more neighbor devices satisfying a first preset condition from the plurality of neighbor devices, the method further includes: screening one or more neighbor devices meeting a second preset condition from the plurality of neighbor devices meeting the first preset condition, wherein the second preset condition is as follows: and calculating to obtain the shortest distance from the neighbor equipment to the destination network based on a shortest path first algorithm.
In one embodiment of the present disclosure, the preset threshold is determined according to the following manner: determining a preset threshold value of the network equipment according to the queue length value of the first target port of the network equipment; determining a preset threshold value of the network equipment according to a packet loss event occurring at the first target port of the network equipment; or, determining a preset threshold of the network device according to the port utilization of the first target port of the network device. .
In one embodiment of the present disclosure, the method further comprises: identifying the message header of the key service flow data; and redirecting the port for outputting the key service flow according to the identification.
According to another aspect of the present disclosure, there is provided a traffic stream data transmission apparatus including: a traffic flow data amount monitoring module, configured to monitor a traffic flow data amount output by a first target port on a network device, where the network device includes: the first target port is any one port of the network equipment connected with next hop equipment; a port switching module, configured to, when traffic flow data volume output by the first target port is higher than a preset threshold corresponding to the first target port, direct a key traffic flow transmitted by the first target port to a second target port, and transmit the key traffic flow to a destination network through the second target port, where the second target port is a port on the network device, where the traffic flow data volume is lower than the preset threshold corresponding to a corresponding port and is different from the first target port, and the key traffic flow is one of the traffic flows; and the port switching-back module is used for continuously monitoring the traffic flow data volume output by a first target port on the network equipment, and when the traffic flow data volume output by the first target port is lower than a preset threshold corresponding to the first target port, redirecting the key traffic flow directed to the second target port to the first target port and transmitting the key traffic flow to a target network through the first target port.
According to still another aspect of the present disclosure, there is provided an electronic device including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the above-mentioned traffic flow data transmission method via executing the executable instructions.
According to yet another aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the traffic stream data transmission method described above.
The method for transmitting the service flow data provided by the embodiment of the disclosure monitors the service flow data volume output by a first target port on the network device, directs the 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 corresponding to the first target port, continues to monitor the service flow data volume output by the first target port on the network device, and redirects the service flow directed to the second target port to the first target port when the service flow data volume output by the first target port is lower than the preset threshold corresponding to the first target port. The embodiment of the disclosure can redirect the key service stream in time when the port is detected to be congested, so as to ensure the time delay requirement of the transmission of the key service stream data and improve the user experience.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
Fig. 1 shows a flow chart of a traffic stream data transmission method in an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating a method for redirecting a transmission port of a traffic flow in an embodiment of the present disclosure;
fig. 3 is a schematic diagram illustrating traffic flow data transmission with parallel ports in an embodiment of the disclosure;
fig. 4 is a flowchart illustrating a specific example of a method for transmitting service stream data according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram illustrating traffic flow data transmission of a neighbor device in an embodiment of the disclosure;
fig. 6 is a schematic diagram of a traffic flow data transmission apparatus in an embodiment of the disclosure;
FIG. 7 is a block diagram of a computer device according to an embodiment of the disclosure;
fig. 8 shows a block diagram of a computer-readable storage medium in an embodiment of the disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of 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.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The present exemplary embodiment will be described in detail below with reference to the drawings and examples.
First, the embodiments of the present disclosure provide a method for transmitting traffic stream data, which may be executed by any electronic device with computing processing capability.
Fig. 1 shows a flow chart of a method for transmitting service stream data in an embodiment of the present disclosure, and as shown in fig. 1, the method for transmitting service stream data provided in the embodiment of the present disclosure includes the following steps:
s102, monitoring the traffic flow data volume output by a first target port on the network equipment, wherein the network equipment comprises: and the first target port is any one port of the network equipment connected with the next hop equipment.
It should be noted that the network device may be a physical entity connected to the network. Alternatively, the network device in the embodiments of the present disclosure may be any one of a bridge, a gateway, a switch, a computer, and the like. The port can be a data outlet for communication and communication between the network equipment and the outside. Alternatively, a port in the embodiments of the present disclosure may be an interface in any network device, such as a bridge, a gateway, a switch, a computer, and the like, for connecting to another network device. The data amount may be the number of data or the size of the data capacity.
For example, the number of traffic streams output by a first destination port on the gateway is detected.
And S104, when the traffic flow data volume output by the first target port is higher than the preset threshold corresponding to the first target port, directing the key traffic flow transmitted by the first target port to a second target port, and transmitting the key traffic flow to a destination network through the second target port, wherein the second target port is a port on the network equipment, the traffic flow data volume of which is lower than the preset threshold corresponding to the corresponding port and is different from the first target port.
It should be noted that the traffic flow may be a data unit exchanged and transmitted in a network with deterministic requirements on latency. The critical traffic flow may be a delay deterministic traffic flow. For example, the traffic flow may be a message. The destination network may be a network address where the traffic flow is received.
For example, in one embodiment, a traffic flow is transmitted to a destination network through a first destination port, the number of data packets of an output queue length threshold (corresponding to the preset threshold) corresponding to the first destination port is set to be 1000, and at this time, when the number of data packets of the output queue length of a second destination port is detected by hardware in real time to be 200, when the number of data packets of the output queue length of the first destination port is detected by hardware in real time to be 1200 suddenly, a critical traffic flow (such as a delay-sensitive or packet-loss-sensitive traffic flow) transmitted by the first destination port is redirected to the second destination port, and is transmitted to the destination network through the second destination port.
Optionally, in an embodiment, the traffic flow is transmitted to the destination network through the first target port, the threshold of the first target port is set to be a packet loss occurrence (corresponding to the preset threshold), and when it is detected by hardware that no packet loss occurs at the second target port, the key traffic flow (such as the delay-sensitive or packet-loss-sensitive traffic flow) transmitted by the first target port is redirected to the second target port, and is transmitted to the destination network through the second target port.
Optionally, in an embodiment, the traffic flow is transmitted to the destination network through the first destination port, a port utilization threshold (corresponding to the preset threshold) of the first destination port is set to 90%, and at this time, the port utilization of the second destination port is detected to be 20%, when it is detected in real time by hardware that the port utilization of the first destination port is over 90%, the critical traffic flow (such as a delay-sensitive or packet-loss-sensitive traffic flow) transmitted by the first destination port is redirected to the second destination port, and is transmitted to the destination network through the second destination port.
S106, continuously monitoring the traffic flow data volume output by the first target port on the network equipment, and when the traffic flow data volume output by the first target port is lower than the preset threshold corresponding to the first target port, redirecting the key traffic flow directed to the second target port to the first target port, and transmitting the key traffic flow to the target network through the first target port.
For example, in one embodiment, the number of data packets continuously monitoring the length of the output queue of the first target port on the network device is 500, and the critical traffic data directed to the second target port is redirected to the first target port, and at this time, the critical traffic data is still transmitted to the destination network through the first target port.
Optionally, in an embodiment, when it is continuously monitored that the first target port on the network device has no packet loss event, the key traffic data directed to the second target port is redirected to the first target port, and at this time, the key traffic data is still transmitted to the destination network through the first target port.
Optionally, in an embodiment, when the port utilization of the first destination port on the network device is continuously monitored to be 50%, the critical traffic flow data directed to the second destination port is redirected to the first destination port, and at this time, the critical traffic flow is still transmitted to the destination network through the first destination port.
During specific implementation, the output port of the key service flow is dynamically adjusted according to the service flow data volume output by the port in combination with the preset threshold corresponding to the port, so that when the service flow data volume is increased suddenly, the key service flow is guaranteed not to be congested, and the service flow is quickly transmitted to meet the requirement of guaranteeing the time delay of the key service flow.
In an embodiment of the present disclosure, as shown in fig. 2, the service flow data transmission method provided in the embodiment of the present disclosure may redirect a transmission port of a key service flow through the following steps, so as to ensure a low latency requirement for transmission of the key service data:
s202, whether a parallel port exists in the network equipment is detected, wherein the parallel port is a port which is different from the first target port and is connected with the next hop equipment by the network equipment.
It should be noted that the parallel port may be a port through which data is transferred in a parallel manner on the network device.
For example, in one embodiment, the a device is connected to the B device through two ports, namely an X port and a Y port, which are parallel ports of the X port.
And S204, if the network equipment has a parallel port, determining the parallel port as a second target port.
In specific implementation, as shown in fig. 3, the traffic flow is transmitted from the network device PE1 to the network device PE2 through the network device P1 and the network device P2, and then is transmitted to the destination network by the network device PE 2. The network device P1 includes two parallel ports P11 (corresponding to the first destination port) and P12 (corresponding to the parallel ports) connected to the next hop network device P2, and selects a non-congested port P12 as a redirect port (corresponding to the second destination port) when an instantaneous congestion occurs at the P11 port (corresponding to a traffic flow amount output from the first destination port being higher than a preset threshold corresponding to the first destination port).
Through the embodiment, according to the service flow data volume output by the port and the preset threshold value corresponding to the port, when the port is congested, the output port of the key service flow is adjusted to be changed into the parallel port of the port, so that the low-delay requirement of key service data transmission can be ensured when the service flow data volume is increased suddenly.
In an embodiment of the present disclosure, as shown in fig. 4, in the traffic flow data transmission method provided in the embodiment of the present disclosure, congestion occurs to a port of a traffic flow and a parallel port does not exist for redirection, so as to reduce a time delay of the traffic flow due to the absence of the parallel port:
s402, if the network device has no parallel port, the neighbor port is determined as a second target port, and the neighbor port is a port of the network device connected with the neighbor device.
It should be noted that the above-mentioned neighbor device may be a physical entity in a network directly connected to a network device, and the neighbor device in the embodiment of the present disclosure may be any one of a router, a bridge, a gateway, a switch, a computer, and the like.
In an embodiment of the present disclosure, a traffic flow data transmission method provided in the embodiment of the present disclosure filters neighbor devices by the following steps: screening one or more neighbor devices meeting a first preset condition from the plurality of neighbor devices, wherein the first preset condition is as follows:
distance (N, D) < Distance (N, S) + Distance (S, D), where Distance (N, D) represents the Distance from the neighbor device N to the destination network D, Distance (N, S) represents the Distance from the neighbor device N to the present network device S, and Distance (S, D) represents the Distance from the present network device S to the destination network D.
In specific implementation, as shown in fig. 5, the traffic flow is transmitted from the network device PE1 to the network device PE2 through the network device P1 and the network device P2, and then is transmitted to the destination network by the network device PE 2. Network device P1 is connected to network device P2 without parallel ports, network device P1 has neighbor device P3 (equivalent to network device P3), neighbor device P6 (equivalent to network device P6), network device P7 is the next hop device of neighbor device P6, network device P4 is the next hop device of neighbor device P3, the latency between network device PE1 and network device P1 is 100ms, the latency between network device PE1 and network device P1 is 100ms, the latency between network device P1 and network device P1 is 200ms, the latency between network device P1 and network device P1 is 500ms, the latency between network device P1 and network device P1 is 300ms, the latency between network device P1 and network device P1 is 1000ms, the latency between network device P1 and network device P1 is 300ms, the delay between network device P2 and network device PE2 is 100ms, and the delay between network device P7 and network device PE2 is 300ms, at this time, a loop-free shortest path port (device) is calculated as a redirection port (device) by the following method (corresponding to the first preset condition): the neighbor device needs to satisfy the following condition that the 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 network device and the distance from the network device to the destination network, and when the network device P1 to the network device P2 is instantaneously congested and becomes congested, the shortest path of the network device P1 except the neighbor device P2 needs to be calculated, wherein the neighbor device P3 of the network device P1 calculates the shortest path according to the above steps: the delay between the network device P3 and the network device P4 is 300ms, the sum of the delay between the network device P4 and the network device PE2 is 600ms, the sum of the delay between the network device P4 and the network device PE2 is 200ms, which is greater than the delay between the network device P3 and the network device P1, the delay between the network device P1 and the network device P2 is 200ms, and the sum of the delay between the network device P2 and the network device PE2 is 100ms, and the conditions of the loop-free neighbor devices are not met. The neighbor device P6 of the network device P1 calculates the shortest path according to the above steps: the sum of the time delay 300ms between the network device P6 and the network device P7 and the time delay 300ms between the network device P7 and the network device PE2 is 600ms, which is smaller than the sum of the time delay 500ms between the network device P6 and the network device P1, plus the time delay 200ms between the network device P1 and the network device P2 and the time delay 100ms between the network device P2 and the network device PE2, and 800ms, which satisfies 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.
Through the embodiment, when the port is congested and the port has no parallel port, the loop-free neighbor equipment is calculated by using a formula, so that the service data can be ensured to realize low-delay transmission under the condition that the traffic flow data volume is increased rapidly and the port has no parallel port.
In one embodiment of the present disclosure, the present disclosure screens out a neighbor device having a shortest distance to a destination network from a plurality of neighbor devices satisfying a first preset condition by: screening one or more neighbor devices meeting a second preset condition from the plurality of neighbor devices meeting the first preset condition, wherein the second preset condition is as follows: and calculating to obtain the shortest distance from the neighbor equipment to the destination network based on a shortest path first algorithm.
Taking three neighbor devices meeting the first preset condition as an example, namely a neighbor device N1, a neighbor device N2 and a neighbor device N3, based on the shortest path first algorithm, calculating that the shortest path of the neighbor device N1 consumes 800ms, the shortest path of the neighbor device N2 consumes 700ms and the shortest path of the neighbor device N3 consumes 900ms, and screening out the neighbor device N2 with the shortest distance to the destination network.
Through the embodiment, when the port has a plurality of loop-free neighbor devices, the shortest distance neighbor device is found by using the shortest path first algorithm, and the service data can be transmitted with low delay.
In one embodiment of the present disclosure, the preset threshold is determined according to the following manner: determining a preset threshold value of the network equipment according to the queue length value of a first target port of the network equipment; determining a preset threshold value of the network equipment according to a packet loss event occurring at a first target port of the network equipment; or, determining a preset threshold of the network device according to the port utilization of the first target port of the network device.
For example, in one embodiment, queue length information of a network device is obtained; and determining a preset threshold value of the network equipment according to the queue length of the network equipment. For example, the length of the queue of the network device is 100; and determining the preset threshold of 50 network devices according to the queue length of the network devices.
In one embodiment of the present disclosure, the present disclosure controls a port of a traffic flow output by: identifying a message header of the service flow data; and determining a port for outputting the service flow according to the identification.
It should be noted that the header may be a hypertext Transfer Protocol (HTTP) header. Optionally, the message Header in the embodiment of the present disclosure may be any one of a General Header field (General Header Fields), a Request Header field (Request Header Fields), a response Header field (Request Header Fields), an entity Header field (Content Header Fields), and the like.
For example, in the IPv4 header, a Type Of Service (ToS) field/Differentiated Services Code Points (DSCP) field is identified, and in the IPv6 header, a Flow classification (TC) or Flow Label (Flow Label) field is identified. And controlling a port for outputting the service flow through an Access Control List (ACL) according to the identifier.
Based on the same inventive concept, embodiments of the present disclosure further provide a traffic stream data transmission apparatus, as described in the following embodiments. Because the principle of the embodiment of the apparatus for solving the problem is similar to that of the embodiment of the method, the embodiment of the apparatus can be implemented by referring to the implementation of the embodiment of the method, and repeated details are not described again.
Fig. 6 is a schematic diagram of a traffic stream data transmission apparatus in an embodiment of the present disclosure, and as shown in fig. 6, the apparatus includes: a traffic flow data volume monitoring module 601, a port switching module 602 and a port switch-back module 603.
The traffic flow data amount monitoring module 601 is configured to monitor a traffic flow data amount output by a first target port on a network device, where the network device includes: the first target port is any one port of the network equipment connected with the next hop equipment; a port switching module 602, configured to, when traffic flow data amount output by a first target port is higher than a preset threshold corresponding to the first target port, direct a key traffic flow transmitted by the first target port to a second target port, and transmit the key traffic flow to a destination network through the second target port, where the second target port is a port on a network device, where the traffic flow data amount of the second target port is lower than the preset threshold corresponding to a corresponding port and is different from the first target port, and the key traffic flow is one of traffic flows; the port switching-back module 603 is configured to continue to monitor traffic flow data volume output by the first target port on the network device, and when the traffic flow data volume output by the first target port is lower than a preset threshold corresponding to the first target port, redirect the key traffic flow directed to the second target port to the first target port, and transmit the key traffic flow to the destination network through the first target port.
In an embodiment of the present disclosure, the traffic stream data transmission apparatus further includes a parallel port module 604: the device comprises a first target port, a second target port and a third target port, wherein the first target port is used for detecting whether a parallel port exists in network equipment or not, and the parallel port is a port which is different from the first target port and is used for connecting the network equipment with next hop equipment; and if the network equipment has the parallel port, determining the parallel port as a second target port.
In an embodiment of the present disclosure, the traffic flow data transmission apparatus further includes a neighbor port module 605: and if the network equipment does not have a parallel port, determining the neighbor port as a second target port, wherein the neighbor port is a port of the network equipment connected with the neighbor equipment.
In an embodiment of the present disclosure, the neighbor port module 605 is further configured to: selecting one or more neighbor devices from the plurality of neighbor devices that satisfy a first predetermined condition,
distance (N, D) < Distance (N, S) + Distance (S, D), where Distance (N, D) represents the Distance of the neighbor device N to the destination network D, Distance (N, S) represents the Distance of the neighbor device N to the network device S, and Distance (S, D) represents the Distance of the network device S to the destination network D.
In an embodiment of the present disclosure, the neighbor port module 605 is further configured to: screening one or more neighbor devices meeting a second preset condition from the plurality of neighbor devices meeting the first preset condition, wherein the second preset condition is as follows: and calculating to obtain the shortest distance from the neighbor equipment to the destination network based on a shortest path first algorithm.
In an embodiment of the present disclosure, the apparatus for transmitting traffic stream data further includes a preset threshold determining module 606: the method comprises the steps of determining a preset threshold according to the following mode, and determining the preset threshold of the network equipment according to a queue length value of a first target port of the network equipment; determining a preset threshold value of the network equipment according to a packet loss event occurring at a first target port of the network equipment; or, determining a preset threshold of the network device according to the port utilization rate of the first target port of the network device.
In an embodiment of the present disclosure, the traffic flow data transmission apparatus further includes a traffic flow output control module 607: identifying a message header of the key service flow data; and redirecting the port for outputting the key service flow according to the identification.
As will be appreciated by one skilled in the art, aspects of the present disclosure may be embodied as a system, method or program product. Accordingly, various aspects of the present disclosure may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 700 according to this embodiment of the disclosure is described below with reference to fig. 7. The electronic device 700 shown in fig. 7 is only an example and should not bring any limitation to the function and the scope of use of the embodiments of the present disclosure.
As shown in fig. 7, electronic device 700 is embodied in the form of a general purpose computing device. The components of the electronic device 700 may include, but are not limited to: the at least one processing unit 710, the at least one memory unit 720, and a bus 730 that couples various system components including the memory unit 720 and the processing unit 710.
Wherein the storage unit stores program code that is executable by the processing unit 710 to cause the processing unit 710 to perform steps according to various exemplary embodiments of the present disclosure as described in the above section "exemplary methods" of this specification.
For example, the processing unit 710 may perform the following steps of the above method embodiment: monitoring the traffic flow data volume output by a first target port on a network device, wherein the network device comprises: the first target port is any one port of the network equipment connected with the next hop equipment; when the traffic flow data volume output by the first target port is higher than a preset threshold corresponding to the first target port, directing the key traffic flow transmitted by the first target port to a second target port, and transmitting the key traffic flow to a destination network through the second target port, wherein the second target port is a port which is different from the first target port and has the traffic flow data volume lower than the preset threshold corresponding to the corresponding port on the network equipment, and the key traffic flow is one of the traffic flows; and continuously monitoring the traffic flow data volume output by the first target port on the network equipment, and when the traffic flow data volume output by the first target port is lower than a preset threshold corresponding to the first target port, redirecting the key traffic flow directed to the second target port to the first target port, and transmitting the key traffic flow to a target network through the first target port.
For example, the processing unit 710 may perform the following steps of the above method embodiment: detecting whether a network device has a parallel port, wherein the parallel port is a port which is different from a target port and is used for connecting the network device with a next hop device; and if the network equipment has the parallel port, determining the parallel port as a second target port.
For example, the processing unit 710 may perform the following steps of the above method embodiment: and if the network equipment does not have the parallel port, determining the neighbor port as a second target port, wherein the neighbor port is a port of the network equipment connected with the neighbor equipment.
For example, the processing unit 710 may perform the following steps of the above method embodiment: screening one or more neighbor devices meeting a first preset condition from the plurality of neighbor devices, wherein the first preset condition is as follows:
distance (N, D) < Distance (N, S) + Distance (S, D), where Distance (N, D) represents the Distance from the neighbor device N to the destination network D, Distance (N, S) represents the Distance from the neighbor device N to the network device S, and Distance (S, D) represents the Distance from the network device S to the destination network D.
For example, the processing unit 710 may perform the following steps of the above method embodiment: screening one or more neighbor devices meeting a second preset condition from the plurality of neighbor devices meeting the first preset condition, wherein the second preset condition is as follows: and calculating to obtain the shortest distance from the neighbor equipment to the destination network based on a shortest path first algorithm.
For example, the processing unit 710 may perform the following steps of the above method embodiment: determining a preset threshold value according to the following mode, and determining the preset threshold value of the network equipment according to a queue length value of a first target port of the network equipment; determining a preset threshold value of the network equipment according to a packet loss event occurring at a first target port of the network equipment; or, determining a preset threshold of the network device according to the port utilization of the first target port of the network device.
For example, the processing unit 710 may perform the following steps of the above method embodiment: identifying a message header of the key service flow data; and redirecting the port for outputting the key service flow according to the identification.
The storage unit 720 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)7201 and/or a cache memory unit 7202, and may further include a read only memory unit (ROM) 7203.
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 thereof, may comprise an implementation of a network environment.
Bus 730 may be any representation of 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.
The electronic device 700 may also communicate with one or more external devices 740 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 700, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 700 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 750. Also, the electronic device 700 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) via the network adapter 760. As shown, the network adapter 760 communicates with the other modules of the electronic device 700 via the bus 730. It should be appreciated that although not shown in the figures, 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, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium, which may be a readable signal medium or a readable storage medium. Fig. 8 is a schematic diagram of a computer-readable storage medium in an embodiment of the present disclosure, and as shown in fig. 8, the computer-readable storage medium 800 has a program product stored thereon, which is capable of implementing the foregoing method of the present disclosure. In some possible embodiments, various aspects of the disclosure may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps according to various exemplary embodiments of the disclosure described in the "exemplary methods" section above of this specification, when the program product is run on the terminal device.
For example, the program product in the embodiments of the present disclosure, when executed by a processor, implements a method comprising: monitoring the traffic flow data volume output by a first target port on a network device, wherein the network device comprises: the first target port is any one port of the network equipment connected with the next hop equipment; when the traffic flow data volume output by the first target port is higher than a preset threshold corresponding to the first target port, directing the key traffic flow transmitted by the first target port to a second target port, and transmitting the key traffic flow to a destination network through the second target port, wherein the second target port is a port which is different from the first target port and has the traffic flow data volume lower than the preset threshold corresponding to the corresponding port on the network equipment, and the key traffic flow is one of the traffic flows; and continuously monitoring the traffic flow data volume output by the first target port on the network equipment, and when the traffic flow data volume output by the first target port is lower than a preset threshold corresponding to the first target port, redirecting the key traffic flow directed to the second target port to the first target port, and transmitting the key traffic flow to a target network through the first target port.
For example, the program product in the embodiments of the present disclosure, when executed by a processor, implements a method comprising: detecting whether a parallel port exists in the network equipment, wherein the parallel port is a port which is different from a target port and is used for connecting the network equipment with next hop equipment; and if the network equipment has the parallel port, determining the parallel port as a second target port.
For example, the program product in the embodiments of the present disclosure, when executed by a processor, implements a method comprising: and if the network equipment does not have the parallel port, determining the neighbor port as a second target port, wherein the neighbor port is a port of the network equipment connected with the neighbor equipment.
For example, the program product in the embodiments of the present disclosure, when executed by a processor, implements a method comprising: screening one or more neighbor devices meeting a first preset condition from the plurality of neighbor devices, wherein the first preset condition is as follows:
Distance(N,D)<Distance(N,S)+Distance(S,D),
where Distance (N, D) represents the Distance from the neighbor device N to the destination network D, Distance (N, S) represents the Distance from the neighbor device N to the network device S, and Distance (S, D) represents the Distance from the network device S to the destination network D.
For example, the program product in the embodiments of the present disclosure, when executed by a processor, implements a method comprising: screening one or more neighbor devices meeting a second preset condition from the plurality of neighbor devices meeting the first preset condition, wherein the second preset condition is as follows: and calculating to obtain the shortest distance from the neighbor equipment to the destination network based on a shortest path first algorithm.
For example, the program product in the embodiments of the present disclosure, when executed by a processor, implements a method comprising: determining a preset threshold value according to the following mode, and determining the preset threshold value of the network equipment according to a queue length value of a first target port of the network equipment; determining a preset threshold value of the network equipment according to a packet loss event occurring at a first target port of the network equipment; or, determining a preset threshold of the network device according to the port utilization of the first target port of the network device.
For example, the program product in the embodiments of the present disclosure, when executed by a processor, implements a method comprising: identifying a message header of the key service flow data; and redirecting the port for outputting the key service flow according to the identification.
More specific examples of the computer-readable storage medium in the present disclosure may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
In the present disclosure, a computer readable storage medium may include a propagated data signal with readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Alternatively, program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
In particular implementations, program code for carrying out operations of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the 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 kind 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., through the internet using an internet service provider).
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Moreover, although the steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that the steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (10)

1. A method for transmitting traffic stream data is characterized by comprising the following steps:
monitoring traffic flow data volume output by a first target port on a network device, wherein the network device comprises: the first target port is any one port of the network equipment connected with next hop equipment;
when the traffic flow data volume output by the first target port is higher than a preset threshold corresponding to the first target port, directing a key traffic flow transmitted by the first target port to a second target port, and transmitting the key traffic flow to a destination network through the second target port, wherein the second target port is a port on the network device, the traffic flow data volume of which is lower than the preset threshold corresponding to a corresponding port and is different from that of the first target port, and the key traffic flow is one of the traffic flows;
and continuously monitoring the traffic flow data volume output by a first target port on the network equipment, and when the traffic flow data volume output by the first target port is lower than a preset threshold corresponding to the first target port, redirecting the key traffic flow directed to the second target port to the first target port, and transmitting the key traffic flow to a target network through the first target port.
2. The traffic flow data transmission method according to claim 1, wherein the method further comprises:
detecting whether a parallel port exists in the network equipment, wherein the parallel port is a port which is different from the first target port and is connected with a next hop equipment by the network equipment;
and if the network equipment has a parallel port, determining the parallel port as a second target port.
3. The traffic flow data transmission method according to claim 2, wherein the method further comprises:
if the network equipment does not have a parallel port, determining a neighbor port as a second target port, wherein the neighbor port is a port of the network equipment connected with the neighbor equipment.
4. The traffic flow data transmission method according to claim 3, wherein the network device is connected to a plurality of neighbor devices, the method further comprising:
screening one or more neighbor devices meeting a first preset condition from the plurality of neighbor devices, wherein the first preset condition is as follows:
Distance(N,D)<Distance(N,S)+Distance(S,D),
where Distance (N, D) represents the Distance from the neighbor device N to the destination network D, Distance (N, S) represents the Distance from the neighbor device N to the network device S, and Distance (S, D) represents the Distance from the network device S to the destination network D.
5. The traffic flow data transmission method according to claim 4, wherein after screening out one or more neighbor devices satisfying a first preset condition from the plurality of neighbor devices, the method further comprises:
screening one or more neighbor devices meeting a second preset condition from the plurality of neighbor devices meeting the first preset condition, wherein the second preset condition is as follows: and calculating to obtain the shortest distance from the neighbor equipment to the destination network based on a shortest path first algorithm.
6. The traffic flow data transmission method according to claim 1, wherein the predetermined threshold is determined according to the following manner:
determining a preset threshold value of the network equipment according to the queue length value of the first target port of the network equipment;
determining a preset threshold value of the network equipment according to a packet loss event occurring at the first target port of the network equipment; alternatively, the first and second electrodes may be,
and determining a preset threshold value of the network equipment according to the port utilization rate of the first target port of the network equipment.
7. The traffic flow data transmission method according to claim 1, wherein the method further comprises:
identifying the message header of the key service flow data;
and redirecting the port for outputting the key service flow according to the identification.
8. A traffic stream data transmission apparatus, comprising:
a traffic flow data amount monitoring module, configured to monitor a traffic flow data amount output by a first target port on a network device, where the network device includes: the first target port is any one port of the network equipment connected with next hop equipment;
a port switching module, configured to, when traffic flow data volume output by the first target port is higher than a preset threshold corresponding to the first target port, direct a key traffic flow transmitted by the first target port to a second target port, and transmit the key traffic flow to a destination network through the second target port, where the second target port is a port on the network device, where the traffic flow data volume is lower than the preset threshold corresponding to a corresponding port and is different from the first target port, and the key traffic flow is one of the traffic flows;
and the port switching-back module is used for continuously monitoring the traffic flow data volume output by a first target port on the network equipment, and when the traffic flow data volume output by the first target port is lower than a preset threshold corresponding to the first target port, redirecting the key traffic flow directed to the second target port to the first target port and transmitting the key traffic flow to a target network through the first target port.
9. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to execute the traffic flow data transmission method according to any one of claims 1 to 7 via executing the executable instructions.
10. A computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the traffic stream data transmission method according to any one of claims 1 to 7.
CN202210287936.1A 2022-03-22 2022-03-22 Business flow data transmission method and device, electronic equipment and storage medium Pending CN114466404A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210287936.1A CN114466404A (en) 2022-03-22 2022-03-22 Business flow data transmission method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210287936.1A CN114466404A (en) 2022-03-22 2022-03-22 Business flow data transmission method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114466404A true CN114466404A (en) 2022-05-10

Family

ID=81416821

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210287936.1A Pending CN114466404A (en) 2022-03-22 2022-03-22 Business flow data transmission method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114466404A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116150221A (en) * 2022-10-09 2023-05-23 浙江博观瑞思科技有限公司 Information interaction method and system for service of enterprise E-business operation management
CN116708135A (en) * 2023-08-08 2023-09-05 中国电信股份有限公司 Network service fault monitoring method and device, electronic equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116150221A (en) * 2022-10-09 2023-05-23 浙江博观瑞思科技有限公司 Information interaction method and system for service of enterprise E-business operation management
CN116708135A (en) * 2023-08-08 2023-09-05 中国电信股份有限公司 Network service fault monitoring method and device, electronic equipment and storage medium
CN116708135B (en) * 2023-08-08 2023-11-07 中国电信股份有限公司 Network service fault monitoring method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
Mirhakkak et al. Dynamic bandwidth management and adaptive applications for a variable bandwidth wireless environment
US7489632B2 (en) Simple admission control for IP based networks
Savage et al. Detour: Informed Internet routing and transport
CN114466404A (en) Business flow data transmission method and device, electronic equipment and storage medium
JP3977331B2 (en) Method and apparatus in IP communication network
US6721272B1 (en) Method and apparatus for generating an RSVP message for a non-RSVP-enabled network device
US20160173383A1 (en) Method and apparatus for priority flow and congestion control in ethernet network
US20030169688A1 (en) System and method for dynamic rate flow control
US20080170510A1 (en) Efficient Determination Of Fast Routes When Voluminous Data Is To Be Sent From A Single Node To Many Destination Nodes Via Other Intermediate Nodes
CN105229976B (en) Low-latency lossless switching fabric for data center
Parsaei et al. A new adaptive traffic engineering method for telesurgery using ACO algorithm over software defined networks
KR20070080177A (en) Apparatus and method of backward congestion notification on network
JP2004104427A (en) Congestion controller in ethernet (r) switch
CN111769998A (en) Method and device for detecting network delay state
US7844732B2 (en) Management of network quality of service
CN106464670A (en) Network entity and service policy management method
CN109587058B (en) Method and device for selecting traffic engineering path
Buragohain et al. Quality of Service provisioning in Named Data Networking via PIT entry reservation and PIT replacement policy
JP2002359634A (en) Method and device for designing communication path and program
JP2009194504A (en) Computer device and packet reception control method
Kadhum et al. Congestion-aware TCP-friendly system for multimedia transmission based on UDP
WO2021101610A1 (en) Latency guarantee for data packets in a network
CN111988226A (en) Multi-ISP link load balancing method, system and firewall
US8174988B1 (en) Quality-of-service control on a wireless communication device that controls the communication paths used by a communication network
JP2016122960A (en) Management system, network management method, network system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination