WO2022237860A1 - Packet processing method, resource allocation method and related device - Google Patents

Packet processing method, resource allocation method and related device Download PDF

Info

Publication number
WO2022237860A1
WO2022237860A1 PCT/CN2022/092364 CN2022092364W WO2022237860A1 WO 2022237860 A1 WO2022237860 A1 WO 2022237860A1 CN 2022092364 W CN2022092364 W CN 2022092364W WO 2022237860 A1 WO2022237860 A1 WO 2022237860A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource
network device
indication information
message
user
Prior art date
Application number
PCT/CN2022/092364
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
Priority claimed from CN202110864867.1A external-priority patent/CN115941621A/en
Application filed by 华为云计算技术有限公司 filed Critical 华为云计算技术有限公司
Publication of WO2022237860A1 publication Critical patent/WO2022237860A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/72Admission control; Resource allocation using reservation actions during connection setup

Definitions

  • the embodiments of the present application relate to the communication field, and in particular, to a message processing method, a resource allocation method, and related devices.
  • a cloud data center network is a data center network in which multiple users share computing, storage, and network resources. It is composed of network cards, routers, and multi-protocol label switching (MPLS) switches.
  • MPLS multi-protocol label switching
  • network devices in the cloud data center network adopt a best-effort processing strategy when using resources to process packets. For example, when the resources in the network device are sufficient to process the received message, the network device processes the received message indiscriminately; when the resource in the network device is in short supply, the network device sends a pause to the upstream hop network device Indicates that the reception of the message has been suspended.
  • SLA service level agreement
  • the embodiment of the present application provides a message processing method, a resource allocation method, and related equipment, which are used to reserve a part of resources for processing messages related to the first user or the first service, which is beneficial to improve the efficiency of some users or some services. Packet processing efficiency, thereby ensuring the service delay, jitter, packet loss rate and other indicators of some users, and then improving the SLA level of some users.
  • the present application provides a message transmission method.
  • a message of a certain user for example, a first user
  • the network device can obtain the first indication information from other network equipment or a centralized management and control node, and the first indication information is used to indicate that the aforementioned first user is reserved for processing information related to the first user. resources of the packets, so that the network device can use the aforementioned resources to process the packets related to the first user.
  • a message related to the first user is referred to as a first message
  • the first message is one or more messages carrying a first identifier.
  • the resource indicated by the first indication information is referred to as the first resource, and the first resource is used to process the foregoing first message.
  • the network device may be any device in a network card, a router or a switch.
  • the processing of the first packet by the network device can be understood as that the network device directly forwards the first packet; it can also be understood that the network device parses the first packet and performs delete or add, and then forward the processed first packet to the next-hop network device according to the predetermined forwarding path.
  • the specific application is not limited.
  • a network device for example, a network device such as a switch, a router, and a network card
  • a network device can reserve a first resource for processing a message related to the first user (that is, the first message) based on the first indication information , so that the network device uses the aforementioned first resource to process the packets related to the first user, and then the network device can ensure the delay, jitter, packet loss rate and other indicators when processing the first packet, which is conducive to improving the first The SLA level of the user corresponding to the packet.
  • the network device does not perceive the user or the service of the user, which is not conducive to the network device improving the SLA level of the user for some users.
  • the identification granularity of the first identification may be different. If the identification granularity of the first identification is user level, then the first identification is used to identify the first user; if the identification granularity of the first identification is service level, then the first identification is used to identify the first user of the first user. business, the first user is a user who has applied for the first resource.
  • the first identifier is used to identify the first user.
  • the message related to the first user is the first message, and there is no need to distinguish other factors such as the session type to which the message belongs. That is to say, any service message related to the first user can use the first resource, that is, the network device can use the first resource to process any service message related to the first user.
  • the first message may be a message of any session related to the first user. For example, voice conversations, video conversations, text conversations, etc.
  • the session type to which the message belongs is not distinguished, which not only helps to save identification, but also helps to reduce the processing complexity of the network device.
  • the first identifier is used to identify the first service of the first user.
  • the message related to the first service of the first user is the first message, and the messages related to other services of the first user may not be the first message. That is to say, the packets related to the first service of the first user can use the first resource, and other services of the first user cannot use the first resource, that is, the network device can use the first resource to process the communication with the first user. Messages related to the first service, and messages related to other services of the first user cannot be processed.
  • the first service may be a service that requires high processing delay or packet loss rate, for example, a video call service. This implementation mode is beneficial to use the first resource for processing packets of services with stricter requirements on time delay and other indicators, and can improve resource utilization efficiency.
  • the first indication information received by the network device includes at least a configuration quota of the first resource and a first identifier, where the configuration quota of the first resource refers to the configuration allocated to the network device for processing the
  • the resource quota of a packet is the maximum amount of resources occupied by the network device when processing the first packet.
  • the network device after the network device receives the first indication information, it can reasonably allocate the amount of resources for processing the first message according to the configuration quota of the first resource determined by the first indication information, so as to avoid allocating resources for processing the first message. Too few resources affect the processing efficiency of the first message, and in order to avoid preempting the resources used to process the first message in the process of processing other messages. Therefore, it is possible to effectively avoid the influence of factors such as resource instability in the network on the processing efficiency of the first message, and slow down or avoid phenomena such as congestion or packet loss in the process of processing the first message.
  • the network device uses the first resource to process the first message, there is still some spare first resource in the network device, then the network device can use the spare first resource Resources are used to process other messages than the first message.
  • the network device uses the first resource to process the second message, and the second message does not carry the first identifier.
  • the network device does not change the configuration quota of the first resource, but the network device may use a part of the first resource for processing other packets.
  • the number of first packets received by the network device is small, and the amount of resources used by the network device to process the aforementioned first packets may be less than the configured quota of the first resources.
  • the network device may use idle
  • the first resource processes other packets (for example, a second packet that does not carry the first identifier).
  • the network device can take back the first resources used for processing other packets, so as to ensure that the network device has sufficient resources for processing the first packets.
  • This implementation mode can be used in a prepaid resource selling mode, for example, a prepaid bandwidth or prepaid traffic mode. It is beneficial to flexibly allocate resources for processing packets and improve resource utilization efficiency.
  • the method further includes: the network device adjusting the initial configuration quota to another configuration quota.
  • the method further includes: when the resource occupied by processing the first message drops to a first threshold, the network device lowers the configuration quota of the first resource; and/or, when When the resource occupied by processing the first message rises to a second threshold, the network device increases the configuration quota of the first resource, and the second threshold is greater than the first threshold.
  • the first threshold value and the second domain value are values preconfigured by the network management device, or may be values determined by parameters preconfigured by the network management device.
  • the network device can change the configuration quota of the first resource, which can be used in a postpaid resource selling mode, for example, in a postpaid traffic selling mode.
  • the first user determines to use resources when signing a contract with the cloud platform, but the amount of resources used is not fully agreed (for example, only an initial amount is agreed), and the cloud platform is allowed to instruct the network device or configure the network
  • the device adjusts on the basis of the aforementioned initial quota based on the actual traffic of the first user (for example, the number of packets related to the first user).
  • This embodiment can flexibly adjust the flow that the first user can use while ensuring the amount of resources used to process the first message, without the need for the first user to pay in advance, and pay according to the established price standard based on the used flow afterwards . It is beneficial to flexibly allocate resources for processing packets, improve resource utilization efficiency, and be applicable to application scenarios with random business traffic models.
  • the process for the network device to obtain the first indication information may specifically be: the network device receives a negotiation request message from the last-hop network device, and the negotiation request message is used to negotiate and configure the first resource , the negotiation request message carries the first indication information and the identifier of the last-hop network device. Then, when the network device determines that the first resource indicated by the first indication information can be reserved, the network device adds the identifier of the network device to the negotiation request message, and sends a message carrying the first resource to the next-hop network device.
  • a negotiation request message indicating information, the identifier of the last-hop network device, and the identifier of the network device.
  • the process for the network device to acquire the first indication information may specifically be: the network device receives the first indication information from a centralized management and control node.
  • the first indication information comes from the cloud platform, that is, the cloud platform determines the first indication information based on the subscription agreement with the first user, and then sends the aforementioned first indication information to the centralized management and control node, and then the centralized management and control node Sending the aforementioned first indication information to the aforementioned network device.
  • the centralized management and control node can obtain the resources available in each network device in the network in real time, and then the centralized management and control node determines the transmission path for transmitting the first message. Not only can it ensure the selection of the outbound transmission path and the backhaul transmission path, but it is also conducive to collecting information on various network devices.
  • the network device obtains the first indication information directly through the centralized management node without negotiating with other network devices to reserve resources, which is beneficial to improve management efficiency.
  • the present application provides a resource allocation method, in which the cloud platform configures the first resource for the network device in an out-of-band control manner. If the first user wants to obtain more efficient processing of the packets related to the first user to ensure the delay, jitter and packet loss rate of the first user's business, the first user can apply to the cloud platform for resources for processing packets related to the first user.
  • the cloud platform may receive a first resource application from a centralized management node or a source network instance corresponding to the first user, where the first resource application is used to request allocation of the first resource for the first user, and the first resource is used for the network
  • the device processes packets related to the first user.
  • the network device may be any device in a network card, a router or a switch.
  • FIG. 9B is a schematic diagram of another embodiment of a network device in the present application.
  • the system architecture includes source network instances, destination network instances, intermediate nodes and centralized control nodes.
  • the source network instance is the transmission starting point of the user's message, and is a virtual switch corresponding to a service instance (such as a container, a virtual machine, etc.) of the user
  • the destination network instance is the transmission end point of the user's message, and is another A virtual switch corresponding to a service instance (for example, a container, a virtual machine, etc.)
  • the intermediate node can be a network device, or a combination of multiple network devices, and can forward and process the aforementioned messages
  • the centralized management and control node can collect all Information of intermediate nodes, so as to select an appropriate transmission path for packet transmission between the source network instance and the destination network instance and reserve resources for processing packets in network devices on the transmission path.
  • message transmission from the source network instance to the destination network instance can be cross-delivery unit (point of delivery, PoD) intercommunication.
  • point of delivery point of delivery
  • the message passes from NIC_1 to the network device at the TOR_1 layer, the network device at the SPINE_1 layer, the network device at the CORE layer, the network device at the SPINE_2 layer, and the network at the TOR_2 layer
  • the device reaches destination network instance 1.
  • the packet transmission from the source network instance to the destination network instance can be interworking with the PoD.
  • the first indication information is used to instruct the network device to reserve the first resource, so that the network device can use the first resource to process the first message.
  • the first indication information indicates that the network device guarantees a certain amount of resources (that is, the first resource determined according to the first indication information) for processing the first packet, so as to avoid The resources used to process the first packet are preempted, which affects the processing efficiency of the network device for the first packet, and then causes congestion or packet loss during the processing of the first packet.
  • the first identifier is used to identify the first service of the first user.
  • the message related to the first service of the first user is the first message, and the messages related to other services of the first user may not be the first message. That is to say, the packets related to the first service of the first user can use the first resource, and other services of the first user cannot use the first resource, that is, the network device can use the first resource to process the communication with the first user. Messages related to the first service, and messages related to other services of the first user cannot be processed.
  • the first service may be a service that requires high processing delay or packet loss rate, for example, a video call service.
  • the network device may obtain the foregoing first indication information in various ways, which will be introduced respectively below:
  • the negotiation request message includes outbound transmission path information, and the outbound transmission path information includes all network devices that have processed the negotiation request message from the source network instance to the destination network instance logo.
  • the network device receives the first indication information from the centralized management and control node.
  • the network device receives outbound transmission path information and/or backhaul transmission path information from the centralized management and control node.
  • the centralized management and control node can collect the resource usage of each network device in real time, and the centralized management and control node can obtain the quota of the first resource reserved by the user. Therefore, the centralized management and control node can select a plurality of network devices capable of reserving the first resource between the source network instance and the destination network instance to form an outbound transmission path, and send The first instruction message.
  • the centralized management and control node also sends the aforementioned outbound transmission path information to the aforementioned network device capable of reserving the first resource.
  • the centralized management and control node may determine backhaul transmission path information in a similar manner, and instruct each network device on the backhaul transmission path to reserve resources.
  • Step 202 the network device acquires the first packet.
  • the first message is a message related to the first user, and the first message is a message carrying a first identifier. It can be understood that the first packet is a packet that needs to be processed with priority; it can also be understood that the first packet is a packet that needs to ensure a processing rate.
  • the network device is the first intermediate node connected to the source network instance, that is, the last-hop network device of the network device is the source network instance.
  • the manner in which the network device acquires the first packet may be: the network device adds the first identifier to the packet received from the source network instance to obtain the first packet.
  • the network device may be a network card (NIC) for adding the first identifier or the like.
  • NIC network card
  • Step 203 the network device uses the first resource to process the first packet.
  • the processing of the first message by the network device can be understood as that the network device directly forwards the first message, for example, the network device forwards the aforementioned first message to the next-hop network device based on a predetermined forwarding path , the forwarded message may contain the content of the first message in front; it can also be understood that the network device parses the first message, performs operations such as deletion or addition to the payload carried by the first message, and then processes The next first packet is forwarded to the next-hop network device according to the predetermined forwarding path.
  • the present application does not limit the specific process of processing the first packet by the network device.
  • the network device may divide multiple processing processes to process the received packets of different types respectively.
  • the network device when the network device receives the message 1, the network device recognizes that the message 1 does not carry the first identifier, then the network device transmits the message 1 to the second processing process, and the second processing process uses Other resources process message 1; at the same time, the network device receives message 2, and the network device recognizes that message 2 carries the first identifier, then the network device transmits message 2 to the first processing process, The message 2 uses the first resource to process the message 2; similarly, the network device receives the message 3, and the network device recognizes that the message 3 does not carry the first identifier, then the network device transmits the message 3 to Second processing process.
  • the network device will use the first resource to process message 2, message 4 and message 7 through the first processing process, and use the second resource to process message 1, message 3 and message 5 through the second processing process and message 6.
  • step 204 is an optional step.
  • the network device does not change the configuration quota of the first resource, but the network device may use a part of the first resource for processing other packets.
  • the number of first packets received by the network device is small, and the amount of resources used by the network device to process the aforementioned first packets may be less than the configured quota of the first resources.
  • the network device may use idle
  • the first resource processes other packets (for example, a second packet that does not carry the first identifier).
  • the network device can take back the first resources used for processing other packets, so as to ensure that the network device has sufficient resources for processing the first packets.
  • the network device may change the configuration quota of the first resource.
  • the network device when the resource occupied by processing the first message drops to a first threshold, the network device lowers the configuration quota of the first resource; and/or, when the resource occupied by processing the first message When it reaches a second threshold, the network device increases the configuration quota of the first resource, and the second threshold is greater than the first threshold.
  • the first threshold value and the second domain value are values preconfigured by the network management device. For example, if the configuration quota of the first resource is 10M, the aforementioned first threshold may be configured as 3M, and the second threshold may be configured as 7M. The first threshold and the second threshold may also be values determined by parameters preconfigured by the network management device.
  • This implementation mode can be used in a postpaid resource selling mode, for example, in a postpaid traffic selling mode.
  • the first user determines to use resources when signing a contract with the cloud platform, but the amount of resources used is not fully agreed (for example, only an initial amount is agreed), and the cloud platform is allowed to instruct the network device or configure the network
  • the device adjusts on the basis of the aforementioned initial quota based on the actual traffic of the first user (for example, the number of packets related to the first user).
  • This embodiment can flexibly adjust the flow that the first user can use while ensuring the amount of resources used to process the first message, without the need for the first user to pay in advance, and pay according to the established price standard based on the used flow afterwards . It is beneficial to flexibly allocate resources for processing packets, improve resource utilization efficiency, and be applicable to application scenarios with random business traffic models.
  • Step 205 the network device acquires second indication information, where the second indication information is used to indicate to revoke the first resource.
  • Step 206 the network device revokes the first resource according to the second indication information.
  • step 205 and step 206 are optional steps.
  • the cloud platform sends the second instruction information to the centralized management and control node, and then the centralized management and control node sends the second instruction information to the network device, and the second instruction information is used to instruct the cancellation of the first resource. resource.
  • the network device After the network device receives the aforementioned second indication information, the network device will release the first resource, so that the first resource becomes a common resource in the network device (that is, the first resource will no longer be dedicated to processing and first user-related message).
  • a network device for example, a network device such as a switch, a router, and a network card
  • a network device can reserve a first resource for processing a message (that is, a first message) related to the first user based on the first indication information, So that the network device can guarantee indicators such as time delay, jitter, and packet loss rate when processing the first packet.
  • the network device can also release the aforementioned first resource, so that the resources in the network device can be used for processing other packets. Therefore, not only is it beneficial to improve resource utilization efficiency, but it is also beneficial to improve the SLA level of the user corresponding to the first message.
  • the message of is an implementation of the aforementioned first message
  • resource 1 and resource 2 are an implementation of the aforementioned first resource.
  • step 401 the cloud platform configures an initial resource quota for the source network instance.
  • the cloud platform can configure an initial resource quota for the source network instance corresponding to user 1, and the initial resource quota is used to indicate that the Amount of resources used to process packets related to user 1.
  • the source network instance needs to transmit packets related to user 1, the source network instance will configure the resources available to each network device in the network for processing the packets related to user 1 in the way of path-associated negotiation.
  • Step 402 the source network instance sends a negotiation request packet 0 to the network device 1.
  • the negotiation request message 0 carries indication information 1
  • the indication information 1 is used to instruct the network device to reserve resource 1 for user 1 to process outbound packets, so that the network device can use the resource 1 to process and Outbound packets related to user 1.
  • the quota of resource 1 may be determined based on the aforementioned initial resource quota, for example, the quota of resource 1 is equal to the quota of resource 1 .
  • step 403 network device 1 sends a negotiation request message to the next-hop network device.
  • Step 404 the network device n sends a negotiation request message n to the destination network instance.
  • the network device 1 may search for a network device capable of reserving the aforementioned resource 1 according to the neighbor discovery protocol or other protocols.
  • the source network instance if the source network instance generates a negotiation request message 0 containing indication information 1, and the source network instance sends the negotiation request message 0 to network device 1; if network device 1 can reserve resource 1, the The network device 1 also encapsulates the identifier of the network device 1 into the aforementioned negotiation request message 0 to obtain a negotiation request message 1, which includes the indication information 1 and the identifier of the network device 1; then, the network device 1 follows The forwarding rule determines that the negotiation request message 1 is forwarded to the network device 2, and the negotiation request message 1 carries the indication information 1 and the identifier of the network device 1; if the network device 2 can reserve the resource 1, then the network device 2 will The identifier of 2 is also encapsulated into the foregoing negotiation request message 1 to obtain a negotiation request message 2, which carries the indication information 1, the identifier of the network device 1, and the identifier of the network device 2.
  • the switch a1 will encapsulate the identity of the switch a1 into the aforementioned negotiation request message, and follow the established discovery rules at the SPINE_1 layer Look for a SPINE switch that can reserve 2M resources as the next-hop network device.
  • the negotiation request message can pass through the switch a1 at the TOR_1 layer, the switch a2 at the SPINE_1 layer, the switch a3 at the CORE layer, the switch a4 at the SPINE_2 layer, and the switch a5 at the TOR_2 layer, and then reach the network card NIC_2 on the instance side of the destination network.
  • the negotiation request message carries the identifier of each network device capable of reserving 2M resources, that is, the outbound transmission path information.
  • Step 405 the destination network instance sends a negotiation response message 0 to the network device n.
  • the negotiation response message includes indication information 2, and the indication information 2 is used to instruct the network device to reserve a resource 2 for user 1 to process the backhaul message, so that the network device can use the resource 2 to process information related to user 1. return message.
  • Step 406 the network device n sends a negotiation response message to the next-hop network device.
  • Step 407 the network device 1 sends a negotiation response message n to the source network instance.
  • the destination network instance determines the backhaul transmission path information based on the outbound transmission path information, that is, the reverse path of the outbound transmission path is used as the backhaul transmission path.
  • the network device on the backhaul transmission path serves as the network device that reserves resource 2 .
  • the destination network instance searches for a network device capable of reserving the foregoing resource 2 based on a neighbor discovery protocol or other protocols.
  • the destination network instance if the destination network instance generates a negotiation response message 0 containing indication information 2, and the source network instance sends the negotiation response message 0 to network device n; if network device n can reserve resource 2, the The network device n also encapsulates the identifier of the network device n into the aforementioned negotiation response message 0 to obtain a negotiation response message 1, which includes the indication information 2 and the identifier of the network device n; then, the network device n according to Forwarding rules determine the next-hop network device. By analogy, until the negotiation response message (n ⁇ 1) is sent to the network device 1 . Then, the network device 1 transmits the negotiation response message n to the source network instance.
  • the negotiation response message n received by the source network instance includes indication information 2 and backhaul transmission path information.
  • the backhaul transmission path information is from the source network instance to The identification of each network device that can reserve resource 2 through which the destination network instance passes.
  • the destination network instance sends a negotiation response message to NIC_2.
  • the negotiation response message is not only used to request the reservation of 1M resources, but also carries information about the outbound transmission path.
  • the network card NIC_2 looks for a TOR switch capable of reserving 1M resources in the TOR_2 layer as the next-hop network device according to a predetermined discovery rule.
  • the switch b1 encapsulates the identity of the switch b1 into the aforementioned negotiation response message, and according to the established discovery rules at the SPINE_2 layer Search for a SPINE switch that can reserve 1M resources as the next-hop network device.
  • the negotiation response message can pass through the switch b1 at the TOR_2 layer, the switch b2 at the SPINE_2 layer, the switch b3 at the CORE layer, the switch b4 at the SPINE_1 layer, and the switch b5 at the TOR_1 layer, and then reach the network card NIC_1 on the instance side of the destination network.
  • the negotiation response message carries the identifier of each network device capable of reserving 1M resources, that is, the backhaul transmission path information.
  • the source network instance After the source network instance receives the aforementioned negotiation response message n, the source network instance sends an outbound message related to user 1 to the destination network instance through the network device indicated by the aforementioned outbound transmission path information. At the same time, the destination network instance may also send a backhaul packet related to user 1 to the source network instance through the aforementioned backhaul transmission path information.
  • Step 408 the network device adjusts the resource quota according to the number of packets related to user 1.
  • step 408 is an optional step.
  • the network device when the number of packets related to user 1 received by the network device decreases, the amount of resources used by the network device to process the packets related to user 1 will also decrease.
  • the network device lowers the configuration quota of resource 1 and/or the configuration quota of resource 2 .
  • the network device increases the configuration quota of resource 1 and/or the configuration quota of resource 2 .
  • the second threshold is greater than the first threshold.
  • the first threshold value and the second domain value are values preconfigured by the network management device.
  • the first threshold and the second threshold may also be values determined by parameters preconfigured by the network management device. For details, please refer to the relevant introduction in step 204 above.
  • Step 409 the network device feeds back the actual usage quota to the cloud platform.
  • the network device may adjust the aforementioned resource quota one or more times, and the network device may periodically feed back the resource quota currently used to process user 1's message to the cloud platform, so that the cloud platform or other billing units are based on Billing based on the amount of resources actually used.
  • the network device that has adjusted the resource quota can directly send the actual usage quota to the cloud platform, or can send the actual usage quota to the centralized management and control node, and then the centralized management and control node will send the aforementioned actual usage quota to the cloud platform.
  • the network device that has adjusted the resource quota can directly send the actual usage quota to the cloud platform, or can send the actual usage quota to the centralized management and control node, and then the centralized management and control node will send the aforementioned actual usage quota to the cloud platform.
  • This embodiment can be used in the resource sales mode of post-payment. While ensuring the amount of resources used to process the first message, it can flexibly adjust the traffic that the first user can use, without the need for the first user to pay in advance. Pay according to the established price standard according to the traffic used. It is beneficial to flexibly allocate resources for processing packets, improve resource utilization efficiency, and be applicable to application scenarios with random business traffic models.
  • Step 601 the source network instance sends a first resource application to the cloud platform.
  • the first resource application is used to apply for a resource for processing the message of the first user (ie, the foregoing first resource).
  • the first resource application may carry a first identifier, and the first identifier may be an identifier of the first user, or an identifier of a certain service of the first user.
  • the relevant introduction in the aforementioned step 201 please refer to the relevant introduction in the aforementioned step 201.
  • the source network instance may also send the first resource application to the centralized management and control node, and then the centralized management and control node forwards the aforementioned first resource application to the cloud platform.
  • Step 602 the cloud platform determines first indication information according to the first resource application.
  • the first indication information includes the aforementioned quota of the first resource.
  • the first indication information further includes a first identifier.
  • the cloud platform may determine the quota of the first resource according to the service agreement SLA signed with the first user. For example, if the first user orders 10M resources on the cloud platform, the cloud platform determines that 10M resources can be configured for the first user.
  • Step 603 the cloud platform sends first indication information to the centralized management and control node.
  • the negotiation request message carries the identifier of each network device capable of reserving 2M resources, that is, the outbound transmission path information.
  • the centralized management and control node collects the amount of idle resources of network devices at TOR_1 layer, SPINE_1 layer, CORE layer, SPINE_2 layer, TOR_1 layer and other network layers. Then, the centralized management and control node determines the network equipment capable of reserving 2M resources according to the amount of idle resources of the network equipment at each network layer.
  • the centralized management and control node may also determine another transmission path as the backhaul transmission path based on the amount of idle resources of network devices at the TOR_1 layer, SPINE_1 layer, CORE layer, SPINE_2 layer, TOR_1 layer, and other network layers.
  • the backhaul transmission path may be switch b1-switch b2-switch b3-switch b4-switch b5.
  • Step 605a the centralized management and control node sends outbound transmission path information to the source network instance.
  • the outbound transmission path information includes identifiers of network devices capable of reserving the first resource between the source network instance and the destination network instance.
  • the backhaul transmission path information includes identifiers of network devices capable of reserving the first resource between the destination network instance and the source network instance.
  • Step 606 the centralized management and control node sends the first indication information and the transmission path information to the network device.
  • the centralized management and control node will send the first indication information and the transmission path information to each network device on the transmission path.
  • Step 607 the cloud platform sends second indication information to the centralized management and control node.
  • Step 608 the centralized management and control node sends second indication information to the network device.
  • the centralized management and control node will send the second indication information to each network device on the transmission path.
  • the cloud platform or the centralized management and control node when the first resource purchased by the first user expires, the cloud platform or the centralized management and control node will send the second indication information to the network device, where the second indication information is used to indicate the withdrawal of the first resource. After the network device receives the aforementioned second indication information, the network device will release the first resource, so that the first resource becomes a common resource in the network device (that is, the first resource will no longer be dedicated to processing and first user-related message).
  • This embodiment can be used in a prepaid resource selling mode, where the centralized management and control node can acquire resources available in each network device in the network in real time, and then the centralized management and control node determines the transmission path for transmitting the first message. Not only can it ensure the selection of the outbound transmission path and the backhaul transmission path, but it is also conducive to collecting information on various network devices.
  • the network device obtains the first indication information directly through the centralized management node without negotiating with other network devices to reserve resources, which is beneficial to improve management efficiency.
  • the network device 80 may be a network card (NIC), a switch, or a router.
  • NIC network card
  • the network device 80 may be a ToR switch, a Spine switch, or a Core switch.
  • the network devices in the foregoing method embodiments corresponding to FIG. 2 , FIG. 6 , and FIG. 4 may be based on the structure of the network device 80 shown in FIG. 8 .
  • the network device 80 includes at least one processor 801 and at least one memory 802 . It should be understood that FIG. 8 only shows one processor 801 and one memory 802 .
  • the processor 801 may be a general-purpose central processing unit (central processing unit, CPU), a microprocessor, a network processor (network processor, NP) or a specific application integrated circuit (application-specific integrated circuit), or one or more An integrated circuit for controlling the program execution of the scheme of the present application.
  • the foregoing processor 801 may be a single-core (single-CPU) processor, or may be a multi-core (multi-CPU) processor.
  • Processor 801 may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • the processor 801 can be an independent semiconductor chip, or can be integrated with other circuits to form a semiconductor chip, for example, can form a single semiconductor chip with other circuits (such as codec circuits, hardware acceleration circuits, or various bus and interface circuits).
  • a system on a chip system-on-a-chip, SoC
  • SoC system-on-a-chip
  • ASIC application specific integrated circuit
  • the memory 802 is also used to store program codes for executing the technical solutions of the embodiments of the present application.
  • the foregoing program codes may be controlled and executed by the processor 801, and various types of computer program codes executed may also be regarded as drivers of the processor 801. Therefore, the processor 801 may reserve the first resource according to the first indication information, and use the first resource to process the first packet.
  • the processor 801 may use the first resource to process the second message when the amount of resources occupied by the network device when processing the first message is less than the configured quota of the first resource, and the second message The first identifier is not carried.
  • the processor 801 may reduce the configuration quota of the first resource when the resource occupied by processing the first message drops to a first threshold; and/or, when the resource occupied by processing the first message When the resource rises to a second threshold, the allocation quota of the first resource is increased, and the second threshold is greater than the first threshold.
  • the communication interface 803 may receive a negotiation request message from an upper-hop network device, the negotiation request message is used to negotiate and configure the first resource, and the negotiation request message carries the first indication information and the last-hop network device.
  • the identity of the device For example, the communication interface 803 may send a negotiation request message carrying the first indication information, the identifier of the last-hop network device, and the identifier of the network device to the next-hop network device.
  • the internal structure of the network device may be as shown in FIG. 9A , FIG. 9B or FIG. 9C .
  • the network device includes at least one CPU and at least one ASIC chip.
  • the ASIC chip includes a control module and a forwarding module, the forwarding module is used to classify the messages in the ingress queue according to certain rules and transmit them to an egress queue; the control module is used to control each egress queue according to the received instructions resources used.
  • the internal structure of the network device may be as shown in FIG. 9A .
  • the CPU is used to process instructions or messages from the centralized management and control node, and then process the aforementioned instructions or messages, and send the processing results to the control module, so that the control module controls the messages added to the egress queue according to the aforementioned processing results.
  • the internal structure of the network device may be as shown in FIG. 9B .
  • the negotiation request message or the negotiation response message enters the ASIC chip through the ingress queue of the data plane, and the forwarding module forwards the aforementioned negotiation request message or the negotiation response message to the control module for processing, so that the control module is based on the first The indication information or the second indication information controls the egress queue.
  • This implementation mode is a hardware offloading solution, which is suitable for scenarios requiring high timeliness of configuration (the effective time is at the nanosecond level), and is conducive to real-time configuration, adjustment or withdrawal of resources.
  • the internal structure of the network device may be as shown in FIG. 9C .
  • the negotiation request message or the negotiation response message enters the ASIC chip through the ingress queue of the data plane, and the forwarding module forwards the aforementioned negotiation request message or the negotiation response message to the CPU outside the ASIC chip for processing, and the CPU then feeds back the processing result to the control module, so that the control module controls the egress queue based on the first indication information or the second indication information.
  • This implementation mode is a software-hardware coordination solution. Compared with the aforementioned hardware offloading solution, all logic is solidified in the chip.
  • the software-hardware coordination solution introduces switching network elements, which is beneficial to improve the flexibility of software implementation.
  • FIG. 10 it is a schematic structural diagram of a cloud platform provided by an embodiment of the present application.
  • the cloud platform 100 may be a server, a large-scale computing device or a large-scale management device, which is not specifically limited here.
  • the cloud platforms in the aforementioned method embodiments corresponding to FIG. 4 and FIG. 6 may be based on the structure of the cloud platform 100 shown in FIG. 10 .
  • the cloud platform 100 may include a processor 1010 , a memory 1020 and a communication interface 1030 .
  • the processor 1010 is coupled to the memory 1020
  • the processor 1010 is coupled to the communication interface 1030 .
  • the foregoing communication interface 1030 may also be referred to as a network interface or the like.
  • the communication interface 1030 is used to communicate with other servers or network devices, so that the cloud platform can receive instructions or data from other devices or servers, or enable the cloud platform to send instructions or data to other devices or servers.
  • the communication interface 1030 may be directly or indirectly connected to the centralized management and control unit, so as to receive the resource application related to the first user (for example, the first resource application introduced above) from the centralized management and control node, so as to facilitate the
  • the centralized management and control unit sends indication information (for example, the first indication information or the second indication information introduced above).
  • the aforementioned processor 1010 may be a central processing unit CPU, a network processor NP or a combination of CPU and NP.
  • the processor can also be an application-specific integrated circuit (application-specific integrated circuit, ASIC), a programmable logic device (programmable logic device, PLD) or a combination thereof.
  • ASIC application-specific integrated circuit
  • PLD programmable logic device
  • the aforementioned PLD may be a complex programmable logic device (complex programmable logic device, CPLD), a field-programmable gate array (field-programmable gate array, FPGA), a general array logic (generic array logic, GAL) or any combination thereof.
  • Processor 1010 may refer to one processor, or may include multiple processors.
  • the aforementioned memory 1020 is mainly used to store software programs and data.
  • the memory 1020 may exist independently and be connected with the processor 1010 .
  • the memory 1020 may be integrated with the processor 1010, for example, integrated into one or more chips.
  • the memory 1020 can store program codes for executing the technical solutions of the embodiments of the present application, and the execution is controlled by the processor 1010 , and various types of computer program codes to be executed can also be regarded as drivers for the processor 1010 .
  • the memory 1020 may include a volatile memory (volatile memory), such as a random-access memory (random-access memory, RAM); the memory may also include a non-volatile memory (non-volatile memory), such as a read-only memory (read-only memory). only memory, ROM), flash memory (flash memory), hard disk (hard disk drive, HDD) or solid-state drive (solid-state drive, SSD); the memory 1020 may also include a combination of the above-mentioned types of memory.
  • the storage 1020 may refer to one storage, or may include multiple storages.
  • computer-readable instructions are stored in the memory 1020 , and the computer-readable instructions include a plurality of software modules, such as a sending module 1021 , a processing module 1022 and a receiving module 1023 .
  • the processor 1010 may perform corresponding operations according to the instructions of each software module.
  • an operation performed by a software module actually refers to an operation performed by the processor 1010 according to an instruction of the software module.
  • the receiving module 1023 in the cloud platform 100 receives a first resource application, and the first resource application is used to request allocation of a first resource for the first user, and the first resource is used for the network device to process and communicate with the first user. related messages.
  • the processing module 1022 generates first indication information based on the first resource application, so as to directly or indirectly instruct the network device to reserve the first resource through the first indication information.
  • the first resource application includes a first identifier, the first identifier is related to the first user, and the message related to the first user is a first message carrying the first identifier.
  • the first resource application includes a configuration quota of the first resource and the first identifier, and the configuration quota of the first resource is a maximum amount of resources occupied by the network device when processing the first packet.
  • the sending module 1021 in the cloud platform 100 sends the first indication information to the centralized management and control node, so that the centralized management and control node sends the first indication information to multiple network devices, and each of the multiple network devices A network device is used to process the first packet.
  • the sending module 1021 in the cloud platform 100 sends the second indication information to the centralized management and control node when the first resource expires, so that the centralized management and control node sends the second indication information to multiple network devices , the second indication information is used to instruct the network device to revoke the first resource.
  • the sending module 1021 in the cloud platform 100 sends an initial resource quota to the source network instance, and the initial resource quota is used to determine a first resource, and the first resource is used for the network device to process the message related to the first user , the first user is a user who needs to reserve resources;
  • the receiving module 1023 in the cloud platform 100 receives an actual resource quota from the network device, and the actual resource quota is an actual resource amount occupied by the network device for processing the message related to the first user.
  • the message related to the first user is a first message carrying a first identifier, and the first identifier is used to identify the first user, or, the first identifier is used to identify the first user's a business.
  • the present application also provides a computer-readable storage medium, the storage medium stores a computer program, and the computer program is executed by a processor to implement the methods related to the network device in the aforementioned FIG. 2 , FIG. 4 and FIG. 6 .
  • the present application also provides a computer-readable storage medium, the storage medium stores a computer program, and the computer program is executed by a processor to implement the methods related to the cloud platform in FIG. 4 and FIG. 6 .

Landscapes

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

Abstract

Disclosed in the embodiments of the present application are a packet processing method, a resource allocation method and a related device, which are used for reserving some resources dedicated to processing a packet related to a first user or a first service, so as to facilitate improving the processing efficiency of packets of some users or some services, thereby safeguarding indexes of services of some users, such as delay, jitter and packet loss rate, and further improving the level of service level agreements (SLAs) of some users.

Description

报文处理方法、资源分配方法以及相关设备Message processing method, resource allocation method and related equipment 技术领域technical field
本申请实施例涉及通信领域,尤其涉及报文处理方法、资源分配方法以及相关设备。The embodiments of the present application relate to the communication field, and in particular, to a message processing method, a resource allocation method, and related devices.
背景技术Background technique
云数据中心网络是一种多用户共享计算、存储和网络等资源的数据中心网络,由网卡、路由器和多协议标签交换(multi-protocol label switching,MPLS)交换机等网络设备组成。A cloud data center network is a data center network in which multiple users share computing, storage, and network resources. It is composed of network cards, routers, and multi-protocol label switching (MPLS) switches.
目前,云数据中心网络中的网络设备在使用资源处理报文时采用尽力而为(best-effort)的处理策略。例如,当网络设备中的资源足以处理收到的报文时,该网络设备则无差别地处理收到的报文;当网络设备中的资源紧缺时,该网络设备向上游跳网络设备发送暂停指示,已暂缓接收报文。Currently, network devices in the cloud data center network adopt a best-effort processing strategy when using resources to process packets. For example, when the resources in the network device are sufficient to process the received message, the network device processes the received message indiscriminately; when the resource in the network device is in short supply, the network device sends a pause to the upstream hop network device Indicates that the reception of the message has been suspended.
然而,订购云数据中心网络的服务的用户并不是无差别的,例如,可能存在不同优先等级的用户。目前网络设备的报文处理机制可能导致网络设备在处理低优先级的用户的报文时影响了高优先级的用户的报文处理,导致部分用户的服务水平协议(service level agreement,SLA)无法得到保障,不利于针对不同的用户提供不同的SLA。However, users subscribing to services of the cloud data center network are not indiscriminate, for example, there may be users with different priority levels. The current packet processing mechanism of network equipment may cause the network equipment to affect the packet processing of high-priority users when the network equipment processes the packets of low-priority users, resulting in the failure of the service level agreement (SLA) of some users. It is not conducive to providing different SLAs for different users.
发明内容Contents of the invention
本申请实施例提供了一种报文处理方法、资源分配方法以及相关设备,用于预留一部分资源专用于处理与第一用户或第一业务相关报文,有利于提高部分用户或部分业务的报文的处理效率,进而保证部分用户的业务的时延、抖动、丢包率等指标,进而提升部分用户的SLA的水平。The embodiment of the present application provides a message processing method, a resource allocation method, and related equipment, which are used to reserve a part of resources for processing messages related to the first user or the first service, which is beneficial to improve the efficiency of some users or some services. Packet processing efficiency, thereby ensuring the service delay, jitter, packet loss rate and other indicators of some users, and then improving the SLA level of some users.
第一方面,本申请提供了一种报文传输方法,在该方法中,当某一个用户(例如,第一用户)的报文需要经由网络设备处理,并且,与该第一用户相关的报文需要获得较高效的处理时,网络设备可以其他网络设备或集中管控节点获取第一指示信息,该第一指示信息用于指示为前述第一用户预留用于处理与该第一用户相关的报文的资源,以使得该网络设备能够使用前述资源处理与第一用户相关的报文。本申请中将与第一用户相关的报文称为第一报文,该第一报文为携带第一标识的一个或多个报文。此外,本申请将第一指示信息指示预留的资源称为第一资源,该第一资源用于处理前述第一报文。In the first aspect, the present application provides a message transmission method. In this method, when a message of a certain user (for example, a first user) needs to be processed by a network device, and the message related to the first user When the text needs to be processed more efficiently, the network device can obtain the first indication information from other network equipment or a centralized management and control node, and the first indication information is used to indicate that the aforementioned first user is reserved for processing information related to the first user. resources of the packets, so that the network device can use the aforementioned resources to process the packets related to the first user. In this application, a message related to the first user is referred to as a first message, and the first message is one or more messages carrying a first identifier. In addition, in this application, the resource indicated by the first indication information is referred to as the first resource, and the first resource is used to process the foregoing first message.
其中,网络设备可以是网卡、路由器或交换机中任意一种设备。Wherein, the network device may be any device in a network card, a router or a switch.
其中,网络设备对第一报文的处理,可以理解为,网络设备直接对第一报文进行转发处理;也可以理解为,网络设备解析第一报文,对第一报文携带的载荷执行了删减或增添等动作,然后,将处理后的第一报文按照预先确定的转发路径转发至下一跳网络设备。具体本申请不做限定。Wherein, the processing of the first packet by the network device can be understood as that the network device directly forwards the first packet; it can also be understood that the network device parses the first packet and performs delete or add, and then forward the processed first packet to the next-hop network device according to the predetermined forwarding path. The specific application is not limited.
本实施例中,网络设备(例如,交换器、路由器以及网卡等网络设备)能够基于第一指示信息预留用于处理与第一用户相关的报文(即第一报文)的第一资源,以使得该网络设备采用前述第一资源处理与第一用户相关的报文,进而该网络设备在处理第一报文时能够保证时延、抖动、丢包率等指标,有利于提升第一报文对应的用户的SLA的水平。而传统技术中,网络设备不感知用户,也不感知用户的业务,不利于网络设备针对部分用户提高用户的SLA的水平。In this embodiment, a network device (for example, a network device such as a switch, a router, and a network card) can reserve a first resource for processing a message related to the first user (that is, the first message) based on the first indication information , so that the network device uses the aforementioned first resource to process the packets related to the first user, and then the network device can ensure the delay, jitter, packet loss rate and other indicators when processing the first packet, which is conducive to improving the first The SLA level of the user corresponding to the packet. However, in the traditional technology, the network device does not perceive the user or the service of the user, which is not conducive to the network device improving the SLA level of the user for some users.
在一种可能的实施方式中,第一标识的标识粒度可以不同。若该第一标识的标识粒度为用户级别,则该第一标识用于标识第一用户;若该第一标识的标识粒度为业务级别,则该第一标识用于标识第一用户的第一业务,该第一用户为已申请该第一资源的用户。In a possible implementation manner, the identification granularity of the first identification may be different. If the identification granularity of the first identification is user level, then the first identification is used to identify the first user; if the identification granularity of the first identification is service level, then the first identification is used to identify the first user of the first user. business, the first user is a user who has applied for the first resource.
在一种可选的实施方式中,该第一标识用于标识第一用户。In an optional implementation manner, the first identifier is used to identify the first user.
本实施方式中,与第一用户相关的报文即为第一报文,无需区分报文所属的会话类型等其他因素。也就是说,与第一用户相关的任何业务的报文都可以使用前述第一资源,即网络设备可以使用第一资源处理与第一用户相关的任何业务的报文。示例性的,第一报文可以是与第一用户相关的任何会话的报文。例如,语音类会话、视频类会话、文字类会话等。本实施方式,不区分报文所属的会话类型,不仅有利于节约标识,还有利于降低网络设备的处理复杂度。In this implementation manner, the message related to the first user is the first message, and there is no need to distinguish other factors such as the session type to which the message belongs. That is to say, any service message related to the first user can use the first resource, that is, the network device can use the first resource to process any service message related to the first user. Exemplarily, the first message may be a message of any session related to the first user. For example, voice conversations, video conversations, text conversations, etc. In this implementation manner, the session type to which the message belongs is not distinguished, which not only helps to save identification, but also helps to reduce the processing complexity of the network device.
在另一种可选的实施方式中,该第一标识用于标识该第一用户的第一业务。In another optional implementation manner, the first identifier is used to identify the first service of the first user.
本实施方式中,与第一用户的第一业务相关的报文为第一报文,与第一用户的其他业务相关的报文可能不是第一报文。也就是说,与第一用户的第一业务相关的报文可以使用第一资源,该第一用户的其他业务不能使用前述第一资源,即网络设备可以使用第一资源处理与第一用户的第一业务相关的报文,而不能处理该第一用户的其他业务相关的报文。该第一业务可以是对处理时延或丢包率要求较高的业务,例如,视频通话类业务。本实施方式,有利于将第一资源用于处理对时延等指标要求更苛刻的业务的报文,能够提升资源的利用效率。In this embodiment, the message related to the first service of the first user is the first message, and the messages related to other services of the first user may not be the first message. That is to say, the packets related to the first service of the first user can use the first resource, and other services of the first user cannot use the first resource, that is, the network device can use the first resource to process the communication with the first user. Messages related to the first service, and messages related to other services of the first user cannot be processed. The first service may be a service that requires high processing delay or packet loss rate, for example, a video call service. This implementation mode is beneficial to use the first resource for processing packets of services with stricter requirements on time delay and other indicators, and can improve resource utilization efficiency.
在一种可能的实施方式中,网络设备收到的第一指示信息至少包括第一资源的配置额度和第一标识,其中,第一资源的配置额度指配置给该网络设备的用于处理第一报文的资源额度,是网络设备处理该第一报文时占用的资源量的最大值。In a possible implementation manner, the first indication information received by the network device includes at least a configuration quota of the first resource and a first identifier, where the configuration quota of the first resource refers to the configuration allocated to the network device for processing the The resource quota of a packet is the maximum amount of resources occupied by the network device when processing the first packet.
其中,该第一资源的配置额度可以是初始配置额度,例如,该网络设备首次收到的用于处理与第一用户相关的报文的资源额度;该第一资源的配置额度也可以是更新的配置额度,例如,网络设备在收到初始配置额度之后,若第一用户修改了资费套餐,则该网络设备可能由会收到一个配置额度,新收到的配置额度将替换前述初始配置额度。Wherein, the configuration quota of the first resource may be an initial configuration quota, for example, the resource quota received by the network device for the first time for processing a message related to the first user; the configuration quota of the first resource may also be an update For example, after the network device receives the initial configuration quota, if the first user modifies the tariff package, the network device may receive a configuration quota, and the newly received configuration quota will replace the aforementioned initial configuration quota .
本实施方式中,网络设备在收到第一指示信息之后,可以根据第一指示信息确定的第一资源的配置额度合理分配处理第一报文的资源量,以避免分配给处理第一报文的资源过少而影响第一报文的处理效率,也为了避免在处理其他报文的过程中抢占用于处理第一报文的资源。因此,能够有效避免网络中资源不稳定等因素对第一报文的处理效率的影响,减缓或避免第一报文的处理过程出现拥塞或丢包等现象。In this embodiment, after the network device receives the first indication information, it can reasonably allocate the amount of resources for processing the first message according to the configuration quota of the first resource determined by the first indication information, so as to avoid allocating resources for processing the first message. Too few resources affect the processing efficiency of the first message, and in order to avoid preempting the resources used to process the first message in the process of processing other messages. Therefore, it is possible to effectively avoid the influence of factors such as resource instability in the network on the processing efficiency of the first message, and slow down or avoid phenomena such as congestion or packet loss in the process of processing the first message.
在一种可能的实施方式中,若网络设备在采用第一资源处理第一报文时,该网络 设备中的还存在一部分空余的第一资源,则该网络设备可以将这部分空余的第一资源用于处理除了第一报文以外的其他报文。示例性的,当该网络设备处理该第一报文时占用的资源量小于该第一资源的配置额度时,该网络设备采用该第一资源处理第二报文,该第二报文未携带该第一标识。In a possible implementation manner, if the network device uses the first resource to process the first message, there is still some spare first resource in the network device, then the network device can use the spare first resource Resources are used to process other messages than the first message. Exemplarily, when the amount of resources occupied by the network device when processing the first message is less than the configured quota of the first resource, the network device uses the first resource to process the second message, and the second message does not carry the first identifier.
本实施方式中,网络设备不改变第一资源的配置额度,但是,该网络设备可以将第一资源中的一部分资源用于处理其他报文。示例性的,网络设备收到的第一报文的数量较少,该网络设备处理前述第一报文所使用的资源量可能小于第一资源的配置额度,此时,该网络设备可以采用空闲的第一资源处理其他报文(例如,第二报文,该第二报文未携带该第一标识)。当网络设备收到的第一报文的数量上升,则该网络设备能够将用于处理其他报文的第一资源收回,以保证该网络设备能够有足够的资源用于处理第一报文。本实施方式,可以用于预付费的资源售卖模式中,例如,预付带宽或预付流量的模式中。有利于灵活分配用于处理报文的资源,提高资源的利用效率。In this implementation manner, the network device does not change the configuration quota of the first resource, but the network device may use a part of the first resource for processing other packets. Exemplarily, the number of first packets received by the network device is small, and the amount of resources used by the network device to process the aforementioned first packets may be less than the configured quota of the first resources. At this time, the network device may use idle The first resource processes other packets (for example, a second packet that does not carry the first identifier). When the number of first packets received by the network device increases, the network device can take back the first resources used for processing other packets, so as to ensure that the network device has sufficient resources for processing the first packets. This implementation mode can be used in a prepaid resource selling mode, for example, a prepaid bandwidth or prepaid traffic mode. It is beneficial to flexibly allocate resources for processing packets and improve resource utilization efficiency.
在一种可能的实施方式中,若第一资源的配置额度为与该第一用户相关的初始配置额度,则该方法还包括:该网络设备调整该初始配置额度到另一个配置额度。In a possible implementation manner, if the configuration quota of the first resource is an initial configuration quota related to the first user, the method further includes: the network device adjusting the initial configuration quota to another configuration quota.
在一种可能的实施方式中,该方法还包括:当处理该第一报文所占用的资源下降至第一阈值时,该网络设备调低该第一资源的配置额度;和/或,当处理该第一报文所占用的资源上升至第二阈值时,该网络设备调高该第一资源的配置额度,该第二阈值大于该第一阈值。其中,第一阈值和第二域值是网络管理设备预先配置的取值,也可以是网络管理设备预先配置的参数确定的取值。In a possible implementation manner, the method further includes: when the resource occupied by processing the first message drops to a first threshold, the network device lowers the configuration quota of the first resource; and/or, when When the resource occupied by processing the first message rises to a second threshold, the network device increases the configuration quota of the first resource, and the second threshold is greater than the first threshold. Wherein, the first threshold value and the second domain value are values preconfigured by the network management device, or may be values determined by parameters preconfigured by the network management device.
本实施方式中,网络设备可以改变第一资源的配置额度,可以用于后付费的资源售卖模式中,例如,后付费流量售卖模式中。示例性的,第一用户在与云平台签约时确定要使用资源,但使用的资源的额度并未完全约定(例如,仅约定了一个初始额度),并且,允许云平台指示网络设备或配置网络设备基于第一用户的实际流量(例如,与第一用户相关的报文数量)在前述初始额度的基础上进行调整。本实施方式,可以在保证用于处理第一报文的资源量的同时,能够灵活调整第一用户能够使用的流量,无需第一用户提前给付费用,事后根据已使用的流量按照既定价格标准付费。有利于灵活分配用于处理报文的资源,提高资源的利用效率,能够适用于业务流量模型随机的应用场景。In this embodiment, the network device can change the configuration quota of the first resource, which can be used in a postpaid resource selling mode, for example, in a postpaid traffic selling mode. Exemplarily, the first user determines to use resources when signing a contract with the cloud platform, but the amount of resources used is not fully agreed (for example, only an initial amount is agreed), and the cloud platform is allowed to instruct the network device or configure the network The device adjusts on the basis of the aforementioned initial quota based on the actual traffic of the first user (for example, the number of packets related to the first user). This embodiment can flexibly adjust the flow that the first user can use while ensuring the amount of resources used to process the first message, without the need for the first user to pay in advance, and pay according to the established price standard based on the used flow afterwards . It is beneficial to flexibly allocate resources for processing packets, improve resource utilization efficiency, and be applicable to application scenarios with random business traffic models.
在一种可能的实施方式中,该网络设备获取第一指示信息的过程具体可以为:该网络设备从上一跳网络设备接收协商请求报文,该协商请求报文用于协商配置第一资源,该协商请求报文携带该第一指示信息和该上一跳网络设备的标识。然后,当该网络设备确定能够预留该第一指示信息指示的第一资源时,该网络设备在该协商请求报文中添加该网络设备的标识,并向下一跳网络设备发送携带该第一指示信息、该上一跳网络设备的标识和该网络设备的标识的协商请求报文。In a possible implementation manner, the process for the network device to obtain the first indication information may specifically be: the network device receives a negotiation request message from the last-hop network device, and the negotiation request message is used to negotiate and configure the first resource , the negotiation request message carries the first indication information and the identifier of the last-hop network device. Then, when the network device determines that the first resource indicated by the first indication information can be reserved, the network device adds the identifier of the network device to the negotiation request message, and sends a message carrying the first resource to the next-hop network device. A negotiation request message indicating information, the identifier of the last-hop network device, and the identifier of the network device.
本实施方式中,提出通过带内控制的方式协商资源,适用于对配置时效性要求较高的场景,例如,要求生效时间在纳秒级别的场景。本实施方式,处理时延小,能够通过数据面的报文实现对网络设备的配置,有利于提升第一资源的配置效率。另外,本实施例可以用于后付费的资源售卖模式中,可以在保证用于处理第一报文的资源量的同时,能够灵活调整第一用户能够使用的流量,无需第一用户提前给付费用,事后 根据已使用的流量按照既定价格标准付费。有利于灵活分配用于处理报文的资源,提高资源的利用效率,能够适用于业务流量模型随机的应用场景。In this embodiment, it is proposed to negotiate resources through in-band control, which is applicable to scenarios that require high configuration timeliness, for example, scenarios that require the effective time to be at the nanosecond level. In this implementation manner, the processing delay is small, and the configuration of the network device can be realized through the packets on the data plane, which is beneficial to improve the configuration efficiency of the first resource. In addition, this embodiment can be used in the post-paid resource selling mode, which can flexibly adjust the traffic that the first user can use while ensuring the amount of resources used to process the first message, without the need for the first user to pay in advance , pay according to the established price standard according to the traffic used afterwards. It is beneficial to flexibly allocate resources for processing packets, improve resource utilization efficiency, and be applicable to application scenarios with random business traffic models.
在一种可能的实施方式中,该网络设备获取第一指示信息的过程具体可以为:该网络设备从集中管控节点接收第一指示信息。可选的,该第一指示信息来自于云平台,即云平台基于与第一用户的订购协议确定第一指示信息,然后,将前述第一指示信息发送给集中管控节点,然后,集中管控节点将前述第一指示信息发送给前述网络设备。In a possible implementation manner, the process for the network device to acquire the first indication information may specifically be: the network device receives the first indication information from a centralized management and control node. Optionally, the first indication information comes from the cloud platform, that is, the cloud platform determines the first indication information based on the subscription agreement with the first user, and then sends the aforementioned first indication information to the centralized management and control node, and then the centralized management and control node Sending the aforementioned first indication information to the aforementioned network device.
本实施方式中,提出通过带外控制的方式协商资源,适用于对配置时效性要求较低的场景。可以用于预付费的资源售卖模式中,集中管控节点能够实时获取网络中的各个网络设备中可用的资源,然后,由集中管控节点确定传输第一报文的传输路径。不仅能够确保选择出去程传输路径和回程传输路径,还有利于收集各个网络设备的信息。另外,网络设备直接通过集中管理节点获取第一指示信息,而无需与其他网络设备协商预留资源,有利于提高管理效率。In this embodiment, it is proposed to negotiate resources through out-of-band control, which is applicable to scenarios with low requirements on configuration timeliness. In the resource selling mode that can be used for prepayment, the centralized management and control node can obtain the resources available in each network device in the network in real time, and then the centralized management and control node determines the transmission path for transmitting the first message. Not only can it ensure the selection of the outbound transmission path and the backhaul transmission path, but it is also conducive to collecting information on various network devices. In addition, the network device obtains the first indication information directly through the centralized management node without negotiating with other network devices to reserve resources, which is beneficial to improve management efficiency.
在一种可能的实施方式中,当该网络设备的上一跳为源网络实例时,该网络设备获取该第一报文,包括:该网络设备对从源网络实例接收的报文添加该第一标识,得到该第一报文。本实施方式中,该网络设备为网卡,该网卡具有对收到的报文进行标记的功能。In a possible implementation manner, when the previous hop of the network device is the source network instance, obtaining the first packet by the network device includes: the network device adding the first packet to the packet received from the source network instance an identifier to obtain the first packet. In this embodiment, the network device is a network card, and the network card has a function of marking received messages.
在一种可能的实施方式中,当该网络设备的上一跳不是源网络实例时,该网络设备获取该第一报文,包括:该网络设备从该网络设备的上一跳网络设备接收的报文中筛选携带该第一标识的报文,得到该第一报文。本实施方式中,该网络设备为路由器或交换机。以交换机为例,该交换机可以收到的多个报文中筛选出携带第一标识的报文,而无需再给第一报文添加第一标识。In a possible implementation manner, when the last hop of the network device is not the source network instance, the network device obtains the first packet, including: Filter the packets carrying the first identifier from the packets to obtain the first packet. In this implementation manner, the network device is a router or a switch. Taking a switch as an example, the switch can filter out the message carrying the first identifier from the multiple received messages without adding the first identifier to the first message.
在一种可能的实施方式中,该方法还包括:该网络设备获取第二指示信息,该第二指示信息用于指示撤销该第一资源。In a possible implementation manner, the method further includes: the network device acquiring second indication information, where the second indication information is used to indicate to revoke the first resource.
本实施方式中,提出当第一用户订购的资源到期时,网络设备能够收到用于撤销第一资源的第二指示信息,该第二指示信息可以是云平台发送给集中管控节点,再由集中管控节点发送给前述网络设备的。In this embodiment, it is proposed that when the resource ordered by the first user expires, the network device can receive the second indication information for revoking the first resource. The second indication information can be sent by the cloud platform to the centralized management and control node, and then It is sent by the centralized management and control node to the aforementioned network devices.
在一种可能的实施方式中,该第一资源包括带宽资源。In a possible implementation manner, the first resource includes a bandwidth resource.
第二方面,本申请提供了一种资源分配方法,在该方法中,云平台采用带外控制的方式为网络设备配置第一资源。若第一用户想要与该第一用户相关的报文获得较高效的处理,以保证该第一用户的业务的时延、抖动以及丢包率等,该第一用户可以向云平台申请用于处理与该第一用户相关的报文的资源。具体地,云平台可以从集中管控节点或第一用户对应的源网络实例接收第一资源申请,该第一资源申请用于请求为第一用户分配第一资源,该第一资源用于供网络设备处理与该第一用户相关的报文。然后,该云平台根据该第一资源申请中的第一标识确定第一指示信息,该第一指示信息用于指示预留该第一资源。然后,该云平台通过集中管控节点(或其他网络节点)将第一指示信息发送至网络中的网络设备。In a second aspect, the present application provides a resource allocation method, in which the cloud platform configures the first resource for the network device in an out-of-band control manner. If the first user wants to obtain more efficient processing of the packets related to the first user to ensure the delay, jitter and packet loss rate of the first user's business, the first user can apply to the cloud platform for resources for processing packets related to the first user. Specifically, the cloud platform may receive a first resource application from a centralized management node or a source network instance corresponding to the first user, where the first resource application is used to request allocation of the first resource for the first user, and the first resource is used for the network The device processes packets related to the first user. Then, the cloud platform determines first indication information according to the first identifier in the first resource application, where the first indication information is used to indicate to reserve the first resource. Then, the cloud platform sends the first indication information to network devices in the network through the centralized management and control node (or other network nodes).
本实施例中,云平台可以接收第一资源申请并基于第一资源申请确定第一指示信息,以使得该第一指示信息能够通过集中管控节点(或其他网元)传输到网络设备,以使得网络设备能预留用于处理与第一用户相关的报文的第一资源。该云平台能够提 供为高优先级的用户(例如,第一用户)提供保证与第一用户的报文的时延、抖动、丢包率等指标的业务,有利于提升第一报文对应的用户的SLA的水平。而传统技术中,网络设备不感知用户,也不感知用户的业务,不利于网络设备针对部分用户提高用户的SLA的水平。In this embodiment, the cloud platform may receive the first resource application and determine the first indication information based on the first resource application, so that the first indication information can be transmitted to the network device through the centralized management and control node (or other network elements), so that The network device can reserve first resources for processing packets related to the first user. The cloud platform can provide high-priority users (for example, the first user) with services that guarantee the delay, jitter, packet loss rate and other indicators of the first user's message, which is conducive to improving the first message corresponding to the service. The level of the user's SLA. However, in the traditional technology, the network device does not perceive the user or the service of the user, which is not conducive to the network device improving the SLA level of the user for some users.
在一种可能的实施方式中,该第一资源申请包括第一标识,该第一标识与该第一用户相关,与该第一用户相关的报文为携带该第一标识的第一报文。In a possible implementation manner, the first resource application includes a first identifier, the first identifier is related to the first user, and the message related to the first user is the first message carrying the first identifier .
本实施方式中,由于该云平台中存储有该云平台在与第一用户签约时确定的资源额度,因此,第一资源申请中可以仅包含第一标识,该云平台基于第一标识便可以确定预留多少第一资源。本实施方式,有利于减小信令的复杂度。In this embodiment, since the cloud platform stores the resource quota determined by the cloud platform when signing a contract with the first user, the first resource application may only include the first identifier, and the cloud platform can Determine how much of the first resource to reserve. This implementation mode is beneficial to reduce the complexity of signaling.
在一种可能的实施方式中,该第一资源申请还包括该第一资源的配置额度,其中,第一资源的配置额度为该网络设备处理该第一报文时占用的资源量的最大值。In a possible implementation manner, the first resource application further includes a configuration quota of the first resource, where the configuration quota of the first resource is the maximum amount of resources occupied by the network device when processing the first message .
本实施方式中,第一资源申请可以包含第一标识和第一资源的配置额度,此时,该云平台无需查找与第一用户签约时的信息,有利于云平台快速地确定第一指示信息,提高云平台的处理效率。In this embodiment, the first resource application may include the first identifier and the allocation quota of the first resource. At this time, the cloud platform does not need to search for the information when signing with the first user, which is beneficial for the cloud platform to quickly determine the first indication information , to improve the processing efficiency of the cloud platform.
在一种可能的实施方式中,该云平台根据该第一资源申请发送第一指示信息具体可以为:云平台可以先向集中管控节点发送该第一指示信息,然后,该该集中管控节点分别向多个该网络设备发送前述第一指示信息,以使得前述多个网络设备中的每个网络设备预留第一资源,并采用该第一资源处理该第一报文。In a possible implementation manner, the sending of the first indication information by the cloud platform according to the first resource application may specifically be: the cloud platform may first send the first indication information to the centralized management and control node, and then the centralized management and control node respectively Sending the foregoing first indication information to the plurality of network devices, so that each of the foregoing plurality of network devices reserves a first resource, and uses the first resource to process the first packet.
本实施方式中,提出云平台通过集中管控节点管理多个网络设备,该云平台可以无需与网络设备进行直接交互,有利于提升云平台的管理效率。In this embodiment, it is proposed that the cloud platform manages multiple network devices through centralized management and control nodes, and the cloud platform does not need to directly interact with the network devices, which is beneficial to improve the management efficiency of the cloud platform.
在一种可能的实施方式中,当该第一资源到期,该云平台向集中管控节点发送第二指示信息,其中,该第二指示信息用于指示该网络设备撤销该第一资源。然后,该集中管控节点向多个网络设备发送第二指示信息,以使得前述每个网络设备能够释放第一资源。In a possible implementation manner, when the first resource expires, the cloud platform sends second indication information to the centralized management and control node, where the second indication information is used to instruct the network device to revoke the first resource. Then, the centralized management and control node sends second indication information to multiple network devices, so that each of the aforementioned network devices can release the first resource.
本实施方式中,提出当第一用户订购的资源到期时,云平台通过第二指示信息撤销第一资源,以使得该网络设备释放第一资源,进而促使该网络设备利用释放的第一资源处理其他用户或其他业务的报文。In this embodiment, it is proposed that when the resource subscribed by the first user expires, the cloud platform revokes the first resource through the second indication information, so that the network device releases the first resource, thereby prompting the network device to use the released first resource Process packets of other users or other services.
第三方面,本申请提供了一种网络设备,包括:收发模块和处理模块。其中,收发模块,用于获取第一指示信息,该第一指示信息用于指示预留第一资源,该第一资源用于处理第一报文,该第一报文为携带第一标识的报文,该第一标识与第一用户相关;处理模块,用于采用该第一资源处理该第一报文。In a third aspect, the present application provides a network device, including: a transceiver module and a processing module. Wherein, the transceiver module is used to obtain the first indication information, the first indication information is used to indicate to reserve the first resource, and the first resource is used to process the first message, and the first message is a message carrying the first identification A message, the first identifier is related to the first user; a processing module, configured to use the first resource to process the first message.
其中,网络设备可以是网卡、路由器或交换机中任意一种设备。Wherein, the network device may be any device in a network card, a router or a switch.
其中,处理模块对第一报文的处理,可以理解为,直接对第一报文进行转发处理;也可以理解为,解析第一报文,对第一报文携带的载荷执行了删减或增添等动作,然后,将处理后的第一报文按照预先确定的转发路径转发至下一跳网络设备。具体本申请不做限定。Wherein, the processing of the first message by the processing module can be understood as directly forwarding the first message; it can also be understood as parsing the first message and performing deletion or deletion on the payload carried by the first message. Actions such as adding, and then forwarding the processed first packet to the next-hop network device according to the predetermined forwarding path. The specific application is not limited.
本实施例中,网络设备(例如,交换器、路由器以及网卡等网络设备)能够基于第一指示信息预留用于处理与第一用户相关的报文(即第一报文)的第一资源,以使得该网络设备采用前述第一资源处理与第一用户相关的报文,进而该网络设备在处理 第一报文时能够保证时延、抖动、丢包率等指标,有利于提升第一报文对应的用户的SLA的水平。而传统技术中,网络设备不感知用户,也不感知用户的业务,不利于网络设备针对部分用户提高用户的SLA的水平。In this embodiment, a network device (for example, a network device such as a switch, a router, and a network card) can reserve a first resource for processing a message related to the first user (that is, the first message) based on the first indication information , so that the network device uses the aforementioned first resource to process the packets related to the first user, and then the network device can ensure the delay, jitter, packet loss rate and other indicators when processing the first packet, which is conducive to improving the first The SLA level of the user corresponding to the packet. However, in the traditional technology, the network device does not perceive the user or the service of the user, which is not conducive to the network device improving the SLA level of the user for some users.
在一种可能的实施方式中,第一标识的标识粒度可以不同。若该第一标识的标识粒度为用户级别,则该第一标识用于标识第一用户;若该第一标识的标识粒度为业务级别,则该第一标识用于标识第一用户的第一业务,该第一用户为已申请该第一资源的用户。In a possible implementation manner, the identification granularity of the first identification may be different. If the identification granularity of the first identification is user level, then the first identification is used to identify the first user; if the identification granularity of the first identification is service level, then the first identification is used to identify the first user of the first user. business, the first user is a user who has applied for the first resource.
本实施方式中,当第一标识用于标识第一用户时,与第一用户相关的报文即为第一报文,无需区分报文所属的会话类型等其他因素。也就是说,与第一用户相关的任何业务的报文都可以使用前述第一资源,即网络设备可以使用第一资源处理与第一用户相关的任何业务的报文。示例性的,第一报文可以是与第一用户相关的任何会话的报文。例如,语音类会话、视频类会话、文字类会话等。本实施方式,不区分报文所属的会话类型,不仅有利于节约标识,还有利于降低网络设备的处理复杂度。In this embodiment, when the first identifier is used to identify the first user, the message related to the first user is the first message, and there is no need to distinguish other factors such as the session type to which the message belongs. That is to say, any service message related to the first user can use the first resource, that is, the network device can use the first resource to process any service message related to the first user. Exemplarily, the first message may be a message of any session related to the first user. For example, voice conversations, video conversations, text conversations, etc. In this implementation manner, the session type to which the message belongs is not distinguished, which not only helps to save identification, but also helps to reduce the processing complexity of the network device.
本实施方式中,当第一标识用于标识第一用户的第一业务时,与第一用户的第一业务相关的报文为第一报文,与第一用户的其他业务相关的报文可能不是第一报文。也就是说,与第一用户的第一业务相关的报文可以使用第一资源,该第一用户的其他业务不能使用前述第一资源,即网络设备可以使用第一资源处理与第一用户的第一业务相关的报文,而不能处理该第一用户的其他业务相关的报文。该第一业务可以是对处理时延或丢包率要求较高的业务,例如,视频通话类业务。本实施方式,有利于将第一资源用于处理对时延等指标要求更苛刻的业务的报文,能够提升资源的利用效率。In this embodiment, when the first identifier is used to identify the first service of the first user, the message related to the first service of the first user is the first message, and the message related to other services of the first user Probably not the first message. That is to say, the packets related to the first service of the first user can use the first resource, and other services of the first user cannot use the first resource, that is, the network device can use the first resource to process the communication with the first user. Messages related to the first service, and messages related to other services of the first user cannot be processed. The first service may be a service that requires high processing delay or packet loss rate, for example, a video call service. This implementation mode is beneficial to use the first resource for processing packets of services with stricter requirements on time delay and other indicators, and can improve resource utilization efficiency.
在一种可能的实施方式中,该第一指示信息包括该第一资源的配置额度和该第一标识,该第一资源的配置额度为该网络设备处理该第一报文时占用的资源量的最大值。In a possible implementation manner, the first indication information includes a configuration quota of the first resource and the first identifier, and the configuration quota of the first resource is the amount of resources occupied by the network device when processing the first packet the maximum value.
在一种可能的实施方式中,该处理模块,还用于当处理该第一报文时占用的资源量小于该第一资源的配置额度时,采用该第一资源处理第二报文,该第二报文未携带该第一标识。In a possible implementation manner, the processing module is further configured to use the first resource to process the second message when the amount of resources occupied when processing the first message is less than the configured quota of the first resource, and the The second packet does not carry the first identifier.
在一种可能的实施方式中,该处理模块,还用于:当处理该第一报文所占用的资源下降至第一阈值时,调低该第一资源的配置额度;和/或,当处理该第一报文所占用的资源上升至第二阈值时,调高该第一资源的配置额度,该第二阈值大于该第一阈值。In a possible implementation manner, the processing module is further configured to: decrease the configuration quota of the first resource when the resource occupied by processing the first message drops to a first threshold; and/or, when When the resource occupied by processing the first message rises to a second threshold, the configuration quota of the first resource is increased, and the second threshold is greater than the first threshold.
在一种可能的实施方式中,该收发模块,具体用于从上一跳网络设备接收协商请求报文,该协商请求报文用于协商配置该第一资源,该协商请求报文携带该第一指示信息和该上一跳网络设备的标识;该处理模块,具体用于当确定能够预留该第一指示信息指示的第一资源时,在该协商请求报文中添加该网络设备的标识,并向下一跳网络设备发送携带该第一指示信息、该上一跳网络设备的标识和该网络设备的标识的协商请求报文。In a possible implementation manner, the transceiver module is specifically configured to receive a negotiation request message from an upper-hop network device, the negotiation request message is used to negotiate and configure the first resource, and the negotiation request message carries the first resource. An indication information and the identification of the last-hop network device; the processing module is specifically configured to add the identification of the network device in the negotiation request message when it is determined that the first resource indicated by the first indication information can be reserved , and send a negotiation request message carrying the first indication information, the identifier of the last-hop network device, and the identifier of the network device to the next-hop network device.
在一种可能的实施方式中,该收发模块,具体用于从集中管控节点接收该第一指示信息。In a possible implementation manner, the transceiver module is specifically configured to receive the first indication information from the centralized management and control node.
在一种可能的实施方式中,该收发模块,具体用于对从该源网络实例接收的报文添加该第一标识,得到该第一报文。In a possible implementation manner, the transceiver module is specifically configured to add the first identifier to the packet received from the source network instance to obtain the first packet.
在一种可能的实施方式中,该收发模块,具体用于从该上一跳网络设备接收的报 文中筛选携带该第一标识的报文,得到该第一报文。In a possible implementation manner, the transceiver module is specifically configured to filter the packets carrying the first identifier from the packets received by the last-hop network device to obtain the first packet.
在一种可能的实施方式中,该收发模块,还用于获取第二指示信息,该第二指示信息用于指示撤销该第一资源。In a possible implementation manner, the transceiving module is further configured to acquire second indication information, where the second indication information is used to indicate to revoke the first resource.
在一种可能的实施方式中,该第一资源包括带宽资源。In a possible implementation manner, the first resource includes a bandwidth resource.
需要说明的是,本申请实施例还有多种具体其他实施方式,具体可参见第一方面的具体实施方式和其有益效果,在此不再赘述。It should be noted that there are many other specific implementation manners in the embodiment of the present application. For details, reference may be made to the specific implementation manners and beneficial effects of the first aspect, which will not be repeated here.
第四方面,本申请提供了一种云平台,包括:接收模块和发送模块。其中,接收模块,用于接收第一资源申请,该第一资源申请用于请求为第一用户分配第一资源,该第一资源用于供网络设备处理与该第一用户相关的报文;发送模块,用于根据该第一资源申请发送第一指示信息,该第一指示信息用于指示预留该第一资源。In a fourth aspect, the present application provides a cloud platform, including: a receiving module and a sending module. Wherein, the receiving module is configured to receive a first resource application, the first resource application is used to request allocation of a first resource for the first user, and the first resource is used for the network device to process messages related to the first user; A sending module, configured to send first indication information according to the first resource application, where the first indication information is used to indicate to reserve the first resource.
在一种可能的实施方式中,该第一资源申请包括第一标识,该第一标识与该第一用户相关,与该第一用户相关的报文为携带该第一标识的第一报文。In a possible implementation manner, the first resource application includes a first identifier, the first identifier is related to the first user, and the message related to the first user is the first message carrying the first identifier .
在一种可能的实施方式中,该第一资源申请包括该第一资源的配置额度和该第一标识,该第一资源的配置额度为该网络设备处理该第一报文时占用的资源量的最大值。In a possible implementation manner, the first resource application includes a configuration quota of the first resource and the first identifier, and the configuration quota of the first resource is the amount of resources occupied by the network device when processing the first message the maximum value.
在一种可能的实施方式中,该发送模块,具体用于向集中管控节点发送该第一指示信息,以使得该集中管控节点向多个该网络设备发送该第一指示信息,该多个网络设备中的每个网络设备用于处理该第一报文。In a possible implementation manner, the sending module is specifically configured to send the first indication information to the centralized management and control node, so that the centralized management and control node sends the first indication information to multiple network devices, and the multiple network devices Each network device in the device is used to process the first packet.
在一种可能的实施方式中,该发送模块,还用于当该第一资源到期,向该集中管控节点发送第二指示信息,以使得该集中管控节点向多个该网络设备发送该第二指示信息,该第二指示信息用于指示该网络设备撤销该第一资源。In a possible implementation manner, the sending module is further configured to send second indication information to the centralized management and control node when the first resource expires, so that the centralized management and control node sends the second indication information to multiple network devices. Two indication information, the second indication information is used to instruct the network device to revoke the first resource.
需要说明的是,本申请实施例还有多种具体其他实施方式,具体可参见第二方面的具体实施方式和其有益效果,在此不再赘述。It should be noted that there are many other specific implementation manners in the embodiment of the present application. For details, refer to the specific implementation manners and beneficial effects of the second aspect, which will not be repeated here.
第五方面,本申请提供了一种网络设备,其特征在于,包括处理器和存储器,该存储器存储有程序,当该存储器存储的程序指令被该处理器执行时使得该网络设备实现如前述第一方面任意一种实施方式所介绍的方法。In the fifth aspect, the present application provides a network device, which is characterized in that it includes a processor and a memory, the memory stores a program, and when the program instructions stored in the memory are executed by the processor, the network device realizes the above-mentioned first In one aspect, the method introduced in any one of the implementation manners.
第六方面,本申请提供了一种云平台,其特征在于,包括处理器和存储器,该存储器存储有程序,当该存储器存储的程序指令被该处理器执行时使得该云平台实现如前述第二方面任意一种实施方式所介绍的方法。In a sixth aspect, the present application provides a cloud platform, which is characterized in that it includes a processor and a memory, the memory stores a program, and when the program instructions stored in the memory are executed by the processor, the cloud platform realizes the aforementioned The method introduced in any one of the implementation modes of the two aspects.
从以上技术方案可以看出,本申请实施例具有以下优点:It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
本申请中,网络设备(例如,交换器、路由器以及网卡等网络设备)能够基于第一指示信息预留用于处理与第一用户相关的报文(即第一报文)的第一资源,以使得该网络设备采用前述第一资源处理与第一用户相关的报文,进而该网络设备在处理第一报文时能够保证时延、抖动、丢包率等指标,有利于提升第一报文对应的用户的SLA的水平。In this application, a network device (for example, a network device such as a switch, a router, and a network card) can reserve a first resource for processing a message related to the first user (ie, the first message) based on the first indication information, In order to make the network device use the aforementioned first resource to process the message related to the first user, and then the network device can ensure the time delay, jitter, packet loss rate and other indicators when processing the first message, which is conducive to improving the first message The SLA level of the user corresponding to the text.
附图说明Description of drawings
为了更清楚地说明本申请实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Apparently, the drawings in the following description are only some embodiments of the present application.
图1A为本申请适用的云数据中心网络架构的一个示意图;FIG. 1A is a schematic diagram of a cloud data center network architecture applicable to the present application;
图1B为CLOS交换架构的一个示意图;FIG. 1B is a schematic diagram of a CLOS switching architecture;
图2为本申请中报文处理方法的一个流程图;Fig. 2 is a flowchart of the message processing method in the present application;
图3为本申请中网络设备处理报文的一个示例图;Fig. 3 is an example diagram of network equipment processing message in the present application;
图4为本申请中资源分配方法的一个流程图;Fig. 4 is a flowchart of the resource allocation method in the present application;
图5为本申请中采用带内控制时资源分配方法的一个示例图;FIG. 5 is an example diagram of a resource allocation method when in-band control is adopted in the present application;
图6为本申请中资源分配方法的另一个流程图;FIG. 6 is another flow chart of the resource allocation method in the present application;
图7为本申请中采用带外控制时资源分配方法的一个示例图;FIG. 7 is an example diagram of a resource allocation method when out-of-band control is adopted in the present application;
图8为本申请中网络设备的一个实施例示意图;FIG. 8 is a schematic diagram of an embodiment of a network device in the present application;
图9A为本申请中网络设备的另一个实施例示意图;FIG. 9A is a schematic diagram of another embodiment of a network device in the present application;
图9B为本申请中网络设备的另一个实施例示意图;FIG. 9B is a schematic diagram of another embodiment of a network device in the present application;
图9C为本申请中网络设备的另一个实施例示意图;FIG. 9C is a schematic diagram of another embodiment of a network device in the present application;
图10为本申请中云平台的一个实施例示意图。Fig. 10 is a schematic diagram of an embodiment of the cloud platform in this application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, not all of them.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above drawings are used to distinguish similar objects, and not necessarily Used to describe a specific sequence or sequence. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements is not necessarily limited to the expressly listed instead, may include other steps or elements not explicitly listed or inherent to the process, method, product or apparatus.
下面先对本申请提出的报文处理方法所适用的应用场景和系统架构进行介绍:The application scenarios and system architecture applicable to the message processing method proposed in this application are firstly introduced as follows:
本申请提出的报文处理方法应用于云服务场景。例如,用户通过云平台向云服务提供商购买一定的资源,云平台基于用户购买的资源为用户分配网络设备和相应的资源,以保证前述网络设备能够为用户预留足够的资源处理该用户的相关业务的报文。The packet processing method proposed in this application is applied to a cloud service scenario. For example, the user purchases certain resources from the cloud service provider through the cloud platform, and the cloud platform allocates network equipment and corresponding resources to the user based on the resources purchased by the user, so as to ensure that the aforementioned network equipment can reserve enough resources for the user. related business messages.
如图1A所示,为本申请的报文处理方法适用的端到端的云数据中心网络架构。该系统架构包括源网络实例、目的网络实例、中间节点和集中管控节点。其中,源网络实例是用户的报文的传输起点,是用户的一个业务实例(例如,容器、虚拟机等)对应的虚拟交换机;目的网络实例是用户的报文的传输终点,是用户的另一个业务实例(例如,容器、虚拟机等)对应的虚拟交换机;中间节点可以是一个网络设备,也可以是多个网络设备的组合,能够对前述报文进行转发处理;集中管控节点可以搜集各个中间节点的信息,以便为源网络实例和目的网络实例之间的报文传输选择合适的传输路径以及在该传输路径上的网络设备中预留用于处理报文的资源。As shown in FIG. 1A , it is an end-to-end cloud data center network architecture applicable to the packet processing method of the present application. The system architecture includes source network instances, destination network instances, intermediate nodes and centralized control nodes. Among them, the source network instance is the transmission starting point of the user's message, and is a virtual switch corresponding to a service instance (such as a container, a virtual machine, etc.) of the user; the destination network instance is the transmission end point of the user's message, and is another A virtual switch corresponding to a service instance (for example, a container, a virtual machine, etc.); the intermediate node can be a network device, or a combination of multiple network devices, and can forward and process the aforementioned messages; the centralized management and control node can collect all Information of intermediate nodes, so as to select an appropriate transmission path for packet transmission between the source network instance and the destination network instance and reserve resources for processing packets in network devices on the transmission path.
一般地,云数据中心网络架构常采用CLOS交换架构(Clos Architecture),该CLOS交换架构是一种应用于云数据中心网络的典型的多级架构。其中,每一级架构包含多个交换单元,在每一级中每个交换单元都和下一级的所有交换单元相连接。由于,该CLOS交换架构具有无阻塞(Non-blocking)、可重构(Re-arrangeable)以及可扩 展(Scalable)等特性,因此,传统云数据中心网络常采用基于CLOS网络架构的网络。Generally, the cloud data center network architecture often adopts the CLOS switching architecture (Clos Architecture), which is a typical multi-level architecture applied to the cloud data center network. Wherein, each level of architecture includes a plurality of switching units, and each switching unit in each level is connected to all switching units in the next level. Because the CLOS switching architecture has the characteristics of non-blocking (Non-blocking), re-arrangeable (Re-arrangeable), and scalable (Scalable), traditional cloud data center networks often use networks based on CLOS network architecture.
示例性的,如图1B所示,本申请的报文处理方法可以适用于三层CLOS网络架构。该三层CLOS网络架构包括采用接入层(例如,TOR_1层和TOR_2层)、汇聚层(例如,SPINE_1层和SPINE_2层)、核心层(CORE层)。其中,TOR_1层和TOR_2层包含多个采用架顶模式(top of rack,TOR)布置而成的交换机,即包含多个TOR交换机;SPINE_1层和SPINE_2层包含多个叶脊架构(Spine-Leaf)布置而成的交换机,例如,Spine交换机;CORE层包含多个核心交换机。可选的,该CLOS网络架构还可以包括网络接口卡(network interface card,NIC)(简称,网卡)。Exemplarily, as shown in FIG. 1B , the message processing method of the present application may be applicable to a three-layer CLOS network architecture. The three-layer CLOS network architecture includes an access layer (for example, TOR_1 layer and TOR_2 layer), a convergence layer (for example, SPINE_1 layer and SPINE_2 layer), and a core layer (CORE layer). Among them, the TOR_1 layer and TOR_2 layer contain multiple switches arranged in top of rack (TOR), that is, multiple TOR switches; the SPINE_1 layer and SPINE_2 layer contain multiple leaf-spine architectures (Spine-Leaf) Arranged switches, for example, spine switches; the CORE layer contains multiple core switches. Optionally, the CLOS network architecture may also include a network interface card (network interface card, NIC) (referred to as network card).
在CLOS交换架构中,从源网络实例到目的网络实例之间的报文传输可以是跨交付单元(point of delivery,PoD)互通。例如,从图1B所示的源网络实例到目的网络实例1,报文从NIC_1途径TOR_1层的网络设备、SPINE_1层的网络设备、CORE层的网络设备、SPINE_2层的网络设备以及TOR_2层的网络设备到达目的网络实例1。在CLOS交换架构中,从源网络实例到目的网络实例之间的报文传输可以是同PoD互通。又例如,从图1B所示的源网络实例到目的网络实例2,报文从NIC_1途径TOR_1层的网络设备、SPINE_1层的网络设备再回到SPINE_1层的另一个网络设备以及TOR_1层的另一个网络设备到达目的网络实例2。本申请提出的报文处理方法可以适用于任意一种报文传输方式所涉及的网络设备,具体此处不做限定。In the CLOS switching architecture, message transmission from the source network instance to the destination network instance can be cross-delivery unit (point of delivery, PoD) intercommunication. For example, from the source network instance shown in Figure 1B to the destination network instance 1, the message passes from NIC_1 to the network device at the TOR_1 layer, the network device at the SPINE_1 layer, the network device at the CORE layer, the network device at the SPINE_2 layer, and the network at the TOR_2 layer The device reaches destination network instance 1. In the CLOS switching architecture, the packet transmission from the source network instance to the destination network instance can be interworking with the PoD. For another example, from the source network instance shown in Figure 1B to the destination network instance 2, the message passes from NIC_1 to the network device at the TOR_1 layer, the network device at the SPINE_1 layer, and then returns to another network device at the SPINE_1 layer and another network device at the TOR_1 layer. The network device reaches the destination network instance 2. The message processing method proposed in this application can be applied to network devices involved in any message transmission mode, and is not specifically limited here.
本申请提出的报文处理方法可以应用于图1A所示的系统架构,也可以应用于图1B所示的系统架构,还可以适用于其他云数据中心网络架构,具体此处不做限定。The message processing method proposed in this application can be applied to the system architecture shown in FIG. 1A , can also be applied to the system architecture shown in FIG. 1B , and can also be applied to other cloud data center network architectures, which are not limited here.
此外,本申请涉及的网络设备可以是图1A所示系统架构中的中间节点,也可以是图1B所示系统架构中的TOR层中的网络设备(例如,TOR层中的TOR交换机)、SPINE层中的网络设备(例如,SPINE层中的SPINE交换机)以及CORE层中的网络设备(例如,CORE层中的CORE交换机)等,具体此处不做限定。In addition, the network device involved in this application can be an intermediate node in the system architecture shown in Figure 1A, or a network device in the TOR layer in the system architecture shown in Figure 1B (for example, a TOR switch in the TOR layer), SPINE The network device in the layer (for example, the SPINE switch in the SPINE layer) and the network device in the CORE layer (for example, the CORE switch in the CORE layer), etc., are not specifically limited here.
本申请提出云数据中心网络中的各个网络设备能够预留适当额度的资源以处理特定的报文(例如,高优先级的用户或业务的报文),以使得该网络设备在处理前述特定的报文时能够确保处理时延和丢包率。另外,当传输路径上每一个网络设备都预留前述资源以处理特定的报文时,则云数据中心网络便构成了一个逻辑上的无损网络,有利于保证部分高优先级用户的业务的处理时延和抖动,有利于保障部分用户的服务水平协议SLA。This application proposes that each network device in the cloud data center network can reserve an appropriate amount of resources to process specific messages (for example, high-priority user or service messages), so that the network device can process the aforementioned specific Packet processing delay and packet loss rate can be ensured. In addition, when each network device on the transmission path reserves the aforementioned resources to process specific packets, the cloud data center network constitutes a logical lossless network, which is conducive to ensuring the processing of some high-priority users' services Latency and jitter are beneficial to guarantee the service level agreement (SLA) of some users.
下面结合图2对本申请的报文处理方法进行介绍:Below in conjunction with Fig. 2, the message processing method of the present application is introduced:
步骤201,网络设备获取第一指示信息,该第一指示信息用于指示预留第一资源,该第一资源用于处理第一报文。 Step 201, the network device acquires first indication information, where the first indication information is used to indicate to reserve a first resource, and the first resource is used to process a first packet.
其中,第一指示信息用于指示网络设备预留第一资源,以使得该网络设备能够使用该第一资源处理第一报文。具体可以理解为,该第一指示信息指示该网络设备保证有一定额度的资源(即根据第一指示信息确定的第一资源)用于处理第一报文,以避免在处理其他报文的过程中抢占用于处理第一报文的资源,而影响网络设备对第一报文的处理效率,进而导致第一报文的处理过程出现拥塞或丢包等现象。Wherein, the first indication information is used to instruct the network device to reserve the first resource, so that the network device can use the first resource to process the first message. Specifically, it can be understood that the first indication information indicates that the network device guarantees a certain amount of resources (that is, the first resource determined according to the first indication information) for processing the first packet, so as to avoid The resources used to process the first packet are preempted, which affects the processing efficiency of the network device for the first packet, and then causes congestion or packet loss during the processing of the first packet.
其中,第一报文为携带第一标识的报文,该第一标识与第一用户相关,第一用户 为已申请该第一资源的用户。前述第一资源用于处理第一报文,可以理解为,第一资源用于处理与第一用户相关的报文;也可以理解为,第一资源用于处理携带第一标识的报文。Wherein, the first message is a message carrying a first identifier, the first identifier is related to the first user, and the first user is a user who has applied for the first resource. The aforementioned first resource is used to process the first message. It can be understood that the first resource is used to process the message related to the first user; it can also be understood that the first resource is used to process the message carrying the first identifier.
此外,第一报文指某一类型的报文,而不仅仅是某一个报文。例如,携带第一标识的报文都可以是第一报文;与第一用户相关的报文都可能是第一报文。具体此处不做限定。In addition, the first message refers to a certain type of message, not just a certain message. For example, all packets carrying the first identifier may be first packets; all packets related to the first user may be first packets. Specifically, there is no limitation here.
此外,前述第一标识可以有多种实现方式:In addition, the aforementioned first identification can be implemented in multiple ways:
在一种可选的实施方式中,该第一标识用于标识第一用户。In an optional implementation manner, the first identifier is used to identify the first user.
本实施方式中,与第一用户相关的报文即为第一报文,无需区分报文所属的会话类型等其他因素。也就是说,与第一用户相关的任何业务的报文都可以使用前述第一资源,即网络设备可以使用第一资源处理与第一用户相关的任何业务的报文。示例性的,第一报文可以是与第一用户相关的任何会话的报文。例如,语音类会话、视频类会话、文字类会话等。In this implementation manner, the message related to the first user is the first message, and there is no need to distinguish other factors such as the session type to which the message belongs. That is to say, any service message related to the first user can use the first resource, that is, the network device can use the first resource to process any service message related to the first user. Exemplarily, the first message may be a message of any session related to the first user. For example, voice conversations, video conversations, text conversations, etc.
在另一种可选的实施方式中,该第一标识用于标识该第一用户的第一业务。In another optional implementation manner, the first identifier is used to identify the first service of the first user.
本实施方式中,与第一用户的第一业务相关的报文为第一报文,与第一用户的其他业务相关的报文可能不是第一报文。也就是说,与第一用户的第一业务相关的报文可以使用第一资源,该第一用户的其他业务不能使用前述第一资源,即网络设备可以使用第一资源处理与第一用户的第一业务相关的报文,而不能处理该第一用户的其他业务相关的报文。该第一业务可以是对处理时延或丢包率要求较高的业务,例如,视频通话类业务。In this embodiment, the message related to the first service of the first user is the first message, and the messages related to other services of the first user may not be the first message. That is to say, the packets related to the first service of the first user can use the first resource, and other services of the first user cannot use the first resource, that is, the network device can use the first resource to process the communication with the first user. Messages related to the first service, and messages related to other services of the first user cannot be processed. The first service may be a service that requires high processing delay or packet loss rate, for example, a video call service.
本实施例中,第一标识可以采用前述任意一种实施方式实现,具体此处不做限定。In this embodiment, the first identification may be implemented by using any one of the aforementioned implementation manners, which is not specifically limited here.
可选的,该第一指示信息包括该第一资源的配置额度和该第一标识,该第一资源的配置额度为该网络设备处理该第一报文时占用的资源量的最大值。具体地,网络设备在收到第一指示信息之后,可以根据第一指示信息确定的第一资源的配置额度合理分配处理第一报文的资源量,以避免分配给处理第一报文的资源过少而影响第一报文的处理效率,也为了避免在处理其他报文的过程中抢占用于处理第一报文的资源。因此,能够有效避免网络中资源不稳定等因素对第一报文的处理效率的影响,减缓或避免第一报文的处理过程出现拥塞或丢包等现象。Optionally, the first indication information includes a configuration quota of the first resource and the first identifier, and the configuration quota of the first resource is a maximum amount of resources occupied by the network device when processing the first packet. Specifically, after receiving the first indication information, the network device may reasonably allocate the amount of resources for processing the first packet according to the configuration quota of the first resource determined by the first indication information, so as to avoid allocating resources for processing the first packet If the number is too small, the processing efficiency of the first message will be affected, and in order to avoid preempting the resources used for processing the first message during the process of processing other messages. Therefore, it is possible to effectively avoid the influence of factors such as resource instability in the network on the processing efficiency of the first message, and slow down or avoid phenomena such as congestion or packet loss in the process of processing the first message.
可选的,该第一资源包括带宽资源和/或流量资源中的至少一项。可选的,该第一资源还可以包括处理资源和/或存储资源。具体此处不做限定,在后续实施例中,以第一资源为带宽资源为例进行介绍。Optionally, the first resource includes at least one of bandwidth resources and/or traffic resources. Optionally, the first resource may also include processing resources and/or storage resources. The details are not limited here, and in the subsequent embodiments, the first resource is the bandwidth resource as an example for introduction.
此外,网络设备可以通过多种方式获取前述第一指示信息,下面将分别进行介绍:In addition, the network device may obtain the foregoing first indication information in various ways, which will be introduced respectively below:
方式一,网络设备通过带内控制的方式获取前述第一指示信息: Method 1, the network device obtains the aforementioned first indication information through in-band control:
具体地,网络设备从上一跳网络设备接收协商请求报文,该协商请求报文用于协商配置第一资源,该协商请求报文携带第一指示信息和前述上一跳网络设备的标识。当该网络设备确定能够预留该第一指示信息指示的第一资源时,该网络设备在该协商请求报文中添加该网络设备的标识,并向下一跳网络设备发送携带该第一指示信息、该上一跳网络设备的标识和该网络设备的标识的协商请求报文。可选的,当该网络设备确定不能够预留该第一指示信息指示的第一资源时,该网络设备可以向上一跳网络 设备发送否定应答报文,以告知上一跳网络设备该网络设备无法预留第一资源,以使得前述上一跳网络设备将协商请求报文发送至另一个可能能够预留第一资源的网络设备。Specifically, the network device receives a negotiation request message from the last-hop network device, the negotiation request message is used to negotiate and configure the first resource, and the negotiation request message carries the first indication information and the identifier of the previous-hop network device. When the network device determines that the first resource indicated by the first indication information can be reserved, the network device adds the identifier of the network device to the negotiation request message, and sends a message carrying the first indication to the next-hop network device. information, the identifier of the last-hop network device, and the negotiation request message of the identifier of the network device. Optionally, when the network device determines that the first resource indicated by the first indication information cannot be reserved, the network device may send a negative response message to the previous hop network device to inform the previous hop network device that the network device The first resource cannot be reserved, so that the aforementioned last-hop network device sends the negotiation request message to another network device that may be able to reserve the first resource.
当下一跳网络设备为目的网络实例时,该协商请求报文包括去程传输路径信息,该去程传输路径信息包括从源网络实例到目的网络实例之间处理过协商请求报文的全部网络设备的标识。When the next-hop network device is the destination network instance, the negotiation request message includes outbound transmission path information, and the outbound transmission path information includes all network devices that have processed the negotiation request message from the source network instance to the destination network instance logo.
示例性的,若源网络实例生成包含第一指示信息的协商请求报文0,并且,该源网络实例将协商请求报文0发送给网络设备1;若网络设备1能够预留第一资源,则该网络设备1将网络设备1的标识也封装至前述协商请求报文0中,得到协商请求报文1,该协商请求报文1包括第一指示信息和网络设备1的标识;然后,网络设备1按照转发规则确定将协商请求报文1转发至网络设备2,该协商请求报文1携带第一指示信息和网络设备1的标识;若网络设备2能够预留第一资源,则该网络设备2将网络设备2的标识也封装至前述协商请求报文1中,得到协商请求报文2,该协商请求报文2携带第一指示信息、网络设备1的标识和网络设备2的标识。以此类推,将协商请求报文n传输至目的网络实例,该目的网络实例收到的协商请求报文n包括第一指示信息以及去程传输路径信息,该去程传输路径信息为从源网络实例到目的网络实例经过的能够预留第一资源的各个网络设备的标识。Exemplarily, if the source network instance generates a negotiation request message 0 containing the first indication information, and the source network instance sends the negotiation request message 0 to network device 1; if network device 1 can reserve the first resource, Then the network device 1 also encapsulates the identifier of the network device 1 into the aforementioned negotiation request message 0 to obtain a negotiation request message 1, which includes the first indication information and the identifier of the network device 1; then, the network The device 1 determines to forward the negotiation request message 1 to the network device 2 according to the forwarding rules, the negotiation request message 1 carries the first indication information and the identifier of the network device 1; if the network device 2 can reserve the first resource, the network The device 2 also encapsulates the identifier of the network device 2 into the aforementioned negotiation request message 1 to obtain a negotiation request message 2, which carries the first indication information, the identifier of the network device 1, and the identifier of the network device 2. By analogy, the negotiation request message n is transmitted to the destination network instance, and the negotiation request message n received by the destination network instance includes the first indication information and the outbound transmission path information, and the outbound transmission path information is from the source network An identifier of each network device capable of reserving the first resource through which the instance goes to the destination network instance.
应理解,前述各个网络设备之间可以基于如邻居发现协议等路由发现协议寻找能够预留前述第一资源的网络设备,还可以基于预先配置的规则寻找能够预留前述第一资源的网络设备,具体此处不做限定。It should be understood that the foregoing network devices may search for a network device capable of reserving the foregoing first resource based on a route discovery protocol such as a neighbor discovery protocol, and may also search for a network device capable of reserving the foregoing first resource based on a pre-configured rule. Specifically, there is no limitation here.
随后,该目的网络实例可以向源网络实例回复协商应答报文,该协商应答报文用于指示源网络实例是否成功预留第一资源,以及成功预留第一资源的各个网络设备构成的去程传输路径。可选的,该目的网络实例可以将前述去程传输路径信息封装至协商应答报文中,按照去程传输路径原路返回前述协商应答报文。在这种实现方式中,去程传输路径上的各个网络设备可以收到前述去程传输路径,并且,回程传输路径和前述去程传输路径上的各个网络设备相同但传输方向相反。可选的,该目的网络实例也可以将前述去程传输路径信息封装至协商应答报文中,但是,另外发现一条传输路径作为回程传输路径。具体地,与前文介绍的预留第一资源的方式类似,此处不予赘述。Subsequently, the destination network instance can reply a negotiation response message to the source network instance, and the negotiation response message is used to indicate whether the source network instance has successfully reserved the first resource, and the list of all network devices that have successfully reserved the first resource. transmission path. Optionally, the destination network instance may encapsulate the aforementioned outbound transmission path information into a negotiation response message, and return the aforementioned negotiation response message according to the original route of the outbound transmission path. In this implementation manner, each network device on the outbound transmission path can receive the foregoing outbound transmission path, and the backhaul transmission path is the same as each network device on the foregoing outbound transmission path, but the transmission direction is opposite. Optionally, the destination network instance may also encapsulate the aforementioned outbound transmission path information into the negotiation response message, but find another transmission path as the backhaul transmission path. Specifically, it is similar to the manner of reserving the first resource introduced above, and will not be described here.
可选的,当该网络设备确定不能够预留该第一指示信息指示的第一资源时,该网络设备可以集中管控节点发送指示信息,以请求集中管控节点通过带外控制的方式选择出能够预留第一资源的网络设备。Optionally, when the network device determines that the first resource indicated by the first indication information cannot be reserved, the network device may send the indication information to the centralized management and control node to request the centralized management and control node to select a resource that can be reserved through out-of-band control. A network device that reserves the first resource.
方式二,网络设备通过带外控制的方式获取前述第一指示信息:Method 2: The network device obtains the aforementioned first indication information through out-of-band control:
具体地,网络设备从集中管控节点接收该第一指示信息。可选的,该网络设备从集中管控节点接收去程传输路径信息和/或回程传输路径信息。Specifically, the network device receives the first indication information from the centralized management and control node. Optionally, the network device receives outbound transmission path information and/or backhaul transmission path information from the centralized management and control node.
其中,集中管控节点能够实时收集各个网络设备的资源使用情况,并且,该集中管控节点能够获得用户预留第一资源的额度。因此,该集中管控节点可以在源网络实例和目的网络实例之间选择多个能够预留第一资源的网络设备构成去程传输路径,并且,分别向前述能够预留第一资源的网络设备发送第一指示信息。可选的,该集中管 控节点还向前述能够预留第一资源的网络设备发送前述去程传输路径信息。类似的,集中管控节点可以采用类似的方式确定回程传输路径信息,以及指示回程传输路径上各个网络设备预留资源。Wherein, the centralized management and control node can collect the resource usage of each network device in real time, and the centralized management and control node can obtain the quota of the first resource reserved by the user. Therefore, the centralized management and control node can select a plurality of network devices capable of reserving the first resource between the source network instance and the destination network instance to form an outbound transmission path, and send The first instruction message. Optionally, the centralized management and control node also sends the aforementioned outbound transmission path information to the aforementioned network device capable of reserving the first resource. Similarly, the centralized management and control node may determine backhaul transmission path information in a similar manner, and instruct each network device on the backhaul transmission path to reserve resources.
本申请中,网络设备可以采用前述任意一种实施方式获得前述第一指示信息,具体此处不做限定。In this application, the network device may obtain the foregoing first indication information by using any one of the foregoing implementation manners, which is not specifically limited here.
步骤202,网络设备获取第一报文。 Step 202, the network device acquires the first packet.
其中,该第一报文是与第一用户相关的报文,该第一报文是携带第一标识的报文。可以理解为,该第一报文为需要优先处理的报文;也可以理解为,第一报文是需要保证处理速率的报文。Wherein, the first message is a message related to the first user, and the first message is a message carrying a first identifier. It can be understood that the first packet is a packet that needs to be processed with priority; it can also be understood that the first packet is a packet that needs to ensure a processing rate.
本实施例中,当网络设备在网络中的位置不同时,该网络设备获取第一报文的方式可能不同。In this embodiment, when the positions of the network devices in the network are different, the ways in which the network devices acquire the first packet may be different.
在一种可能的实施方式中,网络设备是与源网络实例连接的第一个中间节点,即网络设备的上一跳网络设备为源网络实例。此时,该网络设备获取该第一报文的方式可以为:该网络设备对从该源网络实例接收的报文添加该第一标识,得到该第一报文。此时,网络设备可以是用于添加第一标识的网卡NIC等。In a possible implementation manner, the network device is the first intermediate node connected to the source network instance, that is, the last-hop network device of the network device is the source network instance. At this time, the manner in which the network device acquires the first packet may be: the network device adds the first identifier to the packet received from the source network instance to obtain the first packet. At this time, the network device may be a network card (NIC) for adding the first identifier or the like.
在另一种可能的实施方式中,网络设备不是与源网络实例连接的第一个中间节点,该网络设备的上一跳网络设备不是源网络实例,在该网络设备之前已经有网络设备为报文添加标记。此时,该网络设备获取该第一报文的方式可以为:该网络设备从该上一跳网络设备接收的报文中筛选携带该第一标识的报文,得到该第一报文。此时,网络设备可以是去程传输路径中除了网卡NIC以外的其他网络设备,例如,交换机或路由器等。示例性的,该网络设备可以为TOR交换机、SPINE交换机或CORE交换机等。In another possible implementation manner, the network device is not the first intermediate node connected to the source network instance, the previous hop network device of the network device is not the Add tags to the text. At this time, the manner in which the network device obtains the first packet may be: the network device filters packets carrying the first identifier from packets received by the last-hop network device to obtain the first packet. In this case, the network device may be other network devices other than the network card NIC in the outbound transmission path, for example, a switch or a router. Exemplarily, the network device may be a TOR switch, a SPINE switch, or a CORE switch.
步骤203,网络设备采用第一资源处理第一报文。 Step 203, the network device uses the first resource to process the first packet.
其中,网络设备对第一报文的处理,可以理解为,网络设备直接对第一报文进行转发处理,例如,网络设备基于预先确定的转发路径向下一跳网络设备转发前述第一报文,转发出去的报文可能包含前面第一报文的内容;也可以理解为,网络设备解析第一报文,对第一报文携带的载荷执行了删减或增添等动作,然后,将处理后的第一报文按照预先确定的转发路径转发至下一跳网络设备。具体本申请不对网络设备处理第一报文的具体过程进行限定。Wherein, the processing of the first message by the network device can be understood as that the network device directly forwards the first message, for example, the network device forwards the aforementioned first message to the next-hop network device based on a predetermined forwarding path , the forwarded message may contain the content of the first message in front; it can also be understood that the network device parses the first message, performs operations such as deletion or addition to the payload carried by the first message, and then processes The next first packet is forwarded to the next-hop network device according to the predetermined forwarding path. Specifically, the present application does not limit the specific process of processing the first packet by the network device.
具体地,网络设备中可以分多个处理进程分别对收到的不同类型的报文进行处理。Specifically, the network device may divide multiple processing processes to process the received packets of different types respectively.
在一种可能的实施方式中,网络设备包含至少两个处理进程,该至少两个处理进程包括第一处理进程和第二处理进程。其中,网络设备中的第一处理进程用于对第一报文进行处理,第二处理进程用于对第二报文进行处理。由于,第一资源是该网络设备用于处理第一报文的资源,因此,该第一资源可以理解为是网络设备分配给第一处理进程使用的资源,该第一指示信息可以理解为是用于指示该网络设备为第一处理进程预留第一资源。In a possible implementation manner, the network device includes at least two processing processes, and the at least two processing processes include a first processing process and a second processing process. Wherein, the first processing process in the network device is used for processing the first message, and the second processing process is used for processing the second message. Since the first resource is the resource used by the network device to process the first message, the first resource can be understood as the resource allocated by the network device to the first processing process, and the first indication information can be understood as It is used to instruct the network device to reserve the first resource for the first processing process.
应理解,第一处理进程可以是网络设备基于第一指示信息创建的,也可以是网络设备中本就存在的。示例性的,该网络设备中原本没有第一处理进程,当该网络设备收到第一指示信息之后,该网络设备才根据该第一指示信息创建该第一处理进程,并配置该第一处理进程的预留资源为该第一资源(即配置该第一处理进程的能够使用的 资源量为第一资源的额度)。示例性的,该网络设备中原本就有某个处理进程,只不过该处理进程不是用于处理第一报文的进程,并且,该进程能够使用的资源也不是第一处理资源。当该网络设备收到第一指示信息之后,该网络设备根据该第一指示信息设置前述处理进程为专用于处理第一报文的第一处理进程,将该第一处理进程的预留资源的额度修改为该第一资源的额度。It should be understood that the first processing process may be created by the network device based on the first indication information, or may already exist in the network device. Exemplarily, there is no first processing process in the network device. After the network device receives the first indication information, the network device creates the first processing process according to the first indication information, and configures the first processing process. The reserved resource of the process is the first resource (that is, the available resource amount of the first processing process is configured as the quota of the first resource). Exemplarily, there is a processing process in the network device originally, but the processing process is not a process for processing the first packet, and the resource that the process can use is not the first processing resource. After the network device receives the first indication information, the network device sets the aforementioned processing process as the first processing process dedicated to processing the first message according to the first indication information, and the reserved resources of the first processing process The quota is changed to the quota of the first resource.
在一种可能的实施方式中,每当网络设备收到一个报文,该网络设备会确定该报文是否为第一报文(例如,网络设备会确定该报文是否携带第一标识)。当该网络设备确定该报文携带第一标识,则该网络设备将该报文传输至前述第一处理进程,以使得该第一处理进程采用第一资源对前述第一报文进行处理;当该网络设备确定该报文未携带第一标识,则该网络设备将该报文传输至前述第二处理进程,以使得该第二处理进程采用其他的资源处理前述第二报文。In a possible implementation manner, whenever a network device receives a packet, the network device determines whether the packet is the first packet (for example, the network device determines whether the packet carries the first identifier). When the network device determines that the message carries the first identifier, the network device transmits the message to the first processing process, so that the first processing process uses the first resource to process the first message; when If the network device determines that the message does not carry the first identifier, the network device transmits the message to the second processing process, so that the second processing process uses other resources to process the second message.
以图3为例,当网络设备收到报文1时,网络设备识别出报文1未携带第一标识,则该网络设备将报文1传输至第二处理进程,该第二处理进程用其他的资源对报文1进行处理;与此同时,网络设备又收到了报文2,网络设备识别出报文2携带第一标识,则该网络设备将报文2传输至第一处理进程,该报文2用第一资源对报文2进行处理;类似的,网络设备又收到了报文3,网络设备识别出报文3未携带第一标识,则该网络设备将报文3传输至第二处理进程。以此类推,网络设备将通过第一处理进程采用第一资源处理报文2、报文4和报文7,通过第二处理进程采用第二资源处理报文1、报文3、报文5和报文6。Taking Fig. 3 as an example, when the network device receives the message 1, the network device recognizes that the message 1 does not carry the first identifier, then the network device transmits the message 1 to the second processing process, and the second processing process uses Other resources process message 1; at the same time, the network device receives message 2, and the network device recognizes that message 2 carries the first identifier, then the network device transmits message 2 to the first processing process, The message 2 uses the first resource to process the message 2; similarly, the network device receives the message 3, and the network device recognizes that the message 3 does not carry the first identifier, then the network device transmits the message 3 to Second processing process. By analogy, the network device will use the first resource to process message 2, message 4 and message 7 through the first processing process, and use the second resource to process message 1, message 3 and message 5 through the second processing process and message 6.
可选的,该至少两个处理进程还包括第三处理进程。其中,第三处理进程用于处理控制面的报文,第一处理进程和第二处理进程用于处理不同优先级的数据面的报文。该第三处理进程也可以获得一部分资源用于处理控制面报文,并且,该第三处理进程获得资源的优先级一般高于前述第一处理进程和第二处理进程。例如,当网络设备中的资源紧缺时,该网络设备可以优先保证第三处理进程所使用的资源。Optionally, the at least two processing processes further include a third processing process. Wherein, the third processing process is used for processing the messages of the control plane, and the first processing process and the second processing process are used for processing the messages of the data plane with different priorities. The third processing process may also obtain a part of resources for processing control plane packets, and the priority of obtaining resources by the third processing process is generally higher than that of the first processing process and the second processing process. For example, when the resources in the network device are in short supply, the network device may preferentially guarantee the resources used by the third processing process.
应理解,本实施例中提及的网络设备中的处理进程,也可以理解为是,网络设备中的处理线程或网络设备中的处理队列等,具体此处不做限定。It should be understood that the processing process in the network device mentioned in this embodiment may also be understood as a processing thread in the network device or a processing queue in the network device, etc., which are not specifically limited here.
步骤204,网络设备调整用于处理第一报文的资源量。 Step 204, the network device adjusts the amount of resources used for processing the first packet.
本实施例中,步骤204为可选的步骤。In this embodiment, step 204 is an optional step.
在一种可选的实施方式中,网络设备不改变第一资源的配置额度,但是,该网络设备可以将第一资源中的一部分资源用于处理其他报文。示例性的,网络设备收到的第一报文的数量较少,该网络设备处理前述第一报文所使用的资源量可能小于第一资源的配置额度,此时,该网络设备可以采用空闲的第一资源处理其他报文(例如,第二报文,该第二报文未携带该第一标识)。当网络设备收到的第一报文的数量上升,则该网络设备能够将用于处理其他报文的第一资源收回,以保证该网络设备能够有足够的资源用于处理第一报文。In an optional implementation manner, the network device does not change the configuration quota of the first resource, but the network device may use a part of the first resource for processing other packets. Exemplarily, the number of first packets received by the network device is small, and the amount of resources used by the network device to process the aforementioned first packets may be less than the configured quota of the first resources. At this time, the network device may use idle The first resource processes other packets (for example, a second packet that does not carry the first identifier). When the number of first packets received by the network device increases, the network device can take back the first resources used for processing other packets, so as to ensure that the network device has sufficient resources for processing the first packets.
本实施方式,可以用于预付费的资源售卖模式中,例如,预付带宽或预付流量的模式中。例如,第一用户向云平台订购一定额度的第一资源,那么,该云平台可以允许网络中的各个网络设备保证在处理与第一用户相关的报文(即第一报文)时,最多使用第一资源的额度对应的资源量。当第一报文的数量较少时,网络中的各个网络设 备可以在不影响第一报文的处理效率、时延以及抖动等指标的情况下,将一部分第一资源用于处理其他用户的报文。但是,当第一报文的数量上升时,网络中的各个网络设备会优先保证用于处理第一报文的资源量,以避免影响第一报文的处理效率、时延以及抖动等指标。本实施方式,有利于灵活分配用于处理报文的资源,提高资源的利用效率。This implementation mode can be used in a prepaid resource selling mode, for example, a prepaid bandwidth or prepaid traffic mode. For example, if the first user orders a certain amount of first resources from the cloud platform, then the cloud platform can allow each network device in the network to ensure that when processing the message related to the first user (that is, the first message), at most The amount of resources corresponding to the quota of the first resource used. When the number of first packets is small, each network device in the network can use part of the first resources to process other users' message. However, when the number of first packets increases, each network device in the network will preferentially guarantee the amount of resources used to process the first packets, so as to avoid affecting indicators such as processing efficiency, delay, and jitter of the first packets. This implementation manner is beneficial to flexibly allocate resources for processing messages and improve resource utilization efficiency.
在另一种可选的实施方式中,网络设备可以改变第一资源的配置额度。可选的,当处理该第一报文所占用的资源下降至第一阈值时,该网络设备调低该第一资源的配置额度;和/或,当处理该第一报文所占用的资源上升至第二阈值时,该网络设备调高该第一资源的配置额度,该第二阈值大于该第一阈值。其中,第一阈值和第二域值是网络管理设备预先配置的取值。例如,若第一资源的配置额度为10M,则前述第一阈值可以配置为3M,第二阈值可以配置为7M。该第一阈值和第二阈值也可以是网络管理设备预先配置的参数确定的取值。例如,网络管理设备配置了用于确定第一阈值的参数为30%,用于确定第二阈值的参数为70%,那么,当网络设备处理第一报文所占用的资源下降至第一资源的额度的30%时,该网络设备调低该第一资源的配置额度;当网络设备处理第一报文所占用的资源上升至第一资源的额度的70%时,该网络设备升高该第一资源的配置额度。应理解,网络设备升高或降低第一资源的配置额度的比例可以根据实际网络设备中可调度的资源而定,具体本申请不做限定。In another optional implementation manner, the network device may change the configuration quota of the first resource. Optionally, when the resource occupied by processing the first message drops to a first threshold, the network device lowers the configuration quota of the first resource; and/or, when the resource occupied by processing the first message When it reaches a second threshold, the network device increases the configuration quota of the first resource, and the second threshold is greater than the first threshold. Wherein, the first threshold value and the second domain value are values preconfigured by the network management device. For example, if the configuration quota of the first resource is 10M, the aforementioned first threshold may be configured as 3M, and the second threshold may be configured as 7M. The first threshold and the second threshold may also be values determined by parameters preconfigured by the network management device. For example, the network management device configures the parameter used to determine the first threshold as 30%, and the parameter used to determine the second threshold as 70%. Then, when the resources occupied by the network device to process the first packet drop to the first resource When the quota of the first resource is 30%, the network device lowers the configuration quota of the first resource; The allocation quota of the first resource. It should be understood that the ratio of the network device to increase or decrease the allocation quota of the first resource may be determined according to the schedulable resources in the actual network device, which is not specifically limited in this application.
本实施方式,可以用于后付费的资源售卖模式中,例如,后付费流量售卖模式中。示例性的,第一用户在与云平台签约时确定要使用资源,但使用的资源的额度并未完全约定(例如,仅约定了一个初始额度),并且,允许云平台指示网络设备或配置网络设备基于第一用户的实际流量(例如,与第一用户相关的报文数量)在前述初始额度的基础上进行调整。本实施方式,可以在保证用于处理第一报文的资源量的同时,能够灵活调整第一用户能够使用的流量,无需第一用户提前给付费用,事后根据已使用的流量按照既定价格标准付费。有利于灵活分配用于处理报文的资源,提高资源的利用效率,能够适用于业务流量模型随机的应用场景。This implementation mode can be used in a postpaid resource selling mode, for example, in a postpaid traffic selling mode. Exemplarily, the first user determines to use resources when signing a contract with the cloud platform, but the amount of resources used is not fully agreed (for example, only an initial amount is agreed), and the cloud platform is allowed to instruct the network device or configure the network The device adjusts on the basis of the aforementioned initial quota based on the actual traffic of the first user (for example, the number of packets related to the first user). This embodiment can flexibly adjust the flow that the first user can use while ensuring the amount of resources used to process the first message, without the need for the first user to pay in advance, and pay according to the established price standard based on the used flow afterwards . It is beneficial to flexibly allocate resources for processing packets, improve resource utilization efficiency, and be applicable to application scenarios with random business traffic models.
步骤205,网络设备获取第二指示信息,该第二指示信息用于指示撤销第一资源。 Step 205, the network device acquires second indication information, where the second indication information is used to indicate to revoke the first resource.
步骤206,网络设备根据第二指示信息撤销第一资源。 Step 206, the network device revokes the first resource according to the second indication information.
本实施例中,步骤205和步骤206为可选的步骤。In this embodiment, step 205 and step 206 are optional steps.
当第一用户购买的第一资源到期时,云平台向集中管控节点发送第二指示信息,再由集中管控节点向网络设备发送第二指示信息,该第二指示信息用于指示撤销第一资源。该网络设备在收到前述第二指示信息后,该网络设备将释放该第一资源,以使得该第一资源成为网络设备中的普通的资源(即该第一资源将不再专用于处理与第一用户相关的报文)。When the first resource purchased by the first user expires, the cloud platform sends the second instruction information to the centralized management and control node, and then the centralized management and control node sends the second instruction information to the network device, and the second instruction information is used to instruct the cancellation of the first resource. resource. After the network device receives the aforementioned second indication information, the network device will release the first resource, so that the first resource becomes a common resource in the network device (that is, the first resource will no longer be dedicated to processing and first user-related message).
本实施例中,网络设备(例如,交换器、路由器以及网卡等网络设备)能够基于第一指示信息预留用于处理与第一用户相关的报文(即第一报文)第一资源,以使得该网络设备在处理第一报文时能够保证时延、抖动、丢包率等指标。另外,当网络设备收到第二指示信息时,该网络设备还能够释放前述第一资源,以使得网络设备中的资源能够用于其他报文的处理。因此,不仅有利于提高资源的利用效率,还有利于提升第一报文对应的用户的SLA的水平。In this embodiment, a network device (for example, a network device such as a switch, a router, and a network card) can reserve a first resource for processing a message (that is, a first message) related to the first user based on the first indication information, So that the network device can guarantee indicators such as time delay, jitter, and packet loss rate when processing the first packet. In addition, when the network device receives the second indication information, the network device can also release the aforementioned first resource, so that the resources in the network device can be used for processing other packets. Therefore, not only is it beneficial to improve resource utilization efficiency, but it is also beneficial to improve the SLA level of the user corresponding to the first message.
下面将基于图4对通过带内控制的方式为网络设备预留资源的实施例进行详细介绍,其中,指示信息1和指示信息2是前述第一指示信息的一种实现方式,与用户1相关的报文是前述第一报文的一种实现方式,资源1和资源2是前述第一资源的一种实现方式。The following will introduce in detail the embodiment of reserving resources for network devices through in-band control based on FIG. The message of is an implementation of the aforementioned first message, and resource 1 and resource 2 are an implementation of the aforementioned first resource.
步骤401,云平台为源网络实例配置初始资源额度。In step 401, the cloud platform configures an initial resource quota for the source network instance.
本实施例中,当用户1在云平台订购资源用于处理与用户1相关的报文后,云平台可以为用户1对应的源网络实例配置初始资源额度,该初始资源额度用于指示该能够用于处理与用户1相关的报文的资源量。当源网络实例有与用户1相关的报文需要传输时,该源网络实例将采用随路协商的方式配置网络中各个网络设备能够使用的用于处理与用户1相关的报文的资源。In this embodiment, after user 1 orders resources on the cloud platform to process messages related to user 1, the cloud platform can configure an initial resource quota for the source network instance corresponding to user 1, and the initial resource quota is used to indicate that the Amount of resources used to process packets related to user 1. When the source network instance needs to transmit packets related to user 1, the source network instance will configure the resources available to each network device in the network for processing the packets related to user 1 in the way of path-associated negotiation.
其中,源网络实例可以是云计算实例。可选的,该云计算实例可以是裸金属服务器(bare metal server,BMS),即与其他用户的服务器之间物理隔离的物理服务器,该裸金属服务器兼具虚拟机弹性和物理机性能。可选的,该云计算实例也可以是由物理主机创建的虚拟机或容器,具体此处不做限定。Wherein, the source network instance may be a cloud computing instance. Optionally, the cloud computing instance can be a bare metal server (bare metal server, BMS), that is, a physical server that is physically isolated from other users' servers. The bare metal server has both virtual machine elasticity and physical machine performance. Optionally, the cloud computing instance may also be a virtual machine or a container created by a physical host, which is not specifically limited here.
具体地,云平台可以将初始资源额度发送给集中管控节点或用于管理源网络实例的控制器,再由集中管控节点或用于管理源网络实例的控制器配置给源网络实例。Specifically, the cloud platform can send the initial resource quota to the centralized management and control node or the controller for managing the source network instance, and then the centralized management and control node or the controller for managing the source network instance configures it to the source network instance.
步骤402,源网络实例向网络设备1发送协商请求报文0。Step 402, the source network instance sends a negotiation request packet 0 to the network device 1.
其中,该协商请求报文0携带指示信息1,该指示信息1用于指示网络设备为用户1预留用于处理去程报文的资源1,以使得该网络设备能够使用该资源1处理与用户1相关的去程报文。其中,该资源1的额度可以基于前述初始资源额度确定,例如,资源1的额度等于资源1的额度。Wherein, the negotiation request message 0 carries indication information 1, and the indication information 1 is used to instruct the network device to reserve resource 1 for user 1 to process outbound packets, so that the network device can use the resource 1 to process and Outbound packets related to user 1. Wherein, the quota of resource 1 may be determined based on the aforementioned initial resource quota, for example, the quota of resource 1 is equal to the quota of resource 1 .
步骤403,网络设备1向下一跳网络设备发送协商请求报文。In step 403, network device 1 sends a negotiation request message to the next-hop network device.
步骤404,网络设备n向目的网络实例发送协商请求报文n。Step 404, the network device n sends a negotiation request message n to the destination network instance.
具体地,网络设备1可以按照邻居发现协议或其他协议寻找能够预留前述资源1的网络设备。Specifically, the network device 1 may search for a network device capable of reserving the aforementioned resource 1 according to the neighbor discovery protocol or other protocols.
示例性的,若源网络实例生成包含指示信息1的协商请求报文0,并且,该源网络实例将协商请求报文0发送给网络设备1;若网络设备1能够预留资源1,则该网络设备1将网络设备1的标识也封装至前述协商请求报文0中,得到协商请求报文1,该协商请求报文1包括指示信息1和网络设备1的标识;然后,网络设备1按照转发规则确定将协商请求报文1转发至网络设备2,该协商请求报文1携带指示信息1和网络设备1的标识;若网络设备2能够预留资源1,则该网络设备2将网络设备2的标识也封装至前述协商请求报文1中,得到协商请求报文2,该协商请求报文2携带指示信息1、网络设备1的标识和网络设备2的标识。以此类推,直到将协商请求报文(n-1)发送至网络设备n。然后,网络设备n将协商请求报文n传输至目的网络实例,该目的网络实例收到的协商请求报文n包括指示信息1以及去程传输路径信息,该去程传输路径信息为从源网络实例到目的网络实例经过的能够预留资源1的各个网络设备的标识。Exemplarily, if the source network instance generates a negotiation request message 0 containing indication information 1, and the source network instance sends the negotiation request message 0 to network device 1; if network device 1 can reserve resource 1, the The network device 1 also encapsulates the identifier of the network device 1 into the aforementioned negotiation request message 0 to obtain a negotiation request message 1, which includes the indication information 1 and the identifier of the network device 1; then, the network device 1 follows The forwarding rule determines that the negotiation request message 1 is forwarded to the network device 2, and the negotiation request message 1 carries the indication information 1 and the identifier of the network device 1; if the network device 2 can reserve the resource 1, then the network device 2 will The identifier of 2 is also encapsulated into the foregoing negotiation request message 1 to obtain a negotiation request message 2, which carries the indication information 1, the identifier of the network device 1, and the identifier of the network device 2. And so on, until the negotiation request message (n-1) is sent to the network device n. Then, the network device n transmits the negotiation request message n to the destination network instance, and the negotiation request message n received by the destination network instance includes indication information 1 and outbound transmission path information, and the outbound transmission path information is from the source network The identification of each network device that can reserve resource 1 through the instance to the destination network instance.
为便于理解,以图5所示的CLOS交换架构为例。在源网络实例需要一定的资源处 理用户1的报文时,该源网络实例向网卡NIC_1发送协商请求报文,该协商请求报文请求预留2M大小的资源。然后,该网卡NIC_1按照既定的发现规则在TOR_1层中寻找能够预留2M的资源的TOR交换机作为下一跳网络设备。若确定下一跳网络设备为交换机a1,且该交换机a1能够预留2M的资源,则该交换机a1将该交换机a1的标识封装至前述协商请求报文中,并按照既定的发现规则在SPINE_1层中寻找能够预留2M的资源的SPINE交换机作为下一跳网络设备。以此类推,协商请求报文能够依次经过TOR_1层的交换机a1、SPINE_1层的交换机a2、CORE层的交换机a3、SPINE_2层的交换机a4、TOR_2层的交换机a5,然后到达目的网络实例侧的网卡NIC_2。此时,该协商请求报文中携带了能够预留2M资源的每个网络设备的标识,即去程传输路径信息。For ease of understanding, take the CLOS switching architecture shown in FIG. 5 as an example. When the source network instance needs certain resources to process the packet of user 1, the source network instance sends a negotiation request packet to the network card NIC_1, and the negotiation request packet requests to reserve 2M resources. Then, the network card NIC_1 looks for a TOR switch capable of reserving 2M resources in the TOR_1 layer as the next-hop network device according to the predetermined discovery rule. If it is determined that the next-hop network device is the switch a1, and the switch a1 can reserve 2M resources, the switch a1 will encapsulate the identity of the switch a1 into the aforementioned negotiation request message, and follow the established discovery rules at the SPINE_1 layer Look for a SPINE switch that can reserve 2M resources as the next-hop network device. By analogy, the negotiation request message can pass through the switch a1 at the TOR_1 layer, the switch a2 at the SPINE_1 layer, the switch a3 at the CORE layer, the switch a4 at the SPINE_2 layer, and the switch a5 at the TOR_2 layer, and then reach the network card NIC_2 on the instance side of the destination network. . At this time, the negotiation request message carries the identifier of each network device capable of reserving 2M resources, that is, the outbound transmission path information.
步骤405,目的网络实例向网络设备n发送协商应答报文0。Step 405, the destination network instance sends a negotiation response message 0 to the network device n.
其中,协商应答报文包括指示信息2,该指示信息2用于指示网络设备为用户1预留用于处理回程报文的资源2,以使得该网络设备能够使用该资源2处理与用户1相关的回程报文。Wherein, the negotiation response message includes indication information 2, and the indication information 2 is used to instruct the network device to reserve a resource 2 for user 1 to process the backhaul message, so that the network device can use the resource 2 to process information related to user 1. return message.
步骤406,网络设备n向下一跳网络设备发送协商应答报文。Step 406, the network device n sends a negotiation response message to the next-hop network device.
步骤407,网络设备1向源网络实例发送协商应答报文n。Step 407, the network device 1 sends a negotiation response message n to the source network instance.
在一种可能的实施方式中,目的网络实例基于去程传输路径信息确定回程传输路径信息,即将去程传输路径的反向路径作为回程的传输路径。该回程传输路径上的网络设备作为预留资源2的网络设备。In a possible implementation manner, the destination network instance determines the backhaul transmission path information based on the outbound transmission path information, that is, the reverse path of the outbound transmission path is used as the backhaul transmission path. The network device on the backhaul transmission path serves as the network device that reserves resource 2 .
在另一种可能的实施方式中,目的网络实例基于邻居发现协议或其他协议寻找能够预留前述资源2的网络设备。In another possible implementation manner, the destination network instance searches for a network device capable of reserving the foregoing resource 2 based on a neighbor discovery protocol or other protocols.
示例性的,若目的网络实例生成包含指示信息2的协商应答报文0,并且,该源网络实例将协商应答报文0发送给网络设备n;若网络设备n能够预留资源2,则该网络设备n将网络设备n的标识也封装至前述协商应答报文0中,得到协商应答报文1,该协商应答报文1包括指示信息2和网络设备n的标识;然后,网络设备n按照转发规则确定下一跳网络设备。以此类推,直到将协商应答报文(n-1)发送至网络设备1。然后,网络设备1将协商应答报文n传输至源网络实例,该源网络实例收到的协商应答报文n包括指示信息2以及回程传输路径信息,该回程传输路径信息为从源网络实例到目的网络实例经过的能够预留资源2的各个网络设备的标识。Exemplarily, if the destination network instance generates a negotiation response message 0 containing indication information 2, and the source network instance sends the negotiation response message 0 to network device n; if network device n can reserve resource 2, the The network device n also encapsulates the identifier of the network device n into the aforementioned negotiation response message 0 to obtain a negotiation response message 1, which includes the indication information 2 and the identifier of the network device n; then, the network device n according to Forwarding rules determine the next-hop network device. By analogy, until the negotiation response message (n−1) is sent to the network device 1 . Then, the network device 1 transmits the negotiation response message n to the source network instance. The negotiation response message n received by the source network instance includes indication information 2 and backhaul transmission path information. The backhaul transmission path information is from the source network instance to The identification of each network device that can reserve resource 2 through which the destination network instance passes.
为便于理解,以图5所示的CLOS交换架构为例。若回程仅需要预留1M的资源,目的网络实例向网卡NIC_2发送协商应答报文,该协商应答报文不仅用于请求预留1M的资源,还携带了去程传输路径信息。然后,该网卡NIC_2按照既定的发现规则在TOR_2层中寻找能够预留1M的资源的TOR交换机作为下一跳网络设备。若确定下一跳网络设备为交换机b1,且该交换机b1能够预留1M的资源,则该交换机b1将该交换机b1的标识封装至前述协商应答报文中,并按照既定的发现规则在SPINE_2层中寻找能够预留1M的资源的SPINE交换机作为下一跳网络设备。以此类推,协商应答报文能够依次经过TOR_2层的交换机b1、SPINE_2层的交换机b2、CORE层的交换机b3、SPINE_1层的交换机b4、TOR_1层的交换机b5,然后到达目的网络实例侧的网卡NIC_1。此时,该协商应答报文中携带了能够预留1M资源的每个网络设备的标识,即回程传输路径信息。For ease of understanding, take the CLOS switching architecture shown in FIG. 5 as an example. If only 1M resources need to be reserved for the backhaul, the destination network instance sends a negotiation response message to NIC_2. The negotiation response message is not only used to request the reservation of 1M resources, but also carries information about the outbound transmission path. Then, the network card NIC_2 looks for a TOR switch capable of reserving 1M resources in the TOR_2 layer as the next-hop network device according to a predetermined discovery rule. If it is determined that the next-hop network device is the switch b1, and the switch b1 can reserve 1M resources, then the switch b1 encapsulates the identity of the switch b1 into the aforementioned negotiation response message, and according to the established discovery rules at the SPINE_2 layer Search for a SPINE switch that can reserve 1M resources as the next-hop network device. By analogy, the negotiation response message can pass through the switch b1 at the TOR_2 layer, the switch b2 at the SPINE_2 layer, the switch b3 at the CORE layer, the switch b4 at the SPINE_1 layer, and the switch b5 at the TOR_1 layer, and then reach the network card NIC_1 on the instance side of the destination network. . At this time, the negotiation response message carries the identifier of each network device capable of reserving 1M resources, that is, the backhaul transmission path information.
待源网络实例收到前述协商应答报文n之后,该源网络实例通过前述去程传输路径信息指示的网络设备向目的网络实例发送与用户1相关的去程报文。与此同时,目的网络实例也可以通过前述回程传输路径信息向源网络实例发送与用户1相关的回程报文。After the source network instance receives the aforementioned negotiation response message n, the source network instance sends an outbound message related to user 1 to the destination network instance through the network device indicated by the aforementioned outbound transmission path information. At the same time, the destination network instance may also send a backhaul packet related to user 1 to the source network instance through the aforementioned backhaul transmission path information.
步骤408,网络设备根据根据与用户1相关的报文的数量调整资源额度。Step 408, the network device adjusts the resource quota according to the number of packets related to user 1.
本实施例中,步骤408为可选的步骤。In this embodiment, step 408 is an optional step.
具体地,当网络设备收到的与用户1相关的报文的数量减少时,该网络设备处理该用户1相关的报文所使用的资源量也将下降。当处理与用户1相关的报文所占用的资源下降至第一阈值时,该网络设备调低该资源1的配置额度和/或资源2的配置额度。当与用户1相关的报文所占用的资源上升至第二阈值时,该网络设备调高该资源1的配置额度和/或资源2的配置额度。其中,该第二阈值大于该第一阈值。其中,第一阈值和第二域值是网络管理设备预先配置的取值。该第一阈值和第二阈值也可以是网络管理设备预先配置的参数确定的取值。具体请查阅前文步骤204中的相关介绍。Specifically, when the number of packets related to user 1 received by the network device decreases, the amount of resources used by the network device to process the packets related to user 1 will also decrease. When the resource occupied by processing the message related to user 1 drops to the first threshold, the network device lowers the configuration quota of resource 1 and/or the configuration quota of resource 2 . When the resource occupied by the packets related to user 1 rises to the second threshold, the network device increases the configuration quota of resource 1 and/or the configuration quota of resource 2 . Wherein, the second threshold is greater than the first threshold. Wherein, the first threshold value and the second domain value are values preconfigured by the network management device. The first threshold and the second threshold may also be values determined by parameters preconfigured by the network management device. For details, please refer to the relevant introduction in step 204 above.
步骤409,网络设备向云平台反馈实际使用额度。Step 409, the network device feeds back the actual usage quota to the cloud platform.
应理解,网络设备可能一次或多次调整前述资源额度,网络设备可以周期性的将当前用于处理用户1的报文的资源额度反馈给云平台,以使得云平台或其他的计费单元基于实际使用资源的额度计费。It should be understood that the network device may adjust the aforementioned resource quota one or more times, and the network device may periodically feed back the resource quota currently used to process user 1's message to the cloud platform, so that the cloud platform or other billing units are based on Billing based on the amount of resources actually used.
具体地,调整了资源额度的网络设备可以直接将实际使用额度发送给云平台,也可以将实际使用额度发送给集中管控节点,再由集中管控节点将前述实际使用额度发送给云平台,具体此处不做限定。Specifically, the network device that has adjusted the resource quota can directly send the actual usage quota to the cloud platform, or can send the actual usage quota to the centralized management and control node, and then the centralized management and control node will send the aforementioned actual usage quota to the cloud platform. Specifically, There is no limit.
本实施例可以用于后付费的资源售卖模式中,可以在保证用于处理第一报文的资源量的同时,能够灵活调整第一用户能够使用的流量,无需第一用户提前给付费用,事后根据已使用的流量按照既定价格标准付费。有利于灵活分配用于处理报文的资源,提高资源的利用效率,能够适用于业务流量模型随机的应用场景。This embodiment can be used in the resource sales mode of post-payment. While ensuring the amount of resources used to process the first message, it can flexibly adjust the traffic that the first user can use, without the need for the first user to pay in advance. Pay according to the established price standard according to the traffic used. It is beneficial to flexibly allocate resources for processing packets, improve resource utilization efficiency, and be applicable to application scenarios with random business traffic models.
下面将基于图6对通过带外控制的方式为网络设备预留资源的实施例进行详细介绍:An embodiment of reserving resources for network devices through out-of-band control will be described in detail below based on FIG. 6:
步骤601,源网络实例向云平台发送第一资源申请。Step 601, the source network instance sends a first resource application to the cloud platform.
其中,第一资源申请用于申请处理第一用户的报文的资源(即前述第一资源)。该第一资源申请可以携带第一标识,该第一标识可以第一用户的标识,也可以是第一用户的某一项业务的标识。具体请参阅前述步骤201中的相关介绍。Wherein, the first resource application is used to apply for a resource for processing the message of the first user (ie, the foregoing first resource). The first resource application may carry a first identifier, and the first identifier may be an identifier of the first user, or an identifier of a certain service of the first user. For details, please refer to the relevant introduction in the aforementioned step 201.
可选的,源网络实例也可以向集中管控节点发送第一资源申请,然后,集中管控节点将前述第一资源申请转发给云平台。Optionally, the source network instance may also send the first resource application to the centralized management and control node, and then the centralized management and control node forwards the aforementioned first resource application to the cloud platform.
步骤602,云平台根据第一资源申请确定第一指示信息。Step 602, the cloud platform determines first indication information according to the first resource application.
其中,第一指示信息包括前述第一资源的额度。可选的,该第一指示信息还包括第一标识。Wherein, the first indication information includes the aforementioned quota of the first resource. Optionally, the first indication information further includes a first identifier.
具体地,该云平台可以根据与第一用户签订的服务协议SLA确定第一资源的额度。例如,第一用户在云平台订购了10M的资源,则该云平台确定可以为第一用户配置10M的资源。Specifically, the cloud platform may determine the quota of the first resource according to the service agreement SLA signed with the first user. For example, if the first user orders 10M resources on the cloud platform, the cloud platform determines that 10M resources can be configured for the first user.
步骤603,云平台向集中管控节点发送第一指示信息。Step 603, the cloud platform sends first indication information to the centralized management and control node.
步骤604,集中管控节点根据网络中各个网络设备的资源使用情况和第一指示信息确定传输路径信息。Step 604, the centralized management and control node determines the transmission path information according to the resource usage of each network device in the network and the first indication information.
其中,传输路径信息包括去程传输路径信息和回程传输路径信息。Wherein, the transmission path information includes outbound transmission path information and backhaul transmission path information.
本实施例中,集中管控节点可以实时获取网络中每个网络设备当前可用的资源量。然后,集中管控节点从前述多个网络设备中选择多个能够预留前述第一资源的网络设备作为中间节点。然后,集中管控节点基于前述多个能够预留前述第一资源的网络设备的表示确定传输路径信息。其中,能够预留第一资源的网络设备,可以理解为,该网络设备中空闲的资源量大于第一资源的额度。In this embodiment, the centralized management and control node can acquire the amount of currently available resources of each network device in the network in real time. Then, the centralized management and control node selects a plurality of network devices capable of reserving the first resource as intermediate nodes from the plurality of network devices. Then, the centralized management and control node determines the transmission path information based on the representations of the aforementioned plurality of network devices capable of reserving the aforementioned first resource. Wherein, the network device capable of reserving the first resource can be understood as that the amount of idle resources in the network device is greater than the quota of the first resource.
在一种可能的实施方式中,集中管控节点将从源网络实例到目的网络实例依次确定的网络设备的标识确定为去程传输路径信息。然后,集中管控节点将去程传输路径的反向传输路径确定为回程传输路径。In a possible implementation manner, the centralized management and control node determines, as outbound transmission path information, identifiers of network devices determined sequentially from the source network instance to the destination network instance. Then, the centralized management and control node determines the reverse transmission path of the outbound transmission path as the backhaul transmission path.
然后到达目的网络实例侧的网卡NIC_2。此时,该协商请求报文中携带了能够预留2M资源的每个网络设备的标识,即去程传输路径信息。Then reach the network card NIC_2 on the side of the destination network instance. At this time, the negotiation request message carries the identifier of each network device capable of reserving 2M resources, that is, the outbound transmission path information.
在另一种可能的实施方式中,集中管控节点分别确定去程传输路径信息和回程传输路径信息,其中,去程传输路径中的网络设备可以与回程传输路径中的网络设备重合。In another possible implementation manner, the centralized management and control node respectively determines the outbound transmission path information and the backhaul transmission path information, where the network devices in the outbound transmission path may overlap with the network devices in the backhaul transmission path.
为便于理解,以图7所示的CLOS交换架构为例。在源网络实例需要一定的资源处理用户1的报文时,集中管控节点分别收集TOR_1层、SPINE_1层、CORE层、SPINE_2层以及TOR_1层以及其他网络层的网络设备的空闲的资源量。然后,该集中管控节点根据前述各个网络层的网络设备空闲的资源量确定能够预留2M资源的网络设备。若集中管控节点确定TOR_1层的交换机a1、SPINE_1层的交换机a2、CORE层的交换机a3、SPINE_2层的交换机a4以及TOR_2层的交换机a5能够预留2M资源,则集中管控节点确定去程传输路径为交换机a1-交换机a2-交换机a3-交换机a4-交换机a5。For ease of understanding, take the CLOS switching architecture shown in FIG. 7 as an example. When the source network instance needs certain resources to process user 1's message, the centralized management and control node collects the amount of idle resources of network devices at TOR_1 layer, SPINE_1 layer, CORE layer, SPINE_2 layer, TOR_1 layer and other network layers. Then, the centralized management and control node determines the network equipment capable of reserving 2M resources according to the amount of idle resources of the network equipment at each network layer. If the centralized management and control node determines that the switch a1 at the TOR_1 layer, the switch a2 at the SPINE_1 layer, the switch a3 at the CORE layer, the switch a4 at the SPINE_2 layer, and the switch a5 at the TOR_2 layer can reserve 2M resources, then the centralized management and control node determines that the outbound transmission path is switch a1-switch a2-switch a3-switch a4-switch a5.
可选的,集中管控节点可以直接确定回程传输路径为交换机a5-交换机a4-交换机a3-交换机a2-交换机a1。Optionally, the centralized management and control node may directly determine the backhaul transmission path as switch a5-switch a4-switch a3-switch a2-switch a1.
可选的,集中管控节点也可以基于TOR_1层、SPINE_1层、CORE层、SPINE_2层以及TOR_1层以及其他网络层的网络设备的空闲的资源量,确定另一条传输路径作为回程传输路径。例如,回程传输路径可以为交换机b1-交换机b2-交换机b3-交换机b4-交换机b5。Optionally, the centralized management and control node may also determine another transmission path as the backhaul transmission path based on the amount of idle resources of network devices at the TOR_1 layer, SPINE_1 layer, CORE layer, SPINE_2 layer, TOR_1 layer, and other network layers. For example, the backhaul transmission path may be switch b1-switch b2-switch b3-switch b4-switch b5.
步骤605a,集中管控节点向源网络实例发送去程传输路径信息。Step 605a, the centralized management and control node sends outbound transmission path information to the source network instance.
其中,去程传输路径信息包括从源网络实例到目的网络实例之间各个能够预留第一资源的网络设备的标识。Wherein, the outbound transmission path information includes identifiers of network devices capable of reserving the first resource between the source network instance and the destination network instance.
步骤605b,集中管控节点向源网络实例发送回程传输路径信息。Step 605b, the centralized management and control node sends backhaul transmission path information to the source network instance.
其中,回程传输路径信息包括从目的网络实例到源网络实例之间各个能够预留第一资源的网络设备的标识。Wherein, the backhaul transmission path information includes identifiers of network devices capable of reserving the first resource between the destination network instance and the source network instance.
步骤606,集中管控节点向网络设备发送第一指示信息和传输路径信息。Step 606, the centralized management and control node sends the first indication information and the transmission path information to the network device.
具体地,集中管控节点将向传输路径上每个网络设备发送第一指示信息和传输路径信息。Specifically, the centralized management and control node will send the first indication information and the transmission path information to each network device on the transmission path.
步骤607,云平台向集中管控节点发送第二指示信息。Step 607, the cloud platform sends second indication information to the centralized management and control node.
步骤608,集中管控节点向网络设备发送第二指示信息。Step 608, the centralized management and control node sends second indication information to the network device.
具体地,集中管控节点将向传输路径上每个网络设备发送第二指示信息。Specifically, the centralized management and control node will send the second indication information to each network device on the transmission path.
本实施例中,当第一用户购买的第一资源到期时,云平台或集中管控节点会向网络设备发送第二指示信息,该第二指示信息用于指示撤销第一资源。该网络设备在收到前述第二指示信息后,该网络设备将释放该第一资源,以使得该第一资源成为网络设备中的普通的资源(即该第一资源将不再专用于处理与第一用户相关的报文)。In this embodiment, when the first resource purchased by the first user expires, the cloud platform or the centralized management and control node will send the second indication information to the network device, where the second indication information is used to indicate the withdrawal of the first resource. After the network device receives the aforementioned second indication information, the network device will release the first resource, so that the first resource becomes a common resource in the network device (that is, the first resource will no longer be dedicated to processing and first user-related message).
本实施例可以用于预付费的资源售卖模式中,集中管控节点能够实时获取网络中的各个网络设备中可用的资源,然后,由集中管控节点确定传输第一报文的传输路径。不仅能够确保选择出去程传输路径和回程传输路径,还有利于收集各个网络设备的信息。另外,网络设备直接通过集中管理节点获取第一指示信息,而无需与其他网络设备协商预留资源,有利于提高管理效率。This embodiment can be used in a prepaid resource selling mode, where the centralized management and control node can acquire resources available in each network device in the network in real time, and then the centralized management and control node determines the transmission path for transmitting the first message. Not only can it ensure the selection of the outbound transmission path and the backhaul transmission path, but it is also conducive to collecting information on various network devices. In addition, the network device obtains the first indication information directly through the centralized management node without negotiating with other network devices to reserve resources, which is beneficial to improve management efficiency.
下面将本申请涉及的设备进行介绍:The equipment involved in this application is introduced below:
如图8所示,为本申请实施例提供了一种网络设备80的结构示意图。该网络设备80可以是网卡NIC、交换机或路由器等设备。例如,该网络设备80可以是ToR交换机、Spine交换机或Core交换机等。具体此处不做限定。前述图2、图6和图4对应的方法实施例中的网络设备均可以基于图8所示的网络设备80的结构。As shown in FIG. 8 , a schematic structural diagram of a network device 80 is provided for the embodiment of the present application. The network device 80 may be a network card (NIC), a switch, or a router. For example, the network device 80 may be a ToR switch, a Spine switch, or a Core switch. Specifically, there is no limitation here. The network devices in the foregoing method embodiments corresponding to FIG. 2 , FIG. 6 , and FIG. 4 may be based on the structure of the network device 80 shown in FIG. 8 .
该网络设备80包括至少一个处理器801和至少一个存储器802。应当理解的是,图8仅示出了一个处理器801和一个存储器802。The network device 80 includes at least one processor 801 and at least one memory 802 . It should be understood that FIG. 8 only shows one processor 801 and one memory 802 .
其中,该处理器801可以是通用中央处理单元(central processing unit,CPU)、微处理器、网络处理器(network processor,NP)或特定应用集成电路(application-specific integrated circuit),或一个或多个用于控制本申方案的程序执行的集成电路。前述处理器801可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。处理器801可以指一个或多个装置、电路和/或用于处理数据(例如计算机程序指令)的处理核。此外,该处理器801可以是个单独的半导体芯片,也可以跟其他电路一起集成为一个半导体芯片,例如,可以跟其他电路(如编解码电路、硬件加速电路或各种总线和接口电路)构成一个片上系统(system-on-a-chip,SoC),或者也可以作为一个特殊应用集成电路(application specific integrated circuit,ASIC)的内置处理器集成在所述ASIC当中,该集成了处理器的ASIC可以单独封装或者也可以跟其他电路封装在一起。Wherein, the processor 801 may be a general-purpose central processing unit (central processing unit, CPU), a microprocessor, a network processor (network processor, NP) or a specific application integrated circuit (application-specific integrated circuit), or one or more An integrated circuit for controlling the program execution of the scheme of the present application. The foregoing processor 801 may be a single-core (single-CPU) processor, or may be a multi-core (multi-CPU) processor. Processor 801 may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions). In addition, the processor 801 can be an independent semiconductor chip, or can be integrated with other circuits to form a semiconductor chip, for example, can form a single semiconductor chip with other circuits (such as codec circuits, hardware acceleration circuits, or various bus and interface circuits). A system on a chip (system-on-a-chip, SoC), or can also be integrated in the described ASIC as a built-in processor of a special application integrated circuit (application specific integrated circuit, ASIC), and the ASIC integrated with the processor can Packaged separately or together with other circuits.
此外,前述存储器802可以是只读存储器ROM,也可以是可存储静态信息和指令的其他类型的静态存储设备,也可以是随机存取存储器RAM,也可以是可存储信息和指令的其他类型的动态存储设备,还可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM),具体此处不做限定。该存储器802可以是独立存在,但与前述处理器801相连。可选的,该存储器802也可以和前述处理器801集成于一体。例如,集成于一个或多个芯片之内。In addition, the aforementioned memory 802 may be a read-only memory ROM, or other types of static storage devices that can store static information and instructions, or a random access memory RAM, or other types of memory devices that can store information and instructions. The dynamic storage device may also be an electrically erasable programmable read-only memory (EEPROM), which is not specifically limited here. The memory 802 may exist independently, but is connected to the aforementioned processor 801 . Optionally, the memory 802 may also be integrated with the foregoing processor 801. For example, integrated within one or more chips.
此外,该存储器802还用于存储执行本申请实施例的技术方案的程序代码。前述程序代码可以由处理器801来控制执行,被执行的各类计算机程序代码也可被视为是 处理器801的驱动程序。于是,前述处理器801可以根据第一指示信息预留第一资源,并采用该第一资源处理第一报文。可选的,该处理器801可以在该网络设备处理该第一报文时占用的资源量小于该第一资源的配置额度时,采用该第一资源处理第二报文,该第二报文未携带该第一标识。可选的,该处理器801可以在处理该第一报文所占用的资源下降至第一阈值时,调低该第一资源的配置额度;和/或,在处理该第一报文所占用的资源上升至第二阈值时,调高该第一资源的配置额度,该第二阈值大于该第一阈值。In addition, the memory 802 is also used to store program codes for executing the technical solutions of the embodiments of the present application. The foregoing program codes may be controlled and executed by the processor 801, and various types of computer program codes executed may also be regarded as drivers of the processor 801. Therefore, the processor 801 may reserve the first resource according to the first indication information, and use the first resource to process the first packet. Optionally, the processor 801 may use the first resource to process the second message when the amount of resources occupied by the network device when processing the first message is less than the configured quota of the first resource, and the second message The first identifier is not carried. Optionally, the processor 801 may reduce the configuration quota of the first resource when the resource occupied by processing the first message drops to a first threshold; and/or, when the resource occupied by processing the first message When the resource rises to a second threshold, the allocation quota of the first resource is increased, and the second threshold is greater than the first threshold.
可选的,该网络设备80还包括通信接口803,该通信接口803用于与其他服务器或网络设备进行通信,以使得该网络设备可以接收来自其他设备的指令或数据。例如,该通信接口803可以接收来自集中管控节点或上一跳网络设备的第一指示信息,该第一指示信息用于指示预留第一资源,该第一资源用于处理第一报文,该第一报文为携带第一标识的报文,该第一标识与第一用户相关。例如,该通信接口803还用于接收来自集中管控节点或上一跳网络设备的第二指示信息,该第二指示信息用于指示撤销该第一资源。例如,该通信接口803可以从上一跳网络设备接收协商请求报文,该协商请求报文用于协商配置该第一资源,该协商请求报文携带该第一指示信息和该上一跳网络设备的标识。例如,该通信接口803可以向下一跳网络设备发送携带该第一指示信息、该上一跳网络设备的标识和该网络设备的标识的协商请求报文。Optionally, the network device 80 further includes a communication interface 803, which is used for communicating with other servers or network devices, so that the network device can receive instructions or data from other devices. For example, the communication interface 803 may receive first indication information from a centralized management node or an upper-hop network device, where the first indication information is used to indicate to reserve a first resource, and the first resource is used to process the first message, The first message is a message carrying a first identifier, and the first identifier is related to the first user. For example, the communication interface 803 is further configured to receive second indication information from the centralized management and control node or the previous hop network device, where the second indication information is used to indicate to revoke the first resource. For example, the communication interface 803 may receive a negotiation request message from an upper-hop network device, the negotiation request message is used to negotiate and configure the first resource, and the negotiation request message carries the first indication information and the last-hop network device. The identity of the device. For example, the communication interface 803 may send a negotiation request message carrying the first indication information, the identifier of the last-hop network device, and the identifier of the network device to the next-hop network device.
一种可能的实施方式中,网络设备的内部结构可以如图9A、图9B或图9C所示。其中,网络设备包括至少一个CPU和至少一个ASIC芯片。其中,ASIC芯片包括控制模块和转发模块,该转发模块用于按照一定的规则将入口队列中的报文分类并传输到某个出口队列中;控制模块用于根据收到指令控制每个出口队列采用的资源。In a possible implementation manner, the internal structure of the network device may be as shown in FIG. 9A , FIG. 9B or FIG. 9C . Wherein, the network device includes at least one CPU and at least one ASIC chip. Among them, the ASIC chip includes a control module and a forwarding module, the forwarding module is used to classify the messages in the ingress queue according to certain rules and transmit them to an egress queue; the control module is used to control each egress queue according to the received instructions resources used.
一种可选的实施方式中,若采用带外控制的方式,则网络设备的内部结构可以如图9A所示。其中,CPU用于处理来自集中管控节点的指令或消息,然后,对前述指令或消息进程处理,并将处理结果发送至控制模块,以使得控制模块根据前述处理结果控制加入出口队列的报文。In an optional implementation manner, if out-of-band control is adopted, the internal structure of the network device may be as shown in FIG. 9A . Wherein, the CPU is used to process instructions or messages from the centralized management and control node, and then process the aforementioned instructions or messages, and send the processing results to the control module, so that the control module controls the messages added to the egress queue according to the aforementioned processing results.
一种可选的实施方式中,若采用带内控制的方式,则网络设备的内部结构可以如图9B所示。其中,协商请求报文或协商响应报文通过数据面的入口队列进入ASIC芯片,转发模块将前述协商请求报文或协商响应报文转发至控制模块进行处理,以使的该控制模块基于第一指示信息或第二指示信息控制出口队列。本实施方式为硬件卸载方案,适用于对配置时效性要求较高的场景(生效时间在纳秒级别),有利于实时配置、调整或撤销资源。In an optional implementation manner, if the in-band control mode is adopted, the internal structure of the network device may be as shown in FIG. 9B . Wherein, the negotiation request message or the negotiation response message enters the ASIC chip through the ingress queue of the data plane, and the forwarding module forwards the aforementioned negotiation request message or the negotiation response message to the control module for processing, so that the control module is based on the first The indication information or the second indication information controls the egress queue. This implementation mode is a hardware offloading solution, which is suitable for scenarios requiring high timeliness of configuration (the effective time is at the nanosecond level), and is conducive to real-time configuration, adjustment or withdrawal of resources.
一种可选的实施方式中,若采用带内控制的方式,则网络设备的内部结构可以如图9C所示。其中,协商请求报文或协商响应报文通过数据面的入口队列进入ASIC芯片,转发模块将前述协商请求报文或协商响应报文转发至ASIC芯片外的CPU进行处理,CPU再将处理结果反馈给控制模块,以使的该控制模块基于第一指示信息或第二指示信息控制出口队列。本实施方式为软硬协同方案,相比前述硬件卸载方案,所有逻辑全部固化在芯片中,软硬协同方案引入交换网元,有利于提升软件实现的灵活性。In an optional implementation manner, if the in-band control method is adopted, the internal structure of the network device may be as shown in FIG. 9C . Among them, the negotiation request message or the negotiation response message enters the ASIC chip through the ingress queue of the data plane, and the forwarding module forwards the aforementioned negotiation request message or the negotiation response message to the CPU outside the ASIC chip for processing, and the CPU then feeds back the processing result to the control module, so that the control module controls the egress queue based on the first indication information or the second indication information. This implementation mode is a software-hardware coordination solution. Compared with the aforementioned hardware offloading solution, all logic is solidified in the chip. The software-hardware coordination solution introduces switching network elements, which is beneficial to improve the flexibility of software implementation.
此外,如图10所示,为本申请实施例提供的一种云平台的结构示意图。该云平台 100可以是服务器、大型计算设备或者大型管理设备,具体此处不做限定。前述图4和图6对应的方法实施例中的云平台均可以基于图10所示的云平台100的结构。In addition, as shown in FIG. 10 , it is a schematic structural diagram of a cloud platform provided by an embodiment of the present application. The cloud platform 100 may be a server, a large-scale computing device or a large-scale management device, which is not specifically limited here. The cloud platforms in the aforementioned method embodiments corresponding to FIG. 4 and FIG. 6 may be based on the structure of the cloud platform 100 shown in FIG. 10 .
其中,云平台100可以包括处理器1010、存储器1020和通信接口1030。其中,该处理器1010与该存储器1020耦合连接,处理器1010与通信接口1030耦合连接。Wherein, the cloud platform 100 may include a processor 1010 , a memory 1020 and a communication interface 1030 . Wherein, the processor 1010 is coupled to the memory 1020 , and the processor 1010 is coupled to the communication interface 1030 .
其中,前述通信接口1030也可以称为网络接口等。该通信接口1030用于与其他服务器或网络设备进行通信,以使得该云平台可以接收来自其他设备或服务器的指令或数据,或者,以使得该云平台可以向其他设备或服务器发送指令或数据。示例性的,该通信接口1030可以直接或间接地与集中管控单元连接,以便于从该集中管控节点接收与第一用户相关的资源申请(例如,前文介绍的第一资源申请),以便于向该集中管控单元发送指示信息(例如,前文介绍的第一指示信息或第二指示信息)。Wherein, the foregoing communication interface 1030 may also be referred to as a network interface or the like. The communication interface 1030 is used to communicate with other servers or network devices, so that the cloud platform can receive instructions or data from other devices or servers, or enable the cloud platform to send instructions or data to other devices or servers. Exemplarily, the communication interface 1030 may be directly or indirectly connected to the centralized management and control unit, so as to receive the resource application related to the first user (for example, the first resource application introduced above) from the centralized management and control node, so as to facilitate the The centralized management and control unit sends indication information (for example, the first indication information or the second indication information introduced above).
其中,前述处理器1010可以是中央处理器CPU,网络处理器NP或者CPU和NP的组合。处理器还可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。处理器1010可以是指一个处理器,也可以包括多个处理器。Wherein, the aforementioned processor 1010 may be a central processing unit CPU, a network processor NP or a combination of CPU and NP. The processor can also be an application-specific integrated circuit (application-specific integrated circuit, ASIC), a programmable logic device (programmable logic device, PLD) or a combination thereof. The aforementioned PLD may be a complex programmable logic device (complex programmable logic device, CPLD), a field-programmable gate array (field-programmable gate array, FPGA), a general array logic (generic array logic, GAL) or any combination thereof. Processor 1010 may refer to one processor, or may include multiple processors.
此外,前述该存储器1020主要用于存储软件程序和数据。存储器1020可以是独立存在,与处理器1010相连。可选的,该存储器1020可以和该处理器1010集成于一体,例如集成于一个或多个芯片之内。其中,该存储器1020能够存储执行本申请实施例的技术方案的程序代码,并由处理器1010来控制执行,被执行的各类计算机程序代码也可被视为是处理器1010的驱动程序。存储器1020可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器也可以包括非易失性存储器(non-volatile memory),例如只读存储器(read-only memory,ROM),快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器1020还可以包括上述种类的存储器的组合。存储器1020可以是指一个存储器,也可以包括多个存储器。In addition, the aforementioned memory 1020 is mainly used to store software programs and data. The memory 1020 may exist independently and be connected with the processor 1010 . Optionally, the memory 1020 may be integrated with the processor 1010, for example, integrated into one or more chips. Wherein, the memory 1020 can store program codes for executing the technical solutions of the embodiments of the present application, and the execution is controlled by the processor 1010 , and various types of computer program codes to be executed can also be regarded as drivers for the processor 1010 . The memory 1020 may include a volatile memory (volatile memory), such as a random-access memory (random-access memory, RAM); the memory may also include a non-volatile memory (non-volatile memory), such as a read-only memory (read-only memory). only memory, ROM), flash memory (flash memory), hard disk (hard disk drive, HDD) or solid-state drive (solid-state drive, SSD); the memory 1020 may also include a combination of the above-mentioned types of memory. The storage 1020 may refer to one storage, or may include multiple storages.
在一个实现方式中,存储器1020中存储有计算机可读指令,所述计算机可读指令包括多个软件模块,例如发送模块1021,处理模块1022和接收模块1023。处理器1010执行各个软件模块后可以按照各个软件模块的指示进行相应的操作。在本实施例中,一个软件模块所执行的操作实际上是指处理器1010根据所述软件模块的指示而执行的操作。In one implementation, computer-readable instructions are stored in the memory 1020 , and the computer-readable instructions include a plurality of software modules, such as a sending module 1021 , a processing module 1022 and a receiving module 1023 . After executing each software module, the processor 1010 may perform corresponding operations according to the instructions of each software module. In this embodiment, an operation performed by a software module actually refers to an operation performed by the processor 1010 according to an instruction of the software module.
示例性的,云平台100中的接收模块1023接收第一资源申请,该第一资源申请用于请求为第一用户分配第一资源,该第一资源用于供网络设备处理与该第一用户相关的报文。处理模块1022基于第一资源申请生成第一指示信息,以使得通过该第一指示信息直接或间接指示网络设备预留第一资源。发送模块1021该云平台根据该第一资源申请发送第一指示信息,该第一指示信息用于指示预留该第一资源。Exemplarily, the receiving module 1023 in the cloud platform 100 receives a first resource application, and the first resource application is used to request allocation of a first resource for the first user, and the first resource is used for the network device to process and communicate with the first user. related messages. The processing module 1022 generates first indication information based on the first resource application, so as to directly or indirectly instruct the network device to reserve the first resource through the first indication information. Sending module 1021: the cloud platform sends first indication information according to the first resource application, where the first indication information is used to indicate to reserve the first resource.
可选的,该第一资源申请包括第一标识,该第一标识与该第一用户相关,该与该第一用户相关的报文为携带该第一标识的第一报文。Optionally, the first resource application includes a first identifier, the first identifier is related to the first user, and the message related to the first user is a first message carrying the first identifier.
可选的,该第一资源申请包括该第一资源的配置额度和该第一标识,该第一资源的配置额度为该网络设备处理该第一报文时占用的资源量的最大值。Optionally, the first resource application includes a configuration quota of the first resource and the first identifier, and the configuration quota of the first resource is a maximum amount of resources occupied by the network device when processing the first packet.
示例性的,云平台100中的发送模块1021向集中管控节点发送该第一指示信息,以使得该集中管控节点向多个该网络设备发送该第一指示信息,该多个网络设备中的每个网络设备用于处理该第一报文。Exemplarily, the sending module 1021 in the cloud platform 100 sends the first indication information to the centralized management and control node, so that the centralized management and control node sends the first indication information to multiple network devices, and each of the multiple network devices A network device is used to process the first packet.
示例性的,云平台100中的发送模块1021在该第一资源到期时,向该集中管控节点发送第二指示信息,以使得该集中管控节点向多个该网络设备发送该第二指示信息,该第二指示信息用于指示该网络设备撤销该第一资源。Exemplarily, the sending module 1021 in the cloud platform 100 sends the second indication information to the centralized management and control node when the first resource expires, so that the centralized management and control node sends the second indication information to multiple network devices , the second indication information is used to instruct the network device to revoke the first resource.
示例性的,云平台100中的发送模块1021向源网络实例发送初始资源额度,该初始资源额度用于确定第一资源,该第一资源用于供网络设备处理与第一用户相关的报文,该第一用户为需要预留资源的用户;Exemplarily, the sending module 1021 in the cloud platform 100 sends an initial resource quota to the source network instance, and the initial resource quota is used to determine a first resource, and the first resource is used for the network device to process the message related to the first user , the first user is a user who needs to reserve resources;
示例性的,云平台100中的接收模块1023从该网络设备接收实际资源额度,该实际资源额度为该网络设备处理该与第一用户相关的报文所占用的实际资源量。其中,该与该第一用户相关的报文为携带第一标识的第一报文,该第一标识用于标识该第一用户,或者,该第一标识用于标识该第一用户的第一业务。Exemplarily, the receiving module 1023 in the cloud platform 100 receives an actual resource quota from the network device, and the actual resource quota is an actual resource amount occupied by the network device for processing the message related to the first user. Wherein, the message related to the first user is a first message carrying a first identifier, and the first identifier is used to identify the first user, or, the first identifier is used to identify the first user's a business.
其余可以参考上述实施例中云平台的方法,此处不再赘述。For the rest, reference may be made to the method of the cloud platform in the foregoing embodiments, which will not be repeated here.
此外,本申请还提供了一种计算机可读存储介质,该存储介质存储有计算机程序,该计算机程序被处理器执行以实现如前述图2、图4以及图6中的网络设备相关的方法。In addition, the present application also provides a computer-readable storage medium, the storage medium stores a computer program, and the computer program is executed by a processor to implement the methods related to the network device in the aforementioned FIG. 2 , FIG. 4 and FIG. 6 .
此外,本申请还提供了一种计算机可读存储介质,该存储介质存储有计算机程序,该计算机程序被处理器执行以实现如前述图4以及图6中的云平台相关的方法。In addition, the present application also provides a computer-readable storage medium, the storage medium stores a computer program, and the computer program is executed by a processor to implement the methods related to the cloud platform in FIG. 4 and FIG. 6 .
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。The above embodiments are only used to illustrate the technical solutions of the present application, not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be described in the foregoing embodiments Modifications are made to the recorded technical solutions, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of each embodiment of the application.

Claims (34)

  1. 一种报文传输方法,其特征在于,包括:A message transmission method, characterized in that, comprising:
    网络设备获取第一指示信息,所述第一指示信息用于指示预留第一资源,所述第一资源用于处理第一报文,所述第一报文为携带第一标识的一个或多个报文,所述第一标识与第一用户相关;The network device acquires first indication information, where the first indication information is used to indicate to reserve a first resource, and the first resource is used to process a first message, where the first message is one or a plurality of messages, the first identifier is related to the first user;
    所述网络设备采用所述第一资源处理所述第一报文。The network device uses the first resource to process the first packet.
  2. 根据权利要求1所述的方法,其特征在于,所述第一标识用于标识所述第一用户;或者,所述第一标识用于标识所述第一用户的第一业务,所述第一用户为已申请所述第一资源的用户。The method according to claim 1, wherein the first identifier is used to identify the first user; or, the first identifier is used to identify the first service of the first user, and the first A user is a user who has applied for the first resource.
  3. 根据权利要求1或2所述的方法,其特征在于,所述第一指示信息包括所述第一资源的配置额度和所述第一标识,所述第一资源的配置额度为所述网络设备处理所述第一报文时占用的资源量的最大值。The method according to claim 1 or 2, wherein the first indication information includes the configuration quota of the first resource and the first identification, and the configuration quota of the first resource is the network device The maximum amount of resources occupied when processing the first packet.
  4. 根据权利要求1至3中任意一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 3, further comprising:
    当所述网络设备处理所述第一报文时占用的资源量小于所述第一资源的配置额度时,所述网络设备采用所述第一资源处理第二报文,所述第二报文未携带所述第一标识。When the amount of resources occupied by the network device when processing the first message is less than the configured quota of the first resource, the network device uses the first resource to process the second message, and the second message The first identifier is not carried.
  5. 根据权利要求1至3中任意一项所述的方法,其特征在于,所述第一资源的配置额度为与所述第一用户相关的初始配置额度;The method according to any one of claims 1 to 3, wherein the configuration quota of the first resource is an initial configuration quota related to the first user;
    所述方法还包括:The method also includes:
    所述网络设备调整所述初始配置额度到另一个配置额度。The network device adjusts the initial configuration quota to another configuration quota.
  6. 根据权利要求1至5中任意一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 5, wherein the method further comprises:
    当处理所述第一报文所占用的资源下降至第一阈值时,所述网络设备调低所述第一资源的配置额度;When the resource occupied by processing the first message drops to a first threshold, the network device lowers the configuration quota of the first resource;
    和/或,and / or,
    当处理所述第一报文所占用的资源上升至第二阈值时,所述网络设备调高所述第一资源的配置额度,所述第二阈值大于所述第一阈值。When the resource occupied by processing the first packet rises to a second threshold, the network device increases the configuration quota of the first resource, and the second threshold is greater than the first threshold.
  7. 根据权利要求1至6中任意一项所述的方法,其特征在于,所述网络设备获取第一指示信息,包括:The method according to any one of claims 1 to 6, wherein the obtaining of the first indication information by the network device includes:
    所述网络设备从上一跳网络设备接收协商请求报文,所述协商请求报文用于协商配置所述第一资源,所述协商请求报文携带所述第一指示信息和所述上一跳网络设备的标识;The network device receives a negotiation request message from an upper-hop network device, the negotiation request message is used to negotiate and configure the first resource, and the negotiation request message carries the first indication information and the last Hop network device identification;
    当所述网络设备确定能够预留所述第一指示信息指示的第一资源时,所述网络设备在所述协商请求报文中添加所述网络设备的标识,并向下一跳网络设备发送携带所述第一指示信息、所述上一跳网络设备的标识和所述网络设备的标识的协商请求报文。When the network device determines that the first resource indicated by the first indication information can be reserved, the network device adds the identifier of the network device to the negotiation request message and sends it to the next-hop network device A negotiation request message carrying the first indication information, the identifier of the last-hop network device, and the identifier of the network device.
  8. 根据权利要求1至6中任意一项所述的方法,其特征在于,所述网络设备获取第一指示信息,包括:The method according to any one of claims 1 to 6, wherein the obtaining of the first indication information by the network device includes:
    所述网络设备从集中管控节点接收所述第一指示信息。The network device receives the first indication information from a centralized management and control node.
  9. 根据权利要求1至8中任意一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 8, further comprising:
    所述网络设备获取第二指示信息,所述第二指示信息用于指示撤销所述第一资源。The network device acquires second indication information, where the second indication information is used to indicate to revoke the first resource.
  10. 根据权利要求1至9中任意一项所述的方法,其特征在于,所述第一资源包括带宽资源。The method according to any one of claims 1 to 9, wherein the first resources include bandwidth resources.
  11. 一种资源分配方法,其特征在于,包括:A resource allocation method, characterized in that, comprising:
    云平台接收第一资源申请,所述第一资源申请用于请求为第一用户分配第一资源;The cloud platform receives a first resource application, and the first resource application is used to request allocation of the first resource for the first user;
    所述云平台根据所述第一资源申请发送第一指示信息,所述第一指示信息用于指示网络设备预留所述第一资源来处理与所述第一用户相关的报文。The cloud platform sends first indication information according to the first resource application, where the first indication information is used to instruct the network device to reserve the first resource to process the message related to the first user.
  12. 根据权利要求11所述的方法,其特征在于,所述第一资源申请包括第一标识,所述第一标识与所述第一用户相关,所述与所述第一用户相关的报文为携带所述第一标识的第一报文。The method according to claim 11, wherein the first resource application includes a first identifier, the first identifier is related to the first user, and the message related to the first user is A first packet carrying the first identifier.
  13. 根据权利要求11或12所述的方法,其特征在于,所述第一资源申请还包括所述第一资源的配置额度,所述第一资源的配置额度为所述网络设备处理所述第一报文时占用的资源量的最大值。The method according to claim 11 or 12, wherein the first resource application further includes a configuration quota of the first resource, and the configuration quota of the first resource is for the network device to process the first The maximum amount of resources occupied by the packet.
  14. 根据权利要求11至13中任意一项所述的方法,其特征在于,所述云平台根据所述第一资源申请发送第一指示信息,包括:The method according to any one of claims 11 to 13, wherein the cloud platform sends first indication information according to the first resource application, including:
    所述云平台向集中管控节点发送所述第一指示信息,以使得所述集中管控节点向多个所述网络设备发送所述第一指示信息,所述多个网络设备中的每个网络设备用于处理所述第一报文。The cloud platform sends the first indication information to the centralized management and control node, so that the centralized management and control node sends the first indication information to a plurality of network devices, and each network device in the plurality of network devices used to process the first packet.
  15. 根据权利要求11至14中任意一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 11 to 14, further comprising:
    当所述第一资源到期,所述云平台向所述集中管控节点发送第二指示信息,以使得所述集中管控节点向多个所述网络设备发送所述第二指示信息,所述第二指示信息用于指示所述网络设备撤销所述第一资源。When the first resource expires, the cloud platform sends second indication information to the centralized management and control node, so that the centralized management and control node sends the second indication information to multiple network devices, and the first The second instruction information is used to instruct the network device to revoke the first resource.
  16. 一种网络设备,其特征在于,包括:A network device, characterized in that it includes:
    收发模块,用于获取第一指示信息,所述第一指示信息用于指示预留第一资源,所述第一资源用于处理第一报文,所述第一报文为携带第一标识的一个或多个报文,所述第一标识与第一用户相关;A transceiver module, configured to acquire first indication information, where the first indication information is used to indicate to reserve a first resource, the first resource is used to process a first message, and the first message carries a first identifier One or more messages of , the first identifier is related to the first user;
    处理模块,用于采用所述第一资源处理所述第一报文。A processing module, configured to use the first resource to process the first message.
  17. 根据权利要求16所述的网络设备,其特征在于,所述第一标识用于标识所述第一用户;或者,所述第一标识用于标识所述第一用户的第一业务,所述第一用户为已申请所述第一资源的用户。The network device according to claim 16, wherein the first identifier is used to identify the first user; or, the first identifier is used to identify the first service of the first user, the The first user is a user who has applied for the first resource.
  18. 根据权利要求16或17所述的网络设备,其特征在于,所述第一指示信息包括所述第一资源的配置额度和所述第一标识,所述第一资源的配置额度为所述网络设备处理所述第一报文时占用的资源量的最大值。The network device according to claim 16 or 17, wherein the first indication information includes the configuration quota of the first resource and the first identification, and the configuration quota of the first resource is the network The maximum amount of resources occupied by the device when processing the first packet.
  19. 根据权利要求16至18中任意一项所述的网络设备,其特征在于,所述处理模块,还用于当处理所述第一报文时占用的资源量小于所述第一资源的配置额度时,采用所述第一资源处理第二报文,所述第二报文未携带所述第一标识。The network device according to any one of claims 16 to 18, wherein the processing module is further configured to use less than the configured quota of the first resource when processing the first message , the first resource is used to process the second packet, and the second packet does not carry the first identifier.
  20. 根据权利要求16至18中任意一项所述的网络设备,其特征在于,所述第一资源的配置额度为与所述第一用户相关的初始配置额度;The network device according to any one of claims 16 to 18, wherein the configuration quota of the first resource is an initial configuration quota related to the first user;
    所述处理模块,还用于调整所述初始配置额度到另一个配置额度。The processing module is further configured to adjust the initial configuration quota to another configuration quota.
  21. 根据权利要求16至20中任意一项所述的网络设备,其特征在于,所述处理模 块,还用于:The network device according to any one of claims 16 to 20, wherein the processing module is also used for:
    当处理所述第一报文所占用的资源下降至第一阈值时,调低所述第一资源的配置额度;When the resource occupied by processing the first message drops to a first threshold, reduce the configuration quota of the first resource;
    和/或,and / or,
    当处理所述第一报文所占用的资源上升至第二阈值时,调高所述第一资源的配置额度,所述第二阈值大于所述第一阈值。When the resource occupied by processing the first packet rises to a second threshold, increase the configuration quota of the first resource, and the second threshold is greater than the first threshold.
  22. 根据权利要求16至21中任意一项所述的网络设备,其特征在于,所述收发模块,具体用于从上一跳网络设备接收协商请求报文,所述协商请求报文用于协商配置所述第一资源,所述协商请求报文携带所述第一指示信息和所述上一跳网络设备的标识;The network device according to any one of claims 16 to 21, wherein the transceiver module is specifically configured to receive a negotiation request message from the previous hop network device, and the negotiation request message is used for negotiation configuration The first resource, the negotiation request message carrying the first indication information and the identifier of the last-hop network device;
    所述处理模块,具体用于当确定能够预留所述第一指示信息指示的第一资源时,在所述协商请求报文中添加所述网络设备的标识,并向下一跳网络设备发送携带所述第一指示信息、所述上一跳网络设备的标识和所述网络设备的标识的协商请求报文。The processing module is specifically configured to, when it is determined that the first resource indicated by the first indication information can be reserved, add the identifier of the network device to the negotiation request message, and send it to the next-hop network device A negotiation request message carrying the first indication information, the identifier of the last-hop network device, and the identifier of the network device.
  23. 根据权利要求16至21中任意一项所述的网络设备,其特征在于,所述收发模块,具体用于从集中管控节点接收所述第一指示信息。The network device according to any one of claims 16 to 21, wherein the transceiver module is specifically configured to receive the first indication information from a centralized management and control node.
  24. 根据权利要求16至23中任意一项所述的网络设备,其特征在于,所述收发模块,还用于获取第二指示信息,所述第二指示信息用于指示撤销所述第一资源。The network device according to any one of claims 16 to 23, wherein the transceiving module is further configured to obtain second indication information, and the second indication information is used to indicate to revoke the first resource.
  25. 根据权利要求16至24中任意一项所述的网络设备,其特征在于,所述第一资源包括带宽资源。The network device according to any one of claims 16 to 24, wherein the first resources include bandwidth resources.
  26. 一种云平台,其特征在于,包括:A kind of cloud platform, is characterized in that, comprises:
    接收模块,用于接收第一资源申请,所述第一资源申请用于请求为第一用户分配第一资源;A receiving module, configured to receive a first resource application, where the first resource application is used to request allocation of a first resource for a first user;
    发送模块,用于根据所述第一资源申请发送第一指示信息,所述第一指示信息用于指示网络设备预留所述第一资源来处理与所述第一用户相关的报文。A sending module, configured to send first indication information according to the first resource application, where the first indication information is used to instruct a network device to reserve the first resource to process a message related to the first user.
  27. 根据权利要求26所述的云平台,其特征在于,所述第一资源申请包括第一标识,所述第一标识与所述第一用户相关,所述与所述第一用户相关的报文为携带所述第一标识的第一报文。The cloud platform according to claim 26, wherein the first resource application includes a first identifier, the first identifier is related to the first user, and the message related to the first user is the first packet carrying the first identifier.
  28. 根据权利要求26或27所述的云平台,其特征在于,所述第一资源申请还包括所述第一资源的配置额度,所述第一资源的配置额度为所述网络设备处理所述第一报文时占用的资源量的最大值。The cloud platform according to claim 26 or 27, wherein the first resource application further includes a configuration quota of the first resource, and the configuration quota of the first resource is for the network device to process the second resource. The maximum amount of resources occupied by one packet.
  29. 根据权利要求26至28中任意一项所述的云平台,其特征在于,所述发送模块,具体用于向集中管控节点发送所述第一指示信息,以使得所述集中管控节点向多个所述网络设备发送所述第一指示信息,所述多个网络设备中的每个网络设备用于处理所述第一报文。The cloud platform according to any one of claims 26 to 28, wherein the sending module is specifically configured to send the first indication information to the centralized management and control node, so that the centralized management and control node sends a plurality of The network device sends the first indication information, and each network device in the plurality of network devices is used to process the first packet.
  30. 根据权利要求26至29中任意一项所述的云平台,其特征在于,According to the cloud platform described in any one of claims 26 to 29, it is characterized in that,
    所述发送模块,还用于当所述第一资源到期,向所述集中管控节点发送第二指示信息,以使得所述集中管控节点向多个所述网络设备发送所述第二指示信息,所述第二指示信息用于指示所述网络设备撤销所述第一资源。The sending module is further configured to send second indication information to the centralized management and control node when the first resource expires, so that the centralized management and control node sends the second indication information to a plurality of network devices , the second indication information is used to instruct the network device to revoke the first resource.
  31. 一种网络设备,其特征在于,包括处理器和存储器,所述存储器存储有程序, 当所述存储器存储的程序指令被所述处理器执行时使得所述网络设备实现权利要求1至10中任意一项所述的方法。A network device, characterized in that it includes a processor and a memory, the memory stores a program, and when the program instructions stored in the memory are executed by the processor, the network device realizes any of claims 1 to 10. one of the methods described.
  32. 一种云平台,其特征在于,包括处理器和存储器,所述存储器存储有程序,当所述存储器存储的程序指令被所述处理器执行时使得所述云平台实现权利要求11至15中任意一项所述的方法。A cloud platform, characterized in that it includes a processor and a memory, the memory stores a program, and when the program instructions stored in the memory are executed by the processor, the cloud platform realizes any of claims 11 to 15. one of the methods described.
  33. 一种计算机可读存储介质,包括计算机程序,所述计算机序被处理器执行以实现如权利要求1至10或11至15中任意一项所述的方法。A computer-readable storage medium, including a computer program, the computer program is executed by a processor to implement the method according to any one of claims 1-10 or 11-15.
  34. 一种包含指令的计算机程序产品,所述计算机程序产品包括计算机程序代码,当所述计算机程序代码在计算机上运行时,使得计算机执行如权利要求1至10或11至15中任意一项所述的方法。A computer program product comprising instructions, the computer program product comprising computer program code, when the computer program code is run on a computer, causing the computer to perform the Methods.
PCT/CN2022/092364 2021-05-13 2022-05-12 Packet processing method, resource allocation method and related device WO2022237860A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202110523413 2021-05-13
CN202110523413.8 2021-05-13
CN202110864867.1A CN115941621A (en) 2021-05-13 2021-07-29 Message processing method, resource allocation method and related equipment
CN202110864867.1 2021-07-29

Publications (1)

Publication Number Publication Date
WO2022237860A1 true WO2022237860A1 (en) 2022-11-17

Family

ID=84028098

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/092364 WO2022237860A1 (en) 2021-05-13 2022-05-12 Packet processing method, resource allocation method and related device

Country Status (1)

Country Link
WO (1) WO2022237860A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140379924A1 (en) * 2013-06-21 2014-12-25 Microsoft Corporation Dynamic allocation of resources while considering resource reservations
CN107347089A (en) * 2017-05-16 2017-11-14 深圳警翼智能科技股份有限公司 A kind of resource allocation methods of carrier-class cloud computing system
US20200336435A1 (en) * 2017-12-31 2020-10-22 Huawei Technologies Co., Ltd. Packet Sending Method, Device, and System
WO2021179718A1 (en) * 2020-03-11 2021-09-16 华为技术有限公司 Message transmission method and apparatus, and network device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140379924A1 (en) * 2013-06-21 2014-12-25 Microsoft Corporation Dynamic allocation of resources while considering resource reservations
CN107347089A (en) * 2017-05-16 2017-11-14 深圳警翼智能科技股份有限公司 A kind of resource allocation methods of carrier-class cloud computing system
US20200336435A1 (en) * 2017-12-31 2020-10-22 Huawei Technologies Co., Ltd. Packet Sending Method, Device, and System
WO2021179718A1 (en) * 2020-03-11 2021-09-16 华为技术有限公司 Message transmission method and apparatus, and network device

Similar Documents

Publication Publication Date Title
US7636781B2 (en) System and method for realizing the resource distribution in the communication network
US8730813B2 (en) Apparatus for performing packet-shaping on a packet flow
WO2021057447A1 (en) Method for determining required bandwidth for data stream transmission, and devices and system
CN114125924B (en) TSN service processing method and device and computer readable storage medium
WO2012145841A1 (en) Hierarchical profiled scheduling and shaping
US11310167B2 (en) Resource reservation method and related device
CN114128228B (en) Transmitting MTNC-ID through SRv head to realize 5G transmission
WO2015101066A1 (en) Method and node for establishing quality of service reservation
US11165716B2 (en) Data flow processing method and device
WO2018036516A1 (en) Method and system for traffic management, packet switching device and user device
Ghanwani et al. A framework for integrated services over shared and switched IEEE 802 LAN technologies
CN111917662A (en) Bandwidth reservation method and related equipment
WO2016150020A1 (en) Scheduling flow identifier-based packet scheduling method and device
EP3202111B1 (en) Allocating capacity of a network connection to data steams based on type
WO2011113264A1 (en) Traffic management method and apparatus in switching network
CN113810442B (en) Resource reservation method, device, terminal and node equipment
WO2022237860A1 (en) Packet processing method, resource allocation method and related device
US11870707B2 (en) Bandwidth management and configuration method for cloud service, and related apparatus
CN116232990A (en) Transmitting MTNC-ID on data plane supporting SRv to enable 5G transmission
CN109792405B (en) Method and apparatus for shared buffer allocation in a transmission node
WO2021174236A2 (en) In-band signaling for latency guarantee service (lgs)
CN115941621A (en) Message processing method, resource allocation method and related equipment
WO2024011907A1 (en) Data scheduling method, and electronic device and storage medium
WO2023202467A1 (en) Network configuration method and apparatus
CN114501544A (en) Data transmission method, device and storage medium

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: 22806822

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22806822

Country of ref document: EP

Kind code of ref document: A1