CN114826826A - Network congestion information transmission method and device, public cloud network and electronic equipment - Google Patents

Network congestion information transmission method and device, public cloud network and electronic equipment Download PDF

Info

Publication number
CN114826826A
CN114826826A CN202210471018.4A CN202210471018A CN114826826A CN 114826826 A CN114826826 A CN 114826826A CN 202210471018 A CN202210471018 A CN 202210471018A CN 114826826 A CN114826826 A CN 114826826A
Authority
CN
China
Prior art keywords
message
server
network
gateway
tunnel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210471018.4A
Other languages
Chinese (zh)
Inventor
邓龙飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202210471018.4A priority Critical patent/CN114826826A/en
Publication of CN114826826A publication Critical patent/CN114826826A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • 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

Landscapes

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

Abstract

The invention provides a network congestion information transmission method and device, a public cloud network and electronic equipment. Wherein, the method comprises the following steps: receiving a tunnel message sent by a first gateway; the tunnel message carries a mark for representing whether the first server starts explicit congestion notification or not; the method comprises the steps of obtaining network congestion information of the public cloud network, modifying or keeping a mark carried by a tunnel message based on the network congestion information, and sending the tunnel message to a second gateway, so that the second gateway generates a second message based on the tunnel message, and a second server determines the network congestion information of the public cloud network based on the second message. In the mode, the transmission of network congestion information can be realized in a public cloud network, the application range of the explicit congestion notification protocol is expanded to the public cloud from a private data center, an exclusive private machine room is not required to be built, the building cost and the maintenance cost are saved, the dynamic capacity expansion and contraction capability on the cloud is also realized, and the method is convenient and easy to use.

Description

Network congestion information transmission method and device, public cloud network and electronic equipment
Technical Field
The invention relates to the technical field of cloud services, in particular to a network congestion information transmission method and device, a public cloud network and electronic equipment.
Background
The ECN (Explicit Congestion Notification protocol) protocol is widely applied to applications such as HPC (High Performance Computing) and distributed training cluster. The protocol is a basic protocol of RDMA (Remote Direct Memory Access) and DCTCP (Data Center TCP) networks.
Implementing ECN on cloud services is a basic appeal of cloud computing. There are multiple limitations to implementing ECN on the cloud. Firstly, the traditional ECN is mainly deployed in a private data center of a client, data messages do not need to be packaged through a tunnel, and ECN marks are directly exposed to network equipment. The network equipment of the whole data link is private to the client, and the ECN function can be started in the whole network.
For a public cloud environment, because multi-tenant network isolation is needed, a tunnel concept is introduced, and an ECN mark is wrapped inside a tunnel, the network device cannot sense the ECN mark of an inner layer of the tunnel. In addition, the physical link is shared by multiple tenants, and compared with a private data center, the ECN function is started in the whole network, and the influence on other customers needs to be considered.
Thus, there are generally two solutions for implementing ECN on cloud services: (1) ECN networks are implemented in private data centers. In a private data center, applications that rely on the ECN protocol are deployed. And connecting the public cloud service through the hybrid cloud. (2) And a private hosting computer room on the cloud is used, and a hosting computer room network link is exclusively shared. Applications that rely on the ECN protocol are deployed.
However, the above two solutions mainly build an exclusive private data room, and on an exclusive data link, the ECN function is turned on to implement an explicit congestion notification scheme, which has the following disadvantages: an exclusive private machine room needs to be built, the building cost is high, and the maintenance cost is too high. The physical resources are fixed, and the dynamic capacity expansion and contraction capacity on the cloud is not realized.
Disclosure of Invention
In view of this, the present invention provides a network congestion information transmission method, an apparatus, a public cloud network, and an electronic device, so as to extend the use range of the explicit congestion notification protocol from a private data center to a public cloud, thereby reducing the cost and having dynamic scalability.
In a first aspect, an embodiment of the present invention provides a network congestion information transmission method, which is applied to a route forwarding device of a public cloud network, where the public cloud network includes a first server, a first gateway, the route forwarding device, a second gateway, and a second server, which are connected in sequence, and the method includes: receiving a tunnel message sent by a first gateway; the tunnel message carries a mark for representing whether the first server starts explicit congestion notification or not; the method comprises the steps of obtaining network congestion information of the public cloud network, modifying or keeping a mark carried by a tunnel message based on the network congestion information, sending the tunnel message to a second gateway, enabling the second gateway to generate a second message based on the tunnel message, and enabling a second server to determine the network congestion information of the public cloud network based on the second message.
In a preferred embodiment of the present invention, the IP headers of the second packet and the first packet generated by the first server carry tags, and the tunnel outer layer IP header of the tunnel packet carries a tag.
In a preferred embodiment of the present invention, the step of modifying or maintaining the flag carried in the tunnel packet based on the network congestion information includes: analyzing the tunnel outer layer IP head of the tunnel message to obtain a mark carried by the tunnel message; and modifying or keeping the mark carried by the tunnel message based on the network congestion information.
In a preferred embodiment of the present invention, the step of modifying or maintaining the flag carried in the tunnel packet based on the network congestion information includes: if the mark carried by the tunnel message represents that the first server starts explicit congestion notification, and the network congestion information represents the network congestion of the public cloud network, modifying the mark carried by the tunnel message; and if the mark carried by the tunnel message indicates that the first server does not start explicit congestion notification or the network congestion information indicates that the network of the public cloud network is not congested, keeping the mark carried by the tunnel message.
In a second aspect, an embodiment of the present invention further provides a network congestion information transmission method, which is applied to a first gateway of a public cloud network, where the public cloud network includes a first server, the first gateway, a route forwarding device, a second gateway, and a second server, which are connected in sequence, and the method includes: receiving a first message sent by a first server; the first message carries a mark for representing whether the first server starts explicit congestion notification or not; packaging the first message into a tunnel message, and sending the tunnel message to the routing forwarding equipment; and the label carried by the tunnel message is the same as the label carried by the first message.
In a third aspect, an embodiment of the present invention further provides a network congestion information transmission method, which is applied to a second gateway of a public cloud network, where the public cloud network includes a first server, the first gateway, a route forwarding device, the second gateway, and a second server, which are connected in sequence, and the method includes: receiving a tunnel message sent by a route forwarding device; generating a second message based on the tunnel message, and sending the second message to a second server; and the label carried by the second message is the same as the label carried by the tunnel message.
In a preferred embodiment of the present invention, the marks carried by the tunnel messages all include a user identifier of the first server; generating a second message based on the tunnel message, and sending the second message to a second server, wherein the steps comprise: determining a second server matched with the user identification based on the user identification of the first server; and sending the second message to a second server matched with the user identifier.
In a preferred embodiment of the present invention, the second gateway stores a correspondence between the second server and the user identifier in advance; the step of determining a second server matching the user identity based on the user identity of the first server comprises: and searching the second server matched with the user identification of the first server from the corresponding relation.
In a fourth aspect, an embodiment of the present invention further provides a network congestion information transmission method, which is applied to a second server of a public cloud network, where the public cloud network includes a first server, a first gateway, a route forwarding device, a second gateway, and a second server, which are connected in sequence, and the method includes: receiving a second message sent by a second gateway; and determining network congestion information of the public cloud network based on the second message.
In a preferred embodiment of the present invention, the step of determining the network congestion information of the public cloud network based on the second packet includes: and if the mark carried by the second message represents that the first server starts the explicit congestion notification, determining the network congestion information of the public cloud network based on the second message.
In a preferred embodiment of the present invention, after the step of determining the network congestion information of the public cloud network based on the second packet, the method further includes: if the second message carries a mark to represent that the first server starts explicit congestion notification, and the network congestion information represents the network congestion of the public cloud network; and sending an announcement message to the first server, so that the first server receives the announcement message, and the first server reduces the packet sending bandwidth of the first server based on the announcement message.
In a fifth aspect, an embodiment of the present invention further provides a public cloud network, where the public cloud network includes: the system comprises a first server, a first gateway, route forwarding equipment, a second gateway and a second server which are connected in sequence; the route forwarding equipment is used for executing the network congestion information transmission method; the first gateway is used for the network congestion information transmission method; the second gateway is used for executing the network congestion information transmission method; the second server is used for executing the network congestion information transmission method.
In a sixth aspect, an embodiment of the present invention further provides a network congestion information transmission apparatus, which is applied to a route forwarding device of a public cloud network, where the public cloud network includes a first server, a first gateway, the route forwarding device, a second gateway, and a second server, which are connected in sequence, and the apparatus includes: the tunnel message acquisition module is used for receiving a tunnel message sent by the first gateway; the tunnel message carries a mark for representing whether the first server starts explicit congestion notification or not; and the tunnel message processing module is used for acquiring the network congestion information of the public cloud network, modifying or keeping the mark carried by the tunnel message based on the network congestion information, and sending the tunnel message to the second gateway, so that the second gateway generates a second message based on the tunnel message, and the second server determines the network congestion information of the public cloud network based on the second message.
In a seventh aspect, an embodiment of the present invention further provides a network congestion information transmission apparatus, which is applied to a first gateway of a public cloud network, where the public cloud network includes a first server, the first gateway, a route forwarding device, a second gateway, and a second server, which are connected in sequence, and the apparatus includes: the first message receiving module is used for receiving a first message sent by a first server; the first message carries a mark for representing whether the first server starts explicit congestion notification or not; the tunnel message encapsulation module is used for encapsulating the first message into a tunnel message and sending the tunnel message to the routing forwarding equipment; and the label carried by the tunnel message is the same as the label carried by the first message.
In an eighth aspect, an embodiment of the present invention further provides a network congestion information transmission apparatus, which is applied to a second gateway of a public cloud network, where the public cloud network includes a first server, the first gateway, a route forwarding device, the second gateway, and a second server, which are connected in sequence, and the apparatus includes: a tunnel message receiving module, configured to receive a tunnel message sent by the route forwarding device; the second message sending module is used for generating a second message based on the tunnel message and sending the second message to a second server; and the label carried by the second message is the same as the label carried by the tunnel message.
In a ninth aspect, an embodiment of the present invention further provides a network congestion information transmission apparatus, which is applied to a second server of a public cloud network, where the public cloud network includes a first server, a first gateway, a route forwarding device, a second gateway, and a second server, which are connected in sequence, and the apparatus includes: the second message receiving module is used for receiving a second message sent by a second gateway; and the second message processing module is used for determining the network congestion information of the public cloud network based on the second message.
In a tenth aspect, an embodiment of the present invention further provides an electronic device, which includes a processor and a memory, where the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement the steps of the network congestion information transmission method described above.
In an eleventh aspect, embodiments of the present invention also provide a computer-readable storage medium, which stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement the steps of the network congestion information transmission method described above.
The embodiment of the invention has the following beneficial effects:
the embodiment of the invention provides a network congestion information transmission method and device, a public cloud network and electronic equipment, wherein the public cloud network comprises a first server, a first gateway, route forwarding equipment, a second gateway and a second server which are sequentially connected, the route forwarding equipment receives a tunnel message which is sent by the first gateway and represents whether the first server starts a mark of explicit congestion notification or not, and network congestion information of the public cloud network is obtained; modifying or keeping a mark carried by the tunnel message based on the network congestion information, and sending the tunnel message to a second gateway; and enabling the second gateway to generate a second message based on the tunnel message, and enabling the second server to determine the network congestion information of the public cloud network based on the second message. In the mode, the transmission of network congestion information can be realized in a public cloud network, the application range of the explicit congestion notification protocol is expanded to the public cloud from a private data center, an exclusive private machine room is not required to be built, the building cost and the maintenance cost are saved, the dynamic capacity expansion and contraction capability on the cloud is also realized, and the method is convenient and easy to use.
Additional features and advantages of the disclosure will be set forth in the description which follows, or in part may be learned by the practice of the above-described techniques of the disclosure, or may be learned by practice of the disclosure.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a method for transmitting network congestion information according to an embodiment of the present invention;
fig. 2 is a flowchart of another network congestion information transmission method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a public cloud network according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a public cloud network according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a network congestion information transmission apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another network congestion information transmission apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of another network congestion information transmission apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another network congestion information transmission apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Icon:
41-a first server; 42-a first gateway; 43-route forwarding devices; 44-a second gateway; 45-a second server; 51-tunnel message acquisition module; 52-tunnel message processing module; 61-a first message receiving module; 62-tunnel message encapsulation module; 71-tunnel message receiving module; 72-a second message sending module; 81-a second message receiving module; 82-a second message processing module; 100-a memory; 101-a processor; 102-a bus; 103-communication interface.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, the ECN protocol is widely applied to HPC, distributed training clusters, and the like. Is the basic protocol of RDMA and DCTCP network. Implementing ECN on cloud services is a basic appeal of cloud computing. There are multiple limitations to implementing ECN on the cloud. Firstly, the traditional ECN is mainly deployed in a private data center of a client, data messages do not need to be packaged through a tunnel, and ECN marks are directly exposed to network equipment. The network equipment of the whole data link is private to the client, and the ECN function can be started in the whole network. For a public cloud environment, because multi-tenant network isolation is needed, a tunnel concept is introduced, and an ECN mark is wrapped inside a tunnel, the network device cannot sense the ECN mark of an inner layer of the tunnel. In addition, the physical link is shared by multiple tenants, and compared with a private data center, the ECN function is started in the whole network, and the influence on other customers needs to be considered.
Thus, there are generally two solutions for implementing ECN on cloud services: (1) ECN networks are implemented in private data centers. In a private data center, applications that rely on the ECN protocol are deployed. And connecting the public cloud service through the hybrid cloud. (2) And a private hosting computer room on the cloud is used, and a hosting computer room network link is exclusively shared. Applications that rely on the ECN protocol are deployed. However, the above two solutions mainly build an exclusive private data room, and on an exclusive data link, the ECN function is turned on to implement an explicit congestion notification scheme, which has the following disadvantages: an exclusive private machine room needs to be built, the building cost is high, and the maintenance cost is too high. The physical resources are fixed, and the dynamic capacity expansion and contraction capacity on the cloud is not realized.
Based on this, the embodiment of the invention provides a network congestion information transmission method and device, a public cloud network and an electronic device, and particularly relates to an explicit congestion notification scheme of a cloud network, and provides a scheme for realizing an ECN (explicit congestion notification protocol) in a network environment where a public cloud shares a physical link with multiple tenants. ECN functions can be implemented in a public cloud environment implemented by various tunnel encapsulations, for example: VXLAN (Virtual Extensible Local Area Network), GRE (Generic Routing Encapsulation), etc.
For the convenience of understanding the present embodiment, a detailed description will be first given of a network congestion information transmission method disclosed in the present embodiment.
The embodiment provides a network congestion information transmission method, which is applied to a route forwarding device of a public cloud network, wherein the public cloud network comprises a first server, a first gateway, the route forwarding device, a second gateway and a second server which are sequentially connected. Public clouds generally refer to available clouds provided by third party providers to users, and may be generally available over the Internet, possibly free or inexpensive. There are many instances of such a cloud that can provide services throughout an open public network. For ease of understanding, the following concepts are referred to in this embodiment:
EPC (Elastic Physical computer, bare metal server) gateway: and the bare metal server defaults gateway equipment and is responsible for routing distribution of all service flows of the bare metal server. Is the egress of the EPC to provide external services.
HPC: the high performance computer group is a computer capable of executing large data volume and high speed operation which cannot be processed by general personal computer, and its basic components have no great difference from the concept of personal computer, but its specification and performance are much stronger.
ECN: is an extension of the TCP/IP protocol, and is defined in RFC 3168 (2001). To support end-to-end network congestion notification.
VPC (Virtual Private Cloud): the method runs on the public cloud, isolates a part of public cloud resources for a certain user, and provides a set of resources which are used by the user in a private mode. And creating a special two-layer network on the public cloud for the user. Public cloud vendors provide isolation functions based on VPC strength.
VRF (Virtual Routing Forwarding, Virtual route Forwarding): the method is a technology used in a computer network, is used for realizing a proprietary network under a multi-tenant shared link environment, and is used for realizing public cloud multi-tenant isolation.
Based on the above description, referring to the flowchart of a network congestion information transmission method shown in fig. 1, the network congestion information transmission method includes the following steps:
step S100, receiving a tunnel message sent by a first gateway; the tunnel message carries a mark representing whether the first server starts explicit congestion notification.
The first server may send a flag to the first gateway indicating whether the first server turns on explicit congestion notification. The first gateway packages the first message into a tunnel message and sends the tunnel message to the routing forwarding equipment; and the label carried by the tunnel message is the same as the label carried by the first message.
The gateway in the embodiment of the present invention may be communicatively connected to a plurality of servers, where the first server and the second server should be servers leased by a unified user, that is, the first server and the second server should have the same user identifier.
If the first server starts the ECN function, the mark carried by the first message represents that the first server starts the explicit congestion notification, and if the first server does not start the ECN function, the mark carried by the first message represents that the first server does not start the explicit congestion notification.
Tunneling is a way of communicating data between networks by using the infrastructure of the internetwork. The data (or payload) communicated using the tunnel may be data frames or packets of different protocols. The tunneling protocol re-encapsulates the data frames or packets of these other protocols in a new header for transmission. The new header provides routing information to enable the encapsulated payload data to be delivered over the internet.
When the first packet is encapsulated into a tunnel packet, the first gateway may encapsulate a tag carried by the first packet into a packet header of the tunnel packet, that is, the tunnel packet and the first packet carry the same tag representing whether the first server starts explicit congestion notification.
Step S102, network congestion information of the public cloud network is obtained, a mark carried by the tunnel message is modified or kept based on the network congestion information, the tunnel message is sent to the second gateway, so that the second gateway generates a second message based on the tunnel message, and the second server determines the network congestion information of the public cloud network based on the second message.
The route forwarding device of this embodiment may be a device with a route forwarding function, such as a switch or a router, and the route forwarding device of the embodiment of the present invention can only sense an outer IP header encapsulated in a tunnel, and performs route forwarding based on a destination IP of the outer IP. Tunnel inner IP header information cannot be perceived. Therefore, the route forwarding device of the embodiment of the present invention can only read the tag carried by the tunnel packet, and cannot read the tag carried by the first packet.
The route forwarding device may obtain network congestion information of the public cloud network, and modify or maintain a flag carried in the tunnel packet based on the network congestion information, for example: if the network congestion information of the public cloud network represents the network congestion of the public cloud network, the route forwarding equipment can modify the mark carried by the tunnel message; if the network congestion information of the public cloud network represents that the network of the public cloud network is not congested, the routing forwarding equipment can keep the mark carried by the tunnel message.
Of course, all of these needs to represent that the first server starts the explicit congestion notification based on the flag carried by the tunnel packet, and if the flag carried by the tunnel packet represents that the first server does not start the explicit congestion, the routing forwarding device may keep the flag carried by the packet regardless of the content represented by the network congestion information.
Then, the second gateway generates a second message based on the tunnel message and sends the second message to a second server; and the label carried by the second message is the same as the label carried by the tunnel message. The second gateway may receive the tunnel packet sent by the route forwarding device, and generate a second packet based on the tunnel packet, where a label carried by the second packet is the same as a label carried by the tunnel packet. The second gateway may then send the second message to the second server.
Finally, the second server may determine network congestion information of the public cloud network based on the second packet. The second server analyzes the second message, and can determine the network congestion information of the public cloud network according to the mark carried by the second message, so that the notification and transmission of the network congestion information in the public cloud network are realized.
The embodiment of the invention provides a network congestion information transmission method, wherein a public cloud network comprises a first server, a first gateway, a route forwarding device, a second gateway and a second server which are sequentially connected, wherein the route forwarding device receives a tunnel message which is sent by the first gateway and used for representing whether the first server starts a mark of explicit congestion notification or not, and acquires network congestion information of the public cloud network; modifying or keeping a mark carried by the tunnel message based on the network congestion information, and sending the tunnel message to a second gateway; and enabling the second gateway to generate a second message based on the tunnel message, and enabling the second server to determine the network congestion information of the public cloud network based on the second message. In the mode, the transmission of network congestion information can be realized in a public cloud network, the application range of the explicit congestion notification protocol is expanded to the public cloud from a private data center, an exclusive private machine room is not required to be built, the building cost and the maintenance cost are saved, the dynamic capacity expansion and contraction capability on the cloud is also realized, and the method is convenient and easy to use.
The embodiment provides another network congestion information transmission method, which is implemented on the basis of the above embodiments. Referring to the flowchart of another network congestion information transmission method shown in fig. 2, the network congestion information transmission method in this embodiment includes the following steps:
step S200, receiving a tunnel message sent by a first gateway; the tunnel message carries a mark representing whether the first server starts explicit congestion notification.
Specifically, the tunnel packet is obtained by the first server based on encapsulation of the first packet sent by the first server. Therefore, the present embodiment further provides another network congestion information transmission method, which is applied to a first gateway of a public cloud network, and the method includes: receiving a first message sent by a first server; the first message carries a mark for representing whether the first server starts explicit congestion notification or not; packaging the first message into a tunnel message, and sending the tunnel message to the routing forwarding equipment; and the label carried by the tunnel message is the same as the label carried by the first message.
For example, a first server sends a first message to a first gateway; the first message carries a mark representing whether the first server starts explicit congestion notification or not. The first gateway packages the first message into a tunnel message and sends the tunnel message to the routing forwarding equipment; and the label carried by the tunnel message is the same as the label carried by the first message.
Specifically, the IP headers of the second packet and the first packet generated by the first server carry flags, and taking the example that the first server starts explicit congestion notification, the first server may also be referred to as a source EPC server, and the source EPC server starts the ECN function, which may mark an ECN flag 1 on the IP header of the first packet.
The tunnel outer layer IP head of the tunnel message carries a mark. When the first message enters the VPC network, the EPC gateway (i.e., the first gateway) may copy the EPC label 1 of the IP header of the first message to the tunnel outer IP header of the tunnel message as ECN label 2.
Step S202, network congestion information of a public cloud network is obtained, a tunnel outer layer IP head of a tunnel message is analyzed, and a mark carried by the tunnel message is obtained; and modifying or keeping the mark carried by the tunnel message based on the network congestion information.
Specifically, if the mark carried by the tunnel message represents that the first server starts explicit congestion notification, and the network congestion information represents the network congestion of the public cloud network, the mark carried by the tunnel message is modified; and if the mark carried by the tunnel message indicates that the first server does not start explicit congestion notification or the network congestion information indicates that the network of the public cloud network is not congested, keeping the mark carried by the tunnel message.
In the cloud network forwarding process, the ECN function of the routing forwarding device (a switch or a router of a public cloud) may be started, and if the public cloud network is congested, the routing forwarding device may first determine an ECN flag at an outer IP header of a tunnel packet, determine whether the ECN function is started, and currently, turn on the ECN function of the ECN flag 2. The ECN mark 3 will be automatically marked in the tunnel outer IP header of the tunnel message.
Step S204, the tunnel message is sent to the second gateway, so that the second gateway generates a second message based on the tunnel message, and the second server determines the network congestion information of the public cloud network based on the second message.
Specifically, the route forwarding device may send the tunnel packet to the second gateway, and the second gateway generates a second packet based on the tunnel packet, and the second server parses the second packet. Therefore, another network congestion information transmission method is further provided in an embodiment of the present invention, and is applied to a second gateway of a public cloud network, where the method includes: receiving a tunnel message sent by a route forwarding device; generating a second message based on the tunnel message, and sending the second message to a second server; and the label carried by the second message is the same as the label carried by the tunnel message.
When the packet is about to exit the VPC network and arrive at the terminal EPC server (second server), the EPC gateway (second gateway) decapsulates the packet header of the tunnel message, and copies the ECN mark 3 of the tunnel outer layer IP header of the tunnel message to the IP header of the inner layer original message (second message). The ECN label 1 of the second message is now modified to ECN label 3.
The first server and the second server both belong to the same user, and can be matched in a user identification mode, and the marks carried by the tunnel messages both comprise the user identification of the first server, and can be executed through the following steps: determining a second server matched with the user identification based on the user identification of the first server; and sending the second message to a second server matched with the user identifier.
The first packet does not generally carry the user identifier, and the user identifier is generated according to the first server when the first gateway encapsulates the tunnel packet. In the public cloud, there may be a one-to-one correspondence between the MAC of the first server and the user identifier, or a one-to-one correspondence between an interface of the first gateway and the user identifier on the first server. And when the tunnel message is packaged, the user identifier can be obtained according to the corresponding relation. Therefore, the first message and the second message do not carry the user identifier in the message.
Specifically, the second gateway stores a correspondence between the second server and the user identifier in advance, and the second gateway may search for the second server matching the user identifier of the first server from the correspondence.
The method for the first gateway and the second gateway to send the message is forwarded through the communicated neighbor table and the routing table, and the user identifier is used for marking which neighbor table and routing table the message uses, so that the message is forwarded by the VRF.
For example, the first gateway and the second gateway find a neighbor table and a routing table (a subscriber identity is associated with a neighbor and the routing table) unique to a customer according to the subscriber identity, thereby realizing different subscriber identities and isolation at a network level (the most basic network characteristics of a public cloud and multiple tenants, each tenant logically shares an independent network). The actual message is forwarded by the neighbor table and the routing table that are shared by the client.
One important function of cloud networks is tenant isolation. The tenant isolation function is generally implemented by a tunnel encapsulation, and the tunnel encapsulation internally contains a unique identifier of the tenant. For example: if VXLAN is used as the tunnel encapsulation format, vni of the VXLAN header can be used as the tenant unique identifier. According to the vxlan. vni information, the tenant to which the message belongs can be judged, and when the PGW (EPC gateway, i.e., the second gateway in this embodiment) processes the message, different VRFs are entered according to the vxlan. vni, and an independent routing table and a neighbor table of the tenant are searched. And multi-tenant isolation is realized.
After finding the appropriate second server, the second server may receive and analyze the second packet, and determine the network congestion information of the public cloud network. Therefore, the present embodiment further provides another network congestion information transmission method, which is applied to a second server of a public cloud network. The method comprises the following steps: receiving a second message sent by a second gateway; and determining network congestion information of the public cloud network based on the second message.
Specifically, if the mark carried by the second message indicates that the first server starts the explicit congestion notification, the network congestion information of the public cloud network is determined based on the second message. That is, only when the first server turns on the explicit congestion notification, the second server may determine the network congestion information of the public cloud network based on the second packet.
For example, the second message is sent to the terminal EPC server (second server). According to the ECN mark 3, the terminal EPC server (second server) can determine that network congestion exists between the two EPCs (first server and second server), and actively sends a notification message to the source server (first server), so as to reduce a message sending bandwidth, for example: if the second message carries a mark to represent that the first server starts an explicit congestion notification, and the network congestion information represents the network congestion of the public cloud network; the second server sends an announcement message to the first server; the first server receives the notification message, and reduces the packet sending bandwidth of the first server based on the notification message.
Next, in this embodiment, different situations are analyzed one by one, and refer to a schematic diagram of a public cloud network shown in fig. 3, where the public cloud network includes two gateways: a first gateway PGW1 communicatively connected to 3 first servers (EPC1, EPC2 and EPC3) and a second gateway PGW2 communicatively connected to 3 second servers (EPC4, EPC5 and EPC6), wherein EPC1(10.10.1.2) and EPC6(10.10.2.3) belong to one tenant (first tenant). EPC2(10.10.1.2), EPC3(10.10.3.3), EPC4(10.10.4.4), EPC5(10.10.4.5) belong to another tenant (second tenant).
There are PGW1(EPC gateway 1, 88.88.8.2) and PGW2(EPC gateway 2, 88.88.8.3). The PGW1 and PGW2 are both connected to a CORE of the route forwarding equipment, and the CORE of the route forwarding equipment can only sense the head of the outer layer IP of the tunnel encapsulation and does route forwarding based on the destination IP of the outer layer IP. Tunnel inner IP header information cannot be perceived. When the first tenant wants to use the ECN function, the ECN function is turned on EPC1, EPC 6.
(1) For the case that the first tenant starts the ECN function and the network has congestion phenomenon: EPC1 accesses message 1 (i.e. the first message) of EPC6 (10.10.1.2- >10.10.2.3), the IP header carries ECN mark 1 (value is 01, which indicates that ECN function is opened), and enters PGW1(EPC gateway), PGW1 encapsulates the original message 1 into tunnel message 2 by using a cloud network tunnel encapsulation protocol (outer layer: 88.88.8.2- >88.88.8.3, ECN mark 01, tenant id:1, inner layer: 10.10.1.2- >10.10.2.3, ECN mark 01).
The encapsulated message is sent to the switch CORE, which sends the message to PGW2 according to the route. In the process of forwarding the message, the CORE may encounter a network congestion situation caused by the full interface bandwidth. At this time, it is determined whether the ECN function is activated by the outer IP header.
When the outer IP header of the current tunnel message 2 is provided with the ECN flag 1 and the ECN function is turned on, the CORE will automatically modify the ECN flag 1 of the outer IP header of the tunnel message 2 into the ECN flag 2 (the value is 11, which indicates that the ECN function is turned on and the link congestion is detected on the intermediate link).
After the second message reaches the PGW2, the PGW2 determines that the message belongs to the first tenant according to the tenant ID:1 of the tunnel message 2. And inquiring a VRF routing table to which the first tenant belongs. PGW2 then determines to forward message 1 to EPC 6.
Before the PGW2 forwards the message 1 to the EPC6, the ECN label 2 of the outer IP header of the tunnel message 2 is copied onto the IP header ECN of the message 1. At this point message 1 has ECN flag 2 (value 11 indicating that ECN function is turned on and link congestion is detected on the intermediate link).
The EPC6 receives the message 1, checks the ECN mark of the IP header, finds that the value is 11, determines that the intermediate link is congested, and realizes the ECN function, and then the EPC6 actively sends a notification message to the ECP1, so that the EPC1 actively reduces the packet sending bandwidth, and actively prevents packet loss.
(2) For the case that the first tenant starts the ECN function and the network has no congestion phenomenon: EPC1 accesses message 1 (i.e. the first message) of EPC6 (10.10.1.2- >10.10.2.3), the IP header carries ECN tag 1 (value is 01, which indicates that ECN function is turned on), and enters PGW1(EPC gateway), and PGW1 encapsulates the original message 1 into tunnel message 2 by using a predetermined tunnel encapsulation protocol (outer layer: 88.88.8.2- >88.88.8.3ECN tag 01, tenant id:1, inner layer: 10.10.1.2- >10.10.2.3ECN tag 01).
The encapsulated message is sent to the switch CORE, which sends the message to PGW2 according to the route. In the process of forwarding the message, the CORE does not encounter the network congestion caused by the full interface bandwidth. The CORE does not modify the ECN flag 1 of the outer IP header of the tunnel message 2.
After the second packet reaches PGW2, PGW2 determines that the packet belongs to the first tenant according to the tenant ID:1 of the tunnel packet 2. And inquiring a VRF routing table to which the first tenant belongs. PGW2 then determines to forward message 1 to EPC 6.
Before the PGW2 forwards the message 1 to the EPC6, the ECN label 1 of the outer IP header of the tunnel message 2 is copied onto the IP header ECN of the message 1. At this time, the ECN flag 1 of message 1 (the value is 01, which indicates that the ECN function is turned on, but there is no congestion in the intermediate link).
The EPC6 receives the message 1, looks at the ECN flag 1 of the IP header, and finds that the value is 01, which indicates that the intermediate link has no packet loss.
(3) For the case that the second tenant does not start the ECN function and the network has a congestion phenomenon: EPC3 accesses message 1 (i.e., the first message) of EPC5 (10.10.3.3- >10.10.4.5), the IP header carries an ECN tag 0 (the value is 00, which indicates that the ECN function is not turned on), and enters PGW1(EPC gateway), and PGW1 encapsulates the original message 1 into a tunnel message 2 (outer layer: 88.88.8.2- >88.88.8.3ECN tag 00 tenant id:2 inner layer: 10.10.3.3- >10.10.4.5ECN tag 01) by using a predetermined tunnel encapsulation protocol.
The encapsulated message is sent to the switch CORE, which sends the message to PGW2 according to the route. In the process of forwarding the message, the CORE may encounter a network congestion situation caused by the full interface bandwidth. At this time, it is determined whether the outer IP header turns on the ECN function.
The outer layer IP header of the current tunnel message 2 is provided with ECN flag 0 (the value is 00, which indicates that the ECN function is not turned on), the CORE determines that the ECN function is not turned on for this message, and does not modify the ECN flag of the outer layer IP header, so the outer layer IP header of the tunnel message 2 is still ECN flag 0.
After the second message reaches the PGW2, the PGW2 determines that the message belongs to the second tenant according to the tenant ID:2 of the tunnel message 2. And inquiring the VRF routing table to which the second tenant belongs. PGW2 then determines to forward message 1 to EPC 5.
Before the PGW2 forwards the message 1 to the EPC5, the ECN label 0 of the outer IP header of the tunnel message 2 is copied onto the IP header ECN of the message 1. The ECN flag of message 1 is 0 (value 00, indicating that ECN function is not enabled).
Receiving the message 1, the EPC5 checks the ECN flag 0 of the IP header, finds that the value is 00, and determines that the source end does not support the ECN protocol. No ECN related special handling is done.
(4) For the case that the second tenant does not start the ECN function and the network does not have the congestion phenomenon: EPC3 accesses message 1 (i.e., the first message) of EPC5 (10.10.3.3- >10.10.4.5), the IP header carries an ECN tag 0 (the value is 00, which indicates that the ECN function is not turned on), and enters PGW1(EPC gateway), and PGW1 encapsulates the original message 1 into a tunnel message 2 (outer layer: 88.88.8.2- >88.88.8.3ECN tag 00 tenant id:2 inner layer: 10.10.3.3- >10.10.4.5ECN tag 01) by using a predetermined tunnel encapsulation protocol.
The encapsulated message is sent to the switch CORE, which sends the message to PGW2 according to the route. In the process of forwarding the message, the CORE does not encounter the network congestion caused by the full interface bandwidth. The CORE does not modify ECN flag 0 of the outer IP header of tunnel message 2.
After the second message reaches the PGW2, the PGW2 determines that the message belongs to the second tenant according to the tenant ID:2 of the tunnel message 2. And inquiring the VRF routing table to which the second tenant belongs. PGW2 then determines to forward message 1 to EPC 5.
Before the PGW2 forwards the packet 1 to the EPC5, the ECN label 0 of the outer IP header of the tunnel packet 2 is copied to the IP header ECN of the packet 1. The ECN flag of message 1 is 0 (value 00, indicating that ECN function is not enabled).
Receiving the message 1, the EPC5 checks the ECN flag 0 of the IP header, finds that the value is 00, and determines that the source end does not support the ECN protocol. No ECN related special handling is done.
In summary, the method provided by the embodiment of the present invention provides a scheme for implementing ECN in a network environment where a public cloud shares a physical link with multiple tenants. The ECN function can be realized in a public cloud environment realized by various tunnel encapsulation. Compared with the existing explicit congestion notification use scheme, the following advantages are mainly provided: the use of explicit congestion notification protocols extends from private data centers to public clouds. The method is convenient and easy to use, and the ECN protocol can be used on the cloud to accelerate packet loss sensitive services such as HPC (high performance computing) without the need of a client to set up a private data center.
Corresponding to the above method embodiment, an embodiment of the present invention provides a public cloud network, and as shown in fig. 4, the public cloud network includes: a first server 41, a first gateway 42, a route forwarding device 43, a second gateway 44 and a second server 45 which are connected in sequence; the first server, the first gateway, the route forwarding device, the second gateway, and the second server all execute the network congestion information transmission method provided by the above embodiment
The implementation principle and the generated technical effect of the public cloud network provided by the embodiment of the invention are the same as those of the embodiment of the network congestion information transmission method, and for the sake of brief description, corresponding contents in the embodiment of the network congestion information transmission method can be referred to where the embodiment of the network congestion information transmission device is not mentioned.
Corresponding to the method embodiment, an embodiment of the present invention provides a network congestion information transmission apparatus, which is applied to a route forwarding device of a public cloud network, where the public cloud network includes a first server, a first gateway, a route forwarding device, a second gateway, and a second server, which are connected in sequence. Referring to fig. 5, a schematic structural diagram of a network congestion information transmission apparatus is shown, the network congestion information transmission apparatus includes:
a tunnel message obtaining module 51, configured to receive a tunnel message sent by a first gateway; the tunnel message carries a mark for representing whether the first server starts explicit congestion notification or not;
the tunnel message processing module 52 is configured to acquire network congestion information of the public cloud network, modify or maintain a flag carried in the tunnel message based on the network congestion information, and send the tunnel message to the second gateway, so that the second gateway generates a second message based on the tunnel message, and the second server determines the network congestion information of the public cloud network based on the second message.
The embodiment of the invention provides a network congestion information transmission device, wherein a public cloud network comprises a first server, a first gateway, a route forwarding device, a second gateway and a second server which are sequentially connected, wherein the route forwarding device receives a tunnel message which is sent by the first gateway and used for representing whether the first server starts a mark of explicit congestion notification or not, and acquires network congestion information of the public cloud network; modifying or keeping a mark carried by the tunnel message based on the network congestion information, and sending the tunnel message to a second gateway; and enabling the second gateway to generate a second message based on the tunnel message, and enabling the second server to determine the network congestion information of the public cloud network based on the second message. In the mode, the transmission of network congestion information can be realized in a public cloud network, the application range of the explicit congestion notification protocol is expanded to the public cloud from a private data center, an exclusive private machine room is not required to be built, the building cost and the maintenance cost are saved, the dynamic capacity expansion and contraction capability on the cloud is also realized, and the method is convenient and easy to use.
The IP headers of the second packet and the first packet generated by the first server carry tags, and the tunnel outer layer IP header of the tunnel packet carries a tag.
The tunnel message processing module is configured to modify a flag carried in a tunnel message if the flag carried in the tunnel message indicates that the first server starts explicit congestion notification and the network congestion information indicates network congestion of a public cloud network; and if the mark carried by the tunnel message indicates that the first server does not start explicit congestion notification or the network congestion information indicates that the network of the public cloud network is not congested, keeping the mark carried by the tunnel message.
Corresponding to the method embodiment, another network congestion information transmission apparatus is further provided in the embodiment of the present invention, and is applied to a first gateway of a public cloud network, where the public cloud network includes a first server, the first gateway, a route forwarding device, a second gateway, and a second server, which are sequentially connected. Referring to fig. 6, another schematic structural diagram of a network congestion information transmission apparatus is shown, the network congestion information transmission apparatus includes:
a first message receiving module 61, configured to receive a first message sent by a first server; the first message carries a mark for representing whether the first server starts explicit congestion notification or not;
a tunnel packet encapsulation module 62, configured to encapsulate the first packet into a tunnel packet, and send the tunnel packet to the route forwarding device; and the label carried by the tunnel message is the same as the label carried by the first message.
Corresponding to the method embodiment, another network congestion information transmission apparatus is further provided in the embodiment of the present invention, and is applied to a second gateway of a public cloud network, where the public cloud network includes a first server, the first gateway, a route forwarding device, the second gateway, and a second server, which are sequentially connected. Referring to fig. 7, another schematic structural diagram of a network congestion information transmission apparatus is shown, the network congestion information transmission apparatus includes:
a tunnel message receiving module 71, configured to receive a tunnel message sent by the route forwarding device;
a second message sending module 72, configured to generate a second message based on the tunnel message, and send the second message to the second server; and the label carried by the second message is the same as the label carried by the tunnel message.
The marks carried by the tunnel messages comprise user identifications of the first server; the second message sending module is configured to determine, based on the user identifier of the first server, a second server that matches the user identifier; and sending the second message to a second server matched with the user identifier.
The second gateway prestores a corresponding relation between a second server and a user identifier; the second message sending module is configured to search for a second server matching the user identifier of the first server from the corresponding relationship.
Corresponding to the method embodiment, another network congestion information transmission apparatus is further provided in the embodiment of the present invention, and is applied to a second server of a public cloud network, where the public cloud network includes a first server, a first gateway, a route forwarding device, a second gateway, and a second server, which are sequentially connected. Referring to fig. 8, another schematic structural diagram of a network congestion information transmission apparatus is shown, the network congestion information transmission apparatus includes:
a second message receiving module 81, configured to receive a second message sent by a second gateway;
and the second message processing module 82 is configured to determine network congestion information of the public cloud network based on the second message.
The second message processing module is configured to determine network congestion information of the public cloud network based on the second message if the mark carried by the second message indicates that the first server starts an explicit congestion notification.
The above-mentioned device includes: the notification message sending module is used for starting an explicit congestion notification if the second message carries a mark to represent that the first server starts the explicit congestion notification, and the network congestion information represents the network congestion of the public cloud network; and sending an announcement message to the first server, so that the first server receives the announcement message, and the first server reduces the packet sending bandwidth of the first server based on the announcement message.
The implementation principle and the generated technical effect of the network congestion information transmission device provided by the embodiment of the present invention are the same as those of the foregoing network congestion information transmission method embodiment, and for the sake of brief description, corresponding contents in the foregoing network congestion information transmission method embodiment may be referred to where the embodiment of the network congestion information transmission device is not mentioned in part.
The embodiment of the invention also provides an electronic device, which is used for operating the network congestion information transmission method; referring to fig. 9, a schematic structural diagram of an electronic device includes a memory 100 and a processor 101, where the memory 100 is configured to store one or more computer instructions, and the one or more computer instructions are executed by the processor 101 to implement the network congestion information transmission method.
Further, the electronic device shown in fig. 9 further includes a bus 102 and a communication interface 103, and the processor 101, the communication interface 103, and the memory 100 are connected through the bus 102.
The Memory 100 may include a high-speed Random Access Memory (RAM) and may further include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used. The bus 102 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 9, but this does not indicate only one bus or one type of bus.
The processor 101 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 101. The Processor 101 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 100, and the processor 101 reads the information in the memory 100, and completes the steps of the method of the foregoing embodiment in combination with the hardware thereof.
An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions cause the processor to implement the network congestion information transmission method, where specific implementation may refer to method embodiments, and details are not described herein again.
The network congestion information transmission method and apparatus, the public cloud network, and the computer program product of the electronic device provided in the embodiments of the present invention include a computer-readable storage medium storing program codes, where instructions included in the program codes may be used to execute the method in the foregoing method embodiments, and specific implementations may refer to the method embodiments and are not described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and/or the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, an electronic device, or a network device) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (18)

1. A network congestion information transmission method is applied to a route forwarding device of a public cloud network, wherein the public cloud network comprises a first server, a first gateway, the route forwarding device, a second gateway and a second server which are sequentially connected, and the method comprises the following steps:
receiving a tunnel message sent by the first gateway; wherein, the tunnel message carries a mark representing whether the first server starts explicit congestion notification;
and acquiring network congestion information of the public cloud network, modifying or keeping a mark carried by the tunnel message based on the network congestion information, and sending the tunnel message to the second gateway, so that the second gateway generates a second message based on the tunnel message, and the second server determines the network congestion information of the public cloud network based on the second message.
2. The method of claim 1, wherein the IP headers of the second packet and the first packet generated by the first server carry labels, and wherein an outer IP header of a tunnel of the tunnel packet carries a label.
3. The method of claim 2, wherein the step of modifying or maintaining the label carried by the tunneling packet based on the network congestion information comprises:
analyzing the tunnel outer layer IP head of the tunnel message to obtain a mark carried by the tunnel message;
and modifying or keeping the mark carried by the tunnel message based on the network congestion information.
4. The method of claim 1, wherein the step of modifying or maintaining the label carried by the tunneling packet based on the network congestion information comprises:
if the mark carried by the tunnel message represents that the first server starts explicit congestion notification, and the network congestion information represents the network congestion of the public cloud network, modifying the mark carried by the tunnel message;
and if the mark carried by the tunnel message indicates that the first server does not start explicit congestion notification or the network congestion information indicates that the network of the public cloud network is not congested, keeping the mark carried by the tunnel message.
5. A network congestion information transmission method is applied to a first gateway of a public cloud network, wherein the public cloud network comprises a first server, the first gateway, a route forwarding device, a second gateway and a second server which are sequentially connected, and the method comprises the following steps:
receiving a first message sent by the first server; the first message carries a mark representing whether the first server starts explicit congestion notification or not;
packaging the first message into a tunnel message, and sending the tunnel message to the routing forwarding equipment; and the mark carried by the tunnel message is the same as the mark carried by the first message.
6. A network congestion information transmission method is applied to a second gateway of a public cloud network, wherein the public cloud network comprises a first server, the first gateway, a route forwarding device, the second gateway and a second server which are sequentially connected, and the method comprises the following steps:
receiving a tunnel message sent by the route forwarding equipment;
generating a second message based on the tunnel message, and sending the second message to the second server; and the mark carried by the second message is the same as the mark carried by the tunnel message.
7. The method according to claim 6, wherein the labels carried by the tunnel messages each include a user identifier of the first server; generating a second message based on the tunnel message, and sending the second message to the second server, including:
determining the second server matching the user identification based on the user identification of the first server;
and sending the second message to the second server matched with the user identifier.
8. The method according to claim 7, wherein the second gateway stores a correspondence between the second server and the user identifier in advance; the step of determining the second server matching the user identity based on the user identity of the first server comprises:
and searching the second server matched with the user identification of the first server from the corresponding relation.
9. A network congestion information transmission method is applied to a second server of a public cloud network, wherein the public cloud network comprises a first server, a first gateway, a route forwarding device, a second gateway and the second server which are sequentially connected, and the method comprises the following steps:
receiving a second message sent by the second gateway;
determining network congestion information of the public cloud network based on the second message.
10. The method of claim 9, wherein the step of determining the network congestion information of the public cloud network based on the second packet comprises:
and if the mark carried by the second message represents that the first server starts explicit congestion notification, determining the network congestion information of the public cloud network based on the second message.
11. The method of claim 9, wherein after the step of determining network congestion information for the public cloud network based on the second packet, the method further comprises:
if the second message carries a mark to represent that the first server starts explicit congestion notification, and the network congestion information represents the network congestion of the public cloud network; and sending an announcement message to the first server so that the first server receives the announcement message and reduces the packet sending bandwidth of the first server based on the announcement message.
12. A public cloud network, comprising: the system comprises a first server, a first gateway, route forwarding equipment, a second gateway and a second server which are connected in sequence;
the route forwarding device is used for executing the network congestion information transmission method of any one of claims 1 to 4;
the first gateway is configured to execute the network congestion information transmission method according to claim 5;
the second gateway is configured to perform the network congestion information transmission method according to any one of claims 6 to 8;
the second server is configured to execute the network congestion information transmission method according to any one of claims 9 to 11.
13. The utility model provides a network congestion information transmission device, its characterized in that is applied to the route forwarding equipment of public cloud network, public cloud network is including the first server, first gateway that connect gradually route forwarding equipment, second gateway and second server, the device includes:
a tunnel message acquisition module, configured to receive a tunnel message sent by the first gateway; wherein, the tunnel message carries a mark representing whether the first server starts explicit congestion notification;
and the tunnel message processing module is used for acquiring the network congestion information of the public cloud network, modifying or keeping a mark carried by the tunnel message based on the network congestion information, and sending the tunnel message to the second gateway, so that the second gateway generates a second message based on the tunnel message, and the second server determines the network congestion information of the public cloud network based on the second message.
14. The utility model provides a network congestion information transmission device, its characterized in that is applied to the first gateway of public cloud network, public cloud network is including the first server that connects gradually, first gateway, route forwarding device, second gateway and second server, the device includes:
the first message receiving module is used for receiving a first message sent by the first server; the first message carries a mark representing whether the first server starts explicit congestion notification or not;
a tunnel message encapsulation module, configured to encapsulate the first message into a tunnel message, and send the tunnel message to the route forwarding device; and the label carried by the tunnel message is the same as the label carried by the first message.
15. The utility model provides a network congestion information transmission device, its characterized in that is applied to the second gateway of public cloud network, public cloud network is including the first server, first gateway, route forwarding device, second gateway and the second server that connect gradually, the device includes:
a tunnel message receiving module, configured to receive a tunnel message sent by the route forwarding device;
the second message sending module is used for generating a second message based on the tunnel message and sending the second message to the second server; and the mark carried by the second message is the same as the mark carried by the tunnel message.
16. The utility model provides a network congestion information transmission device, its characterized in that is applied to the second server of public cloud network, public cloud network is including the first server, first gateway, route forwarding device, second gateway that connect gradually and the second server, the device includes:
the second message receiving module is used for receiving a second message sent by the second gateway;
and the second message processing module is used for determining the network congestion information of the public cloud network based on the second message.
17. An electronic device comprising a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to implement the steps of the network congestion information transmission method according to any one of claims 1 to 11.
18. A computer-readable storage medium storing computer-executable instructions that, when invoked and executed by a processor, cause the processor to perform the steps of the network congestion information transmission method of any of claims 1-11.
CN202210471018.4A 2022-04-28 2022-04-28 Network congestion information transmission method and device, public cloud network and electronic equipment Pending CN114826826A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210471018.4A CN114826826A (en) 2022-04-28 2022-04-28 Network congestion information transmission method and device, public cloud network and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210471018.4A CN114826826A (en) 2022-04-28 2022-04-28 Network congestion information transmission method and device, public cloud network and electronic equipment

Publications (1)

Publication Number Publication Date
CN114826826A true CN114826826A (en) 2022-07-29

Family

ID=82509842

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210471018.4A Pending CN114826826A (en) 2022-04-28 2022-04-28 Network congestion information transmission method and device, public cloud network and electronic equipment

Country Status (1)

Country Link
CN (1) CN114826826A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117714233A (en) * 2024-02-04 2024-03-15 珠海星云智联科技有限公司 Method, computer equipment and medium for tunnel message encapsulation

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624723A (en) * 2012-03-06 2012-08-01 杭州华三通信技术有限公司 Method and device for achieving explicit congestion notification
CN103532864A (en) * 2012-07-06 2014-01-22 华为技术有限公司 Uplink/downlink congestion information transmission method, apparatus and system
WO2014153780A1 (en) * 2013-03-29 2014-10-02 华为技术有限公司 Network congestion processing method, network node, and network system
CN111193653A (en) * 2019-12-31 2020-05-22 腾讯科技(深圳)有限公司 Data transmission method, device, equipment and storage medium
WO2021063028A1 (en) * 2019-09-30 2021-04-08 华为技术有限公司 Method and apparatus for providing network service for service, and computing device
CN113556273A (en) * 2021-07-19 2021-10-26 上海地面通信息网络股份有限公司 Data transmission method of three-network cloud intercommunication system
CN113726681A (en) * 2020-05-26 2021-11-30 华为技术有限公司 Network congestion control method and network equipment
CN114402640A (en) * 2019-10-04 2022-04-26 英特尔公司 Edge computing technique for point of presence optimization for transport layer congestion control and extended early quality of service notification based

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102624723A (en) * 2012-03-06 2012-08-01 杭州华三通信技术有限公司 Method and device for achieving explicit congestion notification
CN103532864A (en) * 2012-07-06 2014-01-22 华为技术有限公司 Uplink/downlink congestion information transmission method, apparatus and system
WO2014153780A1 (en) * 2013-03-29 2014-10-02 华为技术有限公司 Network congestion processing method, network node, and network system
WO2021063028A1 (en) * 2019-09-30 2021-04-08 华为技术有限公司 Method and apparatus for providing network service for service, and computing device
CN114402640A (en) * 2019-10-04 2022-04-26 英特尔公司 Edge computing technique for point of presence optimization for transport layer congestion control and extended early quality of service notification based
CN111193653A (en) * 2019-12-31 2020-05-22 腾讯科技(深圳)有限公司 Data transmission method, device, equipment and storage medium
CN113726681A (en) * 2020-05-26 2021-11-30 华为技术有限公司 Network congestion control method and network equipment
CN113556273A (en) * 2021-07-19 2021-10-26 上海地面通信息网络股份有限公司 Data transmission method of three-network cloud intercommunication system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117714233A (en) * 2024-02-04 2024-03-15 珠海星云智联科技有限公司 Method, computer equipment and medium for tunnel message encapsulation
CN117714233B (en) * 2024-02-04 2024-04-19 珠海星云智联科技有限公司 Method, computer equipment and medium for tunnel message encapsulation

Similar Documents

Publication Publication Date Title
US11882041B2 (en) Congestion notification packet indicating specific packet flow experiencing congestion to facilitate individual packet flow based transmission rate control
US20220078114A1 (en) Method and Apparatus for Providing Service for Traffic Flow
WO2018032961A1 (en) Information management method, apparatus and system
WO2014176740A1 (en) Stream classifier, service routing trigger, and message processing method and system
US20230247118A1 (en) Method for Processing Packet and Apparatus
CN112511988B (en) Message forwarding method, device, system, network device and storage medium
US20220255772A1 (en) Packet sending method, apparatus, and system
CN110855568B (en) Message forwarding method and system
US20220191138A1 (en) Method for Making Host Network Performance Requirement Programmable, Device, and System
CN111371634B (en) Communication method, device and system
WO2021238741A1 (en) Message forwarding method, system, device, node device, and storage medium
JP2022537296A (en) EVPN message transfer method, system, storage medium and terminal
CN107370654B (en) Pseudo wire data message encapsulation and decapsulation methods and related devices
CN107517225B (en) Protocol conversion method, gateway equipment and storage medium
CN114826826A (en) Network congestion information transmission method and device, public cloud network and electronic equipment
WO2017041534A1 (en) Power line network communication method and device, and computer storage media
CN110166361A (en) A kind of message forwarding method and device
CN112260927B (en) Message sending method, VTEP and storage medium
CN111277426A (en) IOAM information processing method and device
CN117376233A (en) Data processing method, device and system
WO2020147784A1 (en) Message decapsulation method and device, message encapsulation method and device, electronic device, and storage medium
CN115412507A (en) Data processing method, information determining equipment and storage medium
CN113794616B (en) Message forwarding method and device
CN116668375B (en) Message distribution method, device, network equipment and storage medium
WO2024021573A1 (en) Network slice-based communication method, electronic device, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination