How to receive and advertise BGP-intent routes

By integrating metric types and credit information into BGP-intent routes, the method addresses inefficiencies in path establishment by ensuring compliance with service-level agreements, optimizing resource utilization in large multi-domain networks.

JP2024537477AActive Publication Date: 2024-10-10ZTE CORP
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2024525145
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2021-10-25
Filing Date
2022-08-01
Publication Date
2024-10-10
Estimated Expiration
2042-08-01

AI Technical Summary

Technical Problem

Existing methods for establishing BGP-intent routes in large multi-domain networks are inefficient due to inconsistent and static intent-template configurations across BGP speakers, leading to mismatched service-level agreements (SLAs) and suboptimal path selection.

Method used

Incorporating metric types and metric credit information into BGP-intent routes, allowing BGP speakers to dynamically establish or select transmission paths that meet specific intent criteria by using metric credit pieces and reference values to ensure compliance with end-to-end service agreements.

Benefits of technology

This approach enhances the efficiency of BGP-intent route establishment by ensuring that transmission paths adhere to intended service-level agreements, optimizing resource utilization and reducing inefficiencies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024537477000001_ABST
    Figure 2024537477000001_ABST
Patent Text Reader

Abstract

An embodiment of the present disclosure provides a method for receiving a BGP-intent route and a method for advertising a BGP-intent route, the method for receiving a BGP-intent route includes a step of receiving a BGP-intent route advertised from a BGP speaker, wherein the BGP-intent route includes at least one of a metric type, a metric, and metric credit information.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This disclosure claims priority to a Chinese patent application filed with the China National Intellectual Property Office on October 25, 2021, bearing application number 202111243804.0 and entitled "Method for receiving BGP-intent routes and method for advertising BGP-intent routes," the entire contents of which are incorporated herein by reference.

[0002] The present disclosure relates to the field of data communications, and more particularly to a method for receiving BGP-intent routes and a method for advertising BGP-intent routes. [Background technology]

[0003] In large-scale networks spanning multiple domains, the Border Gateway Protocol (BGP) is generally used to provide end-to-end sense-intent paths, where sense-intent paths refer to the selection of lower-layer transmission paths based on a clear intent when a BGP route repeats the next hop, which means that the BGP route needs to carry intent information when it is advertised. Since the lower-layer transmission path is a traffic engineering path established based on a specific intent, in a network providing a transmission service, the intent may be called a traffic engineering goal. Currently, there are multiple ways to carry intent when a BGP route is advertised, for example, draft-kaliraj-idr-bgp-classful-transport-planes-12 defines the "Classful Transport" SAFI NLRI and the "Transport Class" Route Target extended community to carry intent information, draft-dskc-bess-bgp-car-02 defines the BGP CAR SAFI NLRI to carry intent information, and draft-zhou-idr-inter-domain-lcu-02 directly uses the Color extended community to carry intent information. In this specification, such BGP routes are collectively referred to as BGP-intent routes.

[0004] Generally, a node receiving a BGP-intent route advertisement message will locally decode the intent based on intent template information, and establish a transmission route or select an existing transmission route that meets the intent to the message advertiser. The intent template information includes a set of constraints, such as the size of link bandwidth that needs to be provided in the route, minimum and maximum delay constraints, delay jitter constraints, packet loss rate constraints, inclusion or exclusion of specific nodes or links, constraints on calculating routes within a specific virtual network, etc. Ingress PE nodes (i.e., nodes responsible for service access) in a network will select BGP-intent routes to Egress PEs that can meet the service demand based on the service SLA (Service Level Agreement), i.e., the intent template information in an Ingress PE node generally coincides with the service SLA, but this does not mean that the intent template information in intermediate nodes also coincides with the service SLA. For example, when observing the behavior of forwarding BGP routes across multiple domains, the SLA of the service must be satisfied to "provide one route with a delay upper limit of 100 ms from Ingress PE to Egress PE". Obviously, the delay of 100 ms does not refer to the cumulative delay of a certain intermediate segment of the route when forwarding the BGP route, but refers to the end-to-end cumulative delay upper limit, that is, each BGP speaker in the middle of the route cannot use the delay of 100 ms as an indicator to establish a transmission route to the next BGP speaker or select an existing transmission route to the next BGP speaker. Regarding how to solve this problem, there is a complicated configuration method in which the intent-template configured on different BGP speakers in the route contains different delay indicators (or called delay credits). However, such a static configuration method has obvious flaws because an intent-template is not necessarily bound to a specific end-to-end route and may serve multiple routes.

[0005] No effective solution has yet been proposed for the problem in related art that the efficiency of establishing a transmission path for a BGP-intent route due to the contents contained in the BGP-intent route is low.

[0006] Therefore, there is a need for improvements in the related art to overcome the shortcomings of the related art. Summary of the Invention [Problem to be solved by the invention]

[0007] An embodiment of the present disclosure provides a method for receiving a BGP-intent route and a method for advertising a BGP-intent route to at least solve the problem in related technologies of low efficiency in establishing a transmission path for a BGP-intent route due to the content contained in the BGP-intent route. [Means for solving the problem]

[0008] According to one aspect of an embodiment of the present disclosure, a method for receiving a BGP-intent route is provided, the method including a step of receiving a BGP-intent route advertised from a BGP speaker, the BGP-intent route including at least one of a metric type, a metric, and metric credit information.

[0009] According to another aspect of an embodiment of the present disclosure, a method for advertising a BGP-intent route is provided, the method including a step of advertising a BGP-intent route to a neighbor BGP speaker, the BGP-intent route including at least one of a metric type, a metric, and metric credit information.

[0010] According to another aspect of an embodiment of the present disclosure, an apparatus for receiving a BGP-intent route is provided, the apparatus including a receiving module configured to receive a BGP-intent route advertised from a BGP speaker, the BGP-intent route including at least one of a metric type, a metric, and metric credit information.

[0011] According to another aspect of an embodiment of the present disclosure, an apparatus for advertising a BGP-intent route is provided, the apparatus including an advertising module configured to advertise a BGP-intent route to a neighbor BGP speaker, the BGP-intent route including at least one of a metric type, a metric, and metric credit information.

[0012] According to another aspect of an embodiment of the present disclosure, there is further provided a computer readable storage medium having a computer program stored thereon, the computer program being configured, when executed, to perform any of the methods described above.

[0013] According to another aspect of the present disclosure, there is further provided an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program causing the processor to execute any of the above methods. Effect of the Invention

[0014] According to the present disclosure, a BGP-intent route advertised from a BGP speaker is received, and the BGP-intent route includes at least one of a metric type, a metric, and metric credit information, thereby solving the problem of low efficiency of establishing a route transmission path in related technologies and improving the efficiency of establishing a transmission path.

[0015] BRIEF DESCRIPTION OF THE DRAWINGS The drawings described herein are intended to facilitate a better understanding of the present disclosure and constitute a part of the present disclosure. The illustrative embodiments of the present disclosure and the description thereof are used to interpret the present disclosure and are not intended to unduly limit the present disclosure. [Brief description of the drawings]

[0016] [Figure 1] FIG. 2 is a block diagram showing the hardware configuration of a computer terminal for a method of receiving a BGP-intent route according to an embodiment of the present disclosure. [Diagram 2] 2 is a flowchart of a method for receiving a BGP-intent route according to an embodiment of the present disclosure; [Diagram 3] 2 is a flowchart of a method for advertising a BGP-intent route according to an embodiment of the present disclosure. [Figure 4] FIG. 1 is a schematic diagram of a metric-credit attribute format according to an embodiment of the present disclosure. [Diagram 5] FIG. 2 is a schematic diagram of transmission paths of different intents between the same source and sink according to an embodiment of the present disclosure. [Figure 6] FIG. 2 is a schematic diagram of same-intent transmission paths between multiple pairs of sources and sinks according to an embodiment of the present disclosure. [Figure 7] FIG. 2 is a block diagram of a receiving device for a BGP-intent route according to an embodiment of the present disclosure. [Figure 8] 1 is a block diagram of a BGP-intent route advertising device according to an embodiment of the present disclosure. FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0017] Hereinafter, in order to make those skilled in the art better understand the solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, obviously, the described embodiments are only a part, not all, of the embodiments of the present disclosure, and all other embodiments obtained by those skilled in the art based on the embodiments of the present disclosure without creative labor should all fall within the scope of protection of the present disclosure.

[0018] In addition, the terms "first", "second", and the like in the specification, claims, and drawings of the present disclosure are not used to describe a particular order or sequence, but are used to distinguish between similar objects. It should be understood that the data used in this manner may be appropriately exchanged so that the embodiments of the present disclosure described herein are performed in an order other than that shown or described herein. In addition, the terms "comprise" and "have" and any variations thereof are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or equipment that includes a series of steps or units is not limited to the steps or units explicitly shown, and may include other steps or units that are not explicitly shown or are inherent to these processes, methods, products, or equipment.

[0019] The embodiment of the method according to the embodiment of the present disclosure may be executed in a computer terminal or a similar computing device. As an example of operating on a computer terminal, FIG. 1 is a block diagram showing a hardware configuration of a computer terminal of the method of receiving a BGP-intent route according to the embodiment of the present disclosure. As shown in FIG. 1, the computer terminal may include one or more (only one is shown in FIG. 1) processors 102 (processor 102 includes, but is not limited to, a microprocessor (abbreviated as Microprocessor Unit, MPU) or a programmable logic device (abbreviated as Programmable Logic Device, PLD) and a memory 104 configured to store data, and in an exemplary embodiment, the computer terminal may further include a transmission device 106 and an input / output device 108 for communication functions. As can be understood by those skilled in the art, the structure as shown in FIG. 1 is merely schematic and does not limit the structure of the computer terminal. For example, the computer terminal may include more or less components than those shown in FIG. 1, or may have a different configuration with functions equivalent to those shown in FIG. 1 or more functions than those shown in FIG. 1.

[0020] The memory 104 may be configured to store software programs and modules of application software, such as a computer program corresponding to a method for receiving BGP-intent routes in an embodiment of the present disclosure, and the processor 102 executes various functional applications and data processing, i.e., realizes the above-mentioned method, by executing the computer programs stored in the memory 104. The memory 104 may include a high-speed random access memory, and may further include a non-volatile memory, such as, for example, one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some embodiments, the memory 104 may further include memories that are located remotely with respect to the processor 102, and these remote memories may be connected to the computer terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, a corporate intranet, a local area network, a mobile communication network, and combinations thereof.

[0021] The transmission device 106 is configured to transmit and receive data via a network. A specific example of the network may include a wireless network provided by a carrier of the computer terminal. In one embodiment, the transmission device 106 includes a network adapter (abbreviated as Network Interface Controller, NIC) that is connected to other network devices by a base station and can communicate with the Internet. In one embodiment, the transmission device 106 may be a radio frequency (abbreviated as RF) module configured to communicate with the Internet wirelessly.

[0022] 2 is a flowchart of a method for receiving a BGP-intent route according to an embodiment of the present disclosure. As shown in FIG. 2, the method includes the following step S202:

[0023] In step S202, a BGP-intent route advertised by a BGP speaker is received, and the BGP-intent route includes at least one of a metric type, a metric, and metric credit information.

[0024] Through the above steps, a BGP-intent route advertised by a BGP speaker is received, and the BGP-intent route includes at least one of metric type, metric, and metric credit information, thereby solving the problem in related technologies that the efficiency of establishing a transmission path for a BGP-intent route is low due to the content contained in the BGP-intent route, and by including the metric type, metric, and metric credit information in the BGP-intent route, the efficiency of establishing a transmission path is further improved.

[0025] Further, in one embodiment, the metric types include an IGP metric, a link delay metric, a link-node delay metric, a TE default metric, and a bandwidth metric, the metric credit information includes a total metric credit, an estimated BGP hop count, and a metric credit piece, and the metric credit information includes only one piece of information regardless of a specific source, or includes multiple pieces of information that correspond one-to-one to multiple specific sources.

[0026] It should be noted that the link delay metric may include, but is not limited to, the delay of the link.

[0027] It should be noted that the above link-node delay metric may include both link delay and intra-node delay at the same time, but is not limited to this.

[0028] Furthermore, in one embodiment, a technical means is further provided that specifically includes, after the step of receiving a BGP-intent route advertised from a BGP speaker, the step of obtaining an intent identifier from the BGP-intent route, locally searching an intent template based on the intent identifier to obtain intent information, and the step of establishing a transmission path for the BGP-intent route or selecting an existing transmission path based on the intent information.

[0029] Further, in one embodiment, a technical means is provided for establishing a transmission route for the BGP-intent route or selecting an existing transmission route based on the intent information, the technical means including a step of determining a metric credit piece reference value for a transmission route between a current BGP speaker and a downstream neighbor BGP speaker of the current BGP speaker based on a metric, a total metric credit, an estimated BGP hop count and a metric credit piece included in the BGP-intent route, and a step of establishing a transmission route or selecting an existing transmission route by limiting the total metric of the metric type of the established transmission route or the selected existing transmission route to less than or equal to the metric credit piece reference value.

[0030] Further, in one embodiment, if the metric credit information included in the BGP-intent route only includes a total metric credit associated with a source and does not include an explicit metric credit piece, for the metric credit attribute corresponding to each source, the total metric credit is divided by the estimated BGP hop count to obtain the average metric credit between two adjacent BGP speakers in the end-to-end path, and the metric included in the BGP-intent route is subtracted from the total metric credit to obtain the remaining metric.

[0031] Further, in one embodiment, the method includes a step of calculating an average metric credit and a remaining metric for all sources, and a metric credit piece reference value for a transmission path from the BGP speaker to a downstream neighbor BGP speaker includes the smallest positive value of the average metric credit and the remaining metric calculated for all sources.

[0032] Furthermore, in one embodiment, specifically, when the BGP-intent route further includes an explicit metric credit piece, for metric credit information corresponding to each source, a technical means is provided that includes the steps of: obtaining a metric credit piece corresponding to the BGP speaker from the BGP-intent route based on a position number in the end-to-end path of the BGP speaker; and subtracting the metric included in the BGP-intent route from the total metric credit to obtain a remaining metric.

[0033] Further, in one embodiment, the method includes a step of calculating a metric credit piece and a remaining metric for all sources, and a metric credit piece reference value for a transmission path from the BGP speaker to a downstream neighbor BGP speaker includes the smallest positive value of the metric credit pieces and remaining metrics calculated for all sources.

[0034] Furthermore, in one embodiment, if the BGP speaker finds that there is no transmission route to the downstream BGP speaker that satisfies the metric credit piece reference value, it selects a route from all candidate transmission routes whose total metric of the metric type is closest to the metric credit piece reference value. In an embodiment of the present disclosure, if there is no transmission route that satisfies the condition in the BGP speaker, it can relax the condition and increase the margin, and select a route from all candidate transmission routes whose total metric of the metric type is closest to the metric credit piece reference value.

[0035] Furthermore, the transmission path from the BGP speaker to the downstream BGP speaker includes at least one of a shortest forwarding path and a traffic engineering path, and the transmission path includes multiple sub-paths, which distribute load or form fast re-route (FRR) protection, or form a path for multi-stream copying and deletion, and when the multiple sub-paths form a path for multi-stream copying and deletion, the metric difference between the multiple sub-paths should satisfy a set limit value.

[0036] 3 is a flowchart of a method for advertising a BGP-intent route according to an embodiment of the present disclosure. As shown in FIG. 3, the method includes the following step S302:

[0037] In step S302, a BGP-intent route is advertised to a neighbor BGP speaker, and the BGP-intent route includes at least one of a metric type, a metric, and metric credit information.

[0038] Through the above steps, a BGP-intent route is advertised to a neighbor BGP speaker, and the BGP-intent route includes at least one of metric type, metric, and metric credit information, thereby solving the problem in related technologies that the efficiency of establishing a transmission path for a BGP-intent route is low due to the contents contained in the BGP-intent route, and by including the metric type, metric, and metric credit information in the BGP-intent route, the efficiency of establishing a transmission path is further improved.

[0039] Further, in one embodiment, the metric types include an IGP metric, a link delay metric, a link-node delay metric, a TE default metric, and a bandwidth metric, the metric credit information includes a total metric credit, an estimated BGP hop count, and a metric credit piece, and the metric credit information includes only one piece of information regardless of a specific source, or includes multiple pieces of information that correspond one-to-one to multiple specific sources.

[0040] Furthermore, in one embodiment, the metric corresponding to the metric type is the sum of the metric included in the BGP-intent route advertisement received from the downstream neighbor BGP speaker and the total metric corresponding to the metric type of the transmission path from this BGP speaker to the downstream neighbor BGP speaker, or if this BGP speaker is the original advertising node, the metric corresponding to the metric type is a configured initial value.

[0041] The initial value may be 0, but is not limited to this. Next, we consider a more general method with reference to the following example so that a BGP speaker that receives a BGP-intent route can establish a transmission path to the next BGP speaker with more flexible and accurate intent, or select an existing transmission path to the next BGP speaker.

[0042] In one embodiment, a technical means is provided, which includes the following steps 1 to 2. In step 1, BGP is extended such that a BGP speaker includes optional metric-type, metric, and metric-credit information when advertising BGP-intent routes to its upstream neighbors. The metric-credit information consists of a total-metric-credit, an estimated BGP hop count, and a metric-credit-piece. The metric-credit information may include only one piece of information, independent of a specific source (i.e., a specific Ingress PE), or it may include multiple pieces of information with one-to-one correspondence for each specific source.

[0043] In step 2, the BGP speaker that receives the BGP-intent route advertisement obtains the intent identifier from the route advertisement, performs a local search for the intent template to obtain the intent information, and establishes a transmission route or selects an existing transmission route based on the intent information. In particular, when establishing a transmission route or selecting an existing transmission route, the BGP speaker must obtain the "metric credit piece reference value" of the transmission route from this BGP speaker to the downstream neighbor BGP speaker based on the metric, total metric credit, estimated BGP hop count, and explicit metric credit piece information included in the route advertisement, and establish a transmission route or select an existing transmission route, and limit the total metric of the corresponding metric type of the transmission route to be used not to exceed the "metric credit piece reference value".

[0044] To better understand step 1 above, please refer to the following recommended specific protocol extensions for BGP:

[0045] RFC4271 defines BGP Path Attributes, which are included with BGP route advertisements and indicate various attributes of a route. This disclosure adds the following Attribute Type Codes and their attribute values ​​to indicate the above metric-type, metric-credit, and other attributes, but is not limited to them. Note: The metric attribute is an AIGP Attribute defined in RFC7311.

[0046] In one embodiment, the metric-type attribute and the metric-credit attribute are described below.

[0047] a) The metric type attribute indicates that, in the case of Path Attribute Type Code=TBD1 (pending assignment by IANA (Internet Assigned Numbers Authority)), the attribute value contains a metric-type attribute whose length is 1 byte. The metric-type attribute is a selectable and non-transferable attribute that indicates what type of metric is contained in the AIGP Attribute, and the current values ​​are as follows:

[0048] 0: IGP Metric (defined in RFC5305, RFC2328, and RFC5340), 1: Unidirectional Link Delay (defined in RFC7810), 2: TE default metric (defined in RFC5305), 3: Bandwidth Metric (defined in draft-ietf-lsr-flex-algo-bw-con-01), 4: Deterministic Delay Metric (As discussed in other documents, the Unidirectional Link Delay above only considers link delays, whereas the Deterministic Delay includes not only link delays but also delays within a node.) 5-255: To be defined in the future.

[0049] b) metric-credit attribute: For a Path Attribute with Type Code=TBD2 (pending IANA assignment), the attribute value contains a metric-credit attribute of the following format: The metric-credit attribute is an optional, non-transferable attribute that indicates information such as the end-to-end total metric credit, the estimated BGP hop count, and the metric credit piece.

[0050] In one embodiment, the metric-credit attribute can be described with reference to Figure 4. Figure 4 is a schematic diagram of a metric-credit attribute format according to an embodiment of the present disclosure. The fields in Figure 4 are described as follows:

[0051] Count of Sources occupies 1 byte and its value is at least 1, indicating the Source count result, i.e., how many Sources (i.e., Ingress PEs) have corresponding metric credit information. The metric credit information corresponding to each Source consists of "Flags", "Network Address of Source", "Total Metric Credit for Source", "Estimated BGP Hops Count for Source", "Current Hop Number", and "Metric Credit Piece[]".

[0052] Flags occupies one byte and is a flag bit. Currently, three flags are defined, as follows:

[0053] S-Flag is a Source Address Flag, and indicates whether or not the Network Address of Source field is included. 0 indicates that it is not included, and 1 indicates that it is included.

[0054] F-Flag is a Family Flag and indicates the address cluster of the Network Address of Source. If S-Flag is 1, the length of the Network Address of Source is determined based on F-Flag, where 0 indicates a 4-byte IPv4 address and 1 indicates a 16-byte IPv6 address.

[0055] P-Flag is a Piece Flag that indicates whether or not specific metric credit piece information (consisting of "Current Hop Number" and "Metric Credit Piece[]") is included; 0 indicates that it is not included, and 1 indicates that it is included.

[0056] The Network Address of Source is a variable number of bytes that indicates the IP address of the source. If the S-Flag is 0, this field does not exist. If the S-Flag is 1 and the F-Flag is 0, this field is a 4-byte IPv4 address. If the S-Flag is 1 and the F-Flag is 1, this field is a 16-byte IPv6 address. If the Network Address of Source does not exist, it indicates that the metric credit information is unrelated to a specific source. This generally occurs in coarse-grained scenarios where it is desired to control the establishment of a transmission path based on metric credits. For example, in a single AS, when an Egress PE advertises a BGP-intent route to multiple Ingress PEs in this AS, it contains only a single unified metric credit information regardless of the source.

[0057] Total Metric Credit for Source occupies 4 bytes and indicates the total metric credit from a specific Source (or any Source, if Network Address of Source is not present) to the Egress PE.

[0058] Estimated BGP Hops Count for Source occupies 1 byte and indicates the estimated BGP hop count from a specific Source (or any Source, if there is no Network Address of Source) to an Egress PE, and is calculated only for BGP speakers that need to modify the BGP next-hop to itself when receiving a BGP-intent route advertisement. For example, in an advertisement route SABCD consisting of five BGP speakers, S is an Ingress PE, D is an Egress PE, and A / B / C are three intermediate BGP speaker nodes, and when they all receive a BGP-intent route advertisement, they modify the BGP next-hop to itself, then the estimated BGP hop count is 4, that is, the entire advertisement route consists of 4 segments.

[0059] Current Hop Number occupies 1 byte and indicates the current subscript of the array Metric Credit Piece[]. Note that the "Current Hop Number" and "Metric Credit Piece[]" fields do not exist when the P-Flag is 0. In the BGP-intent route advertisement message sent by the Egress PE to its adjacent upstream BGP speaker neighbor, the initial value of the Current Hop Number is 0. Each time the BGP-intent route advertisement message passes through a BGP speaker, and the BGP speaker modifies the BGP next-hop of the route to itself (the BGP speaker), it reads an element from the array Metric Credit Piece[] according to the subscript Current Hop Number, obtains the metric credit piece of the transmission path from this BGP speaker to the downstream BGP speaker neighbor, and then increments the Current Hop Number in the message to continue advertising the route to the upstream BGP speaker neighbor. Note that when reading an element from the array Metric Credit Piece[] using the subscript Current Hop Number, it is necessary to avoid exceeding the boundary of the array.

[0060] Metric Credit Piece[] is an array whose number of elements is specified by Estimated BGP Hops Count for Source, and each element occupies 2 bytes. During the process of advertising a BGP-intent route, each BGP speaker along the way accesses the array with Current Hop Number as a subscript to obtain the explicit metric credit piece information when it modifies the BGP next-hop of the route to itself. The use of metric credit pieces has very strict restrictions, namely, BGP-intent routes must be advertised to a specific source hop-by-hop in strict accordance with the advertised route desired by the egress PE. In the event of an abnormality, if a BGP speaker finds that the Current Hop Number value in the received BGP-intent route advertisement message is already equal to or greater than the Estimated BGP Hops Count for Source value, it must stop searching for a transmission route based on the metric credit piece information.

[0061] In order to better understand the above step 2, the following example can be combined to illustrate step 2. Example 1 In this embodiment, if the metric credit attribute information included in the BGP-intent route advertisement message only contains the total metric credit associated with a source and does not contain any explicit metric credit piece information, the following operations can be performed on the metric credit information corresponding to each source.

[0062] Action 1: Set the variable total_metric_credit_value to the value of Total Metric Credit for Source, Step 2: Set the variable bgp_hops_count to the value of Estimated BGP Hops Count for Source, Operation 3: Set the variable metric_value to the value of the metric contained in the AIGP Attribute of the received BGP-intent route. Operation 4: Set the variable metric_residual_value to the remaining metric, where metric_residual_value=total_metric_credit_value-metric_value.

[0063] Note that if there is metric credit information corresponding to multiple sources, a large metric_value may be accumulated when a BGP-intent route is advertised, so the metric_residual_value corresponding to one source is negative and the metric_residual_value corresponding to the other sources is positive.

[0064] Step 5: Set the variable average_metric_credit_value to the average metric credit between each neighboring BGP speaker in the end-to-end path, where average_metric_credit_value=total_metric_credit_value / bgp_hops_count. In addition, the following operations can be performed on the metric credit information corresponding to all sources.

[0065] Step 6: Set the variable min_metric_residual_value to the smallest positive value among the metric_residual_values ​​corresponding to all Sources; Step 7: Set the variable min_average_metric_credit_value to the minimum value of the average_metric_credit_values ​​corresponding to all Sources; In this embodiment, the "metric credit piece reference value" for the transmission path from one BGP speaker to a downstream neighbor BGP speaker is the minimum of min_metric_residual_value and min_average_metric_credit_value. Example 2 In this embodiment, if the BGP-intent route advertisement message further includes explicit metric credit piece information, the following operations can be performed on the metric credit information corresponding to each source.

[0066] Step 8: Set the variable total_metric_credit_value to the value of Total Metric Credit for Source, Action 9: Set the variable bgp_hops_count to the value of Estimated BGP Hops Count for Source; Operation 10: Set the variable metric_value to the value of the metric contained in the AIGP Attribute of the received BGP-intent route; Operation 11: Set the variable metric_residual_value to the remaining metric, where metric_residual_value=total_metric_credit_value-metric_value.

[0067] Note that if there is metric credit information corresponding to multiple sources, a large metric_value may be accumulated when a BGP-intent route is advertised, so the metric_residual_value corresponding to one source is negative and the metric_residual_value corresponding to the other sources is positive.

[0068] Operation 12: Set the variable explicit_metric_credit_piece_value to the value of the element read from the array Metric Credit Piece[] with the subscript Current Hop Number, except that if the read is beyond the bounds, consider explicit_metric_credit_piece_value to be 0.

[0069] In addition, the following operations can be performed on the metric credit information corresponding to all sources.

[0070] Step 13: Set the variable min_metric_residual_value to the smallest positive value among the metric_residual_values ​​corresponding to all Sources; Operation 14: Set the variable min_explicit_metric_credit_piece_value to the smallest positive value among the explicit_metric_credit_piece_values ​​corresponding to all Sources.

[0071] In this embodiment, the "metric credit piece reference value" for the transmission path from one BGP speaker to a downstream neighbor BGP speaker is the minimum of min_metric_residual_value and min_explicit_metric_credit_piece_value.

[0072] The above embodiment can determine that the purpose of the "metric credit piece reference value" calculated by the above embodiment is to restrict the total metric of this transmission route used so as not to exceed the "metric credit piece reference value", but in some cases, the BGP speaker can appropriately relax such restrictions because it finds that there is no transmission route that can satisfy the above requirements, but the transmission route that the BGP speaker ultimately uses has a total metric of its corresponding metric-type that is closest to the "metric credit piece reference value" compared to other candidate transmission routes.

[0073] For BGP-intent routes generated by this BGP speaker, the included metric type is copied from the received route advertisement, the included metric attribute value is updated to the sum of the metric included in the received route advertisement plus the corresponding metric type of the transmission path used, and the included metric-credit attribute is copied from the received route advertisement (note that the Current Hop Number is incremented).

[0074] The BGP speaker may also continue to advertise the generated BGP-intent route to its upstream BGP speaker neighbors and modify the BGP next-hop to itself, where the route advertisement includes the updated metric and metric-credit attributes.

[0075] Next, the method for receiving a BGP-intent route according to the embodiment of the present disclosure will be described with reference to the following embodiment. Example 3 This embodiment will be described with reference to FIG. 5. FIG. 5 is a schematic diagram of transmission paths of different intents of the same source and sink according to an embodiment of the present disclosure. The network shown in FIG. 5 includes two IGP domains, and establishes BGP neighbors between PE1 and ABR and between ABR and PE2, and advertises BGP-intent routes. For example, according to the method described in draft-zhou-idr-inter-domain-lcu-02, Egress PE2 advertises its loopback route (denoted as loopback-PE2) to ABR via BGP, and the route advertisement includes Color extended community so that the intent information is included. After receiving the route advertisement, ABR continues to advertise to PE1 via BGP, that is, Ingress PE1, ABR, and Egress PE2 are BGP speakers in the above technical solution.

[0076] In this example, assume that two types of services need to communicate between Ingress PE1 and Egress PE2. The intention of one type of service is that the end-to-end total delay of the transmission path used does not exceed 10 ms, and the intention of another type of service is that the end-to-end total delay of the transmission path used does not exceed 100 ms. Since it is necessary to represent the routes related to the two intentions between the same source / destination, in this embodiment, it is necessary to set two Colors on Egress PE2, which are denoted as Color-1000 and Color-2000.

[0077] The intended settings corresponding to Color-1000 are metric-type: Unidirectional Link Delay (unit: ms), total-metric: 10, and metric-credit enabled.

[0078] The intended settings corresponding to Color-2000 are metric-type: Unidirectional Link Delay (unit: ms), total-metric: 100, and metric-credit enabled.

[0079] The intent configuration information corresponding to the above two colors is also uniformly configured in other BGP speaker nodes (ABR, Ingress PE1). Since the intent configuration information includes the metric-credit enabled command, after receiving a BGP-intent route advertisement from a downstream BGP speaker neighbor, these other BGP speakers do not calculate the transmission route to the downstream BGP speaker neighbor based only on the total-metric included in the intent configuration information, but instead obtain the metric-credit information from the received BGP-intent route advertisement and, based on this, establish a transmission route that meets the intent, or use an existing transmission route that meets the intent. Alternatively, the intent configuration configured in these other BGP speaker nodes may not include total-metric information.

[0080] In this embodiment, a technical means including the following steps 1) to 3) is provided. In step 1), Egress PE2 generates a BGP-intent route and advertises it to the ABR. That is, Egress PE2 creates the BGP-intent route and advertises it to the ABR.<prefix=loopback-PE2、color=1000> and<prefix=loopback-PE2、color=2000> Two BGP-intent routes are generated and advertised to the ABRs, respectively. The BGP next-hop in the route advertisements is Egress PE2.

[0081] In addition, BGP-intent routes<prefix=loopback-PE2、color=1000> is advertised, the information included in the route advertisement may be set based on the intent setting information corresponding to color-1000, i.e., metric-type is set to Unidirectional Link Delay and initial metric is set to 0.

[0082] The metric credit information is then set as follows: Count of Sources: 1, Flags: S-Flag=1, F-Flag=0, P-Flag=0, Network Address of Source: loopback-PE1 (assuming this is an IPv4 address), Total Metric Credit for Source: 10, Estimated BGP Hops Count for Source: 2 (two BGP speakers must be passed to reach Ingress PE1).

[0083] Also, BGP-intent routes<prefix=loopback-PE2、color=2000> When the route is advertised, the information included in the route advertisement is set based on the intent setting information corresponding to color-2000, that is, the metric-type is set to Unidirectional Link Delay, and the initial metric is set to 0. The metric credit information is set to Count of Sources: 1, Flags: S-Flag = 1, F-Flag = 0, P-Flag = 0, Network Address of Source: loopback-PE1 (assuming an IPv4 address), Total Metric Credit for Source: 100, and Estimated BGP Hops Count for Source: 2 (two BGP speakers must be passed to reach Ingress PE1).

[0084] In step 2), when the ABR receives the BGP-intent route, it establishes a lower-layer transmission path to the BGP next-hop that satisfies the intent.<prefix=loopback-PE2、color=1000> When it receives this, it locally creates a corresponding routing table entry, where the metric type is Unidirectional Link Delay and the BGP Next-hop is Egress PE2.

[0085] In addition, when the ABR knows that the "metric credit piece reference value" from this BGP speaker (i.e., ABR) to the downstream BGP speaker neighbor (i.e., Egress PE2) is 5ms (total metric credit divided by 2) based on the metric credit information contained in the received route advertisement, the ABR node internally invokes a Constraint Shortest Path First (CSPF) calculation module to calculate an extremely low latency route to Egress PE2 that does not exceed 5ms, and assumes that it is TE path-12 in Figure 5, with a latency of 4ms. Therefore, the BGP-intent routing table entry generated by the ABR is<prefix=loopback-PE2、color=1000> Iterates until the lower-layer transmission path of the BGP next-hop is TE path-12, and sets the metric of the routing table entry accordingly to 4. The ABR continues to advertise the BGP-intent route to the upstream BGP speaker neighbor (Ingress PE1), with the metric-type being Unidirectional Link Delay, the metric being 4, the BGP next-hop is modified to the ABR, and the metric credit information remains unchanged from the metric credit information in the previously received route advertisement.

[0086] Similarly, if an ABR sends BGP-intent routes<prefix=loopback-PE2、color=2000> When the ABR receives the TE path-22 in Figure 5, it may locally generate a corresponding routing table entry, where the metric-type is Unidirectional Link Delay and the BGP next-hop is Egress PE2. When the ABR knows that the "metric credit piece reference value" from this BGP speaker (i.e., ABR) to the downstream BGP speaker neighbor (i.e., Egress PE2) is 50ms (total metric credit divided by 2) based on the metric credit information contained in the received route advertisement, the ABR node will internally call the CSPF calculation module to calculate a low-latency route to Egress PE2 that does not exceed 50ms, and assume that it is TE path-22 in Figure 5, whose delay is 40ms. Therefore, the BGP-intent routing table entry generated by the ABR is<prefix=loopback-PE2、color=2000> Iterates until the lower-layer transmission path of the BGP next-hop is TE path-22, and sets the metric of the routing table entry accordingly to 40. The ABR continues to advertise the BGP-intent route to the upstream BGP speaker neighbor (Ingress PE1), with metric-type Unidirectional Link Delay, metric 40, BGP next-hop is modified to the ABR, and the metric credit information remains unchanged from the metric credit information in the previously received route advertisement.

[0087] In step 3), when Ingress PE1 receives the BGP-intent route, it establishes a lower-layer transmission path to the BGP next-hop that satisfies the intent. That is, Ingress PE1 transmits the BGP-intent route<prefix=loopback-PE2、color=1000> When it receives this, it creates a corresponding routing table entry locally, with the metric type set to Unidirectional Link Delay and the BGP Next-hop set to ABR.

[0088] In addition, when Ingress PE1 knows that the "metric credit piece reference value" from this BGP speaker (i.e., Ingress PE1) to the downstream BGP speaker neighbor (i.e., ABR) is 5ms (the total metric credit divided by 2 is 5, and the remaining metric credit is 6, so it takes the smaller value), based on the metric credit information contained in the received route advertisement, the Ingress PE1 node internally invokes the CSPF calculation module to calculate an extremely low latency route to the ABR that does not exceed 5ms. Assuming that it is TE path-11 in Figure 5, its latency is 4ms. Therefore, the BGP-intent routing table entry generated by Ingress PE1 is<prefix=loopback-PE2、color=1000> This is repeated until the lower layer transmission route of the BGP next hop becomes TE path-11, and the metric of the routing table entry is set to 8 (= 4 + 4) accordingly.

[0089] Similarly, Ingress PE1 sends BGP-intent routes<prefix=loopback-PE2、color=2000> When receiving the BGP-intent route advertisement, it may locally generate a corresponding routing table entry, where the metric-type is Unidirectional Link Delay and the BGP next-hop is ABR. When Ingress PE1 knows that the "metric credit piece reference value" from this BGP speaker (i.e., Ingress PE1) to the downstream BGP speaker neighbor (i.e., ABR) is 50ms (the total metric credit divided by 2 is 50, and the remaining metric credit is 60, which is the smaller value), the Ingress PE1 node will internally call the CSPF calculation module to calculate a low-latency route to the ABR that does not exceed 50ms, assuming that it is TE path-21 in Figure 5, whose delay is 40ms. Therefore, the BGP-intent routing table entry generated by Ingress PE1 is<prefix=loopback-PE2、color=2000> This is repeated until the lower layer transmission route of the BGP next hop becomes TE path-21, and the metric of the routing table entry is set to 80 (= 40 + 40) accordingly.

[0090] In this way, in this embodiment, the metric credit information included in the route advertisement allows each BGP speaker to establish differentiated transmission routes with a good reason and avoid competing for excellent extremely low latency link resources. Example 4 Referring to the network shown in Figure 5, two IGP domains are managed by a single service provider, the service provider is familiar with the network performance indicators, and the propagation path of BGP-intent route advertisement is clear. At this time, a local policy can be configured on Egress PE2 to include explicit metric credit piece information in the advertised BGP-intent route. The main steps are as follows:

[0091] In step 1), Egress PE2 generates a BGP-intent route and advertises it to the ABR. That is, Egress PE2 creates the BGP-intent route and advertises it to the ABR.<prefix=loopback-PE2、color=1000> and<prefix=loopback-PE2、color=2000> Two BGP-intent routes are generated and advertised to the ABRs, respectively. The BGP next-hop in the route advertisements is Egress PE2.

[0092] In addition, BGP-intent routes<prefix=loopback-PE2、color=1000> is advertised, the information included in the route advertisement may be set based on the intent setting information corresponding to color-1000, i.e., metric-type is set to Unidirectional Link Delay and initial metric is set to 0.

[0093] Then, set the metric credit information as follows: Count of Sources: 1, Flags: S-Flag=1, F-Flag=0, P-Flag=1, Network Address of Source: loopback-PE1 (assuming this is an IPv4 address), Total Metric Credit for Source: 10, Estimated BGP Hops Count for Source: 2 (two BGP speakers must be passed to reach Ingress PE1), Current Hop Number: 0, Metric Credit Piece[2]: [0]=4, [1]=6.

[0094] In addition, BGP-intent routes<prefix=loopback-PE2、color=2000> When is advertised, the information included in the route advertisement may be set based on the intent setting information corresponding to color-2000, i.e., metric-type is set to Unidirectional Link Delay and initial metric is set to 0.

[0095] Then, set the metric credit information as follows: Count of Sources: 1, Flags: S-Flag=1, F-Flag=0, P-Flag=0, Network Address of Source: loopback-PE1 (assuming this is an IPv4 address), Total Metric Credit for Source: 100, Estimated BGP Hops Count for Source: 2 (two BGP speakers must be passed to reach Ingress PE1), Current Hop Number: 0, Metric Credit Piece[2]: [0]=40, [1]=60.

[0096] In step 2), when the ABR receives the BGP-intent route, it establishes a lower-layer transmission path to the BGP next-hop that satisfies the intent.<prefix=loopback-PE2、color=1000> When it receives this, it locally creates a corresponding routing table entry, where the metric type is Unidirectional Link Delay and the BGP Next-hop is Egress PE2.

[0097] In addition, when the ABR knows that the "metric credit piece reference value" from this BGP speaker (i.e., ABR) to the downstream BGP speaker neighbor (i.e., Egress PE2) is 4ms (the total metric credit divided by 2 is 5, and the metric credit piece [0] element is 4, which is the smaller value), based on the metric credit information contained in the received route advertisement, the ABR node internally invokes the CSPF calculation module to calculate an extremely low latency route to Egress PE2 that does not exceed 4ms. Assuming that it is TE path-12 in Figure 5, its latency is 4ms. Therefore, the BGP-intent routing table entry generated by the ABR<prefix=loopback-PE2、color=1000> Iterates until the lower layer transmission path of the BGP next-hop is TE path-12, and sets the metric of the routing table entry to 4 accordingly. The ABR continues to advertise the BGP-intent route to the upstream BGP speaker neighbor (Ingress PE1), the metric-type is Unidirectional Link Delay, the metric is 4, the BGP next-hop is modified to the ABR, and the metric credit information is that the Current Hop Number is incremented to 1.

[0098] Similarly, if an ABR sends BGP-intent routes<prefix=loopback-PE2、color=2000> When the ABR receives the TE path-22 in Figure 5, it may locally generate a corresponding routing table entry, where the metric-type is Unidirectional Link Delay and the BGP next-hop is Egress PE2. When the ABR knows that the "metric credit piece reference value" from this BGP speaker (i.e., ABR) to the downstream BGP speaker neighbor (i.e., Egress PE2) is 40ms (the total metric credit divided by 2 is 50, and the metric credit piece [0] element is 40, which is the smaller value), based on the metric credit information contained in the received route advertisement, the ABR node will internally invoke the CSPF calculation module to calculate a low-latency route to Egress PE2 that does not exceed 40ms, and assume that it is TE path-22 in Figure 5, whose delay is 40ms. Therefore, the BGP-intent routing table entry generated by the ABR is<prefix=loopback-PE2、color=2000> Iterates until the lower layer transmission path of the BGP next-hop is TE path-22, and sets the metric of the routing table entry accordingly to 40. The ABR continues to advertise the BGP-intent route to the upstream BGP speaker neighbor (Ingress PE1), the metric-type is Unidirectional Link Delay, the metric is 40, the BGP next-hop is modified to the ABR, and the metric credit information is that the Current Hop Number is incremented to 1.

[0099] In step 3), when Ingress PE1 receives the BGP-intent route, it establishes a lower-layer transmission path to the BGP next-hop that satisfies the intent. That is, Ingress PE1 transmits the BGP-intent route<prefix=loopback-PE2、color=1000> When it receives this, it creates a corresponding routing table entry locally, with the metric type set to Unidirectional Link Delay and the BGP Next-hop set to ABR.

[0100] In addition, based on the metric credit information included in the received route advertisement, when Ingress PE1 knows that the "metric credit piece reference value" from this BGP speaker (i.e., Ingress PE1) to the downstream BGP speaker neighbor (i.e., ABR) is 5ms (the total metric credit divided by 2 is 5, the remaining metric credit is 6, and the metric credit piece [1] element is 6, so it takes the smaller value), the Ingress PE1 node internally invokes the CSPF calculation module to calculate an extremely low latency route to the ABR that does not exceed 5ms, and assumes that it is TE path-11 in Figure 5, whose latency is 4ms. Therefore, the BGP-intent routing table entry generated by Ingress PE1 is<prefix=loopback-PE2、color=1000> This is repeated until the lower layer transmission route of the BGP next hop becomes TE path-11, and the metric of the routing table entry is set to 8 (= 4 + 4) accordingly.

[0101] Similarly, Ingress PE1 sends BGP-intent routes<prefix=loopback-PE2、color=2000> When receiving the TE path-21 in Figure 5, it may locally generate a corresponding routing table entry, where the metric-type is Unidirectional Link Delay and the BGP next-hop is ABR. When Ingress PE1 knows that the "metric credit piece reference value" from this BGP speaker (i.e., Ingress PE1) to the downstream BGP speaker neighbor (i.e., ABR) is 50ms (the total metric credit divided by 2 is 50, the remaining metric credit is 60, and the metric credit piece [1] element is 60, which is the smaller value), the Ingress PE1 node will internally call the CSPF calculation module to calculate a low-latency route to the ABR that does not exceed 50ms, and assume that it is TE path-21 in Figure 5, whose delay is 40ms. Therefore, the BGP-intent routing table entry generated by Ingress PE1 is<prefix=loopback-PE2、color=2000> This is repeated until the lower layer transmission route of the BGP next hop becomes TE path-21, and the metric of the routing table entry is set to 80 (= 40 + 40) accordingly. Example 5 The technical solution in this embodiment will be described with reference to FIG. 6. FIG. 6 is a schematic diagram of a same-intent transmission path between a multi-pair source and a sink according to an embodiment of the present disclosure. The network shown in FIG. 6 includes three ASs (Autonomous Systems), and establishes BGP neighbors between PE1 and ASBR1, between ASBR1 and ASBR2, between ASBR1 and ASBR3, between ASBR2 and PE2, and between ASBR3 and PE3, and advertises BGP-intent routes. For example, according to the method described in draft-zhou-idr-inter-domain-lcu-02, Egress PE2 advertises its loopback route (denoted as loopback-PE2) to ASBR2 via BGP, and Egress PE3 advertises its loopback route (denoted as loopback-PE3) to ASBR3 via BGP, and the route advertisement includes a Color extended community so that the intent information is included. After receiving the route advertisement, ASBR2 / ASBR3 continues to advertise to ASBR1 via BGP, and after receiving the route advertisement, ASBR1 continues to advertise to Ingress PE1 via BGP, that is, Ingress PE1, ASBR1, ASBR2, ASBR3, Egress PE2, and Egress PE3 are BGP speakers in the above technical solution.

[0102] In this example, it is assumed that the same type of service needs to be communicated between Ingress PE1 and Egress PE2, and between Ingress PE1 and Egress PE3, and the intent of this type of service is a specific value related to the end-to-end total delay and distance of the transmission path used.

[0103] Assuming that the corresponding color-1000 is set for Egress PE2, the corresponding intended settings are metric-type: Unidirectional Link Delay (unit: ms), total-metric: 200 (taking into account that the actual distance is short), and metric-credit enabled.

[0104] Assuming that the corresponding color-1000 is set for Egress PE3, the corresponding intended settings are metric-type: Unidirectional Link Delay (unit: ms), total-metric: 300 (taking into account the actual distance being long), and metric-credit enabled.

[0105] The intent setting information corresponding to the above color is also uniformly set in other BGP speaker nodes (ASBR1, ASBR2, ASBR3, Ingress PE1), and does not need to include total-metric information.

[0106] The specific process is the same as in the previous embodiment, and only the important contents will be described here.

[0107] In step 1), Egress PE2 generates a BGP-intent route and advertises it to ASBR2. That is, Egress PE2 creates the corresponding BGP-intent route.<prefix=loopback-PE2、color=1000> It creates and advertises to ASBR2, and the main information included is as follows: BGP Next-hop is set to loopback-PE2, metric-type is set to Unidirectional Link Delay, and initial metric is set to 0.

[0108] Then, set the metric credit information as follows: Count of Sources: 1, Flags: S-Flag=1, F-Flag=0, P-Flag=0, Network Address of Source: loopback-PE1 (assuming IPv4 address), Total Metric Credit for Source: 200, Estimated BGP Hops Count for Source: 3 (it is necessary to go through three BGP speakers to reach Ingress PE1).

[0109] In step 2), Egress PE3 generates BGP-intent routes and advertises them to ASBR3. That is, Egress PE3 creates the corresponding BGP-intent routes.<prefix=loopback-PE3、color=1000> and advertises it to ASBR3, containing the following main information: Set BGP Next-hop to loopback-PE3, set metric-type to Unidirectional Link Delay, and set initial metric to 0.

[0110] Then, set the metric credit information as follows: Count of Sources: 1, Flags: S-Flag=1, F-Flag=0, P-Flag=0, Network Address of Source: loopback-PE1 (assuming IPv4 address), Total Metric Credit for Source: 300, Estimated BGP Hops Count for Source: 3 (it is necessary to go through three BGP speakers to reach Ingress PE1).

[0111] In step 3), when ASBR2 receives the BGP-intent route, it establishes a lower-layer transmission path to the BGP next-hop that satisfies the intent. That is, ASBR2 sends the BGP-intent route<prefix=loopback-PE2、color=1000> Upon receiving the TE path-13, it locally generates a corresponding routing table entry, whose main attributes include that the metric-type is Unidirectional Link Delay, the BGP next-hop is loopback-PE2 (repeating until the transmission path of PE2 becomes TE path-13 according to the metric credit piece reference value of 66), the metric is 60 (accumulating the cumulative delay of TE path-13 of 60 ms), and the metric-credit information remains unchanged from the information in the received route advertisement.

[0112] ASBR2 also continues to advertise the BGP-intent route to ASBR1, with the metric type being Unidirectional Link Delay, the metric being 60, the BGP next hop being modified to ASBR2, and the metric credit information remaining unchanged from the metric credit information in the previously received route advertisement.

[0113] In step 4), when ASBR3 receives the BGP-intent route, it establishes a lower-layer transmission path to the BGP next-hop that satisfies the intent. That is, ASBR3 sends the BGP-intent route<prefix=loopback-PE3、color=1000> Upon receiving the TE path-23, it locally generates a corresponding routing table entry, whose main attributes include that the metric-type is Unidirectional Link Delay, the BGP next-hop is loopback-PE3 (according to the metric credit piece reference value of 100, iterate until the transmission path of PE2 becomes TE path-23), the metric is 100 (accumulated delay of 100 ms of TE path-23 is accumulated), and the metric-credit information remains unchanged from the information in the received route advertisement.

[0114] ASBR3 also continues to advertise the BGP-intent route to ASBR1, with the metric type being Unidirectional Link Delay, the metric being 100, the BGP Next-hop being modified to ASBR3, and the metric credit information remaining unchanged from the metric credit information in the previously received route advertisement.

[0115] In step 5), when ASBR1 receives the BGP-intent route, it establishes a lower-layer transmission path to the BGP next-hop that satisfies the intent. That is, ASBR1 sends the BGP-intent route<prefix=loopback-PE2、color=1000> Upon receiving the TE path-12, it locally generates a corresponding routing table entry, whose main attributes include that the metric-type is Unidirectional Link Delay, the BGP next-hop is ASBR2 (according to the metric credit piece reference value of 66, iterate until the transmission path of ASBR2 becomes TE path-12), the metric is 70 (accumulated delay of 10 ms of TE path-12 is accumulated), and the metric-credit information remains unchanged from the information in the received route advertisement.

[0116] ASBR1 also continues to advertise the BGP-intent route to Ingress PE1, the metric-type is Unidirectional Link Delay, the metric is 70, the BGP next-hop is modified to ASBR1, and the metric credit information remains unchanged from the metric credit information in the previously received route advertisement.

[0117] Similarly, ASBR1 sends BGP-intent routes<prefix=loopback-PE3、color=1000> Upon receiving the TE path-22, it may locally generate a corresponding routing table entry, whose main attributes include: metric-type is Unidirectional Link Delay, BGP Next-hop is ASBR3 (according to the metric credit piece reference value of 100, iterate until the transmission path of ASBR3 becomes TE path-22), metric is 110 (accumulated delay of 10 ms of TE path-22 is accumulated), and metric-credit information remains unchanged from the information in the received route advertisement.

[0118] ASBR1 also continues to advertise the BGP-intent route to Ingress PE1, the metric-type is Unidirectional Link Delay, the metric is 110, the BGP next-hop is modified to ASBR1, and the metric credit information remains unchanged from the metric credit information in the previously received route advertisement.

[0119] In step 6), when Ingress PE1 receives the BGP-intent route, it establishes a lower-layer transmission path to the BGP next-hop that satisfies the intent. That is, Ingress PE1 transmits the BGP-intent route<prefix=loopback-PE2、color=1000> Upon receiving the TE path-11, it locally creates a corresponding routing table entry, whose main attributes include that the metric-type is Unidirectional Link Delay, the BGP next-hop is ASBR1 (according to the metric credit piece reference value of 66, iterate until the transmission path of ASBR2 becomes TE path-11), the metric is 130 (accumulated delay of 60 ms of TE path-11 is accumulated), and the metric-credit information remains unchanged from the information in the received route advertisement.

[0120] Similarly, Ingress PE1 sends BGP-intent routes<prefix=loopback-PE3、color=1000> Upon receiving the TE path-22, it may locally generate a corresponding routing table entry, whose main attributes include: metric-type is Unidirectional Link Delay, BGP Next-hop is ASBR1 (according to the metric credit piece reference value of 100, iterate until the transmission path of ASBR1 becomes TE path-21), metric is 210 (accumulated delay of 100 ms of TE path-22 is accumulated), and metric-credit information remains unchanged from the information in the received route advertisement.

[0121] By using the technical means in the above embodiments, the establishment of intentional route transmission paths can be rationally controlled, and differentiated transmission resources can be provided, so as to avoid all services competing for superior resources.

[0122] In addition, the technical solutions in the above embodiments can be applied to IPRAN / SPN, metropolitan area network / backbone, but are not limited thereto.

[0123] 7 is a block diagram of a receiving device for a BGP-intent route according to an embodiment of the present disclosure. As shown in FIG. 7, the receiving device for a BGP-intent route has The present invention includes a receiving module 702 configured to receive a BGP-intent route advertised from a BGP speaker, the BGP-intent route including at least one of a metric type, a metric, and metric credit information.

[0124] According to the above solution, a BGP-intent route advertised from a BGP speaker is received, and the BGP-intent route includes at least one of metric type, metric, and metric credit information, thereby solving the problem in related technologies of low efficiency in establishing a transmission path for a BGP-intent route due to the contents contained in the BGP-intent route, and by including metric type, metric, and metric credit information in the BGP-intent route, the efficiency of establishing a transmission path is further improved.

[0125] Further, the metric types include an IGP metric, a link delay metric, a link-node delay metric, a TE default metric, and a bandwidth metric, the metric credit information includes a total metric credit, an estimated BGP hop count, and a metric credit piece, and the metric credit information includes only one piece of information regardless of a specific source, or includes multiple pieces of information that correspond one-to-one to multiple specific sources.

[0126] It should be noted that the link delay metric may include, but is not limited to, the delay of the link.

[0127] It should be noted that the above link-node delay metric may include both link delay and intra-node delay at the same time, but is not limited to this.

[0128] Further, the receiving device of the BGP-intent route further includes an acquisition module configured to acquire an intent identifier from the BGP-intent route, locally search an intent template based on the intent identifier to acquire intent information, and establish a transmission path for the BGP-intent route or select an existing transmission path based on the intent information.

[0129] Furthermore, the acquisition module is further configured to determine a metric credit piece reference value of a transmission path between the current BGP speaker and a downstream neighbor BGP speaker of the current BGP speaker based on the metric, the total metric credit, the estimated BGP hop count and the metric credit piece included in the BGP-intent route, and establish a transmission path or select an existing transmission path by limiting the total metric of the metric type of the established transmission path or the selected existing transmission path to less than or equal to the metric credit piece reference value.

[0130] Furthermore, the receiver of the BGP-intent route further includes a first metric acquisition module configured to, when the metric credit information included in the BGP-intent route includes only a total metric credit related to a source and does not include an explicit metric credit piece, for a metric credit attribute corresponding to each source, divide the total metric credit by an estimated BGP hop count to obtain an average metric credit between two adjacent BGP speakers in an end-to-end path, and subtract the metric included in the BGP-intent route from the total metric credit to obtain a remaining metric.

[0131] Furthermore, the first metric acquisition module is further configured to calculate an average metric credit and a remaining metric for all sources, and a metric credit piece reference value for a transmission path from the BGP speaker to a downstream neighbor BGP speaker includes the smallest positive value among the average metric credit and the remaining metric calculated for all sources.

[0132] Furthermore, the receiving device of the BGP-intent route further includes a second metric acquisition module configured to, when the BGP-intent route further includes an explicit metric credit piece, obtain a metric credit piece corresponding to the BGP speaker from the BGP-intent route based on a position number in the end-to-end path of the BGP speaker, for metric credit information corresponding to each source, if the BGP-intent route further includes an explicit metric credit piece, and subtract the metric included in the BGP-intent route from the total metric credit to obtain a remaining metric.

[0133] Furthermore, the second metric acquisition module is further configured to calculate a metric credit piece and a remaining metric for all the sources, and a metric credit piece reference value of a transmission path from the BGP speaker to a downstream neighbor BGP speaker includes the smallest positive value of the metric credit piece and the remaining metric calculated for all the sources.

[0134] In addition, the acquisition module is further configured to, when the BGP speaker finds that there is no transmission route to the downstream BGP speaker that satisfies the metric credit piece criterion value, select from all candidate transmission routes a route whose total metric of the metric type is closest to the metric credit piece criterion value.

[0135] Furthermore, in one embodiment, the transmission path from the BGP speaker to the downstream BGP speaker includes at least one of a shortest forwarding path and a traffic engineering path, and the transmission path includes multiple sub-paths, which are used to distribute load or form fast re-route (FRR) protection, or form a path for multi-stream copying and deletion, and when the multiple sub-paths form a path for multi-stream copying and deletion, the metric difference between the multiple sub-paths should meet a set limit value.

[0136] 8 is a block diagram of a BGP-intent route advertising device according to an embodiment of the present disclosure. As shown in FIG. 8, the BGP-intent route advertising device The method includes: advertising module 802 configured to advertise a BGP-intent route to a neighbor BGP speaker, the BGP-intent route including at least one of a metric type, a metric, and metric credit information.

[0137] According to the above solution, a BGP-intent route is advertised to a neighbor BGP speaker, and the BGP-intent route includes at least one of a metric type, a metric, and metric credit information, thereby solving the problem in related technologies that the efficiency of establishing a transmission path for a BGP-intent route is low due to the contents contained in the BGP-intent route, and by including the metric type, metric, and metric credit information in the BGP-intent route, the efficiency of establishing a transmission path is further improved.

[0138] Further, in one embodiment, the metric types include an IGP metric, a link delay metric, a link-node delay metric, a TE default metric, and a bandwidth metric, the metric credit information includes a total metric credit, an estimated BGP hop count, and a metric credit piece, and the metric credit information includes only one piece of information regardless of a specific source, or includes multiple pieces of information that correspond one-to-one to multiple specific sources.

[0139] In addition, the metric corresponding to the metric type is the sum of the metric contained in the BGP-intent route advertisement received from the downstream neighbor BGP speaker and the total metric corresponding to the metric type of the transmission path from this BGP speaker to the downstream neighbor BGP speaker, or if this BGP speaker is the original advertising node, the metric corresponding to the metric type is a certain configured initial value.

[0140] The initial value may be 0, but is not limited to this. In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB disk, a Read-Only Memory (abbreviated as ROM), a Random Access Memory (abbreviated as RAM), a mobile hard disk, a magnetic disk, or an optical disk.

[0141] For specific examples of this embodiment, reference can be made to the examples described in the above embodiments and exemplary embodiments, so the description of this embodiment will be omitted here.

[0142] In an embodiment of the present disclosure, there is further provided an electronic device including a memory having a computer program stored therein, and a processor configured to execute the computer program to perform the steps of any of the method embodiments described above.

[0143] Optionally, in this embodiment, the processor is configured to: The method may be configured to perform step S1 of receiving a BGP-intent route advertised from a BGP speaker, the BGP-intent route including at least one of a metric type, a metric, and metric credit information.

[0144] Alternatively, in another embodiment, the processor is configured to: The method may be configured to perform a step S1 of advertising a BGP-intent route to a neighbor BGP speaker, the BGP-intent route including at least one of a metric type, a metric, and metric credit information.

[0145] In an exemplary embodiment, the electronic device may further include a transmission device coupled to the processor and an input / output device coupled to the processor.

[0146] For specific examples of this embodiment, reference can be made to the examples described in the above embodiments and exemplary embodiments, so the description of this embodiment will be omitted here.

[0147] Obviously, those skilled in the art should understand that each module or each step in the above-described disclosure may be implemented in a general-purpose computing device, may be centralized in a single computing device, or may be distributed across a network of multiple computing devices, may be implemented in program code executable by a computing device, may be stored in a storage device and executed by a computing device, and may in some cases execute steps illustrated or described in a different order than in the present specification, or may be implemented by making each of them into an integrated circuit module, or by making multiple modules or steps of them into a single integrated circuit. Thus, the present disclosure is not limited to any particular combination of hardware and software.

[0148] The above is merely a preferred embodiment of the present disclosure, and does not limit the present disclosure, and those skilled in the art can make various modifications and changes to the present disclosure. Any modifications, equivalent replacements, improvements, etc. made within the principle of the present disclosure should be included within the protection scope of the present disclosure.

Claims

1. A method for receiving a BGP-intent route, comprising: a step of receiving a BGP-intent route advertised from a BGP speaker, the BGP-intent route including at least one of a metric type, a metric, and metric credit information.

2. The metric types include an IGP metric, a link delay metric, a link-node delay metric, a TE default metric, and a bandwidth metric; the metric credit information includes a total metric credit, an estimated BGP hop count, and a metric credit piece; The method for receiving a BGP-intent route according to claim 1, wherein the metric credit information includes only one piece of information regardless of a specific source, or includes a plurality of pieces of information corresponding one-to-one to a plurality of specific sources.

3. After receiving the BGP-intent route advertised from the BGP speaker, obtaining an intent identifier from the BGP-intent route, and locally searching an intent template based on the intent identifier to obtain intent information; The method for receiving a BGP-intent route according to claim 1 , further comprising: establishing a transmission path or selecting an existing transmission path for the BGP-intent route based on the intent information.

4. The step of establishing a transmission path or selecting an existing transmission path for the BGP-intent route based on the intent information includes: Determining a metric credit piece reference value of a transmission path between a current BGP speaker and a downstream neighbor BGP speaker of the current BGP speaker based on a metric, a total metric credit, an estimated BGP hop count, and a metric credit piece included in the BGP-intent route; 4. The method for receiving a BGP-intent route according to claim 3, further comprising the step of: establishing a transmission path or selecting an existing transmission path by limiting a total metric of a metric type of the established transmission path or the selected existing transmission path to be equal to or less than the metric credit piece reference value.

5. If the metric credit information included in the BGP-intent route includes only a total metric credit associated with a source and does not include an explicit metric credit piece, then for each source corresponding metric credit attribute: Dividing the total metric credit by the estimated BGP hop count to obtain an average metric credit between two adjacent BGP Speakers in the end-to-end path; 2. The method of claim 1, further comprising: subtracting a metric included in the BGP-intent route from a total metric credit to obtain a remaining metric.

6. Calculating an average metric credit and remaining metrics for all sources; The method for receiving a BGP-intent route according to claim 5, wherein the metric credit piece reference value of the transmission path from the BGP speaker to the downstream neighbor BGP speaker includes the smallest positive value of the average metric credit calculated for all sources and the remaining metric.

7. If the BGP-intent route further includes an explicit metric credit piece, the metric credit information corresponding to each Source is Obtaining a metric credit piece corresponding to the BGP Speaker from the BGP-intent route based on a position number of the BGP Speaker in an end-to-end path; and subtracting a metric included in the BGP-intent route from a total metric credit to obtain a remaining metric.

8. Calculating metric credit pieces and remaining metrics for all sources; The method for receiving a BGP-intent route according to claim 7, wherein the metric credit piece reference value of the transmission path from the BGP speaker to the downstream neighbor BGP speaker includes the minimum positive value of the metric credit pieces calculated for all sources and the remaining metrics.

9. The method for receiving a BGP-intent route according to claim 4, further comprising the step of selecting, from all candidate transmission routes, a route whose total metric of the metric type is closest to the metric credit piece reference value, when the BGP Speaker finds that there is no transmission route to the downstream BGP Speaker that satisfies the metric credit piece reference value.

10. The transmission path from the BGP Speaker to the downstream BGP Speaker includes at least one of a shortest forwarding path and a traffic engineering path; The method for receiving a BGP-intent route according to any one of claims 5 to 9, wherein the transmission path includes a plurality of sub-paths, the plurality of sub-paths being used to distribute load, or to form fast re-route (FRR) protection, or to form a path for multi-stream copying and deletion, and when the plurality of sub-paths are used to form a path for multi-stream copying and deletion, a metric difference between the plurality of sub-paths should satisfy a set limit value.

11. A method for advertising a BGP-intent route, comprising: advertising a BGP-intent route to a neighbor BGP Speaker, the BGP-intent route including at least one of a metric type, a metric, and metric credit information.

12. The metric types include an IGP metric, a link delay metric, a link-node delay metric, a TE default metric, and a bandwidth metric; the metric credit information includes a total metric credit, an estimated BGP hop count, and a metric credit piece; The BGP-intent route advertising method according to claim 11, wherein the metric credit information includes only one piece of information regardless of a specific source, or includes a plurality of pieces of information corresponding one-to-one to a plurality of specific sources.

13. The metric corresponding to the metric type is the sum of a metric included in a BGP-intent route advertisement received from a downstream neighbor BGP speaker and a total metric corresponding to the metric type of a transmission route from the BGP speaker to the downstream neighbor BGP speaker; Alternatively, in the case where the BGP speaker is an original advertising node, the metric corresponding to the metric type is a certain configured initial value.

14. A BGP-intent route receiving device including a receiving module configured to receive a BGP-intent route advertised from a BGP speaker, the BGP-intent route including at least one of a metric type, a metric, and metric credit information.

15. An apparatus for advertising a BGP-intent route, comprising: an advertising module configured to advertise a BGP-intent route to a neighbor BGP Speaker, the BGP-intent route including at least one of a metric type, a metric, and metric credit information.

16. A computer readable storage medium having a computer program stored thereon, the computer program being configured, when executed, to perform the method according to any one of claims 1 to 10 or the method according to any one of claims 11 to 13.

17. An electronic device comprising a memory in which a computer program is stored and a processor configured to execute the method according to any one of claims 1 to 10 or the method according to any one of claims 11 to 13 by means of said computer program.

Citation Information

Patent Citations

  • Method and apparatus for transporting data across at least two domains

    JP2015507404A