CN114978978B - Computing power resource scheduling method and device, electronic equipment and medium - Google Patents
Computing power resource scheduling method and device, electronic equipment and medium Download PDFInfo
- Publication number
- CN114978978B CN114978978B CN202210636320.0A CN202210636320A CN114978978B CN 114978978 B CN114978978 B CN 114978978B CN 202210636320 A CN202210636320 A CN 202210636320A CN 114978978 B CN114978978 B CN 114978978B
- Authority
- CN
- China
- Prior art keywords
- bgp vpn
- computing power
- bgp
- forwarding
- service node
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/54—Organization of routing tables
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/12—Shortest path evaluation
- H04L45/124—Shortest path evaluation using a combination of metrics
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/26—Route discovery packet
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the disclosure provides a computing resource scheduling method, a computing resource scheduling device, electronic equipment and a computing resource scheduling medium, relates to the technical field of network communication, the method comprises the steps that first PE equipment receives first BGP VPN routing information sent by second PE equipment which has a BGP VPN neighbor relation with the first PE equipment in an MPLS L3VPN network, wherein the first BGP VPN routing information comprises calculation power resources of a first service node connected with the second PE equipment. Generating a routing table entry according to the first BGP VPN routing information, and adding the generated routing table entry to the routing table. When receiving the service message, determining a plurality of forwarding paths of the service message in the MPLS L3VPN based on the routing table, selecting a target forwarding path from the plurality of forwarding paths based on the computing force resources corresponding to each forwarding path, and then forwarding the service message through the target forwarding path. The computing power resources can be reasonably scheduled.
Description
Technical Field
The disclosure relates to the technical field of network communication, and in particular relates to a method, a device, electronic equipment and a medium for scheduling computing power resources.
Background
Multiprotocol label switching (Multiprotocol Label Switching, MPLS) three-Layer virtual private network (Layer 3Virtual Private Network,L3VPN) is an L3VPN technology based on service Provider network Edge (PE) devices that uses border gateway protocol (Border Gateway Protocol, BGP) to publish VPN routes over the service Provider backbone and MPLS protocol to forward VPN messages over the service Provider backbone.
At present, when a PE device in an MPLS L3VPN receives a service message, a forwarding path can be selected for the service message based on self-learned routing information and a destination address of the service message, so that the service message is forwarded through the selected forwarding path. In the case where there are multiple forwarding paths to the destination address, one forwarding path may be selected based on policies such as load balancing.
However, the actually selected forwarding paths may have a problem of insufficient computational power resources, and the unselected forwarding paths may have sufficient computational power resources, so that the computational power resources of the MPLS L3VPN network are not reasonably scheduled, and the processing efficiency of the service packet is low.
Disclosure of Invention
The embodiment of the disclosure aims to provide a method, a device, electronic equipment and a medium for dispatching computational resources, so as to reasonably dispatch the computational resources of an MPLS L3VPN network and improve the processing efficiency of service messages. The specific technical scheme is as follows:
In a first aspect, an embodiment of the present disclosure provides a method for scheduling computing power resources, where the method is applied to a first service provider network edge PE device in a multiprotocol label switching three-layer virtual private network MPLS L3VPN network, the method includes:
receiving first BGP VPN routing information sent by second PE equipment which has a BGP VPN neighbor relation of a border gateway protocol virtual private network in the MPLS L3VPN network, wherein the first BGP VPN routing information comprises computing power resources of a first service node connected with the second PE equipment;
Generating a routing table item according to the first BGP VPN routing information, and adding the generated routing table item to a routing table;
When a service message is received, determining a plurality of forwarding paths of the service message in the MPLS L3VPN network based on the routing table;
Selecting a target forwarding path from the plurality of forwarding paths based on the computational power resources corresponding to each forwarding path;
And forwarding the service message through the target forwarding path.
In one possible implementation, the method further includes:
And when a second service node connected with the first PE device is online, sending second BGP VPN routing information to the second PE device, wherein the second BGP VPN routing information comprises computing power resources of the second service node.
In one possible implementation, the second BGP VPN routing information includes a multiprotocol network layer reachability information mp_reach_nlri attribute field that includes a computational power resource of the second service node.
In one possible implementation, after sending the second BGP VPN route information to the second PE device, the method further includes:
And when the second service node connected with the first PE device is offline, sending a BGP VPN route withdrawal message to the second PE device, wherein the BGP VPN route withdrawal message comprises the computing power resource of the second service node, so that the second PE device deletes the route table item generated based on the second BGP VPN route information.
In one possible implementation manner, the selecting a target forwarding path from the plurality of forwarding paths based on the computing power resources corresponding to each forwarding path includes:
And selecting a target forwarding path with the most computing power resources from the forwarding paths based on the computing power resources corresponding to each forwarding path.
In a second aspect, an embodiment of the present disclosure provides an apparatus for scheduling computational power resources, where the apparatus is applied to a first service provider network edge PE device in a multiprotocol label switching, MPLS, L3VPN network, the apparatus including:
A receiving module, configured to receive first BGP VPN route information sent by a second PE device having a BGP VPN neighbor relation with a virtual private network of a border gateway protocol in the MPLS L3VPN network, where the first BGP VPN route information includes computing power resources of a first service node connected to the second PE device;
The generating module is used for generating a routing table item according to the first BGP VPN routing information and adding the generated routing table item to a routing table;
The determining module is used for determining a plurality of forwarding paths of the service message in the MPLS L3VPN network based on the routing table when the service message is received;
The selection module is used for selecting a target forwarding path from the forwarding paths based on the computing power resources corresponding to each forwarding path;
and the forwarding module is used for forwarding the service message through the target forwarding path.
In one possible implementation, the apparatus further includes:
And the sending module is used for sending second BGP VPN routing information to the second PE equipment when the second service node connected with the first PE equipment is on line, wherein the second BGP VPN routing information comprises computing power resources of the second service node.
In one possible implementation, the second BGP VPN routing information includes a multiprotocol network layer reachability information mp_reach_nlri attribute field that includes a computational power resource of the second service node.
In a possible implementation manner, the sending module is further configured to send a BGP VPN route withdrawal message to the second PE device when the second service node connected to the first PE device is offline, where the BGP VPN route withdrawal message includes a computational power resource of the second service node, so that the second PE device deletes a routing table entry generated based on the second BGP VPN route information.
In one possible implementation manner, the selecting module is specifically configured to select, based on the computing power resource corresponding to each forwarding path, a target forwarding path with the most computing power resource from the multiple forwarding paths.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
And the processor is used for realizing any one of the steps of the computing power resource scheduling method when executing the program stored in the memory.
In a fourth aspect, the disclosed embodiments also provide a computer readable storage medium having stored therein a computer program which, when executed by a processor, implements the method for scheduling computing resources described in the first aspect.
In a fifth aspect, embodiments of the present disclosure also provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of computing power resource scheduling described in the first aspect above.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the following description will briefly introduce the drawings that are required to be used in the embodiments or the description of the prior art, and it is apparent that the drawings in the following description are only some embodiments of the present disclosure, and other embodiments may be obtained according to these drawings to those of ordinary skill in the art.
FIG. 1 is a flowchart of a method for scheduling computing power resources according to an embodiment of the present disclosure;
FIG. 2 is an exemplary diagram of an extended MP_REACH_NLRI field provided by an embodiment of the present disclosure;
fig. 3 is an exemplary schematic diagram of BGP VPN routing information transfer in an MPLS L3VPN network provided by an embodiment of the present disclosure;
fig. 4 is an exemplary schematic diagram of a forwarding path selection method according to an embodiment of the present disclosure;
FIG. 5 is an exemplary interaction flow diagram of a method for scheduling computing resources provided by embodiments of the present disclosure;
Fig. 6 is a schematic structural diagram of a computing power resource scheduling device according to an embodiment of the disclosure;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The following description of the technical solutions in the embodiments of the present disclosure will be made clearly and completely with reference to the accompanying drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are only some embodiments of the present disclosure, not all embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by one of ordinary skill in the art based on the present disclosure are within the scope of the present disclosure.
The embodiment of the disclosure provides a computing power resource scheduling method, which is applied to a first PE device in an MPLS L3VPN network, as shown in fig. 1, and comprises the following steps:
S101, receiving first BGP VPN route information sent by second PE equipment which has a BGP VPN neighbor relation of a border gateway protocol in an MPLS L3VPN network.
The first BGP VPN routing information includes computing power resources of a first service node connected to the second PE device.
The computing power resources may include at least one of central processor (Central Processing Unit, CPU) computing power, graphics processor (Graphics Processing Unit, GPU) computing power, data processor (Data Processing Unit, DUP) computing power, and memory information, as well as other types of computing power resources, which are not limited by the disclosed embodiments.
Because the first PE device and the second PE device have established BGP VPN neighbor relation, the first PE device and the second PE device can carry out route notification between each other, and when the first service node is on line in the second PE device, the second PE device can notify the computing power resource of the first service node to the first PE device through the routing information of the BGP VPN.
In addition, after the second PE device learns the BGP VPN routing information advertised by the other PE devices, if the learned BGP VPN routing information and the first PE device belong to the same VPN, the second PE device also advertises the BGP VPN routing information learned by the second PE device to the first PE device.
In the embodiment of the disclosure, there may be a plurality of PE devices having BGP VPN neighbor relations with the first PE device in the MPLS L3VPN network, and after receiving the first BGP VPN route information, the first PE device may further send the first BGP VPN route information to other PE devices having BGP VPN neighbor relations with the first PE device.
The first PE device may receive a border gateway protocol update (Border Gateway Protocol update, BGP update) message sent by the second PE device, where the BGP update message carries first BGP VPN routing information.
S102, generating a routing table item according to the first BGP VPN routing information, and adding the generated routing table item to a routing table.
The first PE device may store the generated routing table entry in a routing table of the VPN instance, and since the first BGP VPN routing information includes the computing resources, the routing table entry generated based on the first BGP VPN routing information also includes the computing resources.
S103, when the service message is received, determining a plurality of forwarding paths of the service message in the MPLS L3VPN network based on the routing table.
Optionally, after receiving the service packet, the first PE device may select, based on a destination address of the service packet, a plurality of forwarding paths capable of reaching the destination address.
S104, selecting a target forwarding path from a plurality of forwarding paths based on the computing power resources corresponding to each forwarding path.
S105, forwarding the service message through the target forwarding path.
By adopting the embodiment of the disclosure, the first PE device can generate the routing table item according to the received first BGP VPN routing information and store the routing table item in the routing table, and the generated routing table item also comprises the computing power resource because the first BGP VPN routing information comprises the computing power resource. When the first PE device receives the service message, a plurality of forwarding paths can be determined according to the routing table, and a target forwarding path is determined according to the computing resources corresponding to each forwarding path, and the computing resources in the MPLS L3VPN network can be reasonably scheduled due to the fact that the computing resources are referenced in the process of selecting the target forwarding path, so that the fact that the forwarding path with lower computing resources is selected for the service message is avoided, and the processing efficiency of the service message is improved.
In addition, in the related art, the power computing network generally uses the controller to uniformly manage each node in the power computing network, that is, each node reports the power computing resource to the controller, and then the controller performs uniform power computing resource scheduling. In a large-scale MPLS L3VPN network, information synchronization and scheduling are required to be automatically performed among PE devices based on network information, and a centralized management mode of a controller cannot support information and synchronization among the PE devices, so that a traditional computing resource scheduling method cannot be applied to the MPLS L3VPN network. In the embodiment of the disclosure, by carrying the computational power resources in the BGP VPN routing information, the PE device may select a forwarding path for the service packet based on the computational power resources, so as to implement the computational power resource scheduling for the MPLS L3VPN network.
In some embodiments, the step S104 of selecting a target forwarding path from the plurality of forwarding paths based on the computing power resources corresponding to each forwarding path may be implemented as:
and selecting a target forwarding path with the most calculation force resources from the plurality of forwarding paths based on the calculation force resources corresponding to each forwarding path.
After determining a plurality of forwarding paths matched with the destination address of the service message according to the routing table, the first PE device may select a forwarding path with the most destination of the computing resources from the plurality of forwarding paths based on the computing resources stored in the routing table.
In the embodiment of the present disclosure, the target forwarding path with the most computing power resources may be selected according to actual needs, for example, when the service packet received by the first PE device needs to be processed by using a larger CPU computing power resource, the CPU computing power resources in the computing power resources corresponding to the multiple forwarding paths may be compared at this time, and the forwarding path with the most CPU computing power resources is selected from the multiple forwarding paths as the target forwarding path.
For another example, when the service packet received by the first PE device needs to be processed by using a larger GPU power resource, the GPU power resource in the power resources corresponding to the multiple forwarding paths may be compared at this time, and the forwarding path with the largest GPU power resource is selected from the multiple forwarding paths as the target forwarding path.
By adopting the embodiment of the disclosure, the service message is processed by the service node with the most computing power resources corresponding to the plurality of forwarding paths by comparing the computing power resources of the plurality of forwarding paths and taking the forwarding path with the most computing power resources as the target forwarding path, so that the processing efficiency of the service message is improved, and the computing power resources can be reasonably distributed.
In some embodiments, the first PE device may further perform path selection based on a preset path selection rule, and if two or more equivalent forwarding paths are selected, select a path with the most computing power resources from the equivalent forwarding paths as the target path. The preset path selection rule may be any BGP routing rule in the related art, for example, may be a longest mask matching rule or a path length shortest rule.
By adopting the method, the target forwarding path suitable for the service message can be selected by combining the computing power resource and other preset path selection rules, and the service quality can be improved.
In another embodiment of the present disclosure, the first PE device may also be connected to a service node, and when a second service node to which the first PE device is connected is online, the first PE device may send second BGP VPN routing information to the second PE device, where the second BGP VPN routing information includes computing power resources of the second service node. The PE devices which are BGP VPN neighbors can carry the computing power resources of the service nodes connected with the PE devices when the PE devices advertise the routing information, so that the PE devices can select paths based on the computing power resources, and reasonable scheduling of the computing power resources is realized.
The first PE device may send a BGP update message to the second PE device, where the BGP update message includes second BGP VPN routing information.
Accordingly, when the second service node connected with the first PE device is disconnected, a BGP VPN route withdrawal message may be sent to the second PE device, where the BGP VPN route withdrawal message includes a computational power resource of the second service node, so that the second PE device deletes a routing table entry generated based on the second BGP VPN route information.
The second service node connected to the first PE device may not be available or the computing power of the service node may be transferred to other service nodes, where the second service node cannot provide a corresponding service, that is, the second service node is offline.
The BGP VPN route withdrawal message may be a BGP update message, and the first PE device may carry second BGP VPN route information in the BGP update message, and then send the BGP update message to the second PE device.
By adopting the embodiment of the disclosure, when the second service node is offline, the second PE device can delete the routing table item generated by the second BGP VPN routing information in time in the routing table by sending the BGP VPN routing revocation message, so that the second PE device is prevented from mistransmitting the service message of the client to the offline second service node, and the forwarding accuracy of the service message is improved.
In another embodiment of the present disclosure, the second BGP VPN routing information includes a multiprotocol network layer reachability information (Multiprotocol Reachable NLRI, mp_reach_nlri) attribute field, and the mp_reach_nlri attribute field includes a computing power resource of the second service node.
In this embodiment of the present disclosure, a multiprotocol border gateway protocol (Multiprotocol extensions for BGP-4, MP-BGP) may be specifically used to transfer BGP VPN route information, that is, the first BGP VPN route information and the second BGP VPN route information may both be transferred by MP-BGP. Specifically, the mp_reach_nlri field included in the MP-BGP may be extended, and the extended mp_reach_nlri field carries the computing resource information.
Wherein, the MP-BGP attribute is a group of attribute fields describing BGP prefix characteristics, and the common attributes in the MP-BGP attribute comprise:
ORIGIN (ORIGIN);
as_path (AS PATH);
NEXT HOP (NEXT HOP);
Multi_exit_disc (MULTI-EXIT authentication);
local_pref (LOCAL priority);
ATOMIC_ AGGREGATE (ATOMIC aggregation);
AGGREGATOR (polymerizer);
Community (group);
ORIGINATOR _id (originator identification);
Cluster_list (CLUSTER LIST);
MP_REACH_NLRI (Multiprotocol Reachable NLRI Multi-protocol network layer reachability information)
MP_ UNREACH _NLRI (Multiprotocol Unreachable NLRI, multi-protocol network layer unreachable information).
The format of the mp_reach_nlri field is shown in fig. 2, where the left part in fig. 2 is a field originally included in the mp_reach_nlri field, and the right part in fig. 2 is a field content of the custom extension in the embodiment of the present disclosure, which is used to carry the computing power resource information.
The mp_reach_nlri field specifically includes: ADDRESS FAMILY IDENTIFIER (address family identifier), subsequencent ADDRESS FAMILY IDENTIFIER (concurrent address family identifier), length of Next Hop Network Address (length of next hop network address), network Address of Next Hop (next hop network address), reserved field) and Network Layer Reachability Information (network layer reachability information, hereinafter referred to as NLRI).
Wherein, NLRI field includes: prefix Length, label Stack, route Distinguisher, NLRI IP Prefix. In addition, in the embodiment of the present disclosure, the computational resource field is further extended in the NLRI, that is, the NLRI field further includes a CPU-resource field, a GPU-resource field, a DPU-resource field, and a Memory-resource field. The CPU resource field is used for bearing CPU computing power resources, the GPU resource field is used for bearing GPU computing power resources, the DPU resource field is used for bearing DPU computing power resources, and the memory resource field is used for bearing memory resources.
It should be noted that, in the embodiment of the present disclosure, the content of the extended computing power resource field may be set according to actual needs, and fig. 2 only illustrates an example of extending computing power resource fields such as CPU resources, GPU resources, DPU resources, and memory resources in the NLRI field, and in actual application, the NLRI field may be extended based on computing power resources that need to be scheduled in actual use, so that the NLRI field carries computing power resources that need to be scheduled.
By adopting the embodiment of the disclosure, the MP_REACH_NLRI field is expanded, and then, the first PE device can carry the computational resources in the process of advertising BGP VPN route information to the second PE device, so that a message for sending the computational resources is not required to be additionally established, the message structure is not required to be changed, the computational information is transmitted in the MPLS tunnel between the PEs under the condition that an intermediate link between the two PEs is not perceived, the end-to-end transmission of the computational resources is realized, the intermediate link is not required to identify and process the computational resources, and the network resources are saved.
As shown in fig. 3, fig. 3 is an exemplary schematic diagram of BGP VPN routing information transfer in an MPLS L3VPN network provided by an embodiment of the present disclosure, and fig. 3 only illustrates that the MPLS network includes four PE devices PE1, PE2, PE3, and PE4, and BGP VPN neighbor relations have been established between adjacent PE devices and belong to the same VPN.
Each PE device has a pool of computational resources, the pools of computational resources for PE1, PE2, and PE3 are exemplarily shown in fig. 3, and the computational resources of the service node on-line at the PE device constitute the pool of computational resources for the PE device.
And, each PE device may maintain a computing resource table and a computing resource routing table for computing resources of its own connected service node, as well as for computing resources learned from other PE devices.
Specifically, taking PE1 as an example, if the PE1 has a service node 1 on line, the PE1 may add the computing power resource of the service node 1 to the computing power resource table, and store the routing information including the computing power resource of the service node in the computing power resource routing table. And PE1 can send BGP VPN route information to PE2 and PE4, the BGP VPN route information includes computing power resources of service node 1, PE2 and PE4 can generate route list item according to the BGP VPN route information, and the generated route list item is added into self-maintained computing power resource route list.
Each PE device may send BGP VPN routing information generated and received separately to neighboring PE devices, respectively. For example, PE3 may send BGP VPN routing information and its own BGP VPN routing information received from PE2 to PE4, and in the foregoing process, each PE node may generate a routing table entry according to the received BGP VPN routing information, and store the routing table entry in the computing resource routing table.
Furthermore, when each PE device receives a service packet, a forwarding path may be selected for the service packet based on a computing power resource routing table maintained by itself, as shown in fig. 4, and fig. 4 is an exemplary schematic diagram of a forwarding path selection method provided in an embodiment of the disclosure. In fig. 4, only three PE devices including PE1, PE2, and PE3 are taken as an example to illustrate, where service nodes connected by PE1 and PE2 are service nodes of service a, and PE3 is connected to a client, and when the client sends a service packet requesting access to service a to PE3, PE3 determines two forwarding paths to service a according to a computing resource routing table, and then selects a forwarding path with more computing resources from the two forwarding paths based on computing resources as a target forwarding path. Therefore, the routing and message forwarding based on the computational power resources are realized, the computational power resources of the MPLS L3VPN network are fully utilized, the shortage of the computational power resources of forwarding paths selected for the service messages can be avoided, and the processing efficiency of the service messages can be improved.
As shown in fig. 5, fig. 5 is an exemplary interaction flow chart of a computing resource scheduling method according to an embodiment of the disclosure, taking PE1 and PE2 as an example for illustration, including the following steps:
S501, PE1 and PE2 establish BGP VPN neighbor relations.
S502, the service node reports the calculation power resource.
When the service node is online, the service node may report its own computing power resources to PE 1.
S503, the client is online.
The embodiment of the present disclosure does not limit the execution order among S501, S502, and S503, and may be executed in sequential order or may be executed in parallel.
S504, PE1 generates a computational force route according to the received computational force resource, and transmits the computational force route to PE 2.
The power route is the first BGP VPN route information in the foregoing embodiment.
S505, PE2 generates VPN route according to the IP address of the client, and transmits the VPN route to PE 1.
The embodiment of the present disclosure does not limit the execution sequence between S504 and S505, and may be executed in sequential order or may be executed in parallel.
S506, the PE2 accesses the service node according to the calculation route.
When the PE2 receives a service packet from the client, a target forwarding path may be determined according to a destination address in the service packet and a size of a computing resource corresponding to each computing route, and in fig. 5, the target forwarding path is taken as an example of a path of the PE2-PE 1-service node.
S507, the service node goes offline and the calculation route is withdrawn.
When the service node connected with the PE1 is unavailable or the computational power migration occurs, the PE1 sends a computational power route withdrawal message to the PE2 device to withdraw the computational power route.
By adopting the embodiment of the disclosure, the computing power route is announced by establishing the BGP VPN neighbor relation between the PE1 and the PE2 and further by the BGP VPN neighbor relation, and when the PE2 selects the forwarding path, the computing power resource corresponding to the computing power route is used as one of the basis for determining the target forwarding path, so that the computing power resource of the determined target forwarding path is sufficient, and the reasonable utilization of the computing power resource is realized.
Corresponding to the above method embodiment, the embodiment of the present disclosure further provides an apparatus for scheduling computing power resources, where the apparatus is applied to a first service provider network edge PE device in a multiprotocol label switching three-layer virtual private network MPLS L3VPN network, as shown in fig. 6, and the apparatus includes:
A receiving module 601, configured to receive first BGP VPN route information sent by a second PE device in the MPLS L3VPN network that has a BGP VPN neighbor relation with the second PE device, where the first BGP VPN route information includes computing power resources of a first service node connected to the second PE device;
A generating module 602, configured to generate a routing table entry according to the first BGP VPN routing information, and add the generated routing table entry to the routing table;
a determining module 603, configured to determine, when receiving a service packet, a plurality of forwarding paths of the service packet in the MPLS L3VPN network based on the routing table;
A selection module 604, configured to select a target forwarding path from a plurality of forwarding paths based on the computing power resource corresponding to each forwarding path;
and the forwarding module 605 is configured to forward the service packet through the target forwarding path.
Optionally, the apparatus further comprises:
And the sending module is used for sending second BGP VPN routing information to the second PE equipment when the second service node connected with the first PE equipment is on line, wherein the second BGP VPN routing information comprises computing power resources of the second service node.
Optionally, the second BGP VPN routing information includes a multiprotocol network layer reachability information mp_reach_nlri attribute field, the mp_reach_nlri attribute field including computational resources of the second service node.
Optionally, the sending module is further configured to send a BGP VPN route withdrawal message to the second PE device when the second service node connected to the first PE device is offline, where the BGP VPN route withdrawal message includes a computational power resource of the second service node, so that the second PE device deletes a routing table entry generated based on the second BGP VPN route information.
Optionally, the selecting module 604 is specifically configured to select, based on the computing power resource corresponding to each forwarding path, a target forwarding path with the most computing power resource from the multiple forwarding paths.
The disclosed embodiment also provides an electronic device, as shown in fig. 7, comprising a processor 701, a communication interface 702, a memory 703 and a communication bus 704, wherein the processor 701, the communication interface 702, the memory 703 complete communication with each other through the communication bus 704,
A memory 703 for storing a computer program;
the processor 701 is configured to implement the method steps in the above-described method embodiment when executing the program stored in the memory 703.
The communication bus mentioned above for the electronic device may be a peripheral component interconnect standard (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but may also be a digital signal Processor (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components.
In yet another embodiment provided by the present disclosure, there is also provided a computer readable storage medium having stored therein a computer program which when executed by a processor implements the steps of any of the above-described methods of computing power resource scheduling.
In yet another embodiment provided by the present disclosure, there is also provided a computer program product containing instructions that, when run on a computer, cause the computer to perform any of the methods of computing resource scheduling of the above embodiments.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present disclosure, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, by wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk Solid STATE DISK (SSD)), etc.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this specification, each embodiment is described in a related manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments in part.
The foregoing description is only of the preferred embodiments of the present disclosure, and is not intended to limit the scope of the present disclosure. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present disclosure are included in the protection scope of the present disclosure.
Claims (12)
1. A method for scheduling computing power resources, the method being applied to a first service provider network edge PE device in a multiprotocol label switching, MPLS, L3VPN, network, the method comprising:
Receiving first BGP VPN route information sent by second PE equipment which has a BGP VPN neighbor relation of a border gateway protocol virtual private network in the MPLS L3VPN network, wherein the first BGP VPN route information comprises computing power resources of a first service node connected with the second PE equipment, and after the second PE equipment learns other BGP VPN route information advertised by other PE equipment, if the learned other BGP VPN route information and the first PE equipment belong to the same VPN, the second PE equipment advertises the learned other BGP VPN route information to the first PE equipment;
Generating a routing table item according to the first BGP VPN routing information, and adding the generated routing table item to a routing table;
When a service message is received, determining a plurality of forwarding paths of the service message in the MPLS L3VPN network based on the routing table;
Selecting a target forwarding path from the plurality of forwarding paths based on the computational power resources corresponding to each forwarding path;
And forwarding the service message through the target forwarding path.
2. The method according to claim 1, wherein the method further comprises:
And when a second service node connected with the first PE device is online, sending second BGP VPN routing information to the second PE device, wherein the second BGP VPN routing information comprises computing power resources of the second service node.
3. The method of claim 2, wherein the second BGP VPN routing information includes a multi-protocol network layer reachability information, mp_reach_nlri, attribute field that includes computing power resources of the second service node.
4. A method according to claim 2 or 3, wherein after sending the second BGP VPN route information to the second PE device, the method further comprises:
And when the second service node connected with the first PE device is offline, sending a BGP VPN route withdrawal message to the second PE device, wherein the BGP VPN route withdrawal message comprises the computing power resource of the second service node, so that the second PE device deletes the route table item generated based on the second BGP VPN route information.
5. The method of claim 1, wherein selecting a target forwarding path from the plurality of forwarding paths based on the computational power resources corresponding to each forwarding path comprises:
And selecting a target forwarding path with the most computing power resources from the forwarding paths based on the computing power resources corresponding to each forwarding path.
6. An apparatus for scheduling computational resources, the apparatus being applied to a first service provider network edge PE device in a multiprotocol label switching, MPLS, L3VPN, network, the apparatus comprising:
A receiving module, configured to receive first BGP VPN route information sent by a second PE device having a BGP VPN neighbor relation with a virtual private network of a border gateway protocol in the MPLS L3VPN network, where the first BGP VPN route information includes computing power resources of a first service node connected to the second PE device, where after the second PE device learns other BGP VPN route information advertised by other PE devices, if the learned other BGP VPN route information and the first PE device belong to the same VPN, the second PE device advertises the learned other BGP VPN route information to the first PE device;
The generating module is used for generating a routing table item according to the first BGP VPN routing information and adding the generated routing table item to a routing table;
The determining module is used for determining a plurality of forwarding paths of the service message in the MPLS L3VPN network based on the routing table when the service message is received;
The selection module is used for selecting a target forwarding path from the forwarding paths based on the computing power resources corresponding to each forwarding path;
and the forwarding module is used for forwarding the service message through the target forwarding path.
7. The apparatus of claim 6, wherein the apparatus further comprises:
And the sending module is used for sending second BGP VPN routing information to the second PE equipment when the second service node connected with the first PE equipment is on line, wherein the second BGP VPN routing information comprises computing power resources of the second service node.
8. The apparatus of claim 7, wherein the second BGP VPN routing information comprises a multiprotocol network layer reachability information, mp_reach_nlri, attribute field, the mp_reach_nlri attribute field comprising computing power resources of the second service node.
9. The apparatus according to claim 7 or 8, wherein,
The sending module is further configured to send a BGP VPN route withdrawal message to the second PE device when the second service node connected to the first PE device is offline, where the BGP VPN route withdrawal message includes an computational power resource of the second service node, so that the second PE device deletes a routing table entry generated based on the second BGP VPN route information.
10. The apparatus of claim 6, wherein the device comprises a plurality of sensors,
The selection module is specifically configured to select, based on the computing power resource corresponding to each forwarding path, a target forwarding path with the most computing power resource from the multiple forwarding paths.
11. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for carrying out the method steps of any one of claims 1-5 when executing a program stored on a memory.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-5.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210636320.0A CN114978978B (en) | 2022-06-07 | 2022-06-07 | Computing power resource scheduling method and device, electronic equipment and medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210636320.0A CN114978978B (en) | 2022-06-07 | 2022-06-07 | Computing power resource scheduling method and device, electronic equipment and medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN114978978A CN114978978A (en) | 2022-08-30 |
| CN114978978B true CN114978978B (en) | 2024-08-06 |
Family
ID=82959433
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210636320.0A Active CN114978978B (en) | 2022-06-07 | 2022-06-07 | Computing power resource scheduling method and device, electronic equipment and medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114978978B (en) |
Families Citing this family (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115550456A (en) * | 2022-09-13 | 2022-12-30 | 中国联合网络通信集团有限公司 | Service scheduling method and device |
| CN115695523B (en) * | 2022-10-25 | 2024-07-19 | 北京星网锐捷网络技术有限公司 | Data transmission control method and device, electronic equipment and storage medium |
| CN115695282A (en) * | 2022-10-26 | 2023-02-03 | 北京星网锐捷网络技术有限公司 | Computing power information processing method and device, electronic equipment and storage medium |
| CN115622938B (en) * | 2022-10-31 | 2025-02-21 | 新华三技术有限公司 | Computing service processing method, device and system |
| CN115412482B (en) * | 2022-11-01 | 2023-01-10 | 北京邮电大学 | Computing power routing method, device, electronic device and storage medium |
| CN115914402B (en) * | 2022-11-09 | 2024-03-19 | 中国联合网络通信集团有限公司 | Method, device, equipment and storage medium for determining computing power resource node |
| CN118055066A (en) * | 2022-11-09 | 2024-05-17 | 中兴通讯股份有限公司 | Computing power resource notification method, computing power flow processing method, communication equipment and medium |
| CN115955505B (en) * | 2022-12-23 | 2024-10-01 | 中国联合网络通信集团有限公司 | SDN control system, control method and platform based on computing power network |
| CN116390154B (en) * | 2023-04-10 | 2025-08-26 | 烽火通信科技股份有限公司 | Service carrying method and system in computing power network |
| CN116208625B (en) * | 2023-05-06 | 2023-07-25 | 浪潮通信技术有限公司 | Information synchronization method, device, electronic equipment and computer readable storage medium |
| CN116346938B (en) * | 2023-05-25 | 2023-08-18 | 新华三技术有限公司 | Calculation power access method and device, electronic equipment and storage medium |
| CN116633844A (en) * | 2023-05-30 | 2023-08-22 | 中国联合网络通信集团有限公司 | Method, device and electronic equipment for transmitting computing power information |
| CN116647456B (en) * | 2023-06-05 | 2025-08-19 | 中国联合网络通信集团有限公司 | Method and device for generating computing power resource topology and readable storage medium |
| CN119449704A (en) * | 2023-08-02 | 2025-02-14 | 中国移动通信有限公司研究院 | Computing power routing method, device, routing node, node and client device |
| CN118802748A (en) * | 2023-11-03 | 2024-10-18 | 中国移动通信有限公司研究院 | Communication method, device, node equipment and storage medium |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114095579A (en) * | 2020-08-04 | 2022-02-25 | 中国移动通信有限公司研究院 | Network system, business processing method and device for computing power processing |
| CN114285858A (en) * | 2021-12-14 | 2022-04-05 | 中国联合网络通信集团有限公司 | Computing power sensing method and device and storage medium |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112491716B (en) * | 2019-09-12 | 2023-07-18 | 华为技术有限公司 | Computing power routing method and device |
| CN114080057A (en) * | 2020-08-17 | 2022-02-22 | 华为技术有限公司 | Application method and device for calculating load |
| CN114531395B (en) * | 2020-11-23 | 2023-06-16 | 华为技术有限公司 | Method, device and system for advertising processing capability of network device |
| CN113079218B (en) * | 2021-04-09 | 2023-06-27 | 网络通信与安全紫金山实验室 | Service-oriented power network system, working method and storage medium |
-
2022
- 2022-06-07 CN CN202210636320.0A patent/CN114978978B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114095579A (en) * | 2020-08-04 | 2022-02-25 | 中国移动通信有限公司研究院 | Network system, business processing method and device for computing power processing |
| CN114285858A (en) * | 2021-12-14 | 2022-04-05 | 中国联合网络通信集团有限公司 | Computing power sensing method and device and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN114978978A (en) | 2022-08-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN114978978B (en) | Computing power resource scheduling method and device, electronic equipment and medium | |
| US7609672B2 (en) | Method and apparatus for automatic sub-division of areas that flood routing information | |
| US8009591B2 (en) | Automatic overlapping areas that flood routing information | |
| US7899005B2 (en) | Method and apparatus for passing routing information among mobile routers | |
| US10785142B2 (en) | Inter-provider network architecture | |
| WO2021169258A1 (en) | Message forwarding method, routing information publishing method, apparatus and system | |
| US20070183334A1 (en) | Techniques for decreasing queries to discover routes in an interior gateway protocol | |
| WO2021164258A1 (en) | Method for generating forwarding entry, method for sending message, network device, and system | |
| WO2020135395A1 (en) | Notification method and device for prefix identifier of cross-interior gateway protocol | |
| US12003409B2 (en) | Hierarchical ECMP control plane for dense topologies | |
| CN114124793B (en) | Method and device for forwarding messages, issuing forwarding instruction information and notification messages | |
| US20120170486A1 (en) | Hiding a service node in a network from a network routing topology | |
| CN113037527B (en) | Network slicing creation method, message forwarding method and device thereof | |
| CN113285876B (en) | Routing method, routing device and computer readable storage medium | |
| CN108322376B (en) | Route synchronization method, device and machine-readable storage medium | |
| CN115801654A (en) | Route notification method, path establishment method and service data transmission method | |
| CN107623633B (en) | Path establishment method, device and network node | |
| CN113556283A (en) | Route management method and tunnel endpoint device | |
| CN114338277B (en) | Method, device, equipment and readable medium for protecting VPN network nodes in Anycast scenario | |
| CN116781618A (en) | Route generation method, data message forwarding method and device | |
| JP2006019867A (en) | Route calculation system | |
| US12166659B2 (en) | Dynamic packet routing using prioritized groups | |
| EP4425837A1 (en) | Method for receiving bgp-intent routing, and method for advertising bgp-intent routing | |
| CN117319281A (en) | Routing control method and device | |
| CN113852553A (en) | Flow scheduling method and system and SDN controller |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |