WO2021218766A1 - Border gateway protocol based route selection method and network device - Google Patents

Border gateway protocol based route selection method and network device Download PDF

Info

Publication number
WO2021218766A1
WO2021218766A1 PCT/CN2021/088930 CN2021088930W WO2021218766A1 WO 2021218766 A1 WO2021218766 A1 WO 2021218766A1 CN 2021088930 W CN2021088930 W CN 2021088930W WO 2021218766 A1 WO2021218766 A1 WO 2021218766A1
Authority
WO
WIPO (PCT)
Prior art keywords
route
rules
level
routes
rule
Prior art date
Application number
PCT/CN2021/088930
Other languages
French (fr)
Chinese (zh)
Inventor
姚春燕
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021218766A1 publication Critical patent/WO2021218766A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/04Interdomain routing, e.g. hierarchical routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/06Deflection routing, e.g. hot-potato routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/121Shortest path evaluation by minimising delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/123Evaluation of link metrics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/124Shortest path evaluation using a combination of metrics

Definitions

  • This application relates to the field of network technology, and in particular to a routing method and network equipment based on the Border Gateway Protocol.
  • border gateway protocol border gateway protocol, BGP
  • the border gateway protocol usually uses the following method to select routes:
  • the routing rules include 12 rules, such as rule 1, rule 2... Rule 12, and each rule includes a parameter, then when BGP selects a route, it first selects 20 routes through rule 1. If one route can be selected through rule 1, there is no need to continue according to other rules choose a route. If there are no parameters in rule 1 among the 20 routes, then continue to route 20 routes through rule 2. If the route still cannot be selected through rule 2, then continue to perform route selection according to rule 3, and so on. Until the route is selected.
  • This application provides a route selection method and network equipment based on the Border Gateway Protocol to improve the flexibility of route selection.
  • this application provides a route selection method based on the Border Gateway Protocol.
  • the method includes: obtaining N routes out of the L routes received based on the Border Gateway Protocol BGP, and obtaining the first-level rules and rules selected by the user.
  • the N routes are selected according to the first-level rules to obtain M routes; the M is a positive integer greater than 1, and the M ⁇ N; the M routes are selected according to the second-level rules Select until a route is selected.
  • the route to be selected for routing first select the route according to the first-level rules, and then further select the route according to the second-level rules.
  • the route can be optimized according to multiple rules at the same time, which can improve the routing. Flexibility of choice.
  • preferential route selection according to the first-level rules can make the selected route more in line with the current network scenario and improve the accuracy of route selection.
  • the N routes have the same route prefix.
  • a route needs to be selected to ensure that the selected route is the optimal route in the current scenario, which can improve the route selection rate.
  • selecting the N routes according to the first-level rules includes: obtaining the rules included in the first-level rules A logical relationship between multiple rules; the N routes are selected based on the logical relationship.
  • the first-level rule is the priority rule.
  • a logical relationship can be set between the multiple rules, which can be further treated according to the logical relationship between the rules.
  • the selected route is optimized.
  • the first-level rules can be obtained through the following possible implementation methods:
  • the method further includes: obtaining a plurality of pre-stored rules, and displaying the plurality of rules in a graphical interface.
  • the obtaining the first-level rule selected by the user includes: determining the first-level rule selected by the user according to a selection instruction input by the user on the graphical interface.
  • multiple rules can be displayed in the form of a graphical interface, and then the user can select the first-level rule by clicking on the graphical interface.
  • the graphical interface display mode can facilitate user operations and improve user experience.
  • the user can enter multiple rules through the command line interface, and then the network device can obtain the first-level rules through the multiple rules entered by the user on the command line interface.
  • the first-level rules can also be obtained through voice, files, and other methods, which is not limited in this application.
  • obtaining the logical relationship between the multiple rules included in the first-level rule includes: obtaining one of the multiple rules included in the first-level rule input by a user through a command line interface The logical relationship between.
  • the logical relationship between the multiple rules can also be obtained through a graphical interface or a command line interface.
  • selecting the M routes according to the second-level rules includes: selecting the M routes according to a logical relationship between multiple rules included in the second-level rules.
  • the second-level rules may also include multiple rules, and there may be a logical relationship between the multiple rules.
  • the M routes obtained after the first-level rules are optimized can be further optimized, which can increase the routing preference rate and increase the flexibility of route selection.
  • the method further includes: when the parameter information included in the rule is the path length, determining to enable the AS number deduplication function of the autonomous system.
  • the first-level rules include: selecting the route with the least delay; selecting the route with the least packet loss; selecting the route with the lowest line cost; and selecting the route with the lowest line utilization.
  • the first-level rules are priority rules, and the first-level rules can be adjusted adaptively according to different scenarios in this application.
  • the first-level rules and the logical relationship between the rules are configured by the user, that is, the first-level rules are relatively flexible, and the number and logical relationships of the first-level rules are not specifically limited in this application.
  • the second-level rules include: selecting the route with the largest protocol preferred value Preferred-value; selecting the route with the highest local priority; selecting the aggregated route; selecting the shortest AS path of the autonomous system; selecting the origin attribute It is the internal gateway protocol IGP, the external gateway protocol EGP, Incomplete; choose multiple outlets to distinguish the lowest MED value; choose the source as EBGP, alliance, IBGP; choose the next hop Next_HOP with the lowest metric value; choose the cluster list CLUSTER_LIST with the shortest length; choose the origin number ORIGINATOR_ID The smallest; choose the router with the smallest router ID; choose the route advertised by the peer with the smallest Internet Protocol IP address.
  • the second-level rules are further judgment rules based on the first-level rules, and the second-level rules and the logical relationship between the rules are also configured by the user. Therefore, the second-level rules are flexible The nature is also relatively strong, and the number and logical relationship of the second-level rules are not limited in this application.
  • the present application provides a network device, the network device may include: an acquiring unit for acquiring N routes out of the L routes received based on the Border Gateway Protocol BGP, and acquiring the first-level rule selected by the user And second-level rules; the first-level rules include at least one rule; the L and N are positive integers; the second-level rules include at least one rule, and the second-level rules are different from the first-level rules
  • the first selection unit is configured to select the N routes obtained by the obtaining unit according to the first-level rules to obtain M routes; the M is a positive integer greater than 1, and the M ⁇ N
  • the second selection unit is used to select the M routes obtained by the first selection unit according to the second-level rules, until a route is selected.
  • the N routes have the same route prefix.
  • the acquiring unit is also used for:
  • the first selection unit is specifically configured to select the N routes according to the first-level rules in the following manner:
  • the N routes are selected based on the logical relationship obtained by the obtaining unit.
  • the obtaining unit is further configured to: obtain a plurality of pre-stored rules, and display the plurality of rules in a graphical interface;
  • the obtaining unit is specifically configured to obtain the first-level rule selected by the user in the following manner:
  • the first-level rule selected by the user is determined.
  • the obtaining unit is specifically configured to obtain the logical relationship between the multiple rules included in the first-level rule in the following manner:
  • the second selection unit is specifically configured to select the M routes according to the second-level rules in the following manner: according to the logical relationship between the multiple rules included in the second-level rules , To select the M routes.
  • the method further includes: when the parameter information included in the rule is the path length, determining to enable the AS number deduplication function of the autonomous system.
  • the first-level rules include: choosing the route with the least delay; choosing the route with the least packet loss; choosing the route with the lowest line cost; and choosing the route with the lowest line utilization.
  • the second-level rules include: selecting the route with the largest protocol preferred value Preferred-value; selecting the route with the highest local priority; selecting the aggregated route; selecting the shortest AS path of the autonomous system; selecting the origin attribute It is the internal gateway protocol IGP, the external gateway protocol EGP, Incomplete; choose multiple outlets to distinguish the lowest MED value; choose the source as EBGP, alliance, IBGP; choose the next hop Next_HOP with the lowest metric value; choose the cluster list CLUSTER_LIST with the shortest length; choose the origin number ORIGINATOR_ID The smallest; choose the router with the smallest router ID; choose the route advertised by the peer with the smallest Internet Protocol IP address.
  • the present application provides a routing device based on the Border Gateway Protocol, which has the function of implementing the routing method based on the Border Gateway Protocol in the first aspect or any one of the possible implementation manners of the first aspect.
  • the function can be realized by hardware, or by hardware executing corresponding software.
  • the device includes a communication interface, a processor, and a memory, the communication interface is used to receive and send data, and the processor is configured to support the device to execute the first aspect or any one of the possible implementation manners of the first aspect The corresponding function.
  • the memory is coupled with the processor, and it stores the program instructions necessary for the device.
  • a computer-readable storage medium stores instructions that, when run on a computer, cause the computer to execute the methods in the first aspect and various embodiments.
  • a computer program product containing instructions, which when run on a computer, causes the computer to execute the methods in the first aspect and various embodiments.
  • a chip is provided, and the logic in the chip is used to execute the methods in the first aspect and various embodiments described above.
  • FIG. 1A is a network architecture diagram provided by an embodiment of this application.
  • FIG. 1B is a block diagram of a routing selection provided by an embodiment of the application.
  • Figure 2 is a flowchart of a BGP-based route selection method provided by an embodiment of the application
  • FIG. 3 is a functional module diagram of a network device provided by an embodiment of this application.
  • Fig. 4 is a schematic diagram of a BGP-based route selection device provided by an embodiment of the application.
  • R1 preferentially select the route with the largest protocol preferred value (preferred-value);
  • R2 preferentially select the route with the highest local priority (LOCAL_PREF);
  • the preferred origin (ORIGIN) attribute is interior gateway protocol (interior gateway protocol, IGP), exterior gateway protocol (exterior gateway protocol, EGP), and routing incomplete;
  • R11 preferentially select the route advertised by the router with the smallest router ID
  • IP Internet Protocol
  • BGP first judges the multiple received routes according to rule 1, and then selects the route with the largest preferred value. If it cannot be judged according to rule 1, the multiple received routes are judged according to rule 2, and the route with the highest local priority is selected, and so on. When the previous rule cannot select the route, the next rule is used Make routing selection.
  • BGP is widely used at the boundary point between public clouds and the Internet.
  • the public cloud needs to set complex routing policies for the BGP routes received by its border routers to ensure that the public cloud It is the best path to send to the user terminal connected to each AS in the Internet.
  • the selected route is not necessarily the route that you want to select in the public cloud scenario. In other words, different scenarios may have different routes selected.
  • border router 1 receives route A to border router 2 from line 1 and line 2 respectively.
  • the local priority of the route from line 1 is higher than the local priority of the route from line 2.
  • the route of the route from line 1 is longer than the route from line 2 to the border router 2.
  • the route from line 1 is selected, but in the public cloud scenario, the route from line 2 is generally selected with a shorter path and lower delay. It is understandable that route A is a route with the same route prefix.
  • routes with the same route prefix in this application are the routes with the same destination IP prefix, and sometimes they may be mixed. It should be understood that the two have the same meaning.
  • the embodiment of the present application provides a new BGP-based route selection method, in which the route is first selected according to the first-level rules.
  • route selection is performed according to the second-level rules until a route is selected.
  • At least one of the embodiments of the present application includes one or more; wherein, multiple refers to greater than or equal to two.
  • words such as “first” and “second” are only used for the purpose of distinguishing description objects, and cannot be understood as indicating or implying relative importance, nor as indicating or implying order.
  • Border gateway BGP protocol an autonomous system routing protocol running on the transmission control protocol (TCP).
  • BGP is used to exchange routing information between different autonomous systems (AS).
  • AS autonomous systems
  • each AS designates a node running BGP to exchange routing information with other ASs on behalf of the AS.
  • This node can be a host.
  • routers perform BGP.
  • the routers in the two ASs that use BGP to exchange information are also called border gateways or border routers.
  • Autonomous system AS All routers in an autonomous system are connected to each other, run the same routing protocol, and assign the same autonomous system number at the same time.
  • RIB refers to routing information base (RIB) or routing table.
  • Loc-RIB Store the routing information selected by the BGP speaker from Adj-RIBS-In according to the local routing strategy.
  • Adj-RIBS-Out Store routing information used to advertise to each peer.
  • Peers including external peers and internal peers. For a BGP speaker, if it communicates with other BGP speakers and that BGP speaker is in a different AS, then that other BGP speaker is called an external peer, and if it is in the same AS, it is called an internal peer .
  • BGP speaker The router directly connected through BGP is the BGP speaker.
  • BGP speakers can be in the same AS or in different ASs.
  • the BGP speakers of each AS communicate with each other and exchange network reachability information in accordance with the policies established by each AS. It should be noted that in this application, the BGP speaker is the border BGP router in this application.
  • IBGP BGP running between two or more peer entities in the same autonomous system AS.
  • EBGP BGP running between peer entities belonging to different ASs.
  • Adj-RIBS-In can be recorded as “first storage module”
  • Loc-RIB is recorded as “second storage module”
  • Adj-RIBS-In can be recorded as “second storage module”.
  • -Out is recorded as the "third storage module”.
  • FIG. 1A is a network architecture diagram to which the embodiments of this application can be applied.
  • ISP Internet service provider
  • end users can connect to an Internet service provider (ISP) via the Internet, which is the operator’s network, and then the border BGP router and public cloud under the operator’s network Routing information can be exchanged between border BGP routers, so that end users can access cloud services.
  • ISP Internet service provider
  • the border BGP router and public cloud under the operator’s network Routing information can be exchanged between border BGP routers, so that end users can access cloud services.
  • the point-of-presence (POP) of the public cloud is connected to the backbone network between the data center (DC) or the region (Region) of the public cloud.
  • DC data center
  • Region region
  • the operator border BGP routers and the public cloud border BGP routers can exchange routing information. While each border BGP router sends routes to other routers, it may also receive routes sent by other routers.
  • the following uses three border BGP routers as examples to briefly introduce the route interaction process and route selection process in the public cloud scenario. The specific routing process will be described in detail below.
  • border BGP router includes border BGP router 1, border BGP router 2, and border BGP router 3.
  • border BGP router 1 is a public cloud border BGP router
  • border BGP router 2 and border BGP router 3 are operator border BGP routers.
  • the border BGP router 1 respectively receives 5 routes sent by the border BGP router 2 and 10 routes sent by the border BGP router 3 within 5 minutes.
  • the received route can be stored in the first storage module (Adj-RIBS-In).
  • the optimized route can be placed in the second storage module (Loc-RIB), and then the third storage module (Adj-RIBS-Out) can forward the selected route , To advertise the selected routing information to other peers (routers).
  • the route received by the router within the preset time period may be periodically judged to determine whether the route received within the preset time period needs to be routed. For example, 5 minutes in the above example can be selected. Of course, the received route can also be judged every 1 minute, which is not limited in this application.
  • border BGP router 1 may also send routes while receiving routes.
  • FIG. 1B only the border BGP router 1 receiving routes is used as an example for illustration.
  • first storage module, the second storage module, and the third storage module in FIG. 1B may be part of the border BGP router 1.
  • FIG. Each storage module is separated from the border BGP router 1.
  • FIG. 2 a flowchart of a route selection method provided by the embodiment of the present application is provided. The method includes the following steps:
  • S201 The first network device receives L routes sent by the second network device.
  • the L routes are the total number of routes received by the first network device within the preset time period.
  • the first network device can receive 100 routes sent by the second network device within 5 minutes, and this application does not limit the preset duration.
  • router A may receive L routes sent by other routers, such as router B and router C.
  • Table 1 is an example of routing in the routing table provided in this embodiment of the application.
  • Network in Table 1 represents the network segment
  • Nextop represents the next hop IP address
  • MED represents the multi-outlet distinction value
  • LocPrf represents the local priority
  • PreVal represents the protocol preference value
  • Path represents the path
  • Ogn represents the origin.
  • the route can be stored in the routing table of the router, and the routing table can be displayed by the user inputting a command to display the route. Examples are as follows:
  • routing table shown above is only a schematic illustration, and this application does not limit it.
  • the first network device obtains N routes among the L routes.
  • the L and N are positive integers.
  • the L routes received by the first network device can be divided into two parts. Among them, one part is the route that does not need to be routed, and the other part is the route that needs to be routed.
  • the first network device may obtain the routes that need to be routed from the L routes, for example, obtain N routes.
  • N routes are routes with the same route prefix.
  • routing prefix in this application can be understood as the same IP prefix, in other words, it can be understood as a collection of the same IP group. For example, 192.168.0.1 to 192.168.0.25 all belong to the same routing prefix.
  • S203 The first network device obtains the first-level rule selected by the user.
  • the first-level rule may include at least one rule, and the first-level rule includes but is not limited to the aforementioned R1-R12, and may also include rules corresponding to other parameters, such as performance and time delay. , Packet loss, line capacity, etc., this application does not limit this.
  • this application also includes the following rules:
  • R13 Prefer the route with the lowest delay
  • R14 Prefer the route with the least packet loss
  • R15 Prefer the route with the lowest line cost that carries cloud ingress traffic
  • R16 Prefer the route with the lowest line utilization.
  • R13-R16 is only a schematic description, Rn (n is a positive integer) involved in this application, that is, the numbers 1, 2, 3, etc. in the rules do not represent the execution order of the rules, and The rules are not limited to the rules listed in this application.
  • the public cloud is very concerned about the experience of accessing various cloud services in the public cloud by applications (APP) on user terminals in each AS in the target coverage area, such as latency, packet loss, etc.
  • APP applications
  • the public cloud is very sensitive to the end users' experience of accessing cloud services through the Internet.
  • the mobile APP may be uninstalled, resulting in a decrease in the number of users of the cloud service corresponding to the APP on the mobile phone.
  • cloud services are very sensitive to the number of active user visits, once the number of users is reduced, it will also affect the profit and survival of cloud services. Therefore, if the user experience is poor, it may cause cloud services to choose to migrate to other networks with better performance.
  • Public cloud provider the public cloud provider.
  • the operator interconnection scenario mainly realizes the intercommunication between a large number of user terminals in different ASs.
  • the main concern is to give priority to ensuring the high availability of intercommunication among large users who account for a relatively small proportion.
  • a large number of general users can communicate normally without frequent and significant intercommunication. It does not matter if it fails, and it does not take a lot of effort to optimize the interworking experience (delay, packet loss) that many general users feedback at any time. That is to say, for operators’ Internet networks, they mainly provide best-effort connection services to a large number of end users, and seldom provide specific and special guarantees for specific services. Therefore, as long as the services are not interrupted, it is fine. Insensitive to fluctuations in delay and packet loss.
  • the priority rules may be different, that is, the first-level rules may be different.
  • the first-level rules may include the following rules:
  • R13 Prefer the route with the lowest delay
  • R14 Prefer the route with the least packet loss.
  • first-level rules are not limited to the two rules R13 and R14 in the above example, and may also include other rules, which are not limited in this application.
  • the first network device may obtain multiple pre-stored rules, and display the multiple rules in a graphical interface. Then, the first level rule selected by the user can be determined according to the selection instruction input by the user on the graphical interface.
  • R1-R16 can be displayed on the graphical interface, and then the user can directly select the first-level rule on the graphical interface, for example, check the selection boxes of R13 and R14, so that the first network device can follow the user's selection instructions Determine the first level of rules.
  • R13 can be displayed on the graphical interface, and the specific content of R13 can also be displayed, for example, "Select the route with the lowest delay”.
  • the user can input the first-level rule through a command line interface, so that the first network device can obtain the first-level rule according to the first level rule input by the user through the command line interface.
  • the method of obtaining the first-level rules is not limited to the above-mentioned methods.
  • the first-level rules can also be obtained through voice commands, or the first-level rules can also be obtained through scripts. Not limited.
  • the first network device selects N routes according to the first-level rules to obtain M routes.
  • the M is a positive integer.
  • the first-level rules may include multiple rules, and there is a logical relationship between the multiple rules.
  • the first-level rule includes two rules, for example, the two rules are marked as rule 1 and rule 2, then the user can set the logical relationship between the two rules, for example, it can be set as the priority rule 1. Judgment, if rule 1 cannot be judged, continue to judge according to rule 2.
  • the first network device selects N routes according to this rule.
  • the first network device may first obtain the logical relationship between the multiple rules, and then select N routes based on the obtained logical relationship.
  • the first-level rules can include the following two rules: R2 selects the route with the highest local priority; R4: selects the route with the shortest AS path . And the logical relationship between these two rules is: firstly judge according to R2, and then judge according to R4.
  • route 2, route 3, and route 4 can be selected according to R2, and then route 2, route 3, and route 4 can be judged according to R4.
  • Local Preference is the local priority (LOCAL_PREF) introduced above, sometimes referred to as LP, and it should be understood that it has the same meaning.
  • the first network device selects M routes according to the second-level rules until a route is selected.
  • the second-level rule can also be selected by the user, and the selection method is similar to the first-level rule, and you can refer to the description about obtaining the first-level rule.
  • the second-level rules include at least one rule, and the second-level rules are different from the first-level rules.
  • the first-level rules include rules R1 and R2
  • the second-level rules may include R2 and R4.
  • the second-level rules may also include R3 and R4. Not limited.
  • R1, R2, R3, and R4 in the above example are the rules R1, R2, R3, and R4 in the foregoing introduction.
  • the M routes are continuously judged according to the unique rule.
  • M routes can be selected based on the logical relationship between the multiple rules included in the second-level rules.
  • the second-level rule is: R13: select the route with the lowest delay. Assuming that the delay of route 2 is 2s, the delay of route 3 is 1s, and the delay of route 4 is 2s, it can be seen from comparison that the delay of route 3 is lower. Therefore, the route finally selected is route 3.
  • the second-level rule including multiple rules includes: R5: select the route with the ORIGIN attribute as IGP, EGP, and Incomplete in turn; R13: select the route with the lowest delay. And the logical relationship between the multiple rules included in the second-level rule is: firstly judge according to R5, and then judge according to R13.
  • the ORIGIN attribute of route 2 is IGP and the delay is 1s
  • the ORIGIN attribute of route 3 is EGP, and the delay is 2s
  • the ORIGIN attribute of route 4 is IGP, and the delay is 2s. It can be seen from comparison that after judging by R5, the selected routes are Route 2 and Route 4, and then Route 2 and Route 4 are selected according to R13. After comparison, it can be seen that Route 2 has a lower delay, so it is finally selected.
  • the route is route 2.
  • the first-level rules include some of the rules in R13 to R16 and R1-R12 described above.
  • the second-level rules When the first network device determines that M routes are obtained according to the first-level rules, the second-level rules When the first-level rules select M routes, M routes can be selected according to the remaining rules in R1-R12 except the first-level rules.
  • the first-level rules include R2, R4, and R13 to R16
  • the second-level rules may include R1, R3, and R5 to R12.
  • the same rule in this application can appear in the first-level rule or the second-level rule, provided that at least one of the two-level rules includes multiple rules.
  • the first-level rules are R2, the second-level rules are: R2, R4; or the first-level rules are R1, R2, and the second-level rules are: R1, R2, R4; or the first-level rules are R1, R2 , R3, the second level rules are: R3, R4, R5, etc.
  • the logical relationship between the first-level rules, the second-level rules, and multiple rules is configured by the user. Therefore, when the first-level rules or the second-level rules include multiple rules In the case of rules, the logical relationship between the rules may have many different combinations, and this application will not give examples one by one here.
  • the user when the parameter information included in the rule is AS-Path, the user can configure to enable the AS number deduplication function.
  • the user can add a radio button on the graphical interface.
  • the content of the radio box can be "enable AS number deduplication” or "AS number deduplication”, and the user can click This radio box, enable this function, so that when the network device selects the route according to the first-level rule or the second-level rule, if the parameter included in the rule is AS-Path, the user can be sure to enable the autonomous system AS number deduplication Function.
  • AS-Path parameter is not included in the rule, the AS number deduplication function may not be enabled.
  • the user can add a configuration command to the command line interface, and the configuration command is used to select whether to enable the function.
  • this function can be implemented in the form of a switch.
  • the method of enabling the AS number deduplication function in the embodiment of the present application is not limited to the above-mentioned method, for example, it can also be opened by other methods such as voice commands, which is not limited in the present application.
  • the AS-Path length is too long due to the duplication of the AS number, which may lead to misjudgment and cause the route to be rejected.
  • FIG. 3 shows a schematic diagram of functional modules of a network device.
  • the network device 300 may include: an acquisition unit 301, a first selection unit 302, and a second selection unit 303.
  • the obtaining unit 302 is configured to obtain N routes among the L routes received based on the Border Gateway Protocol BGP, and obtain the first-level rule and the second-level rule selected by the user; the first-level rule includes at least one Rules; the L and N are positive integers; the second-level rules include at least one rule, and the second-level rules are different from the first-level rules.
  • the first selection unit 302 is configured to select the N routes obtained by the obtaining unit 301 according to the first-level rule to obtain M routes; the M is a positive integer greater than 1, and the M ⁇ N.
  • the second selection unit is configured to select the M routes obtained by the first selection unit 302 according to the second-level rule until a route is selected.
  • the N routes have the same route prefix.
  • the obtaining unit 301 is further configured to:
  • the first selection unit 302 is specifically configured to select the N routes according to the first-level rules in the following manner:
  • the N routes are selected based on the logical relationship obtained by the obtaining unit 301.
  • the obtaining unit 301 is further configured to: obtain a plurality of pre-stored rules, and display the plurality of rules in a graphical interface;
  • the obtaining unit 301 is specifically configured to obtain the first-level rule selected by the user in the following manner: according to the selection instruction input by the user on the graphical interface, the first-level rule selected by the user is determined.
  • the obtaining unit 301 is specifically configured to obtain the logical relationship between the multiple rules included in the first-level rule in the following manner:
  • the second selection unit 303 is specifically configured to select the M routes according to the second-level rules in the following manner:
  • the M routes are selected.
  • the method further includes: when the parameter information included in the rule is the path length, determining to enable the AS number deduplication function of the autonomous system.
  • the first-level rules include: selecting the route with the least delay; selecting the route with the least packet loss; selecting the route with the lowest line cost; and selecting the route with the lowest line utilization.
  • the second-level rules include: selecting the route with the largest protocol preferred value Preferred-value; selecting the route with the highest local priority; selecting the aggregated route; selecting the shortest AS path of the autonomous system; selecting the origin attribute IGP, EGP, Incomplete; choose multiple outlets to distinguish the lowest MED value; choose the source as EBGP, confederation, IBGP; choose the next hop Next_HOP with the lowest metric value; choose the shortest length of the cluster list CLUSTER_LIST; choose the smallest origin number ORIGINATOR_ID; choose the router number Router The router with the smallest ID; select the route advertised by the peer with the smallest Internet Protocol IP address.
  • the division of modules in the embodiments of this application is illustrative, and it is only a logical function division. In actual implementation, there may be other division methods.
  • the functional modules in the various embodiments of this application can be integrated into one process. In the device, it can also exist alone physically, or two or more modules can be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules.
  • the apparatus 400 includes at least one processor 402 for implementing or supporting the apparatus 400 to achieve the The functions of the first selection unit and the second selection unit shown in FIG. 3.
  • the processor 402 may select the N routes obtained by the obtaining unit according to the first-level rule to obtain M routes, etc.
  • the processor 402 may select the N routes obtained by the obtaining unit according to the first-level rule to obtain M routes, etc.
  • the device 400 may also include at least one memory 401 for storing program instructions.
  • the memory 401 may be used to store first-level rules, second-level rules, and logical relationships between multiple rules.
  • the memory 401 and the processor 402 are coupled.
  • the coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units or modules, and may be in electrical, mechanical or other forms, and is used for information exchange between devices, units or modules.
  • the processor 402 may cooperate with the memory 401.
  • the processor 402 may execute program instructions and/or data stored in the memory 401. At least one of the at least one memory may be included in the processor.
  • the apparatus 400 may further include a communication interface 403 for communicating with other devices through a transmission medium.
  • the processor 402 can use the communication interface 403 to send and receive data.
  • This application does not limit the specific connection medium between the aforementioned communication interface 403, the processor 402, and the memory 401.
  • the memory 401, the processor 402, and the communication interface 403 are connected by a bus 404 in FIG. 4, and the bus is represented by a thick line in FIG.
  • the bus can be divided into an address bus, a data bus, a control bus, and so on. For ease of representation, only one thick line is used in FIG. 4 to represent it, but it does not mean that there is only one bus or one type of bus.
  • the processor 402 may be a general-purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. Or execute the methods, steps, and logical block diagrams disclosed in the embodiments of the present application.
  • the general-purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • the memory 401 may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., or a volatile memory (volatile memory).
  • a non-volatile memory such as a hard disk drive (HDD) or a solid-state drive (SSD), etc.
  • a volatile memory volatile memory
  • RAM volatile memory
  • the memory is any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and that can be accessed by a computer, but is not limited to this.
  • the memory in the embodiment of the present application may also be a circuit or any other device capable of realizing a storage function for storing program instructions.
  • the computer-executable instructions in the embodiments of the present application may also be referred to as application program codes, which are not specifically limited in the embodiments of the present application.
  • An embodiment of the present application also provides a computer-readable storage medium, including instructions, which when run on a computer, cause the computer to execute the method of the embodiment shown in FIG. 2.
  • An embodiment of the present application also provides a computer program product, including instructions, which when run on a computer, cause the computer to execute the method of the embodiment shown in FIG. 2.
  • An embodiment of the present application also provides a chip, and the logic in the chip is used to execute the method of the embodiment shown in FIG. 2.
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.

Abstract

A border gateway protocol based route selection method and a network device. The method comprises: acquiring a number N of routes in a number L of routes received on the basis of BGP, and acquiring a first-level rule and a second-level rule selected by a user, the first-level rule comprising at least one rule, L and N being positive integers, the second-level rule comprising at least one rule, and the second-level rule being different from the first-level rule; performing selection on the N routes according to the first-level rule to obtain a number M of routes, wherein M is a positive integer greater than 1 and meets the relation: M<N; and performing selection on the M routes according to the second-level rule until selecting one route. By means of the method of the present application, when route optimization is conducted, determination can be conducted by means of multiple rules at the same time, thus increasing the accuracy of route optimization and improving flexibility.

Description

一种基于边界网关协议的路由选择方法及网络设备Route selection method and network equipment based on border gateway protocol 技术领域Technical field
本申请涉及网络技术领域,尤其涉及一种基于边界网关协议的路由选择方法及网络设备。This application relates to the field of network technology, and in particular to a routing method and network equipment based on the Border Gateway Protocol.
背景技术Background technique
随着公有云对于时延等要求的不断提高,边界网关协议(border gateway protocol,BGP)在进行路由选择时,如何选择出最优的路由变得越来越重要。With the continuous improvement of public cloud requirements for delays, etc., how to select the best route when the border gateway protocol (border gateway protocol, BGP) performs route selection becomes more and more important.
目前,边界网关协议(border gateway protocol,BGP)通常采用如下方式选择路由:在现有的方案中,假设待选择的路由有20条,且路由规则包括12条规则,例如规则1、规则2…规则12,且每条规则中包括一种参数,那么BGP在选择路由时,首先通过规则1对20条路由进行选择,如果通过规则1可以选择出来1条路由,则不需要继续根据其它的规则选择路由。如果20条路由中,不存在规则1中的参数,则继续通过规则2对20条路由进行路由选择,若通过规则2仍然不能选择出来路由,则继续按照规则3进行路由选择,以此类推,直至选择出来路由。At present, the border gateway protocol (BGP) usually uses the following method to select routes: In the existing solution, it is assumed that there are 20 routes to be selected, and the routing rules include 12 rules, such as rule 1, rule 2... Rule 12, and each rule includes a parameter, then when BGP selects a route, it first selects 20 routes through rule 1. If one route can be selected through rule 1, there is no need to continue according to other rules Choose a route. If there are no parameters in rule 1 among the 20 routes, then continue to route 20 routes through rule 2. If the route still cannot be selected through rule 2, then continue to perform route selection according to rule 3, and so on. Until the route is selected.
由上述路由选择方式可知,现有的路由选择方法中每次只能比较一条规则,并且只能按照固定顺序的规则在多条路由中进行选择,灵活性较差,适用场景少。It can be seen from the above route selection method that in the existing route selection method, only one rule can be compared at a time, and the selection can only be made among multiple routes according to the rules in a fixed order, which has poor flexibility and few application scenarios.
发明内容Summary of the invention
本申请提供一种基于边界网关协议的路由选择方法及网络设备,用以提高路由选择的灵活性。This application provides a route selection method and network equipment based on the Border Gateway Protocol to improve the flexibility of route selection.
第一方面,本申请提供一种基于边界网关协议的路由选择方法,该方法包括:获取基于边界网关协议BGP接收到的L条路由中的N条路由,并获取用户选择的第一级规则和第二级规则;所述第一级规则包括至少一条规则;所述L、N为正整数;所述第二级规则包括至少一条规则,且所述第二级规则与第一级规则不同;依据所述第一级规则对所述N条路由进行选择,得到M条路由;所述M为大于1的正整数,且所述M<N;依据第二级规则对所述M条路由进行选择,直至选择出一条路由。In the first aspect, this application provides a route selection method based on the Border Gateway Protocol. The method includes: obtaining N routes out of the L routes received based on the Border Gateway Protocol BGP, and obtaining the first-level rules and rules selected by the user. The second-level rules; the first-level rules include at least one rule; the L and N are positive integers; the second-level rules include at least one rule, and the second-level rules are different from the first-level rules; The N routes are selected according to the first-level rules to obtain M routes; the M is a positive integer greater than 1, and the M<N; the M routes are selected according to the second-level rules Select until a route is selected.
在上述技术方案中,对于待进行路由选择的路由,首先根据第一级规则进行优选,然后再根据第二级规则进一步进行路由优选,这样可以同时根据多条规则对路由进行优选,能够提高路由选择的灵活性。并且,优先根据第一级规则进行路由优选,可以使得选择出的路由更符合当前的网络场景,提高路由选择的准确率。In the above technical solution, for the route to be selected for routing, first select the route according to the first-level rules, and then further select the route according to the second-level rules. In this way, the route can be optimized according to multiple rules at the same time, which can improve the routing. Flexibility of choice. In addition, preferential route selection according to the first-level rules can make the selected route more in line with the current network scenario and improve the accuracy of route selection.
在一种可能的设计中,所述N条路由具有相同的路由前缀。In a possible design, the N routes have the same route prefix.
在本申请中,对于具有相同的路由前缀的路由,需要选择出一条路由,以保证选择出的路由为当前场景下最优的路由,这样能够提高路由优选率。In this application, for routes with the same route prefix, a route needs to be selected to ensure that the selected route is the optimal route in the current scenario, which can improve the route selection rate.
在一种可能的设计中,当所述第一级规则中包括多条规则时,依据所述第一级规则对所述N条路由进行选择,包括:获取所述第一级规则中包括的多条规则之间的逻辑关系;基于所述逻辑关系对所述N条路由进行选择。In a possible design, when the first-level rules include multiple rules, selecting the N routes according to the first-level rules includes: obtaining the rules included in the first-level rules A logical relationship between multiple rules; the N routes are selected based on the logical relationship.
在上述技术方案中,第一级规则为优先考虑的规则,在第一级规则中包括多条规则时,多条规则之间可设置逻辑关系,这样能够进一步的根据规则之间的逻辑关系对待进行选择的路由进行优选。In the above technical solution, the first-level rule is the priority rule. When multiple rules are included in the first-level rule, a logical relationship can be set between the multiple rules, which can be further treated according to the logical relationship between the rules. The selected route is optimized.
在本申请中,可以通过如下几种可能的实现方式来获取第一级规则:In this application, the first-level rules can be obtained through the following possible implementation methods:
第一种方式:The first way:
获取用户选择的第一级规则之前,所述方法还包括:获取预先存储的多条规则,并以图形化界面显示所述多条规则。Before obtaining the first-level rule selected by the user, the method further includes: obtaining a plurality of pre-stored rules, and displaying the plurality of rules in a graphical interface.
所述获取用户选择的第一级规则,包括:依据用户在所述图形化界面上输入的选择指令,确定用户所选择的第一级规则。The obtaining the first-level rule selected by the user includes: determining the first-level rule selected by the user according to a selection instruction input by the user on the graphical interface.
也就是说,在第一种方式中,可以以图形化界面的形式显示多条规则,然后用户通过在图形化界面上进行点击,从而选择第一级规则。通过图形化界面显示的方式,可以方便用户操作,能够提升用户体验。That is to say, in the first method, multiple rules can be displayed in the form of a graphical interface, and then the user can select the first-level rule by clicking on the graphical interface. The graphical interface display mode can facilitate user operations and improve user experience.
第二种方式:The second way:
用户可以通过命令行界面输入多条规则,然后网络设备可通过用户在命令行界面上输入的多条规则,进而获取到第一级规则。当然,需要说明的是,本申请中也可以通过语音、文件等其它方式获取第一级规则,本申请对此不作限定。The user can enter multiple rules through the command line interface, and then the network device can obtain the first-level rules through the multiple rules entered by the user on the command line interface. Of course, it should be noted that in this application, the first-level rules can also be obtained through voice, files, and other methods, which is not limited in this application.
在一种可能的设计中,获取所述第一级规则中包括的多条规则之间的逻辑关系,包括:获取用户以命令行界面输入的所述第一级规则中包括的多条规则之间的逻辑关系。In a possible design, obtaining the logical relationship between the multiple rules included in the first-level rule includes: obtaining one of the multiple rules included in the first-level rule input by a user through a command line interface The logical relationship between.
也就是说,当第一级规则中包括多条规则时,多条规则之间的逻辑关系,也可以通过图形化界面或者命令行界面来获取。That is to say, when multiple rules are included in the first-level rules, the logical relationship between the multiple rules can also be obtained through a graphical interface or a command line interface.
在一种可能的设计中,依据第二级规则对所述M条路由进行选择,包括:按照第二级规则中包括的多条规则之间的逻辑关系,对所述M条路由进行选择。In a possible design, selecting the M routes according to the second-level rules includes: selecting the M routes according to a logical relationship between multiple rules included in the second-level rules.
在上述技术方案中,第二级规则也可以包括多条规则,并且多条规则之间可存在逻辑关系。本申请中可以根据第二级规则的逻辑关系,进一步对第一级规则优选之后得到的M条路由进行优选,这样能够提高路由优选率,并且可以提高路由选择的灵活性。In the above technical solution, the second-level rules may also include multiple rules, and there may be a logical relationship between the multiple rules. In this application, according to the logical relationship of the second-level rules, the M routes obtained after the first-level rules are optimized can be further optimized, which can increase the routing preference rate and increase the flexibility of route selection.
在一种可能的设计中,所述方法还包括:当规则中包括的参数信息为路径长度时,确定开启自治系统AS号码去重功能。In a possible design, the method further includes: when the parameter information included in the rule is the path length, determining to enable the AS number deduplication function of the autonomous system.
在上述技术方案中,通过开启AS号码去重功能,可以避免由于AS号码重复,使得AS-Path长度过长,进而导致误判,使得路由被拒收的情况发生。In the above technical solution, by enabling the AS number de-duplication function, it is possible to prevent the AS-Path from being too long due to the duplication of the AS number, which will lead to misjudgment and cause the route to be rejected.
在一种可能的设计中,所述第一级规则包括:选择时延最小的路由;选择丢包最少的路由;选择线路成本最低的路由;选择线路利用率最低的路由。In a possible design, the first-level rules include: selecting the route with the least delay; selecting the route with the least packet loss; selecting the route with the lowest line cost; and selecting the route with the lowest line utilization.
在上述技术方案中,第一级规则为优先考虑的规则,本申请中可以根据场景的不同,适应性的调整第一级规则。并且第一级规则以及规则之间的逻辑关系为用户配置的,也就是说,第一级规则灵活性较强,本申请中并不具体限定第一级规则的数量、 逻辑关系等。In the above technical solution, the first-level rules are priority rules, and the first-level rules can be adjusted adaptively according to different scenarios in this application. In addition, the first-level rules and the logical relationship between the rules are configured by the user, that is, the first-level rules are relatively flexible, and the number and logical relationships of the first-level rules are not specifically limited in this application.
在一种可能的设计中,所述第二级规则包括:选择协议首选值Preferred-value最大的路由;选择本地优先级最高的路由;选择聚合路由;选择自治系统AS路径最短;选择起源ORIGIN属性为内部网关协议IGP、外部网关协议EGP、Incomplete;选择多出口区分MED值最低;选择来源为EBGP、联盟、IBGP;选择下一跳Next_HOP度量值最低;选择簇列表CLUSTER_LIST长度最短;选择起源号ORIGINATOR_ID最小;选择路由器号Router ID最小的路由器;选择网际互联协议IP地址最小的对等体发布的路由。In a possible design, the second-level rules include: selecting the route with the largest protocol preferred value Preferred-value; selecting the route with the highest local priority; selecting the aggregated route; selecting the shortest AS path of the autonomous system; selecting the origin attribute It is the internal gateway protocol IGP, the external gateway protocol EGP, Incomplete; choose multiple outlets to distinguish the lowest MED value; choose the source as EBGP, alliance, IBGP; choose the next hop Next_HOP with the lowest metric value; choose the cluster list CLUSTER_LIST with the shortest length; choose the origin number ORIGINATOR_ID The smallest; choose the router with the smallest router ID; choose the route advertised by the peer with the smallest Internet Protocol IP address.
在上述技术方案中,第二级规则为在第一级规则的基础上,进一步的判断规则,并且第二级规则以及规则之间的逻辑关系也是由用户配置,因此,第二级规则的灵活性也比较强,对于第二级规则的数量、逻辑关系等本申请中不做限定。In the above technical solution, the second-level rules are further judgment rules based on the first-level rules, and the second-level rules and the logical relationship between the rules are also configured by the user. Therefore, the second-level rules are flexible The nature is also relatively strong, and the number and logical relationship of the second-level rules are not limited in this application.
第二方面,本申请提供一种网络设备,该网络设备可包括:获取单元,用于获取基于边界网关协议BGP接收到的L条路由中的N条路由,并获取用户选择的第一级规则和第二级规则;所述第一级规则包括至少一条规则;所述L、N为正整数;所述第二级规则包括至少一条规则,且所述第二级规则与第一级规则不同;第一选择单元,用于依据所述第一级规则对所述获取单元获取到的N条路由进行选择,得到M条路由;所述M为大于1的正整数,且所述M<N;第二选择单元,用于依据第二级规则对所述第一选择单元得到的M条路由进行选择,直至选择出一条路由。In a second aspect, the present application provides a network device, the network device may include: an acquiring unit for acquiring N routes out of the L routes received based on the Border Gateway Protocol BGP, and acquiring the first-level rule selected by the user And second-level rules; the first-level rules include at least one rule; the L and N are positive integers; the second-level rules include at least one rule, and the second-level rules are different from the first-level rules The first selection unit is configured to select the N routes obtained by the obtaining unit according to the first-level rules to obtain M routes; the M is a positive integer greater than 1, and the M<N The second selection unit is used to select the M routes obtained by the first selection unit according to the second-level rules, until a route is selected.
在一种可能的设计中,所述N条路由具有相同的路由前缀。In a possible design, the N routes have the same route prefix.
在一种可能的设计中,所述获取单元还用于:In a possible design, the acquiring unit is also used for:
当所述第一级规则中包括多条规则时,获取所述第一级规则中包括的多条规则之间的逻辑关系;When multiple rules are included in the first-level rules, acquiring a logical relationship between the multiple rules included in the first-level rules;
所述第一选择单元具体用于按如下方式依据所述第一级规则对所述N条路由进行选择:The first selection unit is specifically configured to select the N routes according to the first-level rules in the following manner:
基于所述获取单元获取到的逻辑关系对所述N条路由进行选择。The N routes are selected based on the logical relationship obtained by the obtaining unit.
在一种可能的设计中,所述获取单元还用于:获取预先存储的多条规则,并以图形化界面显示所述多条规则;In a possible design, the obtaining unit is further configured to: obtain a plurality of pre-stored rules, and display the plurality of rules in a graphical interface;
所述获取单元具体用于按如下方式获取用户选择的第一级规则:The obtaining unit is specifically configured to obtain the first-level rule selected by the user in the following manner:
依据用户在所述图形化界面上输入的选择指令,确定用户所选择的第一级规则。According to the selection instruction input by the user on the graphical interface, the first-level rule selected by the user is determined.
在一种可能的设计中,所述获取单元具体用于按如下方式获取所述第一级规则中包括的多条规则之间的逻辑关系:In a possible design, the obtaining unit is specifically configured to obtain the logical relationship between the multiple rules included in the first-level rule in the following manner:
获取用户以命令行界面输入的所述第一级规则中包括的多条规则之间的逻辑关系。Obtain the logical relationship between the multiple rules included in the first-level rule input by the user through the command line interface.
在一种可能的设计中,所述第二选择单元具体用于按如下方式依据第二级规则对所述M条路由进行选择:按照第二级规则中包括的多条规则之间的逻辑关系,对所述M条路由进行选择。In a possible design, the second selection unit is specifically configured to select the M routes according to the second-level rules in the following manner: according to the logical relationship between the multiple rules included in the second-level rules , To select the M routes.
在一种可能的设计中,所述方法还包括:当规则中包括的参数信息为路径长度时,确定开启自治系统AS号码去重功能。In a possible design, the method further includes: when the parameter information included in the rule is the path length, determining to enable the AS number deduplication function of the autonomous system.
在一种可能的设计中,所述第一级规则包括:选择时延最小的路由;选择丢包最 少的路由;选择线路成本最低的路由;选择线路利用率最低的路由。In a possible design, the first-level rules include: choosing the route with the least delay; choosing the route with the least packet loss; choosing the route with the lowest line cost; and choosing the route with the lowest line utilization.
在一种可能的设计中,所述第二级规则包括:选择协议首选值Preferred-value最大的路由;选择本地优先级最高的路由;选择聚合路由;选择自治系统AS路径最短;选择起源ORIGIN属性为内部网关协议IGP、外部网关协议EGP、Incomplete;选择多出口区分MED值最低;选择来源为EBGP、联盟、IBGP;选择下一跳Next_HOP度量值最低;选择簇列表CLUSTER_LIST长度最短;选择起源号ORIGINATOR_ID最小;选择路由器号Router ID最小的路由器;选择网际互联协议IP地址最小的对等体发布的路由。In a possible design, the second-level rules include: selecting the route with the largest protocol preferred value Preferred-value; selecting the route with the highest local priority; selecting the aggregated route; selecting the shortest AS path of the autonomous system; selecting the origin attribute It is the internal gateway protocol IGP, the external gateway protocol EGP, Incomplete; choose multiple outlets to distinguish the lowest MED value; choose the source as EBGP, alliance, IBGP; choose the next hop Next_HOP with the lowest metric value; choose the cluster list CLUSTER_LIST with the shortest length; choose the origin number ORIGINATOR_ID The smallest; choose the router with the smallest router ID; choose the route advertised by the peer with the smallest Internet Protocol IP address.
关于第二方面或第二方面的各种实施方式所带来的技术效果,可以参考对于第一方面或第一方面的各种实施方式的技术效果的介绍,在此处不作过多赘述。Regarding the technical effects brought about by the second aspect or various implementation manners of the second aspect, reference may be made to the introduction of the technical effects of the first aspect or various implementation manners of the first aspect, which will not be repeated here.
第三方面,本申请提供一种基于边界网关协议的路由选择装置,该装置具有实现第一方面或第一方面任一种可能实现方式中的基于边界网关协议的路由选择方法的功能。所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。In a third aspect, the present application provides a routing device based on the Border Gateway Protocol, which has the function of implementing the routing method based on the Border Gateway Protocol in the first aspect or any one of the possible implementation manners of the first aspect. The function can be realized by hardware, or by hardware executing corresponding software.
所述装置包括通信接口、处理器和存储器,所述通信接口用于接收和发送数据,所述处理器被配置为支持所述装置执行上述第一方面或第一方面任一种可能实现方式中相应的功能。所述存储器与所述处理器耦合,其保存所述装置必要的程序指令。The device includes a communication interface, a processor, and a memory, the communication interface is used to receive and send data, and the processor is configured to support the device to execute the first aspect or any one of the possible implementation manners of the first aspect The corresponding function. The memory is coupled with the processor, and it stores the program instructions necessary for the device.
第四方面,提供一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述第一方面及各实施方式中的方法。In a fourth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores instructions that, when run on a computer, cause the computer to execute the methods in the first aspect and various embodiments.
第五方面,提供一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面及各实施方式中的方法。In a fifth aspect, a computer program product containing instructions is provided, which when run on a computer, causes the computer to execute the methods in the first aspect and various embodiments.
第六方面,提供一种芯片,所述芯片中的逻辑用于执行上述第一方面及各实施方式中的方法。In a sixth aspect, a chip is provided, and the logic in the chip is used to execute the methods in the first aspect and various embodiments described above.
附图说明Description of the drawings
图1A为本申请实施例提供的一种网络架构图;FIG. 1A is a network architecture diagram provided by an embodiment of this application;
图1B为本申请实施例提供的一种路由选择框图;FIG. 1B is a block diagram of a routing selection provided by an embodiment of the application;
图2为本申请实施例提供的一种基于BGP的路由选择方法流程图;Figure 2 is a flowchart of a BGP-based route selection method provided by an embodiment of the application;
图3为本申请实施例提供的一种网络设备的功能模块图;FIG. 3 is a functional module diagram of a network device provided by an embodiment of this application;
图4为本申请实施例提供的一种基于BGP的路由选择装置示意图。Fig. 4 is a schematic diagram of a BGP-based route selection device provided by an embodiment of the application.
具体实施方式Detailed ways
下面将结合附图对本申请实施例作进一步地详细描述。The embodiments of the present application will be described in further detail below in conjunction with the accompanying drawings.
目前,两个自治系统(autonomous system,AS)之间可通过BGP来交互路由信息,当AS中的路由器接收到来自其它路由器发送的多条路由之后,若多条路由中存在目的互联网协议地址(internet protocol address,IP)相同的路由,则需要对目的IP前缀相同的路由进行优选,选择出一条路由。现有技术中,对目的IP前缀相同的路由进行路由选择时依据的规则如下:Currently, two autonomous systems (AS) can exchange routing information through BGP. After the router in the AS receives multiple routes sent from other routers, if the destination Internet Protocol address ( For routes with the same internet protocol address, IP), the routes with the same destination IP prefix need to be optimized, and a route is selected. In the prior art, the rules for selecting routes with the same destination IP prefix are as follows:
R1、优先选择协议首选值(preferred-value)最大的路由;R1, preferentially select the route with the largest protocol preferred value (preferred-value);
R2、优先选择本地优先级(LOCAL_PREF)最高的路由;R2, preferentially select the route with the highest local priority (LOCAL_PREF);
R3、优先选择聚合(AGGREGATE)路由;R3, preferential selection of aggregation (AGGREGATE) routing;
R4、优先选择AS路径(AS_PATH)最短的路由;R4. Preferentially select the route with the shortest AS path (AS_PATH);
R5、优先选择起源(ORIGIN)属性为内部网关协议(interior gateway protocol,IGP)、外部网关协议(exterior gateway protocol,EGP)、Incomplete的路由;R5. The preferred origin (ORIGIN) attribute is interior gateway protocol (interior gateway protocol, IGP), exterior gateway protocol (exterior gateway protocol, EGP), and routing incomplete;
R6、优先选择多出口区分(multi-exit discriminator,MED)值最低的路由;R6. Preferentially select the route with the lowest multi-exit discriminator (MED) value;
R7、依次选择从EBGP(External/Exterior BGP)、联盟、IBGP(Internal/Interior BGP)学来的路由;R7. Select the routes learned from EBGP (External/Exterior BGP), Alliance, and IBGP (Internal/Interior BGP) in turn;
R8、优先选择下一跳(Next_HOP)度量值最低的路由;R8. Preferentially select the route with the lowest Next_HOP metric value;
R9、优先选择簇列表(CLUSTER_LIST)长度最短的路由;R9. Preferentially select the route with the shortest length of the cluster list (CLUSTER_LIST);
R10、优先选择起源号(ORIGINATOR_ID)最小的路由;R10. Preferentially select the route with the smallest ORIGINATOR_ID;
R11、优先选择路由器号(Router ID)最小的路由器发布的路由;R11, preferentially select the route advertised by the router with the smallest router ID;
R12、优先选择网际互联协议(internet protocol,IP)地址最小的对等体发布的路由。R12. Preferentially select the route advertised by the peer with the smallest Internet Protocol (IP) address.
需要说明的是,上述规则中所涉及到的每一个参数信息(例如,本地优先级、AS路径等)可参阅现有技术中的解释,在此不做过多赘述。It should be noted that, for each parameter information (for example, local priority, AS path, etc.) involved in the above rules, please refer to the explanation in the prior art, and will not be repeated here.
基于上述12条规则,在现有的路由选择方法中,BGP首先根据规则1对接收到的多条路由进行判断,然后选择出首选值最大的路由。如果根据规则1判断不出来,则根据规则2对接收到的多条路由进行判断,选择出本地优先级最高的路由,以此类推,当上一条规则不能选择出路由时,则利用下一条规则进行路由选择。Based on the above 12 rules, in the existing route selection method, BGP first judges the multiple received routes according to rule 1, and then selects the route with the largest preferred value. If it cannot be judged according to rule 1, the multiple received routes are judged according to rule 2, and the route with the highest local priority is selected, and so on. When the previous rule cannot select the route, the next rule is used Make routing selection.
从现有的路由选择方法中可以看出:路由选择的方式比较固定,只能按照上述12条规则的固定顺序进行路由选择,这样会使得进行路由选择的灵活性不高。It can be seen from the existing route selection methods that the route selection method is relatively fixed, and the route selection can only be carried out according to the fixed order of the above 12 rules, which will make the flexibility of the route selection inadequate.
随着公有云的不断兴起,BGP广泛应用于公有云与因特网(Internet)的边界点。公有云为了对Internet所覆盖的用户做到最佳的覆盖(例如时延最短或者丢包最小),需要对自己的边界路由器收到的BGP路由做复杂的路由策略设定,以保证从公有云送至Internet中各个AS所连接的用户终端,走的是最佳路径。但是按照目前的路由选择方法,对于具有相同路由前缀的路由进行选择时,选择出来的路由并不一定是公有云场景下,所想要选择的路由。换句话来说,不同的场景,选择出来的路由可能会有不同。With the continuous rise of public clouds, BGP is widely used at the boundary point between public clouds and the Internet. In order to achieve the best coverage for the users covered by the Internet (such as the shortest delay or the smallest packet loss), the public cloud needs to set complex routing policies for the BGP routes received by its border routers to ensure that the public cloud It is the best path to send to the user terminal connected to each AS in the Internet. However, according to the current route selection method, when selecting routes with the same route prefix, the selected route is not necessarily the route that you want to select in the public cloud scenario. In other words, different scenarios may have different routes selected.
举例来说,边界路由器1分别从线路1和线路2接收到了去往边界路由器2的路由A。其中,来自线路1的路由的本地优先级高于来自线路2的路由的本地优先级,相比,来自线路1的路由的路径比来自线路2的路由去往边界路由器2的路径更长。按照目前的路由选择方法会选择来自线路1的路由,但是在公有云场景下,一般会选择路径更短,时延更小,也就是来自线路2的路由。可以理解的是,路由A为具有相同路由前缀的路由。For example, border router 1 receives route A to border router 2 from line 1 and line 2 respectively. Among them, the local priority of the route from line 1 is higher than the local priority of the route from line 2. In comparison, the route of the route from line 1 is longer than the route from line 2 to the border router 2. According to the current routing method, the route from line 1 is selected, but in the public cloud scenario, the route from line 2 is generally selected with a shorter path and lower delay. It is understandable that route A is a route with the same route prefix.
需要说明的是,本申请中具有相同路由前缀的路由即为目的IP前缀相同的路由,有时候可能会混用,应理解两者含义相同。It should be noted that the routes with the same route prefix in this application are the routes with the same destination IP prefix, and sometimes they may be mixed. It should be understood that the two have the same meaning.
有鉴于此,本申请实施例提供了一种新的基于BGP的路由选择方法,在该方法中首先根据第一级规则对路由进行选择。当利用第一级规则不能选择出路由时,再根据第二级规则进行路由选择,直至选择出一条路由。In view of this, the embodiment of the present application provides a new BGP-based route selection method, in which the route is first selected according to the first-level rules. When a route cannot be selected using the first-level rules, route selection is performed according to the second-level rules until a route is selected.
本申请实施例涉及的至少一个,包括一个或者多个;其中,多个是指大于或者等于两个。另外,在本申请的描述中,“第一”、“第二”等词汇,仅用于区分描述对象的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。At least one of the embodiments of the present application includes one or more; wherein, multiple refers to greater than or equal to two. In addition, in the description of this application, words such as “first” and “second” are only used for the purpose of distinguishing description objects, and cannot be understood as indicating or implying relative importance, nor as indicating or implying order.
为了便于理解,示例性的给出了与本申请相关概念的说明以供参考,如下所示:For ease of understanding, an explanation of concepts related to this application is given as an example for reference, as follows:
1)边界网关BGP协议:运行于传输控制协议(transmission control protocol,TCP)上的一种自治系统的路由协议。BGP用于在不同的自治系统(autonomous system,AS)之间交换路由信息。当两个AS需要交换路由信息时,每个AS指定一个运行BGP的节点,来代表AS与其他的AS交换路由信息。这个节点可以是一个主机。通常是路由器来执行BGP。两个AS中利用BGP交换信息的路由器也被称为边界网关(Border Gateway)或边界路由器(Border Router)。1) Border gateway BGP protocol: an autonomous system routing protocol running on the transmission control protocol (TCP). BGP is used to exchange routing information between different autonomous systems (AS). When two ASs need to exchange routing information, each AS designates a node running BGP to exchange routing information with other ASs on behalf of the AS. This node can be a host. Usually routers perform BGP. The routers in the two ASs that use BGP to exchange information are also called border gateways or border routers.
2)自治系统AS:在一个自治系统中的所有路由器相互连接,运行相同的路由协议,同时分配同一个自治系统编号。2) Autonomous system AS: All routers in an autonomous system are connected to each other, run the same routing protocol, and assign the same autonomous system number at the same time.
3)Adj-RIBS-In:存储从邻居的更新(update)报文中学习的路由信息。其中,RIB指路由择域信息库(routing information base,RIB)或称路由表。3) Adj-RIBS-In: Store routing information learned from neighbor update messages. Among them, RIB refers to routing information base (RIB) or routing table.
4)Loc-RIB:存储BGP发言人根据本地路由策略,从Adj-RIBS-In中选取的路由信息。4) Loc-RIB: Store the routing information selected by the BGP speaker from Adj-RIBS-In according to the local routing strategy.
5)Adj-RIBS-Out:存储用于向各对等体通告的路由信息。5) Adj-RIBS-Out: Store routing information used to advertise to each peer.
6)对等体:包括外部对等体和内部对等体。对某BGP发言人,如果与其他BGP发言人通信而且那个BGP发言人在不同的AS,则那个其他BGP发言人称为外部对等体,而如果在相同的AS内,则称为内部对等体。6) Peers: including external peers and internal peers. For a BGP speaker, if it communicates with other BGP speakers and that BGP speaker is in a different AS, then that other BGP speaker is called an external peer, and if it is in the same AS, it is called an internal peer .
7)BGP发言人:通过BGP直接连接的路由器为BGP发言人。BGP发言人可以在同一AS内,也可以在不同AS内。每个AS的BGP发言人互相通信,遵照每个AS建立的策略,交换网络可达性信息。需要说明的是,在本申请中,BGP发言人即为本申请中的边界BGP路由器。7) BGP speaker: The router directly connected through BGP is the BGP speaker. BGP speakers can be in the same AS or in different ASs. The BGP speakers of each AS communicate with each other and exchange network reachability information in accordance with the policies established by each AS. It should be noted that in this application, the BGP speaker is the border BGP router in this application.
8)IBGP:同一个自治系统AS中的两个或多个对等实体之间运行的BGP。8) IBGP: BGP running between two or more peer entities in the same autonomous system AS.
9)EBGP:归属不同的AS的对等实体之间运行的BGP。9) EBGP: BGP running between peer entities belonging to different ASs.
需要说明的是,本申请中为了描述方便,可将“Adj-RIBS-In”记为“第一存储模块”,将“Loc-RIB”记为“第二存储模块”,将“Adj-RIBS-Out”记为“第三存储模块”。It should be noted that for the convenience of description in this application, "Adj-RIBS-In" can be recorded as "first storage module", "Loc-RIB" is recorded as "second storage module", and "Adj-RIBS-In" can be recorded as "second storage module". -Out" is recorded as the "third storage module".
首先,请参阅图1A所示,为本申请实施例可以应用到的一种网络架构图,如图1A所示,该网络架构可包括:终端用户(USer)、运营商网络下的路由器、公有云场景下的路由器。在图1A所示的网络架构下,终端用户可通过互联网(Internet)连接到互联网服务提供商(internet service provider,ISP),也就是运营商网络,然后运营商网络下的边界BGP路由器与公有云边界BGP路由器之间可交互路由信息,从而实现终端用户访问云服务。其中,公有云的入网点(point-of-presence,POP)与公有云的数据中心(data center,DC)或者区域(Region)之间的骨干网相连接。First of all, please refer to FIG. 1A, which is a network architecture diagram to which the embodiments of this application can be applied. As shown in FIG. Router in the cloud scenario. Under the network architecture shown in Figure 1A, end users can connect to an Internet service provider (ISP) via the Internet, which is the operator’s network, and then the border BGP router and public cloud under the operator’s network Routing information can be exchanged between border BGP routers, so that end users can access cloud services. Among them, the point-of-presence (POP) of the public cloud is connected to the backbone network between the data center (DC) or the region (Region) of the public cloud.
在图1A中,运营商边界BGP路由器与公有云边界BGP路由器之间可交互路由信息,每一个边界BGP路由器在向其它路由器发送路由的同时,也可能接收其它路由器发送的路由。以下以三个边界BGP路由器为例,对公有云场景下的路由交互过 程以及路由选择过程进行简单介绍。具体的路由选择过程将在下文详细说明。In Figure 1A, the operator border BGP routers and the public cloud border BGP routers can exchange routing information. While each border BGP router sends routes to other routers, it may also receive routes sent by other routers. The following uses three border BGP routers as examples to briefly introduce the route interaction process and route selection process in the public cloud scenario. The specific routing process will be described in detail below.
参阅图1B所示,假设边界BGP路由器包括边界BGP路由器1、边界BGP路由器2以及边界BGP路由器3。其中,边界BGP路由器1为公有云边界BGP路由器,边界BGP路由器2以及边界BGP路由器3为运营商边界BGP路由器。Referring to FIG. 1B, it is assumed that the border BGP router includes border BGP router 1, border BGP router 2, and border BGP router 3. Among them, border BGP router 1 is a public cloud border BGP router, border BGP router 2 and border BGP router 3 are operator border BGP routers.
示例性的,边界BGP路由器1在5分钟内,分别接收到边界BGP路由器2发送的5条路由,边界BGP路由器3发送的10条路由。对于边界BGP路由器1而言,接收到的路由可保存在第一存储模块(Adj-RIBS-In)中。假设边界BGP路由器1接收到的这15条路由中有8条路由的目的IP前缀相同,此时需要对8条路由进行选择,选择出最优的一条路由发给目的IP前缀对应的路由器。当BGP对8条路由进行路由选择之后,可将优选出来的路由放在第二存储模块(Loc-RIB)中,然后第三存储模块(Adj-RIBS-Out)可将选择出的路由进行转发,以向其它的对等体(路由器)通告所选择出的路由信息。Exemplarily, the border BGP router 1 respectively receives 5 routes sent by the border BGP router 2 and 10 routes sent by the border BGP router 3 within 5 minutes. For the border BGP router 1, the received route can be stored in the first storage module (Adj-RIBS-In). Assume that 8 of the 15 routes received by border BGP router 1 have the same destination IP prefix. At this time, 8 routes need to be selected, and the best route is selected and sent to the router corresponding to the destination IP prefix. After BGP selects 8 routes, the optimized route can be placed in the second storage module (Loc-RIB), and then the third storage module (Adj-RIBS-Out) can forward the selected route , To advertise the selected routing information to other peers (routers).
需要说明的是,本申请实施例中可以周期性的对路由器在预设时长内接收到的路由进行判断,以确定预设时长内接收到的路由是否需要进行路由选择。例如,可以选择上述示例中的5分钟,当然,也可以每1分钟对接收到的路由进行判断,本申请对此不作限定。It should be noted that in the embodiment of the present application, the route received by the router within the preset time period may be periodically judged to determine whether the route received within the preset time period needs to be routed. For example, 5 minutes in the above example can be selected. Of course, the received route can also be judged every 1 minute, which is not limited in this application.
可以理解的是,边界BGP路由器1在接收路由的同时也可能发送路由,图1B中仅以边界BGP路由器1接收路由为例进行说明。It is understandable that the border BGP router 1 may also send routes while receiving routes. In FIG. 1B, only the border BGP router 1 receiving routes is used as an example for illustration.
应理解,图1B中第一存储模块、第二存储模块以及第三存储模块可以为边界BGP路由器1的一部分,图1B中仅是为了示意说明路由接收、选择和转发的整个流程,因此将三个存储模块与边界BGP路由器1分开示意。It should be understood that the first storage module, the second storage module, and the third storage module in FIG. 1B may be part of the border BGP router 1. FIG. Each storage module is separated from the border BGP router 1.
以下对本申请实施例提供的路由选择方法进行详细介绍,参阅图2所示,为本申请实施例提供的一种路由选择方法流程图,该方法包括如下步骤:The following is a detailed introduction to the route selection method provided by the embodiment of the present application. As shown in FIG. 2, a flowchart of a route selection method provided by the embodiment of the present application is provided. The method includes the following steps:
S201:第一网络设备接收第二网络设备发送的L条路由。S201: The first network device receives L routes sent by the second network device.
可以理解的是,L条路由为第一网络设备在预设时长内总共接收到的路由数量。例如,第一网络设备可在5分钟内接收第二网络设备发送的100条路由,对于预设时长本申请不作限定。It can be understood that the L routes are the total number of routes received by the first network device within the preset time period. For example, the first network device can receive 100 routes sent by the second network device within 5 minutes, and this application does not limit the preset duration.
以下为了描述方便,以路由器A作为第一网络设备,路由器B和路由器C作为第二网络设备为例进行介绍。示例性的,路由器A可接收其它路由器,例如路由器B、路由器C发送的L条路由。参阅表1所示,为本申请实施例提供的路由表中的路由示例。For the convenience of description, the following takes router A as the first network device, and router B and router C as the second network device as an example for introduction. Exemplarily, router A may receive L routes sent by other routers, such as router B and router C. Refer to Table 1, which is an example of routing in the routing table provided in this embodiment of the application.
表1路由示例Table 1 Routing example
Figure PCTCN2021088930-appb-000001
Figure PCTCN2021088930-appb-000001
Figure PCTCN2021088930-appb-000002
Figure PCTCN2021088930-appb-000002
需要说明的是,表1中的Network表示网段,Nextop表示下一跳IP地址,MED表示多出口区分值,LocPrf表示本地优先级,PreVal表示协议首选值,Path表示路径,Ogn表示起源。It should be noted that Network in Table 1 represents the network segment, Nextop represents the next hop IP address, MED represents the multi-outlet distinction value, LocPrf represents the local priority, PreVal represents the protocol preference value, Path represents the path, and Ogn represents the origin.
可以理解的是,表1中的路由仅是一种示意性说明,本申请并不限于此。It can be understood that the routing in Table 1 is only a schematic description, and the application is not limited to this.
在一些实施例中,路由可保存在路由器的路由表中,路由表可通过用户输入显示路由的命令,将路由表显示出来。示例如下:In some embodiments, the route can be stored in the routing table of the router, and the routing table can be displayed by the user inputting a command to display the route. Examples are as follows:
Figure PCTCN2021088930-appb-000003
Figure PCTCN2021088930-appb-000003
Figure PCTCN2021088930-appb-000004
Figure PCTCN2021088930-appb-000004
可以理解的是,上述显示的路由表仅是一种示意性说明,本申请对此不作限定。It is understandable that the routing table shown above is only a schematic illustration, and this application does not limit it.
S202:第一网络设备获取L条路由中的N条路由。其中,所述L、N为正整数。S202: The first network device obtains N routes among the L routes. Wherein, the L and N are positive integers.
在本申请实施例中,第一网络设备接收到的L条路由中,可分为两部分。其中,一部分为不需要进行路由选择的路由,另外一部分为需要进行路由选择的路由。第一网络设备可以从L条路由中获取需要进行路由选择的路由,例如获取N条路由。当然,可以理解的是,N条路由为具有相同路由前缀的路由。In the embodiment of the present application, the L routes received by the first network device can be divided into two parts. Among them, one part is the route that does not need to be routed, and the other part is the route that needs to be routed. The first network device may obtain the routes that need to be routed from the L routes, for example, obtain N routes. Of course, it can be understood that the N routes are routes with the same route prefix.
应理解,本申请中相同的路由前缀可以理解为IP前缀相同,换句话说,可以理解为同一组IP的集合。例如,192.168.0.1到192.168.0.25都属于相同的路由前缀。It should be understood that the same routing prefix in this application can be understood as the same IP prefix, in other words, it can be understood as a collection of the same IP group. For example, 192.168.0.1 to 192.168.0.25 all belong to the same routing prefix.
S203:第一网络设备获取用户选择的第一级规则。S203: The first network device obtains the first-level rule selected by the user.
在本申请实施例中,第一级规则可包括至少一条规则,且所述第一级规则包括并不限于前述介绍的R1-R12,也可以包括其它的参数对应的规则,例如性能、时延、丢包、线路容量等,本申请对此不作限定。In the embodiment of the present application, the first-level rule may include at least one rule, and the first-level rule includes but is not limited to the aforementioned R1-R12, and may also include rules corresponding to other parameters, such as performance and time delay. , Packet loss, line capacity, etc., this application does not limit this.
示例性的,假设除前述介绍的12条规则之外,本申请还包括如下规则:Exemplarily, suppose that in addition to the 12 rules introduced above, this application also includes the following rules:
R13:优先选择时延最低的路由;R14:优先选择丢包最少的路由;R15:优先选择承载云入口流量的线路成本最低的路由;R16:优先选择线路利用率最低的路由。R13: Prefer the route with the lowest delay; R14: Prefer the route with the least packet loss; R15: Prefer the route with the lowest line cost that carries cloud ingress traffic; R16: Prefer the route with the lowest line utilization.
需要说明的是,R13-R16仅是一种示意性说明,本申请中所涉及的Rn(n为正整数)也就是规则中的数字1、2、3等并不代表规则的执行顺序,并且规则并不限于本 申请所列出的规则。It should be noted that R13-R16 is only a schematic description, Rn (n is a positive integer) involved in this application, that is, the numbers 1, 2, 3, etc. in the rules do not represent the execution order of the rules, and The rules are not limited to the rules listed in this application.
由于在不同的场景下,网络关注的侧重点可能不同。比如,在公有云场景下,公有云非常关心分布于目标覆盖区域的各个AS中的用户终端上的应用(APP)访问公有云中各种云服务的体验,如时延,丢包等。换句话来说,公有云对于终端用户通过Internet访问云服务的体验非常敏感,因为用户访问体验不好,可能会卸载手机APP,导致手机上该APP对应的云服务的用户减少。由于云服务对用户的活跃访问数量非常敏感,一旦用户数量减少,也就会影响云服务的盈利和生存,因此如果用户体验比较差可能会导致云服务转而选择迁移到其他网络性能更好的公有云提供商。Because in different scenarios, the focus of network attention may be different. For example, in the public cloud scenario, the public cloud is very concerned about the experience of accessing various cloud services in the public cloud by applications (APP) on user terminals in each AS in the target coverage area, such as latency, packet loss, etc. In other words, the public cloud is very sensitive to the end users' experience of accessing cloud services through the Internet. Because the user's access experience is not good, the mobile APP may be uninstalled, resulting in a decrease in the number of users of the cloud service corresponding to the APP on the mobile phone. Since cloud services are very sensitive to the number of active user visits, once the number of users is reduced, it will also affect the profit and survival of cloud services. Therefore, if the user experience is poor, it may cause cloud services to choose to migrate to other networks with better performance. Public cloud provider.
又例如,运营商互联场景主要实现不同AS的大量用户终端之间的互通,主要的关注点在于优先确保占比较小的大用户互通的高可用性,为数众多的一般用户正常互通,不出现频繁重大故障即可,并不会花很大心思去随时优化众多一般用户反馈的互通体验(时延,丢包)。也就是说,对于运营商的Internet网络,主要是对大量终端用户提供尽力而为(Best-effort)连接业务,很少对其中具体业务做具体特殊的保障,因此只要业务不中断就行,对于时延与丢包的波动不敏感。终端用户一旦入网,电话号码与各种银行,电子商务业务绑定,很难转网,所以业务质量有波动对运营商压力没有对公有云业务压力那么大。运营商关注的是建网成本与运维成本,因此采用现有的BGP路由优选算法,易于组网,易于维护,各方面的成本都相对较低。For another example, the operator interconnection scenario mainly realizes the intercommunication between a large number of user terminals in different ASs. The main concern is to give priority to ensuring the high availability of intercommunication among large users who account for a relatively small proportion. A large number of general users can communicate normally without frequent and significant intercommunication. It does not matter if it fails, and it does not take a lot of effort to optimize the interworking experience (delay, packet loss) that many general users feedback at any time. That is to say, for operators’ Internet networks, they mainly provide best-effort connection services to a large number of end users, and seldom provide specific and special guarantees for specific services. Therefore, as long as the services are not interrupted, it is fine. Insensitive to fluctuations in delay and packet loss. Once terminal users are connected to the network, their phone numbers are bound to various banks and e-commerce services, and it is difficult to switch to the network. Therefore, fluctuations in service quality put pressure on operators as much as they do on public cloud services. Operators are concerned about the cost of network construction and operation and maintenance. Therefore, the existing BGP routing optimization algorithm is adopted, which is easy to network and maintain, and the costs in all aspects are relatively low.
基于此,在不同场景下,优先考虑的规则可能就会不同,即第一级规则可能会有不同。示例性的,在公有云场景下,第一级规则可包括如下规则:Based on this, in different scenarios, the priority rules may be different, that is, the first-level rules may be different. Exemplarily, in the public cloud scenario, the first-level rules may include the following rules:
R13:优先选择时延最低的路由;R14:优先选择丢包最少的路由。R13: Prefer the route with the lowest delay; R14: Prefer the route with the least packet loss.
需要说明的是,第一级规则并不限于上述示例中的R13和R14这两条规则,也可以包括其它的规则,本申请对此不作限定。It should be noted that the first-level rules are not limited to the two rules R13 and R14 in the above example, and may also include other rules, which are not limited in this application.
作为一种可能的实现方式,第一网络设备可以获取预先存储的多条规则,并以图形化界面显示多条规则。然后可以根据用户在图形化界面上输入的选择指令,确定用户所选择的第一级规则。示例性的,可以在图形化界面上显示R1-R16,然后用户可直接在图形化界面上选择第一级规则,例如选中R13和R14的选择框,这样第一网络设备可根据用户的选择指令确定第一级规则。As a possible implementation manner, the first network device may obtain multiple pre-stored rules, and display the multiple rules in a graphical interface. Then, the first level rule selected by the user can be determined according to the selection instruction input by the user on the graphical interface. Exemplarily, R1-R16 can be displayed on the graphical interface, and then the user can directly select the first-level rule on the graphical interface, for example, check the selection boxes of R13 and R14, so that the first network device can follow the user's selection instructions Determine the first level of rules.
当然,可以理解的是,图形化界面上可以显示“R13”、“R14”等,也可以显示R13的具体内容,例如显示“选择时延最低的路由”,显示的方式本申请不作具体限定。Of course, it is understandable that "R13", "R14", etc. can be displayed on the graphical interface, and the specific content of R13 can also be displayed, for example, "Select the route with the lowest delay".
作为另一种可能的实现方式,用户可以以命令行界面输入第一级规则,这样第一网络设备可以根据用户以命令行界面输入的第一级规则,获取第一级规则。As another possible implementation manner, the user can input the first-level rule through a command line interface, so that the first network device can obtain the first-level rule according to the first level rule input by the user through the command line interface.
需要说明的是,获取第一级规则的方式并不限于上述方式,例如也可以通过语音指令的方式获取第一级规则,或者也可以通过脚本的方式获取第一级规则等,本申请对此不作限定。It should be noted that the method of obtaining the first-level rules is not limited to the above-mentioned methods. For example, the first-level rules can also be obtained through voice commands, or the first-level rules can also be obtained through scripts. Not limited.
S204:第一网络设备依据第一级规则对N条路由进行选择,得到M条路由。其中,所述M为正整数。S204: The first network device selects N routes according to the first-level rules to obtain M routes. Wherein, the M is a positive integer.
在一些实施例中,第一级规则中可以包括多条规则,并且多条规则之间存在逻辑关系。示例性的,假设第一级规则中包括两条规则,比如将这两条规则记为规则1和 规则2,则用户可设置这两条规则之间的逻辑关系,例如可设置为优先通过规则1判断,若规则1判断不出来,则继续按照规则2进行判断。In some embodiments, the first-level rules may include multiple rules, and there is a logical relationship between the multiple rules. Exemplarily, suppose the first-level rule includes two rules, for example, the two rules are marked as rule 1 and rule 2, then the user can set the logical relationship between the two rules, for example, it can be set as the priority rule 1. Judgment, if rule 1 cannot be judged, continue to judge according to rule 2.
当然,可以理解的是,上述示例中规则的数量以及规则之间的逻辑关系仅是一种示意性说明,本申请中对此不做限定。Of course, it can be understood that the number of rules and the logical relationship between the rules in the above examples are only schematic illustrations, which are not limited in this application.
这样,当第一级规则中有且仅有一条规则时,第一网络设备依据这一条规则对N条路由进行选择。当第一级规则中包括多条规则时,第一网络设备可以先获取多条规则之间的逻辑关系,然后基于获取的逻辑关系对N条路由进行选择。In this way, when there is one and only one rule in the first-level rule, the first network device selects N routes according to this rule. When the first-level rules include multiple rules, the first network device may first obtain the logical relationship between the multiple rules, and then select N routes based on the obtained logical relationship.
举例来说,假设路由器A接收到的路由中有4条路由的路由前缀相同,且第一级规则可包括如下两条规则:R2选择本地优先级最高的路由;R4:选择AS路径最短的路由。并且这两条规则之间的逻辑关系为:优先根据R2判断,后根据R4判断。For example, suppose that 4 routes received by router A have the same route prefix, and the first-level rules can include the following two rules: R2 selects the route with the highest local priority; R4: selects the route with the shortest AS path . And the logical relationship between these two rules is: firstly judge according to R2, and then judge according to R4.
示例如下:比如四条路由的部分参数如下:An example is as follows: For example, some of the parameters of the four routes are as follows:
路由1:Local Preference=2000,length of(AS_PATH)=4。Route 1: Local Preference=2000, length of (AS_PATH)=4.
路由2:Local Preference=1000,length of(AS_PATH)=2。Route 2: Local Preference=1000, length of (AS_PATH)=2.
路由3:Local Preference=1000,length of(AS_PATH)=2。Route 3: Local Preference=1000, length of (AS_PATH)=2.
路由4:Local Preference=1000,length of(AS_PATH)=2。Route 4: Local Preference=1000, length of (AS_PATH)=2.
首先根据本地优先级进行判断,通过比较这四条路由的Local Preference可知,根据R2可选择出路由2、路由3和路由4,然后再根据R4对路由2、路由3和路由4进行判断,由于路由2和路由3的路径相同,也就是说,根据第一级规则判断之后,得到M=3条路由。First judge according to the local preference. By comparing the Local Preference of these four routes, it can be seen that route 2, route 3, and route 4 can be selected according to R2, and then route 2, route 3, and route 4 can be judged according to R4. The paths of 2 and route 3 are the same, that is, after judging according to the first-level rules, M=3 routes are obtained.
可以理解的是,Local Preference为前文所介绍的本地优先级(LOCAL_PREF),有时简称LP,应理解其含义相同。It is understandable that Local Preference is the local priority (LOCAL_PREF) introduced above, sometimes referred to as LP, and it should be understood that it has the same meaning.
S205:第一网络设备依据第二级规则对M条路由进行选择,直至选择出一条路由。S205: The first network device selects M routes according to the second-level rules until a route is selected.
本申请实施例中,第二级规则也可以由用户选择,选择方式与第一级规则类似,可以参见关于获取第一级规则的描述。In the embodiment of the present application, the second-level rule can also be selected by the user, and the selection method is similar to the first-level rule, and you can refer to the description about obtaining the first-level rule.
其中,第二级规则中包括至少一条规则,且所述第二级规则与第一级规则不同。示例性的,假设第一级规则中包括规则R1、R2,第二级规则中可以包括R2、R4,当然,可以理解的是,第二级规则中也可以包括R3、R4,本申请对此不作限定。Wherein, the second-level rules include at least one rule, and the second-level rules are different from the first-level rules. Exemplarily, assuming that the first-level rules include rules R1 and R2, the second-level rules may include R2 and R4. Of course, it is understandable that the second-level rules may also include R3 and R4. Not limited.
需要说明的是,上述示例中的R1、R2、R3、R4为前述介绍中的规则R1、R2、R3、R4。It should be noted that R1, R2, R3, and R4 in the above example are the rules R1, R2, R3, and R4 in the foregoing introduction.
在本申请实施例中,当第二级规则中有且仅有一条规则时,依据该唯一的规则对M条路由继续进行判断。当第二级规则中包括多条规则时,则可以依据第二级规则中包括的多条规则之间的逻辑关系,对M条路由进行选择。In the embodiment of the present application, when there is one and only one rule in the second-level rule, the M routes are continuously judged according to the unique rule. When multiple rules are included in the second-level rules, M routes can be selected based on the logical relationship between the multiple rules included in the second-level rules.
还是以步骤S204中的例子来说,在步骤S204中根据第一级规则判断之后得到三条路由,即路由2、路由3和路由4。Taking the example in step S204 again, three routes, namely route 2, route 3, and route 4, are obtained after the judgment according to the first-level rule in step S204.
首先以第二级规则中包括一个规则为例来说,假设第二级规则为:R13:选择时延最低的路由。假设路由2的时延为:2s,路由3的时延为1s,路由4的时延为2s,则通过比较可知,路由3的时延更低,因此,最终选择出的路由为路由3。First, take a rule included in the second-level rule as an example, suppose the second-level rule is: R13: select the route with the lowest delay. Assuming that the delay of route 2 is 2s, the delay of route 3 is 1s, and the delay of route 4 is 2s, it can be seen from comparison that the delay of route 3 is lower. Therefore, the route finally selected is route 3.
接着以第二级规则中包括多条规则为例来说,假设第二级规则中包括:R5:依次选择ORIGIN属性为IGP、EGP、Incomplete的路由;R13:选择时延最低的路由。并且第二级规则中包括的多条规则之间的逻辑关系为:优先根据R5进行判断,再根据R13进行判断。Next, take the second-level rule including multiple rules as an example, suppose the second-level rule includes: R5: select the route with the ORIGIN attribute as IGP, EGP, and Incomplete in turn; R13: select the route with the lowest delay. And the logical relationship between the multiple rules included in the second-level rule is: firstly judge according to R5, and then judge according to R13.
示例性的,假设路由2的ORIGIN属性为IGP,时延为1s,路由3的ORIGIN属性为EGP,时延为2s,路由4的ORIGIN属性为IGP,时延为2s。通过比较可知,根据R5判断之后,选择出的路由为路由2和路由4,接着再根据R13对路由2和路由4进行选择,经过比较可知,路由2的时延更低,因此,最终选择出来的路由为路由2。For example, suppose that the ORIGIN attribute of route 2 is IGP and the delay is 1s, the ORIGIN attribute of route 3 is EGP, and the delay is 2s, and the ORIGIN attribute of route 4 is IGP, and the delay is 2s. It can be seen from comparison that after judging by R5, the selected routes are Route 2 and Route 4, and then Route 2 and Route 4 are selected according to R13. After comparison, it can be seen that Route 2 has a lower delay, so it is finally selected. The route is route 2.
在本申请一些实施例中,假设第一级规则包括前述介绍的R13至R16以及R1-R12中的部分规则,当第一网络设备根据第一级规则判断得到M条路由之后,再根据第二级规则对M条路由进行选择时,可以按照R1-R12中的除去第一级规则中的剩余规则对M条路由进行选择。示例性的,假设第一级规则中包括R2、R4以及R13至R16,则第二级规则可以包括R1、R3、R5至R12。In some embodiments of the present application, it is assumed that the first-level rules include some of the rules in R13 to R16 and R1-R12 described above. After the first network device determines that M routes are obtained according to the first-level rules, the second-level rules When the first-level rules select M routes, M routes can be selected according to the remaining rules in R1-R12 except the first-level rules. Exemplarily, assuming that the first-level rules include R2, R4, and R13 to R16, the second-level rules may include R1, R3, and R5 to R12.
当然,可以理解的是,本申请中同一条规则可以在第一级规则中出现,也可以在第二级规则中出现,前提是两级规则中至少有一级规则中包括多条规则。例如,第一级规则为R2,第二级规则为:R2、R4;或者第一级规则为R1、R2,第二级规则为:R1、R2、R4;或者第一级规则为R1、R2、R3,第二级规则为:R3、R4、R5等。Of course, it is understandable that the same rule in this application can appear in the first-level rule or the second-level rule, provided that at least one of the two-level rules includes multiple rules. For example, the first-level rules are R2, the second-level rules are: R2, R4; or the first-level rules are R1, R2, and the second-level rules are: R1, R2, R4; or the first-level rules are R1, R2 , R3, the second level rules are: R3, R4, R5, etc.
需要说明的是,由于本申请实施例中,第一级规则、第二级规则以及多条规则之间的逻辑关系由用户来配置,因此,当第一级规则或者第二规则中包括多条规则时,规则之间的逻辑关系可能会存在多种不同的组合,本申请在此不再一一举例。It should be noted that, in the embodiment of this application, the logical relationship between the first-level rules, the second-level rules, and multiple rules is configured by the user. Therefore, when the first-level rules or the second-level rules include multiple rules In the case of rules, the logical relationship between the rules may have many different combinations, and this application will not give examples one by one here.
进一步的,在本申请实施例中,当规则中包括的参数信息为AS-Path时,用户可以配置开启AS号码去重功能。Further, in the embodiment of the present application, when the parameter information included in the rule is AS-Path, the user can configure to enable the AS number deduplication function.
在一种可能的实现方式中,用户可以在图形化界面上增加一个单选框,例如单选框内的内容可以为“开启AS号码去重”或者“AS号码去重”,用户可以通过点击该单选框,开启该功能,这样网络设备在根据第一级规则或者第二级规则对路由进行选择时,如果规则中包括的参数为AS-Path,可确定用户开启自治系统AS号码去重功能。当然,可以理解的是,如果规则中不包括参数AS-Path,也可以不开启该AS号码去重功能。In a possible implementation, the user can add a radio button on the graphical interface. For example, the content of the radio box can be "enable AS number deduplication" or "AS number deduplication", and the user can click This radio box, enable this function, so that when the network device selects the route according to the first-level rule or the second-level rule, if the parameter included in the rule is AS-Path, the user can be sure to enable the autonomous system AS number deduplication Function. Of course, it is understandable that if the AS-Path parameter is not included in the rule, the AS number deduplication function may not be enabled.
在又一种可能的实现方式中,用户可以在命令行界面上增加一个配置命令,该配置命令用于选择是否开启该功能。示例性的,可以以开关的形式来实现该功能。In another possible implementation manner, the user can add a configuration command to the command line interface, and the configuration command is used to select whether to enable the function. Exemplarily, this function can be implemented in the form of a switch.
需要说明的是,本申请实施例中开启该AS号码去重功能的方式并不限于上述方式,例如也可以通过语音指令等其它的方式开启,本申请对此不作限定。It should be noted that the method of enabling the AS number deduplication function in the embodiment of the present application is not limited to the above-mentioned method, for example, it can also be opened by other methods such as voice commands, which is not limited in the present application.
本申请实施例中,通过开启AS号码去重功能,这样可以避免由于AS号码重复,使得AS-Path长度过长,进而导致误判,使得路由被拒收的情况发生。In the embodiment of the present application, by enabling the AS number deduplication function, the AS-Path length is too long due to the duplication of the AS number, which may lead to misjudgment and cause the route to be rejected.
图3示出了一种网络设备的功能模块示意图。该网络设备300可包括:获取单元301,第一选择单元302,第二选择单元303。Figure 3 shows a schematic diagram of functional modules of a network device. The network device 300 may include: an acquisition unit 301, a first selection unit 302, and a second selection unit 303.
其中,获取单元302,用于获取基于边界网关协议BGP接收到的L条路由中的 N条路由,并获取用户选择的第一级规则和第二级规则;所述第一级规则包括至少一条规则;所述L、N为正整数;所述第二级规则包括至少一条规则,且所述第二级规则与第一级规则不同。Wherein, the obtaining unit 302 is configured to obtain N routes among the L routes received based on the Border Gateway Protocol BGP, and obtain the first-level rule and the second-level rule selected by the user; the first-level rule includes at least one Rules; the L and N are positive integers; the second-level rules include at least one rule, and the second-level rules are different from the first-level rules.
第一选择单元302,用于依据所述第一级规则对所述获取单元301获取到的N条路由进行选择,得到M条路由;所述M为大于1的正整数,且所述M<N。The first selection unit 302 is configured to select the N routes obtained by the obtaining unit 301 according to the first-level rule to obtain M routes; the M is a positive integer greater than 1, and the M< N.
第二选择单元,用于依据第二级规则对所述第一选择单元302得到的M条路由进行选择,直至选择出一条路由。The second selection unit is configured to select the M routes obtained by the first selection unit 302 according to the second-level rule until a route is selected.
在一种可能的设计中,所述N条路由具有相同的路由前缀。In a possible design, the N routes have the same route prefix.
在一种可能的设计中,所述获取单元301还用于:In a possible design, the obtaining unit 301 is further configured to:
当所述第一级规则中包括多条规则时,获取所述第一级规则中包括的多条规则之间的逻辑关系;When multiple rules are included in the first-level rules, acquiring a logical relationship between the multiple rules included in the first-level rules;
所述第一选择单元302具体用于按如下方式依据所述第一级规则对所述N条路由进行选择:The first selection unit 302 is specifically configured to select the N routes according to the first-level rules in the following manner:
基于所述获取单元301获取到的逻辑关系对所述N条路由进行选择。The N routes are selected based on the logical relationship obtained by the obtaining unit 301.
在一种可能的设计中,所述获取单元301还用于:获取预先存储的多条规则,并以图形化界面显示所述多条规则;In a possible design, the obtaining unit 301 is further configured to: obtain a plurality of pre-stored rules, and display the plurality of rules in a graphical interface;
所述获取单元301具体用于按如下方式获取用户选择的第一级规则:依据用户在所述图形化界面上输入的选择指令,确定用户所选择的第一级规则。The obtaining unit 301 is specifically configured to obtain the first-level rule selected by the user in the following manner: according to the selection instruction input by the user on the graphical interface, the first-level rule selected by the user is determined.
在一种可能的设计中,所述获取单元301具体用于按如下方式获取所述第一级规则中包括的多条规则之间的逻辑关系:In a possible design, the obtaining unit 301 is specifically configured to obtain the logical relationship between the multiple rules included in the first-level rule in the following manner:
获取用户以命令行界面输入的所述第一级规则中包括的多条规则之间的逻辑关系。Obtain the logical relationship between the multiple rules included in the first-level rule input by the user through the command line interface.
在一种可能的设计中,所述第二选择单元303具体用于按如下方式依据第二级规则对所述M条路由进行选择:In a possible design, the second selection unit 303 is specifically configured to select the M routes according to the second-level rules in the following manner:
按照第二级规则中包括的多条规则之间的逻辑关系,对所述M条路由进行选择。According to the logical relationship among the multiple rules included in the second-level rules, the M routes are selected.
在一种可能的设计中,所述方法还包括:当规则中包括的参数信息为路径长度时,确定开启自治系统AS号码去重功能。In a possible design, the method further includes: when the parameter information included in the rule is the path length, determining to enable the AS number deduplication function of the autonomous system.
在一种可能的设计中,所述第一级规则包括:选择时延最小的路由;选择丢包最少的路由;选择线路成本最低的路由;选择线路利用率最低的路由。In a possible design, the first-level rules include: selecting the route with the least delay; selecting the route with the least packet loss; selecting the route with the lowest line cost; and selecting the route with the lowest line utilization.
在一种可能的设计中,所述第二级规则包括:选择协议首选值Preferred-value最大的路由;选择本地优先级最高的路由;选择聚合路由;选择自治系统AS路径最短;选择起源ORIGIN属性为IGP、EGP、Incomplete;选择多出口区分MED值最低;选择来源为EBGP、联盟、IBGP;选择下一跳Next_HOP度量值最低;选择簇列表CLUSTER_LIST长度最短;选择起源号ORIGINATOR_ID最小;选择路由器号Router ID最小的路由器;选择网际互联协议IP地址最小的对等体发布的路由。In a possible design, the second-level rules include: selecting the route with the largest protocol preferred value Preferred-value; selecting the route with the highest local priority; selecting the aggregated route; selecting the shortest AS path of the autonomous system; selecting the origin attribute IGP, EGP, Incomplete; choose multiple outlets to distinguish the lowest MED value; choose the source as EBGP, confederation, IBGP; choose the next hop Next_HOP with the lowest metric value; choose the shortest length of the cluster list CLUSTER_LIST; choose the smallest origin number ORIGINATOR_ID; choose the router number Router The router with the smallest ID; select the route advertised by the peer with the smallest Internet Protocol IP address.
其中,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。Among them, all relevant content of the steps involved in the above method embodiments can be cited in the functional description of the corresponding functional module, which will not be repeated here.
本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现 时可以有另外的划分方式,另外,在本申请各个实施例中的各功能模块可以集成在一个处理器中,也可以是单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。The division of modules in the embodiments of this application is illustrative, and it is only a logical function division. In actual implementation, there may be other division methods. In addition, the functional modules in the various embodiments of this application can be integrated into one process. In the device, it can also exist alone physically, or two or more modules can be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or software functional modules.
如图4所示为本申请实施例提供的一种基于边界网关协议的路由选择装置400,装置400包括至少一个处理器402,用于实现或用于支持装置400实现如本申请实施例提供的图3所示的第一选择单元、第二选择单元的功能。示例性地,处理器402可以依据所述第一级规则对所述获取单元获取到的N条路由进行选择,得到M条路由等,具体参见方法示例中的详细描述,此处不做赘述。As shown in FIG. 4, an apparatus 400 for routing selection based on the Border Gateway Protocol provided by an embodiment of the present application is shown. The apparatus 400 includes at least one processor 402 for implementing or supporting the apparatus 400 to achieve the The functions of the first selection unit and the second selection unit shown in FIG. 3. Exemplarily, the processor 402 may select the N routes obtained by the obtaining unit according to the first-level rule to obtain M routes, etc. For details, please refer to the detailed description in the method example, which will not be repeated here.
装置400还可以包括至少一个存储器401,用于存储程序指令。示例性地,存储器401可用于存储第一级规则、第二级规则以及多条规则之间的逻辑关系等,具体参见方法示例中的详细描述,此处不做赘述。存储器401和处理器402耦合。本申请实施例中的耦合是装置、单元或模块之间的间接耦合或通信连接,可以是电性,机械或其它的形式,用于装置、单元或模块之间的信息交互。处理器402可能和存储器401协同操作。处理器402可能执行存储器401中存储的程序指令和/或数据。所述至少一个存储器中的至少一个可以包括于处理器中。The device 400 may also include at least one memory 401 for storing program instructions. Exemplarily, the memory 401 may be used to store first-level rules, second-level rules, and logical relationships between multiple rules. For details, please refer to the detailed description in the method example, which will not be repeated here. The memory 401 and the processor 402 are coupled. The coupling in the embodiments of the present application is an indirect coupling or communication connection between devices, units or modules, and may be in electrical, mechanical or other forms, and is used for information exchange between devices, units or modules. The processor 402 may cooperate with the memory 401. The processor 402 may execute program instructions and/or data stored in the memory 401. At least one of the at least one memory may be included in the processor.
装置400还可以包括通信接口403,用于通过传输介质和其它设备进行通信。处理器402可以利用通信接口403收发数据。The apparatus 400 may further include a communication interface 403 for communicating with other devices through a transmission medium. The processor 402 can use the communication interface 403 to send and receive data.
本申请不限定上述通信接口403、处理器402以及存储器401之间的具体连接介质。本申请实施例在图4中以存储器401、处理器402以及通信接口403之间通过总线404连接,总线在图4中以粗线表示。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图4中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。This application does not limit the specific connection medium between the aforementioned communication interface 403, the processor 402, and the memory 401. In the embodiment of the present application, the memory 401, the processor 402, and the communication interface 403 are connected by a bus 404 in FIG. 4, and the bus is represented by a thick line in FIG. The bus can be divided into an address bus, a data bus, a control bus, and so on. For ease of representation, only one thick line is used in FIG. 4 to represent it, but it does not mean that there is only one bus or one type of bus.
在本申请实施例中,处理器402可以是通用处理器、数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接由硬件处理器执行完成,或者由处理器中的硬件及软件模块组合执行完成。In the embodiment of the present application, the processor 402 may be a general-purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. Or execute the methods, steps, and logical block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
在本申请实施例中,存储器401可以是非易失性存储器,比如硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD)等,还可以是易失性存储器(volatile memory),例如RAM。存储器是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。本申请实施例中的存储器还可以是电路或者其它任意能够实现存储功能的装置,用于存储程序指令。In the embodiment of the present application, the memory 401 may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), etc., or a volatile memory (volatile memory). For example, RAM. The memory is any other medium that can be used to carry or store desired program codes in the form of instructions or data structures and that can be accessed by a computer, but is not limited to this. The memory in the embodiment of the present application may also be a circuit or any other device capable of realizing a storage function for storing program instructions.
可选的,本申请实施例中的计算机执行指令也可以称之为应用程序代码,本申请实施例对此不作具体限定。Optionally, the computer-executable instructions in the embodiments of the present application may also be referred to as application program codes, which are not specifically limited in the embodiments of the present application.
本申请实施例中还提供一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行图2所示的实施例的方法。An embodiment of the present application also provides a computer-readable storage medium, including instructions, which when run on a computer, cause the computer to execute the method of the embodiment shown in FIG. 2.
本申请实施例中还提供一种计算机程序产品,包括指令,当其在计算机上运行时,使得计算机执行图2所示的实施例的方法。An embodiment of the present application also provides a computer program product, including instructions, which when run on a computer, cause the computer to execute the method of the embodiment shown in FIG. 2.
本申请实施例中还提供一种芯片,所述芯片中的逻辑用于执行图2所示的实施例的方法。An embodiment of the present application also provides a chip, and the logic in the chip is used to execute the method of the embodiment shown in FIG. 2.
本申请实施例是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The embodiments of the present application are described with reference to the flowcharts and/or block diagrams of the methods, equipment (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be implemented by instructions. These instructions can be provided to the processors of general-purpose computers, special-purpose computers, embedded processors, or other programmable data processing equipment to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing equipment are generated for realization A device with a function specified in a flow or multiple flows in a flowchart and/or a block or multiple blocks in a block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device. The device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment. The instructions provide steps for implementing the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the application without departing from the spirit and scope of the application. In this way, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalent technologies, then this application is also intended to include these modifications and variations.

Claims (21)

  1. 一种基于边界网关协议的路由选择方法,其特征在于,包括:A route selection method based on Border Gateway Protocol, which is characterized in that it comprises:
    获取基于边界网关协议BGP接收到的L条路由中的N条路由,并获取用户选择的第一级规则和第二级规则;所述第一级规则包括至少一条规则;所述L、N为正整数;所述第二级规则包括至少一条规则,且所述第二级规则与第一级规则不同;Obtain N routes out of the L routes received based on the Border Gateway Protocol BGP, and obtain the first-level rule and the second-level rule selected by the user; the first-level rule includes at least one rule; the L and N are A positive integer; the second-level rule includes at least one rule, and the second-level rule is different from the first-level rule;
    依据所述第一级规则对所述N条路由进行选择,得到M条路由;所述M为大于1的正整数,且所述M<N;The N routes are selected according to the first-level rules to obtain M routes; the M is a positive integer greater than 1, and the M<N;
    依据第二级规则对所述M条路由进行选择,直至选择出一条路由。The M routes are selected according to the second-level rules until a route is selected.
  2. 如权利要求1所述的方法,其特征在于,所述N条路由具有相同的路由前缀。The method according to claim 1, wherein the N routes have the same route prefix.
  3. 如权利要求1或2所述的方法,其特征在于,当所述第一级规则中包括多条规则时,依据所述第一级规则对所述N条路由进行选择,包括:The method according to claim 1 or 2, wherein when the first-level rules include multiple rules, selecting the N routes according to the first-level rules includes:
    获取所述第一级规则中包括的多条规则之间的逻辑关系;Acquiring a logical relationship among multiple rules included in the first-level rule;
    基于所述逻辑关系对所述N条路由进行选择。The N routes are selected based on the logical relationship.
  4. 如权利要求1至3任一项所述的方法,其特征在于,获取用户选择的第一级规则之前,所述方法还包括:The method according to any one of claims 1 to 3, wherein before obtaining the first-level rule selected by the user, the method further comprises:
    获取预先存储的多条规则,并以图形化界面显示所述多条规则;Acquiring a plurality of pre-stored rules, and displaying the plurality of rules in a graphical interface;
    所述获取用户选择的第一级规则,包括:The obtaining the first-level rule selected by the user includes:
    依据用户在所述图形化界面上输入的选择指令,确定用户所选择的第一级规则。According to the selection instruction input by the user on the graphical interface, the first-level rule selected by the user is determined.
  5. 如权利要求3所述的方法,其特征在于,获取所述第一级规则中包括的多条规则之间的逻辑关系,包括:The method according to claim 3, wherein obtaining the logical relationship among the multiple rules included in the first-level rule comprises:
    获取用户以命令行界面输入的所述第一级规则中包括的多条规则之间的逻辑关系。Obtain the logical relationship between the multiple rules included in the first-level rule input by the user through the command line interface.
  6. 如权利要求1所述的方法,其特征在于,依据第二级规则对所述M条路由进行选择,包括:The method of claim 1, wherein the selecting the M routes according to the second-level rule comprises:
    按照第二级规则中包括的多条规则之间的逻辑关系,对所述M条路由进行选择。According to the logical relationship among the multiple rules included in the second-level rules, the M routes are selected.
  7. 如权利要求1至6任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 6, characterized in that, the method further comprises:
    当规则中包括的参数信息为路径长度时,确定开启自治系统AS号码去重功能。When the parameter information included in the rule is the path length, it is determined to enable the AS number deduplication function of the autonomous system.
  8. 如权利要求1至5任一项所述的方法,其特征在于,所述第一级规则包括:The method according to any one of claims 1 to 5, wherein the first level rule comprises:
    选择时延最小的路由;Choose the route with the least delay;
    选择丢包最少的路由;Choose the route with the least packet loss;
    选择线路成本最低的路由;Choose the route with the lowest line cost;
    选择线路利用率最低的路由。Choose the route with the lowest line utilization.
  9. 如权利要求1或6所述的方法,其特征在于,所述第二级规则包括:The method according to claim 1 or 6, wherein the second level rule comprises:
    选择协议首选值Preferred-value最大的路由;Select the route with the largest Preferred-value of the protocol;
    选择本地优先级最高的路由;Choose the route with the highest local priority;
    选择聚合路由;Select aggregate route;
    选择自治系统AS路径最短;Choose the shortest AS path of the autonomous system;
    选择起源ORIGIN属性为内部网关协议IGP、外部网关协议EGP、Incomplete;Select the ORIGIN attribute as Interior Gateway Protocol IGP, Exterior Gateway Protocol EGP, Incomplete;
    选择多出口区分MED值最低;Choose multiple outlets to distinguish the lowest MED value;
    选择来源为EBGP、联盟、IBGP;Select the source as EBGP, confederation, IBGP;
    选择下一跳Next_HOP度量值最低;Select the next hop Next_HOP with the lowest metric value;
    选择簇列表CLUSTER_LIST长度最短;Choose the shortest length of the cluster list CLUSTER_LIST;
    选择起源号ORIGINATOR_ID最小;Choose the smallest ORIGINATOR_ID;
    选择路由器号Router ID最小的路由器;Select the router with the smallest router ID;
    选择网际互联协议IP地址最小的对等体发布的路由。Select the route advertised by the peer with the smallest Internetwork Protocol IP address.
  10. 一种网络设备,其特征在于,包括:A network device, characterized in that it comprises:
    获取单元,用于获取基于边界网关协议BGP接收到的L条路由中的N条路由,并获取用户选择的第一级规则和第二级规则;所述第一级规则包括至少一条规则;所述L、N为正整数;所述第二级规则包括至少一条规则,且所述第二级规则与第一级规则不同;The obtaining unit is configured to obtain N routes among the L routes received based on the Border Gateway Protocol BGP, and obtain the first-level rule and the second-level rule selected by the user; the first-level rule includes at least one rule; The L and N are positive integers; the second-level rule includes at least one rule, and the second-level rule is different from the first-level rule;
    第一选择单元,用于依据所述第一级规则对所述获取单元获取到的N条路由进行选择,得到M条路由;所述M为大于1的正整数,且所述M<N;The first selection unit is configured to select the N routes obtained by the obtaining unit according to the first-level rule to obtain M routes; the M is a positive integer greater than 1, and the M<N;
    第二选择单元,用于依据第二级规则对所述第一选择单元得到的M条路由进行选择,直至选择出一条路由。The second selection unit is configured to select the M routes obtained by the first selection unit according to the second-level rule until a route is selected.
  11. 如权利要求10所述的网络设备,其特征在于,所述N条路由具有相同的路由前缀。The network device according to claim 10, wherein the N routes have the same route prefix.
  12. 如权利要求10或11所述的网络设备,其特征在于,所述获取单元还用于:The network device according to claim 10 or 11, wherein the acquiring unit is further configured to:
    当所述第一级规则中包括多条规则时,获取所述第一级规则中包括的多条规则之间的逻辑关系;When multiple rules are included in the first-level rules, acquiring a logical relationship between the multiple rules included in the first-level rules;
    所述第一选择单元具体用于按如下方式依据所述第一级规则对所述N条路由进行选择:The first selection unit is specifically configured to select the N routes according to the first-level rules in the following manner:
    基于所述获取单元获取到的逻辑关系对所述N条路由进行选择。The N routes are selected based on the logical relationship obtained by the obtaining unit.
  13. 如权利要求10至12所述的网络设备,其特征在于,所述获取单元还用于:获取预先存储的多条规则,并以图形化界面显示所述多条规则;The network device according to claims 10 to 12, wherein the obtaining unit is further configured to: obtain a plurality of pre-stored rules, and display the plurality of rules in a graphical interface;
    所述获取单元具体用于按如下方式获取用户选择的第一级规则:The obtaining unit is specifically configured to obtain the first-level rule selected by the user in the following manner:
    依据用户在所述图形化界面上输入的选择指令,确定用户所选择的第一级规则。According to the selection instruction input by the user on the graphical interface, the first-level rule selected by the user is determined.
  14. 如权利要求12所述的网络设备,其特征在于,所述获取单元具体用于按如下方式获取所述第一级规则中包括的多条规则之间的逻辑关系:The network device according to claim 12, wherein the obtaining unit is specifically configured to obtain the logical relationship between the multiple rules included in the first-level rule in the following manner:
    获取用户以命令行界面输入的所述第一级规则中包括的多条规则之间的逻辑关系。Obtain the logical relationship between the multiple rules included in the first-level rule input by the user through the command line interface.
  15. 如权利要求10所述的网络设备,其特征在于,所述第二选择单元具体用于按如下方式依据第二级规则对所述M条路由进行选择:The network device according to claim 10, wherein the second selection unit is specifically configured to select the M routes according to the second-level rules in the following manner:
    按照第二级规则中包括的多条规则之间的逻辑关系,对所述M条路由进行选择。According to the logical relationship among the multiple rules included in the second-level rules, the M routes are selected.
  16. 如权利要求10至15任一所述的网络设备,其特征在于,所述方法还包括:15. The network device according to any one of claims 10 to 15, wherein the method further comprises:
    当规则中包括的参数信息为路径长度时,确定开启自治系统AS号码去重功能。When the parameter information included in the rule is the path length, it is determined to enable the AS number deduplication function of the autonomous system.
  17. 如权利要求10至14任一项所述的网络设备,其特征在于,所述第一级规则包括:The network device according to any one of claims 10 to 14, wherein the first level rule comprises:
    选择时延最小的路由;Choose the route with the least delay;
    选择丢包最少的路由;Choose the route with the least packet loss;
    选择线路成本最低的路由;Choose the route with the lowest line cost;
    选择线路利用率最低的路由。Choose the route with the lowest line utilization.
  18. 如权利要求10或15所述的网络设备,其特征在于,所述第二级规则包括:The network device according to claim 10 or 15, wherein the second level rule comprises:
    选择协议首选值Preferred-value最大的路由;Select the route with the largest Preferred-value of the protocol;
    选择本地优先级最高的路由;Choose the route with the highest local priority;
    选择聚合路由;Select aggregate route;
    选择自治系统AS路径最短;Choose the shortest AS path of the autonomous system;
    选择起源ORIGIN属性为IGP、EGP、Incomplete;Select the ORIGIN attribute as IGP, EGP, Incomplete;
    选择多出口区分MED值最低;Choose multiple outlets to distinguish the lowest MED value;
    选择来源为EBGP、联盟、IBGP;Select the source as EBGP, confederation, IBGP;
    选择下一跳Next_HOP度量值最低;Select the next hop Next_HOP with the lowest metric value;
    选择簇列表CLUSTER_LIST长度最短;Choose the shortest length of the cluster list CLUSTER_LIST;
    选择起源号ORIGINATOR_ID最小;Choose the smallest ORIGINATOR_ID;
    选择路由器号Router ID最小的路由器;Select the router with the smallest router ID;
    选择网际互联协议IP地址最小的对等体发布的路由。Select the route advertised by the peer with the smallest Internetwork Protocol IP address.
  19. 一种基于边界网关协议的路由选择装置,其特征在于,包括:存储器、通信接口和处理器;A routing device based on Border Gateway Protocol, which is characterized by comprising: a memory, a communication interface and a processor;
    所述存储器存储有计算机指令;The memory stores computer instructions;
    所述通信接口用于接收和发送数据;The communication interface is used to receive and send data;
    所述处理器用于执行所述存储器所存储的计算机指令,以使所述装置执行如权利要求1-9中任一项所述的方法。The processor is configured to execute computer instructions stored in the memory, so that the device executes the method according to any one of claims 1-9.
  20. 一种计算机可读存储介质,其特征在于,所述存储介质存储有计算机指令,当所述计算机指令被计算机执行时,使得所述计算机执行如权利要求1-9中任一项所述的方法。A computer-readable storage medium, wherein the storage medium stores computer instructions, and when the computer instructions are executed by a computer, the computer executes the method according to any one of claims 1-9 .
  21. 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机指令,当所述计算机指令被计算机执行时,使得所述计算机执行如权利要求1-9中任一项所述的方法。A computer program product, characterized in that the computer program product includes computer instructions, and when the computer instructions are executed by a computer, the computer is caused to execute the method according to any one of claims 1-9.
PCT/CN2021/088930 2020-04-30 2021-04-22 Border gateway protocol based route selection method and network device WO2021218766A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010365690.6A CN113595902A (en) 2020-04-30 2020-04-30 Routing method and network equipment based on border gateway protocol
CN202010365690.6 2020-04-30

Publications (1)

Publication Number Publication Date
WO2021218766A1 true WO2021218766A1 (en) 2021-11-04

Family

ID=78237381

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/088930 WO2021218766A1 (en) 2020-04-30 2021-04-22 Border gateway protocol based route selection method and network device

Country Status (2)

Country Link
CN (1) CN113595902A (en)
WO (1) WO2021218766A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170608A (en) * 2006-10-23 2008-04-30 华为技术有限公司 Call service processing method and system
CN103259717A (en) * 2012-02-17 2013-08-21 华为技术有限公司 Routing method and routing device based on strategy customization
EP3598718A1 (en) * 2018-07-17 2020-01-22 Avaya Inc. System and method for flexible routing

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8064443B2 (en) * 2009-05-11 2011-11-22 Juniper Networks, Inc. Scalable routing policy construction using dynamic redefinition of routing preference value
CN108134707B (en) * 2016-12-01 2021-08-03 华为技术有限公司 Method, system and network equipment for detecting route
US10938902B2 (en) * 2017-05-31 2021-03-02 Microsoft Technology Licensing, Llc Dynamic routing of file system objects
CN108900413B (en) * 2018-06-05 2020-10-02 北京邮电大学 Routing path selection method, device, electronic equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170608A (en) * 2006-10-23 2008-04-30 华为技术有限公司 Call service processing method and system
CN103259717A (en) * 2012-02-17 2013-08-21 华为技术有限公司 Routing method and routing device based on strategy customization
EP3598718A1 (en) * 2018-07-17 2020-01-22 Avaya Inc. System and method for flexible routing

Also Published As

Publication number Publication date
CN113595902A (en) 2021-11-02

Similar Documents

Publication Publication Date Title
US11716282B2 (en) System and method of providing segment routing as a service
US8456987B1 (en) Method and apparatus for route optimization enforcement and verification
US8570861B1 (en) Reputation-based networking
WO2020073685A1 (en) Forwarding path determining method, apparatus and system, computer device, and storage medium
US10009254B2 (en) Calculation of a lowest cost path
US10153964B2 (en) Network routing using dynamic virtual paths in an overlay network
US9166903B2 (en) System, method and apparatus to resolve RPF-vector attribute conflicts
US8667174B2 (en) Method and system for survival of data plane through a total control plane failure
US7715395B2 (en) System and method for expanding the range of a mesh network
US11121963B2 (en) Best path computation offload in a network computing environment
CN112702773B (en) Communication method and device
US11855893B2 (en) Tag-based cross-region segment management
US9160648B2 (en) Content-centric network and method of performing routing between domains therefor
CN106059917B (en) Routing information processing method and device
US20230216786A1 (en) Method for forwarding service packet, method for sending sr policy, device, and system
US11343153B2 (en) BGP logical topology generation method, and device
WO2021218766A1 (en) Border gateway protocol based route selection method and network device
US11799755B2 (en) Metadata-based cross-region segment routing
WO2021218754A1 (en) Route selection method and device based on border gateway protocol
US11483210B2 (en) Interdomain path calculation based on an abstract topology
CN109309619A (en) The implementation method and device of two-dimentional Routing Protocol between a kind of domain
US10129089B1 (en) Shifting network traffic
US20230068443A1 (en) Dynamic packet routing using prioritized groups
CN113381934B (en) Differential service code point DSCP (distributed service control point) drainage method and device
US20240064089A1 (en) Priority based route programing and advertising

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

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

Country of ref document: EP

Kind code of ref document: A1