Method and switch for handling network congestion

By judging the status in the network and formulating processing strategies, and using collaborative switches to deal with network congestion, the problem of low network congestion processing efficiency in the prior art is solved, and more efficient network congestion prevention and elimination is achieved.

CN115529277BActive Publication Date: 2025-02-18SHENZHEN MTN ELECTRONICS
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211059055.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-31
Publication Date
2025-02-18
Estimated Expiration
2042-08-31

AI Technical Summary

Technical Problem

The prior art is difficult to achieve unified management and collaboration in network congestion processing, resulting in low efficiency in preventing and eliminating network congestion.

Method used

By judging the network status, formulate corresponding processing strategies. In the state of network congestion, the data is collaboratively processed using a collaborative switch, and network status monitoring and congestion processing checks are performed through the test data flow.

Benefits of technology

The ability of the network congestion processing mechanism to prevent and eliminate network congestion is improved, and the stability and reliability of network communication is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115529277B_ABST
    Figure CN115529277B_ABST
Patent Text Reader

Abstract

The present application discloses a method and a switch for processing network congestion, and the method for processing network congestion includes the following steps: judging the network state, the network state includes a non-network congestion state and a network congestion state; formulating a processing strategy, including: in a non-network congestion state, the switch maintains the current receiving and sending state of the network data flow, and in a network congestion state, the switch blocks the reception of the data receiving port and forwards the newly sent data flow to the collaborative switch for data collaborative processing; congestion processing check, sending a test data flow to the data receiving port of the switch, the switch opens the data receiving port and only receives the test data flow, and at the same time, judging the current network state based on the response of the test data flow, when the current network is in a non-network congestion state, the data receiving port is opened, otherwise the data receiving port is kept blocked until the current network is converted to a non-network congestion state. The present application also discloses a switch.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of network congestion processing, and in particular to a method and a switch for processing network congestion. Background Art

[0002] With the continuous development of network communication technology, people's demand for Internet bandwidth is getting higher and higher. For network communication, a reasonable congestion handling mechanism provides a solid guarantee for the smooth operation of the existing network. The purpose of congestion control is to effectively prevent and eliminate network congestion and ensure network service capabilities. The network congestion handling mechanism of the existing technology is difficult to achieve unified management and collaboration in the prevention and elimination of congestion. Most of the handling mechanisms can only show general or good effects in one aspect. However, for the stability and continuous reliability of the communication network, the prevention and elimination of network congestion need to be highly efficient. Summary of the invention

[0003] The purpose of the present application is to provide a method and a switch for processing network congestion, so as to improve the capability of the network congestion processing mechanism in preventing and eliminating congestion.

[0004] To achieve the above objectives, the present application discloses the following technical solution: a method for processing network congestion, the method comprising the following steps:

[0005] Determine the network status, wherein the network status includes a non-network congestion status and a network congestion status;

[0006] Formulate a processing strategy, and formulate a corresponding processing strategy according to the network state, wherein the processing strategy includes: in the non-network congestion state, the switch maintains the current receiving and sending state of the network data flow, and in the network congestion state, the switch blocks the reception of the data receiving port, and forwards the newly sent data flow to the collaborative switch for data collaborative processing, and maintains the current sending state of the network data flow;

[0007] Congestion handling check, sending a test data stream to the data receiving port of the switch, the switch opens the data receiving port and only receives the test data stream, and at the same time, judges the current network state based on the response of the test data stream. When the current network is in a non-network congestion state, open the data receiving port, otherwise keep the data receiving port blocked, and repeatedly send the test data stream intermittently until the current network is converted into a non-network congestion state. The response of the test data stream includes that the test data stream can be sent.

[0008] Preferably, the test data stream includes test data and a data identifier. In the congestion handling check step, the data receiving port of the switch determines whether it is a test data stream based on the data identifier. When it is a test data stream, the switch opens the data receiving port, otherwise the data receiving port remains blocked.

[0009] Preferably, the determining of the network status specifically comprises the following steps:

[0010] The switch obtains the total flow rate P1 received by the current data receiving port, and simultaneously obtains the total flow rate P2 sent by the current data sending port;

[0011] When the total flow P1 received by the data receiving port is greater than the total flow P2 sent by the data sending port, the current network state is judged to be a network congestion state. When the total flow P1 received by the data receiving port is less than the total flow P2 sent by the data sending port, the current network state is judged to be a non-network congestion state.

[0012] Preferably, when the total flow rate P1 received by the data receiving port and the total flow rate P2 sent by the data sending port satisfy: Where P max The maximum capacity that the switch data receiving port can receive. When the current network state is judged as a non-network congestion state, , it is determined that the current network status is a slight network congestion status.

[0013] Preferably, when the network state is a slight network congestion state, a test data stream is intermittently sent to the data receiving port of the switch, the data receiving port of the switch receives the test data stream, and the current network state is determined based on the response of the test data stream.

[0014] Preferably, when the network state is a slight network congestion state, a response based on the test data flow to determine the current network state appears. When the switch forwards the data stream to be received to the cooperative switch for data cooperative processing, and maintains the current sending state of the network data stream.

[0015] Preferably, in the step of formulating a processing strategy, when there is no collaborative switch for collaborative processing, network packet losses at the data receiving port of the switch are sorted in order according to loss time for cloud storage.

[0016] Preferably, in the congestion processing check step, when the current network changes to a non-network congestion state, the switch retrieves network packet loss from the cloud storage and sends data through a data sending port.

[0017] The present application also discloses a switch, comprising:

[0018] A data receiving port, configured to receive network data streams;

[0019] A data transmission port is configured to transmit network data streams;

[0020] A collaborative response module, configured to respond to collaborative requests of other switches under the same collaborative protocol, and when the collaborative request is responded to, send a response request to the data receiving port, and the data receiving port receives the network data stream transmitted by the other switch;

[0021] A state detection module, configured to calculate the network state of the current network based on the total flow P1 received by the data receiving port and the total flow P2 sent by the data sending port, wherein the network state includes a non-network congestion state and a network congestion state;

[0022] a congestion processing module, configured to send a blocking signal to the data receiving port in the network congestion state, so that the data receiving port blocks the reception of data, and at the same time, configured to send a coordination request to the switch under the same coordination protocol, and when the coordination request is accepted, the data receiving port forwards the newly sent data stream to the coordination switch for data coordination processing;

[0023] The congestion recheck module is configured to send a test data stream to the data receiving port after congestion processing, the data receiving port receives the test data stream, and determines the current network status based on whether the test data stream can be sent.

[0024] Preferably, the test data stream includes test data and a data identifier, and the data receiving port identifies whether the data is a test data stream according to the data identifier. When it is a test data stream, the data receiving port is opened and receives the data.

[0025] Beneficial effects:

[0026] 1. The method and switch for processing network congestion of the present application formulate corresponding processing strategies based on the judgment of network status, and utilize the collaborative processing of collaborative switches in the network congestion state to improve the ability of preventing and eliminating congestion in the network congestion processing mechanism;

[0027] 2. Based on the calculation of network data flow in the data receiving port and the data sending port, as well as the irregular test of the test data flow, the network congestion status can be monitored, and pre-congestion elimination processing can be performed in the case of slight network congestion to ensure the reliability of congestion prevention;

[0028] 3. Cloud caching based on network packet loss ensures data processing effectiveness when network congestion occurs and avoids the occurrence of large amounts of packet loss;

[0029] 4. Through congestion handling checks, the normal operation of the switch can be quickly restored after congestion handling, eliminating the call to the collaborative switch, ensuring the normal operation of each switch, and then ensuring the reliability of each switch in the network communication process, thereby providing maximum processing capacity for the network congestion handling mechanism and ensuring the reliability of its network congestion handling mechanism. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0031] Figure 1 This is a flowchart of a method for processing network congestion in Embodiment 1 of the present application;

[0032] Figure 2 This is a structural block diagram of a switch in an embodiment of the present application. DETAILED DESCRIPTION

[0033] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0034] In this article, the term "comprising" is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, the elements defined by the sentence "comprising..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0035] Example 1

[0036] refer to Figure 1 A method for processing network congestion is shown, the method comprising the following steps:

[0037] S1-determine the network status, which includes non-network congestion status and network congestion status; this step specifically includes the following contents:

[0038] The switch obtains the total flow P1 received by the current data receiving port, and simultaneously obtains the total flow P2 sent by the current data sending port;

[0039] When the total flow P1 received by the data receiving port is greater than the total flow P2 sent by the data sending port, the current network state is judged to be a network congestion state. When the total flow P1 received by the data receiving port is less than the total flow P2 sent by the data sending port, the current network state is judged to be a non-network congestion state.

[0040] S2-formulate a processing strategy. According to the network status, a corresponding processing strategy is formulated. The processing strategy includes: in a non-network congestion state, the switch maintains the current receiving and sending status of the network data flow; in a network congestion state, the switch blocks the reception of the data receiving port, and forwards the newly sent data flow to the collaborative switch for data collaborative processing, and maintains the current sending status of the network data flow;

[0041] S3-congestion handling check, sending a test data stream to the data receiving port of the switch, the test data stream includes test data and a data identifier. In the congestion handling check step, the data receiving port of the switch determines whether it is a test data stream based on the data identifier. When it is a test data stream, the switch opens the data receiving port, otherwise the data receiving port remains blocked; the switch opens the data receiving port and only receives the test data stream. At the same time, based on the response of the test data stream, the current network status is determined. When the current network is in a non-network congestion state, the data receiving port is opened, otherwise the data receiving port remains blocked and the test data stream is repeatedly sent intermittently until the current network is converted to a non-network congestion state. The response of the test data stream includes that the test data stream can be sent.

[0042] The present application also discloses a switch, including a data receiving port, a data sending port, a coordinated response module, a status detection module, a congestion processing module, and a congestion recheck module. The specific introduction of each component of the switch is as follows.

[0043] The data receiving port is configured to receive network data streams.

[0044] The data sending port is configured to send network data streams.

[0045] The collaborative response module is configured to respond to collaborative requests from other switches under the same collaborative protocol, and when the collaborative request is responded to, send a response request to the data receiving port, and the data receiving port receives the network data stream transmitted by the other switch. The collaborative response modules of the two collaborative switches are interconnected, and when collaborative processing of network data is required, the collaborative response module sends a collaborative response to the collaborative switch.

[0046] The state detection module is configured to calculate the network state of the current network based on the total flow P1 received by the data receiving port and the total flow P2 sent by the data sending port, and the network state includes a non-network congestion state and a network congestion state. In this embodiment, the state detection module obtains the total flow P1 received by the current data receiving port, and simultaneously obtains the total flow P2 sent by the current data sending port. When the total flow P1 received by the data receiving port is greater than the total flow P2 sent by the data sending port, the current network state is judged to be a network congestion state, and when the total flow P1 received by the data receiving port is less than the total flow P2 sent by the data sending port, the current network state is judged to be a non-network congestion state.

[0047] The congestion processing module is configured to send a blocking signal to the data receiving port when the network is congested, so that the data receiving port blocks the reception of data. At the same time, it is configured to send a collaboration request to the switch under the same collaboration protocol. When the collaboration request is accepted, the data receiving port forwards the newly sent data stream to the collaborative switch for data collaborative processing.

[0048] The congestion recheck module is configured to send a test data stream to the data receiving port after congestion processing, the data receiving port receives the test data stream, and determines the current network status based on whether the test data stream can be sent.

[0049] In this embodiment, the test data stream includes test data and a data identifier. The data receiving port identifies whether the data is a test data stream based on the data identifier. When it is a test data stream, the data receiving port is open and receives the data. The test data stream can be a sensitive network response data packet. The switch can quickly identify, receive and send the data packet. At the same time, based on the response result corresponding to the data packet, it determines whether the test data can be processed by the switch. At the same time, the data size P0 of the test data stream can be preset according to the network processing capability of the switch, for example, The maximum capacity that the switch data receiving port can receive

[0050] Example 2

[0051] Different from the first embodiment, in this embodiment, when the total flow rate P1 received by the data receiving port and the total flow rate P2 sent by the data sending port satisfy: Where Pmax is the maximum capacity that the switch data receiving port can receive. The total flow rate P1 received by the data receiving port and the total flow rate P2 sent by the data sending port are both less than or equal to P max ,therefore, exist When the current network state is judged as a non-network congestion state, When the network state is slightly congested, the test data stream is intermittently sent to the data receiving port of the switch, the data receiving port of the switch receives the test data stream, and the current network state is determined based on the response of the test data stream. The judged slight network congestion state can enable the switch to reserve a certain amount of processing capacity to perform emergency tasks. The emergency task can be but is not limited to network processing, network truncation and other responses when network threats occur, thereby ensuring that the switch maintains its network security performance.

[0052] Example 3

[0053] Different from Example 1, in this embodiment, in the step of formulating a processing strategy, when there is no collaborative switch for collaborative processing, the network packet loss of the data receiving port of the switch is sorted in order according to the loss time for cloud storage. In the congestion processing check step, when the current network changes to a non-network congestion state, the switch retrieves the network packet loss stored in the cloud and sends data through the data sending port.

[0054] Finally, it should be noted that the above is only a preferred embodiment of the present application and is not intended to limit the present application. Although the present application has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for handling network congestion, characterized in that: This method includes the following steps: Determine the network status, wherein the network status includes a non-network congestion status and a network congestion status; Formulate a processing strategy, and formulate a corresponding processing strategy according to the network state, wherein the processing strategy includes: in the non-network congestion state, the switch maintains the current receiving and sending state of the network data flow, and in the network congestion state, the switch blocks the reception of the data receiving port, and forwards the newly sent data flow to the collaborative switch for data collaborative processing, and maintains the current sending state of the network data flow; Congestion handling check, sending a test data stream to the data receiving port of the switch, the switch opens the data receiving port and only receives the test data stream, and at the same time, judging the current network state based on the response of the test data stream, when the current network is in a non-network congestion state, opening the data receiving port, otherwise keeping the data receiving port blocked, and repeatedly sending the test data stream intermittently until the current network is converted into a non-network congestion state, the response of the test data stream includes that the test data stream can be sent; Determining the network status specifically includes the following steps: The switch obtains the total flow rate P1 received by the current data receiving port, and simultaneously obtains the total flow rate P2 sent by the current data sending port; When the total flow rate P1 received by the data receiving port is greater than the total flow rate P2 sent by the data sending port, the current network state is judged to be a network congestion state; when the total flow rate P1 received by the data receiving port is less than the total flow rate P2 sent by the data sending port, the current network state is judged to be a non-network congestion state; The test data flow includes test data and a data identifier. In the congestion processing check step, the data receiving port of the switch determines whether it is a test data flow according to the data identifier. When it is a test data flow, the switch opens the data receiving port, otherwise, the data receiving port remains blocked; In the step of formulating a processing strategy, when there is no collaborative switch for collaborative processing, the network packet loss of the data receiving port of the switch is sorted in order according to the loss time for cloud storage; In the congestion processing check step, when the current network changes to a non-network congestion state, the switch retrieves the network packet loss of the cloud storage and sends the data through the data sending port.

2. A switch, characterized in that: include: A data receiving port, configured to receive network data streams; A data transmission port is configured to transmit network data streams; A collaborative response module, configured to respond to collaborative requests of other switches under the same collaborative protocol, and when the collaborative request is responded to, send a response request to the data receiving port, and the data receiving port receives the network data stream transmitted by the other switch; A state detection module, configured to calculate the network state of the current network based on the total flow P1 received by the data receiving port and the total flow P2 sent by the data sending port, wherein the network state includes a non-network congestion state and a network congestion state; a congestion processing module, configured to send a blocking signal to the data receiving port in the network congestion state, so that the data receiving port blocks the reception of data, and at the same time, configured to send a coordination request to the switch under the same coordination protocol, and when the coordination request is accepted, the data receiving port forwards the newly sent data stream to the coordination switch for data coordination processing; A congestion recheck module, configured to send a test data stream to the data receiving port after congestion processing, the data receiving port receives the test data stream, and determines the current network status based on whether the test data stream can be sent; The test data stream includes test data and a data identifier. The data receiving port identifies whether the data is a test data stream based on the data identifier. When it is a test data stream, the data receiving port is open and receives the data. When there is no collaborative switch for collaborative processing, the network packet loss of the data receiving port of the switch is sorted in sequence according to the loss time for cloud storage. When the current network is transformed into a non-network congestion state, the switch retrieves the network packet loss stored in the cloud and sends the data through the data sending port.

Citation Information

Patent Citations

  • Network congestion detection method based on Femto system architecture and device based on femto system architecture

    CN103139799A

  • Method for processing network congestion and related device

    CN112311685A