CN116346731A - Cloud network traffic forwarding method and device - Google Patents

Cloud network traffic forwarding method and device Download PDF

Info

Publication number
CN116346731A
CN116346731A CN202310226538.3A CN202310226538A CN116346731A CN 116346731 A CN116346731 A CN 116346731A CN 202310226538 A CN202310226538 A CN 202310226538A CN 116346731 A CN116346731 A CN 116346731A
Authority
CN
China
Prior art keywords
flow
traffic
buffer
packet loss
transmission path
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
CN202310226538.3A
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.)
Tianyi Cloud Technology Co Ltd
Original Assignee
Tianyi Cloud Technology Co 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 Tianyi Cloud Technology Co Ltd filed Critical Tianyi Cloud Technology Co Ltd
Priority to CN202310226538.3A priority Critical patent/CN116346731A/en
Publication of CN116346731A publication Critical patent/CN116346731A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2425Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
    • H04L47/2433Allocation of priorities to traffic types
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/38Flow based routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/32Flow control; Congestion control by discarding or delaying data units, e.g. packets or frames
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • H04L49/3018Input queuing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • H04L49/3027Output queuing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

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

Abstract

The invention relates to a cloud network traffic forwarding method and device, wherein the method comprises the following steps: confirming a transmission path of a first flow, wherein the first flow is a flow with a transmission priority higher than a first threshold value; adjusting the buffer capacity of the switch equipment in the transmission path to a second threshold value, wherein the second threshold value is not smaller than the current value of the buffer capacity of the switch equipment; monitoring the buffer queue and buffer ratio of the switch equipment in the transmission path, and preferentially transmitting first traffic in the buffer queue when the buffer ratio is greater than a third threshold value, and reducing second traffic entering the buffer queue, wherein the second traffic is traffic with transmission priority lower than the first threshold value; and acquiring the packet loss flow in the transmission path, and sending the message content corresponding to the packet loss flow. The method determines the priority of the flow forwarding by the user, thereby ensuring the lossless forwarding of important flows.

Description

Cloud network traffic forwarding method and device
Technical Field
The present invention relates to the field of data communications technologies, and in particular, to a method and apparatus for forwarding traffic in a cloud network, a computer device, and a storage medium.
Background
In recent years, with the progress of technological innovation, the development of cloud computing technology is very popular, and has become a core driving force and key technology for remodelling the traditional industry and pushing enterprise digital transformation.
Taking a new generation IaaS cloud platform CloudOS4.0 of an advanced Tianqi cloud in the industry as an example, the resource pool of CloudOS4.0 can meet the requirements of ultra-large scale, ultra-high performance, safety and reliability of cloud service, and can meet the service requirements of enterprise application, two places, three centers, multiple activities, disaster recovery and the like. In such a high-performance, high-availability, high-reliability base cloud network chassis, the temporary packets are typically stored in a data buffer of the physical switch, where the data buffer is divided into a receive buffer, a transmit buffer, and a Headroom buffer. According to different functional effects, the receiving buffer is used for buffering received data, the transmitting buffer is used for buffering transmitted data, and the Headroom buffer provides additional message buffering capacity for the device after the space of the two data buffers is used up. At present, in the process of receiving or sending a message, an OVS and a physical switch of a cloud platform store the message into a buffer area, and once the buffer area is full, the buffered message is discarded, and for important traffic, although the QOS is used for setting a DSCP value of the traffic to forward the traffic preferentially, so that the traffic with a high DSCP value enters the buffer preferentially, but the buffer area is discarded after being full; in addition, the traditional cloud platform does not uniformly analyze and display the traffic packet loss condition of the underly and overlay devices, and when the OVS or the switch is full due to the buffer area, the application of reconnection can be autonomously sent after the TCP connection of the client is disconnected due to packet loss, and the buffer area is full, so that the continuous packet loss and continuous reconnection vicious cycle can be caused.
Therefore, in the traditional cloud platform technology, once the buffer space of the buffer area is insufficient, traffic data is easy to lose, and even the traffic data is continuously lost.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a cloud network traffic forwarding method, apparatus, computer device and storage medium that can deepen the knowledge of the user about the traffic discarding situation by displaying the discarded traffic, and can let the user decide the traffic forwarding priority by himself, thereby forwarding the important traffic of the user without loss.
A cloud network traffic forwarding method, the method comprising:
confirming a transmission path of a first flow, wherein the first flow is a flow with a transmission priority higher than a first threshold value;
adjusting the buffer capacity of the switch equipment in the transmission path to a second threshold value, wherein the second threshold value is not smaller than the current value of the buffer capacity of the switch equipment;
monitoring the buffer queue and buffer ratio of the switch equipment in the transmission path, and preferentially transmitting first traffic in the buffer queue when the buffer ratio is greater than a third threshold value, and reducing second traffic entering the buffer queue, wherein the second traffic is traffic with transmission priority lower than the first threshold value;
and acquiring the packet loss flow in the transmission path, and sending the message content corresponding to the packet loss flow.
In one embodiment, the identifying the transmission path of the first traffic further includes:
and setting a sys-agent program at each switch device, wherein the sys-agent program is used for collecting statistical data and storing the statistical data into the ES node, and the statistical data comprises the cache capacity, the cache proportion, the packet loss condition and the discarded message content.
In one embodiment, the setting a sys-agent program at each switch device further includes:
and carrying out a vnet-controller program, wherein the vnet-controller program is used for acquiring statistical data from the ES node and displaying the statistical data to a user through a Kafka system.
In one embodiment, the obtaining the packet loss flow in the transmission path and sending the message content corresponding to the packet loss flow includes:
and monitoring the switch equipment, acquiring the buffer packet loss condition of each switch equipment through a sys-agent program, and acquiring the content of a lost message and storing the content into an ES node when the flow packet loss of certain switch equipment is monitored.
In one embodiment, the obtaining the packet loss flow in the transmission path, and sending the message content corresponding to the packet loss flow further includes:
and acquiring the content of the lost message in the ES node through a vnet-controller program and sending the content to a user so that the user can adjust according to the importance degree of the packet loss flow.
In one embodiment, the first traffic is traffic that needs to be retransmitted with a large amount of data after the packet loss occurs, so that bandwidth is wasted, or the data is lost after the packet loss.
A cloud network traffic forwarding device, comprising:
the confirming module is used for confirming a transmission path of a first flow, wherein the first flow is a flow with a transmission priority higher than a first threshold value;
the adjusting module is used for adjusting the buffer capacity of the switch equipment in the transmission path to a second threshold value, and the second threshold value is not smaller than the current value of the buffer capacity of the switch equipment;
the monitoring module is used for monitoring the buffer queue and the buffer ratio of the switch equipment in the transmission path, preferentially transmitting the first flow in the buffer queue when the buffer ratio is larger than a third threshold value, and reducing the second flow entering the buffer queue, wherein the second flow is the flow with the transmission priority lower than the first threshold value;
and the interaction module is used for acquiring the packet loss flow in the transmission path and sending the message content corresponding to the packet loss flow.
In one embodiment, a computer device comprises a memory storing a computer program and a processor that when executing the computer program performs the steps of:
confirming a transmission path of a first flow, wherein the first flow is a flow with a transmission priority higher than a first threshold value;
adjusting the buffer capacity of the switch equipment in the transmission path to a second threshold value, wherein the second threshold value is not smaller than the current value of the buffer capacity of the switch equipment;
monitoring the buffer queue and buffer ratio of the switch equipment in the transmission path, and preferentially transmitting first traffic in the buffer queue when the buffer ratio is greater than a third threshold value, and reducing second traffic entering the buffer queue, wherein the second traffic is traffic with transmission priority lower than the first threshold value;
and acquiring the packet loss flow in the transmission path, and sending the message content corresponding to the packet loss flow.
In one embodiment, a computer readable storage medium stores a computer program, wherein the computer program when executed by a processor performs the steps of:
confirming a transmission path of a first flow, wherein the first flow is a flow with a transmission priority higher than a first threshold value;
adjusting the buffer capacity of the switch equipment in the transmission path to a second threshold value, wherein the second threshold value is not smaller than the current value of the buffer capacity of the switch equipment;
monitoring the buffer queue and buffer ratio of the switch equipment in the transmission path, and preferentially transmitting first traffic in the buffer queue when the buffer ratio is greater than a third threshold value, and reducing second traffic entering the buffer queue, wherein the second traffic is traffic with transmission priority lower than the first threshold value;
and acquiring the packet loss flow in the transmission path, and sending the message content corresponding to the packet loss flow.
In one embodiment, a computer program product comprising a computer program which, when executed by a processor, performs the steps of:
confirming a transmission path of a first flow, wherein the first flow is a flow with a transmission priority higher than a first threshold value;
adjusting the buffer capacity of the switch equipment in the transmission path to a second threshold value, wherein the second threshold value is not smaller than the current value of the buffer capacity of the switch equipment;
monitoring the buffer queue and buffer ratio of the switch equipment in the transmission path, and preferentially transmitting first traffic in the buffer queue when the buffer ratio is greater than a third threshold value, and reducing second traffic entering the buffer queue, wherein the second traffic is traffic with transmission priority lower than the first threshold value;
and acquiring the packet loss flow in the transmission path, and sending the message content corresponding to the packet loss flow.
According to the cloud network flow forwarding method, the cloud network flow forwarding device, the computer equipment and the storage medium, the buffer capacity of the exchanger equipment in the first flow transmission path is adjusted to the second threshold according to the flow type set by a user, lossless forwarding of the first flow is primarily guaranteed, the first flow in the buffer queue with the buffer proportion higher than the third threshold is preferentially sent in the transmission process, the number of messages sent by the queue is reduced, the second flow entering the buffer queue is reduced, the buffer proportion in the queue is reduced, and the lost message content in the transmission process is captured and then displayed to the user. The priority of flow forwarding is determined by the user, so that lossless forwarding of important flows is guaranteed, the discarded flows due to the fact that the buffer area is full in the transmission process can be analyzed and displayed for the user, the user's knowledge of the network flow discarding condition is deepened, and therefore the user can make further planning on the flow types and the buffer capacity according to the displayed content.
Drawings
Fig. 1 is a flowchart of a cloud network traffic forwarding method according to an embodiment of the present application;
fig. 2 is a flowchart of a cloud network traffic forwarding method according to another embodiment of the present application;
fig. 3 is a flowchart of a cloud network traffic forwarding method according to still another embodiment of the present application;
FIG. 4 is a block diagram of a cloud network traffic forwarding device according to one embodiment of the present application;
fig. 5 is an internal structural diagram of a computer device of one embodiment.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
As shown in fig. 1, in one embodiment, a cloud network traffic forwarding method includes the following steps:
in step S110, a transmission path of a first traffic is confirmed, where the first traffic is a traffic with a transmission priority higher than a first threshold.
Specifically, the user classifies the traffic according to the importance degree of the traffic, wherein the first traffic is of a traffic type needing lossless forwarding, so that the transmission priority of the first traffic is set to be higher than a first threshold. For example, the user considers that the flow of accessing the object storage and the file storage by the virtual machine is important, and the flow can be set to be the first flow, so that the possibility of packet loss is reduced to the greatest extent in the transmission process. And finding out a transmission path of the service flow according to the flow type set by the user, and further finding out a starting point in the transmission path and switch equipment of each node. Wherein the switch device comprises an OVS (virtual switch) and a physical switch.
It should be noted that, when the transmission path transmits and receives the first traffic and other traffic types, only the other traffic types remain in the path after the transmission of the first traffic in the transmission path is completed.
Step S120, adjusting the buffer capacity of the switch device in the transmission path to a second threshold value, wherein the second threshold value is not smaller than the current value of the buffer capacity of the switch device.
Specifically, the starting point of the transmission path where the first flow is located and the buffer capacity of each switch device of each node are adjusted to a second threshold, that is, the buffer capacity of the switch device is increased, so as to avoid packet loss of the first flow. Generally, the buffer capacity of each switch device in the transmission path for transmitting the first traffic can be adjusted to the maximum value, so as to ensure the stability and smoothness of the transmission process of the first traffic as much as possible.
Step S130, monitoring the buffer queue and buffer ratio of the switch device in the transmission path, and when the buffer ratio is greater than a third threshold, preferentially transmitting a first flow in the buffer queue, and reducing a second flow entering the buffer queue, wherein the second flow is a flow with a transmission priority lower than the first threshold.
Specifically, the transmission path is monitored, when the buffer ratio of the buffer queue where the first flow is located exceeds a third threshold, the risk of congestion packet loss occurring in the buffer queue is considered to be larger, and the DSCP (differential service code point) values of the outer layer Vxlan (extensible virtual local area network) head and the inner layer IP packet head of the first flow in the buffer queue are set to be the highest, so that the first flow can enter the buffer queue preferentially, the number of packets sent by the buffer queue is reduced, the second flow entering the buffer queue is reduced, and the buffer ratio in the buffer queue is reduced. The transmission priority of the second flow is lower than that of the first flow, and lossless forwarding is not needed; the buffer ratio is the ratio of the buffer capacity of the exchanger equipment occupied by all traffic in the path.
It should be noted that, the third threshold of the buffer ratio may be set by the user according to the importance degree of the traffic, for example, the third threshold may be set to 80%, and if more important traffic is transmitted, the ratio may be reduced, so as to reduce the packet loss risk of the first traffic.
Step S140, the packet loss flow in the transmission path is obtained, and the message content corresponding to the packet loss flow is sent.
Specifically, packet loss generally refers to that traffic data cannot be transmitted to a destination for various reasons, which easily causes data loss and even causes packet loss of other related traffic data. When the situation of the buffer packet loss of the exchanger equipment in the transmission path is obtained, and the condition that the flow packet loss occurs to a certain exchanger equipment is monitored, the lost message content of the exchanger equipment is grabbed, and the lost message content is displayed to a user. The user can improve the priority of the packet loss flow based on the displayed content, and change the type of the packet loss flow into the first flow so as to reduce the possibility of packet loss of the flow, and also improve the buffer capacity of the exchanger equipment in the flow transmission path. Through a man-machine interaction way, a user can autonomously determine the priority of flow forwarding, and the lossless forwarding of important flows is ensured.
According to the cloud network flow forwarding method, according to the flow type set by a user, the buffer capacity of the switch equipment in the first flow transmission path is adjusted to the second threshold value, lossless forwarding of the first flow is primarily guaranteed, the first flow in the buffer queue with the buffer proportion higher than the third threshold value is preferentially sent in the transmission process, the number of messages sent by the queue is reduced, the second flow entering the buffer queue is reduced, the buffer proportion in the queue is reduced, and the lost message content in the transmission process is captured and then displayed to the user. The method determines the priority of flow forwarding by the user, thereby ensuring the lossless forwarding of important flows, analyzing the discarded flows due to the full buffer area in the transmission process and displaying the discarded flows to the user, and deepening the knowledge of the user on the network flow discarding condition, so that the user can make further planning on the flow types and the buffer capacity according to the displaying content.
As shown in fig. 2, in this embodiment, the method further includes the following steps before confirming the transmission path of the first traffic:
step S210, a sys-agent program is set at each switch device, and the sys-agent program is used for collecting statistical data and storing the statistical data into the ES node, wherein the statistical data comprises buffer capacity, buffer proportion, packet loss condition and discarded message content.
Specifically, sys-agent programs are deployed at a plurality of nodes such as a computing node, a network element node, an underway switch node and the like, so that relevant statistical data are obtained from the OVS, the DPOS and the underway switch, and the data are stored in the ES node. The statistical data comprises network cards, VPC, CPU, subnet, bps and pps of messages with connection number grades, delay and packet loss statistics, discarded message content and data of netprobes (network real-time monitoring tool) and DTCs.
And step S220, carrying out a vnet-controller program, wherein the vnet-controller program is used for acquiring statistical data from the ES node and displaying the statistical data to a user through a Kafka system.
Specifically, the Kafka system is a high-throughput distributed publish-subscribe messaging system capable of processing all action flow data of users in websites.
As shown in fig. 3, in this embodiment, the packet loss flow in the transmission path is obtained, and the message content corresponding to the packet loss flow is sent, which specifically includes the following steps:
step S141, the exchanger equipment is monitored, the buffer packet loss condition of each exchanger equipment is obtained through a sys-agent program, and when the condition that the flow packet loss occurs in a certain exchanger equipment is monitored, the content of the lost message is obtained and stored in an ES node.
Specifically, each port of the OVS and the physical switch in the transmission path is monitored, the buffer packet loss condition of each port is obtained through a sys-agent program, when a certain device port is detected to have traffic packet loss, the content of a message transmitted by the device is grabbed through the sys-agent program to obtain the content of the lost message, and the content of the lost message is stored in the ES node.
And step S142, acquiring the content of the lost message in the ES node through a vnet-controller program and sending the content to a user so that the user can adjust according to the importance degree of the packet loss flow.
Specifically, the vnet-controller program can automatically detect statistical data in the ES node, and when packet loss information is detected, the content of the lost message in the ES node is read and displayed to a user through the Kafka system. Based on the content displayed by the operation and maintenance system, the user can convert the packet loss flow into the first flow so as to reduce the possibility of packet loss of the flow and improve the buffer capacity of the switch equipment in the flow transmission path. For example, if the lost message is a new connection message of TCP (transmission control protocol) or a reconnection message of TCP, which indicates that the service of the TCP has been affected, the user should elastically expand the service of the back end of the TCP or increase the priority of the service traffic according to the content shown, and convert the service into the first traffic.
In this embodiment, the first traffic is traffic that needs to be retransmitted with a large amount of data after the packet loss occurs, so that bandwidth is wasted, or the data is lost after the packet loss.
In this embodiment, the user may differentiate risk levels in the buffer queues with different buffer ratios according to the importance level of the traffic in the transmission path, for example, consider a queue with a buffer ratio exceeding 80% as a cache queue, where the risk of packet loss of the queue is higher. When the buffer ratio of the queue is reduced to 50%, the packet loss risk of the queue is reduced to a general risk, and the transmitting end of the first flow in the queue can be released at the moment so as to enable the first flow in the queue to be forwarded normally; when the buffer ratio in the buffer queue is reduced to 30%, the packet loss risk of the queue is low, and the queue is regarded as a low-risk queue, so that the traffic originally entering the queue can be forwarded normally, and the network can enter a normal forwarding flow.
In this embodiment, for a transmission path that does not include the first traffic, the traffic packet loss risk of the buffer queue with a buffer ratio exceeding 90% is generally regarded as a high risk, and when the high risk is detected, a warning is sent to the user to prevent the traffic packet loss in the current queue; the flow packet loss risk of the buffer queue with the buffer proportion lower than 10% is regarded as low risk, when the low risk is detected, the buffer of the port is adjusted to half of the maximum value, forwarding memory can be saved for the OVS to use the computing resource, and the buffer can be saved for the physical exchanger to forward for other ports, so that the service efficiency of the whole network system is improved.
As shown in fig. 4, in one embodiment, a cloud network traffic forwarding apparatus includes:
the confirmation module 410 is configured to confirm a transmission path of a first traffic, where the first traffic is a traffic with a transmission priority higher than a first threshold.
Specifically, the user classifies the traffic according to the importance degree of the traffic, wherein the first traffic is of a traffic type needing lossless forwarding, so that the transmission priority of the first traffic is set to be higher than a first threshold. For example, the user considers that the flow of accessing the object storage and the file storage by the virtual machine is important, and the flow can be set to be the first flow, so that the possibility of packet loss is reduced to the greatest extent in the transmission process. And finding out a transmission path of the service flow according to the flow type set by the user, and further finding out a starting point in the transmission path and switch equipment of each node. Wherein the switch device comprises an OVS (virtual switch) and a physical switch.
The adjusting module 420 is configured to adjust the buffer capacity of the switch device in the transmission path to a second threshold, where the second threshold is not less than the current value of the buffer capacity of the switch device.
Specifically, the starting point of the transmission path where the first flow is located and the buffer capacity of each switch device of each node are adjusted to a second threshold, that is, the buffer capacity of the switch device is increased, so as to avoid packet loss of the first flow. Generally, the buffer capacity of each switch device in the transmission path for transmitting the first traffic can be adjusted to the maximum value, so as to ensure the stability and smoothness of the transmission process of the first traffic as much as possible.
The monitoring module 430 is configured to monitor a buffer queue and a buffer ratio of the switch device in the transmission path, and when the buffer ratio is greater than a third threshold, preferentially transmit a first flow in the buffer queue, and reduce a second flow entering the buffer queue, where the second flow is a flow with a transmission priority lower than the first threshold.
Specifically, the transmission path is monitored, when the buffer ratio of the buffer queue where the first flow is located exceeds a third threshold, the risk of congestion packet loss occurring in the buffer queue is considered to be larger, and the DSCP (differential service code point) values of the outer layer Vxlan (extensible virtual local area network) head and the inner layer IP packet head of the first flow in the buffer queue are set to be the highest, so that the first flow can enter the buffer queue preferentially, the number of packets sent by the buffer queue is reduced, the second flow entering the buffer queue is reduced, and the buffer ratio in the buffer queue is reduced. The transmission priority of the second flow is lower than that of the first flow, and lossless forwarding is not needed; the buffer ratio is the ratio of the buffer capacity of the exchanger equipment occupied by all traffic in the path.
The interaction module 440 is configured to obtain the packet loss flow in the transmission path, and send the message content corresponding to the packet loss flow.
Specifically, packet loss generally refers to that traffic data cannot be transmitted to a destination for various reasons, which easily causes data loss and even causes packet loss of other related traffic data. When the situation of the buffer packet loss of the exchanger equipment in the transmission path is obtained, and the condition that the flow packet loss occurs to a certain exchanger equipment is monitored, the lost message content of the exchanger equipment is grabbed, and the lost message content is displayed to a user. The user can improve the priority of the packet loss flow based on the displayed content, and change the type of the packet loss flow into the first flow so as to reduce the possibility of packet loss of the flow, and also improve the buffer capacity of the exchanger equipment in the flow transmission path. Through a man-machine interaction way, a user can autonomously determine the priority of flow forwarding, and the lossless forwarding of important flows is ensured.
In one embodiment, a computer device is provided, which may be a smart terminal, and the internal structure thereof may be as shown in fig. 5. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a cloud network traffic forwarding method.
It will be appreciated by those skilled in the art that the structure shown in fig. 5 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device includes a memory storing a computer program and a processor implementing the steps of the method embodiments described above when the computer program is executed by the processor. In one embodiment, a computer storage medium stores a computer program which, when executed by a processor, performs the steps of the method embodiments described above.
In one embodiment, a computer program product or computer program is provided that includes computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in the above-described method embodiments.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the invention and are described in detail herein without thereby limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.

Claims (10)

1. A cloud network traffic forwarding method, the method comprising:
confirming a transmission path of a first flow, wherein the first flow is a flow with a transmission priority higher than a first threshold value;
adjusting the buffer capacity of the switch equipment in the transmission path to a second threshold value, wherein the second threshold value is not smaller than the current value of the buffer capacity of the switch equipment;
monitoring the buffer queue and buffer ratio of the switch equipment in the transmission path, and preferentially transmitting first traffic in the buffer queue when the buffer ratio is greater than a third threshold value, and reducing second traffic entering the buffer queue, wherein the second traffic is traffic with transmission priority lower than the first threshold value;
and acquiring the packet loss flow in the transmission path, and sending the message content corresponding to the packet loss flow.
2. The cloud network traffic forwarding method according to claim 1, wherein said validating the transmission path of the first traffic further comprises:
and setting a sys-agent program at each switch device, wherein the sys-agent program is used for collecting statistical data and storing the statistical data into the ES node, and the statistical data comprises the cache capacity, the cache proportion, the packet loss condition and the discarded message content.
3. The cloud network traffic forwarding method according to claim 2, wherein the setting of the sys-agent program at each switch device further comprises:
and carrying out a vnet-controller program, wherein the vnet-controller program is used for acquiring statistical data from the ES node and displaying the statistical data to a user through a Kafka system.
4. The cloud network traffic forwarding method according to claim 1, wherein the obtaining the packet loss traffic in the transmission path and sending the message content corresponding to the packet loss traffic include:
and monitoring the switch equipment, acquiring the buffer packet loss condition of each switch equipment through a sys-agent program, and acquiring the content of a lost message and storing the content into an ES node when the flow packet loss of certain switch equipment is monitored.
5. The cloud network traffic forwarding method according to claim 4, wherein the obtaining the packet loss traffic in the transmission path and sending the message content corresponding to the packet loss traffic further includes:
and acquiring the content of the lost message in the ES node through a vnet-controller program and sending the content to a user so that the user can adjust according to the importance degree of the packet loss flow.
6. The method for forwarding cloud network traffic according to claim 1, wherein the first traffic is traffic that needs to be retransmitted with a large amount of data after packet loss occurs, so that bandwidth is wasted, or data is lost after packet loss occurs.
7. A cloud network traffic forwarding device, comprising:
the confirming module is used for confirming a transmission path of a first flow, wherein the first flow is a flow with a transmission priority higher than a first threshold value;
the adjusting module is used for adjusting the buffer capacity of the switch equipment in the transmission path to a second threshold value, and the second threshold value is not smaller than the current value of the buffer capacity of the switch equipment;
the monitoring module is used for monitoring the buffer queue and the buffer ratio of the switch equipment in the transmission path, preferentially transmitting the first flow in the buffer queue when the buffer ratio is larger than a third threshold value, and reducing the second flow entering the buffer queue, wherein the second flow is the flow with the transmission priority lower than the first threshold value;
and the interaction module is used for acquiring the packet loss flow in the transmission path and sending the message content corresponding to the packet loss flow.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method of any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
CN202310226538.3A 2023-03-10 2023-03-10 Cloud network traffic forwarding method and device Pending CN116346731A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310226538.3A CN116346731A (en) 2023-03-10 2023-03-10 Cloud network traffic forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310226538.3A CN116346731A (en) 2023-03-10 2023-03-10 Cloud network traffic forwarding method and device

Publications (1)

Publication Number Publication Date
CN116346731A true CN116346731A (en) 2023-06-27

Family

ID=86885064

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310226538.3A Pending CN116346731A (en) 2023-03-10 2023-03-10 Cloud network traffic forwarding method and device

Country Status (1)

Country Link
CN (1) CN116346731A (en)

Similar Documents

Publication Publication Date Title
CN107040415B (en) Terminal, data reporting method, server and data receiving method
CN113709057A (en) Network congestion notification method, proxy node, network node and computer equipment
US20220210071A1 (en) Network congestion control method, node, system, and storage medium
CN111966289B (en) Partition optimization method and system based on Kafka cluster
CN113810309A (en) Congestion processing method, network device and storage medium
CN112787951A (en) Congestion control method, device, equipment and computer readable storage medium
CN112995048B (en) Blocking control and scheduling fusion method of data center network and terminal equipment
CN111314179A (en) Network quality detection method, device, equipment and storage medium
EP3952233A1 (en) Tcp congestion control method, apparatus, terminal, and readable storage medium
CN113364682A (en) Data transmission method and device, storage medium and electronic device
US20220053373A1 (en) Communication apparatus, communication method, and program
US9225650B2 (en) Network system, gateway, and packet delivery method
JP2015111778A (en) Network control apparatus and network system
CN112367384B (en) Kafka cluster-based dynamic speed limiting method and device and computer equipment
CN113467969A (en) Method for processing message accumulation
US11140089B2 (en) Data writing method, system, device and computer-readable storage medium
CN116346731A (en) Cloud network traffic forwarding method and device
CN109089281B (en) Cluster communication method, terminal equipment and storage medium
CN112202896A (en) Edge calculation method, frame, terminal and storage medium
CN110661722A (en) Flow control method and device
CN116827867A (en) Low-delay congestion flow identification method based on data center network
CN115174478A (en) Network congestion control method and related device
CN116418893A (en) Data management method and corresponding device
CN113676341B (en) Quality difference evaluation method and related equipment
CN114070795A (en) Congestion threshold determination method, device, equipment and storage medium

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