[go: up one dir, main page]

WO2022237860A1 - 报文处理方法、资源分配方法以及相关设备 - Google Patents

报文处理方法、资源分配方法以及相关设备 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
English (en)
French (fr)
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/zh
Application filed by 华为云计算技术有限公司 filed Critical 华为云计算技术有限公司
Publication of WO2022237860A1 publication Critical patent/WO2022237860A1/zh

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

本申请实施例公开了一种报文处理方法、资源分配方法以及相关设备,用于预留一部分资源专用于处理与第一用户或第一业务相关报文,有利于提高部分用户或部分业务的报文的处理效率,进而保证部分用户的业务的时延、抖动、丢包率等指标,进而提升部分用户的服务水平协议SLA的水平。

Description

报文处理方法、资源分配方法以及相关设备 技术领域
本申请实施例涉及通信领域,尤其涉及报文处理方法、资源分配方法以及相关设备。
背景技术
云数据中心网络是一种多用户共享计算、存储和网络等资源的数据中心网络,由网卡、路由器和多协议标签交换(multi-protocol label switching,MPLS)交换机等网络设备组成。
目前,云数据中心网络中的网络设备在使用资源处理报文时采用尽力而为(best-effort)的处理策略。例如,当网络设备中的资源足以处理收到的报文时,该网络设备则无差别地处理收到的报文;当网络设备中的资源紧缺时,该网络设备向上游跳网络设备发送暂停指示,已暂缓接收报文。
然而,订购云数据中心网络的服务的用户并不是无差别的,例如,可能存在不同优先等级的用户。目前网络设备的报文处理机制可能导致网络设备在处理低优先级的用户的报文时影响了高优先级的用户的报文处理,导致部分用户的服务水平协议(service level agreement,SLA)无法得到保障,不利于针对不同的用户提供不同的SLA。
发明内容
本申请实施例提供了一种报文处理方法、资源分配方法以及相关设备,用于预留一部分资源专用于处理与第一用户或第一业务相关报文,有利于提高部分用户或部分业务的报文的处理效率,进而保证部分用户的业务的时延、抖动、丢包率等指标,进而提升部分用户的SLA的水平。
第一方面,本申请提供了一种报文传输方法,在该方法中,当某一个用户(例如,第一用户)的报文需要经由网络设备处理,并且,与该第一用户相关的报文需要获得较高效的处理时,网络设备可以其他网络设备或集中管控节点获取第一指示信息,该第一指示信息用于指示为前述第一用户预留用于处理与该第一用户相关的报文的资源,以使得该网络设备能够使用前述资源处理与第一用户相关的报文。本申请中将与第一用户相关的报文称为第一报文,该第一报文为携带第一标识的一个或多个报文。此外,本申请将第一指示信息指示预留的资源称为第一资源,该第一资源用于处理前述第一报文。
其中,网络设备可以是网卡、路由器或交换机中任意一种设备。
其中,网络设备对第一报文的处理,可以理解为,网络设备直接对第一报文进行转发处理;也可以理解为,网络设备解析第一报文,对第一报文携带的载荷执行了删减或增添等动作,然后,将处理后的第一报文按照预先确定的转发路径转发至下一跳网络设备。具体本申请不做限定。
本实施例中,网络设备(例如,交换器、路由器以及网卡等网络设备)能够基于第一指示信息预留用于处理与第一用户相关的报文(即第一报文)的第一资源,以使得该网络设备采用前述第一资源处理与第一用户相关的报文,进而该网络设备在处理第一报文时能够保证时延、抖动、丢包率等指标,有利于提升第一报文对应的用户的SLA的水平。而传统技术中,网络设备不感知用户,也不感知用户的业务,不利于网络设备针对部分用户提高用户的SLA的水平。
在一种可能的实施方式中,第一标识的标识粒度可以不同。若该第一标识的标识粒度为用户级别,则该第一标识用于标识第一用户;若该第一标识的标识粒度为业务级别,则该第一标识用于标识第一用户的第一业务,该第一用户为已申请该第一资源的用户。
在一种可选的实施方式中,该第一标识用于标识第一用户。
本实施方式中,与第一用户相关的报文即为第一报文,无需区分报文所属的会话类型等其他因素。也就是说,与第一用户相关的任何业务的报文都可以使用前述第一资源,即网络设备可以使用第一资源处理与第一用户相关的任何业务的报文。示例性的,第一报文可以是与第一用户相关的任何会话的报文。例如,语音类会话、视频类会话、文字类会话等。本实施方式,不区分报文所属的会话类型,不仅有利于节约标识,还有利于降低网络设备的处理复杂度。
在另一种可选的实施方式中,该第一标识用于标识该第一用户的第一业务。
本实施方式中,与第一用户的第一业务相关的报文为第一报文,与第一用户的其他业务相关的报文可能不是第一报文。也就是说,与第一用户的第一业务相关的报文可以使用第一资源,该第一用户的其他业务不能使用前述第一资源,即网络设备可以使用第一资源处理与第一用户的第一业务相关的报文,而不能处理该第一用户的其他业务相关的报文。该第一业务可以是对处理时延或丢包率要求较高的业务,例如,视频通话类业务。本实施方式,有利于将第一资源用于处理对时延等指标要求更苛刻的业务的报文,能够提升资源的利用效率。
在一种可能的实施方式中,网络设备收到的第一指示信息至少包括第一资源的配置额度和第一标识,其中,第一资源的配置额度指配置给该网络设备的用于处理第一报文的资源额度,是网络设备处理该第一报文时占用的资源量的最大值。
其中,该第一资源的配置额度可以是初始配置额度,例如,该网络设备首次收到的用于处理与第一用户相关的报文的资源额度;该第一资源的配置额度也可以是更新的配置额度,例如,网络设备在收到初始配置额度之后,若第一用户修改了资费套餐,则该网络设备可能由会收到一个配置额度,新收到的配置额度将替换前述初始配置额度。
本实施方式中,网络设备在收到第一指示信息之后,可以根据第一指示信息确定的第一资源的配置额度合理分配处理第一报文的资源量,以避免分配给处理第一报文的资源过少而影响第一报文的处理效率,也为了避免在处理其他报文的过程中抢占用于处理第一报文的资源。因此,能够有效避免网络中资源不稳定等因素对第一报文的处理效率的影响,减缓或避免第一报文的处理过程出现拥塞或丢包等现象。
在一种可能的实施方式中,若网络设备在采用第一资源处理第一报文时,该网络 设备中的还存在一部分空余的第一资源,则该网络设备可以将这部分空余的第一资源用于处理除了第一报文以外的其他报文。示例性的,当该网络设备处理该第一报文时占用的资源量小于该第一资源的配置额度时,该网络设备采用该第一资源处理第二报文,该第二报文未携带该第一标识。
本实施方式中,网络设备不改变第一资源的配置额度,但是,该网络设备可以将第一资源中的一部分资源用于处理其他报文。示例性的,网络设备收到的第一报文的数量较少,该网络设备处理前述第一报文所使用的资源量可能小于第一资源的配置额度,此时,该网络设备可以采用空闲的第一资源处理其他报文(例如,第二报文,该第二报文未携带该第一标识)。当网络设备收到的第一报文的数量上升,则该网络设备能够将用于处理其他报文的第一资源收回,以保证该网络设备能够有足够的资源用于处理第一报文。本实施方式,可以用于预付费的资源售卖模式中,例如,预付带宽或预付流量的模式中。有利于灵活分配用于处理报文的资源,提高资源的利用效率。
在一种可能的实施方式中,若第一资源的配置额度为与该第一用户相关的初始配置额度,则该方法还包括:该网络设备调整该初始配置额度到另一个配置额度。
在一种可能的实施方式中,该方法还包括:当处理该第一报文所占用的资源下降至第一阈值时,该网络设备调低该第一资源的配置额度;和/或,当处理该第一报文所占用的资源上升至第二阈值时,该网络设备调高该第一资源的配置额度,该第二阈值大于该第一阈值。其中,第一阈值和第二域值是网络管理设备预先配置的取值,也可以是网络管理设备预先配置的参数确定的取值。
本实施方式中,网络设备可以改变第一资源的配置额度,可以用于后付费的资源售卖模式中,例如,后付费流量售卖模式中。示例性的,第一用户在与云平台签约时确定要使用资源,但使用的资源的额度并未完全约定(例如,仅约定了一个初始额度),并且,允许云平台指示网络设备或配置网络设备基于第一用户的实际流量(例如,与第一用户相关的报文数量)在前述初始额度的基础上进行调整。本实施方式,可以在保证用于处理第一报文的资源量的同时,能够灵活调整第一用户能够使用的流量,无需第一用户提前给付费用,事后根据已使用的流量按照既定价格标准付费。有利于灵活分配用于处理报文的资源,提高资源的利用效率,能够适用于业务流量模型随机的应用场景。
在一种可能的实施方式中,该网络设备获取第一指示信息的过程具体可以为:该网络设备从上一跳网络设备接收协商请求报文,该协商请求报文用于协商配置第一资源,该协商请求报文携带该第一指示信息和该上一跳网络设备的标识。然后,当该网络设备确定能够预留该第一指示信息指示的第一资源时,该网络设备在该协商请求报文中添加该网络设备的标识,并向下一跳网络设备发送携带该第一指示信息、该上一跳网络设备的标识和该网络设备的标识的协商请求报文。
本实施方式中,提出通过带内控制的方式协商资源,适用于对配置时效性要求较高的场景,例如,要求生效时间在纳秒级别的场景。本实施方式,处理时延小,能够通过数据面的报文实现对网络设备的配置,有利于提升第一资源的配置效率。另外,本实施例可以用于后付费的资源售卖模式中,可以在保证用于处理第一报文的资源量的同时,能够灵活调整第一用户能够使用的流量,无需第一用户提前给付费用,事后 根据已使用的流量按照既定价格标准付费。有利于灵活分配用于处理报文的资源,提高资源的利用效率,能够适用于业务流量模型随机的应用场景。
在一种可能的实施方式中,该网络设备获取第一指示信息的过程具体可以为:该网络设备从集中管控节点接收第一指示信息。可选的,该第一指示信息来自于云平台,即云平台基于与第一用户的订购协议确定第一指示信息,然后,将前述第一指示信息发送给集中管控节点,然后,集中管控节点将前述第一指示信息发送给前述网络设备。
本实施方式中,提出通过带外控制的方式协商资源,适用于对配置时效性要求较低的场景。可以用于预付费的资源售卖模式中,集中管控节点能够实时获取网络中的各个网络设备中可用的资源,然后,由集中管控节点确定传输第一报文的传输路径。不仅能够确保选择出去程传输路径和回程传输路径,还有利于收集各个网络设备的信息。另外,网络设备直接通过集中管理节点获取第一指示信息,而无需与其他网络设备协商预留资源,有利于提高管理效率。
在一种可能的实施方式中,当该网络设备的上一跳为源网络实例时,该网络设备获取该第一报文,包括:该网络设备对从源网络实例接收的报文添加该第一标识,得到该第一报文。本实施方式中,该网络设备为网卡,该网卡具有对收到的报文进行标记的功能。
在一种可能的实施方式中,当该网络设备的上一跳不是源网络实例时,该网络设备获取该第一报文,包括:该网络设备从该网络设备的上一跳网络设备接收的报文中筛选携带该第一标识的报文,得到该第一报文。本实施方式中,该网络设备为路由器或交换机。以交换机为例,该交换机可以收到的多个报文中筛选出携带第一标识的报文,而无需再给第一报文添加第一标识。
在一种可能的实施方式中,该方法还包括:该网络设备获取第二指示信息,该第二指示信息用于指示撤销该第一资源。
本实施方式中,提出当第一用户订购的资源到期时,网络设备能够收到用于撤销第一资源的第二指示信息,该第二指示信息可以是云平台发送给集中管控节点,再由集中管控节点发送给前述网络设备的。
在一种可能的实施方式中,该第一资源包括带宽资源。
第二方面,本申请提供了一种资源分配方法,在该方法中,云平台采用带外控制的方式为网络设备配置第一资源。若第一用户想要与该第一用户相关的报文获得较高效的处理,以保证该第一用户的业务的时延、抖动以及丢包率等,该第一用户可以向云平台申请用于处理与该第一用户相关的报文的资源。具体地,云平台可以从集中管控节点或第一用户对应的源网络实例接收第一资源申请,该第一资源申请用于请求为第一用户分配第一资源,该第一资源用于供网络设备处理与该第一用户相关的报文。然后,该云平台根据该第一资源申请中的第一标识确定第一指示信息,该第一指示信息用于指示预留该第一资源。然后,该云平台通过集中管控节点(或其他网络节点)将第一指示信息发送至网络中的网络设备。
本实施例中,云平台可以接收第一资源申请并基于第一资源申请确定第一指示信息,以使得该第一指示信息能够通过集中管控节点(或其他网元)传输到网络设备,以使得网络设备能预留用于处理与第一用户相关的报文的第一资源。该云平台能够提 供为高优先级的用户(例如,第一用户)提供保证与第一用户的报文的时延、抖动、丢包率等指标的业务,有利于提升第一报文对应的用户的SLA的水平。而传统技术中,网络设备不感知用户,也不感知用户的业务,不利于网络设备针对部分用户提高用户的SLA的水平。
在一种可能的实施方式中,该第一资源申请包括第一标识,该第一标识与该第一用户相关,与该第一用户相关的报文为携带该第一标识的第一报文。
本实施方式中,由于该云平台中存储有该云平台在与第一用户签约时确定的资源额度,因此,第一资源申请中可以仅包含第一标识,该云平台基于第一标识便可以确定预留多少第一资源。本实施方式,有利于减小信令的复杂度。
在一种可能的实施方式中,该第一资源申请还包括该第一资源的配置额度,其中,第一资源的配置额度为该网络设备处理该第一报文时占用的资源量的最大值。
本实施方式中,第一资源申请可以包含第一标识和第一资源的配置额度,此时,该云平台无需查找与第一用户签约时的信息,有利于云平台快速地确定第一指示信息,提高云平台的处理效率。
在一种可能的实施方式中,该云平台根据该第一资源申请发送第一指示信息具体可以为:云平台可以先向集中管控节点发送该第一指示信息,然后,该该集中管控节点分别向多个该网络设备发送前述第一指示信息,以使得前述多个网络设备中的每个网络设备预留第一资源,并采用该第一资源处理该第一报文。
本实施方式中,提出云平台通过集中管控节点管理多个网络设备,该云平台可以无需与网络设备进行直接交互,有利于提升云平台的管理效率。
在一种可能的实施方式中,当该第一资源到期,该云平台向集中管控节点发送第二指示信息,其中,该第二指示信息用于指示该网络设备撤销该第一资源。然后,该集中管控节点向多个网络设备发送第二指示信息,以使得前述每个网络设备能够释放第一资源。
本实施方式中,提出当第一用户订购的资源到期时,云平台通过第二指示信息撤销第一资源,以使得该网络设备释放第一资源,进而促使该网络设备利用释放的第一资源处理其他用户或其他业务的报文。
第三方面,本申请提供了一种网络设备,包括:收发模块和处理模块。其中,收发模块,用于获取第一指示信息,该第一指示信息用于指示预留第一资源,该第一资源用于处理第一报文,该第一报文为携带第一标识的报文,该第一标识与第一用户相关;处理模块,用于采用该第一资源处理该第一报文。
其中,网络设备可以是网卡、路由器或交换机中任意一种设备。
其中,处理模块对第一报文的处理,可以理解为,直接对第一报文进行转发处理;也可以理解为,解析第一报文,对第一报文携带的载荷执行了删减或增添等动作,然后,将处理后的第一报文按照预先确定的转发路径转发至下一跳网络设备。具体本申请不做限定。
本实施例中,网络设备(例如,交换器、路由器以及网卡等网络设备)能够基于第一指示信息预留用于处理与第一用户相关的报文(即第一报文)的第一资源,以使得该网络设备采用前述第一资源处理与第一用户相关的报文,进而该网络设备在处理 第一报文时能够保证时延、抖动、丢包率等指标,有利于提升第一报文对应的用户的SLA的水平。而传统技术中,网络设备不感知用户,也不感知用户的业务,不利于网络设备针对部分用户提高用户的SLA的水平。
在一种可能的实施方式中,第一标识的标识粒度可以不同。若该第一标识的标识粒度为用户级别,则该第一标识用于标识第一用户;若该第一标识的标识粒度为业务级别,则该第一标识用于标识第一用户的第一业务,该第一用户为已申请该第一资源的用户。
本实施方式中,当第一标识用于标识第一用户时,与第一用户相关的报文即为第一报文,无需区分报文所属的会话类型等其他因素。也就是说,与第一用户相关的任何业务的报文都可以使用前述第一资源,即网络设备可以使用第一资源处理与第一用户相关的任何业务的报文。示例性的,第一报文可以是与第一用户相关的任何会话的报文。例如,语音类会话、视频类会话、文字类会话等。本实施方式,不区分报文所属的会话类型,不仅有利于节约标识,还有利于降低网络设备的处理复杂度。
本实施方式中,当第一标识用于标识第一用户的第一业务时,与第一用户的第一业务相关的报文为第一报文,与第一用户的其他业务相关的报文可能不是第一报文。也就是说,与第一用户的第一业务相关的报文可以使用第一资源,该第一用户的其他业务不能使用前述第一资源,即网络设备可以使用第一资源处理与第一用户的第一业务相关的报文,而不能处理该第一用户的其他业务相关的报文。该第一业务可以是对处理时延或丢包率要求较高的业务,例如,视频通话类业务。本实施方式,有利于将第一资源用于处理对时延等指标要求更苛刻的业务的报文,能够提升资源的利用效率。
在一种可能的实施方式中,该第一指示信息包括该第一资源的配置额度和该第一标识,该第一资源的配置额度为该网络设备处理该第一报文时占用的资源量的最大值。
在一种可能的实施方式中,该处理模块,还用于当处理该第一报文时占用的资源量小于该第一资源的配置额度时,采用该第一资源处理第二报文,该第二报文未携带该第一标识。
在一种可能的实施方式中,该处理模块,还用于:当处理该第一报文所占用的资源下降至第一阈值时,调低该第一资源的配置额度;和/或,当处理该第一报文所占用的资源上升至第二阈值时,调高该第一资源的配置额度,该第二阈值大于该第一阈值。
在一种可能的实施方式中,该收发模块,具体用于从上一跳网络设备接收协商请求报文,该协商请求报文用于协商配置该第一资源,该协商请求报文携带该第一指示信息和该上一跳网络设备的标识;该处理模块,具体用于当确定能够预留该第一指示信息指示的第一资源时,在该协商请求报文中添加该网络设备的标识,并向下一跳网络设备发送携带该第一指示信息、该上一跳网络设备的标识和该网络设备的标识的协商请求报文。
在一种可能的实施方式中,该收发模块,具体用于从集中管控节点接收该第一指示信息。
在一种可能的实施方式中,该收发模块,具体用于对从该源网络实例接收的报文添加该第一标识,得到该第一报文。
在一种可能的实施方式中,该收发模块,具体用于从该上一跳网络设备接收的报 文中筛选携带该第一标识的报文,得到该第一报文。
在一种可能的实施方式中,该收发模块,还用于获取第二指示信息,该第二指示信息用于指示撤销该第一资源。
在一种可能的实施方式中,该第一资源包括带宽资源。
需要说明的是,本申请实施例还有多种具体其他实施方式,具体可参见第一方面的具体实施方式和其有益效果,在此不再赘述。
第四方面,本申请提供了一种云平台,包括:接收模块和发送模块。其中,接收模块,用于接收第一资源申请,该第一资源申请用于请求为第一用户分配第一资源,该第一资源用于供网络设备处理与该第一用户相关的报文;发送模块,用于根据该第一资源申请发送第一指示信息,该第一指示信息用于指示预留该第一资源。
在一种可能的实施方式中,该第一资源申请包括第一标识,该第一标识与该第一用户相关,与该第一用户相关的报文为携带该第一标识的第一报文。
在一种可能的实施方式中,该第一资源申请包括该第一资源的配置额度和该第一标识,该第一资源的配置额度为该网络设备处理该第一报文时占用的资源量的最大值。
在一种可能的实施方式中,该发送模块,具体用于向集中管控节点发送该第一指示信息,以使得该集中管控节点向多个该网络设备发送该第一指示信息,该多个网络设备中的每个网络设备用于处理该第一报文。
在一种可能的实施方式中,该发送模块,还用于当该第一资源到期,向该集中管控节点发送第二指示信息,以使得该集中管控节点向多个该网络设备发送该第二指示信息,该第二指示信息用于指示该网络设备撤销该第一资源。
需要说明的是,本申请实施例还有多种具体其他实施方式,具体可参见第二方面的具体实施方式和其有益效果,在此不再赘述。
第五方面,本申请提供了一种网络设备,其特征在于,包括处理器和存储器,该存储器存储有程序,当该存储器存储的程序指令被该处理器执行时使得该网络设备实现如前述第一方面任意一种实施方式所介绍的方法。
第六方面,本申请提供了一种云平台,其特征在于,包括处理器和存储器,该存储器存储有程序,当该存储器存储的程序指令被该处理器执行时使得该云平台实现如前述第二方面任意一种实施方式所介绍的方法。
从以上技术方案可以看出,本申请实施例具有以下优点:
本申请中,网络设备(例如,交换器、路由器以及网卡等网络设备)能够基于第一指示信息预留用于处理与第一用户相关的报文(即第一报文)的第一资源,以使得该网络设备采用前述第一资源处理与第一用户相关的报文,进而该网络设备在处理第一报文时能够保证时延、抖动、丢包率等指标,有利于提升第一报文对应的用户的SLA的水平。
附图说明
为了更清楚地说明本申请实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例。
图1A为本申请适用的云数据中心网络架构的一个示意图;
图1B为CLOS交换架构的一个示意图;
图2为本申请中报文处理方法的一个流程图;
图3为本申请中网络设备处理报文的一个示例图;
图4为本申请中资源分配方法的一个流程图;
图5为本申请中采用带内控制时资源分配方法的一个示例图;
图6为本申请中资源分配方法的另一个流程图;
图7为本申请中采用带外控制时资源分配方法的一个示例图;
图8为本申请中网络设备的一个实施例示意图;
图9A为本申请中网络设备的另一个实施例示意图;
图9B为本申请中网络设备的另一个实施例示意图;
图9C为本申请中网络设备的另一个实施例示意图;
图10为本申请中云平台的一个实施例示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
下面先对本申请提出的报文处理方法所适用的应用场景和系统架构进行介绍:
本申请提出的报文处理方法应用于云服务场景。例如,用户通过云平台向云服务提供商购买一定的资源,云平台基于用户购买的资源为用户分配网络设备和相应的资源,以保证前述网络设备能够为用户预留足够的资源处理该用户的相关业务的报文。
如图1A所示,为本申请的报文处理方法适用的端到端的云数据中心网络架构。该系统架构包括源网络实例、目的网络实例、中间节点和集中管控节点。其中,源网络实例是用户的报文的传输起点,是用户的一个业务实例(例如,容器、虚拟机等)对应的虚拟交换机;目的网络实例是用户的报文的传输终点,是用户的另一个业务实例(例如,容器、虚拟机等)对应的虚拟交换机;中间节点可以是一个网络设备,也可以是多个网络设备的组合,能够对前述报文进行转发处理;集中管控节点可以搜集各个中间节点的信息,以便为源网络实例和目的网络实例之间的报文传输选择合适的传输路径以及在该传输路径上的网络设备中预留用于处理报文的资源。
一般地,云数据中心网络架构常采用CLOS交换架构(Clos Architecture),该CLOS交换架构是一种应用于云数据中心网络的典型的多级架构。其中,每一级架构包含多个交换单元,在每一级中每个交换单元都和下一级的所有交换单元相连接。由于,该CLOS交换架构具有无阻塞(Non-blocking)、可重构(Re-arrangeable)以及可扩 展(Scalable)等特性,因此,传统云数据中心网络常采用基于CLOS网络架构的网络。
示例性的,如图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)(简称,网卡)。
在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。本申请提出的报文处理方法可以适用于任意一种报文传输方式所涉及的网络设备,具体此处不做限定。
本申请提出的报文处理方法可以应用于图1A所示的系统架构,也可以应用于图1B所示的系统架构,还可以适用于其他云数据中心网络架构,具体此处不做限定。
此外,本申请涉及的网络设备可以是图1A所示系统架构中的中间节点,也可以是图1B所示系统架构中的TOR层中的网络设备(例如,TOR层中的TOR交换机)、SPINE层中的网络设备(例如,SPINE层中的SPINE交换机)以及CORE层中的网络设备(例如,CORE层中的CORE交换机)等,具体此处不做限定。
本申请提出云数据中心网络中的各个网络设备能够预留适当额度的资源以处理特定的报文(例如,高优先级的用户或业务的报文),以使得该网络设备在处理前述特定的报文时能够确保处理时延和丢包率。另外,当传输路径上每一个网络设备都预留前述资源以处理特定的报文时,则云数据中心网络便构成了一个逻辑上的无损网络,有利于保证部分高优先级用户的业务的处理时延和抖动,有利于保障部分用户的服务水平协议SLA。
下面结合图2对本申请的报文处理方法进行介绍:
步骤201,网络设备获取第一指示信息,该第一指示信息用于指示预留第一资源,该第一资源用于处理第一报文。
其中,第一指示信息用于指示网络设备预留第一资源,以使得该网络设备能够使用该第一资源处理第一报文。具体可以理解为,该第一指示信息指示该网络设备保证有一定额度的资源(即根据第一指示信息确定的第一资源)用于处理第一报文,以避免在处理其他报文的过程中抢占用于处理第一报文的资源,而影响网络设备对第一报文的处理效率,进而导致第一报文的处理过程出现拥塞或丢包等现象。
其中,第一报文为携带第一标识的报文,该第一标识与第一用户相关,第一用户 为已申请该第一资源的用户。前述第一资源用于处理第一报文,可以理解为,第一资源用于处理与第一用户相关的报文;也可以理解为,第一资源用于处理携带第一标识的报文。
此外,第一报文指某一类型的报文,而不仅仅是某一个报文。例如,携带第一标识的报文都可以是第一报文;与第一用户相关的报文都可能是第一报文。具体此处不做限定。
此外,前述第一标识可以有多种实现方式:
在一种可选的实施方式中,该第一标识用于标识第一用户。
本实施方式中,与第一用户相关的报文即为第一报文,无需区分报文所属的会话类型等其他因素。也就是说,与第一用户相关的任何业务的报文都可以使用前述第一资源,即网络设备可以使用第一资源处理与第一用户相关的任何业务的报文。示例性的,第一报文可以是与第一用户相关的任何会话的报文。例如,语音类会话、视频类会话、文字类会话等。
在另一种可选的实施方式中,该第一标识用于标识该第一用户的第一业务。
本实施方式中,与第一用户的第一业务相关的报文为第一报文,与第一用户的其他业务相关的报文可能不是第一报文。也就是说,与第一用户的第一业务相关的报文可以使用第一资源,该第一用户的其他业务不能使用前述第一资源,即网络设备可以使用第一资源处理与第一用户的第一业务相关的报文,而不能处理该第一用户的其他业务相关的报文。该第一业务可以是对处理时延或丢包率要求较高的业务,例如,视频通话类业务。
本实施例中,第一标识可以采用前述任意一种实施方式实现,具体此处不做限定。
可选的,该第一指示信息包括该第一资源的配置额度和该第一标识,该第一资源的配置额度为该网络设备处理该第一报文时占用的资源量的最大值。具体地,网络设备在收到第一指示信息之后,可以根据第一指示信息确定的第一资源的配置额度合理分配处理第一报文的资源量,以避免分配给处理第一报文的资源过少而影响第一报文的处理效率,也为了避免在处理其他报文的过程中抢占用于处理第一报文的资源。因此,能够有效避免网络中资源不稳定等因素对第一报文的处理效率的影响,减缓或避免第一报文的处理过程出现拥塞或丢包等现象。
可选的,该第一资源包括带宽资源和/或流量资源中的至少一项。可选的,该第一资源还可以包括处理资源和/或存储资源。具体此处不做限定,在后续实施例中,以第一资源为带宽资源为例进行介绍。
此外,网络设备可以通过多种方式获取前述第一指示信息,下面将分别进行介绍:
方式一,网络设备通过带内控制的方式获取前述第一指示信息:
具体地,网络设备从上一跳网络设备接收协商请求报文,该协商请求报文用于协商配置第一资源,该协商请求报文携带第一指示信息和前述上一跳网络设备的标识。当该网络设备确定能够预留该第一指示信息指示的第一资源时,该网络设备在该协商请求报文中添加该网络设备的标识,并向下一跳网络设备发送携带该第一指示信息、该上一跳网络设备的标识和该网络设备的标识的协商请求报文。可选的,当该网络设备确定不能够预留该第一指示信息指示的第一资源时,该网络设备可以向上一跳网络 设备发送否定应答报文,以告知上一跳网络设备该网络设备无法预留第一资源,以使得前述上一跳网络设备将协商请求报文发送至另一个可能能够预留第一资源的网络设备。
当下一跳网络设备为目的网络实例时,该协商请求报文包括去程传输路径信息,该去程传输路径信息包括从源网络实例到目的网络实例之间处理过协商请求报文的全部网络设备的标识。
示例性的,若源网络实例生成包含第一指示信息的协商请求报文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包括第一指示信息以及去程传输路径信息,该去程传输路径信息为从源网络实例到目的网络实例经过的能够预留第一资源的各个网络设备的标识。
应理解,前述各个网络设备之间可以基于如邻居发现协议等路由发现协议寻找能够预留前述第一资源的网络设备,还可以基于预先配置的规则寻找能够预留前述第一资源的网络设备,具体此处不做限定。
随后,该目的网络实例可以向源网络实例回复协商应答报文,该协商应答报文用于指示源网络实例是否成功预留第一资源,以及成功预留第一资源的各个网络设备构成的去程传输路径。可选的,该目的网络实例可以将前述去程传输路径信息封装至协商应答报文中,按照去程传输路径原路返回前述协商应答报文。在这种实现方式中,去程传输路径上的各个网络设备可以收到前述去程传输路径,并且,回程传输路径和前述去程传输路径上的各个网络设备相同但传输方向相反。可选的,该目的网络实例也可以将前述去程传输路径信息封装至协商应答报文中,但是,另外发现一条传输路径作为回程传输路径。具体地,与前文介绍的预留第一资源的方式类似,此处不予赘述。
可选的,当该网络设备确定不能够预留该第一指示信息指示的第一资源时,该网络设备可以集中管控节点发送指示信息,以请求集中管控节点通过带外控制的方式选择出能够预留第一资源的网络设备。
方式二,网络设备通过带外控制的方式获取前述第一指示信息:
具体地,网络设备从集中管控节点接收该第一指示信息。可选的,该网络设备从集中管控节点接收去程传输路径信息和/或回程传输路径信息。
其中,集中管控节点能够实时收集各个网络设备的资源使用情况,并且,该集中管控节点能够获得用户预留第一资源的额度。因此,该集中管控节点可以在源网络实例和目的网络实例之间选择多个能够预留第一资源的网络设备构成去程传输路径,并且,分别向前述能够预留第一资源的网络设备发送第一指示信息。可选的,该集中管 控节点还向前述能够预留第一资源的网络设备发送前述去程传输路径信息。类似的,集中管控节点可以采用类似的方式确定回程传输路径信息,以及指示回程传输路径上各个网络设备预留资源。
本申请中,网络设备可以采用前述任意一种实施方式获得前述第一指示信息,具体此处不做限定。
步骤202,网络设备获取第一报文。
其中,该第一报文是与第一用户相关的报文,该第一报文是携带第一标识的报文。可以理解为,该第一报文为需要优先处理的报文;也可以理解为,第一报文是需要保证处理速率的报文。
本实施例中,当网络设备在网络中的位置不同时,该网络设备获取第一报文的方式可能不同。
在一种可能的实施方式中,网络设备是与源网络实例连接的第一个中间节点,即网络设备的上一跳网络设备为源网络实例。此时,该网络设备获取该第一报文的方式可以为:该网络设备对从该源网络实例接收的报文添加该第一标识,得到该第一报文。此时,网络设备可以是用于添加第一标识的网卡NIC等。
在另一种可能的实施方式中,网络设备不是与源网络实例连接的第一个中间节点,该网络设备的上一跳网络设备不是源网络实例,在该网络设备之前已经有网络设备为报文添加标记。此时,该网络设备获取该第一报文的方式可以为:该网络设备从该上一跳网络设备接收的报文中筛选携带该第一标识的报文,得到该第一报文。此时,网络设备可以是去程传输路径中除了网卡NIC以外的其他网络设备,例如,交换机或路由器等。示例性的,该网络设备可以为TOR交换机、SPINE交换机或CORE交换机等。
步骤203,网络设备采用第一资源处理第一报文。
其中,网络设备对第一报文的处理,可以理解为,网络设备直接对第一报文进行转发处理,例如,网络设备基于预先确定的转发路径向下一跳网络设备转发前述第一报文,转发出去的报文可能包含前面第一报文的内容;也可以理解为,网络设备解析第一报文,对第一报文携带的载荷执行了删减或增添等动作,然后,将处理后的第一报文按照预先确定的转发路径转发至下一跳网络设备。具体本申请不对网络设备处理第一报文的具体过程进行限定。
具体地,网络设备中可以分多个处理进程分别对收到的不同类型的报文进行处理。
在一种可能的实施方式中,网络设备包含至少两个处理进程,该至少两个处理进程包括第一处理进程和第二处理进程。其中,网络设备中的第一处理进程用于对第一报文进行处理,第二处理进程用于对第二报文进行处理。由于,第一资源是该网络设备用于处理第一报文的资源,因此,该第一资源可以理解为是网络设备分配给第一处理进程使用的资源,该第一指示信息可以理解为是用于指示该网络设备为第一处理进程预留第一资源。
应理解,第一处理进程可以是网络设备基于第一指示信息创建的,也可以是网络设备中本就存在的。示例性的,该网络设备中原本没有第一处理进程,当该网络设备收到第一指示信息之后,该网络设备才根据该第一指示信息创建该第一处理进程,并配置该第一处理进程的预留资源为该第一资源(即配置该第一处理进程的能够使用的 资源量为第一资源的额度)。示例性的,该网络设备中原本就有某个处理进程,只不过该处理进程不是用于处理第一报文的进程,并且,该进程能够使用的资源也不是第一处理资源。当该网络设备收到第一指示信息之后,该网络设备根据该第一指示信息设置前述处理进程为专用于处理第一报文的第一处理进程,将该第一处理进程的预留资源的额度修改为该第一资源的额度。
在一种可能的实施方式中,每当网络设备收到一个报文,该网络设备会确定该报文是否为第一报文(例如,网络设备会确定该报文是否携带第一标识)。当该网络设备确定该报文携带第一标识,则该网络设备将该报文传输至前述第一处理进程,以使得该第一处理进程采用第一资源对前述第一报文进行处理;当该网络设备确定该报文未携带第一标识,则该网络设备将该报文传输至前述第二处理进程,以使得该第二处理进程采用其他的资源处理前述第二报文。
以图3为例,当网络设备收到报文1时,网络设备识别出报文1未携带第一标识,则该网络设备将报文1传输至第二处理进程,该第二处理进程用其他的资源对报文1进行处理;与此同时,网络设备又收到了报文2,网络设备识别出报文2携带第一标识,则该网络设备将报文2传输至第一处理进程,该报文2用第一资源对报文2进行处理;类似的,网络设备又收到了报文3,网络设备识别出报文3未携带第一标识,则该网络设备将报文3传输至第二处理进程。以此类推,网络设备将通过第一处理进程采用第一资源处理报文2、报文4和报文7,通过第二处理进程采用第二资源处理报文1、报文3、报文5和报文6。
可选的,该至少两个处理进程还包括第三处理进程。其中,第三处理进程用于处理控制面的报文,第一处理进程和第二处理进程用于处理不同优先级的数据面的报文。该第三处理进程也可以获得一部分资源用于处理控制面报文,并且,该第三处理进程获得资源的优先级一般高于前述第一处理进程和第二处理进程。例如,当网络设备中的资源紧缺时,该网络设备可以优先保证第三处理进程所使用的资源。
应理解,本实施例中提及的网络设备中的处理进程,也可以理解为是,网络设备中的处理线程或网络设备中的处理队列等,具体此处不做限定。
步骤204,网络设备调整用于处理第一报文的资源量。
本实施例中,步骤204为可选的步骤。
在一种可选的实施方式中,网络设备不改变第一资源的配置额度,但是,该网络设备可以将第一资源中的一部分资源用于处理其他报文。示例性的,网络设备收到的第一报文的数量较少,该网络设备处理前述第一报文所使用的资源量可能小于第一资源的配置额度,此时,该网络设备可以采用空闲的第一资源处理其他报文(例如,第二报文,该第二报文未携带该第一标识)。当网络设备收到的第一报文的数量上升,则该网络设备能够将用于处理其他报文的第一资源收回,以保证该网络设备能够有足够的资源用于处理第一报文。
本实施方式,可以用于预付费的资源售卖模式中,例如,预付带宽或预付流量的模式中。例如,第一用户向云平台订购一定额度的第一资源,那么,该云平台可以允许网络中的各个网络设备保证在处理与第一用户相关的报文(即第一报文)时,最多使用第一资源的额度对应的资源量。当第一报文的数量较少时,网络中的各个网络设 备可以在不影响第一报文的处理效率、时延以及抖动等指标的情况下,将一部分第一资源用于处理其他用户的报文。但是,当第一报文的数量上升时,网络中的各个网络设备会优先保证用于处理第一报文的资源量,以避免影响第一报文的处理效率、时延以及抖动等指标。本实施方式,有利于灵活分配用于处理报文的资源,提高资源的利用效率。
在另一种可选的实施方式中,网络设备可以改变第一资源的配置额度。可选的,当处理该第一报文所占用的资源下降至第一阈值时,该网络设备调低该第一资源的配置额度;和/或,当处理该第一报文所占用的资源上升至第二阈值时,该网络设备调高该第一资源的配置额度,该第二阈值大于该第一阈值。其中,第一阈值和第二域值是网络管理设备预先配置的取值。例如,若第一资源的配置额度为10M,则前述第一阈值可以配置为3M,第二阈值可以配置为7M。该第一阈值和第二阈值也可以是网络管理设备预先配置的参数确定的取值。例如,网络管理设备配置了用于确定第一阈值的参数为30%,用于确定第二阈值的参数为70%,那么,当网络设备处理第一报文所占用的资源下降至第一资源的额度的30%时,该网络设备调低该第一资源的配置额度;当网络设备处理第一报文所占用的资源上升至第一资源的额度的70%时,该网络设备升高该第一资源的配置额度。应理解,网络设备升高或降低第一资源的配置额度的比例可以根据实际网络设备中可调度的资源而定,具体本申请不做限定。
本实施方式,可以用于后付费的资源售卖模式中,例如,后付费流量售卖模式中。示例性的,第一用户在与云平台签约时确定要使用资源,但使用的资源的额度并未完全约定(例如,仅约定了一个初始额度),并且,允许云平台指示网络设备或配置网络设备基于第一用户的实际流量(例如,与第一用户相关的报文数量)在前述初始额度的基础上进行调整。本实施方式,可以在保证用于处理第一报文的资源量的同时,能够灵活调整第一用户能够使用的流量,无需第一用户提前给付费用,事后根据已使用的流量按照既定价格标准付费。有利于灵活分配用于处理报文的资源,提高资源的利用效率,能够适用于业务流量模型随机的应用场景。
步骤205,网络设备获取第二指示信息,该第二指示信息用于指示撤销第一资源。
步骤206,网络设备根据第二指示信息撤销第一资源。
本实施例中,步骤205和步骤206为可选的步骤。
当第一用户购买的第一资源到期时,云平台向集中管控节点发送第二指示信息,再由集中管控节点向网络设备发送第二指示信息,该第二指示信息用于指示撤销第一资源。该网络设备在收到前述第二指示信息后,该网络设备将释放该第一资源,以使得该第一资源成为网络设备中的普通的资源(即该第一资源将不再专用于处理与第一用户相关的报文)。
本实施例中,网络设备(例如,交换器、路由器以及网卡等网络设备)能够基于第一指示信息预留用于处理与第一用户相关的报文(即第一报文)第一资源,以使得该网络设备在处理第一报文时能够保证时延、抖动、丢包率等指标。另外,当网络设备收到第二指示信息时,该网络设备还能够释放前述第一资源,以使得网络设备中的资源能够用于其他报文的处理。因此,不仅有利于提高资源的利用效率,还有利于提升第一报文对应的用户的SLA的水平。
下面将基于图4对通过带内控制的方式为网络设备预留资源的实施例进行详细介绍,其中,指示信息1和指示信息2是前述第一指示信息的一种实现方式,与用户1相关的报文是前述第一报文的一种实现方式,资源1和资源2是前述第一资源的一种实现方式。
步骤401,云平台为源网络实例配置初始资源额度。
本实施例中,当用户1在云平台订购资源用于处理与用户1相关的报文后,云平台可以为用户1对应的源网络实例配置初始资源额度,该初始资源额度用于指示该能够用于处理与用户1相关的报文的资源量。当源网络实例有与用户1相关的报文需要传输时,该源网络实例将采用随路协商的方式配置网络中各个网络设备能够使用的用于处理与用户1相关的报文的资源。
其中,源网络实例可以是云计算实例。可选的,该云计算实例可以是裸金属服务器(bare metal server,BMS),即与其他用户的服务器之间物理隔离的物理服务器,该裸金属服务器兼具虚拟机弹性和物理机性能。可选的,该云计算实例也可以是由物理主机创建的虚拟机或容器,具体此处不做限定。
具体地,云平台可以将初始资源额度发送给集中管控节点或用于管理源网络实例的控制器,再由集中管控节点或用于管理源网络实例的控制器配置给源网络实例。
步骤402,源网络实例向网络设备1发送协商请求报文0。
其中,该协商请求报文0携带指示信息1,该指示信息1用于指示网络设备为用户1预留用于处理去程报文的资源1,以使得该网络设备能够使用该资源1处理与用户1相关的去程报文。其中,该资源1的额度可以基于前述初始资源额度确定,例如,资源1的额度等于资源1的额度。
步骤403,网络设备1向下一跳网络设备发送协商请求报文。
步骤404,网络设备n向目的网络实例发送协商请求报文n。
具体地,网络设备1可以按照邻居发现协议或其他协议寻找能够预留前述资源1的网络设备。
示例性的,若源网络实例生成包含指示信息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的各个网络设备的标识。
为便于理解,以图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资源的每个网络设备的标识,即去程传输路径信息。
步骤405,目的网络实例向网络设备n发送协商应答报文0。
其中,协商应答报文包括指示信息2,该指示信息2用于指示网络设备为用户1预留用于处理回程报文的资源2,以使得该网络设备能够使用该资源2处理与用户1相关的回程报文。
步骤406,网络设备n向下一跳网络设备发送协商应答报文。
步骤407,网络设备1向源网络实例发送协商应答报文n。
在一种可能的实施方式中,目的网络实例基于去程传输路径信息确定回程传输路径信息,即将去程传输路径的反向路径作为回程的传输路径。该回程传输路径上的网络设备作为预留资源2的网络设备。
在另一种可能的实施方式中,目的网络实例基于邻居发现协议或其他协议寻找能够预留前述资源2的网络设备。
示例性的,若目的网络实例生成包含指示信息2的协商应答报文0,并且,该源网络实例将协商应答报文0发送给网络设备n;若网络设备n能够预留资源2,则该网络设备n将网络设备n的标识也封装至前述协商应答报文0中,得到协商应答报文1,该协商应答报文1包括指示信息2和网络设备n的标识;然后,网络设备n按照转发规则确定下一跳网络设备。以此类推,直到将协商应答报文(n-1)发送至网络设备1。然后,网络设备1将协商应答报文n传输至源网络实例,该源网络实例收到的协商应答报文n包括指示信息2以及回程传输路径信息,该回程传输路径信息为从源网络实例到目的网络实例经过的能够预留资源2的各个网络设备的标识。
为便于理解,以图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资源的每个网络设备的标识,即回程传输路径信息。
待源网络实例收到前述协商应答报文n之后,该源网络实例通过前述去程传输路径信息指示的网络设备向目的网络实例发送与用户1相关的去程报文。与此同时,目的网络实例也可以通过前述回程传输路径信息向源网络实例发送与用户1相关的回程报文。
步骤408,网络设备根据根据与用户1相关的报文的数量调整资源额度。
本实施例中,步骤408为可选的步骤。
具体地,当网络设备收到的与用户1相关的报文的数量减少时,该网络设备处理该用户1相关的报文所使用的资源量也将下降。当处理与用户1相关的报文所占用的资源下降至第一阈值时,该网络设备调低该资源1的配置额度和/或资源2的配置额度。当与用户1相关的报文所占用的资源上升至第二阈值时,该网络设备调高该资源1的配置额度和/或资源2的配置额度。其中,该第二阈值大于该第一阈值。其中,第一阈值和第二域值是网络管理设备预先配置的取值。该第一阈值和第二阈值也可以是网络管理设备预先配置的参数确定的取值。具体请查阅前文步骤204中的相关介绍。
步骤409,网络设备向云平台反馈实际使用额度。
应理解,网络设备可能一次或多次调整前述资源额度,网络设备可以周期性的将当前用于处理用户1的报文的资源额度反馈给云平台,以使得云平台或其他的计费单元基于实际使用资源的额度计费。
具体地,调整了资源额度的网络设备可以直接将实际使用额度发送给云平台,也可以将实际使用额度发送给集中管控节点,再由集中管控节点将前述实际使用额度发送给云平台,具体此处不做限定。
本实施例可以用于后付费的资源售卖模式中,可以在保证用于处理第一报文的资源量的同时,能够灵活调整第一用户能够使用的流量,无需第一用户提前给付费用,事后根据已使用的流量按照既定价格标准付费。有利于灵活分配用于处理报文的资源,提高资源的利用效率,能够适用于业务流量模型随机的应用场景。
下面将基于图6对通过带外控制的方式为网络设备预留资源的实施例进行详细介绍:
步骤601,源网络实例向云平台发送第一资源申请。
其中,第一资源申请用于申请处理第一用户的报文的资源(即前述第一资源)。该第一资源申请可以携带第一标识,该第一标识可以第一用户的标识,也可以是第一用户的某一项业务的标识。具体请参阅前述步骤201中的相关介绍。
可选的,源网络实例也可以向集中管控节点发送第一资源申请,然后,集中管控节点将前述第一资源申请转发给云平台。
步骤602,云平台根据第一资源申请确定第一指示信息。
其中,第一指示信息包括前述第一资源的额度。可选的,该第一指示信息还包括第一标识。
具体地,该云平台可以根据与第一用户签订的服务协议SLA确定第一资源的额度。例如,第一用户在云平台订购了10M的资源,则该云平台确定可以为第一用户配置10M的资源。
步骤603,云平台向集中管控节点发送第一指示信息。
步骤604,集中管控节点根据网络中各个网络设备的资源使用情况和第一指示信息确定传输路径信息。
其中,传输路径信息包括去程传输路径信息和回程传输路径信息。
本实施例中,集中管控节点可以实时获取网络中每个网络设备当前可用的资源量。然后,集中管控节点从前述多个网络设备中选择多个能够预留前述第一资源的网络设备作为中间节点。然后,集中管控节点基于前述多个能够预留前述第一资源的网络设备的表示确定传输路径信息。其中,能够预留第一资源的网络设备,可以理解为,该网络设备中空闲的资源量大于第一资源的额度。
在一种可能的实施方式中,集中管控节点将从源网络实例到目的网络实例依次确定的网络设备的标识确定为去程传输路径信息。然后,集中管控节点将去程传输路径的反向传输路径确定为回程传输路径。
然后到达目的网络实例侧的网卡NIC_2。此时,该协商请求报文中携带了能够预留2M资源的每个网络设备的标识,即去程传输路径信息。
在另一种可能的实施方式中,集中管控节点分别确定去程传输路径信息和回程传输路径信息,其中,去程传输路径中的网络设备可以与回程传输路径中的网络设备重合。
为便于理解,以图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。
可选的,集中管控节点可以直接确定回程传输路径为交换机a5-交换机a4-交换机a3-交换机a2-交换机a1。
可选的,集中管控节点也可以基于TOR_1层、SPINE_1层、CORE层、SPINE_2层以及TOR_1层以及其他网络层的网络设备的空闲的资源量,确定另一条传输路径作为回程传输路径。例如,回程传输路径可以为交换机b1-交换机b2-交换机b3-交换机b4-交换机b5。
步骤605a,集中管控节点向源网络实例发送去程传输路径信息。
其中,去程传输路径信息包括从源网络实例到目的网络实例之间各个能够预留第一资源的网络设备的标识。
步骤605b,集中管控节点向源网络实例发送回程传输路径信息。
其中,回程传输路径信息包括从目的网络实例到源网络实例之间各个能够预留第一资源的网络设备的标识。
步骤606,集中管控节点向网络设备发送第一指示信息和传输路径信息。
具体地,集中管控节点将向传输路径上每个网络设备发送第一指示信息和传输路径信息。
步骤607,云平台向集中管控节点发送第二指示信息。
步骤608,集中管控节点向网络设备发送第二指示信息。
具体地,集中管控节点将向传输路径上每个网络设备发送第二指示信息。
本实施例中,当第一用户购买的第一资源到期时,云平台或集中管控节点会向网络设备发送第二指示信息,该第二指示信息用于指示撤销第一资源。该网络设备在收到前述第二指示信息后,该网络设备将释放该第一资源,以使得该第一资源成为网络设备中的普通的资源(即该第一资源将不再专用于处理与第一用户相关的报文)。
本实施例可以用于预付费的资源售卖模式中,集中管控节点能够实时获取网络中的各个网络设备中可用的资源,然后,由集中管控节点确定传输第一报文的传输路径。不仅能够确保选择出去程传输路径和回程传输路径,还有利于收集各个网络设备的信息。另外,网络设备直接通过集中管理节点获取第一指示信息,而无需与其他网络设备协商预留资源,有利于提高管理效率。
下面将本申请涉及的设备进行介绍:
如图8所示,为本申请实施例提供了一种网络设备80的结构示意图。该网络设备80可以是网卡NIC、交换机或路由器等设备。例如,该网络设备80可以是ToR交换机、Spine交换机或Core交换机等。具体此处不做限定。前述图2、图6和图4对应的方法实施例中的网络设备均可以基于图8所示的网络设备80的结构。
该网络设备80包括至少一个处理器801和至少一个存储器802。应当理解的是,图8仅示出了一个处理器801和一个存储器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可以单独封装或者也可以跟其他电路封装在一起。
此外,前述存储器802可以是只读存储器ROM,也可以是可存储静态信息和指令的其他类型的静态存储设备,也可以是随机存取存储器RAM,也可以是可存储信息和指令的其他类型的动态存储设备,还可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM),具体此处不做限定。该存储器802可以是独立存在,但与前述处理器801相连。可选的,该存储器802也可以和前述处理器801集成于一体。例如,集成于一个或多个芯片之内。
此外,该存储器802还用于存储执行本申请实施例的技术方案的程序代码。前述程序代码可以由处理器801来控制执行,被执行的各类计算机程序代码也可被视为是 处理器801的驱动程序。于是,前述处理器801可以根据第一指示信息预留第一资源,并采用该第一资源处理第一报文。可选的,该处理器801可以在该网络设备处理该第一报文时占用的资源量小于该第一资源的配置额度时,采用该第一资源处理第二报文,该第二报文未携带该第一标识。可选的,该处理器801可以在处理该第一报文所占用的资源下降至第一阈值时,调低该第一资源的配置额度;和/或,在处理该第一报文所占用的资源上升至第二阈值时,调高该第一资源的配置额度,该第二阈值大于该第一阈值。
可选的,该网络设备80还包括通信接口803,该通信接口803用于与其他服务器或网络设备进行通信,以使得该网络设备可以接收来自其他设备的指令或数据。例如,该通信接口803可以接收来自集中管控节点或上一跳网络设备的第一指示信息,该第一指示信息用于指示预留第一资源,该第一资源用于处理第一报文,该第一报文为携带第一标识的报文,该第一标识与第一用户相关。例如,该通信接口803还用于接收来自集中管控节点或上一跳网络设备的第二指示信息,该第二指示信息用于指示撤销该第一资源。例如,该通信接口803可以从上一跳网络设备接收协商请求报文,该协商请求报文用于协商配置该第一资源,该协商请求报文携带该第一指示信息和该上一跳网络设备的标识。例如,该通信接口803可以向下一跳网络设备发送携带该第一指示信息、该上一跳网络设备的标识和该网络设备的标识的协商请求报文。
一种可能的实施方式中,网络设备的内部结构可以如图9A、图9B或图9C所示。其中,网络设备包括至少一个CPU和至少一个ASIC芯片。其中,ASIC芯片包括控制模块和转发模块,该转发模块用于按照一定的规则将入口队列中的报文分类并传输到某个出口队列中;控制模块用于根据收到指令控制每个出口队列采用的资源。
一种可选的实施方式中,若采用带外控制的方式,则网络设备的内部结构可以如图9A所示。其中,CPU用于处理来自集中管控节点的指令或消息,然后,对前述指令或消息进程处理,并将处理结果发送至控制模块,以使得控制模块根据前述处理结果控制加入出口队列的报文。
一种可选的实施方式中,若采用带内控制的方式,则网络设备的内部结构可以如图9B所示。其中,协商请求报文或协商响应报文通过数据面的入口队列进入ASIC芯片,转发模块将前述协商请求报文或协商响应报文转发至控制模块进行处理,以使的该控制模块基于第一指示信息或第二指示信息控制出口队列。本实施方式为硬件卸载方案,适用于对配置时效性要求较高的场景(生效时间在纳秒级别),有利于实时配置、调整或撤销资源。
一种可选的实施方式中,若采用带内控制的方式,则网络设备的内部结构可以如图9C所示。其中,协商请求报文或协商响应报文通过数据面的入口队列进入ASIC芯片,转发模块将前述协商请求报文或协商响应报文转发至ASIC芯片外的CPU进行处理,CPU再将处理结果反馈给控制模块,以使的该控制模块基于第一指示信息或第二指示信息控制出口队列。本实施方式为软硬协同方案,相比前述硬件卸载方案,所有逻辑全部固化在芯片中,软硬协同方案引入交换网元,有利于提升软件实现的灵活性。
此外,如图10所示,为本申请实施例提供的一种云平台的结构示意图。该云平台 100可以是服务器、大型计算设备或者大型管理设备,具体此处不做限定。前述图4和图6对应的方法实施例中的云平台均可以基于图10所示的云平台100的结构。
其中,云平台100可以包括处理器1010、存储器1020和通信接口1030。其中,该处理器1010与该存储器1020耦合连接,处理器1010与通信接口1030耦合连接。
其中,前述通信接口1030也可以称为网络接口等。该通信接口1030用于与其他服务器或网络设备进行通信,以使得该云平台可以接收来自其他设备或服务器的指令或数据,或者,以使得该云平台可以向其他设备或服务器发送指令或数据。示例性的,该通信接口1030可以直接或间接地与集中管控单元连接,以便于从该集中管控节点接收与第一用户相关的资源申请(例如,前文介绍的第一资源申请),以便于向该集中管控单元发送指示信息(例如,前文介绍的第一指示信息或第二指示信息)。
其中,前述处理器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可以是指一个处理器,也可以包括多个处理器。
此外,前述该存储器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可以是指一个存储器,也可以包括多个存储器。
在一个实现方式中,存储器1020中存储有计算机可读指令,所述计算机可读指令包括多个软件模块,例如发送模块1021,处理模块1022和接收模块1023。处理器1010执行各个软件模块后可以按照各个软件模块的指示进行相应的操作。在本实施例中,一个软件模块所执行的操作实际上是指处理器1010根据所述软件模块的指示而执行的操作。
示例性的,云平台100中的接收模块1023接收第一资源申请,该第一资源申请用于请求为第一用户分配第一资源,该第一资源用于供网络设备处理与该第一用户相关的报文。处理模块1022基于第一资源申请生成第一指示信息,以使得通过该第一指示信息直接或间接指示网络设备预留第一资源。发送模块1021该云平台根据该第一资源申请发送第一指示信息,该第一指示信息用于指示预留该第一资源。
可选的,该第一资源申请包括第一标识,该第一标识与该第一用户相关,该与该第一用户相关的报文为携带该第一标识的第一报文。
可选的,该第一资源申请包括该第一资源的配置额度和该第一标识,该第一资源的配置额度为该网络设备处理该第一报文时占用的资源量的最大值。
示例性的,云平台100中的发送模块1021向集中管控节点发送该第一指示信息,以使得该集中管控节点向多个该网络设备发送该第一指示信息,该多个网络设备中的每个网络设备用于处理该第一报文。
示例性的,云平台100中的发送模块1021在该第一资源到期时,向该集中管控节点发送第二指示信息,以使得该集中管控节点向多个该网络设备发送该第二指示信息,该第二指示信息用于指示该网络设备撤销该第一资源。
示例性的,云平台100中的发送模块1021向源网络实例发送初始资源额度,该初始资源额度用于确定第一资源,该第一资源用于供网络设备处理与第一用户相关的报文,该第一用户为需要预留资源的用户;
示例性的,云平台100中的接收模块1023从该网络设备接收实际资源额度,该实际资源额度为该网络设备处理该与第一用户相关的报文所占用的实际资源量。其中,该与该第一用户相关的报文为携带第一标识的第一报文,该第一标识用于标识该第一用户,或者,该第一标识用于标识该第一用户的第一业务。
其余可以参考上述实施例中云平台的方法,此处不再赘述。
此外,本申请还提供了一种计算机可读存储介质,该存储介质存储有计算机程序,该计算机程序被处理器执行以实现如前述图2、图4以及图6中的网络设备相关的方法。
此外,本申请还提供了一种计算机可读存储介质,该存储介质存储有计算机程序,该计算机程序被处理器执行以实现如前述图4以及图6中的云平台相关的方法。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。

Claims (34)

  1. 一种报文传输方法,其特征在于,包括:
    网络设备获取第一指示信息,所述第一指示信息用于指示预留第一资源,所述第一资源用于处理第一报文,所述第一报文为携带第一标识的一个或多个报文,所述第一标识与第一用户相关;
    所述网络设备采用所述第一资源处理所述第一报文。
  2. 根据权利要求1所述的方法,其特征在于,所述第一标识用于标识所述第一用户;或者,所述第一标识用于标识所述第一用户的第一业务,所述第一用户为已申请所述第一资源的用户。
  3. 根据权利要求1或2所述的方法,其特征在于,所述第一指示信息包括所述第一资源的配置额度和所述第一标识,所述第一资源的配置额度为所述网络设备处理所述第一报文时占用的资源量的最大值。
  4. 根据权利要求1至3中任意一项所述的方法,其特征在于,所述方法还包括:
    当所述网络设备处理所述第一报文时占用的资源量小于所述第一资源的配置额度时,所述网络设备采用所述第一资源处理第二报文,所述第二报文未携带所述第一标识。
  5. 根据权利要求1至3中任意一项所述的方法,其特征在于,所述第一资源的配置额度为与所述第一用户相关的初始配置额度;
    所述方法还包括:
    所述网络设备调整所述初始配置额度到另一个配置额度。
  6. 根据权利要求1至5中任意一项所述的方法,其特征在于,所述方法还包括:
    当处理所述第一报文所占用的资源下降至第一阈值时,所述网络设备调低所述第一资源的配置额度;
    和/或,
    当处理所述第一报文所占用的资源上升至第二阈值时,所述网络设备调高所述第一资源的配置额度,所述第二阈值大于所述第一阈值。
  7. 根据权利要求1至6中任意一项所述的方法,其特征在于,所述网络设备获取第一指示信息,包括:
    所述网络设备从上一跳网络设备接收协商请求报文,所述协商请求报文用于协商配置所述第一资源,所述协商请求报文携带所述第一指示信息和所述上一跳网络设备的标识;
    当所述网络设备确定能够预留所述第一指示信息指示的第一资源时,所述网络设备在所述协商请求报文中添加所述网络设备的标识,并向下一跳网络设备发送携带所述第一指示信息、所述上一跳网络设备的标识和所述网络设备的标识的协商请求报文。
  8. 根据权利要求1至6中任意一项所述的方法,其特征在于,所述网络设备获取第一指示信息,包括:
    所述网络设备从集中管控节点接收所述第一指示信息。
  9. 根据权利要求1至8中任意一项所述的方法,其特征在于,所述方法还包括:
    所述网络设备获取第二指示信息,所述第二指示信息用于指示撤销所述第一资源。
  10. 根据权利要求1至9中任意一项所述的方法,其特征在于,所述第一资源包括带宽资源。
  11. 一种资源分配方法,其特征在于,包括:
    云平台接收第一资源申请,所述第一资源申请用于请求为第一用户分配第一资源;
    所述云平台根据所述第一资源申请发送第一指示信息,所述第一指示信息用于指示网络设备预留所述第一资源来处理与所述第一用户相关的报文。
  12. 根据权利要求11所述的方法,其特征在于,所述第一资源申请包括第一标识,所述第一标识与所述第一用户相关,所述与所述第一用户相关的报文为携带所述第一标识的第一报文。
  13. 根据权利要求11或12所述的方法,其特征在于,所述第一资源申请还包括所述第一资源的配置额度,所述第一资源的配置额度为所述网络设备处理所述第一报文时占用的资源量的最大值。
  14. 根据权利要求11至13中任意一项所述的方法,其特征在于,所述云平台根据所述第一资源申请发送第一指示信息,包括:
    所述云平台向集中管控节点发送所述第一指示信息,以使得所述集中管控节点向多个所述网络设备发送所述第一指示信息,所述多个网络设备中的每个网络设备用于处理所述第一报文。
  15. 根据权利要求11至14中任意一项所述的方法,其特征在于,所述方法还包括:
    当所述第一资源到期,所述云平台向所述集中管控节点发送第二指示信息,以使得所述集中管控节点向多个所述网络设备发送所述第二指示信息,所述第二指示信息用于指示所述网络设备撤销所述第一资源。
  16. 一种网络设备,其特征在于,包括:
    收发模块,用于获取第一指示信息,所述第一指示信息用于指示预留第一资源,所述第一资源用于处理第一报文,所述第一报文为携带第一标识的一个或多个报文,所述第一标识与第一用户相关;
    处理模块,用于采用所述第一资源处理所述第一报文。
  17. 根据权利要求16所述的网络设备,其特征在于,所述第一标识用于标识所述第一用户;或者,所述第一标识用于标识所述第一用户的第一业务,所述第一用户为已申请所述第一资源的用户。
  18. 根据权利要求16或17所述的网络设备,其特征在于,所述第一指示信息包括所述第一资源的配置额度和所述第一标识,所述第一资源的配置额度为所述网络设备处理所述第一报文时占用的资源量的最大值。
  19. 根据权利要求16至18中任意一项所述的网络设备,其特征在于,所述处理模块,还用于当处理所述第一报文时占用的资源量小于所述第一资源的配置额度时,采用所述第一资源处理第二报文,所述第二报文未携带所述第一标识。
  20. 根据权利要求16至18中任意一项所述的网络设备,其特征在于,所述第一资源的配置额度为与所述第一用户相关的初始配置额度;
    所述处理模块,还用于调整所述初始配置额度到另一个配置额度。
  21. 根据权利要求16至20中任意一项所述的网络设备,其特征在于,所述处理模 块,还用于:
    当处理所述第一报文所占用的资源下降至第一阈值时,调低所述第一资源的配置额度;
    和/或,
    当处理所述第一报文所占用的资源上升至第二阈值时,调高所述第一资源的配置额度,所述第二阈值大于所述第一阈值。
  22. 根据权利要求16至21中任意一项所述的网络设备,其特征在于,所述收发模块,具体用于从上一跳网络设备接收协商请求报文,所述协商请求报文用于协商配置所述第一资源,所述协商请求报文携带所述第一指示信息和所述上一跳网络设备的标识;
    所述处理模块,具体用于当确定能够预留所述第一指示信息指示的第一资源时,在所述协商请求报文中添加所述网络设备的标识,并向下一跳网络设备发送携带所述第一指示信息、所述上一跳网络设备的标识和所述网络设备的标识的协商请求报文。
  23. 根据权利要求16至21中任意一项所述的网络设备,其特征在于,所述收发模块,具体用于从集中管控节点接收所述第一指示信息。
  24. 根据权利要求16至23中任意一项所述的网络设备,其特征在于,所述收发模块,还用于获取第二指示信息,所述第二指示信息用于指示撤销所述第一资源。
  25. 根据权利要求16至24中任意一项所述的网络设备,其特征在于,所述第一资源包括带宽资源。
  26. 一种云平台,其特征在于,包括:
    接收模块,用于接收第一资源申请,所述第一资源申请用于请求为第一用户分配第一资源;
    发送模块,用于根据所述第一资源申请发送第一指示信息,所述第一指示信息用于指示网络设备预留所述第一资源来处理与所述第一用户相关的报文。
  27. 根据权利要求26所述的云平台,其特征在于,所述第一资源申请包括第一标识,所述第一标识与所述第一用户相关,所述与所述第一用户相关的报文为携带所述第一标识的第一报文。
  28. 根据权利要求26或27所述的云平台,其特征在于,所述第一资源申请还包括所述第一资源的配置额度,所述第一资源的配置额度为所述网络设备处理所述第一报文时占用的资源量的最大值。
  29. 根据权利要求26至28中任意一项所述的云平台,其特征在于,所述发送模块,具体用于向集中管控节点发送所述第一指示信息,以使得所述集中管控节点向多个所述网络设备发送所述第一指示信息,所述多个网络设备中的每个网络设备用于处理所述第一报文。
  30. 根据权利要求26至29中任意一项所述的云平台,其特征在于,
    所述发送模块,还用于当所述第一资源到期,向所述集中管控节点发送第二指示信息,以使得所述集中管控节点向多个所述网络设备发送所述第二指示信息,所述第二指示信息用于指示所述网络设备撤销所述第一资源。
  31. 一种网络设备,其特征在于,包括处理器和存储器,所述存储器存储有程序, 当所述存储器存储的程序指令被所述处理器执行时使得所述网络设备实现权利要求1至10中任意一项所述的方法。
  32. 一种云平台,其特征在于,包括处理器和存储器,所述存储器存储有程序,当所述存储器存储的程序指令被所述处理器执行时使得所述云平台实现权利要求11至15中任意一项所述的方法。
  33. 一种计算机可读存储介质,包括计算机程序,所述计算机序被处理器执行以实现如权利要求1至10或11至15中任意一项所述的方法。
  34. 一种包含指令的计算机程序产品,所述计算机程序产品包括计算机程序代码,当所述计算机程序代码在计算机上运行时,使得计算机执行如权利要求1至10或11至15中任意一项所述的方法。
PCT/CN2022/092364 2021-05-13 2022-05-12 报文处理方法、资源分配方法以及相关设备 WO2022237860A1 (zh)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202110523413 2021-05-13
CN202110523413.8 2021-05-13
CN202110864867.1 2021-07-29
CN202110864867.1A CN115941621A (zh) 2021-05-13 2021-07-29 报文处理方法、资源分配方法以及相关设备

Publications (1)

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

Family

ID=84028098

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/092364 WO2022237860A1 (zh) 2021-05-13 2022-05-12 报文处理方法、资源分配方法以及相关设备

Country Status (1)

Country Link
WO (1) WO2022237860A1 (zh)

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 (zh) * 2017-05-16 2017-11-14 深圳警翼智能科技股份有限公司 一种电信级别的云计算系统的资源分配方法
US20200336435A1 (en) * 2017-12-31 2020-10-22 Huawei Technologies Co., Ltd. Packet Sending Method, Device, and System
WO2021179718A1 (zh) * 2020-03-11 2021-09-16 华为技术有限公司 一种报文传输方法、装置和网络设备

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 (zh) * 2017-05-16 2017-11-14 深圳警翼智能科技股份有限公司 一种电信级别的云计算系统的资源分配方法
US20200336435A1 (en) * 2017-12-31 2020-10-22 Huawei Technologies Co., Ltd. Packet Sending Method, Device, and System
WO2021179718A1 (zh) * 2020-03-11 2021-09-16 华为技术有限公司 一种报文传输方法、装置和网络设备

Similar Documents

Publication Publication Date Title
US7636781B2 (en) System and method for realizing the resource distribution in the communication network
CN109039424B (zh) 卫星星间网络通信路径确定方法、装置及电子设备
CN101632266B (zh) 网络中的参数化服务质量
US8730813B2 (en) Apparatus for performing packet-shaping on a packet flow
CN112583735B (zh) 确定传输数据流的需求带宽的方法、设备和系统
CN109787801B (zh) 一种网络服务管理方法、装置和系统
CN104753823B (zh) 建立服务质量预留的方法及节点
CN103905337B (zh) 一种网络资源的处理装置、方法和系统
CN114125924A (zh) Tsn业务的处理方法、装置及计算机可读存储介质
WO2018036516A1 (zh) 流量控制方法及系统,分组交换设备及用户设备
Ghanwani et al. A framework for integrated services over shared and switched IEEE 802 LAN technologies
CN108092909A (zh) 数据流量控制方法、装置及系统
CN101808037B (zh) 交换网中流量管理的方法和装置
CN113810442A (zh) 资源预留的方法、装置、终端及节点设备
US20220210091A1 (en) Bandwidth management and configuration method for cloud service, and related apparatus
WO2022237860A1 (zh) 报文处理方法、资源分配方法以及相关设备
WO2023202467A1 (zh) 网络配置方法及装置
CN111416776A (zh) 传输数据的方法和网络设备
CN116318554A (zh) 网络传输方法及装置
WO2021174236A2 (en) In-band signaling for latency guarantee service (lgs)
CN115941621A (zh) 报文处理方法、资源分配方法以及相关设备
WO2024011907A1 (zh) 数据调度方法、电子设备及存储介质
WO2025001360A1 (zh) 业务转发方法、装置、存储介质及电子装置
WO2024230244A1 (zh) 一种确定性链路构建方法及装置
WO2025066841A1 (zh) 确定性增强方法、网络控制单元、通信系统和存储介质

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