WO2023246616A1 - Network congestion control method and apparatus - Google Patents

Network congestion control method and apparatus Download PDF

Info

Publication number
WO2023246616A1
WO2023246616A1 PCT/CN2023/100424 CN2023100424W WO2023246616A1 WO 2023246616 A1 WO2023246616 A1 WO 2023246616A1 CN 2023100424 W CN2023100424 W CN 2023100424W WO 2023246616 A1 WO2023246616 A1 WO 2023246616A1
Authority
WO
WIPO (PCT)
Prior art keywords
packet loss
network
tcp
transmission rate
data transmission
Prior art date
Application number
PCT/CN2023/100424
Other languages
French (fr)
Chinese (zh)
Inventor
周东明
开毅
孙宸
张欢欢
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023246616A1 publication Critical patent/WO2023246616A1/en

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
    • 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/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • 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/23Bit dropping

Definitions

  • the present application relates to the field of communication technology, and in particular, to a network congestion control method and device.
  • Campus network refers to the office LAN established for enterprises or organizations to realize digital office, production and operation, such as campus network, community network, enterprise and institution network, etc. With the gradual enrichment of campus services, the campus network carries more traffic. When the transmission traffic of the campus network in a unit time exceeds the transmission traffic limited by the contracted bandwidth between the campus network and the operator, network congestion will occur on the campus network. This in turn affects the normal work of users within the campus network.
  • embodiments of the present application provide a network congestion control method, which is applied to an entrance device of a campus network.
  • the entrance device is used to connect to an operator network.
  • the method includes: obtaining the information between the entrance device and the operator network.
  • the real-time bandwidth between the operator network if the data transmission rate represented by the real-time bandwidth between the entrance device and the operator network is greater than or equal to the data transmission rate represented by the preset system threshold, then the data transmission rate from The TCP packets of the operator network are subjected to packet loss processing, wherein the system threshold is obtained based on the contracted bandwidth between the campus network and the operator network.
  • the data transmission rate represented by the real-time bandwidth between the campus network and the operator network is greater than the data transmission rate represented by the preset system threshold, and the campus network side actively processes TCP packets from the operator network.
  • Packet loss processing reduces the throughput between the campus network and the operator network by discarding TCP packets, so that the data transmission rate represented by the real-time bandwidth between the campus network and the operator network is within the preset system Within the data transmission rate range represented by the threshold, it avoids network congestion caused by limited bandwidth on the campus network.
  • TCP packets are actively discarded through the campus network, and the independence and controllability of the campus network reduce the impact of the campus network on operations. dependence on business networks.
  • the packet loss processing of TCP messages from the operator network includes: obtaining the priority information of the TCP message; based on the priority information Perform differentiated packet loss processing on TCP packets from the operator's network.
  • different packet loss processing methods can be adopted for TCP messages with different priority information. For example, packet loss processing is not performed on TCP messages with higher priority, but only TCP messages with lower priority are discarded. deal with. In scenarios where bandwidth is limited, services with different needs are provided for different users in the campus network.
  • obtaining the priority information of the TCP message includes: obtaining a message identifier of the TCP message, wherein the message identifier is used to uniquely identify The TCP message; determines the priority information of the TCP message according to the message identifier.
  • the above technical solution is adopted to identify TCP messages through message identifiers, and determine the priority information of each TCP message through message identifiers, so as to differentiate TCP messages from the operator network based on the priority information. Packet loss handling.
  • the message identifier can be an IP address or a MAC address.
  • performing differentiated packet loss processing on TCP messages from the operator network based on the priority information includes: determining based on the priority information that packets are sent from the operator network. The packets to be processed in the TCP packets of the operator network are processed; the packets to be processed are discarded, wherein the priority of the packets to be processed is lower than all the packets from the operator network. The priority of other TCP packets in the TCP packet.
  • the entrance device of the campus network only discards TCP packets with low priority, and forwards TCP packets with high priority directly to the corresponding client, and because TCP packets with high priority
  • TCP packets of high-priority users are directly forwarded to ensure the user experience of high-priority users in scenarios with limited bandwidth.
  • the packets to be processed include multiple TCP packets
  • the packet loss processing for the packets to be processed includes: based on the priority of the packets to be processed.
  • the level information determines the packet loss parameter of each TCP message in the message to be processed; and performs packet loss processing on the corresponding TCP message in the message to be processed according to the packet loss parameter.
  • packet loss processing is performed on the corresponding TCP packets according to the packet loss parameters corresponding to the priority information, so as to achieve differentiated processing of various TCP packets in the packets to be processed.
  • the packet loss parameter may be a packet loss rate or a number of packets lost, and TCP messages with different priority information correspond to different packet loss parameters.
  • performing differentiated packet loss processing on TCP packets from the operator network based on the priority information includes: determining based on the priority information that packets from the Packet loss parameters of TCP messages from the operator network; packet loss processing is performed on TCP messages from the operator network according to the packet loss parameters, where different priority information corresponds to different packet loss parameters.
  • the entrance device stores a packet loss sliding window, and performs differentiated packet loss processing on TCP messages from the operator network based on the priority information. It includes: performing differentiated packet loss processing on TCP messages from the operator network according to the packet loss sliding window.
  • differentiated packet loss processing is performed on TCP messages from the operator network through the preset packet loss sliding window in the entrance device.
  • the packet loss processing of the TCP message according to the packet loss sliding window includes: receiving the size of the packet loss sliding window from the operator network. TCP messages; perform packet loss processing on TCP messages with the packet loss sliding window size according to the preset packet loss parameters; if after the packet loss processing, the real-time bandwidth of the entrance device and the operator network The represented data transmission rate is greater than or equal to the data transmission rate represented by the system threshold, gradually increase the packet loss parameter, and slide the packet loss received from the operator network according to the increased packet loss parameter. TCP packets with a window size are discarded until the data transmission rate represented by the real-time bandwidth of the ingress device and the operator network is less than the data transmission rate represented by the system threshold.
  • the method further includes: gradually reducing the packet loss parameter, and analyzing the received TCP packets with the packet loss sliding window size based on the reduced packet loss parameter. Packet loss is performed until the packet loss parameter is 0, and then packet loss processing is no longer performed on TCP messages from the operator network.
  • the data transmission rate represented by the real-time bandwidth between the entrance device and the operator network changes from a data transmission rate represented by being greater than or equal to the system threshold to being less than the system threshold.
  • the data transmission rate is gradually reduced by gradually reducing the packet loss parameter, and packet loss is performed based on the reduced packet loss parameter.
  • the method further includes: data transmission rate represented by the real-time bandwidth between the entrance device and the operator network and data represented by the system threshold.
  • the packet loss parameters are adjusted according to the transmission rate; and the TCP messages from the operator network are packet lost according to the adjusted packet loss parameters.
  • Packet loss processing for TCP messages includes: if the system threshold is larger, the data transmission rate represented by the system threshold is smaller, and when the actual bandwidth is greater than or equal to the system threshold, the packet loss processing from the operator network is The TCP message is subjected to packet loss processing; if the system threshold is larger, the data transmission rate represented by the system threshold is smaller.
  • the absolute value of the difference between the contracted bandwidth and the actual bandwidth is less than or equal to the system threshold, perform packet loss processing on the TCP packets from the operator network.
  • the data transmission rate represented by the real-time bandwidth between the entrance device and the operator network is greater than or equal to the preset value.
  • the data transmission rate represented by the system threshold is: the actual bandwidth is greater than or equal to the system threshold.
  • the data transmission rate represented by the system threshold is smaller, and the data transmission rate represented by the real-time bandwidth between the entrance device and the operator network is greater than or equal to the preset system threshold.
  • the characterized data transmission rate is: the absolute value of the difference between the contracted bandwidth and the actual bandwidth is less than or equal to the system threshold.
  • the data transmission rate represented by the packet forwarding performance of the ingress device is greater than the data transmission rate represented by the contracted bandwidth.
  • embodiments of the present application provide an ingress device, which includes a receiving ingress module, a traffic detection module, a backpressure control module, a sliding packet loss module, a forwarding module, and an egress forwarding module.
  • the receiving portal module is used to receive data sent from the operator's network
  • the traffic detection module is used to detect the amount of data transmitted by the portal device within a preset time to obtain the real-time bandwidth between the portal device and the operator's network; if the portal The data transmission rate represented by the real-time bandwidth of the device is less than the data transmission rate represented by the system threshold.
  • the forwarding module is used to forward the data sent from the operator network to the egress forwarding module, and the egress forwarding module is used to forward the data sent by the forwarding module; If the data transmission rate represented by the real-time bandwidth of the ingress device is greater than or equal to the data transmission rate represented by the system threshold, the backpressure control module and the sliding packet loss module cooperate to perform packet loss processing on the TCP packets from the operator network. And forward the TCP message after packet loss processing to the egress forwarding module, so that the egress forwarding module can forward the received data.
  • embodiments of the present application provide an entry device, including: one or more processors; a storage device for storing one or more programs; when the one or at least one program is used by the one or more The processor executes, so that the one or more processors implement the network congestion control method according to any one of the first aspects.
  • embodiments of the present application provide a computer-readable storage medium on which a computer program is stored.
  • the program is executed by a processor, the network congestion control method as described in any one of the first aspects is implemented.
  • embodiments of the present application provide a campus network, including an ingress device, where the ingress device is configured to perform any one of the network congestion control methods of the first aspect.
  • Figure 1 is a schematic diagram of the system architecture of a system network.
  • Figure 2 is a schematic flowchart of a network congestion control method provided by an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of a packet loss processing method provided by an embodiment of the present application.
  • Figure 4 is a schematic diagram of the sliding window packet loss processing provided by the embodiment of the present application.
  • Figure 5 is a schematic diagram of the packet loss parameters of the ingress device changing over time according to the embodiment of the present application.
  • Figure 6 is a schematic diagram of a state machine of an entrance device provided by an embodiment of the present application.
  • Figure 7 is a schematic module diagram of an entrance device provided by an embodiment of the present application.
  • FIG. 8 is a hardware schematic diagram of the entrance device according to the embodiment of the present application.
  • first and second are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features.
  • features defined as “first” and “second” may explicitly or implicitly include one or more of the described features.
  • words such as “exemplary” or “for example” are used to identify examples, illustrations or illustrations. Any embodiment or design described as “exemplary” or “such as” in the embodiments of the present application is not to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the words “exemplary” or “such as” is intended to present the concept in a concrete manner.
  • Bandwidth refers to the amount of data that can be transmitted within a unit of time (usually 1 second).
  • the contracted bandwidth is the theoretical maximum bandwidth from the operator's access equipment to the user equipment stipulated in the broadband service agreement signed between the user (such as the campus network, the campus network is the user who signed a contract with the operator's network) and the operator. Reachable rate.
  • Throughput refers to the number of data (measured in bits, bytes, packets, etc.) successfully transmitted per unit time on a network, device, port, virtual circuit, or other facility.
  • TCP congestion control is an algorithm used by Transmission Control Protocol (TCP) to avoid network congestion and is a congestion control measure.
  • TCP congestion control uses a diverse network congestion control method based on the line increase product decrease mode (including slow start and congestion window modes) to control congestion.
  • the system network includes the campus network and the operator network.
  • the operator's network includes an egress device 210, and the operator's network communicates with the campus network through the egress device 210.
  • the operator network sends downlink data to the campus network through the egress device 210.
  • the egress device 210 may be a router, a switch, and other devices.
  • the campus network includes an entrance device 110, a switch 130 and a client 150.
  • the campus network is connected to the operator network through the entrance device 110.
  • the ingress device 110 may be an edge switch, an access switch, or other devices.
  • the entrance device 110 is used to implement communication between the campus network and the operator's network.
  • the campus network receives downlink data sent by the operator network through the entrance device 110 or sends uplink data to the operator network.
  • the ingress device 110 of the campus network in Figure 1 is directly connected to and communicates with the egress device 210 of the operator's network. It can be understood that in other embodiments, the ingress device 110 of the campus network can be connected to the egress device 210 of the operator network through other forwarding devices or forwarding networks. In this way, the campus network communicates with the operator network through other forwarding devices or forwarding networks. .
  • client 150 includes client 1, client 2, client 3 and client 4. It can be understood that this application only takes Figure 1 as an example, but is not limited thereto.
  • the client 150 can be a mobile terminal, a notebook computer, a desktop computer, etc.
  • the operator network when the operator network communicates with the campus network, the operator network sends downlink data from the operator network to the ingress device 111 of the campus network through the egress device 210.
  • the ingress device 110 forwards the downlink data to the corresponding switch 130, and the switch 130 forwards it to the client 150 of the campus network.
  • the ingress device 110 also receives the uplink data forwarded from the client 150 by the switch 130, and forwards the uplink data to the egress device 210 of the operator network.
  • the egress device 210 of the operator network receives the uplink data from the campus network.
  • this application provides a network congestion control method by detecting the real-time bandwidth between the entrance device 110 of the campus network and the operator network.
  • the ingress device 110 performs packet loss processing on the TCP packets from the operator network.
  • the overall traffic of the campus network entrance device 110 is reversely controlled, thereby reducing the throughput of the campus network entrance device 110 and ensuring the connection between the campus network entrance device 110 and the operator's network.
  • the real-time bandwidth is always within the contracted bandwidth range between the campus network and the operator to avoid network congestion on the campus network.
  • the sliding window mechanism is usually used to transmit packets between the operator network and the campus network.
  • the ingress device 110 discards TCP packets from the operator network
  • the operator network will receive fewer acknowledgment messages from TCP packets sent by the campus network.
  • the operator network will reduce the sending window of TCP messages according to TCP congestion control, so that less data is transmitted between the operator network and the campus network, and the throughput of the entrance device 110 of the campus network becomes smaller, which in turn reduces the campus network.
  • the real-time bandwidth between the campus network and the operator's network becomes smaller, so that the real-time bandwidth between the entrance device 110 of the campus network and the operator's network is always within the contracted bandwidth between the campus network and the operator.
  • Figure 2 is a schematic flow chart of a network congestion control method provided by an embodiment of the present application.
  • This network congestion control method can be applied to the entrance equipment of the campus network.
  • the following takes the network congestion control method applied to the entrance device 110 of the campus network in Figure 1 as an example for detailed description.
  • the amount of data transmitted by the entrance device 110 within a preset time can be detected, and the real-time bandwidth can be calculated based on the amount of data transmitted and the preset time.
  • the amount of data transmitted by the entrance device 110 of the campus network in 3 seconds is 300MB
  • the real-time bandwidth may also be referred to as the throughput of the portal device 110 .
  • Real-time bandwidth may characterize the data transfer rate between the portal device 110 and the operator's network.
  • the amount of transmitted data includes downlink data received by the ingress device 110 from the operator network and uplink data forwarded by the ingress device 110 to the operator network.
  • the system threshold is obtained based on the contracted bandwidth between the campus network and the operator network. For example, if the contracted bandwidth is 100Mb/s, the system threshold may be 90Mb/s.
  • the relationship between the real-time bandwidth and the contracted bandwidth is determined by limiting the relationship between the data transmission rate represented by the real-time bandwidth and the data transmission rate represented by the system threshold between the portal device 110 and the operator network.
  • the data transmission rate represented by the real-time bandwidth between the portal device 110 and the operator network is greater than or equal to the data transmission rate represented by the system threshold, it indicates that the real-time bandwidth between the portal device 110 and the operator network is close to that between the portal device 110 and the operator network. Contracted bandwidth between operator networks, campus networks have the risk of network congestion.
  • the real-time bandwidth between the portal device 110 and the operator's network When the data transmission rate represented by the real-time bandwidth between the portal device 110 and the operator's network is less than the data transmission rate represented by the system threshold, it indicates that the real-time bandwidth between the portal device 110 and the operator's network is different from the data transmission rate between the portal device 110 and the operator. There is a large unused bandwidth between the contracted bandwidths between the networks, and there is no need to process the data transmitted between the entrance device 110 and the operator network.
  • the system threshold can be 90Mb/s.
  • the real-time bandwidth between the portal device 110 and the operator's network is 92Mb/s, it is greater than the system threshold, indicating that the portal device 110 and the operator's network are The real-time bandwidth between them is close to the contracted bandwidth between the portal device 110 and the operator network.
  • packet loss processing is performed on the TCP packets in the downlink data sent from the operator network on the entrance device 110 side to reduce the time between the entrance device 110 and the operator network.
  • the real-time bandwidth between the entrance device 110 and the operator network is ensured to be within the scope of the contracted bandwidth between the entrance device 110 and the operator network, thereby avoiding network congestion in the campus network.
  • the data transmission rate represented by the system threshold may be 90% to 95% of the data transmission rate represented by the contracted bandwidth.
  • This system threshold can not only ensure the bandwidth utilization of the campus network, but also prevent the real-time bandwidth of the campus network from exceeding the contracted bandwidth, causing network congestion on the campus network.
  • the system threshold may be determined based on the network status of the campus network and the operator network.
  • the system threshold is a bandwidth threshold, which is used to indicate the bandwidth used by the campus network.
  • the specific implementation of step S202 may be: when the actual bandwidth is greater than or equal to the system threshold, the TCP packets from the operator network are processed. Packet loss handling. For example, the contracted bandwidth is 100Mb/s and the system threshold is 90Mb/s. When the real-time bandwidth is greater than or equal to 90Mb/s, TCP packets from the operator network are discarded.
  • step S202 may be: when the absolute value of the difference between the contracted bandwidth and the actual bandwidth is less than or equal to the system threshold, packet loss processing is performed on the TCP packets from the operator network.
  • the contracted bandwidth is 100Mb/s and the system threshold is 10Mb/s.
  • the real-time bandwidth is 91Mb/s and the absolute value of the difference between the contracted bandwidth and the actual bandwidth is 9Mb/s and less than the system threshold, then the operator will TCP packets on the commercial network are discarded.
  • the data transmission rate represented by the real-time bandwidth between the entrance device 110 and the operator network is greater than or equal to the data represented by the preset system threshold.
  • the transmission rate is: the actual bandwidth is greater than or equal to the system threshold.
  • the data transmission rate represented by the real-time bandwidth between the entrance device and the operator network is greater than or equal to the data transmission rate represented by the preset system threshold.
  • the entrance device when the data transmission rate represented by the real-time bandwidth of the entrance device 110 of the campus network is greater than or equal to the data transmission rate represented by the system threshold, in order to ensure that services in the campus network can be performed normally, the entrance device The data transmission rate represented by the packet forwarding performance of 110 is greater than the data transmission rate represented by the contracted bandwidth. The packet forwarding performance is used to indicate the data forwarding capability of the ingress device 110 .
  • Packet loss processing for TCP packets from the operator network specifically includes:
  • the priority information is used to indicate the priority or importance of multiple different TCP messages.
  • the data transmitted between the campus network and the operator network includes TCP packets and non-TCP packets (such as UDP packets).
  • non-TCP packets such as UDP packets.
  • the entrance device 110 in the embodiment of this application only processes the received TCP packets, and other non-TCP packets will be directly forwarded to the corresponding client without packet loss processing.
  • the portal device 110 forwards the TCP messages to the corresponding clients.
  • the priority information of the TCP packet corresponding to each client can be determined through the priority information of the client.
  • the priority information includes low priority and high priority. Take Figure 1 as an example. Assume that Client 2, Client 3 and Client 4 in the campus network have low priority and Client 1 has high priority. Then the priority of the TCP packet corresponding to Client 1 is greater than that of the client. 2. The priorities of the TCP packets corresponding to client 3 and client 4.
  • obtaining priority information of TCP packets from the operator network in S301 includes:
  • the portal device 110 receives multiple TCP messages sent by the operator network, then obtains the message identifier corresponding to each TCP message, and determines the priority corresponding to each TCP message based on the message identifier.
  • the message identifier is used to identify the TCP message or the client used by the user, so that the association between the TCP message and the client can be established through the message identifier.
  • the message identifier can be an IP address or a MAC address. Wherein, if the packet identifier is an IP address, the IP address may be the IP address of the client.
  • the message identifier can also be other parameters, such as user-defined parameters or the destination port number in the TCP message. There is no specific limit here. It only needs to ensure that the parameter can uniquely identify the TCP message and the client used by the user. That’s it.
  • the first correspondence relationship is stored in the portal device 110 .
  • the first correspondence relationship includes message identifiers and priority information corresponding to each message identifier.
  • the priority information of the corresponding TCP message determined based on the message identifier includes:
  • the portal device 110 matches the message identifier with the message identifier in the first correspondence relationship to obtain the priority information corresponding to the TCP message.
  • the portal device 110 can also obtain the priority information of the corresponding TCP packet through other methods, such as For example, a recognition model is trained through a machine learning algorithm, TCP packets are input to the recognition model, and the recognition model outputs the priority information of the TCP packets.
  • a recognition model is trained through a machine learning algorithm, TCP packets are input to the recognition model, and the recognition model outputs the priority information of the TCP packets.
  • the packet loss rate is lower than the packet loss rate on ordinary users, thereby ensuring that the campus network bandwidth is limited.
  • the entrance device 110 only performs packet loss processing on the TCP packets corresponding to client 2, client 3 and client 4, but does not perform packet loss processing on the TCP packet of client 1.
  • Embodiment 1 in S302, differentiated packet loss processing is performed on TCP packets based on priority information, including:
  • the packets to be processed in the TCP packet are determined based on the priority information, and the packets to be processed are discarded. Among them, the priority of the packet to be processed is lower than the priority of other TCP packets in the TCP packets from the operator network.
  • the portal device 110 divides TCP packets from the operator network into pending packets and normal processing packets based on priority information.
  • the priority of packets to be processed is lower than the priority of normally processed packets.
  • the entrance device 110 performs packet loss processing on the packets to be processed, and forwards the normally processed packets normally. In this way, the entrance device 110 implements differentiated packet loss processing on TCP messages by performing different packet loss processing methods on TCP messages corresponding to different priority information.
  • the ingress device 110 receives 70 TCP packets: Message 1 to Message 70 from the operator network.
  • the portal device 110 obtains the priority information of 70 TCP packets and determines that the priorities of packets 1 to 10 are higher than the priorities of packets 11 to 70. Then the portal device 110 sends packets 1 to 70.
  • Message 10 is forwarded to the corresponding client normally, and packets 11 to 70 are discarded according to the preset packet loss parameters (for example, the packet loss parameter is the packet loss rate).
  • the packet loss parameter is the packet loss rate
  • the message to be processed includes multiple TCP messages
  • the multiple TCP messages have multiple priority information
  • the priority information and loss information of the message to be processed are stored in the entrance device 110. Second correspondence between package parameters.
  • packet loss processing for the packets to be processed may include:
  • multiple TCP messages in the messages to be processed have different priorities.
  • the ingress device 110 can set different packet loss rates according to the TCP messages of different priorities, and perform processing on the corresponding TCP messages according to the packet loss rates. Packet loss handling.
  • the messages to be processed include 60 TCP messages: TCP message 11 to TCP message 70, among which TCP message 11 to TCP message 30 have the highest priority, and TCP message 31 to TCP message 50 The priority of TCP packet 51 to TCP packet 70 is the lowest.
  • the entrance device 110 determines based on the priority information and the second corresponding relationship that the packet loss rate of TCP message 11 to TCP message 30 is 10%, the packet loss rate of TCP message 31 to TCP message is 15%, and the packet loss rate of TCP message 51 Report to TCP The packet loss rate of message 70 is 20%, and then the corresponding TCP packet is discarded according to the packet loss rate.
  • the packet loss parameter may be the packet loss rate.
  • the packet loss parameter may also be the number of packets lost.
  • the packet loss parameters can be preset in the entrance device 110 for the user.
  • the packet loss parameter may be determined based on the network status of the campus network and the operator network.
  • the TCP packets received by the portal device 110 from the operator network include multiple TCP packets, for example, each TCP packet corresponds to a client. Then, in S302, differentiated packet loss processing is performed on the TCP packets from the operator network based on the priority information, including:
  • Packet loss processing is performed on TCP packets from the operator network based on packet loss parameters
  • TCP packets with different priority information have different packet loss parameters.
  • the entrance device 110 performs packet loss processing on all TCP messages from the operator network, and performs different packet loss processing on TCP messages with different priority information. That is, the ingress device 110 obtains the packet loss parameters corresponding to each type of TCP message based on the priority information. Since TCP messages of different priorities have different packet loss parameters, the ingress device 110 determines the corresponding types of multiple TCP packets based on the packet loss parameters. The packets are discarded.
  • the packet loss parameter is the packet loss rate.
  • the ingress device receives 60 TCP messages sent from the operator network: TCP message 11 to TCP message 70, where the priority of TCP message 11 to TCP message 30 is The priority of TCP message 31 to TCP message 50 is the highest, and the priority of TCP message 51 to TCP message 70 is the lowest.
  • the entrance device determines the loss of TCP message 11 to TCP message 30 based on the priority information.
  • the packet rate is 10%
  • the packet loss rate from TCP packet 31 to TCP packet 70 is 15%
  • the packet loss rate from TCP packet 51 to TCP packet 70 is 20%
  • the entrance device 110 calculates the corresponding TCP packet loss rate based on the packet loss rate. The packets are discarded.
  • the ingress device determines that the packet loss rate of TCP packets 11 to TCP packets 30 is 0% and the packet loss rate of TCP packets 31 to TCP packets is 15%, the TCP The packet loss rate of packet 51 to TCP packet 70 is 20%, so the ingress device does not perform packet loss processing on TCP packet 11 to TCP packet 30.
  • the packet loss sliding window is preset in the ingress device 110 .
  • the size of the packet loss sliding window can be preset by the user, or can be determined based on the network status of the campus network (such as real-time network speed).
  • the ingress device 110 can perform packet loss processing on TCP packets from the operator network according to the packet loss sliding window. Specifically, in Embodiment 1 and Embodiment 2, packet loss processing is performed on TCP messages from the operator network based on packet loss parameters, including:
  • Packet loss processing is performed on TCP packets from the operator network based on the packet loss parameters and packet loss sliding window.
  • the packet loss parameter is the number of packets lost, and the number of packets lost is 3. Therefore, when the ingress device 110 receives 10 TCP packets from the operator network, 3 of the TCP packets will be randomly discarded according to the packet loss sliding window and packet loss parameters (3) (as shown in the black box in Figure 4 shown).
  • the ingress device 110 receives the packets to be processed in the size of the packet loss sliding window each time. Packet loss processing is performed based on the size of the packet loss sliding window to be processed. For example, the size of the packet loss sliding window is 10 TCP packets, the packet loss parameter is the number of packets lost, and the number of packets lost is 3.
  • the entrance device 110 receives 50 TCP packets from the operator network, It receives 10 packets to be processed each time and discards the packets to be processed, that is, randomly discards 3 TCP packets in the packets to be processed.
  • the entrance device 110 presets the time for TCP messages from the operator network. After packet loss processing, or after packet loss processing of TCP packets with a preset size (for example, 10MB) from the operator network, the network congestion control method also includes:
  • the data transmission rate represented by the real-time bandwidth of the ingress device 110 is greater than or equal to the data transmission rate represented by the system threshold, packet loss processing is performed on the subsequently received TCP messages from the operator network, and the packet loss processing is detected.
  • the real-time bandwidth between the portal device 110 and the operator network if the data transmission rate represented by the real-time bandwidth of the portal device 110 is greater than or equal to the data transmission rate represented by the system threshold, the subsequently received TCP packets from the operator network Packet loss processing is performed, and the cycle is repeated until the data transmission rate represented by the real-time bandwidth between the ingress device 110 and the operator's network is less than the data transmission rate represented by the system threshold. That is, subsequent TCP packets received from the operator network will no longer be discarded.
  • packet loss processing of TCP packets from the operator network according to packet loss parameters includes:
  • Packet loss processing is performed on TCP packets with the size of the packet loss sliding window according to the packet loss parameters
  • the packet loss parameter is gradually increased, and the received packet loss parameter is processed based on the increased packet loss parameter. TCP packets with the size of the packet loss sliding window are discarded until the data transmission rate represented by the real-time bandwidth between the ingress device 110 and the operator network is less than the data transmission rate represented by the system threshold.
  • the ingress device 110 performs packet loss processing on the TCP packets from the operator network based on the packet loss parameters, and then the ingress device 110 again Obtain the real-time bandwidth between the portal device 110 and the operator network. If the ingress device 110 determines that the data transmission rate represented by the real-time bandwidth is still greater than the data transmission rate represented by the system threshold, the ingress device 110 can gradually increase the packet loss parameter corresponding to the packet loss process, and based on the increased loss The packet parameter performs packet loss processing on newly received TCP packets to achieve rapid adjustment of the rapidly increasing real-time bandwidth between the ingress device 110 and the operator network.
  • the ingress device 110 can rapidly reduce the data transmission rate represented by the real-time bandwidth between the ingress device 110 and the operator's network to a data transmission rate represented by the system threshold. rate.
  • the packet loss sliding window is 20 TCP packets
  • the packet loss parameter is the number of packets lost
  • the number of packets lost is 4. If the portal device 110 receives 20 TCP packets from the operator network, the portal device 110 discards 4 TCP packets among the 20 TCP packets, and then obtains the real-time bandwidth between the portal device 110 and the operator network. If the data transmission rate represented by the real-time bandwidth is still greater than or equal to the data transmission rate represented by the system threshold, the number of lost packets is increased to 8, and then 20 TCP messages from the operator network are received, and the ingress device 110 After discarding 8 TCP packets among the 20 TCP packets, the real-time bandwidth between the ingress device 110 and the external network is obtained again.
  • the data transmission rate represented by the real-time bandwidth is still greater than or equal to the data transmission rate represented by the system threshold, continue to increase the number of lost packets until the data transmission rate represented by the real-time bandwidth is less than the data transmission rate represented by the system threshold.
  • the packet loss parameters are gradually increased to quickly reduce the real-time bandwidth and avoid the real-time bandwidth of the campus network. Exceeding the contracted bandwidth.
  • the entrance device 110 can gradually increase the packet loss parameter through a doubling method.
  • the packet loss parameter is the number of lost packets drop
  • step is the first time the portal device 110 detects the real-time bandwidth between the portal device 110 and the operator's network.
  • threshold can be the packet loss parameter preset by the entrance device 100, and the packet loss parameter can be the packet loss rate or the number of packets lost.
  • the ingress device 110 performs packet loss processing on the TCP packets from the packet loss sliding window of the operator network according to the gradually increasing number of lost packets, until the ingress device 110 detects the real-time bandwidth between the ingress device and the operator network.
  • the data transfer rate characterized is less than the data transfer rate characterized by the system threshold.
  • the entrance device 110 may adopt other methods of increasing packet loss parameters, and this application does not limit this.
  • the data transmission rate represented by the real-time bandwidth between the ingress device 110 and the operator network is changed from a data transmission rate represented by being greater than or equal to the system threshold to a data transmission rate represented by being less than the system threshold.
  • network congestion control methods also include:
  • the ingress device 110 can gradually reduce the packet loss parameter through the dichotomy method, that is, divide the packet loss parameter by 2 to obtain half of the original packet loss parameter, and slide the packet loss based on the reduced packet loss parameter. TCP packets in the window are discarded until the packet loss parameter is reduced to 0. At this time, all TCP packets from the operator network are not discarded.
  • the entrance device 110 can adopt other methods of reducing packet loss parameters, and this application does not limit this.
  • the packet loss parameters are gradually reduced, and packet loss processing is performed based on the reduced packet loss parameters. , and detect the relationship between the real-time bandwidth after packet loss processing and the data transmission rate represented by the system threshold.
  • the packet loss parameter will be gradually increased, and packet loss processing will be performed based on the increased packet loss parameter.
  • the real-time bandwidth between the ingress device 110 and the operator network is represented by If the data transmission rate changes again to a data transmission rate greater than the system threshold, then the ingress device 110 gradually increases the packet loss parameter, and then performs packet loss processing on the TCP packets from the operator network based on the increased packet loss parameter. Then the packet loss parameter is increased or decreased based on the relationship between the data transmission rate represented by the real-time bandwidth between the ingress device 110 and the operator network and the data transmission rate represented by the system threshold. For example, the packet loss parameter is increased or decreased.
  • the packet loss parameter will be increased. If the data transmission rate represented by the real-time bandwidth between the entrance device 110 and the operator network is less than the system If the data transmission rate represented by the threshold is reached, the parameter is reduced until the packet loss parameter is 0, and the ingress device 110 no longer performs packet loss processing on TCP messages from the operator network.
  • FIG. 5 is a schematic diagram of the packet loss parameters of the ingress device 110 changing over time.
  • the vertical axis is the number of lost packets, and the horizontal and vertical coordinates are time.
  • the real-time bandwidth between the entrance device 110 and the operator's network The data transmission rate represented by the width is less than the data transmission rate represented by the system threshold.
  • the portal device 110 directly forwards the TCP packet from the operator network to the client 150.
  • the data transmission rate represented is greater than the data transmission rate represented by the system threshold.
  • the entrance device 100 performs packet loss processing on the TCP messages from the operator network, and gradually increases the packet loss parameters.
  • the entrance device 110 When time B is reached, the entrance device 110 The data transmission rate represented by the real-time bandwidth of the operator network is less than the data transmission rate represented by the system threshold. The ingress device 110 gradually reduces the packet loss parameter, and responds to the TCP packets from the operator network based on the reduced packet loss parameter.
  • time C the data transmission rate represented by the real-time bandwidth of the entrance device 110 and the operator's network is less than the data transmission rate represented by the system threshold
  • the entrance device 110 gradually increases the packet loss parameter, and based on The increased packet loss is performed on the TCP packets from the operator network, and then adjusted according to the relationship between the data transmission rate represented by the real-time bandwidth of the ingress device 110 and the operator network and the data transmission rate represented by the system threshold.
  • the packet loss parameter is adjusted, and the TCP packets from the operator network are discarded according to the adjusted packet loss parameter. Then the entrance device 110 repeats the above steps until the packet loss parameter is 0. The entrance device 110 processes the packet loss from the operator network. TCP packets are no longer discarded.
  • the entrance device 110 includes four states: idle, congestion, recovery, and probe.
  • the portal device 110 when the data transmission rate represented by the real-time bandwidth between the portal device 110 and the operator's network is less than the data transmission rate represented by the system threshold, the portal device 110 is in an idle state.
  • the state of the entrance device 110 before time A in FIG. 6 is the idle state.
  • the ingress device 110 When the data transmission rate represented by the real-time bandwidth between the ingress device 110 and the operator's network is greater than or equal to the data transmission rate represented by the system threshold, the ingress device 110 is in a congestion state. For example, in Figure 6, the status of the ingress device 110 after time A and before time B, and the status of the ingress device after time C and before time D are all in the congestion state.
  • the ingress device 110 When the data transmission rate represented by the real-time bandwidth between the ingress device 110 and the operator's network changes from a data transmission rate greater than or equal to the system threshold to a data transmission rate less than the system threshold, the ingress device 110 is in a recovery state. For example, the state of the entrance device 110 after time B and before time C in FIG. 6 is the recovery state.
  • the entrance device 110 and the operator network switch back and forth between the congestion state and the recovery state (for example, in the above embodiment, the data transmission rate represented by the real-time bandwidth of the entrance device 110 and the operator network and the system threshold
  • the packet loss parameters are adjusted according to the data transmission rate, and the TCP packets from the operator network are discarded according to the packet loss parameters), until the state balance point is found (for example, the target packet loss parameter is found), the entrance device 110 is in the detection state. state.
  • the entrance device 110 continues to detect the real-time bandwidth between the entrance device 110 and the operator's network.
  • the packet loss parameter is reduced.
  • the packet loss parameter When it is 0, the entrance device 110 switches from the recovery state to the idle state.
  • the ingress device 110 includes a receiving ingress module, a traffic detection module, a back pressure control module, a sliding window packet loss module, a forwarding module, and an egress forwarding module.
  • the receiving entry module is used to receive data sent from the operator's network.
  • the traffic detection module is used to detect the amount of data transmitted by the entrance device 110 within a preset time (including the downlink data received by the entrance device 110 from the operator network and the uplink data forwarded by the entrance device 110 to the operator network), to obtain the data volume of the entrance device 110 Real-time bandwidth to and from the operator's network.
  • the forwarding module is configured to forward the data sent from the operator network to the egress forwarding module when the data transmission rate represented by the real-time bandwidth of the ingress device 110 is less than the data transmission rate represented by the system threshold.
  • the egress forwarding module is used to forward the data sent by the forwarding module to the corresponding client 150 .
  • the transmission rate, back pressure control module and sliding window packet loss module cooperate to process the packet loss of TCP packets from the operator network, and forward the packet loss processed TCP packets to the egress forwarding module for the egress forwarding module. Forward the received data to the corresponding client 150.
  • the backpressure control module is used to determine the packet loss parameter (see the above embodiment for the method of determining the packet loss parameter).
  • the sliding window packet loss module is used to discard TCP messages from the operator network based on the packet loss parameters and the preset packet loss sliding window, and send the discarded TCP messages to the egress forwarding module.
  • the egress forwarding module is also used to forward the TCP packets processed by the sliding packet loss module to the corresponding client 150 .
  • FIG. 7 is only used as an example of the entrance device 110 and is not limiting.
  • Portal device 110 may have more or fewer modules than shown in FIG. 7 .
  • FIG. 8 is a structural diagram of the entrance device 110 provided by the embodiment of the present application.
  • the entrance device 110 includes: a processor 10 , a transmitter 20 , a receiver 30 , a memory 40 and a port 50 .
  • the memory 40, the transmitter 20 and the receiver 30 and the processor 10 may be connected via a bus.
  • the memory 40, the transmitter 20, the receiver 30 and the processor 10 may not have a bus structure, but may have other structures, such as a star structure, which is not specifically limited in this application.
  • the processor 10 may be a central processing unit, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), one or more integrated circuits for controlling program execution, and a field programmable gate array (Field Programmable Gate).
  • ASIC Application Specific Integrated Circuit
  • FPGA field programmable gate array
  • the processor 10 may include at least one processing core.
  • the memory 40 may include read-only memory (Read Only Memory, ROM), random access memory (Random Access Memory, RAM), and disk memory.
  • ROM read-only memory
  • RAM random access memory
  • disk memory disk memory.
  • the memory 40 is used to store data required when the processor 10 is running.
  • the number of memories 40 is one or more.
  • the number of ports 50 is one or more, used to connect to the entrance device 110 on the upper or lower layer. If the ingress device 110 is an ingress device 110 connected to a host or server, such as an access switch or an edge switch, port 50 is also used to connect to the host or server.
  • a host or server such as an access switch or an edge switch
  • the transmitter 20 and the receiver 30 may be physically independent of each other or integrated together.
  • the transmitter 20 can send the data to the forwarding device of the campus network or the client of the campus network through port 50.
  • Receiver 30 may receive data sent from the operator's network through port 50.
  • embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein. These computer program codes may be stored in computer-readable memory that directs a computer or other programmable data processing device to operate in a particular manner.
  • This embodiment also provides a computer storage medium.
  • Computer instructions are stored in the computer storage medium.
  • the entrance device performs the above related method steps to implement the network congestion control method in the above embodiment. .
  • This embodiment also provides a computer program product.
  • the ingress device When the computer program product is run on the ingress device, the ingress device performs the above related steps to implement the network congestion control method in the above embodiment.
  • inventions of the present application also provide a device.
  • This device may be a chip, a component or a module.
  • the device may include a connected processor and a memory.
  • the memory is used to store computer execution instructions.
  • the processor can execute computer execution instructions stored in the memory, so that the chip executes the network congestion control method in each of the above method embodiments.
  • the disclosed devices and methods can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the modules or the division of modules are only a logical function division. In actual implementation, there may be other division methods, for example, multiple modules or components may be combined. Either it can be integrated into another device, or some features can be ignored, or not implemented.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or modules, which may be in electrical, mechanical or other forms.
  • a module described as a separate component may or may not be physically separate.
  • a component shown as a module may be one physical module or multiple physical modules, that is, it may be located in one place, or it may be distributed to multiple different places. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional module in each embodiment of the present application can be integrated into one processing module, or each module can exist physically alone, or two or more modules can be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or software function modules.
  • the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a readable storage medium.
  • the technical solutions of the embodiments of the present application are essentially or contribute to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the software product is stored in a storage medium , including several instructions to cause a device (which can be a microcontroller, a chip, etc.) or a processor to execute all or part of the steps of the methods described in various embodiments of this application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code. .

Landscapes

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

Abstract

Provided in the present application are a network congestion control method and apparatus. The network congestion control method is applied to an entry device of a campus network, and the entry device is used for being connected to an operator network. The method comprises: acquiring a real-time bandwidth between an entry device and an operator network; and if a data transmission rate represented by the real-time bandwidth between the entry device and the operator network is greater than or equal to a data transmission rate represented by a preset system threshold value, performing packet loss processing on a TCP message from the operator network, wherein the system threshold value is obtained according to a subscribed bandwidth between the campus network and the operator network. In the present application, packet loss processing is performed on a TCP message, which is from an operator network, at an entry device of a campus network, such that the throughput of the entry device is reduced, thereby avoiding network congestion of the campus network that is caused by a real-time bandwidth between the entry device and the operator network being greater than a subscribed bandwidth therebetween, such that the independence and controllability of the campus network is improved, and the dependence of the campus network on the operator network is alleviated.

Description

网络拥塞控制方法及装置Network congestion control method and device
本申请要求于2022年6月23日提交中国专利局、申请号为202210726633.5,发明名称为“网络拥塞控制方法及装置”的中国专利的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent filed with the China Patent Office on June 23, 2022, with application number 202210726633.5 and the invention title "Network Congestion Control Method and Device", the entire content of which is incorporated into this application by reference.
技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种网络拥塞控制方法及装置。The present application relates to the field of communication technology, and in particular, to a network congestion control method and device.
背景技术Background technique
园区网是指为企业或组织建立的办公局域网,以实现数字化办公、生产及运营,例如,校园网、社区网、企事业单位网等等。随着园区业务的逐渐丰富,园区网承载了更多的流量,当园区网在单位时间内的传输流量超过园区网与运营商的签约带宽所限定的传输流量时,园区网会发生网络拥塞,进而影响园区网内用户的正常工作。Campus network refers to the office LAN established for enterprises or organizations to realize digital office, production and operation, such as campus network, community network, enterprise and institution network, etc. With the gradual enrichment of campus services, the campus network carries more traffic. When the transmission traffic of the campus network in a unit time exceeds the transmission traffic limited by the contracted bandwidth between the campus network and the operator, network congestion will occur on the campus network. This in turn affects the normal work of users within the campus network.
发明内容Contents of the invention
鉴于以上内容,有必要提供一种网络拥塞控制方法及装置,在园区网的数据传输速率超过预设数据传输速率时,通过园区网对来自运营商网络的传输控制协议TCP报文进行丢包处理,以降低园区网的数据传输速率,避免园区网发生网络拥塞。In view of the above, it is necessary to provide a network congestion control method and device. When the data transmission rate of the campus network exceeds the preset data transmission rate, the transmission control protocol TCP packets from the operator network are discarded through the campus network. , to reduce the data transmission rate of the campus network and avoid network congestion in the campus network.
第一方面,本申请实施例提供了一种网络拥塞控制方法,应用于一园区网的入口设备,所述入口设备用于与运营商网络连接,所述方法包括:获取所述入口设备与所述运营商网络之间的实时带宽;若所述入口设备与所述运营商网络之间的实时带宽所表征的数据传输速率大于或等于预设的系统阈值所表征的数据传输速率,则对来自所述运营商网络的TCP报文进行丢包处理,其中,所述系统阈值依据所述园区网与所述运营商网络的签约带宽获得。采用上述技术方案,在园区网与运营商网络之间的实时带宽所表征的数据传输速率大于预设的系统阈值所表征的数据传输速率,园区网侧主动对来自运营商网络的TCP报文进行丢包处理,通过对TCP报文丢包处理以降低园区网与运营商网络之间的吞吐量,从而使园区网与运营商网络之间的实时带宽所表征的数据传输速率在预设的系统阈值所表征的数据传输速率范围内,避免园区网因带宽受限导致网络拥塞,同时通过园区网主动对TCP报文进行丢包,以园区网的独立性和可控性,减少园区网对运营商网络的依赖。In a first aspect, embodiments of the present application provide a network congestion control method, which is applied to an entrance device of a campus network. The entrance device is used to connect to an operator network. The method includes: obtaining the information between the entrance device and the operator network. The real-time bandwidth between the operator network; if the data transmission rate represented by the real-time bandwidth between the entrance device and the operator network is greater than or equal to the data transmission rate represented by the preset system threshold, then the data transmission rate from The TCP packets of the operator network are subjected to packet loss processing, wherein the system threshold is obtained based on the contracted bandwidth between the campus network and the operator network. Using the above technical solution, the data transmission rate represented by the real-time bandwidth between the campus network and the operator network is greater than the data transmission rate represented by the preset system threshold, and the campus network side actively processes TCP packets from the operator network. Packet loss processing reduces the throughput between the campus network and the operator network by discarding TCP packets, so that the data transmission rate represented by the real-time bandwidth between the campus network and the operator network is within the preset system Within the data transmission rate range represented by the threshold, it avoids network congestion caused by limited bandwidth on the campus network. At the same time, TCP packets are actively discarded through the campus network, and the independence and controllability of the campus network reduce the impact of the campus network on operations. dependence on business networks.
在上述第一方面的一种可能的实现中,所述对来自所述运营商网络的TCP报文进行丢包处理,包括:获取所述TCP报文的优先级信息;依据所述优先级信息对来自所述运营商网络的TCP报文进行差异化丢包处理。采用上述技术方案,可以对不同优先级信息的TCP报文采取不同的丢包处理方式,例如对优先级较高的TCP不做丢包处理,仅对优先级较低的TCP报文做丢包处理。在带宽受限的场景下,为园区网内不同用户提供不同需求的服务。In a possible implementation of the above first aspect, the packet loss processing of TCP messages from the operator network includes: obtaining the priority information of the TCP message; based on the priority information Perform differentiated packet loss processing on TCP packets from the operator's network. Using the above technical solution, different packet loss processing methods can be adopted for TCP messages with different priority information. For example, packet loss processing is not performed on TCP messages with higher priority, but only TCP messages with lower priority are discarded. deal with. In scenarios where bandwidth is limited, services with different needs are provided for different users in the campus network.
在上述第一方面的一种可能的实现中,所述获取所述TCP报文的优先级信息,包括:获取所述TCP报文的报文标识,其中,所述报文标识用于唯一标识所述TCP报文;依据所述报文标识确定所述TCP报文的优先级信息。 In a possible implementation of the above first aspect, obtaining the priority information of the TCP message includes: obtaining a message identifier of the TCP message, wherein the message identifier is used to uniquely identify The TCP message; determines the priority information of the TCP message according to the message identifier.
采用上述技术方案,通过报文标识来标识TCP报文,并通过报文标识确定每个TCP报文的优先级信息,以便依据优先级信息对来自所述运营商网络的TCP报文进行差异化丢包处理。其中报文标识可为IP地址、MAC地址。The above technical solution is adopted to identify TCP messages through message identifiers, and determine the priority information of each TCP message through message identifiers, so as to differentiate TCP messages from the operator network based on the priority information. Packet loss handling. The message identifier can be an IP address or a MAC address.
在上述第一方面的一种可能的实现中,所述依据所述优先级信息对来自所述运营商网络的TCP报文进行差异化丢包处理,包括:依据所述优先级信息确定来自所述运营商网络的TCP报文中的待处理报文;对所述待处理报文进行丢包处理,其中,所述待处理报文的优先级低于所述来自所述运营商网络的所有TCP报文中其他TCP报文的优先级。In a possible implementation of the above first aspect, performing differentiated packet loss processing on TCP messages from the operator network based on the priority information includes: determining based on the priority information that packets are sent from the operator network. The packets to be processed in the TCP packets of the operator network are processed; the packets to be processed are discarded, wherein the priority of the packets to be processed is lower than all the packets from the operator network. The priority of other TCP packets in the TCP packet.
采用上述技术方案,园区网的入口设备仅对优先级低的TCP报文进行丢包处理,将优先级高的TCP报文直接向对应的客户端进行转发,且由于优先级高的TCP报文对应高优先用户,通过对高优先级用户的TCP报文直接转发,以保证在带宽受限的场景下高优先级用户的使用体验。Using the above technical solution, the entrance device of the campus network only discards TCP packets with low priority, and forwards TCP packets with high priority directly to the corresponding client, and because TCP packets with high priority Corresponding to high-priority users, TCP packets of high-priority users are directly forwarded to ensure the user experience of high-priority users in scenarios with limited bandwidth.
在上述第一方面的一种可能的实现中,所述待处理报文包括多种TCP报文,所述对所述待处理报文进行丢包处理包括:依据所述待处理报文的优先级信息确定所述待处理报文中每种TCP报文的丢包参数;依据所述丢包参数对所述待处理报文中对应的所述TCP报文进行丢包处理。In a possible implementation of the first aspect, the packets to be processed include multiple TCP packets, and the packet loss processing for the packets to be processed includes: based on the priority of the packets to be processed. The level information determines the packet loss parameter of each TCP message in the message to be processed; and performs packet loss processing on the corresponding TCP message in the message to be processed according to the packet loss parameter.
采用上述技术方案,依据优先级信息对应的丢包参数对对应的TCP报文进行丢包处理,以实现待处理报文中多种TCP报文的差异化处理。Using the above technical solution, packet loss processing is performed on the corresponding TCP packets according to the packet loss parameters corresponding to the priority information, so as to achieve differentiated processing of various TCP packets in the packets to be processed.
进一步地,其中丢包参数可为丢包率或丢包个数,不同优先级信息的TCP报文对应不同的丢包参数。Further, the packet loss parameter may be a packet loss rate or a number of packets lost, and TCP messages with different priority information correspond to different packet loss parameters.
在上述第一方面的一种可能的实现中,所述依据所述优先级信息对来自所述运营商网络的TCP报文进行差异化丢包处理包括:依据所述优先级信息确定来自所述运营商网络的TCP报文的丢包参数;依据所述丢包参数对来自所述运营商网络的TCP报文进行丢包处理,其中,不同的优先级信息对应不同的丢包参数。In a possible implementation of the above first aspect, performing differentiated packet loss processing on TCP packets from the operator network based on the priority information includes: determining based on the priority information that packets from the Packet loss parameters of TCP messages from the operator network; packet loss processing is performed on TCP messages from the operator network according to the packet loss parameters, where different priority information corresponds to different packet loss parameters.
采用上述技术方案,对来自运营商网络的所有TCP报文均进行丢包处理,由于不同的优先级信息对应不同的丢包参数,通过不同的丢包参数对不同优先级信息的TCP报文进行丢包处理,以实现对来自运营商网络的TCP报文进行差异化丢包处理。Using the above technical solution, all TCP messages from the operator network are discarded. Since different priority information corresponds to different packet loss parameters, TCP messages with different priority information are processed through different packet loss parameters. Packet loss processing to implement differentiated packet loss processing for TCP packets from the operator network.
在上述第一方面的一种可能的实现中,所述入口设备中存储有丢包滑动窗口,所述依据所述优先级信息对来自所述运营商网络的TCP报文进行差异化丢包处理包括:依据所述丢包滑动窗口对来自所述运营商网络的TCP报文进行差异化丢包处理。In a possible implementation of the above first aspect, the entrance device stores a packet loss sliding window, and performs differentiated packet loss processing on TCP messages from the operator network based on the priority information. It includes: performing differentiated packet loss processing on TCP messages from the operator network according to the packet loss sliding window.
采用上述技术方案,通过入口设备中预先设定的丢包滑动窗口对来自所述运营商网络的TCP报文进行差异化丢包处理。Using the above technical solution, differentiated packet loss processing is performed on TCP messages from the operator network through the preset packet loss sliding window in the entrance device.
在上述第一方面的一种可能的实现中,所述依据所述丢包滑动窗口对所述TCP报文进行丢包处理包括:接收来自所述运营商网络的所述丢包滑动窗口大小的TCP报文;依据预设的丢包参数对所述丢包滑动窗口大小的TCP报文进行丢包处理;若在所述丢包处理之后,所述入口设备和所述运营商网络的实时带宽所表征的数据传输速率大于或等于所述系统阈值所表征的数据传输速率,逐步增大所述丢包参数,并依据增大后的丢包参数对接收来自所述运营商网络的丢包滑动窗口大小的TCP报文进行丢包处理,直到所述入口设备和所述运营商网络的实时带宽所表征的数据传输速率小于所述系统阈值所表征的数据传输速率。In a possible implementation of the above first aspect, the packet loss processing of the TCP message according to the packet loss sliding window includes: receiving the size of the packet loss sliding window from the operator network. TCP messages; perform packet loss processing on TCP messages with the packet loss sliding window size according to the preset packet loss parameters; if after the packet loss processing, the real-time bandwidth of the entrance device and the operator network The represented data transmission rate is greater than or equal to the data transmission rate represented by the system threshold, gradually increase the packet loss parameter, and slide the packet loss received from the operator network according to the increased packet loss parameter. TCP packets with a window size are discarded until the data transmission rate represented by the real-time bandwidth of the ingress device and the operator network is less than the data transmission rate represented by the system threshold.
采用上述技术方案,在对来自所述运营商网络的所述丢包滑动窗口大小的TCP报文进行丢包过程中,通过逐步增大丢包参数,以实现快速将入口设备和所述运营商网络的实时带宽 所表征的数据传输速率降低至小于所述系统阈值所表征的数据传输速率。Using the above technical solution, in the process of discarding TCP messages with the sliding window size of packet loss from the operator network, by gradually increasing the packet loss parameters, the ingress device and the operator can be quickly connected. Network real-time bandwidth The data transmission rate characterized is reduced to less than the data transmission rate characterized by the system threshold.
在上述第一方面的一种可能的实现中,若所述入口设备和所述运营商网络之间的实时带宽所表征的数据传输速率由大于或等于所述系统阈值所表征的数据传输速率变更为小于所述系统阈值所表征的数据传输速率,所述方法还包括:逐步减小所述丢包参数,依据减小后的所述丢包参数对接收的丢包滑动窗口大小的TCP报文进行丢包,直至所述丢包参数为0,则不再对来自所述运营商网络的TCP报文进行丢包处理。In a possible implementation of the first aspect above, if the data transmission rate represented by the real-time bandwidth between the entrance device and the operator network changes by a data transmission rate greater than or equal to the system threshold, To ensure that the data transmission rate is less than the data transmission rate represented by the system threshold, the method further includes: gradually reducing the packet loss parameter, and analyzing the received TCP packets with the packet loss sliding window size based on the reduced packet loss parameter. Packet loss is performed until the packet loss parameter is 0, and then packet loss processing is no longer performed on TCP messages from the operator network.
采用上述技术方案,在所述入口设备和所述运营商网络之间的实时带宽所表征的数据传输速率由大于或等于所述系统阈值所表征的数据传输速率变更为小于所述系统阈值所表征的数据传输速率,通过逐步减小所述丢包参数,并依据减小后的丢包参数进行丢包。Using the above technical solution, the data transmission rate represented by the real-time bandwidth between the entrance device and the operator network changes from a data transmission rate represented by being greater than or equal to the system threshold to being less than the system threshold. The data transmission rate is gradually reduced by gradually reducing the packet loss parameter, and packet loss is performed based on the reduced packet loss parameter.
在上述第一方面的一种可能的实现中,所述方法还包括:依据所述入口设备和所述运营商网络之间的实时带宽所表征的数据传输速率与所述系统阈值所表征的数据传输速率的关系调整所述丢包参数;依据调整后的所述丢包参数对来自所述运营商网络的TCP报文进行丢包处理。In a possible implementation of the first aspect above, the method further includes: data transmission rate represented by the real-time bandwidth between the entrance device and the operator network and data represented by the system threshold. The packet loss parameters are adjusted according to the transmission rate; and the TCP messages from the operator network are packet lost according to the adjusted packet loss parameters.
在上述第一方面的一种可能的实现中,所述若所述入口设备的实时带宽所表征的数据传输速率大于预设的系统阈值所表征的数据传输速率,对来自所述运营商网络的TCP报文进行丢包处理包括:若所述系统阈值越大,则所述系统阈值所表征的数据传输速率越小,则当实际带宽大于或等于系统阈值时,对来自所述运营商网络的所述TCP报文进行丢包处理;若所述系统阈值越大,则所述系统阈值所表征的数据传输速率越小,则当所述签约带宽与所述实际带宽的差值的绝对值小于或等于所述系统阈值时,对来自所述运营商网络的所述TCP报文进行丢包处理。In a possible implementation of the above first aspect, if the data transmission rate represented by the real-time bandwidth of the entrance device is greater than the data transmission rate represented by the preset system threshold, the data transmission rate from the operator network is Packet loss processing for TCP messages includes: if the system threshold is larger, the data transmission rate represented by the system threshold is smaller, and when the actual bandwidth is greater than or equal to the system threshold, the packet loss processing from the operator network is The TCP message is subjected to packet loss processing; if the system threshold is larger, the data transmission rate represented by the system threshold is smaller. When the absolute value of the difference between the contracted bandwidth and the actual bandwidth is less than or equal to the system threshold, perform packet loss processing on the TCP packets from the operator network.
具体地,当所述系统阈值越大,所述系统阈值所表征的数据传输速率越小时,所述入口设备与所述运营商网络之间的实时带宽所表征的数据传输速率大于或等于预设的系统阈值所表征的数据传输速率,为:所述实际带宽大于或等于所述系统阈值。Specifically, when the system threshold is larger and the data transmission rate represented by the system threshold is smaller, the data transmission rate represented by the real-time bandwidth between the entrance device and the operator network is greater than or equal to the preset value. The data transmission rate represented by the system threshold is: the actual bandwidth is greater than or equal to the system threshold.
当所述系统阈值越大,所述系统阈值所表征的数据传输速率越小时,所述入口设备与所述运营商网络之间的实时带宽所表征的数据传输速率大于或等于预设的系统阈值所表征的数据传输速率,为:所述签约带宽与所述实际带宽的差值的绝对值小于或等于所述系统阈值。在上述第一方面的一种可能的实现中,所述入口设备的包转发性能所表征的数据传输速率大于所述签约带宽所表征的数据传输速率。When the system threshold is larger, the data transmission rate represented by the system threshold is smaller, and the data transmission rate represented by the real-time bandwidth between the entrance device and the operator network is greater than or equal to the preset system threshold. The characterized data transmission rate is: the absolute value of the difference between the contracted bandwidth and the actual bandwidth is less than or equal to the system threshold. In a possible implementation of the above first aspect, the data transmission rate represented by the packet forwarding performance of the ingress device is greater than the data transmission rate represented by the contracted bandwidth.
第二方面,本申请实施例提供一种入口设备,入口设备包括接收入口模块、流量检测模块、反压控制模块、滑动丢包模块、转发模块、出口转发模块。In the second aspect, embodiments of the present application provide an ingress device, which includes a receiving ingress module, a traffic detection module, a backpressure control module, a sliding packet loss module, a forwarding module, and an egress forwarding module.
其中,接收入口模块用于接收来自运营商网络发送的数据,流量检测模块用于检测入口设备预设时间内的传输的数据量,以获取入口设备与运营商网络之间的实时带宽;若入口设备的实时带宽所表征的数据传输速率小于系统阈值所表征的数据传输速率,转发模块用于将来自运营商网络发送的数据向出口转发模块转发,出口转发模块用于转发转发模块发送的数据;若入口设备的实时带宽所表征的数据传输速率大于或等于系统阈值所表征的数据传输速率,反压控制模块和滑动丢包模块配合,以对来自运营商网络的TCP报文进行丢包处理,并将丢包处理后的TCP报文向出口转发模块转发,以便出口转发模块转发接收到的数据。Among them, the receiving portal module is used to receive data sent from the operator's network, and the traffic detection module is used to detect the amount of data transmitted by the portal device within a preset time to obtain the real-time bandwidth between the portal device and the operator's network; if the portal The data transmission rate represented by the real-time bandwidth of the device is less than the data transmission rate represented by the system threshold. The forwarding module is used to forward the data sent from the operator network to the egress forwarding module, and the egress forwarding module is used to forward the data sent by the forwarding module; If the data transmission rate represented by the real-time bandwidth of the ingress device is greater than or equal to the data transmission rate represented by the system threshold, the backpressure control module and the sliding packet loss module cooperate to perform packet loss processing on the TCP packets from the operator network. And forward the TCP message after packet loss processing to the egress forwarding module, so that the egress forwarding module can forward the received data.
第三方面,本申请实施例提供一种入口设备,包括:一个或多个处理器;存储装置,用于存储一个或多个程序;当所述一个或至少一个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如第一方面任一项所述的网络拥塞控制方法。 In a third aspect, embodiments of the present application provide an entry device, including: one or more processors; a storage device for storing one or more programs; when the one or at least one program is used by the one or more The processor executes, so that the one or more processors implement the network congestion control method according to any one of the first aspects.
第四方面,本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序,所述程序被处理器执行时实现如第一方面中任一项所述的网络拥塞控制方法。In a fourth aspect, embodiments of the present application provide a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the network congestion control method as described in any one of the first aspects is implemented.
第五方面,本申请实施例提供一种园区网,包括入口设备,所述入口设备用于执行第一方面任一项的网络拥塞控制方法。In a fifth aspect, embodiments of the present application provide a campus network, including an ingress device, where the ingress device is configured to perform any one of the network congestion control methods of the first aspect.
应当理解地,第二方面至第五方面中任一种设计所带来的技术效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。It should be understood that the technical effects brought by any design in the second to fifth aspects can refer to the beneficial effects in the corresponding methods provided above, and will not be described again here.
附图说明Description of the drawings
图1为一种系统网的系统架构示意图。Figure 1 is a schematic diagram of the system architecture of a system network.
图2为本申请实施例提供的网络拥塞控制方法的流程示意图。Figure 2 is a schematic flowchart of a network congestion control method provided by an embodiment of the present application.
图3为本申请实施例提供的丢包处理方法的流程示意图。Figure 3 is a schematic flowchart of a packet loss processing method provided by an embodiment of the present application.
图4为本申请实施例提供的丢包滑动窗口丢包处理的示意图。Figure 4 is a schematic diagram of the sliding window packet loss processing provided by the embodiment of the present application.
图5为本申请实施例提供的入口设备的丢包参数随时间变化的示意图。Figure 5 is a schematic diagram of the packet loss parameters of the ingress device changing over time according to the embodiment of the present application.
图6为本申请实施例提供的入口设备的状态机的示意图。Figure 6 is a schematic diagram of a state machine of an entrance device provided by an embodiment of the present application.
图7为本申请实施例提供的入口设备的模块示意图。Figure 7 is a schematic module diagram of an entrance device provided by an embodiment of the present application.
图8为本申请实施例的入口设备的硬件示意图。Figure 8 is a hardware schematic diagram of the entrance device according to the embodiment of the present application.
具体实施方式Detailed ways
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个所述特征。在本申请实施例的描述中,“示例性的”或者“例如”等词用于标识作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。Hereinafter, the terms “first” and “second” are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features. Thus, features defined as “first” and “second” may explicitly or implicitly include one or more of the described features. In the description of the embodiments of this application, words such as “exemplary” or “for example” are used to identify examples, illustrations or illustrations. Any embodiment or design described as "exemplary" or "such as" in the embodiments of the present application is not to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the words "exemplary" or "such as" is intended to present the concept in a concrete manner.
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请中的技术领域的技术人员通常理解的含义相同。本申请的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本申请。应理解,本申请中除非另有说明,“多个”是指两个或多于两个,“和/或”包括关联的所列项目中的一个或多个的任何和所有组合。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terms used in the description of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. It will be understood that in this application, unless otherwise stated, "plurality" means two or more than two, and "and/or" includes any and all combinations of one or more of the associated listed items.
首先,介绍本申请实施例所涉及的技术术语:First, the technical terms involved in the embodiments of this application are introduced:
1、带宽(Max net bitrate)1. Bandwidth (Max net bitrate)
带宽是指在单位时间(一般指的是1秒钟)内能传输的数据量。其中签约带宽是用户(例如园区网,园区网为与运营商网络进行签约的用户)与运营商所签订的宽带业务协议中所规定的从运营商的接入设备到用户设备之间的理论最高可达速率。Bandwidth refers to the amount of data that can be transmitted within a unit of time (usually 1 second). The contracted bandwidth is the theoretical maximum bandwidth from the operator's access equipment to the user equipment stipulated in the broadband service agreement signed between the user (such as the campus network, the campus network is the user who signed a contract with the operator's network) and the operator. Reachable rate.
2、吞吐量(throughput)2. Throughput
吞吐量是指对网络、设备、端口、虚电路或其他设施,单位时间内成功地传送数据的数量(以比特、字节、分组等测量)。Throughput refers to the number of data (measured in bits, bytes, packets, etc.) successfully transmitted per unit time on a network, device, port, virtual circuit, or other facility.
3、TCP拥塞控制3. TCP congestion control
TCP拥塞控制是传输控制协议(Transmission Control Protocol,TCP)避免网络拥塞的算法,是一种拥塞控制措施。TCP拥塞控制使用基于线增积减模式的多样化网络拥塞控制方法(包括慢启动和拥塞窗口等模式)来控制拥塞。 TCP congestion control is an algorithm used by Transmission Control Protocol (TCP) to avoid network congestion and is a congestion control measure. TCP congestion control uses a diverse network congestion control method based on the line increase product decrease mode (including slow start and congestion window modes) to control congestion.
为了便于理解,下面结合附图对本申请实施例中的技术方案进行描述。For ease of understanding, the technical solutions in the embodiments of the present application are described below in conjunction with the accompanying drawings.
首先结合图1介绍一种系统网的架构示意图。如图1所示,系统网包括园区网和运营商网络。运营商网络包括出口设备210,运营商网络通过出口设备210与园区网进行通信。例如运营商网络通过出口设备210向园区网发送下行数据。其中,出口设备210可为路由器、交换机等设备。First, a schematic diagram of the system network architecture is introduced with reference to Figure 1. As shown in Figure 1, the system network includes the campus network and the operator network. The operator's network includes an egress device 210, and the operator's network communicates with the campus network through the egress device 210. For example, the operator network sends downlink data to the campus network through the egress device 210. Among them, the egress device 210 may be a router, a switch, and other devices.
园区网包括入口设备110、交换机130及客户端150。The campus network includes an entrance device 110, a switch 130 and a client 150.
园区网通过入口设备110与运营商网络连接。入口设备110可为边缘交换机、接入交换机等设备。入口设备110用于实现园区网与运营商网络之间的通信。例如,园区网通过入口设备110接收运营商网络发送的下行数据或向运营商网络发送上行数据。其中,图1中园区网的入口设备110直接与运营商网络的出口设备210连接并进行通信。可以理解,在其他实施例中,园区网的入口设备110可通过其他转发设备或转发网络与运营商网络的出口设备210连接,如此,园区网通过其他转发设备或转发网络与运营商网络进行通信。The campus network is connected to the operator network through the entrance device 110. The ingress device 110 may be an edge switch, an access switch, or other devices. The entrance device 110 is used to implement communication between the campus network and the operator's network. For example, the campus network receives downlink data sent by the operator network through the entrance device 110 or sends uplink data to the operator network. Among them, the ingress device 110 of the campus network in Figure 1 is directly connected to and communicates with the egress device 210 of the operator's network. It can be understood that in other embodiments, the ingress device 110 of the campus network can be connected to the egress device 210 of the operator network through other forwarding devices or forwarding networks. In this way, the campus network communicates with the operator network through other forwarding devices or forwarding networks. .
如图1所示,客户端150包括客户端1、客户端2、客户端3和客户端4。可以理解,本申请仅以图1为例,但并不以此为限。客户端150可以为移动终端、笔记本电脑、台式机等。As shown in Figure 1, client 150 includes client 1, client 2, client 3 and client 4. It can be understood that this application only takes Figure 1 as an example, but is not limited thereto. The client 150 can be a mobile terminal, a notebook computer, a desktop computer, etc.
可以理解,当运营商网络通与园区网进行通信时,运营商网络通过出口设备210向园区网的入口设备111发送来自运营商网络的下行数据。入口设备110将下行数据转发给对应的交换机130,并由交换机130转发给园区网的客户端150。入口设备110还接收交换机130转发自客户端150发送的上行数据,并将该上行数据转发给运营商网络的出口设备210,运营商网络的出口设备210接收来自园区网的上行数据。It can be understood that when the operator network communicates with the campus network, the operator network sends downlink data from the operator network to the ingress device 111 of the campus network through the egress device 210. The ingress device 110 forwards the downlink data to the corresponding switch 130, and the switch 130 forwards it to the client 150 of the campus network. The ingress device 110 also receives the uplink data forwarded from the client 150 by the switch 130, and forwards the uplink data to the egress device 210 of the operator network. The egress device 210 of the operator network receives the uplink data from the campus network.
显然,当园区网内客户端150的业务量需求变大时,将导致在单位时间,园区网的入口设备110与出口设备210之间传输的数据量超过园区网与运营商的签约带宽所限定的最大数据量,进而导致园区网发生网络拥塞。网络拥塞会导致园区网的网络传输性能下降,影响园区网的所有业务的正常运行。Obviously, when the business volume demand of the client 150 in the campus network increases, the amount of data transmitted between the entrance device 110 and the exit device 210 of the campus network in a unit time exceeds the bandwidth limit of the contract between the campus network and the operator. the maximum amount of data, causing network congestion on the campus network. Network congestion will cause the network transmission performance of the campus network to degrade, affecting the normal operation of all services on the campus network.
针对上述问题,本申请提供一种网络拥塞控制方法,通过检测园区网的入口设备110与运营商网络之间的实时带宽。当入口设备110和运营商网络之间的实时带宽所表征的数据传输速度达到预设数据传输速率时,入口设备110对来自运营商网络的TCP报文进行丢包处理。通过对TCP报文进行丢包处理,以对园区网的入口设备110的整体流量进行反向控制,从而减少园区网的入口设备110的吞吐量,保证园区网的入口设备110与运营商网络之间的实时带宽始终保持在园区网与运营商的签约带宽范围内,避免园区网发生网络拥塞。In response to the above problems, this application provides a network congestion control method by detecting the real-time bandwidth between the entrance device 110 of the campus network and the operator network. When the data transmission speed represented by the real-time bandwidth between the ingress device 110 and the operator network reaches the preset data transmission rate, the ingress device 110 performs packet loss processing on the TCP packets from the operator network. By discarding TCP packets, the overall traffic of the campus network entrance device 110 is reversely controlled, thereby reducing the throughput of the campus network entrance device 110 and ensuring the connection between the campus network entrance device 110 and the operator's network. The real-time bandwidth is always within the contracted bandwidth range between the campus network and the operator to avoid network congestion on the campus network.
具体地,运营商网络和园区网之间通常通过滑动窗口机制实现报文的传输。当入口设备110对来自运营商网络的TCP报文进行丢包处理时,会导致运营商网络接收园区网发送的TCP报文的确认消息变少。如此,运营商网络将依据TCP拥塞控制减小TCP报文的发送窗口,从而运营商网络和园区网之间的传输的数据变少,园区网的入口设备110的吞吐量变小,进而使园区网与运营商网络之间的实时带宽变小,使园区网的入口设备110与运营商网络的实时带宽始终保持在园区网与运营商的签约带宽内。Specifically, the sliding window mechanism is usually used to transmit packets between the operator network and the campus network. When the ingress device 110 discards TCP packets from the operator network, the operator network will receive fewer acknowledgment messages from TCP packets sent by the campus network. In this way, the operator network will reduce the sending window of TCP messages according to TCP congestion control, so that less data is transmitted between the operator network and the campus network, and the throughput of the entrance device 110 of the campus network becomes smaller, which in turn reduces the campus network. The real-time bandwidth between the campus network and the operator's network becomes smaller, so that the real-time bandwidth between the entrance device 110 of the campus network and the operator's network is always within the contracted bandwidth between the campus network and the operator.
请参见图2,为本申请实施例提供的一种网络拥塞控制方法的流程示意图。该网络拥塞控制方法可应用于园区网的入口设备。下面以网络拥塞控制方法应用于图1中的园区网的入口设备110为例进行详细说明。Please refer to Figure 2, which is a schematic flow chart of a network congestion control method provided by an embodiment of the present application. This network congestion control method can be applied to the entrance equipment of the campus network. The following takes the network congestion control method applied to the entrance device 110 of the campus network in Figure 1 as an example for detailed description.
S201、获取入口设备110与运营商网络之间的实时带宽。 S201. Obtain the real-time bandwidth between the portal device 110 and the operator's network.
具体地,可通过检测入口设备110在预设时间内的传输的数据量,并依据传输的数据量和预设时间计算实时带宽。示例性地,园区网的入口设备110在3秒内传输的数据量为300MB,则入口设备110和运营商网络之间的实际带宽为300MB/3s=100Mb/s。Specifically, the amount of data transmitted by the entrance device 110 within a preset time can be detected, and the real-time bandwidth can be calculated based on the amount of data transmitted and the preset time. For example, the amount of data transmitted by the entrance device 110 of the campus network in 3 seconds is 300MB, and the actual bandwidth between the entrance device 110 and the operator's network is 300MB/3s=100Mb/s.
可以理解,在本申请实施例中,实时带宽也可称为入口设备110的吞吐量。实时带宽可表征入口设备110和运营商网络之间的数据传输速率。传输的数据量包括入口设备110接收来自运营商网络的下行数据和入口设备110向运营商网络转发的上行数据。It can be understood that in the embodiment of the present application, the real-time bandwidth may also be referred to as the throughput of the portal device 110 . Real-time bandwidth may characterize the data transfer rate between the portal device 110 and the operator's network. The amount of transmitted data includes downlink data received by the ingress device 110 from the operator network and uplink data forwarded by the ingress device 110 to the operator network.
S202、若入口设备110和运营商网络之间的实时带宽所表征的数据传输速率大于或等于系统阈值所表征的数据传输速率,对来自运营商网络的TCP报文进行丢包处理。S202. If the data transmission rate represented by the real-time bandwidth between the entrance device 110 and the operator network is greater than or equal to the data transmission rate represented by the system threshold, perform packet loss processing on the TCP packets from the operator network.
其中,系统阈值是依据园区网与运营商网络的签约带宽获得。示例性地,若签约带宽为100Mb/s,系统阈值可为90Mb/s。Among them, the system threshold is obtained based on the contracted bandwidth between the campus network and the operator network. For example, if the contracted bandwidth is 100Mb/s, the system threshold may be 90Mb/s.
可以理解,通过限定入口设备110和运营商网络之间的实时带宽所表征的数据传输速率与系统阈值所表征的数据传输速率的关系,以确定实时带宽与签约带宽的关系。当入口设备110和运营商网络之间的实时带宽所表征的数据传输速率大于或等于系统阈值所表征的数据传输速率时,表明入口设备110与运营商网络之间的实时带宽接近入口设备110与运营商网络之间的签约带宽,园区网存在网络拥塞的风险。当入口设备110和运营商网络之间的实时带宽所表征的数据传输速率小于系统阈值所表征的数据传输速率时,表明入口设备110与运营商网络之间的实时带宽与入口设备110与运营商网络之间的签约带宽之间具有较大的未使用带宽,无需对入口设备110与运营商网络之间传输的数据进行处理。It can be understood that the relationship between the real-time bandwidth and the contracted bandwidth is determined by limiting the relationship between the data transmission rate represented by the real-time bandwidth and the data transmission rate represented by the system threshold between the portal device 110 and the operator network. When the data transmission rate represented by the real-time bandwidth between the portal device 110 and the operator network is greater than or equal to the data transmission rate represented by the system threshold, it indicates that the real-time bandwidth between the portal device 110 and the operator network is close to that between the portal device 110 and the operator network. Contracted bandwidth between operator networks, campus networks have the risk of network congestion. When the data transmission rate represented by the real-time bandwidth between the portal device 110 and the operator's network is less than the data transmission rate represented by the system threshold, it indicates that the real-time bandwidth between the portal device 110 and the operator's network is different from the data transmission rate between the portal device 110 and the operator. There is a large unused bandwidth between the contracted bandwidths between the networks, and there is no need to process the data transmitted between the entrance device 110 and the operator network.
例如,若签约带宽为100Mb/s,系统阈值可为90Mb/s,当入口设备110与运营商网络之间的实时带宽为92Mb/s时,其大于系统阈值,表明入口设备110与运营商网络之间的实时带宽接近入口设备110与运营商网络之间的签约带宽。为了避免园区网与运营商网络之间的实时带宽超过签约带宽,在入口设备110侧对来自运营商网络发送的下行数据中的TCP报文进行丢包处理,以降低入口设备110与运营商网络之间的实时带宽,保证入口设备110与运营商网络之间的实时带宽在入口设备110与运营商网络之间的签约带宽的范围内,避免园区网发生网络拥塞。For example, if the contracted bandwidth is 100Mb/s, the system threshold can be 90Mb/s. When the real-time bandwidth between the portal device 110 and the operator's network is 92Mb/s, it is greater than the system threshold, indicating that the portal device 110 and the operator's network are The real-time bandwidth between them is close to the contracted bandwidth between the portal device 110 and the operator network. In order to prevent the real-time bandwidth between the campus network and the operator network from exceeding the contracted bandwidth, packet loss processing is performed on the TCP packets in the downlink data sent from the operator network on the entrance device 110 side to reduce the time between the entrance device 110 and the operator network. The real-time bandwidth between the entrance device 110 and the operator network is ensured to be within the scope of the contracted bandwidth between the entrance device 110 and the operator network, thereby avoiding network congestion in the campus network.
可以理解,系统阈值所表征的数据传输速率可为签约带宽所表征的数据传输速率的90%~95%。该系统阈值既可保证园区网的带宽利用率,又可以避免园区网的实时带宽超过签约带宽,导致园区网发生网络拥塞。当然,在其他实施例中,系统阈值可以依据园区网与运营商网络的网络状态确定。It can be understood that the data transmission rate represented by the system threshold may be 90% to 95% of the data transmission rate represented by the contracted bandwidth. This system threshold can not only ensure the bandwidth utilization of the campus network, but also prevent the real-time bandwidth of the campus network from exceeding the contracted bandwidth, causing network congestion on the campus network. Of course, in other embodiments, the system threshold may be determined based on the network status of the campus network and the operator network.
可以理解,在一些实施例中,若系统阈值越大,则系统阈值所表征的数据传输速率越大。例如,系统阈值为带宽阈值,用于指示园区网已使用的带宽的阈值,则步骤S202的具体实现方式可以是,当实际带宽大于或等于系统阈值时,对来自运营商网络的TCP报文进行丢包处理。示例性地,签约带宽为100Mb/s,系统阈值为90Mb/s,当实时带宽大于或等于90Mb/s,对来自运营商网络的TCP报文进行丢包处理。It can be understood that in some embodiments, if the system threshold is larger, the data transmission rate represented by the system threshold is larger. For example, the system threshold is a bandwidth threshold, which is used to indicate the bandwidth used by the campus network. The specific implementation of step S202 may be: when the actual bandwidth is greater than or equal to the system threshold, the TCP packets from the operator network are processed. Packet loss handling. For example, the contracted bandwidth is 100Mb/s and the system threshold is 90Mb/s. When the real-time bandwidth is greater than or equal to 90Mb/s, TCP packets from the operator network are discarded.
在一些实施例中,若系统阈值越大,则系统阈值所表征的数据传输速率越小。例如,系统阈值为未使用的带宽阈值,用于指示园区网未使用的带宽的阈值。则步骤S202的具体实现方式可以是,当签约带宽与实际带宽的差值的绝对值小于或等于系统阈值时,对来自运营商网络的TCP报文进行丢包处理。示例性地,签约带宽为100Mb/s,系统阈值为10Mb/s,当实时带宽为91Mb/s,签约带宽与实际带宽的差值的绝对值为9Mb/s且小于系统阈值,则对来自运营商网络的TCP报文进行丢包处理。 In some embodiments, if the system threshold is larger, the data transmission rate represented by the system threshold is smaller. For example, the system threshold is the unused bandwidth threshold, which indicates the unused bandwidth of the campus network. The specific implementation of step S202 may be: when the absolute value of the difference between the contracted bandwidth and the actual bandwidth is less than or equal to the system threshold, packet loss processing is performed on the TCP packets from the operator network. For example, the contracted bandwidth is 100Mb/s and the system threshold is 10Mb/s. When the real-time bandwidth is 91Mb/s and the absolute value of the difference between the contracted bandwidth and the actual bandwidth is 9Mb/s and less than the system threshold, then the operator will TCP packets on the commercial network are discarded.
综上,当系统阈值越大,系统阈值所表征的数据传输速率越小时,入口设备110与运营商网络之间的实时带宽所表征的数据传输速率大于或等于预设的系统阈值所表征的数据传输速率,为:实际带宽大于或等于系统阈值。当系统阈值越大,系统阈值所表征的数据传输速率越小时,入口设备与所述运营商网络之间的实时带宽所表征的数据传输速率大于或等于预设的系统阈值所表征的数据传输速率,为:签约带宽与所述实际带宽的差值的绝对值小于或等于系统阈值。To sum up, when the system threshold is larger and the data transmission rate represented by the system threshold is smaller, the data transmission rate represented by the real-time bandwidth between the entrance device 110 and the operator network is greater than or equal to the data represented by the preset system threshold. The transmission rate is: the actual bandwidth is greater than or equal to the system threshold. When the system threshold is larger and the data transmission rate represented by the system threshold is smaller, the data transmission rate represented by the real-time bandwidth between the entrance device and the operator network is greater than or equal to the data transmission rate represented by the preset system threshold. , means: the absolute value of the difference between the contracted bandwidth and the actual bandwidth is less than or equal to the system threshold.
可以理解,在一些实施例中,当园区网的入口设备110的实时带宽所表征的数据传输速率大于或等于系统阈值所表征的数据传输速率时,为保证园区网内业务可正常进行,入口设备110的包转发性能所表征的数据传输速率为大于签约带宽所表征的数据传输速率。其中,包转发性能用于指示入口设备110的数据转发能力。It can be understood that in some embodiments, when the data transmission rate represented by the real-time bandwidth of the entrance device 110 of the campus network is greater than or equal to the data transmission rate represented by the system threshold, in order to ensure that services in the campus network can be performed normally, the entrance device The data transmission rate represented by the packet forwarding performance of 110 is greater than the data transmission rate represented by the contracted bandwidth. The packet forwarding performance is used to indicate the data forwarding capability of the ingress device 110 .
在一实施例中,请参见图3,对来自运营商网络的TCP报文进行丢包处理具体包括:In one embodiment, please refer to Figure 3. Packet loss processing for TCP packets from the operator network specifically includes:
S301、获取来自运营商网络的TCP报文的优先级信息。S301. Obtain priority information of TCP packets from the operator network.
其中,优先级信息用于指示多个不同的TCP报文的优先级别或者重要程度。Among them, the priority information is used to indicate the priority or importance of multiple different TCP messages.
可以理解,园区网与运营商网络之间传输的数据包括TCP报文和非TCP报文(例如UDP报文)。需要说明的是,本申请实施例中的入口设备110仅对接收到的TCP报文进行处理,其他非TCP报文会直接向对应的客户端转发,不做丢包处理。It can be understood that the data transmitted between the campus network and the operator network includes TCP packets and non-TCP packets (such as UDP packets). It should be noted that the entrance device 110 in the embodiment of this application only processes the received TCP packets, and other non-TCP packets will be directly forwarded to the corresponding client without packet loss processing.
可以理解,由于入口设备110接收的来自运营商网络的多个TCP报文对应不同的客户端,即入口设备110是将TCP报文向对应的客户端进行转发。如此,可通过客户端的优先级信息确定每个客户端对应的TCP报文的优先级信息。示例性地,优先级信息包括低优先级和高优先级。以图1为例,假设园区网中的客户端2、客户端3及客户端4为低优先级,客户端1为高优先级,则客户端1对应的TCP报文的优先级大于客户端2、客户端3及客户端4对应的TCP报文的优先级。It can be understood that since the multiple TCP messages received by the portal device 110 from the operator network correspond to different clients, that is, the portal device 110 forwards the TCP messages to the corresponding clients. In this way, the priority information of the TCP packet corresponding to each client can be determined through the priority information of the client. Illustratively, the priority information includes low priority and high priority. Take Figure 1 as an example. Assume that Client 2, Client 3 and Client 4 in the campus network have low priority and Client 1 has high priority. Then the priority of the TCP packet corresponding to Client 1 is greater than that of the client. 2. The priorities of the TCP packets corresponding to client 3 and client 4.
在一些实施例中,S301中获取来自运营商网络的TCP报文的优先级信息,包括:In some embodiments, obtaining priority information of TCP packets from the operator network in S301 includes:
获取来自运营商网络的TCP报文的报文标识;Obtain the message ID of TCP messages from the operator network;
依据报文标识确定对应的TCP报文的优先级信息。Determine the priority information of the corresponding TCP message based on the message identifier.
具体地,入口设备110接收运营商网络发送的多个TCP报文,接着获取每个TCP报文对应的报文标识,并依据报文标识确定每个TCP报文对应的优先级。Specifically, the portal device 110 receives multiple TCP messages sent by the operator network, then obtains the message identifier corresponding to each TCP message, and determines the priority corresponding to each TCP message based on the message identifier.
可以理解,在本申请实施例中,报文标识用于标识TCP报文或用户使用的客户端,如此可通过报文标识建立TCP报文与客户端之间的关联关系。It can be understood that in the embodiment of the present application, the message identifier is used to identify the TCP message or the client used by the user, so that the association between the TCP message and the client can be established through the message identifier.
可以理解,报文标识可为IP地址或MAC地址。其中,若报文标识为IP地址,则该IP地址可为客户端的IP地址。当然,报文标识还可为其他参数,例如用户自定义的参数或TCP报文中目的地端口号,在此不作具体限定,仅需确保该参数可唯一标识TCP报文和用户使用的客户端即可。It can be understood that the message identifier can be an IP address or a MAC address. Wherein, if the packet identifier is an IP address, the IP address may be the IP address of the client. Of course, the message identifier can also be other parameters, such as user-defined parameters or the destination port number in the TCP message. There is no specific limit here. It only needs to ensure that the parameter can uniquely identify the TCP message and the client used by the user. That’s it.
在一些实施例中,入口设备110中存储有第一对应关系。第一对应关系包括报文标识以及每个报文标识对应的优先级信息。对应地,依据报文标识确定对应的TCP报文的优先级信息包括:In some embodiments, the first correspondence relationship is stored in the portal device 110 . The first correspondence relationship includes message identifiers and priority information corresponding to each message identifier. Correspondingly, the priority information of the corresponding TCP message determined based on the message identifier includes:
依据报文标识和第一对应关系确定TCP报文的优先级信息。Determine the priority information of the TCP message based on the message identifier and the first corresponding relationship.
具体地,入口设备110将该报文标识与第一对应关系中的报文标识进行匹配,以获得该TCP报文对应的优先级信息。Specifically, the portal device 110 matches the message identifier with the message identifier in the first correspondence relationship to obtain the priority information corresponding to the TCP message.
在其他实施例中,入口设备110还可通过其他方式获取对应TCP报文的优先级信息,例 如通过机器学习算法训练识别模型,向识别模型识别输入TCP报文,识别模型输出TCP报文的优先级信息。In other embodiments, the portal device 110 can also obtain the priority information of the corresponding TCP packet through other methods, such as For example, a recognition model is trained through a machine learning algorithm, TCP packets are input to the recognition model, and the recognition model outputs the priority information of the TCP packets.
S302、依据优先级信息对TCP报文进行差异化丢包处理。S302. Perform differentiated packet loss processing on TCP packets based on priority information.
可以理解,园区网被多个用户共同使用时,不同用户通过园区网执行不同类型的业务、或不同用户具有不同的用户身份,导致不同用户具有不同的优先级,从而使多个用户使用的客户端具有不同优先级。如此,可依据优先级信息对多个TCP报文进行差异化丢包处理,即可依据用户的优先级或用户执行业务的重要程度对相关用户的TCP报文采用不同的处理方式。例如,在带宽受限的情况下,对非重要用户的TCP报文进行丢包,对重要用户的TCP报文不进行丢包,从而使园区网与运营商网络之间的实时带宽在入口设备110与运营商网络之间的签约带宽的范围内,避免园区网发生网络拥塞。另外,通过对重要用户对应的TCP报文不执行丢包或对重要用户执行丢包的丢包率小于对普通用户执行丢包的丢包率,从而可在园区网带宽受限的场景下保证重要用户(或优先级较高的用户)的使用体验。It can be understood that when the campus network is used by multiple users, different users perform different types of services through the campus network, or different users have different user identities, resulting in different users having different priorities, thus making the customers used by multiple users terminals have different priorities. In this way, differential packet loss processing can be performed on multiple TCP packets based on priority information, and TCP packets of relevant users can be processed in different ways based on the user's priority or the importance of the user's service execution. For example, when bandwidth is limited, packets are dropped for TCP packets of non-important users, but TCP packets of important users are not dropped, so that the real-time bandwidth between the campus network and the operator network is limited by the ingress device. 110 and the operator's network to avoid network congestion in the campus network. In addition, by not performing packet loss on TCP packets corresponding to important users or performing packet loss on important users, the packet loss rate is lower than the packet loss rate on ordinary users, thereby ensuring that the campus network bandwidth is limited. The experience of important users (or users with higher priority).
例如,请参见图1,假设客户端2、客户端3及客户端4的优先级相等,且客户端1对应的TCP报文的优先级大于客户端2、客户端3及客户端4对应的TCP报文的优先级,则入口设备110仅对客户端2、客户端3及客户端4对应的TCP报文进行丢包处理,对客户端1的TCP报文不进行丢包处理。For example, please refer to Figure 1. Assume that the priorities of Client 2, Client 3 and Client 4 are equal, and the priority of the TCP packet corresponding to Client 1 is greater than that of Client 2, Client 3 and Client 4. According to the priority of the TCP packet, the entrance device 110 only performs packet loss processing on the TCP packets corresponding to client 2, client 3 and client 4, but does not perform packet loss processing on the TCP packet of client 1.
下面结合实施例1及实施例2详细介绍S302。S302 will be described in detail below with reference to Embodiment 1 and Embodiment 2.
实施例1:Example 1:
在实施例1中,S302中,依据优先级信息对TCP报文进行差异化丢包处理,包括:In Embodiment 1, in S302, differentiated packet loss processing is performed on TCP packets based on priority information, including:
依据优先级信息确定该TCP报文中的待处理报文,对待处理报文进行丢包处理。其中,待处理报文的优先级低于来自运营商网络的TCP报文中其余TCP报文的优先级。The packets to be processed in the TCP packet are determined based on the priority information, and the packets to be processed are discarded. Among them, the priority of the packet to be processed is lower than the priority of other TCP packets in the TCP packets from the operator network.
具体地,入口设备110依据优先级信息将来自运营商网络的TCP报文分为待处理报文和正常处理报文。待处理报文的优先级低于正常处理报文的优先级。入口设备110对待处理报文进行丢包处理,并正常转发正常处理报文。如此,入口设备110通过对不同优先级信息对应的TCP报文进行不同的丢包处理方式,以实现对TCP报文进行差异化丢包处理。Specifically, the portal device 110 divides TCP packets from the operator network into pending packets and normal processing packets based on priority information. The priority of packets to be processed is lower than the priority of normally processed packets. The entrance device 110 performs packet loss processing on the packets to be processed, and forwards the normally processed packets normally. In this way, the entrance device 110 implements differentiated packet loss processing on TCP messages by performing different packet loss processing methods on TCP messages corresponding to different priority information.
示例性地,入口设备110接收来自运营商网络的70个TCP报文:报文1至报文70。接着,入口设备110获取70个TCP报文的优先级信息之后判定:报文1至报文10的优先级高于报文11至报文70的优先级,则入口设备110将报文1至报文10正常转发至对应的客户端,并依据预设的丢包参数(例如丢包参数为丢包率)对报文11至报文70进行丢包处理。Illustratively, the ingress device 110 receives 70 TCP packets: Message 1 to Message 70 from the operator network. Next, the portal device 110 obtains the priority information of 70 TCP packets and determines that the priorities of packets 1 to 10 are higher than the priorities of packets 11 to 70. Then the portal device 110 sends packets 1 to 70. Message 10 is forwarded to the corresponding client normally, and packets 11 to 70 are discarded according to the preset packet loss parameters (for example, the packet loss parameter is the packet loss rate).
可以理解,在另外的实施例中,若待处理报文包括多个TCP报文,多个TCP报文具有多个优先级信息,且入口设备110中存储有待处理报文的优先级信息与丢包参数之间的第二对应关系。则,对待处理报文进行丢包处理可包括:It can be understood that in other embodiments, if the message to be processed includes multiple TCP messages, the multiple TCP messages have multiple priority information, and the priority information and loss information of the message to be processed are stored in the entrance device 110. Second correspondence between package parameters. Then, packet loss processing for the packets to be processed may include:
依据待处理报文的优先级信息和第二对应关系确定待处理报文的丢包参数;Determine the packet loss parameters of the to-be-processed message based on the priority information of the to-be-processed message and the second corresponding relationship;
依据丢包参数对待处理中的多个TCP报文进行丢包处理。Perform packet loss processing on multiple TCP packets to be processed according to the packet loss parameters.
具体地,待处理报文中多个TCP报文具有不同的优先级,入口设备110可依据不同优先级的TCP报文设置不同的丢包率,并依据丢包率对对应的TCP报文进行丢包处理。示例性地,待处理报文包括60个TCP报文:TCP报文11至TCP报文70,其中,TCP报文11至TCP报文30的优先级最高,TCP报文31至TCP报文50的优先级次之,TCP报文51至TCP报文70的优先级最低。入口设备110依据优先级信息和第二对应关系确定TCP报文11至TCP报文30的丢包率为10%,TCP报文31至TCP报文的丢包率为15%,TCP报文51至TCP报 文70的丢包率为20%,接着依据丢包率对对应的TCP报文进行丢包处理。Specifically, multiple TCP messages in the messages to be processed have different priorities. The ingress device 110 can set different packet loss rates according to the TCP messages of different priorities, and perform processing on the corresponding TCP messages according to the packet loss rates. Packet loss handling. For example, the messages to be processed include 60 TCP messages: TCP message 11 to TCP message 70, among which TCP message 11 to TCP message 30 have the highest priority, and TCP message 31 to TCP message 50 The priority of TCP packet 51 to TCP packet 70 is the lowest. The entrance device 110 determines based on the priority information and the second corresponding relationship that the packet loss rate of TCP message 11 to TCP message 30 is 10%, the packet loss rate of TCP message 31 to TCP message is 15%, and the packet loss rate of TCP message 51 Report to TCP The packet loss rate of message 70 is 20%, and then the corresponding TCP packet is discarded according to the packet loss rate.
其中,丢包参数可为丢包率。当然,在其他实施例中,丢包参数还可为丢包个数。Among them, the packet loss parameter may be the packet loss rate. Of course, in other embodiments, the packet loss parameter may also be the number of packets lost.
可以理解,丢包参数可为用户预先设置在入口设备110中。当然,在其他实施例中,可以依据园区网与运营商网络的网络状态确定丢包参数。It can be understood that the packet loss parameters can be preset in the entrance device 110 for the user. Of course, in other embodiments, the packet loss parameter may be determined based on the network status of the campus network and the operator network.
实施例2:Example 2:
在实施例2中,入口设备110接收来自运营商网络的TCP报文包括多种TCP报文,例如每种TCP报文对应一个客户端。则,S302中依据优先级信息对来自运营商网络的TCP报文进行差异化丢包处理,包括:In Embodiment 2, the TCP packets received by the portal device 110 from the operator network include multiple TCP packets, for example, each TCP packet corresponds to a client. Then, in S302, differentiated packet loss processing is performed on the TCP packets from the operator network based on the priority information, including:
依据优先级信息确定TCP报文的丢包参数;Determine the packet loss parameters of TCP packets based on priority information;
依据丢包参数对来自运营商网络的TCP报文进行丢包处理;Packet loss processing is performed on TCP packets from the operator network based on packet loss parameters;
其中,不同优先级信息的TCP报文具有不同的丢包参数。Among them, TCP packets with different priority information have different packet loss parameters.
具体地,入口设备110对来自运营商网络的所有的TCP报文均进行丢包处理,且对不同优先级信息的TCP报文进行不同的丢包处理。即入口设备110依据优先级信息获取每种TCP报文对应的丢包参数,由于不同优先级的TCP报文具有不同的丢包参数,入口设备110依据丢包参数对对应的种类的多个TCP报文进行丢包处理。Specifically, the entrance device 110 performs packet loss processing on all TCP messages from the operator network, and performs different packet loss processing on TCP messages with different priority information. That is, the ingress device 110 obtains the packet loss parameters corresponding to each type of TCP message based on the priority information. Since TCP messages of different priorities have different packet loss parameters, the ingress device 110 determines the corresponding types of multiple TCP packets based on the packet loss parameters. The packets are discarded.
示例性地,丢包参数为丢包率,入口设备接收来自运营商网络发送的60个TCP报文:TCP报文11至TCP报文70,其中,TCP报文11至TCP报文30的优先级最高,TCP报文31至TCP报文50的优先级次之,TCP报文51至TCP报文70的优先级最低,入口设备依据优先级信息确定TCP报文11至TCP报文30的丢包率为10%,TCP报文31至TCP报文的丢包率为15%,TCP报文51至TCP报文70的丢包率为20%,入口设备110依据丢包率对对应的TCP报文进行丢包处理。当然,在其他实施例中,若入口设备依据优先级信息确定TCP报文11至TCP报文30的丢包率为0%,TCP报文31至TCP报文的丢包率为15%,TCP报文51至TCP报文70的丢包率为20%,则入口设备对TCP报文11至TCP报文30不做丢包处理。For example, the packet loss parameter is the packet loss rate. The ingress device receives 60 TCP messages sent from the operator network: TCP message 11 to TCP message 70, where the priority of TCP message 11 to TCP message 30 is The priority of TCP message 31 to TCP message 50 is the highest, and the priority of TCP message 51 to TCP message 70 is the lowest. The entrance device determines the loss of TCP message 11 to TCP message 30 based on the priority information. The packet rate is 10%, the packet loss rate from TCP packet 31 to TCP packet 70 is 15%, the packet loss rate from TCP packet 51 to TCP packet 70 is 20%, the entrance device 110 calculates the corresponding TCP packet loss rate based on the packet loss rate. The packets are discarded. Of course, in other embodiments, if the ingress device determines that the packet loss rate of TCP packets 11 to TCP packets 30 is 0% and the packet loss rate of TCP packets 31 to TCP packets is 15%, the TCP The packet loss rate of packet 51 to TCP packet 70 is 20%, so the ingress device does not perform packet loss processing on TCP packet 11 to TCP packet 30.
可以理解,在一些实施例中,入口设备110中预设有丢包滑动窗口。其中丢包滑动窗口的大小可由用户预先设置,也可依据园区网的网络状态(例如实时网速)确定。对应地,入口设备110可依据丢包滑动窗口对来自运营商网络的TCP报文进行丢包处理。具体地,实施例1及实施例2中,依据丢包参数对来自运营商网络的TCP报文进行丢包处理,包括:It can be understood that in some embodiments, the packet loss sliding window is preset in the ingress device 110 . The size of the packet loss sliding window can be preset by the user, or can be determined based on the network status of the campus network (such as real-time network speed). Correspondingly, the ingress device 110 can perform packet loss processing on TCP packets from the operator network according to the packet loss sliding window. Specifically, in Embodiment 1 and Embodiment 2, packet loss processing is performed on TCP messages from the operator network based on packet loss parameters, including:
依据丢包参数和丢包滑动窗口对来自运营商网络的TCP报文进行丢包处理。Packet loss processing is performed on TCP packets from the operator network based on the packet loss parameters and packet loss sliding window.
示例性地,请参见图4,假设丢包滑动窗口的大小为10个TCP报文,丢包参数为丢包个数,丢包个数为3个。因此,当入口设备110接收到来自运营商网络的10个TCP报文时,会根据丢包滑动窗口和丢包参数(3个)随机丢弃其中3个TCP报文(如图4中黑色方框所示)。For example, see Figure 4, assuming that the size of the packet loss sliding window is 10 TCP packets, the packet loss parameter is the number of packets lost, and the number of packets lost is 3. Therefore, when the ingress device 110 receives 10 TCP packets from the operator network, 3 of the TCP packets will be randomly discarded according to the packet loss sliding window and packet loss parameters (3) (as shown in the black box in Figure 4 shown).
当然,在其他实施例中,若入口设备110仅对来自运营商网络的TCP报文中的待处理报文进行丢包,则入口设备110每次接收丢包滑动窗口大小的待处理报文,依据丢包滑动窗口大小的待处理报文进行丢包处理。示例性地,丢包滑动窗口的大小为10个TCP报文,丢包参数为丢包个数,丢包个数为3个,入口设备110接收到来自运营商网络的50个TCP报文,其每次接收10个待处理报文,并对待处理报文进行丢包处理,即随机丢弃待处理报文中的3个TCP报文。Of course, in other embodiments, if the ingress device 110 only discards packets to be processed in TCP packets from the operator network, then the ingress device 110 receives the packets to be processed in the size of the packet loss sliding window each time. Packet loss processing is performed based on the size of the packet loss sliding window to be processed. For example, the size of the packet loss sliding window is 10 TCP packets, the packet loss parameter is the number of packets lost, and the number of packets lost is 3. The entrance device 110 receives 50 TCP packets from the operator network, It receives 10 packets to be processed each time and discards the packets to be processed, that is, randomly discards 3 TCP packets in the packets to be processed.
可以理解,请再次参阅图2,入口设备110对来自运营商网络的TCP报文进行预设时间 的丢包处理之后,或对来自运营商网络的预设大小(例如10MB)的TCP报文进行丢包处理之后,网络拥塞控制方法还包括:Understandably, please refer to Figure 2 again. The entrance device 110 presets the time for TCP messages from the operator network. After packet loss processing, or after packet loss processing of TCP packets with a preset size (for example, 10MB) from the operator network, the network congestion control method also includes:
获取入口设备110与运营商网络之间的实时带宽;Obtain the real-time bandwidth between the portal device 110 and the operator's network;
若入口设备110的实时带宽所表征的数据传输速率大于或等于系统阈值所表征的数据传输速率,则对后续接收的来自运营商网络的TCP报文进行丢包处理,并检测丢包处理后的入口设备110与运营商网络之间的实时带宽;若入口设备110的实时带宽所表征的数据传输速率大于或等于系统阈值所表征的数据传输速率,则对后续接收的来自运营商网络的TCP报文进行丢包处理,依次循环,直至入口设备110与运营商网络之间的实时带宽所表征的数据传输速率小于系统阈值所表征的数据传输速率。即,不再对后续接收的来自运营商网络的TCP报文做丢包处理。If the data transmission rate represented by the real-time bandwidth of the ingress device 110 is greater than or equal to the data transmission rate represented by the system threshold, packet loss processing is performed on the subsequently received TCP messages from the operator network, and the packet loss processing is detected. The real-time bandwidth between the portal device 110 and the operator network; if the data transmission rate represented by the real-time bandwidth of the portal device 110 is greater than or equal to the data transmission rate represented by the system threshold, the subsequently received TCP packets from the operator network Packet loss processing is performed, and the cycle is repeated until the data transmission rate represented by the real-time bandwidth between the ingress device 110 and the operator's network is less than the data transmission rate represented by the system threshold. That is, subsequent TCP packets received from the operator network will no longer be discarded.
可以理解,在一些实施例中,依据丢包参数对来自运营商网络的TCP报文进行丢包处理包括:It can be understood that in some embodiments, packet loss processing of TCP packets from the operator network according to packet loss parameters includes:
接收来自运营商网络的丢包滑动窗口大小的TCP报文;Receive TCP packets with the size of the packet loss sliding window from the operator network;
依据丢包参数对丢包滑动窗口大小的TCP报文进行丢包处理;Packet loss processing is performed on TCP packets with the size of the packet loss sliding window according to the packet loss parameters;
若入口设备110和运营商网络之间的实时带宽所表征的数据传输速率大于或等于系统阈值所表征的数据传输速率,逐步增大丢包参数,并依据增大后的丢包参数对接收的丢包滑动窗口大小的TCP报文进行丢包,直到入口设备110和运营商网络之间的实时带宽所表征的数据传输速率小于系统阈值所表征的数据传输速率。If the data transmission rate represented by the real-time bandwidth between the entrance device 110 and the operator's network is greater than or equal to the data transmission rate represented by the system threshold, the packet loss parameter is gradually increased, and the received packet loss parameter is processed based on the increased packet loss parameter. TCP packets with the size of the packet loss sliding window are discarded until the data transmission rate represented by the real-time bandwidth between the ingress device 110 and the operator network is less than the data transmission rate represented by the system threshold.
可以理解,若来自运营商网络的TCP报文的丢包参数为固定不变的,则入口设备110依据该丢包参数对来自运营商网络的TCP报文进行丢包处理之后,入口设备110再次获取入口设备110与运营商网络之间的实时带宽。若入口设备110确定该实时带宽所表征的数据传输速率仍然大于系统阈值所表征的数据传输速率,则入口设备110可通过逐步增大丢包处理对应的丢包参数,并依据增大后的丢包参数对对新接收的TCP报文进行丢包处理,以实现对入口设备110与运营商网络之间的快速增大的实时带宽进行快速调整。It can be understood that if the packet loss parameters of TCP packets from the operator network are fixed, then the ingress device 110 performs packet loss processing on the TCP packets from the operator network based on the packet loss parameters, and then the ingress device 110 again Obtain the real-time bandwidth between the portal device 110 and the operator network. If the ingress device 110 determines that the data transmission rate represented by the real-time bandwidth is still greater than the data transmission rate represented by the system threshold, the ingress device 110 can gradually increase the packet loss parameter corresponding to the packet loss process, and based on the increased loss The packet parameter performs packet loss processing on newly received TCP packets to achieve rapid adjustment of the rapidly increasing real-time bandwidth between the ingress device 110 and the operator network.
另外,入口设备110通过逐步增大丢包处理对应的丢包参数,可实现将入口设备110和运营商网络之间的实时带宽所表征的数据传输速率快速降低至小于系统阈值所表征的数据传输速率。In addition, by gradually increasing the packet loss parameters corresponding to the packet loss processing, the ingress device 110 can rapidly reduce the data transmission rate represented by the real-time bandwidth between the ingress device 110 and the operator's network to a data transmission rate represented by the system threshold. rate.
示例性地,假设丢包滑动窗口为20个TCP报文,丢包参数为丢包个数,且丢包个数为4个。若入口设备110接收到来自运营商网络的20个TCP报文,入口设备110丢弃20个TCP报文中的4个TCP报文之后,获取入口设备110与运营商网络的实时带宽。若实时带宽所表征的数据传输速率仍大于或等于系统阈值所表征的数据传输速率,则将丢包个数增加为8个,然后接收到来自运营商网络的20个TCP报文,入口设备110丢弃20个TCP报文中的8个TCP报文之后,再次获取入口设备110与外部网络的实时带宽。若实时带宽所表征的数据传输速率仍大于或等于系统阈值所表征的数据传输速率,则继续增大丢包个数,直到实时带宽所表征的数据传输速率小于系统阈值所表征的数据传输速率。如此,在对接收到的TCP报文进行丢包以降低入口设备110与运营商网络之间的实时带宽时,通过逐步增大丢包参数,以实现快速降低实时带宽,避免园区网的实时带宽超过签约带宽。For example, assume that the packet loss sliding window is 20 TCP packets, the packet loss parameter is the number of packets lost, and the number of packets lost is 4. If the portal device 110 receives 20 TCP packets from the operator network, the portal device 110 discards 4 TCP packets among the 20 TCP packets, and then obtains the real-time bandwidth between the portal device 110 and the operator network. If the data transmission rate represented by the real-time bandwidth is still greater than or equal to the data transmission rate represented by the system threshold, the number of lost packets is increased to 8, and then 20 TCP messages from the operator network are received, and the ingress device 110 After discarding 8 TCP packets among the 20 TCP packets, the real-time bandwidth between the ingress device 110 and the external network is obtained again. If the data transmission rate represented by the real-time bandwidth is still greater than or equal to the data transmission rate represented by the system threshold, continue to increase the number of lost packets until the data transmission rate represented by the real-time bandwidth is less than the data transmission rate represented by the system threshold. In this way, when the received TCP packets are dropped to reduce the real-time bandwidth between the entrance device 110 and the operator network, the packet loss parameters are gradually increased to quickly reduce the real-time bandwidth and avoid the real-time bandwidth of the campus network. Exceeding the contracted bandwidth.
在本申请实施例中,入口设备110可通过倍增法逐步增大丢包参数。示例性地,假设丢包参数为丢包个数drop,当初次获取入口设备110与运营商网络的实时带宽时,drop=0,step=1。其中,step为入口设备110初次检测入口设备110与运营商网络之间的实时带宽。当入 口设备110与运营商网络之间的实时带宽所表征的数据传输速率大于系统阈值所表征的数据传输速率时,入口设备110可依据以下倍增代码实现丢包个数依次增大:
threshold=drop;
drop=drop+step;
step=step*2;
In this embodiment of the present application, the entrance device 110 can gradually increase the packet loss parameter through a doubling method. For example, assuming that the packet loss parameter is the number of lost packets drop, when the real-time bandwidth of the entrance device 110 and the operator network is obtained for the first time, drop=0 and step=1. Among them, step is the first time the portal device 110 detects the real-time bandwidth between the portal device 110 and the operator's network. When entering When the data transmission rate represented by the real-time bandwidth between the ingress device 110 and the operator's network is greater than the data transmission rate represented by the system threshold, the ingress device 110 can increase the number of lost packets sequentially according to the following multiplication code:
threshold=drop;
drop=drop+step;
step=step*2;
其中,threshold可为入口设备100预设的丢包参数,丢包参数可为丢包率或丢包个数。Among them, threshold can be the packet loss parameter preset by the entrance device 100, and the packet loss parameter can be the packet loss rate or the number of packets lost.
然后,入口设备110依据逐步增大的丢包个数对来自运营商网络的丢包滑动窗口的TCP报文进行丢包处理,直到入口设备110检测到入口设备与运营商网络之间的实时带宽所表征的数据传输速率小于系统阈值所表征的数据传输速率。Then, the ingress device 110 performs packet loss processing on the TCP packets from the packet loss sliding window of the operator network according to the gradually increasing number of lost packets, until the ingress device 110 detects the real-time bandwidth between the ingress device and the operator network. The data transfer rate characterized is less than the data transfer rate characterized by the system threshold.
当然,在其他实施例中,入口设备110可采取其他增大丢包参数的方法,本申请对此不作限制。Of course, in other embodiments, the entrance device 110 may adopt other methods of increasing packet loss parameters, and this application does not limit this.
可以理解,在其他实施例中,在入口设备110与运营商网络之间的实时带宽所表征的数据传输速率由大于或等于系统阈值所表征的数据传输速率变更为小于系统阈值所表征的数据传输速率时,网络拥塞控制方法还包括:It can be understood that in other embodiments, the data transmission rate represented by the real-time bandwidth between the ingress device 110 and the operator network is changed from a data transmission rate represented by being greater than or equal to the system threshold to a data transmission rate represented by being less than the system threshold. When the rate is reduced, network congestion control methods also include:
逐步减小丢包参数,并依据减小后的丢包参数对丢包滑动窗口的TCP报文进行丢包处理,直到丢包参数变为0。Gradually reduce the packet loss parameter, and perform packet loss processing on TCP packets in the packet loss sliding window based on the reduced packet loss parameter until the packet loss parameter becomes 0.
示例性地,入口设备110可通过二分法逐步减小丢包参数,即通过将丢包参数除以2,以得到原来丢包参数的一半,并依据减小后的丢包参数对丢包滑动窗口的TCP报文进行丢包处理,直至丢包参数减小为0,则此时对来自运营商网络的所有TCP报文均不作丢包处理。For example, the ingress device 110 can gradually reduce the packet loss parameter through the dichotomy method, that is, divide the packet loss parameter by 2 to obtain half of the original packet loss parameter, and slide the packet loss based on the reduced packet loss parameter. TCP packets in the window are discarded until the packet loss parameter is reduced to 0. At this time, all TCP packets from the operator network are not discarded.
可以理解,入口设备110可以采用其他丢包参数减小的方法,本申请对此不作限制。It can be understood that the entrance device 110 can adopt other methods of reducing packet loss parameters, and this application does not limit this.
可以理解,在上述实施例中,通过逐步增大丢包参数,直至丢包参数增大至目标丢包参数时,当依据目标丢包参数对来自运营商网络的TCP报文进行丢包处理且入口设备110和运营商网络之间的实时带宽所表征的数据传输速率小于系统阈值所表征的数据传输速率之后,通过逐步减小丢包参数,并依据减小后的丢包参数进行丢包处理,并检测丢包处理后的实时带宽与系统阈值所表征的数据传输速率的关系,若入口设备110和运营商网络之间的实时带宽所表征的数据传输速率仍小于系统阈值所表征的数据传输速率,则再次减小丢包参数,并依据减小后的丢包参数进行丢包处理,依次循环,直至丢包参数为0,则停止丢包处理或若入口设备110和运营商网络之间的实时带宽所表征的数据传输速率大于系统阈值所表征的数据传输速率,则逐步增大丢包参数,并依据增大后的丢包参数进行丢包处理。It can be understood that in the above embodiment, by gradually increasing the packet loss parameter until the packet loss parameter increases to the target packet loss parameter, when the TCP packets from the operator network are packet dropped according to the target packet loss parameter and After the data transmission rate represented by the real-time bandwidth between the entrance device 110 and the operator's network is less than the data transmission rate represented by the system threshold, the packet loss parameters are gradually reduced, and packet loss processing is performed based on the reduced packet loss parameters. , and detect the relationship between the real-time bandwidth after packet loss processing and the data transmission rate represented by the system threshold. If the data transmission rate represented by the real-time bandwidth between the entrance device 110 and the operator network is still less than the data transmission rate represented by the system threshold rate, then reduce the packet loss parameter again, and perform packet loss processing based on the reduced packet loss parameter, and cycle in sequence until the packet loss parameter is 0, then stop packet loss processing or if there is a gap between the entrance device 110 and the operator network If the data transmission rate represented by the real-time bandwidth is greater than the data transmission rate represented by the system threshold, the packet loss parameter will be gradually increased, and packet loss processing will be performed based on the increased packet loss parameter.
在一些实施例中,若依据减小后的丢包参数对来自运营商网络的丢包滑动窗口的TCP报文进行丢包处理之后,入口设备110与运营商网络之间的实时带宽所表征的数据传输速率再次变更为大于系统阈值所表征的数据传输速率,则入口设备110逐步增大丢包参数,然后依据增大后的丢包参数对来自运营商网络的TCP报文进行丢包处理,然后再依据入口设备110与运营商网络之间的实时带宽所表征的数据传输速率与系统阈值所表征的数据传输速率的关系增大或减小丢包参数,例如,入口设备110与运营商网络之间的实时带宽所表征的数据传输速率再大于系统阈值所表征的数据传输速率,则增大丢包参数,入口设备110与运营商网络之间的实时带宽所表征的数据传输速率再小于系统阈值所表征的数据传输速率,则减小参数,直至丢包参数为0,入口设备110不再对来自运营商网络的TCP报文进行丢包处理。In some embodiments, if the TCP packets from the packet loss sliding window of the operator network are discarded according to the reduced packet loss parameters, the real-time bandwidth between the ingress device 110 and the operator network is represented by If the data transmission rate changes again to a data transmission rate greater than the system threshold, then the ingress device 110 gradually increases the packet loss parameter, and then performs packet loss processing on the TCP packets from the operator network based on the increased packet loss parameter. Then the packet loss parameter is increased or decreased based on the relationship between the data transmission rate represented by the real-time bandwidth between the ingress device 110 and the operator network and the data transmission rate represented by the system threshold. For example, the packet loss parameter is increased or decreased. If the data transmission rate represented by the real-time bandwidth between the ingress device 110 and the operator network is greater than the data transmission rate represented by the system threshold, the packet loss parameter will be increased. If the data transmission rate represented by the real-time bandwidth between the entrance device 110 and the operator network is less than the system If the data transmission rate represented by the threshold is reached, the parameter is reduced until the packet loss parameter is 0, and the ingress device 110 no longer performs packet loss processing on TCP messages from the operator network.
示例性地,请参见图5,图5为入口设备110的丢包参数随时间变化示意图。图6中纵坐标为丢包个数,横纵坐标为时间,在时间为A之前,入口设备110与运营商网络的实时带 宽所表征的数据传输速率小于系统阈值所表征的数据传输速率,入口设备110直接向客户端150转发来自运营商网络的TCP报文,在时间A之后,入口设备110与运营商网络的实时带宽所表征的数据传输速率大于系统阈值所表征的数据传输速率,入口设备100对来自运营商网络的TCP报文进行丢包处理,且逐步增大丢包参数,当到达时间B时,入口设备110与运营商网络的实时带宽所表征的数据传输速率小于系统阈值所表征的数据传输速率,入口设备110逐步减小丢包参数,并依据减小后的丢包参数对来自运营商网络的TCP报文进行丢包处理,当到达时间C时,入口设备110与运营商网络的实时带宽所表征的数据传输速率小于系统阈值所表征的数据传输速率,入口设备110逐步增大丢包参数,并依据增大后的丢包对来自运营商网络的TCP报文进行丢包处理,然后依据入口设备110与运营商网络的实时带宽所表征的数据传输速率与系统阈值所表征的数据传输速率的关系调整丢包参数,并依据调整后的丢包参数对来自运营商网络的TCP报文进行丢包处理,然后入口设备110重复以上步骤,直至丢包参数为0,入口设备110对来自运营商网络的TCP报文不再进行丢包处理。For example, please refer to FIG. 5 , which is a schematic diagram of the packet loss parameters of the ingress device 110 changing over time. In Figure 6, the vertical axis is the number of lost packets, and the horizontal and vertical coordinates are time. Before time A, the real-time bandwidth between the entrance device 110 and the operator's network The data transmission rate represented by the width is less than the data transmission rate represented by the system threshold. The portal device 110 directly forwards the TCP packet from the operator network to the client 150. After time A, the real-time bandwidth of the portal device 110 and the operator network The data transmission rate represented is greater than the data transmission rate represented by the system threshold. The entrance device 100 performs packet loss processing on the TCP messages from the operator network, and gradually increases the packet loss parameters. When time B is reached, the entrance device 110 The data transmission rate represented by the real-time bandwidth of the operator network is less than the data transmission rate represented by the system threshold. The ingress device 110 gradually reduces the packet loss parameter, and responds to the TCP packets from the operator network based on the reduced packet loss parameter. When time C is reached, the data transmission rate represented by the real-time bandwidth of the entrance device 110 and the operator's network is less than the data transmission rate represented by the system threshold, the entrance device 110 gradually increases the packet loss parameter, and based on The increased packet loss is performed on the TCP packets from the operator network, and then adjusted according to the relationship between the data transmission rate represented by the real-time bandwidth of the ingress device 110 and the operator network and the data transmission rate represented by the system threshold. The packet loss parameter is adjusted, and the TCP packets from the operator network are discarded according to the adjusted packet loss parameter. Then the entrance device 110 repeats the above steps until the packet loss parameter is 0. The entrance device 110 processes the packet loss from the operator network. TCP packets are no longer discarded.
请参见6,为本申请实施例提供的入口设备110的状态机。如图6所示,入口设备110包括四种状态:空闲态(idle)、拥塞态(congest)、恢复态(recover)及探测态(probe)。Please refer to 6 for the state machine of the entrance device 110 provided by the embodiment of the present application. As shown in Figure 6, the entrance device 110 includes four states: idle, congestion, recovery, and probe.
其中,如上所述,当入口设备110与运营商网络之间的实时带宽所表征的数据传输速率小于系统阈值所表征的数据传输速率,入口设备110处于空闲态。例如,图6中时间A之前的入口设备110的状态为空闲态。As mentioned above, when the data transmission rate represented by the real-time bandwidth between the portal device 110 and the operator's network is less than the data transmission rate represented by the system threshold, the portal device 110 is in an idle state. For example, the state of the entrance device 110 before time A in FIG. 6 is the idle state.
当入口设备110与运营商网络之间的实时带宽所表征的数据传输速率大于或等于系统阈值所表征的数据传输速率,入口设备110处于拥塞态。例如,图6中时间A之后、时间B之前的入口设备110的状态,时间C之后、时间D之前的入口设备的状态均为拥塞态。When the data transmission rate represented by the real-time bandwidth between the ingress device 110 and the operator's network is greater than or equal to the data transmission rate represented by the system threshold, the ingress device 110 is in a congestion state. For example, in Figure 6, the status of the ingress device 110 after time A and before time B, and the status of the ingress device after time C and before time D are all in the congestion state.
当入口设备110与运营商网络之间的实时带宽所表征的数据传输速率由大于或等于系统阈值所表征的数据传输速率变更为小于系统阈值所表征的数据传输速率,入口设备110处于恢复态。例如,图6中时间B之后、时间C之前的入口设备110的状态为恢复态。When the data transmission rate represented by the real-time bandwidth between the ingress device 110 and the operator's network changes from a data transmission rate greater than or equal to the system threshold to a data transmission rate less than the system threshold, the ingress device 110 is in a recovery state. For example, the state of the entrance device 110 after time B and before time C in FIG. 6 is the recovery state.
当入口设备110与运营商网络之间在拥塞态和恢复态之间来回切换(例如上述实施例中,依据入口设备110与运营商网络的实时带宽所表征的数据传输速率与系统阈值所表征的数据传输速率的关系调整丢包参数,并依据丢包参数对来自运营商网络的TCP报文进行丢包处理),直至找到状态平衡点(例如找到目标丢包参数)时,入口设备110处于探测状态。例如,图6中时间D之后的入口设备110的状态此时,入口设备110持续检测入口设备110与运营商网络之间的实时带宽,当实时带宽变小时,降低丢包参数,当丢包参数为0时,入口设备110由恢复态切换至空闲态。When the entrance device 110 and the operator network switch back and forth between the congestion state and the recovery state (for example, in the above embodiment, the data transmission rate represented by the real-time bandwidth of the entrance device 110 and the operator network and the system threshold The packet loss parameters are adjusted according to the data transmission rate, and the TCP packets from the operator network are discarded according to the packet loss parameters), until the state balance point is found (for example, the target packet loss parameter is found), the entrance device 110 is in the detection state. state. For example, in the state of the entrance device 110 after time D in Figure 6, the entrance device 110 continues to detect the real-time bandwidth between the entrance device 110 and the operator's network. When the real-time bandwidth becomes smaller, the packet loss parameter is reduced. When the packet loss parameter When it is 0, the entrance device 110 switches from the recovery state to the idle state.
请参见图7,图7为入口设备110的模块示意图。入口设备110包括接收入口模块、流量检测模块、反压控制模块、滑窗丢包模块、转发模块、出口转发模块。Please refer to FIG. 7 , which is a schematic diagram of a module of the entrance device 110 . The ingress device 110 includes a receiving ingress module, a traffic detection module, a back pressure control module, a sliding window packet loss module, a forwarding module, and an egress forwarding module.
其中,接收入口模块用于接收来自运营商网络发送的数据。Among them, the receiving entry module is used to receive data sent from the operator's network.
流量检测模块用于检测入口设备110预设时间内的传输的数据量(包括入口设备110接收来自运营商网络的下行数据和入口设备110向运营商网络转发的上行数据),以获取入口设备110与运营商网络之间的实时带宽。The traffic detection module is used to detect the amount of data transmitted by the entrance device 110 within a preset time (including the downlink data received by the entrance device 110 from the operator network and the uplink data forwarded by the entrance device 110 to the operator network), to obtain the data volume of the entrance device 110 Real-time bandwidth to and from the operator's network.
转发模块用于当若入口设备110的实时带宽所表征的数据传输速率小于系统阈值所表征的数据传输速率时,将来自运营商网络发送的数据向出口转发模块转发。The forwarding module is configured to forward the data sent from the operator network to the egress forwarding module when the data transmission rate represented by the real-time bandwidth of the ingress device 110 is less than the data transmission rate represented by the system threshold.
出口转发模块用于将接收到转发模块发送的数据向对应的客户端150转发。The egress forwarding module is used to forward the data sent by the forwarding module to the corresponding client 150 .
若入口设备110的实时带宽所表征的数据传输速率大于或等于系统阈值所表征的数据传 输速率,反压控制模块和滑窗丢包模块配合,以对来自运营商网络的TCP报文进行丢包处理,并将丢包处理后的TCP报文向出口转发模块转发,以便出口转发模块将接收到的数据向对应的客户端150转发。具体地,若入口设备110的实时带宽所表征的数据传输速率大于或等于系统阈值所表征的数据传输速率,反压控制模块用于确定丢包参数(确定丢包参数的方法参见上述实施例),滑窗丢包模块用于依据丢包参数和预设的丢包滑动窗口对来自运营商网络的TCP报文进行丢包处理,并将丢包处理后TCP报文向出口转发模块发送。If the data transmission rate represented by the real-time bandwidth of the entrance device 110 is greater than or equal to the data transmission rate represented by the system threshold, The transmission rate, back pressure control module and sliding window packet loss module cooperate to process the packet loss of TCP packets from the operator network, and forward the packet loss processed TCP packets to the egress forwarding module for the egress forwarding module. Forward the received data to the corresponding client 150. Specifically, if the data transmission rate represented by the real-time bandwidth of the ingress device 110 is greater than or equal to the data transmission rate represented by the system threshold, the backpressure control module is used to determine the packet loss parameter (see the above embodiment for the method of determining the packet loss parameter). , The sliding window packet loss module is used to discard TCP messages from the operator network based on the packet loss parameters and the preset packet loss sliding window, and send the discarded TCP messages to the egress forwarding module.
出口转发模块还用于将滑动丢包模块丢包处理后的TCP报文向对应的客户端150转发。The egress forwarding module is also used to forward the TCP packets processed by the sliding packet loss module to the corresponding client 150 .
可理解地,图7仅作为入口设备110的一种示例,而非限定。入口设备110可以有比图7所示的更多或更少的模块。It can be understood that FIG. 7 is only used as an example of the entrance device 110 and is not limiting. Portal device 110 may have more or fewer modules than shown in FIG. 7 .
接下来请参考图8,图8为本申请实施例提供的入口设备110的结构图。如图8所示,入口设备110包括:处理器10、发送器20、接收器30、存储器40和端口50。存储器40、发送器20和接收器30和处理器10可以通过总线进行连接。当然,在实际运用中,存储器40、发送器20和接收器30和处理器10之间可以不是总线结构,而可以是其它结构,例如星型结构,本申请不作具体限定。Next, please refer to FIG. 8 , which is a structural diagram of the entrance device 110 provided by the embodiment of the present application. As shown in FIG. 8 , the entrance device 110 includes: a processor 10 , a transmitter 20 , a receiver 30 , a memory 40 and a port 50 . The memory 40, the transmitter 20 and the receiver 30 and the processor 10 may be connected via a bus. Of course, in actual application, the memory 40, the transmitter 20, the receiver 30 and the processor 10 may not have a bus structure, but may have other structures, such as a star structure, which is not specifically limited in this application.
可选的,处理器10具体可以是中央处理器、特定应用集成电路(Application Specific Integrated Circuit,ASIC),一个或多个用于控制程序执行的集成电路,使用现场可编程门阵列(Field Programmable Gate Array,FPGA)开发的硬件电路,基带处理器等。Optionally, the processor 10 may be a central processing unit, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), one or more integrated circuits for controlling program execution, and a field programmable gate array (Field Programmable Gate). Array, FPGA) developed hardware circuits, baseband processors, etc.
可选的,处理器10可以包括至少一个处理核心。Optionally, the processor 10 may include at least one processing core.
可选的,存储器40可以包括只读存储器(Read Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)和磁盘存储器。存储器40用于存储处理器10运行时所需的数据。存储器40的数量为一个或多个。Optionally, the memory 40 may include read-only memory (Read Only Memory, ROM), random access memory (Random Access Memory, RAM), and disk memory. The memory 40 is used to store data required when the processor 10 is running. The number of memories 40 is one or more.
可选的,端口50的数量为一个或多个,用于与上层或下层的入口设备110连接。如果入口设备110为连接主机或服务器的入口设备110,如接入交换机或边缘交换机,端口50还用于与主机或服务器连接。Optionally, the number of ports 50 is one or more, used to connect to the entrance device 110 on the upper or lower layer. If the ingress device 110 is an ingress device 110 connected to a host or server, such as an access switch or an edge switch, port 50 is also used to connect to the host or server.
可选的,发送器20和接收器30在物理上可以相互独立也可以集成在一起。发送器20可以通过端口50将数据发送给园区网的转发设备或园区网的客户端。接收器30可以通过端口50接收来自运营商网络发送的数据。Optionally, the transmitter 20 and the receiver 30 may be physically independent of each other or integrated together. The transmitter 20 can send the data to the forwarding device of the campus network or the client of the campus network through port 50. Receiver 30 may receive data sent from the operator's network through port 50.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。这些计算机程序代码可以存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中。Those skilled in the art will understand that embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein. These computer program codes may be stored in computer-readable memory that directs a computer or other programmable data processing device to operate in a particular manner.
本实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在入口设备上运行时,使得入口设备执行上述相关方法步骤实现上述实施例中的网络拥塞控制方法。This embodiment also provides a computer storage medium. Computer instructions are stored in the computer storage medium. When the computer instructions are run on the entrance device, the entrance device performs the above related method steps to implement the network congestion control method in the above embodiment. .
本实施例还提供了一种计算机程序产品,当该计算机程序产品在入口设备上运行时,使得入口设备执行上述相关步骤,以实现上述实施例中的网络拥塞控制方法。This embodiment also provides a computer program product. When the computer program product is run on the ingress device, the ingress device performs the above related steps to implement the network congestion control method in the above embodiment.
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时, 处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的网络拥塞控制方法。In addition, embodiments of the present application also provide a device. This device may be a chip, a component or a module. The device may include a connected processor and a memory. The memory is used to store computer execution instructions. When the device is running, The processor can execute computer execution instructions stored in the memory, so that the chip executes the network congestion control method in each of the above method embodiments.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the above description of the embodiments, those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be allocated as needed. It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其他的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,该模块或模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其他的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the modules or the division of modules are only a logical function division. In actual implementation, there may be other division methods, for example, multiple modules or components may be combined. Either it can be integrated into another device, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or modules, which may be in electrical, mechanical or other forms.
作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是一个物理模块或多个物理模块,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。A module described as a separate component may or may not be physically separate. A component shown as a module may be one physical module or multiple physical modules, that is, it may be located in one place, or it may be distributed to multiple different places. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application can be integrated into one processing module, or each module can exist physically alone, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software function modules.
该集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application are essentially or contribute to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the software product is stored in a storage medium , including several instructions to cause a device (which can be a microcontroller, a chip, etc.) or a processor to execute all or part of the steps of the methods described in various embodiments of this application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code. .
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。 The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be covered by the protection scope of the present application. . Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (16)

  1. 一种网络拥塞控制方法,其特征在于,应用于园区网的入口设备,所述入口设备用于与运营商网络连接,所述网络拥塞控制方法包括:A network congestion control method, characterized in that it is applied to an entrance device of a campus network, and the entrance device is used to connect to an operator's network. The network congestion control method includes:
    获取所述入口设备与所述运营商网络之间的实时带宽;Obtain the real-time bandwidth between the entrance device and the operator network;
    若所述入口设备与所述运营商网络之间的实时带宽所表征的数据传输速率大于或等于预设的系统阈值所表征的数据传输速率,则对来自所述运营商网络的传输控制协议TCP报文进行丢包处理,其中,所述系统阈值依据所述园区网与所述运营商网络的签约带宽获得。If the data transmission rate represented by the real-time bandwidth between the entrance device and the operator network is greater than or equal to the data transmission rate represented by the preset system threshold, then the transmission control protocol TCP from the operator network Packet loss processing is performed on the packets, where the system threshold is obtained based on the contracted bandwidth between the campus network and the operator network.
  2. 如权利要求1所述的网络拥塞控制方法,其特征在于,所述对来自所述运营商网络的TCP报文进行丢包处理,包括:The network congestion control method according to claim 1, wherein the packet loss processing of TCP messages from the operator network includes:
    获取所述TCP报文的优先级信息;Obtain the priority information of the TCP message;
    依据所述优先级信息对来自所述运营商网络的TCP报文进行差异化丢包处理。Perform differentiated packet loss processing on TCP messages from the operator network based on the priority information.
  3. 如权利要求2所述的网络拥塞控制方法,其特征在于,所述获取所述TCP报文的优先级信息包括:The network congestion control method according to claim 2, wherein said obtaining the priority information of the TCP message includes:
    获取所述TCP报文的报文标识,其中,所述报文标识用于标识所述TCP报文;Obtain the message identifier of the TCP message, where the message identifier is used to identify the TCP message;
    依据所述报文标识确定所述TCP报文的优先级信息。Determine the priority information of the TCP message according to the message identifier.
  4. 如权利要求2或3所述的网络拥塞控制方法,其特征在于,所述依据所述优先级信息对来自所述运营商网络的TCP报文进行差异化丢包处理,包括:The network congestion control method according to claim 2 or 3, wherein the differential packet loss processing of TCP messages from the operator network based on the priority information includes:
    依据所述优先级信息确定来自所述运营商网络的TCP报文中的待处理报文;Determine the pending packets in the TCP packets from the operator network according to the priority information;
    对所述待处理报文进行丢包处理,其中,所述待处理报文的优先级低于所述来自所述运营商网络的所有TCP报文中其他TCP报文的优先级。Perform packet loss processing on the packet to be processed, wherein the priority of the packet to be processed is lower than the priority of other TCP packets among all TCP packets from the operator network.
  5. 如权利要求4所述的网络拥塞控制方法,其特征在于,所述待处理报文包括多种TCP报文,所述对所述待处理报文进行丢包处理,包括:The network congestion control method according to claim 4, wherein the packets to be processed include a variety of TCP packets, and the packet loss processing for the packets to be processed includes:
    依据所述待处理报文的优先级信息确定所述待处理报文中每种TCP报文的丢包参数;Determine the packet loss parameters of each TCP message in the to-be-processed message based on the priority information of the to-be-processed message;
    依据所述丢包参数对所述待处理报文中对应的所述TCP报文进行丢包处理。Perform packet loss processing on the corresponding TCP message in the message to be processed according to the packet loss parameter.
  6. 如权利要求2所述的网络拥塞控制方法,其特征在于,所述依据所述优先级信息对来自所述运营商网络的TCP报文进行差异化丢包处理,包括:The network congestion control method according to claim 2, wherein performing differentiated packet loss processing on TCP messages from the operator network based on the priority information includes:
    依据所述优先级信息确定来自所述运营商网络的TCP报文的丢包参数;Determine packet loss parameters of TCP messages from the operator network based on the priority information;
    依据所述丢包参数对来自所述运营商网络的TCP报文进行丢包处理,其中,不同的优先级信息对应不同的丢包参数。Packet loss processing is performed on TCP messages from the operator network according to the packet loss parameters, where different priority information corresponds to different packet loss parameters.
  7. 如权利要求2至6中任一项所述的网络拥塞控制方法,其特征在于,所述入口设备中存储有丢包滑动窗口,所述依据所述优先级信息对来自所述运营商网络的TCP报文进行差异化丢包处理,包括:The network congestion control method according to any one of claims 2 to 6, characterized in that a packet loss sliding window is stored in the entrance device, and the packet loss sliding window from the operator network is stored based on the priority information. Differential packet loss processing is performed on TCP packets, including:
    依据所述丢包滑动窗口对来自所述运营商网络的TCP报文进行差异化丢包处理。Perform differentiated packet loss processing on TCP messages from the operator network according to the packet loss sliding window.
  8. 如权利要求7所述的网络拥塞控制方法,其特征在于,所述依据所述丢包滑动窗口对所述TCP报文进行丢包处理,包括:The network congestion control method according to claim 7, wherein the packet loss processing of the TCP message according to the packet loss sliding window includes:
    接收来自所述运营商网络的所述丢包滑动窗口大小的TCP报文;Receive TCP messages of the packet loss sliding window size from the operator network;
    依据预设的丢包参数对所述丢包滑动窗口大小的TCP报文进行丢包处理;Perform packet loss processing on TCP packets with the size of the packet loss sliding window according to the preset packet loss parameters;
    若在所述丢包处理之后,所述入口设备和所述运营商网络的实时带宽所表征的数据传输速率大于或等于所述系统阈值所表征的数据传输速率,逐步增大所述丢包参数,并依据增大 后的丢包参数对接收来自所述运营商网络的丢包滑动窗口大小的TCP报文进行丢包处理,直到所述入口设备和所述运营商网络的实时带宽所表征的数据传输速率小于所述系统阈值所表征的数据传输速率。If after the packet loss processing, the data transmission rate represented by the real-time bandwidth of the entrance device and the operator network is greater than or equal to the data transmission rate represented by the system threshold, gradually increase the packet loss parameter , and increase according to The subsequent packet loss parameters are used to perform packet loss processing on TCP packets with a packet loss sliding window size received from the operator network until the data transmission rate represented by the real-time bandwidth of the entrance device and the operator network is less than the required The data transfer rate represented by the system threshold.
  9. 如权利要求8所述的网络拥塞控制方法,其特征在于,若所述入口设备和所述运营商网络之间的实时带宽所表征的数据传输速率由大于或等于所述系统阈值所表征的数据传输速率变更为小于所述系统阈值所表征的数据传输速率,所述方法还包括:The network congestion control method according to claim 8, characterized in that if the data transmission rate represented by the real-time bandwidth between the entrance device and the operator network is greater than or equal to the data represented by the system threshold The transmission rate is changed to be less than the data transmission rate represented by the system threshold, and the method further includes:
    逐步减小所述丢包参数,依据减小后的所述丢包参数对接收的丢包滑动窗口大小的TCP报文进行丢包,直至所述丢包参数为0。Gradually reduce the packet loss parameter, and drop the received TCP packets with the size of the packet loss sliding window according to the reduced packet loss parameter until the packet loss parameter reaches 0.
  10. 如权利要求9所述的网络拥塞控制方法,其特征在于,所述方法还包括:The network congestion control method according to claim 9, characterized in that the method further includes:
    依据所述入口设备和所述运营商网络之间的实时带宽所表征的数据传输速率与所述系统阈值所表征的数据传输速率的关系调整所述丢包参数;Adjust the packet loss parameter according to the relationship between the data transmission rate represented by the real-time bandwidth between the entrance device and the operator network and the data transmission rate represented by the system threshold;
    依据调整后的所述丢包参数对来自所述运营商网络的TCP报文进行丢包处理。Packet loss processing is performed on TCP messages from the operator network according to the adjusted packet loss parameters.
  11. 如权利要求1至10中任一项所述的网络拥塞控制方法,其特征在于,当所述系统阈值越大,所述系统阈值所表征的数据传输速率越大时,所述入口设备与所述运营商网络之间的实时带宽所表征的数据传输速率大于或等于预设的系统阈值所表征的数据传输速率,为:The network congestion control method according to any one of claims 1 to 10, characterized in that when the system threshold is larger and the data transmission rate represented by the system threshold is larger, the inlet device and the The data transmission rate represented by the real-time bandwidth between the above operator networks is greater than or equal to the data transmission rate represented by the preset system threshold, which is:
    所述实际带宽大于或等于所述系统阈值。The actual bandwidth is greater than or equal to the system threshold.
  12. 如权利要求1至10中任一项所述的网络拥塞控制方法,其特征在于,当所述系统阈值越大,所述系统阈值所表征的数据传输速率越小时,所述入口设备与所述运营商网络之间的实时带宽所表征的数据传输速率大于或等于预设的系统阈值所表征的数据传输速率,为:The network congestion control method according to any one of claims 1 to 10, characterized in that when the system threshold is larger and the data transmission rate represented by the system threshold is smaller, the entrance device and the The data transmission rate represented by the real-time bandwidth between operator networks is greater than or equal to the data transmission rate represented by the preset system threshold, which is:
    所述签约带宽与所述实际带宽的差值的绝对值小于或等于所述系统阈值。The absolute value of the difference between the contracted bandwidth and the actual bandwidth is less than or equal to the system threshold.
  13. 如权利要求1至12中任一项所述的网络拥塞控制方法,其特征在于,所述入口设备的包转发性能所表征的数据传输速率大于所述签约带宽所表征的数据传输速率。The network congestion control method according to any one of claims 1 to 12, characterized in that the data transmission rate represented by the packet forwarding performance of the ingress device is greater than the data transmission rate represented by the contracted bandwidth.
  14. 一种入口设备,其特征在于,所述入口设备包括:An entrance device, characterized in that the entrance device includes:
    一个或多个处理器;one or more processors;
    存储装置,用于存储一个或多个程序;A storage device for storing one or more programs;
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1至13中任一项所述的网络拥塞控制方法。When the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the network congestion control method according to any one of claims 1 to 13.
  15. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述程序被处理器执行时,实现如权利要求1至13中任一项所述的网络拥塞控制方法。A computer-readable storage medium on which a computer program is stored, characterized in that, when the program is executed by a processor, the network congestion control method according to any one of claims 1 to 13 is implemented.
  16. 一种园区网,其特征在于,所述园区网包括入口设备,所述入口设备用于执行如权利要求1至13中任一项所述的网络拥塞控制方法。 A campus network, characterized in that the campus network includes an ingress device, and the ingress device is used to perform the network congestion control method according to any one of claims 1 to 13.
PCT/CN2023/100424 2022-06-23 2023-06-15 Network congestion control method and apparatus WO2023246616A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210726633.5 2022-06-23
CN202210726633.5A CN117319301A (en) 2022-06-23 2022-06-23 Network congestion control method and device

Publications (1)

Publication Number Publication Date
WO2023246616A1 true WO2023246616A1 (en) 2023-12-28

Family

ID=89241320

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/100424 WO2023246616A1 (en) 2022-06-23 2023-06-15 Network congestion control method and apparatus

Country Status (2)

Country Link
CN (1) CN117319301A (en)
WO (1) WO2023246616A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104552A (en) * 2011-04-02 2011-06-22 杭州华三通信技术有限公司 Message control method and device based on ECN (Explicit Congestion Notification) mechanism
CN103414650A (en) * 2013-07-29 2013-11-27 上海华为技术有限公司 Routing method and device for congestion avoidance
US20210328930A1 (en) * 2020-01-28 2021-10-21 Intel Corporation Predictive queue depth
CN113973085A (en) * 2020-07-22 2022-01-25 华为技术有限公司 Congestion control method and device
CN114640631A (en) * 2020-12-15 2022-06-17 华为技术有限公司 Congestion control method and network equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104552A (en) * 2011-04-02 2011-06-22 杭州华三通信技术有限公司 Message control method and device based on ECN (Explicit Congestion Notification) mechanism
CN103414650A (en) * 2013-07-29 2013-11-27 上海华为技术有限公司 Routing method and device for congestion avoidance
US20210328930A1 (en) * 2020-01-28 2021-10-21 Intel Corporation Predictive queue depth
CN113973085A (en) * 2020-07-22 2022-01-25 华为技术有限公司 Congestion control method and device
CN114640631A (en) * 2020-12-15 2022-06-17 华为技术有限公司 Congestion control method and network equipment

Also Published As

Publication number Publication date
CN117319301A (en) 2023-12-29

Similar Documents

Publication Publication Date Title
EP3278514B1 (en) Data transmission
US9571382B2 (en) Method, controller, and system for processing data packet
US11032205B2 (en) Flow control method and switching device
US9819590B2 (en) Method and apparatus for notifying network abnormality
US20210211937A1 (en) Data Transmission Method, Apparatus, and System
US9276866B2 (en) Tuning congestion notification for data center networks
US11425051B2 (en) Flow control method and system, and device
JP2021516012A (en) Flow management in the network
CN106330742B (en) Flow control method and network controller
WO2014183492A1 (en) Packet traffic control method and device based on multi-path transmission
US11502962B2 (en) Method, apparatus, and system for implementing data transmission
WO2012129922A1 (en) Packet handling method, forwarding device and system
US11736407B2 (en) Method and apparatus for load balancing and packet re-sequencing on network
US20230090622A1 (en) Network Congestion Control Method and Network Device
WO2022028342A1 (en) Method for processing congestion flow and device
WO2022048281A1 (en) Method and device for improving link aggregation protocol timeout
US9537764B2 (en) Communication apparatus, control apparatus, communication system, communication method, method for controlling communication apparatus, and program
CN115766605A (en) Network congestion control method, device and system
CN113612698A (en) Data packet sending method and device
WO2023246616A1 (en) Network congestion control method and apparatus
JP2017050869A (en) Access control device and authentication control method
US11805071B2 (en) Congestion control processing method, packet forwarding apparatus, and packet receiving apparatus
CN113950099B (en) Network congestion control method and device
WO2010081321A1 (en) Method, device and system for upload rate dynamic association
WO2021082818A1 (en) Method and apparatus for adjusting transmission rate

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23826265

Country of ref document: EP

Kind code of ref document: A1