CN112437017A - Data flow control system, method, device, equipment and medium - Google Patents

Data flow control system, method, device, equipment and medium Download PDF

Info

Publication number
CN112437017A
CN112437017A CN202011285749.7A CN202011285749A CN112437017A CN 112437017 A CN112437017 A CN 112437017A CN 202011285749 A CN202011285749 A CN 202011285749A CN 112437017 A CN112437017 A CN 112437017A
Authority
CN
China
Prior art keywords
service
switch
message
detection message
detected
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
CN202011285749.7A
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.)
Ruijie Networks Co Ltd
Original Assignee
Ruijie Networks 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 Ruijie Networks Co Ltd filed Critical Ruijie Networks Co Ltd
Priority to CN202011285749.7A priority Critical patent/CN112437017A/en
Publication of CN112437017A publication Critical patent/CN112437017A/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/11Identifying congestion
    • H04L47/115Identifying congestion using a dedicated packet
    • 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
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/26Flow control; Congestion control using explicit feedback to the source, e.g. choke packets
    • H04L47/263Rate modification at the source after receiving feedback

Landscapes

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

Abstract

The invention discloses a data flow control system, a method, a device, equipment and a medium. And the source server generates and sends a detection message of the service to be detected according to a preset period, so that each switch on a transmission path corresponding to the service to be detected adds cache use information of a transmission queue for transmitting the service message of the service to be detected into the detection message. And the source server receives a feedback detection message which corresponds to the detection message and contains the cache use information of each switch, and determines the congestion condition of each switch according to the cache use information which corresponds to each switch and is carried in the feedback detection message. When the congestion condition of any switch meets the pre-configured speed reduction condition, the speed of sending the service message of the service to be detected is reduced in time, only the speed of sending the service message of the service to be detected is accurately controlled, the speed of sending the service message of other services is not influenced, and the throughput and the bandwidth utilization rate of the switch and the server are improved.

Description

Data flow control system, method, device, equipment and medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data flow control system, method, apparatus, device, and medium.
Background
With the progress of communication technology and the rapid development of network services, the number and types of services provided by network services are increasing. How to avoid the service packet loss caused by the congestion of the transmission queue or the imminent congestion of the transmission queue and other conditions in the process of sending the service packet through the network is a problem that people pay attention in recent years.
In the related art, the methods of PFC (Priority-based Flow Control) and ECN (Explicit Congestion Notification) may be used to perform Congestion detection and traffic packet Control of the network. Because the service messages of the services with the same priority are sent in the same transmission queue in the method, no matter the switch or the server can only distinguish the service messages with different priorities, the different service messages with the same priority cannot be distinguished, when congestion occurs in the transmission queue of a certain switch for transmitting the service message of a certain service, the method of flow control of PFC and/or ECN is adopted, although the rate of sending the service message of the service by the source server can be reduced to relieve the congestion condition of a transmission channel for transmitting the service message of the service, the rate of sending the service message of other services which are transmitted by the transmission queue and have the same priority as the service can be reduced, so that the number of services influenced by the flow control operation can be more, and further under the application scene, the throughput of servers and switches is low and bandwidth utilization is low.
Disclosure of Invention
Embodiments of the present invention provide a data flow control system, method, device, apparatus, and medium, which are used to solve the problem that when a service packet of a certain service is subjected to flow control, transmission of service packets of other services having the same priority as the service is affected, and thus throughput of a server and a switch is low and bandwidth utilization rate is low.
The embodiment of the invention provides a data flow control system, which comprises: an origin server, and at least one switch;
the source server is used for generating and sending a detection message of the service to be detected according to a preset period;
the at least one switch is used for determining a service message of a service to be detected corresponding to the detection message when the detection message is determined to be received, and determining cache use information of a transmission queue for transmitting the service message; adding the cache use information into the detection message and sending the cache use information according to a transmission path corresponding to the service message; receiving and sending a feedback detection message corresponding to the detection message and containing the cache use information of the at least one switch;
the source server is further configured to determine a congestion condition of the at least one switch according to the cache use information corresponding to the at least one switch carried in the feedback detection message if it is determined that the feedback detection message corresponding to the detection message and including the cache use information of the at least one switch is received; and if the congestion condition of any switch is determined to meet the pre-configured speed reduction condition, reducing the speed of sending the service message of the service to be detected.
Further, the source server is specifically configured to generate a detection packet of the service to be detected according to a detection flag in a pre-configured payload field;
the at least one switch is specifically configured to determine that the detection packet is received if it is determined that the detection flag is carried in the received packet.
Further, the source server is specifically configured to generate a probe packet of the service to be detected according to a service feature field and a priority field of the service packet of the service to be detected; determining a transmission queue corresponding to the service to be detected according to the priority field; and sending the detection message through the transmission queue.
Further, the at least one switch is specifically configured to determine that the detection packet is received if it is determined that the received packet carries the detection tag and the detection tag matches a preset detection tag corresponding to a priority field carried in the pre-configured packet.
Further, the system further comprises: a destination server;
the destination server is configured to replace a destination address carried in the detection message with an address of the source server if it is determined that the detection message including the cache use information of the at least one switch is received, determine the replaced detection message as a feedback detection message, and send the feedback detection message;
the at least one switch is further configured to receive the feedback detection packet and send the feedback detection packet.
Further, the destination server is specifically configured to, if it is determined that the detection packet is received, replace a priority field in the detection packet with a priority field corresponding to a transmission queue configured in advance for transmitting the detection packet, replace a destination address of the detection packet with an address of the source server, determine the replaced detection packet as a feedback detection packet, and send the feedback detection packet through the transmission queue for transmitting the detection packet.
Further, the source server is specifically configured to determine, for the at least one switch, a target cache usage amount of the switch according to the cache usage information corresponding to the switch; and if the target cache usage amount of the switch is larger than the preset maximum cache threshold value corresponding to the switch, determining that the congestion condition of the switch meets the preset speed reduction condition.
Further, the source server is specifically configured to determine, if it is determined that the congestion condition of the switch meets a preconfigured speed reduction condition, target speed reduction information corresponding to a target cache usage amount of the switch according to a correspondence between a cache usage amount and speed reduction information that are stored in advance; and reducing the speed of sending the service message of the service to be detected according to the target speed reduction information.
The embodiment of the invention provides a data flow control method, which comprises the following steps:
generating a detection message of a service to be detected according to a preset period and sending the detection message, so that each switch on a transmission path corresponding to the service to be detected determines cache use information of a transmission queue of the switch, which is used for transmitting the service message of the service to be detected, and adding the cache use information into the detection message and sending the detection message;
if the received feedback detection message corresponding to the detection message and containing the cache use information of each switch is determined, determining the congestion condition of each switch according to the cache use information corresponding to each switch carried in the feedback detection message;
and if the congestion condition of any switch is determined to meet the pre-configured speed reduction condition, reducing the speed of sending the service message of the service to be detected.
Further, the generating the detection packet of the service to be detected includes:
and generating a detection message of the service to be detected according to a detection mark in a pre-configured payload field, so that each switch determines to receive the detection message if determining that the received message carries the detection mark.
Further, the generating the detection packet of the service to be detected includes:
generating a detection message of the service to be detected according to the service characteristic field and the priority field of the service message of the service to be detected;
sending the detection message, including:
determining a transmission queue corresponding to the service to be detected according to the priority field;
and sending the detection message through the transmission queue.
Further, the determining the congestion condition of each switch according to the cache use information corresponding to each switch carried in the feedback detection message includes:
for each switch, determining the target cache usage amount of the switch according to the cache usage information corresponding to the switch;
the determining that the congestion condition of any switch meets the pre-configured speed reduction condition includes:
and if the target cache usage amount of any switch is larger than the preset maximum cache threshold value corresponding to the switch, determining that the congestion condition of the switch meets the preset speed reduction condition.
Further, if it is determined that the congestion condition of any switch satisfies a preconfigured speed reduction condition, reducing the rate of sending the service packet of the service to be detected, including:
if the congestion condition of the switch is determined to meet the pre-configured speed reduction condition, determining target speed reduction information corresponding to the target cache usage of the switch according to the corresponding relation between the pre-stored cache usage and the speed reduction information;
and reducing the speed of sending the service message of the service to be detected according to the target speed reduction information.
The embodiment of the invention provides a data flow control method, which comprises the following steps:
when the detection message is determined to be received, determining a service message of a service to be detected corresponding to the detection message, and determining cache use information of a transmission queue for transmitting the service message;
adding the cache use information into the detection message and sending the cache use information according to a transmission path corresponding to the service message;
receiving and sending a feedback detection message corresponding to the detection message and containing the cache use information of each switch, so that if the source server determines to receive the feedback detection message corresponding to the detection message and containing the cache use information of each switch, the source server determines the congestion condition of each switch according to the cache use information corresponding to each switch carried in the feedback detection message; and if the congestion condition of any switch is determined to meet the pre-configured speed reduction condition, reducing the speed of sending the service message of the service to be detected.
Further, the determining that the detection packet is received includes:
and if the received message is determined to carry the detection mark, determining to receive the detection message.
Further, if the detection packet is generated according to the detection flag and the priority field of the service packet of the service to be detected, the determining to receive the detection packet includes:
and if the received message is determined to carry the detection mark and the detection mark is matched with a preset detection mark corresponding to a priority field carried in the pre-configured message, determining to receive the detection message.
The embodiment of the invention provides a data flow control device, which comprises:
the generating unit is used for generating and sending a detection message of a service to be detected according to a preset period, so that each switch on a transmission path corresponding to the service to be detected determines cache use information of a transmission queue of the switch, which is used for transmitting the service message of the service to be detected, and the cache use information is added to the detection message and sent;
a determining unit, configured to determine, if it is determined that a feedback detection packet including the cache use information of each switch corresponding to the detection packet is received, a congestion condition of each switch according to the cache use information corresponding to each switch carried in the feedback detection packet;
and the processing unit is used for reducing the speed of sending the service message of the service to be detected if the congestion condition of any switch meets the speed reduction condition configured in advance.
Further, the generating unit is specifically configured to generate a detection packet of the service to be detected according to a detection flag in a pre-configured payload field, so that each switch determines that the detection packet is received if it is determined that the detection flag is carried in the received packet.
Further, the generating unit is specifically configured to generate a probe packet of the service to be detected according to a service feature field and a priority field of the service packet of the service to be detected; determining a transmission queue corresponding to the service to be detected according to the priority field; and sending the detection message through the transmission queue.
Further, the determining unit is specifically configured to determine, for each switch, a target cache usage amount of the switch according to the cache usage information corresponding to the switch;
the processing unit is specifically configured to determine that the congestion condition of the switch satisfies a preconfigured speed reduction condition if the target cache usage amount of the switch is greater than a preconfigured maximum cache threshold corresponding to the switch.
Further, the processing unit is specifically configured to determine, if it is determined that the congestion condition of the switch meets a preconfigured speed reduction condition, target speed reduction information corresponding to a target cache usage of the switch according to a correspondence between cache usage and speed reduction information that is stored in advance; and reducing the speed of sending the service message of the service to be detected according to the target speed reduction information.
The embodiment of the invention provides a data flow control device, which comprises:
the device comprises a determining module, a sending module and a receiving module, wherein the determining module is used for determining a service message of a service to be detected corresponding to a detection message and determining cache use information of a transmission queue for transmitting the service message when the detection message is determined to be received;
the processing module is used for adding the cache use information into the detection message;
the communication module is used for sending the detection message added with the cache use information according to a transmission path corresponding to the service message; receiving and sending a feedback detection message corresponding to the detection message and containing the cache use information of each switch, so that if the source server determines to receive the feedback detection message corresponding to the detection message and containing the cache use information of each switch, the source server determines the congestion condition of each switch according to the cache use information corresponding to each switch carried in the feedback detection message; and if the congestion condition of any switch is determined to meet the pre-configured speed reduction condition, reducing the speed of sending the service message of the service to be detected.
Further, the determining module is specifically configured to determine that the detection packet is received if it is determined that the detection flag is carried in the received packet.
Further, the determining module is specifically configured to determine that the detection packet is received if it is determined that the received packet carries the detection tag and the detection tag matches a preset detection tag corresponding to a priority field carried in the pre-configured packet when the detection packet is generated according to the detection tag and the priority field of the service packet of the service to be detected.
An embodiment of the present invention provides an electronic device, where the electronic device at least includes a processor and a memory, and the processor is configured to implement, when executing a computer program stored in the memory, the steps of the data flow control method according to any one of the foregoing descriptions, or implement the steps of the data flow control method according to any one of the foregoing descriptions.
An embodiment of the present invention provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of any of the data flow control methods described above, or implements the steps of any of the data flow control methods described above.
The method comprises the steps that a source server generates and sends a detection message of a service to be detected according to a preset period, so that each switch on a transmission path corresponding to the service to be detected can add cache use information of a transmission queue used for transmitting the service message of the service to be detected to the detection message, a subsequent source server receives a feedback detection message corresponding to the detection message and containing the cache use information of each switch, and the congestion condition of each switch through which the detection message passes is determined according to the cache use information corresponding to each switch carried in the feedback detection message, so that when the congestion condition of any switch meets a preset speed reduction condition, the speed of sending the service message of the service to be detected is reduced in time, the speed of sending the service message of the service to be detected is accurately controlled only, and the speed of sending the service messages of other services is not influenced, the throughput and bandwidth utilization of the switch and the server are improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram illustrating a process of current control of a conventional PFC;
FIG. 2 is a schematic diagram of the position of a conventional ECN marker in a service message;
fig. 3 is a schematic structural diagram of a data flow control system according to an embodiment of the present invention;
fig. 4 is a schematic view of a conventional service packet transmission scenario;
fig. 5 is a schematic view of a specific work flow of the data flow control system according to the embodiment of the present invention;
fig. 6 is a schematic diagram of a data flow control process according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a data flow control process according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a data flow control apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a data flow control apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of another electronic device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the attached drawings, and it should be understood that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to implement flow control only on the rate of sending a service packet of a certain service, and improve the throughput and bandwidth utilization of switches and servers, embodiments of the present invention provide a data flow control system, method, apparatus, device, and medium.
PFC is a mechanism that initiates flow control when congestion occurs at the switch ingress, and ECN is a flow control mechanism that initiates when congestion occurs at the switch egress (egress port).
For the PFC method, the PFC uses the 802.1q priority field in the message Vlan Tag or the DSCP field of the IP message or other message priority fields to prioritize the messages, and creates 8 transmission queues on the link, and assigns a priority to each transmission queue. When the exchanger or the server receives the message, the message is sent to the transmission queue with the corresponding priority according to the priority field carried by the message. Wherein any one of the transmission queues can individually suspend and resume transmission of data. When congestion occurs in a certain transmission queue, the service messages of services with which priorities cause the congestion of the transmission queue can be detected through the pre-configured priorities corresponding to the transmission queue, and the sending of the service messages causing the congestion of the transmission queue is suspended by sending the PFC flow control frame. The PFC eliminates congestion of the transmission queues based on the priority of the service messages, allows any one transmission queue to be independently suspended and restarted for transmitting the service messages, and does not affect other transmission queues to transmit the service messages.
Fig. 1 is a schematic diagram illustrating a process of current control of a conventional PFC. As shown in fig. 1, when a transmission queue six of a buffer at an entrance of a certain switch is congested, a service packet of each service causing the congestion of the transmission queue six and an opposite-end device that sends the service packets are determined, and then a PFC flow control frame is sent to the corresponding transmission queue six on the opposite-end device. The peer device may be a server or a switch. After the corresponding transmission queue six on the opposite-end device receives the PFC flow control frame, the opposite-end device suspends transmission of all service messages that need to be sent through the corresponding transmission queue six, so as to respond to the PFC flow control frame, thereby alleviating the congestion condition of the transmission queue six on the switch. If the transmission queue six of the peer device responds to the PFC flow control frame sent by the switch and stops streaming, the peer device further needs to cache the service packet of the service to be stopped, sent by each upstream device, in a Memory Management Unit (MMU) cache, and if the transmission queue six on the peer device is congested, the peer device also sends the PFC flow control frame to each upstream device again, so that each upstream device also stops streaming to relieve the congestion of the transmission queue six on the peer device; each upstream device also performs subsequent operations according to the steps of the peer device, so that the PFC flow control frame is always back-pressed upwards until each source server sends the service packet of the stopped service.
For the ECN method, when any transmission queue of a buffer at an outlet of a switch is congested, the switch changes ECN bits in a packet header of a service packet of each service transmitted by the transmission queue, so as to mark an ECN on a currently transmitted service packet. After the service Packet with the ECN label reaches the destination server, the destination server generates a Congestion Notification Packet (CNP) Packet and sends the CNP Packet to the source server through the switch. After receiving the CNP packet, the source server may reduce the transmission rate of the service packet of each service transmitted by the transmission queue corresponding to the service packet of the service.
Fig. 2 is a schematic diagram of the position of the conventional ECN mark in a service message. As shown in fig. 2, the ECN is marked as the lower two bits of the TOS field of the IP header, and when congestion occurs in a certain transmission queue at the switch exit, the ECN is set to 11, and the service packet carrying the ECN mark is forwarded continuously. And after receiving the CNP message, the source server responds to the CNP message and reduces the transmission rate of the service message of each service transmitted by the transmission queue corresponding to the service message of the service.
Example 1:
fig. 3 is a schematic structural diagram of a data flow control system according to an embodiment of the present invention, where the system includes: an origin server 31, and at least one switch 32;
the source server 31 is configured to generate and send a detection message of a service to be detected according to a preset period;
the at least one switch 32 is configured to, when it is determined that a detection message is received, determine a service message of a service to be detected corresponding to the detection message, and determine cache use information of a transmission queue used for transmitting the service message; adding the cache use information into the detection message and sending the cache use information according to a transmission path corresponding to the service message; receiving and sending a feedback detection message corresponding to the detection message and containing the cache use information of the at least one switch 32;
the source server 31 is further configured to determine, if it is determined that a feedback detection packet that includes the cache use information of the at least one switch 32 and corresponds to the detection packet is received, a congestion condition of the at least one switch 32 according to the cache use information that corresponds to the at least one switch 32 and is carried in the feedback detection packet; and if the congestion condition of any switch 32 is determined to meet the pre-configured speed reduction condition, reducing the speed of sending the service message of the service to be detected.
In order to implement flow control only on the rate of sending a service packet of a certain service to be detected, and improve the bandwidth utilization and throughput of the switch 32 and the server, the data flow control system provided in the embodiment of the present invention includes a source server 31 and at least one switch 32.
In an actual application scenario, when a certain server (for convenience of description, denoted as a destination server) requests a certain service, the service may be requested from an origin server 31 that can provide the service by sending a request message. The request message carries the identification information and the destination address of the service requested by the destination server. After receiving the request message sent by the destination server, the source server 31 obtains the identification information of the service carried in the request message, thereby determining the service requested by the server. And generating a service message of the service based on the data of the service and the address of the destination server, and sending the generated service message to the destination server. In the process of sending the service packet of the service to the destination server, forwarding is generally performed through at least one switch 32, and any switch 32 to which the service packet is routed may be congested.
The source server 31 may transmit the service packet by using a data stream.
In order to allow the source server 31 to reduce the rate of sending the service packet of the service in time when any switch 32 to which the service packet is routed is congested, the source server 31 may determine the service requested by the current destination server as a service to be detected, and generate a probe packet of the service to be detected according to a preset period, and forward the probe packet to the destination server through at least one switch 32 on a transmission path corresponding to the service to be detected.
When the period is set, different values can be set according to different scenes, if the service message of the service to be detected is expected to be subjected to flow control as soon as possible, the occurrence of congestion is avoided, the period can be set to be smaller, and if the detection message is prevented from being frequently generated and sent, resources are consumed, and the period can be set to be larger. In the specific implementation process, it is not suitable to set too large, and it is not suitable to set too small, for example, 1 ms.
After determining that the detection message is currently received, the switch 32 determines, based on the received detection message, a service message of the service to be detected corresponding to the detection message, determines a transmission queue for transmitting the service message of the service to be detected, obtains cache use information of the transmission queue, adds the cache use information to the detection message, and sends the detection message to the downstream device. The downstream device may be the switch 32 or the server.
It should be noted that, in the embodiment of the present invention, the buffer usage information of any transmit queue includes at least one of a ratio of a currently used buffer amount of the transmit queue to a preconfigured total buffer amount of the transmit queue, a currently used buffer amount of the transmit queue, and a currently unused buffer amount of the transmit queue.
In the actual application process, the transmission path corresponding to the service to be detected generally includes at least one switch 32, and the above steps are performed for each switch 32. The probe packet received by any switch 32 may be sent by the source server 31, and may also be sent by the switch 32.
In an actual application scenario, the destination server may receive a detection message sent by the switch 32 and including the cache use information of each switch 32 on the transmission path corresponding to the service to be detected, and generate a feedback detection message corresponding to the detection message based on the received detection message. And then, sending the generated feedback detection message containing the cache use information of each switch 32 on the transmission path corresponding to the service to be detected to the switch 32. The switch 32 forwards the feedback detection message according to the destination address carried in the received feedback detection message.
On the basis of the foregoing embodiment, the source server 31 may receive a feedback detection packet corresponding to the detection packet forwarded by the switch 32, where the feedback detection packet carries cache use information that includes cache use information of each switch 32 on a transmission path corresponding to the service to be detected. And performing corresponding processing based on the feedback detection message, thereby determining whether the rate of sending the service message of the service to be detected needs to be reduced, namely performing flow control on the service message of the service to be detected.
Specifically, after a feedback detection message which includes the cache use information of each switch 32 on the transmission path corresponding to the service to be detected and corresponds to the detection message forwarded by the switch 32 is obtained, the feedback detection message is analyzed, and according to an analysis result, the service to be detected and which corresponds to the feedback detection message and the cache use information corresponding to each switch 32 carried in the feedback detection message are determined. Based on the cache usage information corresponding to each switch 32, corresponding processing is performed to determine the congestion status of each switch 32, such as uncongested, congested, or about to be congested.
In the embodiment of the present invention, in order to accurately determine whether flow control needs to be performed on a service packet of a service to be detected, a speed reduction condition is preconfigured, where the preconfigured speed reduction condition may be that the congestion condition of the switch 32 is determined to be already congested or to be congested. After the congestion condition of each switch 32 is determined based on the above embodiment, if it is determined that the congestion condition of any switch 32 satisfies the speed reduction condition configured in advance, which indicates that a certain switch 32 through which the service packet of the service to be detected passes from the source server 31 to the destination server may be congested, the rate of sending the service packet of the service to be detected is reduced.
The rate at which the source server 31 sends the service messages of different services to be detected may be the same or different. Similarly, the flow-controlled rates of the service messages of different services to be detected may be the same or different. In the specific implementation process, the flexible setting can be performed according to the actual requirement, and is not specifically limited herein.
The method comprises the steps that a source server generates and sends a detection message of a service to be detected according to a preset period, so that each switch on a transmission path corresponding to the service to be detected can add cache use information of a transmission queue used for transmitting the service message of the service to be detected to the detection message, a subsequent source server receives a feedback detection message corresponding to the detection message and containing the cache use information of each switch, and the congestion condition of each switch through which the detection message passes is determined according to the cache use information corresponding to each switch carried in the feedback detection message, so that when the congestion condition of any switch meets a preset speed reduction condition, the speed of sending the service message of the service to be detected is reduced in time, the speed of sending the service message of the service to be detected is accurately controlled only, and the speed of sending the service messages of other services is not influenced, the throughput and bandwidth utilization of the switch and the server are improved.
Example 2:
in order to accurately obtain the cache use information of the switch 32, on the basis of the above embodiment, in the embodiment of the present invention, the source server 31 is specifically configured to generate a detection packet of the service to be detected according to a detection flag in a pre-configured payload field;
the at least one switch 32 is specifically configured to determine that the detection packet is received if it is determined that the detection flag is carried in the received packet.
In the actual application process, valid data information of a service message is recorded in a payload (payload) field in any service message, and the payload field in a detection message does not need to record the valid data information. Therefore, in the embodiment of the present invention, the detection flag in the payload field in the detection message may be configured in advance, for example, the first 16 bytes in the payload field are all a, so that the subsequent switch 32 can distinguish whether the currently received message is a service message or a detection message.
Note that, when the detection flag is set, the detection flag is different from the valid data information.
In a specific implementation process, the source server 31 generates and sends a detection message of the service to be detected according to the detection flag in the preconfigured payload field.
When the switch 32 receives the message, the message is analyzed to obtain the payload field carried in the message. If the payload field carried in the message is determined not to be a pre-configured detection mark, determining that the currently received message is a service message, and forwarding the service message to downstream equipment according to a destination address carried in the service message; if the payload field carried in the message is determined to be a pre-configured detection mark, determining that the currently received message is a detection message, determining a service message of a service to be detected corresponding to the detection message, determining a transmission queue currently used for transmitting the service message of the service to be detected, acquiring cache use information of the transmission queue, adding the cache use information into the detection message, and sending the cache use information to downstream equipment.
In order to facilitate determining a transmission queue for transmitting a detection message, in the embodiment of the present invention, the source server 31 is specifically configured to generate the detection message of the service to be detected according to the service feature field and the priority field of the service message of the service to be detected; determining a transmission queue corresponding to the service to be detected according to the priority field; and sending the detection message through the transmission queue.
In an actual application scenario, the detection message is also sent from the source server 31 to the destination server, and a transmission path for transmitting the detection message is the same as a transmission path for transmitting the service message of the service to be detected, that is, the detection message is sent from the source server 31 to the switch 32 through which the destination server passes, and the detection message is sent from the source server 31 to the switch 32 through which the destination server passes. Therefore, in order to ensure that the probe packet can be transmitted according to the same transmission path as the service packet, in the embodiment of the present invention, the source server 31 may generate the probe packet of the service to be detected according to the service feature field and the priority field of the service packet of the service to be detected, that is, directly determine the service feature field and the priority field of the service packet as the service feature field and the priority field carried in the probe packet, respectively. Subsequently, based on the priority field in the detection message, the source server 31 may determine the transmission queue corresponding to the service to be detected, and detect the message through the transmission queue.
The priority field may be a DSCP field, an 802.1p priority field, a priority field of other service messages, etc., and the service feature field may be a destination port number, a four-layer port number, quintuple information, etc.
It should be noted that, in one possible implementation, the DSCP field in the priority field may also be a service characteristic field. Specifically, how to set the priority field and the service feature field may be flexibly set according to actual requirements, which is not specifically limited herein.
Further, the switch 32 may also determine, based on the priority field carried in the received probe packet, a transmission queue for transmitting the service packet of the service to be detected corresponding to the probe packet, further obtain cache use information of the transmission queue, and add the cache use information to the probe packet. And then, the processed detection message is sent to downstream equipment through a transmission queue corresponding to the service to be detected.
In another possible implementation, if a detection flag different from the valid data information in the payload field of all the service packets is to be set, it is difficult, and in order to reduce the difficulty of setting the detection flag, the detection flags corresponding to different transmission queues may be set to be different, that is, the detection flags corresponding to services with different priorities are set to be different. Specifically, for each transmission queue, according to the valid data information of the payload field carried in each service packet transmitted by the transmission queue, special data information different from the valid data information that may be carried in each service packet transmitted by the transmission queue is set, and the special data information is determined as the detection flag corresponding to the transmission queue and stored. Subsequently, aiming at each service to be detected, generating a detection message of the service to be detected according to the service characteristic field, the priority field and a detection mark corresponding to a transmission queue which is configured in advance and used for transmitting the service message of the service to be detected; and determining a transmission queue corresponding to the detection message according to the priority field, and sending the detection message through the transmission queue.
Further, the at least one switch 32 is specifically configured to determine that the detection packet is received if it is determined that the received packet carries the detection tag and the detection tag matches a preset detection tag corresponding to a priority field carried in the preconfigured packet.
Because the detection marks corresponding to different preconfigured transmission queues are different, in the embodiment of the present invention, after the switch 32 receives the message, the received message is analyzed, and the payload field and the priority field carried in the message are obtained. And performing corresponding processing based on the obtained payload field and the priority field, so as to determine whether the received message is a detection message. Specifically, it is determined whether the payload field is a pre-configured detection flag, and whether the detection flag matches a detection flag (for convenience of description, recorded as a pre-configured detection flag) corresponding to a priority field carried in the pre-configured message.
In a possible implementation manner, if it is determined that the payload field is a pre-configured detection mark and the detection mark is matched with a preset detection mark corresponding to a priority field carried in the pre-configured message, determining that the received message is a detection message; determining a transmission queue currently used for transmitting the service message of the service to be detected based on the priority field carried in the detection message, acquiring cache use information of the transmission queue, and adding the cache use information into the detection message; and sending the processed detection message to downstream equipment through the determined transmission queue according to the destination address carried by the detection message.
In another possible implementation manner, if it is determined that the payload field is not a pre-configured detection mark, or the detection mark is not mismatched with a pre-configured detection mark corresponding to a priority field carried in the pre-configured message, it is determined that the currently received message is a service message, and a transmission queue for transmitting the service message is determined according to the priority field carried in the service message; and forwarding the service message to downstream equipment through the determined transmission queue according to the destination address carried by the service message.
In addition, in order to facilitate the subsequent staff members to determine the congestion condition of each switch 32, the switch 32 may also add at least one of preconfigured identification information (DeviceID) of the switch 32, such as a device ID, information (for convenience of description, referred to as message path information) of the probe message passing through the entrance and exit of the switch 32, and information (for convenience of description, referred to as queue information) of a transmission queue where the message travels to the probe message. The subsequent staff can determine the congestion condition of each switch 32 included in the path for transmitting the service packet of the service to be detected according to the feedback detection packet corresponding to the detection packet, so as to monitor each switch 32, and timely adjust the switch 32 when any switch 32 may have a fault.
For example, after determining that the probe packet is received, any switch 32 adds a Metadata field to the probe packet, where the Metadata field includes a DeviceID, packet path information, queue information, and cache usage of a transmission queue for transmitting the probe packet of the switch 32.
It should be noted that the identification information of the switch 32 may be a number, a character string, or the like, or may be in other forms, and may mainly uniquely identify the presentation form of the switch 32, and all of which may be applied to the embodiments of the present invention.
Example 3:
in order to ensure that the source server 31 can receive the feedback detection packet corresponding to the detection packet, on the basis of the foregoing embodiments, in an embodiment of the present invention, the system further includes: a destination server;
the destination server is configured to, if it is determined that a detection message including the cache use information of the at least one switch 32 is received, replace a destination address carried in the detection message with an address of the source server 31, determine the replaced detection message as a feedback detection message, and send the feedback detection message;
the at least one switch 32 is further configured to receive the feedback detection packet and send the feedback detection packet.
In an actual application scenario, in order to implement sending a message from the source server 31 to the destination server, when a server (including the source server 31 and the destination server) generates a message, an address of an opposite-end server is carried in the generated message, so as to transmit the generated message. Therefore, the data flow control system provided by the embodiment of the invention further comprises the destination server. The destination server is configured to receive the service packet forwarded by the switch 32, and receive a probe packet sent by the switch 32 and containing the cache use information of at least one switch 32, generate a feedback probe packet corresponding to the probe packet and containing the cache use information of at least one switch 32, and send the feedback probe packet. Specifically, when the destination server determines that the received message is a detection message including the cache use information of at least one switch 32, the destination address carried in the detection message is replaced with the address of the source server 31, and the replaced detection message is determined as a feedback detection message and is sent.
The method for determining whether the currently received message is the detection message by the destination server is the same as the method for determining whether the currently received message is the detection message by the switch 32, and the repeated parts are not described again.
Further, after the switch 32 receives a feedback detection packet corresponding to the detection packet and including the cache use information of at least one switch, the feedback detection packet is sent to the downstream device according to the destination address carried in the feedback detection packet, so as to forward the feedback detection packet to the source server 31.
In a possible implementation manner, in order to send the feedback detection packet to the source server 31 in time so that the source server 31 performs subsequent processing based on the feedback detection packet, in the embodiment of the present invention, a transmission queue (for convenience of description, referred to as an exclusive transmission queue) dedicated to transmit the feedback detection packet may be determined from each transmission queue, and according to a correspondence between a pre-stored priority field and the transmission queue, a priority field corresponding to the exclusive transmission queue is determined, and the priority field is determined as a pre-configured priority field. After the destination server receives the detection message containing the cache use information of at least one switch 32, the priority field in the detection message is replaced by the priority field corresponding to the transmission queue configured in advance for transmitting the detection message, the destination address carried in the detection message is replaced by the address of the source server 31, and the detection message after replacement is determined as the feedback detection message. Specifically, the destination server is specifically configured to determine, if it is determined that a feedback detection packet that includes the cache use information of the at least one switch 32 and corresponds to the detection packet is received, a congestion condition of the at least one switch 32 according to the cache use information that corresponds to the at least one switch 32 and is carried in the feedback detection packet; and if the congestion condition of any switch 32 is determined to meet the pre-configured speed reduction condition, reducing the speed of sending the service message of the service to be detected.
When the dedicated transmission queue is set, one transmission queue with a higher priority may be selected as the dedicated transmission queue according to the pre-configured priority corresponding to each transmission queue, or one transmission queue with a smaller processing service may be selected as the dedicated transmission queue according to the number of services corresponding to each transmission queue. Of course, other setting manners may also be adopted, and in the specific implementation process, the setting may be flexibly performed according to actual requirements, which is not specifically limited herein.
In a possible implementation manner, the dedicated transmission queue for sending the feedback detection packet corresponding to the detection packet may be the same as or different from the transmission queue for sending the detection packet. The target server can obtain the priority field in the detection message before replacing the priority field in the detection message according to the priority field corresponding to the special transmission queue which is configured in advance and used for transmitting the detection message, judge whether the priority field is the same as the priority field which is configured in advance, and if the priority field is the same as the priority field which is configured in advance, the step of replacing the priority field in the detection message according to the priority field corresponding to the special transmission queue which is configured in advance and used for transmitting the detection message does not need to be executed subsequently; and if the priority fields are different, replacing the priority fields in the detection messages according to the priority fields corresponding to the pre-configured exclusive transmission queues for transmitting the detection messages.
Example 4:
in order to accurately perform flow control on a service packet of a service to be detected, on the basis of the foregoing embodiments, in an embodiment of the present invention, the source server 31 is specifically configured to determine, for the at least one switch 32, a target cache usage amount of the switch 32 according to cache usage information corresponding to the switch 32; if the target cache usage amount of the switch 32 is greater than the preconfigured maximum cache threshold corresponding to the switch, it is determined that the congestion condition of the switch 32 meets the preconfigured speed reduction condition.
In this embodiment of the present invention, after the source server 31 acquires the cache use information corresponding to each switch 32, for each switch 32, corresponding processing is performed according to the cache use information corresponding to the switch 32, and a target cache use amount corresponding to the switch 32 is determined.
Since the total buffer amounts corresponding to the different transmission queues of the different switches 32 configured in advance are different, in order to determine the congestion condition of each switch 32, the target buffer usage amount of any switch 32 may be represented as a ratio of the currently used buffer amount of the transmission queue of the switch 32 for processing the service to be detected to the total buffer amount of the transmission queue configured in advance.
In a specific implementation process, if the cache usage information corresponding to any switch 32 includes a ratio of a currently used buffer amount of the transmission queue for processing the service to be detected to a total buffer amount of the transmission queue configured in advance, the ratio may be directly determined as a target cache usage amount.
If the cache usage information corresponding to any switch 32 includes the currently used buffer amount of the transmission queue for processing the service to be detected, the source server 31 determines, for each switch 32, the target cache usage amount according to the currently used buffer amount corresponding to the switch 32 and the total buffer amount of the transmission queue of the switch 32 for processing the service to be detected.
The total buffer amount of the transmission queue of any switch 32 for processing the service to be detected may be stored in advance by the origin server 31, or may be obtained from the buffer usage information corresponding to the switch 32, that is, sent by the switch 32.
If the cache usage information corresponding to any switch 32 includes the currently unused buffer amount of the transmission queue for processing the service to be detected, the source server 31 determines, for each switch 32, the cache unused amount according to the currently unused buffer amount corresponding to the switch 32 and the total buffer amount of the transmission queue for processing the service to be detected of the switch 32; and determining the target cache usage corresponding to the switch 32 according to the cache non-usage.
In order to determine whether the congestion condition of the current switch 32 meets the preconfigured speed reduction condition, in the embodiment of the present invention, a maximum buffer threshold is preconfigured to identify a maximum buffer amount that can be used by the transmission queue for processing the service to be detected when congestion of the switch 32 is not caused. When the target cache usage amount of any switch 32 is determined based on the above embodiment, the target cache usage amount is compared with a preconfigured maximum cache threshold value corresponding to the switch 32. Specifically, if the target cache usage amount of the switch 32 is greater than the preconfigured maximum cache threshold value corresponding to the switch 32, which indicates that the switch 32 may be congested and a traffic packet of a service to be detected needs to be subjected to flow control, it is determined that the congestion condition of the switch 32 meets the preconfigured speed reduction condition. If the target cache usage amount of the switch 32 is not greater than the preconfigured maximum cache threshold value corresponding to the switch 32, which indicates that the switch 32 is not congested and the traffic packet of the service to be detected does not need to be subjected to flow control, it is determined that the congestion condition of the switch 32 does not satisfy the preconfigured speed reduction condition.
In a possible implementation manner, after determining that the congestion condition of a certain switch 32 meets the pre-configured speed reduction condition based on the above implementation manner, the rate of sending the service packet of the service to be detected needs to be reduced. Specifically, the source server 31 is specifically configured to determine, if it is determined that the congestion condition of the switch 32 meets a preconfigured speed reduction condition, target speed reduction information corresponding to a target cache usage of the switch 32 according to a correspondence between a cache usage and speed reduction information that are stored in advance; and reducing the speed of sending the service message of the service to be detected according to the target speed reduction information.
In an actual application scenario, the extent to which the required source server 31 reduces the rate of sending the service packet of the service to be detected is different for different congestion degrees of the switch 32. For example, the usage amount of the target cache of a certain switch 32 is high, which indicates that the congestion degree of the switch 32 is severe, the source server 31 is required to reduce the rate of sending the service packet of the service to be detected as much as possible, and adjust the rate of sending the service packet of the service to be detected to 0% or 2% of the original transmission rate, etc., the usage amount of the target cache of a certain switch 32 is not very high, which indicates that the congestion degree of the switch 32 is light, and the source server 31 is not required to reduce the rate of sending the service packet of the service to be detected too much, and adjust the rate of sending the service packet of the service to be detected to 80% of the original transmission rate, etc. Based on this, in the embodiment of the present invention, the correspondence between the cache usage amount and the speed reduction information is preset and stored in the source server 31. The speed reduction information may be a ratio of a speed after speed reduction to a speed before speed reduction, or may be a speed after speed reduction directly. After determining that the congestion condition of a certain switch 32 meets the pre-configured speed reduction condition based on the above embodiment, the target speed reduction information corresponding to the target cache usage amount of the switch 32 is determined according to the correspondence relationship between the cache usage amount and the speed reduction information stored in advance. And reducing the speed of sending the service message of the service to be detected according to the target speed reduction information.
Example 5:
for convenience of description of the data flow control process provided by the embodiment of the present invention, in an actual application scenario, the description is performed in combination with the existing PFC method and ECN method:
fig. 4 is a schematic view of a conventional service packet transmission scenario. As shown in fig. 4, the Server (Server10) sends a service packet a to the Server30 (Server30), which passes through three NODEs of the switch 32, which are NODE 1, NODE4, and NODE3, respectively; the Server10 sends a service message B to a Server (Server20), and the service message B passes through three switch 32 NODEs, namely NODE 1, NODE 5 and NODE 2; it is assumed that the service packet a and the service packet B belong to service packets of the same service, and the transmission queues for transmitting the two service packets have the same priority, that is, the transmission queues having the same priority are shared between the server and each switch 32 node.
It is assumed that, in a certain time period, due to the fact that the service packet a is too large, congestion occurs at an entrance and an exit of a transmission queue on the switch 32NODE 3 for transmitting the service packet a.
At this time, if the flow control is performed by using the PFC method, a PFC flow control frame is generated at an inlet of a transmission queue for transmitting the service packet a on the NODE3 and fed back to an outlet of the transmission queue for transmitting the service packet a on the NODE4 (for convenience of description, it is denoted as a NODE4-a-OUT port), after the NODE4-a-OUT port on the NODE4 receives the PFC flow control frame, the flow stop is started in response to the PFC flow control frame, so that all service packet outlets on the NODE4 are the NODE4-a-OUT ports, and other service packets having the same priority as the priority of the service packet a cannot be forwarded in time, all service packets that cannot be forwarded are cached in a cache of the transmission queue in the NODE4, thereby possibly causing congestion of the NODE 4. When NODE4 is congested, NODE4 continues to transmit PFC flow control frames to upstream devices. Since all service message outlets on NODE4 are NODE4-a-OUT ports, and a service message with the same priority as that of the service message a may be from NODE 1 or from NODE 2, both NODE 1 and NODE 2 may receive a PFC flow control frame sent by NODE 4. According to the processing steps, NODE 1 and NODE 2 also generate a PFC flow control frame and continue to send the PFC flow control frame to upstream equipment when congestion occurs, and so on, which may further cause that both the Server10 … Server1n and the Server20 … Server2n are affected, but actually, only the Server10 needs to reduce the rate of sending the service message A. The PFC method causes too many switches 32 and servers to be affected, and results in low throughput and low bandwidth utilization of each device in the scene.
In addition, the main function of the PFC flow control frame is to directly stop the flow of the peer device and continuously stop the flow of the upstream device by back pressure. The PFC flow control frame may cause an increase in delay of a service packet, which may cause that some services sensitive to delay, such as a distributed storage service and an AI artificial intelligence service, in a data center may not operate normally.
Still taking the scenario shown in fig. 3 as an example, at this time, if the ECN method is used for flow control, an ECN mark is added to the service packet a at an outlet (for convenience of description, marked as a NODE3-a-OUT port) of a transmission queue used for transmitting the service packet a on the NODE 3. After the Server30 receives the service message carrying the ECN mark, the Server sends a CNP message to the Server10 at the opposite end in order to respond to the service message, and returns the CNP message to the Server10 along the original routes of NODE3, NODE4 and NODE 1, after the Server10 receives the CNP message, in order to respond to the CNP message, the Server reduces the speed actively for transmitting all the service messages transmitted by the transmission queue of the service message a, so as to achieve the purpose of relieving NODE3 congestion, but the Server10 reduces the speed actively, which not only reduces the speed for sending the service message a, but also reduces the speed for sending the service message B and other service messages, and causes many services to be affected, thereby causing low throughput and low bandwidth utilization rate of each device in the scene.
In addition, in the ECN method, after the switch 32 that needs to send congestion adds the ECN flag to the service packet, the destination server receives the service packet carrying the ECN flag, and then sends the CNP packet to the source server 31, and after the source server 31 responds to the CNP packet, performs active speed reduction to alleviate congestion.
In order to solve the above problem, in the embodiment of the present invention, the source server 31 does not need to perform flow control on each service to be detected until a certain switch 32 is congested or is about to be congested, and it can obtain the congestion condition of each switch 32 included in the transmission path from the source server 31 to the destination server in time by a method of sending a detection message while sending a service message of the service to be detected, so as to reduce the rate of sending the service message of the service to be detected when the congestion condition of any switch 32 meets a preset speed reduction condition.
Specifically, fig. 5 is a schematic diagram of a specific workflow of the data flow control system according to the embodiment of the present invention, where the workflow includes:
s501: the source server 31 generates a detection message of the service to be detected according to a preset period, the service feature field and the priority field of the service message of the service to be detected, and a detection mark in a preset payload.
S502: the source server 31 determines a transmission queue corresponding to the service to be detected according to the priority field, and sends the detection message through the transmission queue.
S503: after the switch 32 receives the message, it parses the received message to obtain the payload field and the priority field carried in the message.
S504: the switch 32 determines whether the payload field is a pre-configured detection flag, and whether the detection flag matches with a pre-configured detection flag corresponding to the priority field carried in the pre-configured message, if so, then S505 is executed, otherwise, S514 is executed.
S505: the switch 32 determines that a probe message is received.
S506: the switch 32 determines the transmission queue currently used for transmitting the service packet of the service to be detected based on the priority field carried in the probe packet, obtains the cache use information of the transmission queue, and adds the cache use information to the probe packet.
S507: the switch 32 sends the processed probe message through the determined transmission queue according to the destination address carried by the probe message.
S508: if the destination server determines that the detection message containing the cache use information of at least one switch 32 is received, a feedback detection message corresponding to the detection message is generated.
Specifically, the priority field in the detection message is replaced with a priority field corresponding to a transmission queue configured in advance for transmitting the detection message, the destination address carried in the detection message is replaced with the address of the source server 31, the replaced detection message is determined as a feedback detection message, and the feedback detection message is sent through the transmission queue for transmitting the detection message.
S509: the destination server sends a feedback detection message corresponding to the detection message and including the cache use information of at least one switch 32.
S510: if the switch 32 receives the feedback detection message, it sends the feedback detection message.
S511: if the source server 31 receives a feedback detection message corresponding to the detection message and including the cache use information of at least one switch 32, based on the feedback detection message, it determines the congestion condition of each switch, and determines whether the congestion condition of any switch 32 meets a pre-configured speed reduction condition, if so, S512 is executed, otherwise, S501 is executed.
Wherein determining the congestion status of each switch 32 comprises:
for each switch 32, the target cache usage amount of the switch 32 is determined according to the cache usage information corresponding to the switch 32.
Determining that the congestion condition of any switch 32 satisfies the preconfigured speed-down condition includes:
if the target cache usage of the switch 32 is greater than the preconfigured maximum cache threshold corresponding to the switch 32, it is determined that the congestion condition of the switch 32 meets the preconfigured speed reduction condition.
S512: the source server 31 determines target speed reduction information corresponding to the target cache usage amount of the switch 32 based on a correspondence relationship between the cache usage amount and the speed reduction information stored in advance.
S513: and the source server 31 reduces the rate of sending the service message of the service to be detected according to the target speed reduction information.
S514: the switch 32 determines that the currently received message is a service message, and determines a transmission queue for transmitting the service message according to a priority field carried in the service message.
S515: the switch 32 forwards the service packet to the downstream device through the determined transmission queue according to the destination address carried by the service packet.
Example 6:
an embodiment of the present invention provides a data flow control method, and fig. 6 is a schematic diagram of a data flow control process provided in an embodiment of the present invention, where the process includes:
s601: and generating a detection message of the service to be detected according to a preset period and sending the detection message, so that each switch on a transmission path corresponding to the service to be detected determines cache use information of a transmission queue of the switch, which is used for transmitting the service message of the service to be detected, and the cache use information is added to the detection message and sent.
S602: and if the received feedback detection message corresponding to the detection message and containing the cache use information of each switch is determined, determining the congestion condition of each switch according to the cache use information corresponding to each switch carried in the feedback detection message.
S603: and if the congestion condition of any switch is determined to meet the pre-configured speed reduction condition, reducing the speed of sending the service message of the service to be detected.
The data flow control method provided by the embodiment of the invention is applied to the source server.
Further, the generating the detection packet of the service to be detected includes:
and generating a detection message of the service to be detected according to a detection mark in a pre-configured payload field, so that each switch determines to receive the detection message if determining that the received message carries the detection mark.
Further, the generating the detection packet of the service to be detected includes:
generating a detection message of the service to be detected according to the service characteristic field and the priority field of the service message of the service to be detected;
sending the detection message, including:
determining a transmission queue corresponding to the service to be detected according to the priority field;
and sending the detection message through the transmission queue.
Further, the determining the congestion condition of each switch according to the cache use information corresponding to each switch carried in the feedback detection message includes:
for each switch, determining the target cache usage amount of the switch according to the cache usage information corresponding to the switch;
the determining that the congestion condition of any switch meets the pre-configured speed reduction condition includes:
and if the target cache usage amount of any switch is larger than the preset maximum cache threshold value corresponding to the switch, determining that the congestion condition of the switch meets the preset speed reduction condition.
Further, if it is determined that the congestion condition of any switch satisfies a preconfigured speed reduction condition, reducing the rate of sending the service packet of the service to be detected, including:
if the congestion condition of the switch is determined to meet the pre-configured speed reduction condition, determining target speed reduction information corresponding to the target cache usage of the switch according to the corresponding relation between the pre-stored cache usage and the speed reduction information;
and reducing the speed of sending the service message of the service to be detected according to the target speed reduction information.
The method comprises the steps that a source server generates and sends a detection message of a service to be detected according to a preset period, so that each switch on a transmission path corresponding to the service to be detected can add cache use information of a transmission queue used for transmitting the service message of the service to be detected to the detection message, a subsequent source server receives a feedback detection message corresponding to the detection message and containing the cache use information of each switch, and the congestion condition of each switch through which the detection message passes is determined according to the cache use information corresponding to each switch carried in the feedback detection message, so that when the congestion condition of any switch meets a preset speed reduction condition, the speed of sending the service message of the service to be detected is reduced in time, the speed of sending the service message of the service to be detected is accurately controlled only, and the speed of sending the service messages of other services is not influenced, the throughput and bandwidth utilization of the switch and the server are improved.
Example 7:
an embodiment of the present invention provides a data flow control method, and fig. 7 is a schematic diagram of a data flow control process provided in an embodiment of the present invention, where the process includes:
s701: when the detection message is determined to be received, determining the service message of the service to be detected corresponding to the detection message, and determining the cache use information of the transmission queue for transmitting the service message.
S702: and adding the cache use information into the detection message and sending the cache use information according to a transmission path corresponding to the service message.
S703: receiving and sending a feedback detection message corresponding to the detection message and containing the cache use information of each switch, so that if the source server determines to receive the feedback detection message corresponding to the detection message and containing the cache use information of each switch, the source server determines the congestion condition of each switch according to the cache use information corresponding to each switch carried in the feedback detection message; and if the congestion condition of any switch is determined to meet the pre-configured speed reduction condition, reducing the speed of sending the service message of the service to be detected.
The data flow control method provided by the embodiment of the invention is applied to the switch.
Further, the determining that the detection packet is received includes:
and if the received message is determined to carry the detection mark, determining to receive the detection message.
Further, if the detection packet is generated according to the detection flag and the priority field of the service packet of the service to be detected, the determining to receive the detection packet includes:
and if the received message is determined to carry the detection mark and the detection mark is matched with a preset detection mark corresponding to a priority field carried in the pre-configured message, determining to receive the detection message.
The method comprises the steps that a source server generates and sends a detection message of a service to be detected according to a preset period, so that each switch on a transmission path corresponding to the service to be detected can add cache use information of a transmission queue used for transmitting the service message of the service to be detected to the detection message, a subsequent source server receives a feedback detection message corresponding to the detection message and containing the cache use information of each switch, and the congestion condition of each switch through which the detection message passes is determined according to the cache use information corresponding to each switch carried in the feedback detection message, so that when the congestion condition of any switch meets a preset speed reduction condition, the speed of sending the service message of the service to be detected is reduced in time, the speed of sending the service message of the service to be detected is accurately controlled only, and the speed of sending the service messages of other services is not influenced, the throughput and bandwidth utilization of the switch and the server are improved.
Example 8:
an embodiment of the present invention provides a data stream control apparatus, and fig. 8 is a schematic structural diagram of a data stream control apparatus provided in an embodiment of the present invention, where the apparatus includes:
a generating unit 81, configured to generate and send a detection message of a service to be detected according to a preset period, so that each switch on a transmission path corresponding to the service to be detected determines cache usage information of a transmission queue of the switch, where the transmission queue is used to transmit the service message of the service to be detected, and adds the cache usage information to the detection message and sends the detection message;
a determining unit 82, configured to determine, if it is determined that a feedback detection packet that includes the cache use information of each switch and corresponds to the detection packet is received, a congestion condition of each switch according to the cache use information, corresponding to each switch, carried in the feedback detection packet;
and the processing unit 83 is configured to reduce the rate of sending the service packet of the service to be detected if it is determined that the congestion condition of any switch meets a preconfigured speed reduction condition.
Further, the generating unit 81 is specifically configured to generate a detection packet of the service to be detected according to a detection flag in a pre-configured payload field, so that each switch determines that the detection packet is received if it is determined that the detection flag is carried in the received packet.
Further, the generating unit 81 is specifically configured to generate a detection packet of the service to be detected according to the service feature field and the priority field of the service packet of the service to be detected; determining a transmission queue corresponding to the service to be detected according to the priority field; and sending the detection message through the transmission queue.
Further, the determining unit 82 is specifically configured to determine, for the at least one switch, a target cache usage amount of the switch according to the cache usage information corresponding to the switch;
the processing unit 83 is specifically configured to determine that the congestion condition of the switch meets a preconfigured speed reduction condition if the target cache usage amount of the switch is greater than a preconfigured maximum cache threshold corresponding to the switch.
Further, the processing unit 83 is specifically configured to determine, if it is determined that the congestion condition of the switch meets a preconfigured speed reduction condition, target speed reduction information corresponding to a target cache usage of the switch according to a correspondence between a cache usage and speed reduction information that are stored in advance; and reducing the speed of sending the service message of the service to be detected according to the target speed reduction information.
The method comprises the steps that a source server generates and sends a detection message of a service to be detected according to a preset period, so that each switch on a transmission path corresponding to the service to be detected can add cache use information of a transmission queue used for transmitting the service message of the service to be detected to the detection message, a subsequent source server receives a feedback detection message corresponding to the detection message and containing the cache use information of each switch, and the congestion condition of each switch through which the detection message passes is determined according to the cache use information corresponding to each switch carried in the feedback detection message, so that when the congestion condition of any switch meets a preset speed reduction condition, the speed of sending the service message of the service to be detected is reduced in time, the speed of sending the service message of the service to be detected is accurately controlled only, and the speed of sending the service messages of other services is not influenced, the throughput and bandwidth utilization of the switch and the server are improved.
Example 9:
an embodiment of the present invention provides a data stream control apparatus, and fig. 9 is a schematic structural diagram of the data stream control apparatus provided in the embodiment of the present invention, where the apparatus includes:
the determining module 91 is configured to determine, when it is determined that a detection message is received, a service message of a service to be detected corresponding to the detection message, and determine cache use information of a transmission queue used for transmitting the service message;
a processing module 92, configured to add the cache usage information to the probe message;
a communication module 93, configured to send the detection packet to which the cache usage information is added according to a transmission path corresponding to the service packet; receiving and sending a feedback detection message corresponding to the detection message and containing the cache use information of each switch, so that if the source server determines to receive the feedback detection message corresponding to the detection message and containing the cache use information of each switch, the source server determines the congestion condition of at least one switch according to the cache use information corresponding to each switch carried in the feedback detection message; and if the congestion condition of any switch is determined to meet the pre-configured speed reduction condition, reducing the speed of sending the service message of the service to be detected.
Further, the determining module 91 is specifically configured to determine that the detection packet is received if it is determined that the detection flag is carried in the received packet.
Further, the determining module 91 is specifically configured to determine that the detection packet is received if it is determined that the detection packet carries the detection tag and the detection tag matches a preset detection tag corresponding to the priority field carried in the pre-configured packet when the detection packet is generated according to the detection tag and the priority field of the service packet of the service to be detected.
The method comprises the steps that a source server generates and sends a detection message of a service to be detected according to a preset period, so that each switch on a transmission path corresponding to the service to be detected can add cache use information of a transmission queue used for transmitting the service message of the service to be detected to the detection message, a subsequent source server receives a feedback detection message corresponding to the detection message and containing the cache use information of each switch, and the congestion condition of each switch through which the detection message passes is determined according to the cache use information corresponding to each switch carried in the feedback detection message, so that when the congestion condition of any switch meets a preset speed reduction condition, the speed of sending the service message of the service to be detected is reduced in time, the speed of sending the service message of the service to be detected is accurately controlled only, and the speed of sending the service messages of other services is not influenced, the throughput and bandwidth utilization of the switch and the server are improved.
Example 10:
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, where the electronic device includes: the system comprises a processor 1001, a communication interface 1002, a memory 1003 and a communication bus 1004, wherein the processor 1001, the communication interface 1002 and the memory 1003 are communicated with each other through the communication bus 1004;
the memory 1003 has stored therein a computer program which, when executed by the processor 1001, causes the processor 1001 to perform the steps of:
generating a detection message of a service to be detected according to a preset period and sending the detection message, so that each switch on a transmission path corresponding to the service to be detected determines cache use information of a transmission queue of the switch, which is used for transmitting the service message of the service to be detected, and adding the cache use information into the detection message and sending the detection message;
if the received feedback detection message corresponding to the detection message and containing the cache use information of each switch is determined, determining the congestion condition of each switch according to the cache use information corresponding to each switch carried in the feedback detection message;
and if the congestion condition of any switch is determined to meet the pre-configured speed reduction condition, reducing the speed of sending the service message of the service to be detected.
As the principle of the electronic device to solve the problem is similar to the data flow control method in embodiment 6, the implementation of the electronic device may refer to the implementation of the method, and repeated details are not repeated.
According to any of the above embodiments, the communication bus mentioned in the above electronic device may be a peripheral component interconnect standard (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus. The communication interface 1002 is used for communication between the electronic apparatus and other apparatuses. The memory may include Random Access Memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk memory. Alternatively, the memory may be at least one memory device located remotely from the processor. The processor can be a general-purpose processor, including a central processing unit, a Network Processor (NP), etc.; but may also be a digital instruction processor (DSP), an application specific integrated circuit, an array of field programmable gates or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
The method comprises the steps that a source server generates and sends a detection message of a service to be detected according to a preset period, so that each switch on a transmission path corresponding to the service to be detected can add cache use information of a transmission queue used for transmitting the service message of the service to be detected to the detection message, a subsequent source server receives a feedback detection message corresponding to the detection message and containing the cache use information of each switch, and the congestion condition of each switch through which the detection message passes is determined according to the cache use information corresponding to each switch carried in the feedback detection message, so that when the congestion condition of any switch meets a preset speed reduction condition, the speed of sending the service message of the service to be detected is reduced in time, the speed of sending the service message of the service to be detected is accurately controlled only, and the speed of sending the service messages of other services is not influenced, the throughput and bandwidth utilization of the switch and the server are improved.
Example 11:
fig. 11 is a schematic structural diagram of another electronic device according to an embodiment of the present invention, where the electronic device includes: the system comprises a processor 1101, a communication interface 1102, a memory 1103 and a communication bus 1104, wherein the processor 1101, the communication interface 1102 and the memory 1103 are communicated with each other through the communication bus 1104;
the memory 1103 has stored therein a computer program that, when executed by the processor 1101, causes the processor 1101 to perform the steps of:
when the detection message is determined to be received, determining a service message of a service to be detected corresponding to the detection message, and determining cache use information of a transmission queue for transmitting the service message;
adding the cache use information into the detection message and sending the cache use information according to a transmission path corresponding to the service message;
receiving and sending a feedback detection message corresponding to the detection message and containing the cache use information of each switch, so that if the source server determines to receive the feedback detection message corresponding to the detection message and containing the cache use information of each switch, the source server determines the congestion condition of each switch according to the cache use information corresponding to each switch carried in the feedback detection message; and if the congestion condition of any switch is determined to meet the pre-configured speed reduction condition, reducing the speed of sending the service message of the service to be detected.
As the principle of the electronic device to solve the problem is similar to the data flow control method in embodiment 7, the implementation of the electronic device may refer to the implementation of the method, and repeated details are not repeated.
According to any of the above embodiments, the communication bus mentioned in the above electronic device may be a peripheral component interconnect standard (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus. The communication interface 1102 is used for communication between the electronic apparatus and other apparatuses. The memory may include Random Access Memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk memory. Alternatively, the memory may be at least one memory device located remotely from the processor. The processor can be a general-purpose processor, including a central processing unit, a Network Processor (NP), etc.; but may also be a digital instruction processor (DSP), an application specific integrated circuit, an array of field programmable gates or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
The method comprises the steps that a source server generates and sends a detection message of a service to be detected according to a preset period, so that each switch on a transmission path corresponding to the service to be detected can add cache use information of a transmission queue used for transmitting the service message of the service to be detected to the detection message, a subsequent source server receives a feedback detection message corresponding to the detection message and containing the cache use information of each switch, and the congestion condition of each switch through which the detection message passes is determined according to the cache use information corresponding to each switch carried in the feedback detection message, so that when the congestion condition of any switch meets a preset speed reduction condition, the speed of sending the service message of the service to be detected is reduced in time, the speed of sending the service message of the service to be detected is accurately controlled only, and the speed of sending the service messages of other services is not influenced, the throughput and bandwidth utilization of the switch and the server are improved.
Example 12:
on the basis of the foregoing embodiments, the present invention further provides a computer-readable storage medium, in which a computer program executable by a processor is stored, and when the program runs on the processor, the processor is caused to execute the following steps:
generating a detection message of a service to be detected according to a preset period and sending the detection message, so that each switch on a transmission path corresponding to the service to be detected determines cache use information of a transmission queue of the switch, which is used for transmitting the service message of the service to be detected, and adding the cache use information into the detection message and sending the detection message;
if the received feedback detection message corresponding to the detection message and containing the cache use information of each switch is determined, determining the congestion condition of each switch according to the cache use information corresponding to each switch carried in the feedback detection message;
and if the congestion condition of any switch is determined to meet the pre-configured speed reduction condition, reducing the speed of sending the service message of the service to be detected.
As the principle of solving the problem of the computer-readable storage medium is similar to the data flow control method in the above embodiment 6, the specific implementation may refer to the implementation of the data flow control method, and repeated details are not repeated.
The method comprises the steps that a source server generates and sends a detection message of a service to be detected according to a preset period, so that each switch on a transmission path corresponding to the service to be detected can add cache use information of a transmission queue used for transmitting the service message of the service to be detected to the detection message, a subsequent source server receives a feedback detection message corresponding to the detection message and containing the cache use information of each switch, and the congestion condition of each switch through which the detection message passes is determined according to the cache use information corresponding to each switch carried in the feedback detection message, so that when the congestion condition of any switch meets a preset speed reduction condition, the speed of sending the service message of the service to be detected is reduced in time, the speed of sending the service message of the service to be detected is accurately controlled only, and the speed of sending the service messages of other services is not influenced, the throughput and bandwidth utilization of the switch and the server are improved.
Example 13:
on the basis of the foregoing embodiments, the present invention further provides a computer-readable storage medium, in which a computer program executable by a processor is stored, and when the program runs on the processor, the processor is caused to execute the following steps:
when the detection message is determined to be received, determining a service message of a service to be detected corresponding to the detection message, and determining cache use information of a transmission queue for transmitting the service message;
adding the cache use information into the detection message and sending the cache use information according to a transmission path corresponding to the service message;
receiving and sending a feedback detection message corresponding to the detection message and containing the cache use information of each switch, so that if the source server determines to receive the feedback detection message corresponding to the detection message and containing the cache use information of each switch, the source server determines the congestion condition of each switch according to the cache use information corresponding to each switch carried in the feedback detection message; and if the congestion condition of any switch is determined to meet the pre-configured speed reduction condition, reducing the speed of sending the service message of the service to be detected.
As the principle of solving the problem of the computer-readable storage medium is similar to the data flow control method in embodiment 7, the specific implementation may refer to the implementation of the data flow control method, and repeated details are not described herein.
The method comprises the steps that a source server generates and sends a detection message of a service to be detected according to a preset period, so that each switch on a transmission path corresponding to the service to be detected can add cache use information of a transmission queue used for transmitting the service message of the service to be detected to the detection message, a subsequent source server receives a feedback detection message corresponding to the detection message and containing the cache use information of each switch, and the congestion condition of each switch through which the detection message passes is determined according to the cache use information corresponding to each switch carried in the feedback detection message, so that when the congestion condition of any switch meets a preset speed reduction condition, the speed of sending the service message of the service to be detected is reduced in time, the speed of sending the service message of the service to be detected is accurately controlled only, and the speed of sending the service messages of other services is not influenced, the throughput and bandwidth utilization of the switch and the server are improved.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (13)

1. A method for data flow control, the method comprising:
generating a detection message of a service to be detected according to a preset period and sending the detection message, so that each switch on a transmission path corresponding to the service to be detected determines cache use information of a transmission queue of the switch, which is used for transmitting the service message of the service to be detected, and adding the cache use information into the detection message and sending the detection message;
if the received feedback detection message corresponding to the detection message and containing the cache use information of each switch is determined, determining the congestion condition of each switch according to the cache use information corresponding to each switch carried in the feedback detection message;
and if the congestion condition of any switch is determined to meet the pre-configured speed reduction condition, reducing the speed of sending the service message of the service to be detected.
2. The method according to claim 1, wherein the generating the probe packet of the service to be detected comprises:
and generating a detection message of the service to be detected according to a detection mark in a pre-configured payload field, so that each switch determines to receive the detection message if determining that the received message carries the detection mark.
3. The method according to claim 1 or 2, wherein the generating of the probe packet of the service to be detected comprises:
generating a detection message of the service to be detected according to the service characteristic field and the priority field of the service message of the service to be detected;
sending the detection message, including:
determining a transmission queue corresponding to the service to be detected according to the priority field;
and sending the detection message through the transmission queue.
4. The method according to claim 1, wherein the determining the congestion condition of each switch according to the cache usage information corresponding to each switch carried in the feedback detection message includes:
for each switch, determining the target cache usage amount of the switch according to the cache usage information corresponding to the switch;
the determining that the congestion condition of any switch meets the pre-configured speed reduction condition includes:
and if the target cache usage amount of any switch is larger than the preset maximum cache threshold value corresponding to the switch, determining that the congestion condition of the switch meets the preset speed reduction condition.
5. The method according to claim 4, wherein if it is determined that the congestion condition of any switch satisfies a pre-configured speed reduction condition, reducing the rate of sending the service packet of the service to be detected, includes:
if the congestion condition of the switch is determined to meet the pre-configured speed reduction condition, determining target speed reduction information corresponding to the target cache usage of the switch according to the corresponding relation between the pre-stored cache usage and the speed reduction information;
and reducing the speed of sending the service message of the service to be detected according to the target speed reduction information.
6. A method for data flow control, the method comprising:
when the detection message is determined to be received, determining a service message of a service to be detected corresponding to the detection message, and determining cache use information of a transmission queue for transmitting the service message;
adding the cache use information into the detection message and sending the cache use information according to a transmission path corresponding to the service message;
receiving and sending a feedback detection message corresponding to the detection message and containing the cache use information of each switch, so that if the source server determines to receive the feedback detection message corresponding to the detection message and containing the cache use information of each switch, the source server determines the congestion condition of each switch according to the cache use information corresponding to each switch carried in the feedback detection message; and if the congestion condition of any switch is determined to meet the pre-configured speed reduction condition, reducing the speed of sending the service message of the service to be detected.
7. A data flow control system, characterized in that the system comprises an origin server for performing the steps of the data flow control method as claimed in any one of claims 1 to 5, and at least one switch for performing the steps of the data flow control method as claimed in claim 6.
8. The system of claim 7, further comprising: a destination server;
the destination server is used for replacing a destination address carried in the detection message by the address of the source server if the detection message containing the cache use information of the at least one switch is determined to be received, determining the replaced detection message as a feedback detection message and sending the feedback detection message;
the at least one switch is further configured to receive the feedback detection packet and send the feedback detection packet.
9. The system according to claim 8, wherein the destination server is specifically configured to, if it is determined that the probe packet is received, replace a priority field in the probe packet with a priority field corresponding to a pre-configured transmission queue for transmitting the probe packet, replace a destination address of the probe packet with an address of the source server, determine the replaced probe packet as a feedback probe packet, and send the feedback probe packet through the transmission queue for transmitting the probe packet.
10. A data flow control apparatus, the apparatus comprising:
the generating unit is used for generating and sending a detection message of a service to be detected according to a preset period, so that each switch on a transmission path corresponding to the service to be detected determines cache use information of a transmission queue of the switch, which is used for transmitting the service message of the service to be detected, and the cache use information is added to the detection message and sent;
a determining unit, configured to determine, if it is determined that a feedback detection packet including the cache use information of each switch corresponding to the detection packet is received, a congestion condition of each switch according to the cache use information corresponding to each switch carried in the feedback detection packet;
and the processing unit is used for reducing the speed of sending the service message of the service to be detected if the congestion condition of any switch meets the speed reduction condition configured in advance.
11. A data flow control apparatus, the apparatus comprising:
the device comprises a determining module, a sending module and a receiving module, wherein the determining module is used for determining a service message of a service to be detected corresponding to a detection message and determining cache use information of a transmission queue for transmitting the service message when the detection message is determined to be received;
the processing module is used for adding the cache use information into the detection message;
the communication module is used for sending the detection message added with the cache use information according to a transmission path corresponding to the service message; receiving and sending a feedback detection message corresponding to the detection message and containing the cache use information of each switch, so that if the source server determines to receive the feedback detection message corresponding to the detection message and containing the cache use information of each switch, the source server determines the congestion condition of each switch according to the cache use information corresponding to each switch carried in the feedback detection message; and if the congestion condition of any switch is determined to meet the pre-configured speed reduction condition, reducing the speed of sending the service message of the service to be detected.
12. An electronic device, characterized in that the electronic device comprises at least a processor and a memory, the processor being configured to implement the steps of the data flow control method according to any of claims 1 to 5, or the steps of the data flow control method according to claim 6, when executing a computer program stored in the memory.
13. A computer-readable storage medium, characterized in that it stores a computer program which, when being executed by a processor, implements the steps of the data flow control method according to any one of claims 1 to 5, or implements the steps of the data flow control method according to claim 6.
CN202011285749.7A 2020-11-17 2020-11-17 Data flow control system, method, device, equipment and medium Pending CN112437017A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011285749.7A CN112437017A (en) 2020-11-17 2020-11-17 Data flow control system, method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011285749.7A CN112437017A (en) 2020-11-17 2020-11-17 Data flow control system, method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN112437017A true CN112437017A (en) 2021-03-02

Family

ID=74700658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011285749.7A Pending CN112437017A (en) 2020-11-17 2020-11-17 Data flow control system, method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN112437017A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023274122A1 (en) * 2021-06-30 2023-01-05 中兴通讯股份有限公司 Packet processing method and apparatus, electronic device, and computer-readable storage medium
CN115883465A (en) * 2022-12-01 2023-03-31 迈普通信技术股份有限公司 Flow control method, device, server, system and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104796298A (en) * 2014-01-22 2015-07-22 杭州华三通信技术有限公司 SDN (Software Defined Network) network fault analyzing method and device
CN107634915A (en) * 2017-08-25 2018-01-26 中国科学院计算机网络信息中心 Data transmission method, device and storage medium
CN108063732A (en) * 2016-11-07 2018-05-22 华为技术有限公司 Message transmitting method, equipment and system
CN108667739A (en) * 2017-03-27 2018-10-16 华为技术有限公司 Jamming control method, apparatus and system
WO2018195728A1 (en) * 2017-04-24 2018-11-01 华为技术有限公司 Client service transmission method and device
CN110166366A (en) * 2018-02-14 2019-08-23 华为技术有限公司 Method for controlling network congestion, device and system
CN110752993A (en) * 2019-10-24 2020-02-04 新华三信息安全技术有限公司 Message forwarding method and device
CN111107017A (en) * 2019-12-06 2020-05-05 苏州浪潮智能科技有限公司 Method, equipment and storage medium for processing switch message congestion

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104796298A (en) * 2014-01-22 2015-07-22 杭州华三通信技术有限公司 SDN (Software Defined Network) network fault analyzing method and device
CN108063732A (en) * 2016-11-07 2018-05-22 华为技术有限公司 Message transmitting method, equipment and system
CN108667739A (en) * 2017-03-27 2018-10-16 华为技术有限公司 Jamming control method, apparatus and system
WO2018195728A1 (en) * 2017-04-24 2018-11-01 华为技术有限公司 Client service transmission method and device
CN107634915A (en) * 2017-08-25 2018-01-26 中国科学院计算机网络信息中心 Data transmission method, device and storage medium
CN110166366A (en) * 2018-02-14 2019-08-23 华为技术有限公司 Method for controlling network congestion, device and system
CN110752993A (en) * 2019-10-24 2020-02-04 新华三信息安全技术有限公司 Message forwarding method and device
CN111107017A (en) * 2019-12-06 2020-05-05 苏州浪潮智能科技有限公司 Method, equipment and storage medium for processing switch message congestion

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023274122A1 (en) * 2021-06-30 2023-01-05 中兴通讯股份有限公司 Packet processing method and apparatus, electronic device, and computer-readable storage medium
CN115883465A (en) * 2022-12-01 2023-03-31 迈普通信技术股份有限公司 Flow control method, device, server, system and storage medium
CN115883465B (en) * 2022-12-01 2024-04-19 迈普通信技术股份有限公司 Flow control method, device, server, system and storage medium

Similar Documents

Publication Publication Date Title
US10135735B2 (en) Method and system for managing flows in a network
JP3970138B2 (en) Congestion control device in Ethernet switch
US7660252B1 (en) System and method for regulating data traffic in a network device
US8693489B2 (en) Hierarchical profiled scheduling and shaping
WO2019033857A1 (en) Packet control method and network device
US7835285B2 (en) Quality of service, policy enhanced hierarchical disruption tolerant networking system and method
CN102356601B (en) Path characterisation in networks
US10516545B2 (en) Congestion management in a multicast communication network
US8976664B2 (en) Facilitating network flows
KR20070080177A (en) Apparatus and method of backward congestion notification on network
WO2022111724A1 (en) Network congestion detection method and apparatus
EP3930259A1 (en) Bandwidth adjustment per label-switched path
CN112437017A (en) Data flow control system, method, device, equipment and medium
CN111699711B (en) Service function chain congestion feedback
US20150229575A1 (en) Flow control in a network
US20220124040A1 (en) Traffic sending method and apparatus
EP2432169B1 (en) Method, device and system for determining route congestion
US8743685B2 (en) Limiting transmission rate of data
US10749803B1 (en) Enhanced congestion avoidance in network devices
CN108243117B (en) Flow monitoring method and device and electronic equipment
CN113114578B (en) Traffic congestion isolation method, device and system
CN115037688A (en) Flow congestion control method and device
CN110336759B (en) RDMA (remote direct memory Access) -based protocol message forwarding method and device
US20080159320A1 (en) Layer 3 switch device and its control method
JP4133299B2 (en) Delay time suppression transmission method and system, and delay time suppression transmission router

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210302