A method for detecting a pfc storm and related devices
By setting thresholds in network devices to identify PFC storms and taking countermeasures, the problem of service interruption caused by PFC storms was solved, achieving efficient service continuity and accuracy.
Patent Information
- Application Number
- CN202111643727.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-29
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2041-12-29
AI Technical Summary
In existing technologies, PFC storms cause buffer overflows in network devices, resulting in service interruptions, reduced service efficiency, and a lack of effective countermeasures.
The network device obtains the first threshold, determines whether the frequency of sending PFC pause frames to the second network device reaches the threshold, and combines the second threshold information carried in the LLDP message to confirm whether a PFC storm has occurred and take corresponding measures to prevent service interruption.
Effectively identify PFC storms to prevent business interruptions, improve business efficiency, reduce the probability of misjudgment, and enhance accuracy and feasibility.
Smart Images

Figure CN116418750B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the field of communications, and in particular, to a PFC storm detection method and related device. BACKGROUND
[0002] To achieve no-packet loss, data centers widely use Priority-based Flow Control (PFC) technology, which is an enhancement to the pause mechanism in traditional flow control. When the network is congested, the traditional flow control mechanism will stop all traffic on a link.
[0003] For example, PFC allows the creation of 8 virtual lanes on an Ethernet link, and each virtual lane is assigned a priority. Any virtual lane can be paused and resumed individually, while the traffic of other virtual lanes can pass through without interruption. This method enables the network to create a no-packet loss class of service for a single virtual link, and enables it to coexist with other traffic types on the same interface. However, once the depth of the queue at the ingress port of network device A reaches a certain threshold (XOFF), network device A will send a PFC pause frame to network device B sending the packet. Network device B receiving the PFC pause frame will stop sending data packets. The PFC pause frame contains the priority queue that needs to be paused and the pause time. Once network device A confirms that the length of the queue of the packet to be received is less than another threshold (XON), network device A will send a pause frame with a duration of 0 to network device B sending the packet, thereby resuming transmission.
[0004] In traditional technology, when PFC back pressure occurs, it will cause the buffer of the upstream network device to be accumulated, and a chain reaction will occur when the penetration traffic triggers a PFC storm. If the network device does not take effective measures to deal with the PFC storm after the PFC storm occurs, it will cause business interruption and reduce business efficiency. SUMMARY
[0005] Embodiments of the present application provide a PFC storm detection method and a network device, which can effectively determine whether a PFC storm has occurred. Furthermore, after a PFC storm occurs, the network device can take effective measures to prevent business interruption and improve business efficiency.
[0006] The first aspect of the present application provides a method for detecting PFC storm. When a first network device in different network systems receives a large number of messages in a certain period of time, that is, the depth of the queue of the incoming port reaches a threshold value (XOFF), the first network device sends a PFC pause frame to the network device sending the message. The network device receiving the PFC pause frame will stop sending data messages to the first network device. However, if the frequency of sending PFC pause frames is high, it may cause PFC storm. The first network device can confirm whether PFC storm occurs according to the frequency of sending PFC pause frames. The first network device obtains a first threshold value, which is used to represent the threshold value of the frequency of sending PFC pause frames from the first network device to the second network device. If the first network device confirms that the frequency of sending PFC pause frames to the second network device reaches the first threshold value, the first network device can confirm that PFC storm occurs.
[0007] In the present application, the first network device obtains a first threshold value, which is used to represent the threshold value of the frequency of sending PFC pause frames from the first network device to the second network device. If the first network device confirms that the frequency of sending PFC pause frames to the second network device reaches the first threshold value, the first network device can confirm that PFC storm occurs. The first network device can effectively determine whether PFC storm occurs, and then the first network device can take effective measures to prevent business interruption and improve business efficiency after PFC storm occurs.
[0008] In a possible implementation manner of the first aspect, when the first network device is in a normal connection state, the first network device obtains second threshold value information from the first message, and then confirms whether the frequency of sending PFC pause frames from the third network device reaches the second threshold value according to the second threshold value information. If the second threshold value is reached, it is considered that PFC storm occurs. If the second threshold value is not reached, it is proved that PFC storm does not occur. In this possible implementation manner, the receiver of the first network device can also determine whether PFC storm occurs according to the frequency of sending PFC pause frames from the third network device and the second threshold value, further improving the accuracy of the first network device in determining whether PFC storm occurs. In this possible implementation manner, the first network device can confirm whether PFC storm occurs in one step, improving the efficiency of the first network device in confirming PFC storm.
[0009] In a possible implementation of the first aspect, after the first network device confirms that the frequency of receiving the PFC suspension frame sent by the third network device reaches the second threshold, the first network device further needs to confirm that the first network device does not receive a second message sent by the third network device, and the second message is used to represent a service message sent by the third network device to the first network device, and in this case, the first network device confirms that the PFC storm occurs. In this possible implementation, the first network device can further determine whether the PFC storm occurs according to whether the service message sent by the third network device is received, which reduces the probability of misjudgment and improves the accuracy of the scheme.
[0010] In a possible implementation of the first aspect, after the first network device confirms that the frequency of receiving the PFC suspension frame sent by the third network device reaches the second threshold, the first network device further needs to confirm that the first network device does not receive a second message sent by the third network device, and the second message is used to represent a service message sent by the third network device to the first network device, and in this case, the first network device confirms that the PFC storm occurs. In this possible implementation, the first network device can further determine whether the PFC storm occurs according to whether the service message sent by the third network device is received, which reduces the probability of misjudgment and improves the accuracy of the scheme.
[0011] In a possible implementation of the first aspect, the first network device sends a fourth message to the second network device, and the fourth message includes the first threshold. Then, if the second network device confirms that the frequency of receiving the PFC suspension frame sent by the first network device is greater than the first threshold, the second network device confirms that the PFC storm occurs. If the second network device confirms that the frequency of receiving the PFC suspension frame sent by the first network device is less than the first threshold, the second network device confirms that the PFC storm does not occur. In this possible implementation, the first network device sends the first threshold to other network devices, which can enable other network devices to determine whether the PFC storm occurs according to the first threshold, and helps the system including the first network device to accurately identify the storm.
[0012] In a possible implementation of the first aspect, the first message has multiple implementation manners, and optionally, the first message can be a link layer discovery protocol (LLDP) message. This possible implementation provides a specific implementation form of the first message, and improves the realizability of the scheme.
[0013] In a possible implementation of the first aspect, if the first packet is an LLDP packet, optionally, the field including the second threshold in the first packet can be a TLV field, that is, the TLV field in the LLDP packet includes the second threshold, and this possible implementation provides a specific implementation of carrying the second threshold, and improves the realizability of the scheme.
[0014] In a possible implementation of the first aspect, if the first packet is an LLDP packet, optionally, the field including the second threshold in the first packet can be a sub-TLV field, that is, the sub-TLV field in the LLDP packet includes the second threshold, and this possible implementation provides a specific implementation of carrying the second threshold, and improves the realizability of the scheme.
[0015] The second aspect of the present application provides a network device, which includes at least one processor and a memory. The processor is coupled with the memory. The memory is configured to store instructions, and the processor is configured to execute the instructions, which, when executed by the processor, cause the network device to perform the method in the first aspect or any possible implementation of the first aspect.
[0016] The third aspect of the present application provides a computer readable storage medium, which stores a program, and the program causes the network device to perform the method in the first aspect or any possible implementation of the first aspect.
[0017] The fourth aspect of the present application provides a computer program product storing one or more computer-executable instructions, and when the computer-executable instructions are executed by the processor, the processor performs the method in the first aspect or any possible implementation of the first aspect.
[0018] The fifth aspect of the present application provides a chip, which includes a processor and a communication interface. The processor is coupled with the communication interface, and the processor is configured to read instructions to perform the method in the first aspect or any possible implementation of the first aspect.
[0019] The sixth aspect of the present application provides a network system, which includes the network device in the first aspect or any possible implementation of the first aspect.
[0020] From the above technical solutions, it can be seen that the embodiments of the present application have the following advantages:
[0021] In the present application, the first network device acquires a first threshold, and the first threshold is used to represent a threshold of the frequency of sending PFC suspension frames by the first network device to the second network device. When the first network device confirms that the frequency of sending PFC suspension frames to the second network device reaches the first threshold, the first network device can confirm that the PFC storm occurs. The first network device can effectively determine whether the PFC storm occurs, and then, after the PFC storm occurs, the first network device can take effective measures to prevent the service interruption and improve the service efficiency. BRIEF DESCRIPTION OF DRAWINGS
[0022] Figure 1 A structural schematic diagram of a network system provided by the present application is provided.
[0023] Figure 2 Another structural schematic diagram of a network system provided by the present application is provided.
[0024] Figure 3 Another structural schematic diagram of a network system provided by the present application is provided.
[0025] Figure 4 Another structural schematic diagram of a network system provided by the present application is provided.
[0026] Figure 5 An application schematic diagram of a PFC storm detection method provided by the present application is provided.
[0027] Figure 6 Another application schematic diagram of a PFC storm detection method provided by the present application is provided.
[0028] Figure 7 A transmission schematic diagram of an LLDP packet provided by the present application is provided.
[0029] Figure 8 Another application schematic diagram of a PFC storm detection method provided by the present application is provided.
[0030] Figure 9 A schematic diagram of a TLV field in an LLDP packet provided by the present application is provided.
[0031] Figure 10 A schematic diagram of a TLV field in an LLDP packet provided by the present application is provided.
[0032] Figure 11 A schematic diagram of a TLV field in a sub-LLDP packet provided by the present application is provided
[0033] Figure 12 A structural schematic diagram of a network device provided by the present application is provided.
[0034] Figure 13 Another structural schematic diagram of a network device provided by the present application is provided. DETAILED DESCRIPTION
[0035] The examples provided by the present application are described below in conjunction with the accompanying drawings. It is obvious that the described examples are only a part of the examples provided by the present application, but not all the examples. It is known to those skilled in the art that the technical solutions provided by the present application are also applicable to similar technical problems as the technology develops and new scenarios appear.
[0036] The terms "first", "second", and the like in the specification and claims of the present application and the above-described accompanying drawings are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the examples described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product, or device including a series of steps or units does not have to be limited to only those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to the process, method, product, or device.
[0037] To achieve no-packet loss, data centers widely use Priority-based Flow Control (PFC) technology, which is an enhancement to the pause mechanism in the traditional flow control mode. When the network is congested, the traditional flow control mechanism will stop all the traffic on a link.
[0038] For example, PFC allows the creation of 8 virtual channels on an Ethernet link, and specifies a priority for each virtual channel, allowing any of the virtual channels to be paused and resumed individually, while allowing the traffic of other virtual channels to pass through without interruption. This method enables the network to create a no-packet loss class of service for a single virtual link, enabling it to coexist with other traffic types on the same interface. However, once the depth of the queue at the ingress port of network device A reaches a certain threshold (XOFF), network device A will send a PFC pause frame to network device B sending the packet. Network device B receiving the PFC pause frame will stop sending data packets. The PFC pause frame contains the priority queue that needs to be paused and the pause time. Once network device A confirms that the length of the queue of the packet to be received is less than another threshold (XON), network device A will send a pause frame with a duration of 0 to network device B sending the packet, thereby resuming transmission.
[0039] In the prior art, when PFC back pressure occurs, buffer in the upstream network device is accumulated, and a chain reaction caused by penetrating traffic triggers a PFC storm. If the network device does not take effective measures against the PFC storm after the PFC storm occurs, service interruption occurs, and service efficiency is reduced.
[0040] To solve the problems in the prior art, the application provides a PFC storm detection method, a network device and a network system. The network device can effectively determine whether a PFC storm occurs, and then the first network device can take effective measures to prevent service interruption and improve service efficiency after the PFC storm occurs.
[0041] The network system, the PFC storm detection method and the network device provided by the application will be introduced below with reference to the accompanying drawings.
[0042] The following examples will first introduce the network system provided by the application with reference to the accompanying drawings.
[0043] Figure 1 A structural schematic diagram of a network system provided by the application.
[0044] Please refer to Figure 1 In the application, the first network device can be applied to a large-scale CLOS network PFC scenario. Optionally, the CLOS network PFC scenario can include three types of switches. One is a TOR, whose downstream port is connected to a server, and whose upstream port is connected to an AGG switch. One is an AGG switch, whose downstream port is connected to a TOR switch, and whose upstream port is connected to a SPINE switch. One is a SPINE switch, which is used to connect AGG switches. The PFC scenario of the whole network is that PFC is enabled between three-layer switches. Optionally, the first network device can be a TOR switch in the above scenario, the first network device can be an AGG switch in the above scenario, the first network device can also be a SPINE switch in the above scenario, the first network device can also be other switches, and the first network device can also be a server. The specific embodiments are not limited here.
[0045] Figure 2 Another structural schematic diagram of a network system provided by the application.
[0046] Please refer to Figure 2In the present application, the first network device can be applied to a large-scale CLOS network PFC Free scenario. Optionally, in the scenario, PFC can be enabled for TOR switches, and PFC can also be enabled for servers below the TOR switches, that is, the first network device can be a TOR switch in the scenario, or can be a server in the scenario, which is not limited here.
[0047] Figure 3 Another structural schematic diagram of a network system provided by the present application.
[0048] Please refer to Figure 3 In the present application, the first network device can be applied to a MESH networking PFC scenario. Optionally, in the scenario, switches can be fully interconnected, and PFC can be enabled in the entire network. The first network device can be any switch in the scenario, or can be a server in the scenario, which is not limited here.
[0049] Figure 4 Another structural schematic diagram of a network system provided by the present application.
[0050] Please refer to Figure 4 In the present application, the first network device can be applied to a Dragonfly networking PFC scenario. Optionally, in the scenario, switches can be divided into multiple groups, switches in each group can be fully interconnected, and groups can be fully interconnected. PFC can be enabled in the entire network. The first network device can be any switch in the scenario, or can be a server in the scenario, which is not limited here.
[0051] In the present application, the first network device can be applied to the above Figures 1 to 4 In addition to the above-mentioned scenarios, the first network device can also be applied to other scenarios, which are not limited here.
[0052] Based on the network system described above Figures 1 to 4 The PFC storm detection method provided by the present application is introduced.
[0053] Figure 5 An application schematic diagram of the PFC storm detection method provided by the present application.
[0054] Please refer to Figure 5 The PFC storm detection method provided by the present application includes steps 201 to 203. In the following, the PFC storm detection method provided by the present application is described in combination with Figure 5
[0055] 201, the first network device acquires a first threshold.
[0056] In the present application, the first threshold is used to represent a threshold of a frequency of sending PFC pause frames by the first network device to the second network device.
[0057] In the present application, the first network device acquires an interval of sending PFC pause frames to the second network device set by a chip. For example, the interval of PFC pause frames (Pause Gap) = n (n*the time required by the physical layer chip to send 512-bit data), and then the threshold of the frequency of sending PFC pause frames to the second network device can be calculated according to n, that is, the judgment information of the threshold of the frequency of PFC pause frames of the PFC storm of the local TX.
[0058] It can be understood that, optionally, for different second network devices, the first network device can store the first threshold into different registers, and the value of the first threshold can be different, which is not limited here.
[0059] 202. The first network device confirms that the frequency of sending PFC pause frames to the second network device reaches the first threshold.
[0060] 203. The first network device confirms that the PFC storm occurs.
[0061] In the present application, the first network device acquires the first threshold, which is used to represent a threshold of a frequency of sending PFC pause frames by the first network device to the second network device. When the first network device confirms that the frequency of sending PFC pause frames to the second network device reaches the first threshold, the first network device can confirm that the PFC storm occurs. The first network device can effectively judge whether the PFC storm occurs, and then, after the PFC storm occurs, the first network device can take effective measures to prevent the business interruption, thereby improving the business efficiency.
[0062] The PFC storm detection method provided by the present application will be described below by taking a switch as an example.
[0063] The above steps 201 to 203 will be described below by taking the first network device as a 6865 switch.
[0064] Exemplarily, the first network device acquires the interval of sending the PFC pause frame set in the chip of the local device. Taking the 6865 switch as an example, PFC_REFRESH_TIMER is the interval of sending the PFC pause frame beyond the water line, and PFC_XOFF_TIMER is the interval of pausing sending the message by the opposite end carried in the TIME field of the PFC pause frame. The interval of the PFC pause frame is PFC_REFRESH_TIMER = 0x900. According to the interval of the PFC pause frame, the first threshold u1 = (2304) * (512 bit) / (100 * 2^30 bit / s) = (2304) / (100 * 2^21) s = 0.000010986328125 s, and 1 / u1 = 91022 / s. It can be seen that the maximum sending capacity of the PFC pause frame of the 6865 switch before the PFC storm occurs is 91022 / s. If the 6865 switch confirms that the frequency of sending the PFC pause frame reaches 91022 / s, the 6865 switch confirms that the PFC storm occurs.
[0065] The steps 201 to 203 are described below by taking the first network device as the 1822 network card.
[0066] Exemplarily, the first network device acquires the interval of sending the PFC pause frame set in the chip of the local device. Taking the 6865 switch as an example, PFC_REFRESH_TIMER is the interval of sending the PFC pause frame beyond the water line, and PFC_XOFF_TIMER is the interval of pausing sending the message by the opposite end carried in the TIME field of the PFC pause frame. The interval of the PFC pause frame is PFC_REFRESH_TIMER = 0x900. According to the interval of the PFC pause frame, the first threshold u1 = (2304) * (512 bit) / (100 * 2^30 bit / s) = (2304) / (100 * 2^21) s = 0.000010986328125 s, and 1 / u1 = 91022 / s. It can be seen that the maximum sending capacity of the PFC pause frame of the 6865 switch before the PFC storm occurs is 91022 / s. If the 6865 switch confirms that the frequency of sending the PFC pause frame reaches 91022 / s, the 6865 switch confirms that the PFC storm occurs.
[0067] Figure 6 Another application diagram of the PFC storm detection method provided in the application is provided.
[0068] Please refer to Figure 6 In the PFC storm detection method provided in the application, in addition to the steps 201 to 203, the first network device can also receive the first message, and then determine whether the PFC storm occurs according to the first message. The possible implementation manner is described below.
[0069] 301、the first network device receives the first message.
[0070] In the present application, the first network device can receive the first message sent by the third network device, and the first message includes the second threshold value, which is used to represent the threshold value of the frequency of sending PFC pause frames by the third network device to the first network device.
[0071] 302、the first network device confirms that the frequency of sending PFC pause frames by the third network device reaches the second threshold value.
[0072] 303、the first network device confirms that the PFC storm occurs.
[0073] In the present application, when the first network device is in a normal connection state, after the first network device obtains the second threshold value information from the first message, the first network device confirms whether the frequency of sending PFC pause frames by the third network device reaches the second threshold value according to the second threshold value information. If the second threshold value is reached, it is considered that the PFC storm occurs. If the second threshold value is not reached, it is proved that the PFC storm does not occur. In this possible implementation manner, the receiver of the first network device can also determine whether the PFC storm occurs according to the frequency of sending PFC pause frames by the third network device and the second threshold value, which further improves the accuracy of the first network device in determining whether the PFC storm occurs.
[0074] In the present application, when the first network device is in an initial state, the first network device can start the self-learning function. That is, the first network device can receive the first message sent by the plurality of third network devices. Or when the first network device reenters the network, that is, the switch port or the server network port appears down-up phenomenon, the frequency threshold value of the PFC pause frame when the RX of the first network device occurs the PFC storm can be reset, and the first network device is triggered again to obtain the frequency threshold value of the PFC pause frame when the RX of the first network device occurs the PFC storm according to the second message. The receiver of the first network device can also determine whether the PFC storm occurs according to the frequency of sending PFC pause frames by the third network device and the second threshold value.
[0075] Figure 7 A transmission schematic diagram of an LLDP message is provided for the present application.
[0076] For example, the first network device is a switch or a server. In the initial state, the switch or the server does not have the PFC frequency threshold value information (second threshold value information) of the RX of the first network device occurring the PFC storm. When the switch or the server receives a specific LLDP message (second message), such as Figure 7 as shown in the following table:
[0077] If Pause Gap = 0x900 in the LLDP message, u1 = 2304 * 512bit / 100gbps = 0.000010986328125s. 1 / u1 = 91022 per 1s. It can be seen that the frequency threshold of the PFC pause frame of the RX PFC storm of the local device is 91022 per / s.
[0078] The method for detecting the PFC storm provided in the application includes the step 303 of confirming the occurrence of the PFC storm by the first network device. The specific confirmation manner will be described below.
[0079] Manner one:
[0080] The first network device confirms that the frequency of the PFC pause frame sent by the third network device reaches the second threshold, and the first network device confirms the occurrence of the PFC storm.
[0081] In the application, the first network device only needs to confirm that the frequency of the PFC pause frame sent by the third network device reaches the second threshold, and the first network device can confirm the occurrence of the PFC storm. In this possible implementation manner, the first network device only needs one step to determine whether the PFC storm occurs, thereby improving the efficiency of the first network device in confirming the PFC storm.
[0082] Manner two:
[0083] The first network device confirms that the frequency of the PFC pause frame sent by the third network device reaches the second threshold, and the first network device confirms that the first network device does not receive the second message in the first time period, and the first network device confirms the occurrence of the PFC storm.
[0084] In the application, after the first network device confirms that the frequency of the PFC pause frame sent by the third network device reaches the second threshold, the first network device further needs to confirm that the first network device does not receive the second message sent by the third network device. The second message is used to represent the service message sent by the third network device to the first network device. In this case, the first network device confirms the occurrence of the PFC storm. In this possible implementation manner, the first network device can further determine whether the PFC storm occurs according to whether the service message sent by the third network device is received, thereby reducing the probability of misjudgment and improving the accuracy of the scheme.
[0085] Manner three:
[0086] The first network device confirms that the frequency of receiving the PFC pause frame sent by the third network device reaches a second threshold, the first network device confirms that the first network device does not receive the second message in the first time period, and the first network device confirms that the first network device does not receive the third message in the first time period, and the first network device confirms that the PFC storm occurs.
[0087] Figure 8 An application example of the PFC storm detection method provided in the application.
[0088] Please refer to Figure 8 In the application, the first network device confirms that the frequency of receiving the PFC pause frame sent by the third network device reaches a second threshold, the first network device confirms that the first network device does not receive the second message sent by the third network device, and the first network device further needs to confirm that the third message is not received, the priority of the third message is higher than that of the second message, and the third message is used to indicate the service message sent to the first network device. In this case, the first network device confirms that the PFC storm occurs. In this possible implementation manner, the first network device can further judge whether the PFC storm occurs according to whether the third message is received, so as to prevent the probability of misjudging the PFC storm when the first network device receives the high-priority message and does not receive the message sent by the third network device, and further improve the accuracy of the scheme.
[0089] In the PFC storm detection method provided in the application, in addition to the steps 201 to 203, the first network device can further send a fourth message to the second network device, so that the second network device can judge whether the PFC storm occurs according to the fourth message. The possible implementation manner will be described in detail below.
[0090] In the application, the first network device sends a fourth message to the second network device, wherein the first threshold is included in the fourth message. Then, if the second network device confirms that the frequency of receiving the PFC pause frame sent by the first network device is greater than the first threshold, the second network device confirms that the PFC storm occurs. If the second network device confirms that the frequency of receiving the PFC pause frame sent by the first network device is less than the first threshold, the second network device confirms that the PFC storm does not occur. In this possible implementation manner, the first network device sends the first threshold to other network devices, which can make other network devices judge whether the PFC storm occurs according to the first threshold, and help the system including the first network device to accurately identify the storm.
[0091] In the PFC storm detection method provided in the application, the first message and the fourth message mentioned in the above examples can be LLDP messages, and the first message and the fourth message can also be other types of messages, which are not limited here.
[0092] For example, assuming that the first message and the fourth message are LLDP messages, the first message carries the second threshold in various implementation manners, and the fourth message carries the first threshold in various implementation manners. The following takes the first message carrying the second threshold as an example for description.
[0093] The first implementation manner is that the TLV field in the LLDP message carries the second threshold.
[0094] Figure 9 An exemplary diagram of the TLV field in the LLDP message is provided in the present application.
[0095] In the present application, the TLV of the LLDP protocol can be extended to carry the first threshold, for example, as shown in Figure 9 Pause Gap represents the frequency threshold of the PFC pause frame of the PFC storm of the port or network port TX. If 16 bits (0-0xffff) can be used for one port, 64B can be used for a 32-port switch.
[0096] Figure 10 An exemplary diagram of the TLV field in the LLDP message is provided in the present application.
[0097] In the present application, the Organizationally Specific Tlv can be extended, the Organizationally Specific Tlv with TLV Type=127 is used, and the unused subtype=20 is used. Pause Gap carries the PFC frequency information of the TX PFC Strom of the port / network port every 16 bits. Assuming that the switch has 32 ports, 32*16 / 8=64B.
[0098] The second implementation manner is that the sub-TLV field in the LLDP message carries the second threshold.
[0099] Figure 11 An exemplary diagram of the sub-TLV field in the LLDP message is provided in the present application.
[0100] In the present application, the Priority-based flow Control TLV with the existing subtype=11 is extended, and an additional field Pause Gap is defined at the end of the information field. Pause Gap carries the PFC frequency information of the TX PFC Strom of the port / network port every 16 bits. Assuming that the switch has 32 ports, 32*16 / 8=64B.
[0101] The above examples provide different embodiments of a method for detecting a PFC storm. Below is a network device 40, as shown in Figure 12 The network device 40 is configured to perform the steps performed by the network device in the above examples. The steps performed and the corresponding advantages are described in the corresponding examples above, and will not be repeated here. The network device 40 comprises:
[0102] The obtaining unit 401 is configured to obtain a first threshold value, the first threshold value being used to represent a threshold value of a frequency of sending, by the first network device, a priority-based flow control (PFC) pause frame to a second network device;
[0103] The confirming unit 402 is configured to:
[0104] confirm that the frequency of sending the PFC pause frame to the second network device reaches the first threshold value;
[0105] confirm that a PFC storm occurs.
[0106] In a possible implementation, the confirming unit 402 is configured to:
[0107] The receiving unit is configured to receive a first packet, the first packet comprising a second threshold value, the second threshold value being used to represent a threshold value of a frequency of sending, by a third network device, a PFC pause frame to the first network device;
[0108] The confirming unit 402 is configured to confirm that the frequency of sending the PFC pause frame by the third network device reaches the second threshold value;
[0109] The confirming unit 402 is configured to confirm that a PFC storm occurs.
[0110] In a possible implementation, the confirming unit 402 is configured to:
[0111] confirm that the first network device does not receive a second packet within a first time period, the second packet being used to represent a service packet sent by the third network device to the first network device;
[0112] confirm that a PFC storm occurs.
[0113] In a possible implementation, the confirming unit 402 is configured to:
[0114] confirm that the first network device does not receive a third packet within a first time period, a priority of the third packet being higher than a priority of the second packet, the third packet being used to represent a service packet sent to the first network device;
[0115] confirm that a PFC storm occurs.
[0116] In a possible implementation,
[0117] The sending unit is further configured to send a fourth message to the second network device, and the first threshold is included in the fourth message.
[0118] In a possible implementation, the first message is a link layer discovery protocol (LLDP) message.
[0119] In a possible implementation, a TLV field in the LLDP message includes the second threshold.
[0120] In a possible implementation, a Sub-TLV field in the LLDP message includes the second threshold.
[0121] It should be noted that the information interaction and execution process between the modules of the network device 40 described above are based on the same concept as the method examples of the present application, and the execution steps are consistent with the detailed contents of the method steps described above. For details, refer to the description in the method examples described above.
[0122] The above examples provide different embodiments of the network device 40. The following provides a network device 50, as shown in Figure 13 The network device 50 is configured to perform the steps performed by the network device in the above examples. For details, refer to the corresponding examples described above. Here, no further description is given.
[0123] Referring to Figure 13 , a structural diagram of a network device is provided. The network device 50 includes a processor 502, a communication interface 503, and a memory 501. Optionally, a bus 504 can be included. The communication interface 503, the processor 502, and the memory 501 can be connected to each other through the bus 504. The bus 504 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 13 , only one thick line is used, but it does not mean that there is only one bus or only one type of bus. The network device 50 can implement the functions of the network device in the examples described above. The processor 502 and the communication interface 503 can perform the corresponding operations of the network device in the method examples described above. Figure 12
[0124] The following will be described in detail Figure 13 The various components of the network device are described in detail:
[0125] The memory 501 can be a volatile memory, such as a random-access memory (RAM), or a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), or a combination thereof, for storing program codes, configuration files or other contents that enable the methods of the present application.
[0126] The processor 502 is a control center of the controller, which can be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement examples provided by the present application, such as one or more digital signal processors (DSPs), or one or more field programmable gate arrays (FPGAs).
[0127] The communication interface 503 is configured to communicate with other network devices.
[0128] The processor 502 can perform the operations of the network device in the above-described examples, and details are not repeated here. Figure 12 The processor 502 can perform the operations of the network device in the above-described examples, and details are not repeated here.
[0129] It should be noted that the information interaction and execution process between the modules of the network device 50 described above are based on the same concept as the method examples of the present application, and the execution steps are consistent with the detailed contents of the above method steps. Please refer to the description in the above method examples.
[0130] The present application provides a chip, which includes a processor and a communication interface, the processor is coupled with the communication interface, and the processor is configured to read instructions to perform the above-described Figures 5 to 11 The operations of the network device in the above-described examples.
[0131] The present application provides a network system, which includes the above-described Figures 5 to 11 The network device in the above-described examples.
[0132] Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working processes of the system, device and unit described above can refer to the corresponding processes in the foregoing examples, which will not be repeated here.
[0133] In several examples provided in the present application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device examples described above are only schematic, for example, the division of the units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interface, device or unit, and can be electrical, mechanical or other forms.
[0134] The units described as separate components can or can not be physically separated, and the components shown as units can or can not be physical units, that is, they can be located in one place, or can be distributed on a plurality of network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the present example.
[0135] In addition, the functional units in each example of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.
[0136] The integrated unit, if realized in the form of a software functional unit and sold or used as an independent product, can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application essentially or the part of the prior art that makes a contribution or the whole or part of the technical solutions can be embodied in the form of a software product, which is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each example of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various program code storage media.
[0137] The above detailed description of the specific implementation, the purpose, technical solutions and beneficial effects of the present application are further described in detail, it should be understood that different examples can be combined, the above description is only the specific implementation of the present application, and is not used to limit the protection scope of the present application, any combination, modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application. The above description and the above examples are only used to illustrate the technical solutions of the present application, and not to limit it; although the present application is described in detail with reference to the foregoing examples, those skilled in the art should understand that the technical solutions recorded in the foregoing examples can still be modified, or part of the technical features can be replaced by equivalent; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the examples of the present application.
Claims
1. A method of detecting a PFC storm, characterized by, The method comprises: The first network device acquires a first threshold, which is used to represent a threshold of a frequency of sending a PFC pause frame by the first network device to a second network device; The first network device confirms that the frequency of sending the PFC pause frame to the second network device reaches the first threshold; The first network device confirms that a PFC storm occurs; The first network device receives a first packet, wherein the first packet comprises a second threshold, which is used to represent a threshold of a frequency of sending a PFC pause frame by a third network device to the first network device; The first network device confirms that the frequency of sending the PFC pause frame by the third network device reaches the second threshold; The first network device confirms that the first network device does not receive a second packet within a first time period, wherein the second packet is used to represent a service packet sent by the third network device to the first network device; The first network device confirms that the first network device does not receive a third packet within the first time period, wherein a priority of the third packet is higher than that of the second packet, and the third packet is used to represent a service packet sent to the first network device; The first network device confirms that the PFC storm occurs.
2. The method of claim 1, wherein, The method further comprises: The first network device sends a fourth packet to the second network device, wherein the fourth packet comprises the first threshold.
3. The method of claim 1, wherein, The first packet is a link layer discovery protocol (LLDP) packet.
4. The method of claim 3, wherein, A TLV field in the LLDP packet comprises the second threshold.
5. The method of claim 3, wherein, A Sub-TLV field in the LLDP packet comprises the second threshold.
6. A first network device, comprising: The method comprises: An acquiring unit is configured to acquire a first threshold, which is used to represent a threshold of a frequency of sending a priority-based flow control (PFC) pause frame by a first network device to a second network device; A confirming unit is configured to: confirm that the frequency of sending the PFC pause frame to the second network device reaches the first threshold; confirm that a PFC storm occurs; A receiving unit is configured to receive a first packet, wherein the first packet comprises a second threshold, which is used to represent a threshold of a frequency of sending a PFC pause frame by a third network device to the first network device; The confirming unit is configured to confirm that the frequency of sending the PFC pause frame by the third network device reaches the second threshold; The confirming unit is further configured to: confirm that the first network device does not receive a second packet within a first time period, wherein the second packet is used to represent a service packet sent by the third network device to the first network device; The confirming unit is configured to confirm that the PFC storm occurs; The confirming unit is further configured to: confirm that the first network device does not receive a third packet within the first time period, wherein a priority of the third packet is higher than that of the second packet, and the third packet is used to represent a service packet sent to the first network device.
7. The first network device according to claim 6, wherein: The sending unit is further configured to send a fourth packet to the second network device, wherein the fourth packet comprises the first threshold.
8. The first network device of claim 6, wherein, The first packet is a link layer discovery protocol (LLDP) packet.
9. The first network device according to claim 8, wherein, The TLV field in the LLDP packet comprises the second threshold.
10. The first network device of claim 8, wherein, The Sub-TLV field in the LLDP packet comprises the second threshold.
11. A network device, comprising: Comprise: a processor and a memory; The processor is configured to execute instructions stored in the memory, so that the network device executes the method in any one of claims 1 to 5.
12. A network system comprising the first network device included in the method for detecting PFC storm in any one of claims 1 to 5.
13. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a program, and the program is executed by one or more processors to implement the method in any one of claims 1 to 5.
14. A chip, characterized by The chip comprises a processor and a communication interface, the processor is coupled with the communication interface, and the processor is configured to execute the method in any one of claims 1 to 5.
Citation Information
Patent Citations
Lossless data traffic deadlock management system
US20210126865A1