CN113872885B - Method and equipment for controlling message forwarding - Google Patents

Method and equipment for controlling message forwarding Download PDF

Info

Publication number
CN113872885B
CN113872885B CN202111163258.XA CN202111163258A CN113872885B CN 113872885 B CN113872885 B CN 113872885B CN 202111163258 A CN202111163258 A CN 202111163258A CN 113872885 B CN113872885 B CN 113872885B
Authority
CN
China
Prior art keywords
tunnel
sending
stop
port
priority class
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.)
Active
Application number
CN202111163258.XA
Other languages
Chinese (zh)
Other versions
CN113872885A (en
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.)
New H3C Security Technologies Co Ltd
Original Assignee
New H3C Security Technologies 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 New H3C Security Technologies Co Ltd filed Critical New H3C Security Technologies Co Ltd
Priority to CN202111163258.XA priority Critical patent/CN113872885B/en
Publication of CN113872885A publication Critical patent/CN113872885A/en
Application granted granted Critical
Publication of CN113872885B publication Critical patent/CN113872885B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2425Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
    • H04L47/2433Allocation of priorities to traffic types
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • 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/266Stopping or restarting the source, e.g. X-on or X-off

Landscapes

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

Abstract

The application provides a method and equipment for controlling message forwarding. The method comprises the following steps: determining that any virtual queue of ports that have enabled priority-based flow control PFC is congested; generating a stop transmission frame of a service priority class identifier corresponding to the congested virtual queue; the method comprises the steps that an IP tunnel is established by the connection of a last hop device of upstream equipment connected with a port; stopping sending frames based on IP tunnel encapsulation; and sending the packaged stop sending frame to the last hop device so as to stop the last hop device from sending the data message corresponding to the service priority class.

Description

Method and equipment for controlling message forwarding
Technical Field
The present application relates to communications technologies, and in particular, to a method and apparatus for controlling packet forwarding
Background
PFC (Priority-based Flow Control ) is a fine-grained flow control mechanism, and PFC functions flow control messages based on 802.1p Priority. The device enabling the PFC function can assign an 802.1p priority level to each virtual queue of the port, when the local end is congested, the device can judge according to the 802.1p priority level of the received message, if the 802.1p priority level of the received message starts the PFC function, the device receives the message and sends a PFC PAUSE frame to the opposite end, and the opposite end device is informed to temporarily stop sending the message. After receiving the PFC PAUSE frame, the opposite terminal device temporarily stops sending the message to the local terminal. While congestion is still present, this process will repeat until congestion is relieved.
The port may receive PFC PAUSE frames regardless of whether the port is configured with PFC functionality. But only the PFC function of the device is enabled. Therefore, when the upstream device of the device with the congested transmitting port does not support the PFC function, the upstream device of the congested device cannot limit the speed, resulting in unnecessary waste of network bandwidth caused by packet loss.
Disclosure of Invention
The application aims to provide a method and equipment for controlling message forwarding, and equipment incapable of supporting PFC (power factor correction) functions is isolated.
In order to achieve the above object, the present application provides a method for controlling message forwarding, where the method includes: determining that any virtual queue of ports that have enabled priority-based flow control PFC is congested; generating a first stop transmission frame of a first service priority class identifier corresponding to the congested virtual queue; the method comprises the steps that a first IP tunnel is established by connection of a last hop device of upstream equipment connected with a port; encapsulating the first stop sending frame based on the IP tunnel; and sending the packaged first stop sending frame to the last hop device so as to stop the last hop device from sending the data message corresponding to the first service priority class.
In order to achieve the above object, the present application further provides an apparatus for controlling forwarding of a message, where the apparatus includes a processor and a memory, where the memory is configured to store processor executable instructions; the processor is configured to execute the following operations by executing processor-executable instructions in the memory: determining that any virtual queue of ports that have enabled priority-based flow control PFC is congested; generating a first stop transmission frame of a first service priority class identifier corresponding to the congested virtual queue; the method comprises the steps that a first IP tunnel is established by connection of a last hop device of upstream equipment connected with a port; encapsulating the first stop sending frame based on the IP tunnel; and sending the packaged first stop sending frame to the last hop device so as to stop the last hop device from sending the data message corresponding to the first service priority class.
The method has the advantages that the PFC Pause frame is transmitted through the three-layer IP three-layer tunnel, equipment incapable of supporting the PFC function is isolated outside the logic forwarding channel of the PFC Pause frame, and the equipment upstream of the equipment incapable of supporting the PFC function stops sending the service types needing to be restrained.
Drawings
Fig. 1 is a schematic diagram of an embodiment of a method for controlling forwarding of a message provided in the present application;
fig. 2 is a schematic forwarding diagram of an isolated device that does not support PFC functions provided in the present application;
fig. 3 is a schematic diagram of an embodiment of an apparatus for controlling forwarding of a packet provided in the present application.
Detailed Description
A plurality of examples shown in the drawings will be described in detail. In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the present application. Well-known methods, procedures, components and circuits have not been described in detail so as not to obscure the examples.
The term "comprising" as used in the terminology includes, but is not limited to; the term "comprising" means including but not limited to; the terms "above," "within," and "below" encompass the present number; the terms "greater than", "less than" mean that the number is not inclusive. The term "based on" means based at least in part on a portion thereof.
The embodiment of the method for controlling message forwarding provided in the present application shown in fig. 1 includes the following steps:
step 101, determining that any virtual queue of ports that have enabled priority-based flow control PFC is congested;
102, generating a stop transmission frame of a service priority class identifier corresponding to a congested virtual queue;
step 103, establishing an IP tunnel by the last hop device connection of the upstream device connected with the port;
104, stopping sending frames based on IP tunnel encapsulation;
and 105, sending the packaged transmission stopping frame to the previous hop device so as to stop the previous hop device from sending the data message corresponding to the service priority class.
The embodiment shown in fig. 1 has the beneficial effects that the PFC Pause frame is transmitted through the IP tunnel, the device incapable of supporting the PFC function is isolated outside the logical forwarding channel of the PFC Pause frame, and the device upstream of the device incapable of supporting the PFC function stops sending the service types to be suppressed, so as to achieve the purpose of solving the network congestion.
Fig. 2 is a schematic forwarding diagram of an isolated device that does not support PFC functions provided in the present application. In fig. 2, servers S1 and S2 send data messages to server S3. The server S1 sends the data packet to the switch 21 to be accessed, and sends the data packet to the router R3 through the switch 21. The router R3 sends the data message to the router R3 hop by hop according to the destination IP address of the data message. Similarly, the server S3 sends the three-layer data packet to the router R4, and the router R4 sends the three-layer data packet to the router R3 hop by hop according to the destination IP address of the data packet.
In this example, routers R1, R3, R4 enable PFC functionality on the ports. In the virtual queues 0-7 of the port P3, which receives the data packet, the router R3 assumes that the data packet stored in the virtual queue 7 reaches the upper storage limit and is congested.
The router R3 generates PFC Pause frames with the priority according to the 802.1P priority 7 of the data messages cached by the virtual queue 7 of the port P3.
Router R3 sends PFC Pause frames through port P3 to upstream device router R2 to which the port is connected. Router R2 may receive PFC Pause frames through port P2 but will not stop sending 802.1P priority 7 data packets that need to be suppressed.
A short time may be set on the router R3 to determine whether the port that sent the PFC Pause frame still continues to receive the 802.1p priority 7 data packet that needs to be suppressed.
The router R3 determines that the data message of the suppressed 802.1P priority 7 is still continuously received on the port P3, and the port P3 of the router R3 and the last hop router R1 of the router R2 are connected with the three-layer interface P1 of the router R2 to establish an IP Tunnel 1; the port P3 of the router R3 and the last hop router R4 of the router R2 are connected with the three-layer interface P4 of the router R2 to establish an IP Tunnel 2.
Router R3 encapsulates the PFC Pause frame with 802.1p priority 7 with Tunnel1 encapsulation information. The router R2 receives the PFC Pause frame carried by the tunnel1 and sends the PFC Pause frame to the router R1 according to the destination IP address of the IP tunnel. After the router R1 receives the packet, it unpacks and stops sending the data packet of the virtual queue corresponding to the 802.1P priority 7 at the receiving port P1.
Likewise, router R3 encapsulates the PFC Pause frame with 802.1p priority 7 with Tunnel2 encapsulation information. The router R2 receives the PFC Pause frame carried by the tunnel2 and sends the PFC Pause frame to the router R4 according to the destination IP address of the IP tunnel. After the router R4 receives the packet, it unpacks and stops sending the data packet of the virtual queue corresponding to the 802.1P priority 7 at the receiving port P4.
When the buffered 802.1P priority 7 data packet of the virtual queue 7 of the port P3 of the router R3 is below the threshold, the congestion is relieved, the router R3 stops sending the encapsulated PFC Pause frames through the Tunnel1 and the Tunnel2, and the routers R1 and R4 resume sending the 802.1P priority 7 data packet through the respective ports P1, P4.
Similarly, even if the downstream device of the router R3 does not support the PFC function, an IP tunnel may be established with the downstream router supporting the PFC function according to the above manner, isolating the router not supporting the PFC function, suppressing forwarding of the data packet that causes congestion, and avoiding packet loss caused by network congestion.
Besides the above way of dynamically controlling the forwarding of congestion messages, the network manager can directly configure a static IP tunnel at the upstream and downstream network devices of the router device which does not support PFC functions, and designate PFC Pause to forward through the IP tunnel.
Fig. 3 is a schematic diagram of an embodiment of an apparatus for controlling forwarding of a packet provided in the present application. The device 30 includes a processor and a memory for storing processor-executable instructions; the processor is configured to execute the following operations by executing processor-executable instructions in the memory: determining that any virtual queue of ports that have enabled priority-based flow control PFC is congested; generating a first stop transmission frame of a first service priority class identifier corresponding to the congested virtual queue; the method comprises the steps that a first IP tunnel is established by connection of a last hop device of upstream equipment connected with a port; encapsulating the first stop sending frame based on the IP tunnel; and sending the packaged first stop sending frame to the last hop device so as to stop the last hop device from sending the data message corresponding to the first service priority class.
Before the processor establishes the first IP tunnel by executing the instruction in the memory to execute the previous hop device connection with the upstream device connected to the port, the processor further executes the following operations: transmitting a stop transmission frame with a first service priority class identifier to upstream equipment; and determining that the data message with the service priority class is received through the port within the set time.
The processor also performs the following operations by executing the processor-executable instructions in the memory: determining that congestion of the virtual queue has been eliminated; and stopping sending the encapsulated first stop sending frame.
The processor also performs the following operations by executing the processor-executable instructions in the memory: establishing a second IP tunnel with a next hop device of the downstream device; receiving a second stop transmission frame based on a second IP tunnel encapsulation; and releasing the second IP tunnel encapsulation, and stopping sending the data message corresponding to the second service priority class in the second stop sending frame on the receiving port of the second stop sending frame of the second IP tunnel encapsulation.
The foregoing description of the preferred embodiment of the present invention is not intended to limit the invention to the particular form disclosed, but on the contrary, the intention is to cover all modifications, equivalents, and alternatives falling within the spirit and scope of the invention.

Claims (8)

1. A method for controlling message forwarding, the method comprising:
determining that any virtual queue of ports that have enabled priority-based flow control PFC is congested;
generating a first stop transmission frame with a first service priority class identifier corresponding to the congested virtual queue;
establishing a first IP tunnel by connecting a last hop device of upstream equipment connected with the port;
encapsulating the first stop sending frame based on the IP tunnel;
and sending the packaged first stop sending frame to the previous hop device so that the previous hop device stops sending the data message corresponding to the first service priority class.
2. The method of claim 1, wherein prior to establishing the first IP tunnel for a previous hop device connection of an upstream device connected to the port, the method further comprises;
transmitting the first stop transmission frame with the first service priority class identifier to the upstream equipment;
and determining that the data message with the service priority class is received through the port within the set time.
3. The method according to claim 1, wherein the method further comprises:
determining that congestion of the virtual queue has been removed;
and stopping sending the encapsulated first stop sending frame.
4. The method according to claim 1, wherein the method further comprises:
establishing a second IP tunnel with a next hop device of the downstream device;
receiving a second stop transmission frame based on the second IP tunnel encapsulation;
and releasing the second IP tunnel encapsulation, and stopping sending the data message corresponding to the second service priority class in the second stop sending frame on the receiving port of the second stop sending frame of the second IP tunnel encapsulation.
5. An apparatus for controlling forwarding of a message, the apparatus comprising a processor and a memory, the memory configured to store processor-executable instructions; the processor is configured to execute the following operations by executing processor-executable instructions in the memory:
determining that any virtual queue of ports that have enabled priority-based flow control PFC is congested;
generating a first stop transmission frame with a first service priority class identifier corresponding to the congested virtual queue;
establishing a first IP tunnel by connecting a last hop device of upstream equipment connected with the port;
encapsulating the first stop sending frame based on the IP tunnel;
and sending the packaged first stop sending frame to the previous hop device so that the previous hop device stops sending the data message corresponding to the first service priority class.
6. The device of claim 5, wherein the processor further performs the following before establishing the first IP tunnel by executing instructions in the memory to perform a previous hop device connection with an upstream device connected to the port:
transmitting the first stop transmission frame with the first service priority class identifier to the upstream equipment;
and determining that the data message with the service priority class is received through the port within the set time.
7. The apparatus of claim 5, wherein the processor further performs the following by executing processor-executable instructions in the memory:
determining that congestion of the virtual queue has been removed;
and stopping sending the encapsulated first stop sending frame.
8. The apparatus of claim 5, wherein the processor further performs the following by executing processor-executable instructions in the memory:
establishing a second IP tunnel with a next hop device of the downstream device;
receiving a second stop transmission frame based on the second IP tunnel encapsulation;
and releasing the second IP tunnel encapsulation, and stopping sending the data message corresponding to the second service priority class in the second stop sending frame on the receiving port of the second stop sending frame of the second IP tunnel encapsulation.
CN202111163258.XA 2021-09-30 2021-09-30 Method and equipment for controlling message forwarding Active CN113872885B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111163258.XA CN113872885B (en) 2021-09-30 2021-09-30 Method and equipment for controlling message forwarding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111163258.XA CN113872885B (en) 2021-09-30 2021-09-30 Method and equipment for controlling message forwarding

Publications (2)

Publication Number Publication Date
CN113872885A CN113872885A (en) 2021-12-31
CN113872885B true CN113872885B (en) 2024-02-09

Family

ID=79001197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111163258.XA Active CN113872885B (en) 2021-09-30 2021-09-30 Method and equipment for controlling message forwarding

Country Status (1)

Country Link
CN (1) CN113872885B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6628613B1 (en) * 1998-10-12 2003-09-30 Samsung Electronics Co. Ltd Flow control method in packet switched network
CN104917694A (en) * 2015-06-15 2015-09-16 上海斐讯数据通信技术有限公司 Flow control method based on priority
CN108243117A (en) * 2018-01-02 2018-07-03 新华三技术有限公司 A kind of flux monitoring method, device and electronic equipment
CN108989235A (en) * 2018-08-28 2018-12-11 新华三技术有限公司 A kind of message transmission control method and device
CN112491736A (en) * 2020-11-13 2021-03-12 锐捷网络股份有限公司 Congestion control method and device, electronic equipment and storage medium
CN113300975A (en) * 2020-07-20 2021-08-24 阿里巴巴集团控股有限公司 Control method of network equipment, network transmission method, device and equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9030935B2 (en) * 2011-03-30 2015-05-12 International Business Machines Corporation Device and method for adjusting rate limits for transmission rates of data flows having a certain priority in a transmitter
US11277342B2 (en) * 2019-10-29 2022-03-15 Dell Products L.P. Lossless data traffic deadlock management system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6628613B1 (en) * 1998-10-12 2003-09-30 Samsung Electronics Co. Ltd Flow control method in packet switched network
CN104917694A (en) * 2015-06-15 2015-09-16 上海斐讯数据通信技术有限公司 Flow control method based on priority
CN108243117A (en) * 2018-01-02 2018-07-03 新华三技术有限公司 A kind of flux monitoring method, device and electronic equipment
CN108989235A (en) * 2018-08-28 2018-12-11 新华三技术有限公司 A kind of message transmission control method and device
CN113300975A (en) * 2020-07-20 2021-08-24 阿里巴巴集团控股有限公司 Control method of network equipment, network transmission method, device and equipment
CN112491736A (en) * 2020-11-13 2021-03-12 锐捷网络股份有限公司 Congestion control method and device, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
802.3bd-2011 - IEEE Standard for Information technology-- Local and metropolitan area networks-- Specific requirements-- Part 3: CSMA/CD Access Method and Physical Layer Specifications - Amendment 8: MAC Control Frame for Priority-based Flow Control;IEEE;《IEEE》;全文 *
数据中心RoCE和无损网络技术;刘军;韩骥;魏航;郭亮;;中国电信业(第07期);全文 *

Also Published As

Publication number Publication date
CN113872885A (en) 2021-12-31

Similar Documents

Publication Publication Date Title
US11646967B2 (en) Packet control method and network apparatus
JP5580706B2 (en) Data transfer apparatus, program, and method using retransmission control protocol
US6222839B1 (en) Packet switching apparatus
WO2021244240A1 (en) Network congestion control method and apparatus, device, system, and storage medium
CN111699666B (en) Techniques for efficient multipath transmission
CN110022264B (en) Method for controlling network congestion, access device and computer readable storage medium
CN103391296B (en) A kind of controller, transponder and Path Setup method and system
WO2019101054A1 (en) Aggregation rate control method, device and system
KR100487713B1 (en) Method for defining and controlling the overall behavior of a network processor device
KR101585208B1 (en) QoS control system and method of VoIP media packet that is received from broadband port in Routing and gateway all-in-one VoIP system
US10880223B1 (en) Dynamic configuration of maximum transmission unit of UE, based on receipt of oversized packet(s) at network entity
CN114631290B (en) Transmission of data packets
US9800479B2 (en) Packet processing method, forwarder, packet processing device, and packet processing system
CN101162968A (en) Disorder regulation means of forward universal routing encapsulation packet
CN113872885B (en) Method and equipment for controlling message forwarding
JP2007274467A (en) Network repeater, network system, data relay method and data relay program
US11805071B2 (en) Congestion control processing method, packet forwarding apparatus, and packet receiving apparatus
CN112039798B (en) Auto-negotiation method and device based on priority flow control
WO2021012902A1 (en) Method for processing network congestion, and related apparatus
JP5025449B2 (en) Relay communication system
CN106559351B (en) Message processing method, SDN controller and network element
CN113726635B (en) Message processing method and device and electronic equipment
KR102307626B1 (en) Method for time division duplex configuration and apparatus for managing session
JP4220802B2 (en) Packet transmission method in IPv6 communication and router capable of packet division in IPv6 communication
WO2022057706A1 (en) Data transmission method and related device

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
GR01 Patent grant
GR01 Patent grant