WO2016004647A1 - Dynamic path adjustment method and apparatus for link congestion - Google Patents

Dynamic path adjustment method and apparatus for link congestion Download PDF

Info

Publication number
WO2016004647A1
WO2016004647A1 PCT/CN2014/082623 CN2014082623W WO2016004647A1 WO 2016004647 A1 WO2016004647 A1 WO 2016004647A1 CN 2014082623 W CN2014082623 W CN 2014082623W WO 2016004647 A1 WO2016004647 A1 WO 2016004647A1
Authority
WO
WIPO (PCT)
Prior art keywords
lsp
bandwidth
bandwidth requirement
data packet
sent
Prior art date
Application number
PCT/CN2014/082623
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 WO2016004647A1 publication Critical patent/WO2016004647A1/en

Links

Definitions

  • the present invention relates to the field of industrial Ethernet technologies, and in particular, to a dynamic path adjustment method and apparatus when a link is congested.
  • MPLS Protocol Label Switching
  • Traffic Engineering TE
  • LSP Label Switched Path
  • FIG. 1 is a schematic diagram of multiple LSP concurrent dynamic path calculations in the prior art.
  • PE-1 and PE-2 are referred to as label edge routers (LERs), and P-1, P-2, and P-3 are called For the Label Switch Router (LSR).
  • LSR Label Switch Router
  • the LSP tunnels are R2-R3-R5-R6 and R2-R3-R4-R5-R6, respectively.
  • the requested bandwidth is 30M, 25M, 40M, respectively. 35M will make the sum of bandwidth requirements of R2 to R3 exceed 100M.
  • the maximum bandwidth between the network nodes in Figure 1 above is 100M, and the bandwidth allocation between nodes is as shown in Figure 2.
  • the bandwidth between R1 and R3, between R2 and R3, and between R6 and R7 is 100M, between R3 and R4, R4 and R6.
  • the bandwidth between R3 and R6 is 50M, and the bandwidth between R3 and R5 and R5 and R6 is 70M.
  • the present invention has been made in order to provide a dynamic path adjustment method and apparatus for link congestion when overcoming the above problems or at least partially solving the above problems.
  • the embodiment of the invention provides a dynamic path adjustment method when a link is congested, and the method includes:
  • the label edge router determines, according to the bandwidth requirement of the pre-requested link of the data packet to be sent, that the CSPF algorithm cannot allocate the LSP label switching path for the bandwidth requirement;
  • the label edge router determines to send to the bandwidth request and the destination address of the data to be sent. Each LSP of the destination address;
  • the transmission of the important data packet is ensured, and the sending of the to-be-sent data message by using each LSP includes:
  • the data packet corresponding to the bandwidth divided by the bandwidth requirement is transmitted by using each LSP.
  • the transmission of the important data packet is ensured, and the sending of the to-be-sent data message by using each LSP includes:
  • the bandwidth requirements of the remaining data packets are divided according to the determined reserved bandwidth of each of the other LSPs, and the corresponding data packets are transmitted by using each of the other LSPs.
  • the sending the data to be sent by using each of the LSPs includes: dividing the bandwidth requirement into equal parts, and first dividing the bandwidth requirement by two;
  • the bandwidth requirement is equally divided into 4;
  • the LSP is used to transmit a data packet corresponding to each bandwidth requirement after 4 equal divisions;
  • the bandwidth requirement is equally divided into eight, wherein the bandwidth requirement is performed according to the value of the differential service code point in the to-be-sent data message. Equally divided.
  • the method further includes: adding a label to the data packet transmitted by each LSP, the label is used to indicate another label.
  • the edge router assembles the data packet transmitted by each LSP.
  • the embodiment of the invention provides a dynamic path adjustment device when the link is congested, and the device includes:
  • a determining module configured to determine, according to the bandwidth requirement of the pre-requested link of the data packet to be sent, that the CSPF algorithm cannot allocate an LSP label switching path for the bandwidth requirement; according to the bandwidth requirement and the to-be-sent datagram The destination address of the text, determining each LSP sent to the destination address;
  • a determining module configured to determine whether the sum of the reserved bandwidth of each LSP meets the bandwidth requirement of the pre-applied link; and the sending module is configured to: when the determining module determines the sum of the reserved bandwidth of each LSP, the pre-application is satisfied When the bandwidth of the link is required, the data packet to be sent is sent by using each LSP; a path adjustment module, configured to: when the determining module determines that the reserved bandwidth of each LSP does not satisfy the bandwidth requirement of the pre-applied link, adding the bandwidth requirement of the pre-application link to be sent to the waiting In the queue.
  • the sending module in order to reasonably use the bandwidth of each LSP to ensure the transmission of important data packets, is specifically configured to allocate weights for each LSP according to the reserved bandwidth of each LSP. Dividing the bandwidth requirement of the pre-requested link according to the weight of the allocation; and transmitting, by each LSP, a data packet corresponding to the bandwidth after the bandwidth requirement is divided.
  • the sending module in order to properly use the bandwidth of each LSP to ensure the transmission of important data packets, is specifically configured to determine an LSP that includes the minimum number of hops in each LSP, and uses the included The minimum bandwidth of the LSP is used to transmit the data packet; and the bandwidth requirement of the remaining data packets is divided according to the determined reserved bandwidth of each of the other LSPs, and corresponding to each of the other LSP transmissions is used.
  • the data is 4 essays.
  • the sending module is specifically configured to divide the bandwidth requirement into equal parts, and first divide the bandwidth requirement into two; when there is no LSP matching the bandwidth requirement of each of the two equal parts
  • the bandwidth requirement is divided into four equal parts; when present, the LSP is used to transmit data packets corresponding to each bandwidth requirement after 4 equal divisions; when there is no LSP matching the bandwidth requirement after each 4 equal divisions
  • the bandwidth requirement is equally divided into eight, wherein the bandwidth requirement is equally divided between the value of the differential service code point in the to-be-sent data message.
  • the device further includes: a label adding module, configured to add a label to the data packet transmitted by each LSP, the label is used to indicate another
  • a label edge router assembles the data packet transmitted by each LSP.
  • the embodiment of the present invention provides a method and a device for adjusting a dynamic path when a link is congested.
  • a label edge router cannot allocate an LSP for a bandwidth requirement of a pre-requested link of a data packet to be sent, according to its bandwidth Determining, by the LSP, the LSP of the destination address, determining whether the sum of the reserved bandwidth of each LSP satisfies the bandwidth requirement, and when it is satisfied, sending the to-be-sent data packet by using each LSP; otherwise, The bandwidth requirement of the pre-application link of the to-be-sent packet is added to the waiting queue.
  • each LSP reserved bandwidth is used as the bandwidth for transmitting the data packet, specifically, the datagram is performed.
  • the bandwidth requirement of the data packet can be divided according to the need, thereby effectively utilizing the bandwidth resource, improving the transmission efficiency of the data packet, and satisfying the real-time requirement of the data packet transmission.
  • FIG. 1 is a schematic diagram of multiple LSP concurrent dynamic path calculations in the prior art
  • FIG. 2 is a schematic diagram of bandwidth allocation between network nodes in FIG. 1;
  • FIG. 3 is a schematic diagram of a dynamic path adjustment process when a link is congested according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of a dynamic path adjustment process when a link is congested according to Embodiment 1 of the present invention.
  • FIG. 5 is a schematic diagram of a dynamic path adjustment process when a link is congested according to Embodiment 2 of the present invention.
  • FIG. 6 is a schematic structural diagram of a dynamic path adjustment apparatus when a link is congested according to an embodiment of the present invention. detailed description
  • the embodiments of the present invention provide a dynamic path adjustment method and apparatus when the link is congested.
  • FIG. 3 is a flowchart of a dynamic path adjustment when a link is congested according to an embodiment of the present invention, where the process includes the following steps:
  • the label edge router determines, according to the bandwidth requirement of the pre-requested link of the data packet to be sent, that the label edge router allocates the LSP label switching path to the bandwidth requirement, and the label edge router according to the bandwidth requirement
  • the destination address of the data packet is sent, and each LSP sent to the destination address is determined.
  • the CSPF algorithm allocates an LSP label switching path for the bandwidth requirement, and determines the pre-emption of each LSP.
  • the dynamic path adjustment scheme provided by the embodiment of the present invention is used when the bandwidth of the pre-applied link is required to meet the bandwidth requirement of the pre-applied link.
  • step S302 Determine whether the sum of the reserved bandwidth of each LSP meets the bandwidth requirement of the pre-applied link. When the determination result is yes, go to step S303; otherwise, go to step S304.
  • the reserved bandwidth of each LSP is the minimum value of the remaining link bandwidth of each hop in the LSP, and the sum of the reserved bandwidth of each LSP is determined, and it is determined whether the sum of the reserved bandwidths is The bandwidth requirement is greater than the bandwidth of the pre-application link, that is, the data is transmitted through the sum of the reserved bandwidth of each LSP.
  • S303 Send the to-be-sent data packet by using each of the LSPs.
  • each LSP when each LSP sends a data packet, the bandwidth requirement of the pre-applied link is divided according to the reserved bandwidth of each LSP, and is divided into multiple different sub-bandwidth requirements, and each LSP is transmitted.
  • the data packet corresponding to the sub-bandwidth requirement can be used.
  • all or part of the LSP may be used to transmit datagrams. Text.
  • the bandwidth requirement of the pre-application link is 80M, as shown in Figure 2, when the reserved bandwidth of each LSP is 50M, 50M, and 70M, the bandwidth requirement can be divided into 30M and 50M, and only two LSPs can be used for transmission.
  • the data packet, or the bandwidth requirement is divided into 20M, 40M, 20M, and each LSP is used to transmit its data.
  • the bandwidth requirement can be divided into four 20 ⁇ , corresponding to each 20 ⁇ transmission.
  • the data is 4, the corresponding LSP is implemented.
  • the number of divided sub-bandwidth requirements is not limited, as long as the sum of the divided sub-bandwidth requirements is guaranteed to be the bandwidth requirement of the pre-applied link.
  • each LSP reserved bandwidth is used as the bandwidth for transmitting the data, specifically for performing data.
  • the bandwidth requirement of the data packet can be divided according to the need, thereby effectively utilizing the bandwidth resource, improving the transmission efficiency of the data packet, and satisfying the real-time requirement of the data packet transmission.
  • the CSPF algorithm is used to determine whether there is an LSP matching the sub-bandwidth requirement for each sub-bandwidth requirement.
  • the current bandwidth requirement is 100M
  • the bandwidth requirement is divided into 20 ⁇ , 30 ⁇ , and 50 ⁇ .
  • the CSPF algorithm is used to determine whether there is an LSP matching the sub-bandwidth requirement. If yes, continue to target 30 ⁇ .
  • the sub-bandwidth requirement use the CSPF algorithm to determine whether there is an LSP that matches the sub-bandwidth requirement. If it does not exist, you need to add the bandwidth requirement of the pre-applied link to the waiting queue.
  • the CSPF algorithm is used to determine whether there is an LSP matching the sub-bandwidth requirement, and if so, the data packet corresponding to each sub-bandwidth requirement is transmitted by using each determined LSP, and if not, the pre- The bandwidth requirement of the application link is added to the waiting queue.
  • PE-1 receives the bandwidth requirement of the pre-requested link of the data packet to be sent.
  • the bandwidth requirement is 80M, and the data packet needs to be sent to PE-2 (R7).
  • the PE1 determines each LSP to the destination address according to the destination address of the data packet, where the determined LSP includes: LSP1 (R2-R3-R6-R7), LSP2 (R2-R3-R4-R6) -R7) and LSP3 (R2-R3-R5-R6-R7), the reserved bandwidth of each LSP is 50M, 50M, and 70M, respectively, as the reserved bandwidth of each LSP cannot satisfy the data.
  • the bandwidth requirement of the message so the data cannot be transmitted using the solution in the prior art.
  • the bandwidth requirement may be divided into sub-bandwidth requirements of 50 ⁇ and 30 , that is, only two of LSP1, LSP2, and LSP3 need to be used to transmit data packets corresponding to the sub-bandwidth requirement.
  • FIG. 4 is a schematic diagram of a dynamic path adjustment process when a link is congested according to Embodiment 1 of the present invention, where the process includes the following steps:
  • the label edge router determines, according to the bandwidth requirement of the pre-requested link of the data packet to be sent, that the label edge router allocates the LSP label switching path to the bandwidth requirement, and the label edge router according to the bandwidth requirement
  • the destination address of the data packet is sent, and each LSP sent to the destination address is determined.
  • S402 Determine whether the sum of the reserved bandwidth of each LSP satisfies the bandwidth requirement of the pre-applied link. When the determination result is yes, go to step S403; otherwise, go to step S405.
  • S403 Determine an LSP that includes a minimum number of hops in each LSP, and transmit the data packet by using a reserved bandwidth of the LSP that includes the minimum hop count.
  • S404 The bandwidth requirement of the remaining data packets is divided according to the determined reserved bandwidth of each of the other LSPs, and the corresponding data packet is transmitted by using each of the other LSPs.
  • S405 Add the bandwidth requirement of the pre-application link to be sent to the waiting queue.
  • the effective use of the network resources may be based on the determined pre-determination of each LSP.
  • the sum of the bandwidth requirements is transmitted, and the data message is transmitted.
  • the bandwidth requirement of the data packet is first divided according to the reserved bandwidth of the LSP containing the minimum number of hops, and a sub-bandwidth requirement and the minimum hopping are included after the partitioning.
  • the reserved bandwidth of the LSP is the same, and the data packet corresponding to the sub-bandwidth requirement is transmitted by using the reserved bandwidth of the LSP with the minimum number of hops, and the remaining data is saved according to the reserved bandwidth of each of the other LSPs.
  • the bandwidth requirements of the packets are divided, and the corresponding data packets are transmitted by each of the other LSPs.
  • PE-1 receives the bandwidth requirement of the pre-requested link of the data packet to be sent.
  • the bandwidth requirement is 80 ⁇ , and the data packet needs to be sent to ⁇ -2 (R7).
  • the PE1 determines each LSP to the destination address according to the destination address of the data packet, where the determined LSP includes: LSP1 (R2-R3-R6-R7), LSP2 (R2-R3-R4-R6) -R7) and LSP3 (R2-R3-R5-R6-R7), the reserved bandwidth of each LSP is 50 ⁇ , 50 ⁇ and 70 ⁇ respectively as shown in Figure 2.
  • the LSP with the minimum number of hops is LSP1, and the reserved bandwidth of the LSP1 is 50 ⁇ . Therefore, according to the bandwidth requirement of the data packet, the bandwidth requirement is divided into a 50-inch sub-bandwidth requirement, and the 50-sub-band bandwidth is transmitted by using LSP1. For the data packet corresponding to the demand, the bandwidth requirement of the remaining data packets is 30 ⁇ . According to the reserved bandwidth of LSP2 and LPS3, only one of the LSPs may be used to transmit the remaining data packets, or the remaining data may be used. The bandwidth requirement of the packet is divided into two sub-bandwidth requirements of 10M and 20 ⁇ , and the number corresponding to the two sub-bandwidth requirements is transmitted by using LSP2 and LPS3 respectively. According to the message.
  • each LSP is assigned a weight according to the number of hops included in each LSP and the reserved bandwidth of each LSP;
  • the data packet corresponding to the bandwidth divided by the bandwidth requirement is transmitted by using each LSP.
  • FIG. 5 is a flowchart of a dynamic path adjustment when a link is congested according to Embodiment 2 of the present invention, where the process includes the following steps:
  • the label edge router determines, according to the bandwidth requirement of the pre-requested link of the data packet to be sent, that the label edge router allocates the LSP label switching path for the bandwidth requirement, and the label edge router according to the bandwidth requirement
  • the destination address of the data packet is sent, and each LSP sent to the destination address is determined.
  • S502 Determine whether the sum of the reserved bandwidth of each LSP satisfies the bandwidth requirement of the pre-applied link. When the determination result is yes, proceed to step S503, otherwise, go to step S505.
  • S503 Assign a weight to each LSP according to the reserved bandwidth of each LSP.
  • S504 The bandwidth requirement of the pre-applied link is divided according to the weight of the allocated, and the data corresponding to the bandwidth that is divided by the bandwidth requirement is transmitted by each LSP.
  • the network resources can be effectively utilized, and each of the determined The sum of the reserved bandwidth requirements of the LSP, and the data packet is transmitted.
  • each LSP is assigned a weight according to the number of hops included in each LSP and the reserved bandwidth of each LSP. Specifically, when a weight is allocated to each LSP according to the hop count of the LSP and the reserved bandwidth of each LSP, when the LSP includes a small number of hops, the LSP is assigned a larger weight, when the LSP is When the reserved bandwidth is large, the LSP is assigned a larger weight. According to the allocated weight and the bandwidth requirement of the pre-application link, the bandwidth of the data transmitted by each LSP is determined, and the data packet corresponding to the bandwidth is transmitted by using the determined bandwidth.
  • LSP1 contains the fewest hops.
  • LSP2 and LSP3 contain the same number of hops.
  • the reserved bandwidth of LSP1 is 50 ⁇
  • the reserved bandwidth of LSP2 is 50 ⁇
  • the reserved bandwidth of LSP3 is 70 ⁇ . Therefore, it is allocated for LSP1.
  • the weight can be 4, the weight assigned to LSP3 can also be 3, and the weight assigned to LSP2 can also be 2.
  • the bandwidth requirement is divided into multiple sub-bandwidth requirements, which are 40 ⁇ , 30 ⁇ , and 20 ⁇ , respectively, and each LSP is used to transmit a datagram corresponding to each sub-bandwidth requirement. Text.
  • the bandwidth requirement of the pre-application link is allocated according to the DSCP value, and the DSCP value is A total of 64 values are calculated according to the channel strip divisible by 64, so 2, 4, and 8 can be used to equally divide the bandwidth requirement.
  • the dividing the bandwidth requirement into multiple sub-bandwidth requirements in the embodiment of the present invention includes:
  • the bandwidth requirement is equally divided into 4;
  • the LSP is used to transmit a data packet corresponding to each bandwidth requirement after 4 equal divisions;
  • the bandwidth requirement is equally divided into eight, wherein the bandwidth requirement is performed according to the value of the differential service code point in the to-be-sent data message. Equally divided.
  • the label edge router determines, according to the bandwidth requirement of the pre-requested link of the data packet to be sent, that the CSPF algorithm cannot allocate an LSP label switching path for the bandwidth requirement, and the bandwidth requirement is equally divided into two according to the CSPF algorithm. The available bandwidth of each LSP. If an LSP that satisfies the bandwidth requirement after the equalization can be found, the CSPF algorithm is used to determine the LSP.
  • the label edge router maps the bandwidth requirement through the access control list (ACL) access control list rule according to the value of the differential service code point DSCP in the data packet corresponding to the bandwidth requirement, and determines the next value corresponding to the DSCP value. jump.
  • ACL access control list
  • DSCP uses 6bit, and the DSCP value ranges from 0 to 63.
  • the terminal such as the phone, Windows client, and server, can identify the traffic.
  • ACL is a list of commands for routers and switch interfaces. It is used to control the incoming and outgoing packets of the port.
  • the bandwidth requirement is equally divided into 4 times. Use the CSPF algorithm to find the available bandwidth and determine the LSP. If an LSP that satisfies the bandwidth requirement after the 4 equalization is found in each search, the CSPF algorithm is used to determine the LSP.
  • the bandwidth requirement is divided into 4, and the LSP that satisfies each sub-bandwidth requirement is determined by 4 times, if any one of the LSPs that meet the sub-bandwidth requirement is not determined, the bandwidth requirement is equally divided into 8 points.
  • the CSPF algorithm is used to find the available bandwidth and determine the LSP. If the LSP that satisfies the bandwidth requirement after the 8 equalization is found in each search, the CSPF algorithm is used to determine the LSP.
  • bandwidth requirement is equally divided into 8 and the LSPs satisfying each sub-bandwidth requirement are respectively determined through 8 times, if any one of the LSPs that satisfy the sub-bandwidth requirement is not determined, the pre-supplied The bandwidth requirement of the application link is added to the waiting queue.
  • a label is added to each data packet transmitted by the LSP, and the label is used for Instructing another label edge router to assemble the data message transmitted by each of the LSPs.
  • the bandwidth requirement of the pre-application link of the current data packet is 80M.
  • the CSPF algorithm cannot allocate an available path for the payment requirement.
  • the bandwidth requirements are equally divided.
  • the two sub-bandwidth requirements are 40M.
  • the CSPF algorithm is used to calculate the LSPs that meet the sub-bandwidth requirements. If both are successful, the CSPF calculates two LSPs. They are A and B respectively.
  • the label edge router LER maps the data packets with the DSCP value of 0-31 to A, and the data packets with the DSCP value of 32-63 are mapped to B by applying ACL rules.
  • the bandwidth requirement is divided into 4, and the four sub-bandwidth requirements are 20M, and the CSPF algorithm is used to calculate the LSP, and if the LSP is satisfied, If successful, CSPF calculates 4 LSPs, which are A, B, C, and D.
  • the LER maps the data packets with the DSCP value of 0-15 to the A.
  • the data packets with the DSCP value of 16-31 are applied to the B.
  • the ACL rules are applied to the data packets with the DSCP value of 32-47.
  • To C the data packet with the DSCP value of 48-63 is mapped to D by applying an ACL rule.
  • the bandwidth requirement is equally divided into eight, and the eight sub-bandwidth requirements are 10 M, and the CSPF algorithm is used to calculate the LSPs that satisfy the sub-bandwidth requirement.
  • CSPF calculates 4 LSPs, which are A, B, C, D, E, F, G, and H.
  • the LER applies the ACL rule to the data packet with the DSCP value of 0-7, and applies the ACL rule to the data packet with the DSCP value of 8-15.
  • the ACL rule mapping is applied to the data packet with the DSCP value of 16-23.
  • the ACL rule is applied to the data packet with the DSCP value of 24-31, and the ACL rule is applied to the data packet with the DSCP value of 32-39.
  • the ACL rule is applied to the data packet with the DSCP value of 40-47.
  • Mapped to F the data packets with the DSCP value of 48-55 are mapped to G by ACL rules, and the data packets with the DSCP value of 56-63 are mapped to H by applying ACL rules.
  • the bandwidth requirement of the pre-application link to be sent is added to the waiting queue.
  • MPLS includes: an information distribution component, a path computation component, a signaling component, and a traffic forwarding component.
  • the information publishing component mainly uses the extended development shortest path first (OSPE-TE) to notify and acquire the network topology state information, and forms a link state database (LSDB) and a traffic engineering database (TEDB), wherein The LSDB is used for traditional Shortest Path First (SPF) calculations, and TEDB is used for routing calculations when establishing TE tunnels.
  • OSPF-TE extends the support of the Type 10 link state advertisement based on the common OSPF, that is, the OPAQUE-LSA.
  • the LSA can represent attributes such as the maximum link bandwidth, the maximum reserved link bandwidth, and the current reserved bandwidth. , thereby forming a corresponding TEDB.
  • the Label Edge Router calculates the in-home path of each LSP using the Constraint-Based Shortest Path First (CSPF) according to the information distribution component.
  • CSPF Constraint-Based Shortest Path First
  • RSVP-TE Resource Reservation Protocol
  • the CSPF sub-task first creates a message queue for receiving the TE sub-task notification message. .
  • the destination address and sub-bandwidth requirement of the two LSPs on the ingress LER are known to be 40M.
  • the TE sub-task starts the timer and periodically notifies the CSPF subtask. According to the input parameters: destination address and sub-bandwidth requirement, an optimal path is calculated. The timer is cancelled until it succeeds. Because the number is determined twice, the TE needs to start the secondary timer and calculate two corresponding optimal paths LSPA and LSPB.
  • the CSPF calculates an optimal LSPA: R3--R6, and updates the corresponding TEDB information in the process. If the calculation fails, the TEDB information is rolled back.
  • OSPF can only modify the OPAQUE-LSA generated by itself and update and forward the OPAQUE-LSA generated by other devices. Therefore, you can modify the local TEDB of PE-1 or PE-2.
  • the CSPF calculates the LSPB
  • the reserved bandwidth of the 70M bandwidth of the R5 is 30M. Therefore, the remaining 30M interface bandwidth of the R5 cannot meet the requirements, so their optimal paths are: R3-R4 - R6.
  • update the TEDB information If the calculation fails, the TEDB information is rolled back.
  • the TE subtask passes the established path and related information returned by the CSPF subtask to the RSVP subtask, and RSVP completes the real resource reservation.
  • FIG. 6 is a schematic structural diagram of a dynamic path adjustment apparatus when a link is congested according to an embodiment of the present disclosure, where the apparatus includes:
  • the determining module 61 is configured to determine, according to the bandwidth requirement of the pre-requested link of the data packet to be sent, that the CSPF algorithm cannot allocate an LSP label switching path for the bandwidth requirement, according to the bandwidth requirement and the to-be-sent data 4, the destination address of the text, determining each LSP sent to the destination address;
  • the determining module 62 is configured to determine whether the sum of the reserved bandwidth of each LSP meets the bandwidth requirement of the pre-applied link, and the sending module 63 is configured to: when the determining module determines that the sum of the reserved bandwidth of each LSP meets the When the bandwidth requirement of the link is requested, the data packet to be sent is sent by using each LSP;
  • the path adjustment module 64 is configured to: when the determining module determines that the bandwidth of the reserved bandwidth of each LSP does not meet the bandwidth requirement of the pre-applied link, add the bandwidth requirement of the pre-application link to be sent to the Waiting in the queue.
  • the sending module 63 is specifically configured to allocate weights to each of the LSPs according to the reserved bandwidth of each LSP; and divide bandwidth requirements of the pre-applied links according to the allocated weights; The LSP transmits the data packet corresponding to the bandwidth after the bandwidth requirement is divided.
  • the sending module 63 is specifically configured to determine an LSP that includes a minimum number of hops in each LSP, and use the reserved bandwidth that includes the minimum hop LSP to transmit the data packet; and according to the determined each other Reserved bandwidth of the LSP, will remain
  • the data needs to be divided into the bandwidth requirements of the data, and the corresponding data is transmitted by each of the other LSPs.
  • the sending module 63 is specifically configured to divide the bandwidth requirement into two equal parts, and first divide the bandwidth requirement into two parts. When there is no LSP matching the bandwidth requirement of each of the two equal parts, the bandwidth requirement is equally divided into four.
  • the LSP is used to transmit data packets corresponding to each bandwidth requirement after 4 equal divisions; when there is no LSP matching the bandwidth requirement after each 4 equal divisions, the bandwidth requirement is equally divided into 8 The bandwidth requirement is equally divided according to the value of the differential service code point in the data to be transmitted.
  • the device also includes:
  • the label adding module 65 is configured to add a label to the data packet transmitted by each LSP, where the label is used to indicate that another label edge router assembles the data packet transmitted by each LSP.
  • the embodiment of the present invention provides a method and a device for adjusting a dynamic path when a link is congested.
  • a label edge router cannot allocate an LSP for a bandwidth requirement of a pre-requested link of a data packet to be sent, according to its bandwidth Determining, by the LSP, the LSP of the destination address, determining whether the sum of the reserved bandwidth of each LSP satisfies the bandwidth requirement, and when it is satisfied, sending the to-be-sent data packet by using each LSP; otherwise, The bandwidth requirement of the pre-application link of the to-be-sent packet is added to the waiting queue.
  • each LSP reserved bandwidth is used as the bandwidth for transmitting the data packet, specifically, the datagram is performed.
  • the bandwidth requirement of the data packet can be divided according to the need, thereby effectively utilizing the bandwidth resource, improving the transmission efficiency of the data packet, and satisfying the real-time requirement of the data packet transmission.
  • modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment.
  • the modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components.
  • any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed may be employed. Or combine all the processes or units of the device.
  • Each feature disclosed in the specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or a digital signal processor (DSP) can be used in practice to implement dynamic path adjustment devices, some of the terminal devices and systems when the link is congested according to an embodiment of the present invention. Or some or all of the features of all components.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein. Such a program implementing the present invention may be stored on a computer readable shield or may have the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • any reference signs placed between parentheses shall not be construed as a limitation.
  • the word “comprising” does not exclude the presence of elements or steps that are not listed in the claims.
  • the word “a” or “an” preceding a component does not exclude the presence of a plurality of such elements.
  • the invention can be implemented by means of hardware comprising thousands of different elements and by means of a suitably programmed computer. In the unit claims enumerating the thousands of devices, thousands of these devices may be embodied by the same hardware item.
  • the use of the words first, second, and third does not indicate any order. These words can be interpreted as names.

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A dynamic path adjustment method and apparatus for link congestion. In the method, when a label edge router cannot allocate an LSP for a bandwidth requirement of a pre-application link of a data packet to be sent currently, the label edge router determines each LSP to a destination address according to the bandwidth requirement and the destination address; determine whether the sum of reserved bandwidths of all LSPs meets the bandwidth requirement; if yes, use the reserved bandwidth of each LSP to send the data packet to be sent; otherwise, add the bandwidth requirement of the pre-application link of the data packet to be sent to a waiting queue. Whether the current bandwidth requirement can be met is determined according to the sum of reserved bandwidths of all determined LSPs, that is, the reserved bandwidth of each LSP is used as the bandwidth for transmitting the data packet, so that the bandwidth resource is efficiently used, the transmission efficiency of the data packet is improved, and the real-time requirement of data packet transmission is met.

Description

一种链路拥塞时的动态路径调整方法及装置 本申请要求在 2014年 7月 09日提交中国专利局、 申请号为 201410325939.5、 发明名称为一种链 路拥塞时的动态路径调整方法及装置的中国专利申请的优先权, 其全部内容通过引用结合在本申 请中。 技术领域 本发明涉及工业以太网技术领域,尤其涉及一种链路拥塞时的动态路径调整方法及装置。 背景技术 对协议标签交换 ( MPLS )流量工程( TE )结合了 MPLS技术和流量工程, 通过建立到 达指定路径的标签交换路径(LSP ) 隧道进行资源预留, 使网络流量绕开拥塞节点, 达到平 衡网络流量的目的。  Method and device for adjusting dynamic path when link is congested. The present application claims to be submitted to the Chinese Patent Office on July 09, 2014, the application number is 201410325939.5, and the invention is a dynamic path adjustment method and device when the link is congested. Priority of Chinese Patent Application, the entire contents of which is incorporated herein by reference. The present invention relates to the field of industrial Ethernet technologies, and in particular, to a dynamic path adjustment method and apparatus when a link is congested. BACKGROUND OF THE INVENTION Protocol Label Switching (MPLS) Traffic Engineering (TE) combines MPLS technology and traffic engineering to establish resource reservation by establishing a Label Switched Path (LSP) tunnel to a specified path, so that network traffic bypasses the congested node and reaches equilibrium. The purpose of network traffic.
图 1为现有技术中多条 LSP并发动态路径计算示意图, 在图 1中 PE-1和 PE-2被称为标 签边缘路由器( LER ), P-1、 P-2及 P-3被称为标签交换路由器( LSR )。  FIG. 1 is a schematic diagram of multiple LSP concurrent dynamic path calculations in the prior art. In FIG. 1, PE-1 and PE-2 are referred to as label edge routers (LERs), and P-1, P-2, and P-3 are called For the Label Switch Router (LSR).
目前, 公知的路径计算组件在动态计算路径时, 若并发存在多条 LSP隧道, 该 LSP隧道 分别为 R2-R3-R5-R6和 R2-R3- R4-R5-R6。假设存在三条预申请链路,且请求带宽分别为 30M、 25M、 40M, 35M将使 R2至 R3的带宽需求总和超过 100M。  Currently, when a well-known path computation component dynamically calculates a path, if there are multiple LSP tunnels concurrently, the LSP tunnels are R2-R3-R5-R6 and R2-R3-R4-R5-R6, respectively. Suppose there are three pre-application links, and the requested bandwidth is 30M, 25M, 40M, respectively. 35M will make the sum of bandwidth requirements of R2 to R3 exceed 100M.
上述图 1 中网络节点间的最大带宽为 100M, 节点间的带宽分配如图 2所示, R1与 R3 间、 R2和 R3及 R6和 R7间的带宽为 100M, R3和 R4、 R4和 R6间及 R3和 R6间的带宽为 50M, R3和 R5及 R5和 R6间的带宽为 70M。  The maximum bandwidth between the network nodes in Figure 1 above is 100M, and the bandwidth allocation between nodes is as shown in Figure 2. The bandwidth between R1 and R3, between R2 and R3, and between R6 and R7 is 100M, between R3 and R4, R4 and R6. The bandwidth between R3 and R6 is 50M, and the bandwidth between R3 and R5 and R5 and R6 is 70M.
当 R3接收到一条预申请链路的带宽需求为 80M时, 此时任何一条 LSP链路的带宽都无 法满足该预申请链路的带宽需求, 导致当前的网络结构无法满足该链路的需求。 发明内容 鉴于上述问题, 提出了本发明以便提供一种克服上述问题或者至少部分地解决上述问题 的一种链路拥塞时的动态路径调整方法及装置。  When the bandwidth requirement of a pre-requested link is 80 M, the bandwidth of any LSP link cannot meet the bandwidth requirement of the pre-applied link. As a result, the current network structure cannot meet the requirements of the link. SUMMARY OF THE INVENTION In view of the above problems, the present invention has been made in order to provide a dynamic path adjustment method and apparatus for link congestion when overcoming the above problems or at least partially solving the above problems.
本发明实施例提供了一种链路拥塞时的动态路径调整方法, 该方法包括:  The embodiment of the invention provides a dynamic path adjustment method when a link is congested, and the method includes:
标签边缘路由器根据待发送数据报文的预申请链路的带宽需求, 确定釆用 CSPF算法无 法为所述带宽需求分配 LSP标签交换路径时;  The label edge router determines, according to the bandwidth requirement of the pre-requested link of the data packet to be sent, that the CSPF algorithm cannot allocate the LSP label switching path for the bandwidth requirement;
所述标签边缘路由器根据所述带宽需求及所述待发送数据 4艮文的目的地址, 确定发送到 所述目的地址的每条 LSP; The label edge router determines to send to the bandwidth request and the destination address of the data to be sent. Each LSP of the destination address;
判断所述每条 LSP预留带宽的和是否满足所述预申请链路的带宽需求;  Determining whether the sum of the reserved bandwidth of each LSP satisfies the bandwidth requirement of the pre-applied link;
当所述每条 LSP预留带宽的和满足所述预申请链路的带宽需求时,釆用所述每条 LSP发 送所述待发送数据艮文;  And sending, by each of the LSPs, the data to be sent, when the sum of the reserved bandwidth of each LSP meets the bandwidth requirement of the pre-applied link;
否则, 将待发送 ·ί艮文的该预申请链路的带宽需求加入到等待队列中。  Otherwise, the bandwidth requirement of the pre-application link to be sent is added to the waiting queue.
在本发明实施例中为了合理使用每条 LSP的带宽, 保证重要数据报文的传输, 釆用所述 每条 LSP发送所述待发送数据报文包括:  In the embodiment of the present invention, in order to use the bandwidth of each LSP reasonably, the transmission of the important data packet is ensured, and the sending of the to-be-sent data message by using each LSP includes:
根据所述每条 LSP的预留带宽, 为所述每条 LSP分配权重;  Allocating weights for each LSP according to the reserved bandwidth of each LSP;
根据分配的权重, 对所述预申请链路的带宽需求进行划分;  Dividing the bandwidth requirement of the pre-applied link according to the assigned weight;
釆用每条 LSP传输所述带宽需求划分后的带宽对应的数据报文。  The data packet corresponding to the bandwidth divided by the bandwidth requirement is transmitted by using each LSP.
在本发明实施例中为了合理使用每条 LSP的带宽, 保证重要数据报文的传输, 釆用所述 每条 LSP发送所述待发送数据报文包括:  In the embodiment of the present invention, in order to use the bandwidth of each LSP reasonably, the transmission of the important data packet is ensured, and the sending of the to-be-sent data message by using each LSP includes:
确定所述每条 LSP中包含最少跳数的 LSP,釆用所述包含最少跳数 LSP的预留带宽传输 所述数据艮文; 并  Determining, by using the reserved bandwidth of the minimum hop LSP, the LSP that contains the minimum number of hops in each LSP; and
根据确定的其他每条 LSP的预留带宽, 将剩余的所述数据报文的带宽需求进行划分, 釆 用其他每条 LSP传输对应的数据报文。  The bandwidth requirements of the remaining data packets are divided according to the determined reserved bandwidth of each of the other LSPs, and the corresponding data packets are transmitted by using each of the other LSPs.
为了保证数据 ·ί艮文的实时传输, 所述釆用所述每条 LSP发送所述待发送数据 4艮文包括: 将所述带宽需求进行等分, 首先将带宽需求 2等分;  In order to ensure the real-time transmission of the data, the sending the data to be sent by using each of the LSPs includes: dividing the bandwidth requirement into equal parts, and first dividing the bandwidth requirement by two;
当不存在与每个 2等分后的带宽需求匹配的 LSP时, 将带宽需求 4等分;  When there is no LSP matching the bandwidth requirement after each halving, the bandwidth requirement is equally divided into 4;
当存在时, 釆用所述 LSP传输 4等分后每个带宽需求对应的数据报文;  When present, the LSP is used to transmit a data packet corresponding to each bandwidth requirement after 4 equal divisions;
当不存在与每个 4等分后的带宽需求匹配的 LSP时, 将带宽需求 8等分, 其中, 将所述 带宽需求根据所述待发送数据报文中的差分服务代码点的数值值进行等分。  When there is no LSP that matches the bandwidth requirement of each of the four equal parts, the bandwidth requirement is equally divided into eight, wherein the bandwidth requirement is performed according to the value of the differential service code point in the to-be-sent data message. Equally divided.
为了保证传输后的数据 ·ί艮文的整合, 保证数据 ·ί艮文的完整性, 所述方法还包括: 在每条 LSP传输的数据报文中添加标签, 该标签用于指示另一标签边缘路由器组装所述 每条 LSP传输的数据报文。  In order to ensure the integrity of the data and the integrity of the data, the method further includes: adding a label to the data packet transmitted by each LSP, the label is used to indicate another label. The edge router assembles the data packet transmitted by each LSP.
本发明实施例提供了一种链路拥塞时的动态路径调整装置, 所述装置包括:  The embodiment of the invention provides a dynamic path adjustment device when the link is congested, and the device includes:
确定模块, 用于根据待发送数据报文的预申请链路的带宽需求, 确定釆用 CSPF算法无 法为所述带宽需求分配 LSP标签交换路径时; 根据所述带宽需求及所述待发送数据报文的目 的地址, 确定发送到所述目的地址的每条 LSP;  a determining module, configured to determine, according to the bandwidth requirement of the pre-requested link of the data packet to be sent, that the CSPF algorithm cannot allocate an LSP label switching path for the bandwidth requirement; according to the bandwidth requirement and the to-be-sent datagram The destination address of the text, determining each LSP sent to the destination address;
判断模块, 用于判断所述每条 LSP预留带宽的和是否满足所述预申请链路的带宽需求; 发送模块, 用于当判断模块判断每条 LSP预留带宽的和满足所述预申请链路的带宽需求 时, 釆用所述每条 LSP发送所述待发送数据报文; 路径调整模块, 用于当判断模块判断每条 LSP预留带宽的和不满足所述预申请链路的带 宽需求时, 将待发送 ·ί艮文的该预申请链路的带宽需求加入到等待队列中。 a determining module, configured to determine whether the sum of the reserved bandwidth of each LSP meets the bandwidth requirement of the pre-applied link; and the sending module is configured to: when the determining module determines the sum of the reserved bandwidth of each LSP, the pre-application is satisfied When the bandwidth of the link is required, the data packet to be sent is sent by using each LSP; a path adjustment module, configured to: when the determining module determines that the reserved bandwidth of each LSP does not satisfy the bandwidth requirement of the pre-applied link, adding the bandwidth requirement of the pre-application link to be sent to the waiting In the queue.
在本发明实施例中为了合理使用每条 LSP的带宽, 保证重要数据报文的传输, 所述发送 模块,具体用于根据所述每条 LSP的预留带宽,为所述每条 LSP分配权重;根据分配的权重, 对所述预申请链路的带宽需求进行划分; 釆用每条 LSP传输所述带宽需求划分后的带宽对应 的数据报文。  In the embodiment of the present invention, in order to reasonably use the bandwidth of each LSP to ensure the transmission of important data packets, the sending module is specifically configured to allocate weights for each LSP according to the reserved bandwidth of each LSP. Dividing the bandwidth requirement of the pre-requested link according to the weight of the allocation; and transmitting, by each LSP, a data packet corresponding to the bandwidth after the bandwidth requirement is divided.
在本发明实施例中为了合理使用每条 LSP的带宽, 保证重要数据报文的传输, 所述发送 模块, 具体用于确定所述每条 LSP中包含最少跳数的 LSP, 釆用所述包含最少跳数 LSP的预 留带宽传输所述数据报文; 并根据确定的其他每条 LSP的预留带宽, 将剩余的所述数据报文 的带宽需求进行划分, 釆用其他每条 LSP传输对应的数据 4艮文。  In the embodiment of the present invention, in order to properly use the bandwidth of each LSP to ensure the transmission of important data packets, the sending module is specifically configured to determine an LSP that includes the minimum number of hops in each LSP, and uses the included The minimum bandwidth of the LSP is used to transmit the data packet; and the bandwidth requirement of the remaining data packets is divided according to the determined reserved bandwidth of each of the other LSPs, and corresponding to each of the other LSP transmissions is used. The data is 4 essays.
为了保证数据报文的实时传输, 所述发送模块, 具体用于将所述带宽需求进行等分, 首 先将带宽需求 2等分; 当不存在与每个 2等分后的带宽需求匹配的 LSP时, 将带宽需求 4等 分; 当存在时, 釆用所述 LSP传输 4等分后每个带宽需求对应的数据报文; 当不存在与每个 4等分后的带宽需求匹配的 LSP时, 将带宽需求 8等分, 其中, 将所述带宽需求才 居所述待 发送数据报文中的差分服务代码点的数值值进行等分。  In order to ensure real-time transmission of the data packet, the sending module is specifically configured to divide the bandwidth requirement into equal parts, and first divide the bandwidth requirement into two; when there is no LSP matching the bandwidth requirement of each of the two equal parts The bandwidth requirement is divided into four equal parts; when present, the LSP is used to transmit data packets corresponding to each bandwidth requirement after 4 equal divisions; when there is no LSP matching the bandwidth requirement after each 4 equal divisions The bandwidth requirement is equally divided into eight, wherein the bandwidth requirement is equally divided between the value of the differential service code point in the to-be-sent data message.
为了保证传输后的数据报文的整合, 保证数据报文的完整性, 所述装置还包括: 标签添加模块, 用于在每条 LSP传输的数据报文中添加标签, 该标签用于指示另一标签 边缘路由器组装所述每条 LSP传输的数据报文。  In order to ensure the integrity of the data packet after the transmission, the device further includes: a label adding module, configured to add a label to the data packet transmitted by each LSP, the label is used to indicate another A label edge router assembles the data packet transmitted by each LSP.
本发明实施例提供了一种链路拥塞时的动态路径调整方法及装置, 该方法中标签边缘路 由器在无法为当前待发送数据报文的预申请链路的带宽需求分配 LSP时, 根据其带宽需求及 目的地址确定到该目的地址的每条 LSP, 判断每条 LSP预留带宽的和是否满足该带宽需求, 当其满足时, 釆用每条 LSP发送所述待发送数据报文, 否则, 将待发送报文的该预申请链路 的带宽需求加入到等待队列中。 由于在本发明实施例中根据确定的每条 LSP的预留带宽的和 来判断是否能够满足当前的带宽需求, 即将每条 LSP预留带宽作为传输该数据报文的带宽, 具体在进行数据报文传输时, 根据需要将该数据报文的带宽需求进行划分即可, 从而有效的 利用了带宽资源, 提高了数据报文的传输效率, 满足了数据报文传输的实时性需求。  The embodiment of the present invention provides a method and a device for adjusting a dynamic path when a link is congested. In this method, when a label edge router cannot allocate an LSP for a bandwidth requirement of a pre-requested link of a data packet to be sent, according to its bandwidth Determining, by the LSP, the LSP of the destination address, determining whether the sum of the reserved bandwidth of each LSP satisfies the bandwidth requirement, and when it is satisfied, sending the to-be-sent data packet by using each LSP; otherwise, The bandwidth requirement of the pre-application link of the to-be-sent packet is added to the waiting queue. In the embodiment of the present invention, according to the determined sum of the reserved bandwidths of each LSP, it is determined whether the current bandwidth requirement can be met, that is, each LSP reserved bandwidth is used as the bandwidth for transmitting the data packet, specifically, the datagram is performed. When the text is transmitted, the bandwidth requirement of the data packet can be divided according to the need, thereby effectively utilizing the bandwidth resource, improving the transmission efficiency of the data packet, and satisfying the real-time requirement of the data packet transmission.
上述说明仅是本发明技术方案的概述, 为了能够更清楚了解本发明的技术手段, 而可依 照说明书的内容予以实施, 并且为了让本发明的上述和其它目的、 特征和优点能够更明显易 懂, 以下特举本发明的具体实施方式。 附图说明 图 1为现有技术中多条 LSP并发动态路径计算示意图; 图 2为图 1中网络节点间的带宽分配示意图; The above description is only an overview of the technical solutions of the present invention, and the technical means of the present invention can be more clearly understood, and can be implemented in accordance with the contents of the specification, and the above and other objects, features and advantages of the present invention can be more clearly understood. Specific embodiments of the invention are set forth below. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic diagram of multiple LSP concurrent dynamic path calculations in the prior art; FIG. 2 is a schematic diagram of bandwidth allocation between network nodes in FIG. 1;
图 3为本发明实施例提供的一种链路拥塞时的动态路径调整过程;  FIG. 3 is a schematic diagram of a dynamic path adjustment process when a link is congested according to an embodiment of the present invention;
图 4为本发明实施例一提供的一种链路拥塞时的动态路径调整过程;  FIG. 4 is a schematic diagram of a dynamic path adjustment process when a link is congested according to Embodiment 1 of the present invention;
图 5为本发明实施例二提供的一种链路拥塞时的动态路径调整过程;  FIG. 5 is a schematic diagram of a dynamic path adjustment process when a link is congested according to Embodiment 2 of the present invention;
图 6为本发明实施例提供的一种链路拥塞时的动态路径调整装置结构示意图。 具体实施方式  FIG. 6 is a schematic structural diagram of a dynamic path adjustment apparatus when a link is congested according to an embodiment of the present invention. detailed description
为了有效的传输数据报文, 满足数据报文的实时性需求, 本发明实施例提供了一种链路 拥塞时的动态路径调整方法及装置。  In order to effectively transmit data packets and meet the real-time requirements of the data packets, the embodiments of the present invention provide a dynamic path adjustment method and apparatus when the link is congested.
下面将参照附图更详细地描述本公开的示例性实施例。 虽然附图中显示了本公开的示例 性实施例, 然而应当理解, 可以以各种形式实现本公开而不应被这里阐述的实施例所限制。 相反, 提供这些实施例是为了能够更透彻地理解本公开, 并且能够将本公开的范围完整的传 达给本领域的技术人员。  Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While the embodiments of the present invention have been shown in the drawings, it is understood that Rather, these embodiments are provided so that this disclosure will be more fully understood, and the scope of the disclosure can be fully disclosed to those skilled in the art.
下面结合说明附图, 对本发明实施例进行说明。  The embodiments of the present invention will be described below with reference to the accompanying drawings.
图 3为本发明实施例提供的一种链路拥塞时的动态路径调整过程,该过程包括以下步骤: FIG. 3 is a flowchart of a dynamic path adjustment when a link is congested according to an embodiment of the present invention, where the process includes the following steps:
S301 : 标签边缘路由器根据待发送数据报文的预申请链路的带宽需求, 确定釆用 CSPF 算法无法为所述带宽需求分配 LSP标签交换路径时, 标签边缘路由器根据所述带宽需求及所 述待发送数据报文的目的地址, 确定发送到所述目的地址的每条 LSP。 S301: The label edge router determines, according to the bandwidth requirement of the pre-requested link of the data packet to be sent, that the label edge router allocates the LSP label switching path to the bandwidth requirement, and the label edge router according to the bandwidth requirement The destination address of the data packet is sent, and each LSP sent to the destination address is determined.
本发明实施例终端当标签边缘路由器(LER )接收到待发送数据报文的预申请链路的带 宽请求时, 釆用 CSPF算法为所述带宽需求分配 LSP标签交换路径, 判断每条 LSP的预留带 宽是否满足该预申请链路的带宽需求, 当任何一条 LSP都无法满足该预申请链路的带宽需求 时, 釆用本发明实施例提供的该动态路径调整方案。  In the embodiment of the present invention, when the label edge router (LER) receives the bandwidth request of the pre-application link of the data packet to be sent, the CSPF algorithm allocates an LSP label switching path for the bandwidth requirement, and determines the pre-emption of each LSP. The dynamic path adjustment scheme provided by the embodiment of the present invention is used when the bandwidth of the pre-applied link is required to meet the bandwidth requirement of the pre-applied link.
S302: 判断所述每条 LSP预留带宽的和是否满足所述预申请链路的带宽需求, 当判断结 果为是时, 进行步骤 S303 , 否则, 进行步骤 S304。  S302: Determine whether the sum of the reserved bandwidth of each LSP meets the bandwidth requirement of the pre-applied link. When the determination result is yes, go to step S303; otherwise, go to step S304.
当确定了每条 LSP后, 每条 LSP的预留带宽为该 LSP中每一跳对应剩余链路带宽的最 小值, 确定每条 LSP的预留带宽的和, 判断该预留带宽的和是否大于该预申请链路的带宽需 求, 即通过每条 LSP预留带宽的和来传输该数据 ·ί艮文。  After each LSP is determined, the reserved bandwidth of each LSP is the minimum value of the remaining link bandwidth of each hop in the LSP, and the sum of the reserved bandwidth of each LSP is determined, and it is determined whether the sum of the reserved bandwidths is The bandwidth requirement is greater than the bandwidth of the pre-application link, that is, the data is transmitted through the sum of the reserved bandwidth of each LSP.
S303: 釆用所述每条 LSP发送所述待发送数据报文。  S303: Send the to-be-sent data packet by using each of the LSPs.
具体的, 釆用每条 LSP发送数据报文时, 根据每条 LSP的预留带宽, 对预申请链路的带 宽需求进行划分, 划分为多个不同的子带宽需求, 釆用每条 LSP传输对应子带宽需求的数据 报文即可。 在釆用每条 LSP传输数据报文时, 可以釆用该 LSP中的全部或一部分传输数据报 文。 Specifically, when each LSP sends a data packet, the bandwidth requirement of the pre-applied link is divided according to the reserved bandwidth of each LSP, and is divided into multiple different sub-bandwidth requirements, and each LSP is transmitted. The data packet corresponding to the sub-bandwidth requirement can be used. When using each LSP to transmit data packets, all or part of the LSP may be used to transmit datagrams. Text.
例如预申请链路的带宽需求为 80M, 如图 2所示, 每条 LSP预留带宽分别为 50M、 50M 和 70M时, 可以将该带宽需求划分为 30M、 50M, 只釆用两条 LSP传输其数据报文, 或者该 带宽需求划分为 20M、 40M、 20M, 釆用每条 LSP传输其数据 ·ί艮文; 或者也可以将该带宽需 求划分为 4个 20Μ, 在传输每个 20Μ对应的数据 4艮文时, 釆用对应的 LSP实现。 在本发明 实施例中, 划分的子带宽需求的数量不限, 只要保证划分后的多个子带宽需求的总和为该预 申请链路的带宽需求即可。  For example, if the bandwidth requirement of the pre-application link is 80M, as shown in Figure 2, when the reserved bandwidth of each LSP is 50M, 50M, and 70M, the bandwidth requirement can be divided into 30M and 50M, and only two LSPs can be used for transmission. The data packet, or the bandwidth requirement is divided into 20M, 40M, 20M, and each LSP is used to transmit its data. Alternatively, the bandwidth requirement can be divided into four 20Μ, corresponding to each 20Μ transmission. When the data is 4, the corresponding LSP is implemented. In the embodiment of the present invention, the number of divided sub-bandwidth requirements is not limited, as long as the sum of the divided sub-bandwidth requirements is guaranteed to be the bandwidth requirement of the pre-applied link.
S304: 将待发送 4艮文的该预申请链路的带宽需求加入到等待队列中。  S304: Add a bandwidth requirement of the pre-application link to be sent to the waiting queue.
由于在本发明实施例中根据确定的每条 LSP预留带宽的和来判断是否能够满足当前的带 宽需求, 即将每条 LSP预留带宽作为传输该数据 ·ί艮文的带宽, 具体在进行数据 ·ί艮文传输时, 根据需要将该数据报文的带宽需求进行划分即可, 从而有效的利用了带宽资源, 提高了数据 报文的传输效率, 满足了数据报文传输的实时性需求。  In the embodiment of the present invention, according to the determined sum of reserved bandwidths of each LSP, it is determined whether the current bandwidth requirement can be met, that is, each LSP reserved bandwidth is used as the bandwidth for transmitting the data, specifically for performing data. · When transmitting, the bandwidth requirement of the data packet can be divided according to the need, thereby effectively utilizing the bandwidth resource, improving the transmission efficiency of the data packet, and satisfying the real-time requirement of the data packet transmission.
在本发明实施例中, 将当前的带宽需求划分为多个子带宽需求后, 针对每个子带宽需求 分别釆用 CSPF算法判断是否存在与该子带宽需求匹配的 LSP。例如当前的带宽需求为 100M, 将该带宽需求划分为了 20Μ、 30Μ和 50Μ, 首先针对 20Μ的子带宽需求, 釆用 CSPF算法判 断是否存在与该子带宽需求匹配的 LSP,如果存在,继续针对 30Μ的子带宽需求,釆用 CSPF 算法判断是否存在与该子带宽需求匹配的 LSP, 如果不存在, 则需要将该预申请链路的带宽 需求加入到等待队列中, 如果存在, 继续为 50M的子带宽需求, 釆用 CSPF算法判断是否存 在与该子带宽需求匹配的 LSP, 如果存在, 则釆用确定的每条 LSP传输上述每个子带宽需求 对应的数据报文, 如果不存在, 则将该预申请链路的带宽需求加入到等待队列中。  In the embodiment of the present invention, after the current bandwidth requirement is divided into multiple sub-bandwidth requirements, the CSPF algorithm is used to determine whether there is an LSP matching the sub-bandwidth requirement for each sub-bandwidth requirement. For example, the current bandwidth requirement is 100M, and the bandwidth requirement is divided into 20Μ, 30Μ, and 50Μ. First, for the 20Μ sub-bandwidth requirement, the CSPF algorithm is used to determine whether there is an LSP matching the sub-bandwidth requirement. If yes, continue to target 30Μ. For the sub-bandwidth requirement, use the CSPF algorithm to determine whether there is an LSP that matches the sub-bandwidth requirement. If it does not exist, you need to add the bandwidth requirement of the pre-applied link to the waiting queue. If it exists, continue to be a 50M sub-band. The bandwidth requirement, the CSPF algorithm is used to determine whether there is an LSP matching the sub-bandwidth requirement, and if so, the data packet corresponding to each sub-bandwidth requirement is transmitted by using each determined LSP, and if not, the pre- The bandwidth requirement of the application link is added to the waiting queue.
下面通过一个具体的实施例, 对本发明进行详细说明。  The invention will now be described in detail by way of a specific embodiment.
如图 2所示的 PE-1 ( R2 )接收到待发送数据报文的预申请链路的带宽需求, 该带宽需求 为 80M, 并需要将该数据报文发送到 PE-2 ( R7 ) 时, PE-1根据该数据报文的目的地址, 确 定到该目的地址的每条 LSP , 其中, 确定的 LSP 包括: LSP1 ( R2-R3-R6-R7 )、 LSP2 ( R2-R3-R4-R6-R7 )和 LSP3 ( R2-R3-R5-R6-R7 ), 每条 LSP的预留带宽如图 2所示分别为 50M、 50M和 70M, 由于每条 LSP的预留带宽都无法满足该数据报文的带宽需求, 因此釆用 现有技术中的方案无法传输该数据 ·ί艮文。  As shown in Figure 2, PE-1 (R2) receives the bandwidth requirement of the pre-requested link of the data packet to be sent. The bandwidth requirement is 80M, and the data packet needs to be sent to PE-2 (R7). The PE1 determines each LSP to the destination address according to the destination address of the data packet, where the determined LSP includes: LSP1 (R2-R3-R6-R7), LSP2 (R2-R3-R4-R6) -R7) and LSP3 (R2-R3-R5-R6-R7), the reserved bandwidth of each LSP is 50M, 50M, and 70M, respectively, as the reserved bandwidth of each LSP cannot satisfy the data. The bandwidth requirement of the message, so the data cannot be transmitted using the solution in the prior art.
但由于每条 LSP预留带宽的和( 170M )大于该数据 4艮文的带宽需求, 因此如果根据每条 LSP预留带宽, 将该带宽需求划分多个子带宽需求, 可以将该数据报文实时的传输出去。 例 如, 可以将该带宽需求划分为 50Μ和 30Μ的子带宽需求, 才是只需要釆用 LSP1、 LSP2和 LSP3中的任意两条传输该子带宽需求对应的数据报文即可。 或者, 也可以将该带宽需求划分 为 30M、 20M和 30M的子带宽需求, 分别釆用 LSP1、 LSP2和 LSP3传输该子带宽需求对应 的数据报文即可。 However, since the sum of the bandwidth reserved for each LSP (170M) is greater than the bandwidth requirement of the data, if the bandwidth is reserved according to each LSP, the bandwidth requirement is divided into multiple sub-bandwidth requirements, and the data packet can be real-time. The transmission goes out. For example, the bandwidth requirement may be divided into sub-bandwidth requirements of 50 Μ and 30 ,, that is, only two of LSP1, LSP2, and LSP3 need to be used to transmit data packets corresponding to the sub-bandwidth requirement. Alternatively, you can also divide the bandwidth requirement For the sub-bandwidth requirements of 30M, 20M, and 30M, LSP1, LSP2, and LSP3 are used to transmit data packets corresponding to the sub-bandwidth requirements.
图 4为本发明实施例一提供的一种链路拥塞时的动态路径调整过程, 该过程包括以下步 骤:  FIG. 4 is a schematic diagram of a dynamic path adjustment process when a link is congested according to Embodiment 1 of the present invention, where the process includes the following steps:
S401 : 标签边缘路由器根据待发送数据报文的预申请链路的带宽需求, 确定釆用 CSPF 算法无法为所述带宽需求分配 LSP标签交换路径时, 标签边缘路由器根据所述带宽需求及所 述待发送数据报文的目的地址, 确定发送到所述目的地址的每条 LSP。  S401: The label edge router determines, according to the bandwidth requirement of the pre-requested link of the data packet to be sent, that the label edge router allocates the LSP label switching path to the bandwidth requirement, and the label edge router according to the bandwidth requirement The destination address of the data packet is sent, and each LSP sent to the destination address is determined.
S402: 判断所述每条 LSP预留带宽的和是否满足所述预申请链路的带宽需求, 当判断结 果为是时, 进行步骤 S403 , 否则, 进行步骤 S405。  S402: Determine whether the sum of the reserved bandwidth of each LSP satisfies the bandwidth requirement of the pre-applied link. When the determination result is yes, go to step S403; otherwise, go to step S405.
S403 : 确定所述每条 LSP中包含最少跳数的 LSP, 釆用所述包含最少跳数的 LSP的预留 带宽传输所述数据艮文。  S403: Determine an LSP that includes a minimum number of hops in each LSP, and transmit the data packet by using a reserved bandwidth of the LSP that includes the minimum hop count.
S404: 根据确定的其他每条 LSP的预留带宽, 将剩余的所述数据报文的带宽需求进行划 分, 釆用其他每条 LSP传输对应的数据报文。  S404: The bandwidth requirement of the remaining data packets is divided according to the determined reserved bandwidth of each of the other LSPs, and the corresponding data packet is transmitted by using each of the other LSPs.
S405: 将待发送 ·ί艮文的该预申请链路的带宽需求加入到等待队列中。  S405: Add the bandwidth requirement of the pre-application link to be sent to the waiting queue.
在本发明实施例中当确定釆用任何一条 LSP都无法满足数据 ·ί艮文的带宽需求时, 为了保 证数据 4艮文的实时传输,有效利用网络资源,可以根据确定的每条 LSP的预留带宽需求之和, 传输该数据报文。另外,为了保证数据报文以最快的速度传输,首先根据包含最少跳数的 LSP 的预留带宽, 对该数据报文的带宽需求进行划分, 划分后某一子带宽需求与该包含最少跳数 的 LSP的预留带宽相同,釆用该包含最少跳数的 LSP的预留带宽传输该子带宽需求对应的数 据报文, 并根据其他每条 LSP的预留带宽, 将剩余的所述数据报文的带宽需求进行划分, 釆 用其他每条 LSP传输对应的数据报文。  In the embodiment of the present invention, when it is determined that any of the LSPs cannot satisfy the bandwidth requirement of the data, in order to ensure real-time transmission of the data, the effective use of the network resources may be based on the determined pre-determination of each LSP. The sum of the bandwidth requirements is transmitted, and the data message is transmitted. In addition, in order to ensure that the data packet is transmitted at the fastest speed, the bandwidth requirement of the data packet is first divided according to the reserved bandwidth of the LSP containing the minimum number of hops, and a sub-bandwidth requirement and the minimum hopping are included after the partitioning. The reserved bandwidth of the LSP is the same, and the data packet corresponding to the sub-bandwidth requirement is transmitted by using the reserved bandwidth of the LSP with the minimum number of hops, and the remaining data is saved according to the reserved bandwidth of each of the other LSPs. The bandwidth requirements of the packets are divided, and the corresponding data packets are transmitted by each of the other LSPs.
还如图 2所示 PE-1 ( R2 )接收到待发送数据报文的预申请链路的带宽需求, 该带宽需求 为 80Μ, 并需要将该数据报文发送到 ΡΕ-2 ( R7 ) 时, PE-1根据该数据报文的目的地址, 确 定到该目的地址的每条 LSP , 其中, 确定的 LSP 包括: LSP1 ( R2-R3-R6-R7 )、 LSP2 ( R2-R3-R4-R6-R7 )和 LSP3 ( R2-R3-R5-R6-R7 ), 每条 LSP的预留带宽如图 2所示分别为 50Μ、 50Μ和 70Μ。  As shown in Figure 2, PE-1 (R2) receives the bandwidth requirement of the pre-requested link of the data packet to be sent. The bandwidth requirement is 80Μ, and the data packet needs to be sent to ΡΕ-2 (R7). The PE1 determines each LSP to the destination address according to the destination address of the data packet, where the determined LSP includes: LSP1 (R2-R3-R6-R7), LSP2 (R2-R3-R4-R6) -R7) and LSP3 (R2-R3-R5-R6-R7), the reserved bandwidth of each LSP is 50Μ, 50Μ and 70Μ respectively as shown in Figure 2.
其中包含最少跳数的 LSP为 LSP1 ,该 LSP1的预留带宽为 50Μ, 因此根据该数据报文的 带宽需求, 将该带宽需求划分出一个 50Μ的子带宽需求, 釆用 LSP1传输该 50Μ子带宽需求 对应的数据报文, 剩余的数据报文的带宽需求为 30Μ, 根据 LSP2和 LPS3的预留带宽, 可以 只釆用其中一条 LSP传输剩余的数据报文, 或者, 也可以将该剩余的数据报文的带宽需求划 分为 10M和 20Μ两个子带宽需求, 分别釆用 LSP2和 LPS3传输该两个子带宽需求对应的数 据报文。 The LSP with the minimum number of hops is LSP1, and the reserved bandwidth of the LSP1 is 50Μ. Therefore, according to the bandwidth requirement of the data packet, the bandwidth requirement is divided into a 50-inch sub-bandwidth requirement, and the 50-sub-band bandwidth is transmitted by using LSP1. For the data packet corresponding to the demand, the bandwidth requirement of the remaining data packets is 30Μ. According to the reserved bandwidth of LSP2 and LPS3, only one of the LSPs may be used to transmit the remaining data packets, or the remaining data may be used. The bandwidth requirement of the packet is divided into two sub-bandwidth requirements of 10M and 20Μ, and the number corresponding to the two sub-bandwidth requirements is transmitted by using LSP2 and LPS3 respectively. According to the message.
为了保证每个数据报文都能被尽快传输, 在本发明实施例中根据每条 LSP包含的跳数及 每条 LSP的预留带宽, 为每条 LSP分配权重;  In order to ensure that each data packet can be transmitted as soon as possible, in the embodiment of the present invention, each LSP is assigned a weight according to the number of hops included in each LSP and the reserved bandwidth of each LSP;
根据分配的权重, 对所述预申请链路的带宽需求进行划分;  Dividing the bandwidth requirement of the pre-applied link according to the assigned weight;
釆用每条 LSP传输所述带宽需求划分后的带宽对应的数据报文。  The data packet corresponding to the bandwidth divided by the bandwidth requirement is transmitted by using each LSP.
图 5为本发明实施例二提供的一种链路拥塞时的动态路径调整过程, 该过程包括以下步 骤:  FIG. 5 is a flowchart of a dynamic path adjustment when a link is congested according to Embodiment 2 of the present invention, where the process includes the following steps:
S501 : 标签边缘路由器根据待发送数据报文的预申请链路的带宽需求, 确定釆用 CSPF 算法无法为所述带宽需求分配 LSP标签交换路径时, 标签边缘路由器根据所述带宽需求及所 述待发送数据报文的目的地址, 确定发送到所述目的地址的每条 LSP。  S501: The label edge router determines, according to the bandwidth requirement of the pre-requested link of the data packet to be sent, that the label edge router allocates the LSP label switching path for the bandwidth requirement, and the label edge router according to the bandwidth requirement The destination address of the data packet is sent, and each LSP sent to the destination address is determined.
S502: 判断所述每条 LSP预留带宽的和是否满足所述预申请链路的带宽需求, 当判断结 果为是时, 进行步骤 S503 , 否则, 进行步骤 S505。  S502: Determine whether the sum of the reserved bandwidth of each LSP satisfies the bandwidth requirement of the pre-applied link. When the determination result is yes, proceed to step S503, otherwise, go to step S505.
S503: 根据所述每条 LSP的预留带宽, 为所述每条 LSP分配权重。  S503: Assign a weight to each LSP according to the reserved bandwidth of each LSP.
S504: 根据分配的权重, 对所述预申请链路的带宽需求进行划分, 釆用每条 LSP传输所 述带宽需求划分后的带宽对应的数据 4艮文。  S504: The bandwidth requirement of the pre-applied link is divided according to the weight of the allocated, and the data corresponding to the bandwidth that is divided by the bandwidth requirement is transmitted by each LSP.
S505: 将待发送 4艮文的该预申请链路的带宽需求加入到等待队列中。  S505: Add a bandwidth requirement of the pre-application link to be sent to the waiting queue.
具体的,在本发明实施例中当确定釆用任何一条 LSP都无法满足数据 ·ί艮文的带宽需求时, 为了保证数据 4艮文的实时传输, 有效利用网络资源, 可以根据确定的每条 LSP的预留带宽需 求之和, 传输该数据报文。  Specifically, in the embodiment of the present invention, when it is determined that any of the LSPs cannot meet the bandwidth requirement of the data, in order to ensure real-time transmission of the data, the network resources can be effectively utilized, and each of the determined The sum of the reserved bandwidth requirements of the LSP, and the data packet is transmitted.
另外, 为了保证每个数据报文都能别尽快传输, 在本发明实施例中根据每条 LSP包含的 跳数及每条 LSP的预留带宽, 为每条 LSP分配权重。 具体的, 在根据 LSP包含的跳数及每 条 LSP的预留带宽, 为每条 LSP分配权重时, 当 LSP包含的跳数较少时, 为该 LSP分配较 大的权重, 当该 LSP的预留带宽较大时, 为该 LSP分配较大的权重。 根据分配的权重及预申 请链路的带宽需求, 确定每条 LSP传输的 4艮文数据的带宽, 釆用确定的带宽传输该带宽对应 的数据报文。  In addition, in order to ensure that each data packet can be transmitted as soon as possible, in the embodiment of the present invention, each LSP is assigned a weight according to the number of hops included in each LSP and the reserved bandwidth of each LSP. Specifically, when a weight is allocated to each LSP according to the hop count of the LSP and the reserved bandwidth of each LSP, when the LSP includes a small number of hops, the LSP is assigned a larger weight, when the LSP is When the reserved bandwidth is large, the LSP is assigned a larger weight. According to the allocated weight and the bandwidth requirement of the pre-application link, the bandwidth of the data transmitted by each LSP is determined, and the data packet corresponding to the bandwidth is transmitted by using the determined bandwidth.
如图 2所示 LSP1包含的跳数最少, LSP2和 LSP3包含的跳数相同, LSP1的预留带宽为 50Μ, LSP2的预留带宽为 50Μ, LSP3的预留带宽为 70Μ,因此为 LSP1分配的权重可以为 4, 为 LSP3分配的权重也可以为 3 , 为 LSP2分配的权重也可以为 2。 根据为每条 LSP分配的权 重及该数据报文的带宽需求,将该带宽需求划分为多个子带宽需求,分别为 40Μ、30Μ和 20Μ, 釆用每条 LSP传输每个子带宽需求对应的数据报文。  As shown in Figure 2, LSP1 contains the fewest hops. LSP2 and LSP3 contain the same number of hops. The reserved bandwidth of LSP1 is 50Μ, the reserved bandwidth of LSP2 is 50Μ, and the reserved bandwidth of LSP3 is 70Μ. Therefore, it is allocated for LSP1. The weight can be 4, the weight assigned to LSP3 can also be 3, and the weight assigned to LSP2 can also be 2. According to the weight allocated for each LSP and the bandwidth requirement of the data packet, the bandwidth requirement is divided into multiple sub-bandwidth requirements, which are 40 Μ, 30 Μ, and 20 分别, respectively, and each LSP is used to transmit a datagram corresponding to each sub-bandwidth requirement. Text.
在本发明实施例中由于预申请链路的带宽需求是按照 DSCP值进行分配的, 而 DSCP值 共计 64个值, 按照将 64整除的通道条路计算, 因此可以釆用 2、 4、 8来等分该带宽需求。 具体的, 在本发明实施例中所述带宽需求划分为多个子带宽需求包括: In the embodiment of the present invention, the bandwidth requirement of the pre-application link is allocated according to the DSCP value, and the DSCP value is A total of 64 values are calculated according to the channel strip divisible by 64, so 2, 4, and 8 can be used to equally divide the bandwidth requirement. Specifically, the dividing the bandwidth requirement into multiple sub-bandwidth requirements in the embodiment of the present invention includes:
将所述带宽需求进行等分, 首先将带宽需求 2等分;  Dividing the bandwidth requirements into equal parts, first dividing the bandwidth requirement by 2;
当不存在与每个 2等分后的带宽需求匹配的 LSP时, 将带宽需求 4等分;  When there is no LSP matching the bandwidth requirement after each halving, the bandwidth requirement is equally divided into 4;
当存在时, 釆用所述 LSP传输 4等分后每个带宽需求对应的数据报文;  When present, the LSP is used to transmit a data packet corresponding to each bandwidth requirement after 4 equal divisions;
当不存在与每个 4等分后的带宽需求匹配的 LSP时, 将带宽需求 8等分, 其中, 将所述 带宽需求根据所述待发送数据报文中的差分服务代码点的数值值进行等分。  When there is no LSP that matches the bandwidth requirement of each of the four equal parts, the bandwidth requirement is equally divided into eight, wherein the bandwidth requirement is performed according to the value of the differential service code point in the to-be-sent data message. Equally divided.
下面结合一个具体的实施例, 对本发明的上述过程进行说明。  The above process of the present invention will now be described in conjunction with a specific embodiment.
标签边缘路由器根据待发送数据报文的预申请链路的带宽需求, 确定釆用 CSPF算法无 法为所述带宽需求分配 LSP标签交换路径时, 将该带宽需求均分, 分两次依据 CSPF算法寻 找每条 LSP的可用带宽。 如果可以找到满足该均分后的带宽需求的 LSP, 则釆用 CSPF算法 确定该 LSP。  The label edge router determines, according to the bandwidth requirement of the pre-requested link of the data packet to be sent, that the CSPF algorithm cannot allocate an LSP label switching path for the bandwidth requirement, and the bandwidth requirement is equally divided into two according to the CSPF algorithm. The available bandwidth of each LSP. If an LSP that satisfies the bandwidth requirement after the equalization can be found, the CSPF algorithm is used to determine the LSP.
具体的, 标签边缘路由器在根据带宽需求对应的数据报文中的差分服务代码点 DSCP的 值, 将带宽需求通过访问控制列表( ACL )访问控制列表规则映射, 确定该 DSCP的值对应 的下一跳。 DSCP使用 6bit, DSCP值的范围为 0~63 , 通过键入 DSCP值, 电话、 Windows 客户和服务器等终端设备可对流量进行标识。 ACL是路由器和交换机接口的指令列表, 用来 控制端口进出的数据包。  Specifically, the label edge router maps the bandwidth requirement through the access control list (ACL) access control list rule according to the value of the differential service code point DSCP in the data packet corresponding to the bandwidth requirement, and determines the next value corresponding to the DSCP value. jump. DSCP uses 6bit, and the DSCP value ranges from 0 to 63. By typing the DSCP value, the terminal, such as the phone, Windows client, and server, can identify the traffic. ACL is a list of commands for routers and switch interfaces. It is used to control the incoming and outgoing packets of the port.
如果将上述带宽需求折半后, 通过两次分别确定满足每个子带宽需求的 LSP时, 其中的 任何一次未确定到满足该子带宽需求的 LSP时, 将该带宽需求 4等分, 分 4次釆用 CSPF算 法寻找每次可用的带宽, 确定 LSP。 如果在每次寻找中, 都可以找到满足该 4等分后的带宽 需求的 LSP, 则釆用 CSPF算法确定该 LSP。  If the LSPs satisfying each sub-bandwidth requirement are respectively determined by halving the above-mentioned bandwidth requirements, if any of the LSPs that satisfy the sub-bandwidth requirement is not determined, the bandwidth requirement is equally divided into 4 times. Use the CSPF algorithm to find the available bandwidth and determine the LSP. If an LSP that satisfies the bandwidth requirement after the 4 equalization is found in each search, the CSPF algorithm is used to determine the LSP.
如果将上述带宽需求 4等分后, 通过 4次分别确定满足每个子带宽需求的 LSP时, 其中 的任何一次未确定到满足该子带宽需求的 LSP时, 将该带宽需求 8等分, 分 8次釆用 CSPF 算法寻找每次可用的带宽, 确定 LSP。 如果在每次寻找中, 都可以找到满足该 8等分后的带 宽需求的 LSP, 则釆用 CSPF算法确定该 LSP。  If the above-mentioned bandwidth requirement is divided into 4, and the LSP that satisfies each sub-bandwidth requirement is determined by 4 times, if any one of the LSPs that meet the sub-bandwidth requirement is not determined, the bandwidth requirement is equally divided into 8 points. The CSPF algorithm is used to find the available bandwidth and determine the LSP. If the LSP that satisfies the bandwidth requirement after the 8 equalization is found in each search, the CSPF algorithm is used to determine the LSP.
如果将上述带宽需求 8等分后, 通过 8次分别确定满足每个子带宽需求的 LSP时, 其中 的任何一次未确定到满足该子带宽需求的 LSP时, 将待发送 ·ί艮文的该预申请链路的带宽需求 加入到等待队列中。  If the above-mentioned bandwidth requirement is equally divided into 8 and the LSPs satisfying each sub-bandwidth requirement are respectively determined through 8 times, if any one of the LSPs that satisfy the sub-bandwidth requirement is not determined, the pre-supplied The bandwidth requirement of the application link is added to the waiting queue.
在本发明实施例中由于釆用多条 LSP传输数据报文, 为了保证传输后的数据报文能够整 合为完整的报文, 在每条 LSP传输的数据报文中添加标签, 该标签用于指示另一标签边缘路 由器组装所述每条 LSP传输的数据报文。 还以图 2为例, 当前数据报文的预申请链路的带宽需求为 80M,根据现有技术釆用 CSPF 算法无法为该货款需求分配可用路径时。 In the embodiment of the present invention, because a plurality of LSPs are used to transmit data packets, in order to ensure that the transmitted data packets can be integrated into a complete packet, a label is added to each data packet transmitted by the LSP, and the label is used for Instructing another label edge router to assemble the data message transmitted by each of the LSPs. As shown in Figure 2, the bandwidth requirement of the pre-application link of the current data packet is 80M. According to the prior art, the CSPF algorithm cannot allocate an available path for the payment requirement.
首先将该带宽需求均分, 均分后的两个子带宽需求为 40M, 分两次釆用 CSPF算法进行 计算, 确定满足该子带宽需求的 LSP, 如果都成功, 则 CSPF计算出 2条 LSP, 分别为 A、 B。 标签边缘路由器 LER将 DSCP值为 0-31的数据报文应用 ACL规则映射到 A, DSCP值为 32-63 的数据报文应用 ACL规则映射到 B。  First, the bandwidth requirements are equally divided. The two sub-bandwidth requirements are 40M. The CSPF algorithm is used to calculate the LSPs that meet the sub-bandwidth requirements. If both are successful, the CSPF calculates two LSPs. They are A and B respectively. The label edge router LER maps the data packets with the DSCP value of 0-31 to A, and the data packets with the DSCP value of 32-63 are mapped to B by applying ACL rules.
如果上述确定满足每个子带宽需求的 LSP的过程失败, 将该带宽需求 4等分, 四个子带 宽需求为 20M, 分 4次釆用 CSPF算法进行计算, 确定满足该子带宽需求的 LSP, 如果都成 功, 则 CSPF计算出 4条 LSP, 分别为 A、 B、 C、 D。 LER将 DSCP值为 0-15的数据报文应 用 ACL规则映射到 A, DSCP值为 16-31的数据报文应用 ACL规则映射到 B, DSCP值为 32-47 的数据报文应用 ACL规则映射到 C, DSCP值为 48-63的数据报文应用 ACL规则映射到 D。  If the process of determining the LSP that satisfies each sub-bandwidth requirement fails, the bandwidth requirement is divided into 4, and the four sub-bandwidth requirements are 20M, and the CSPF algorithm is used to calculate the LSP, and if the LSP is satisfied, If successful, CSPF calculates 4 LSPs, which are A, B, C, and D. The LER maps the data packets with the DSCP value of 0-15 to the A. The data packets with the DSCP value of 16-31 are applied to the B. The ACL rules are applied to the data packets with the DSCP value of 32-47. To C, the data packet with the DSCP value of 48-63 is mapped to D by applying an ACL rule.
如果上述确定满足每个子带宽需求的 LSP的过程失败, 将该带宽需求 8等分, 八个子带 宽需求为 10M, 分 8次釆用 CSPF算法进行计算, 确定满足该子带宽需求的 LSP, 如果都成 功, 则 CSPF计算出 4条 LSP, 分别为 A、 B、 C、 D、 E、 F、 G、 H。 LER将 DSCP值为 0-7 的数据报文应用 ACL规则映射到 A, DSCP值为 8-15的数据报文应用 ACL规则映射到 B, DSCP值为 16-23的数据报文应用 ACL规则映射到 C, DSCP值为 24-31的数据报文应用 ACL 规则映射到 D, DSCP值为 32-39的数据报文应用 ACL规则映射到 E, DSCP值为 40-47的数 据报文应用 ACL规则映射到 F, DSCP值为 48-55的数据报文应用 ACL规则映射到 G, DSCP 值为 56-63的数据报文应用 ACL规则映射到 H。  If the process of determining the LSP that satisfies each sub-bandwidth requirement fails, the bandwidth requirement is equally divided into eight, and the eight sub-bandwidth requirements are 10 M, and the CSPF algorithm is used to calculate the LSPs that satisfy the sub-bandwidth requirement. If successful, CSPF calculates 4 LSPs, which are A, B, C, D, E, F, G, and H. The LER applies the ACL rule to the data packet with the DSCP value of 0-7, and applies the ACL rule to the data packet with the DSCP value of 8-15. The ACL rule mapping is applied to the data packet with the DSCP value of 16-23. In C, the ACL rule is applied to the data packet with the DSCP value of 24-31, and the ACL rule is applied to the data packet with the DSCP value of 32-39. The ACL rule is applied to the data packet with the DSCP value of 40-47. Mapped to F, the data packets with the DSCP value of 48-55 are mapped to G by ACL rules, and the data packets with the DSCP value of 56-63 are mapped to H by applying ACL rules.
如果上述确定满足每个子带宽需求的 LSP的过程失败, 将待发送 ·ί艮文的该预申请链路的 带宽需求加入到等待队列中。  If the process of determining the LSP satisfying each sub-bandwidth requirement fails, the bandwidth requirement of the pre-application link to be sent is added to the waiting queue.
MPLS ΤΕ包括: 信息发布组件、 路径计算组件、 信令组件和流量转发组件。 其中, 信息 发布组件主要是使用扩展的开发最短路径优先( OSPE-TE ), 来向外通知和获取网络拓朴状态 信息, 并形成链路状态数据库(LSDB )和流量工程数据库(TEDB ), 其中 LSDB 用于传统 的最短路径优先 ( SPF )计算, 而 TEDB用于建立 TE隧道时进行选路的计算。 OSPF-TE是 在普通 OSPF的基础上扩展了对第 10类链路状态通告的支持, 即 OPAQUE-LSA, 该 LSA可 以表征最大链路带宽, 最大预留链路带宽, 当前预留带宽等属性, 从而形成对应的 TEDB。  MPLS includes: an information distribution component, a path computation component, a signaling component, and a traffic forwarding component. The information publishing component mainly uses the extended development shortest path first (OSPE-TE) to notify and acquire the network topology state information, and forms a link state database (LSDB) and a traffic engineering database (TEDB), wherein The LSDB is used for traditional Shortest Path First (SPF) calculations, and TEDB is used for routing calculations when establishing TE tunnels. OSPF-TE extends the support of the Type 10 link state advertisement based on the common OSPF, that is, the OPAQUE-LSA. The LSA can represent attributes such as the maximum link bandwidth, the maximum reserved link bandwidth, and the current reserved bandwidth. , thereby forming a corresponding TEDB.
标签边缘路由器(LER )依据信息发布组件, 使用基于约束的最短路径优先(CSPF )计 算出每条 LSP的屋里路径。  The Label Edge Router (LER) calculates the in-home path of each LSP using the Constraint-Based Shortest Path First (CSPF) according to the information distribution component.
目前业界主要使用资源预留协议(RSVP-TE ), 其主要作用是根据路径计算组件, 计算出 来的路径建立 LSP , 预留资源并分发标签等。 流量转发组件在信令组件成功建立 LSP后, 釆用 MPLS对数据艮文进行数据交换和转发 处理。 Currently, the industry mainly uses the Resource Reservation Protocol (RSVP-TE). Its main function is to establish LSPs based on path calculation parameters, reserve resources, and distribute labels. After the signaling component successfully establishes the LSP, the traffic forwarding component uses MPLS to perform data exchange and forwarding processing on the data packet.
具体的, 在针对每个子带宽需求, 釆用 CSPF算法寻找可用的带宽的 LSP时, 下面以均 分带宽需求为例进行说明: CSPF子任务首先创建一个消息队列, 用于接收 TE子任务通知消 息。 在入口 LER上对 2条 LSP的目的地址及子带宽需求 40M为已知, 共计 80M。  Specifically, for the sub-bandwidth requirement, when the CSPF algorithm is used to find the LSP of the available bandwidth, the following takes the equalized bandwidth requirement as an example: The CSPF sub-task first creates a message queue for receiving the TE sub-task notification message. . The destination address and sub-bandwidth requirement of the two LSPs on the ingress LER are known to be 40M.
TE子任务启动定时器, 周期性地通知 CSPF子任务, 根据输入参数: 目的地址及子带宽 需求, 计算出一条最优路径, 直到成功才取消定时器。 由于份两次进行确定, TE需用启动 2 次定时器, 并计算出 2条对应最优路径 LSPA和 LSPB。  The TE sub-task starts the timer and periodically notifies the CSPF subtask. According to the input parameters: destination address and sub-bandwidth requirement, an optimal path is calculated. The timer is cancelled until it succeeds. Because the number is determined twice, the TE needs to start the secondary timer and calculate two corresponding optimal paths LSPA and LSPB.
CSPF根据上述输入参数信息及本地保存的 LSDB和 TEDB, 计算出一条最优 LSPA: R3--R6, 并在此过程中更新相应的 TEDB信息。 若计算失败, 则回滚 TEDB信息。 另外, 由 于 OSPF只洪泛自身产生的 OPAQUE-LSA, 且更新并转发其它设备产生的 OPAQUE-LSA, 故可以修改 PE-1或 PE-2的本地 TEDB。  Based on the above input parameter information and the locally saved LSDB and TEDB, the CSPF calculates an optimal LSPA: R3--R6, and updates the corresponding TEDB information in the process. If the calculation fails, the TEDB information is rolled back. In addition, OSPF can only modify the OPAQUE-LSA generated by itself and update and forward the OPAQUE-LSA generated by other devices. Therefore, you can modify the local TEDB of PE-1 or PE-2.
CSPF在计算 LSPB时, 此时 R5的 70M带宽的预留带宽为 30M, 因此 R5的剩余的 30M 接口带宽不能满足要求, 故它们的最优路径都是: R3-R4 -R6。 与上述步骤类同, 更新 TEDB 信息。 若计算失败, 则回滚 TEDB信息。 TE子任务将 CSPF子任务返回的既定路径及相关信 息传递给 RSVP子任务, 由 RSVP来完成真正意义上的资源预留。  When the CSPF calculates the LSPB, the reserved bandwidth of the 70M bandwidth of the R5 is 30M. Therefore, the remaining 30M interface bandwidth of the R5 cannot meet the requirements, so their optimal paths are: R3-R4 - R6. Similar to the above steps, update the TEDB information. If the calculation fails, the TEDB information is rolled back. The TE subtask passes the established path and related information returned by the CSPF subtask to the RSVP subtask, and RSVP completes the real resource reservation.
图 6为本发明实施例提供的一种链路拥塞时的动态路径调整装置结构示意图, 所述装置 包括:  FIG. 6 is a schematic structural diagram of a dynamic path adjustment apparatus when a link is congested according to an embodiment of the present disclosure, where the apparatus includes:
确定模块 61 , 用于根据待发送数据报文的预申请链路的带宽需求, 确定釆用 CSPF算法 无法为所述带宽需求分配 LSP标签交换路径时; 根据所述带宽需求及所述待发送数据 4艮文的 目的地址, 确定发送到所述目的地址的每条 LSP;  The determining module 61 is configured to determine, according to the bandwidth requirement of the pre-requested link of the data packet to be sent, that the CSPF algorithm cannot allocate an LSP label switching path for the bandwidth requirement, according to the bandwidth requirement and the to-be-sent data 4, the destination address of the text, determining each LSP sent to the destination address;
判断模块 62 ,用于判断所述每条 LSP预留带宽的和是否满足所述预申请链路的带宽需求; 发送模块 63 ,用于当判断模块判断每条 LSP预留带宽的和满足所述预申请链路的带宽需 求时, 釆用所述每条 LSP发送所述待发送数据报文;  The determining module 62 is configured to determine whether the sum of the reserved bandwidth of each LSP meets the bandwidth requirement of the pre-applied link, and the sending module 63 is configured to: when the determining module determines that the sum of the reserved bandwidth of each LSP meets the When the bandwidth requirement of the link is requested, the data packet to be sent is sent by using each LSP;
路径调整模块 64 ,用于当判断模块判断每条 LSP预留带宽的和不满足所述预申请链路的 带宽需求时, 将待发送 ·ί艮文的该预申请链路的带宽需求加入到等待队列中。  The path adjustment module 64 is configured to: when the determining module determines that the bandwidth of the reserved bandwidth of each LSP does not meet the bandwidth requirement of the pre-applied link, add the bandwidth requirement of the pre-application link to be sent to the Waiting in the queue.
所述发送模块 63 , 具体用于根据所述每条 LSP的预留带宽, 为所述每条 LSP分配权重; 根据分配的权重, 对所述预申请链路的带宽需求进行划分; 釆用每条 LSP传输所述带宽需求 划分后的带宽对应的数据报文。  The sending module 63 is specifically configured to allocate weights to each of the LSPs according to the reserved bandwidth of each LSP; and divide bandwidth requirements of the pre-applied links according to the allocated weights; The LSP transmits the data packet corresponding to the bandwidth after the bandwidth requirement is divided.
所述发送模块 63 , 具体用于确定所述每条 LSP中包含最少跳数的 LSP, 釆用所述包含最 少跳数 LSP的预留带宽传输所述数据报文; 并根据确定的其他每条 LSP的预留带宽, 将剩余 的所述数据 ·ί艮文的带宽需求进行划分, 釆用其他每条 LSP传输对应的数据 4艮文。 所述发送模块 63 , 具体用于将所述带宽需求进行等分, 首先将带宽需求 2等分; 当不存 在与每个 2等分后的带宽需求匹配的 LSP时, 将带宽需求 4等分; 当存在时, 釆用所述 LSP 传输 4等分后每个带宽需求对应的数据报文;当不存在与每个 4等分后的带宽需求匹配的 LSP 时, 将带宽需求 8等分, 其中, 将所述带宽需求根据所述待发送数据 4艮文中的差分服务代码 点的数值值进行等分。 The sending module 63 is specifically configured to determine an LSP that includes a minimum number of hops in each LSP, and use the reserved bandwidth that includes the minimum hop LSP to transmit the data packet; and according to the determined each other Reserved bandwidth of the LSP, will remain The data needs to be divided into the bandwidth requirements of the data, and the corresponding data is transmitted by each of the other LSPs. The sending module 63 is specifically configured to divide the bandwidth requirement into two equal parts, and first divide the bandwidth requirement into two parts. When there is no LSP matching the bandwidth requirement of each of the two equal parts, the bandwidth requirement is equally divided into four. When present, the LSP is used to transmit data packets corresponding to each bandwidth requirement after 4 equal divisions; when there is no LSP matching the bandwidth requirement after each 4 equal divisions, the bandwidth requirement is equally divided into 8 The bandwidth requirement is equally divided according to the value of the differential service code point in the data to be transmitted.
所述装置还包括:  The device also includes:
标签添加模块 65 , 用于在每条 LSP传输的数据报文中添加标签, 该标签用于指示另一标 签边缘路由器组装所述每条 LSP传输的数据报文。  The label adding module 65 is configured to add a label to the data packet transmitted by each LSP, where the label is used to indicate that another label edge router assembles the data packet transmitted by each LSP.
本发明实施例提供了一种链路拥塞时的动态路径调整方法及装置, 该方法中标签边缘路 由器在无法为当前待发送数据报文的预申请链路的带宽需求分配 LSP时, 根据其带宽需求及 目的地址确定到该目的地址的每条 LSP, 判断每条 LSP预留带宽的和是否满足该带宽需求, 当其满足时, 釆用每条 LSP发送所述待发送数据报文, 否则, 将待发送报文的该预申请链路 的带宽需求加入到等待队列中。 由于在本发明实施例中根据确定的每条 LSP的预留带宽的和 来判断是否能够满足当前的带宽需求, 即将每条 LSP预留带宽作为传输该数据报文的带宽, 具体在进行数据报文传输时, 根据需要将该数据报文的带宽需求进行划分即可, 从而有效的 利用了带宽资源, 提高了数据报文的传输效率, 满足了数据报文传输的实时性需求。  The embodiment of the present invention provides a method and a device for adjusting a dynamic path when a link is congested. In this method, when a label edge router cannot allocate an LSP for a bandwidth requirement of a pre-requested link of a data packet to be sent, according to its bandwidth Determining, by the LSP, the LSP of the destination address, determining whether the sum of the reserved bandwidth of each LSP satisfies the bandwidth requirement, and when it is satisfied, sending the to-be-sent data packet by using each LSP; otherwise, The bandwidth requirement of the pre-application link of the to-be-sent packet is added to the waiting queue. In the embodiment of the present invention, according to the determined sum of the reserved bandwidths of each LSP, it is determined whether the current bandwidth requirement can be met, that is, each LSP reserved bandwidth is used as the bandwidth for transmitting the data packet, specifically, the datagram is performed. When the text is transmitted, the bandwidth requirement of the data packet can be divided according to the need, thereby effectively utilizing the bandwidth resource, improving the transmission efficiency of the data packet, and satisfying the real-time requirement of the data packet transmission.
在此提供的算法和显示不与任何特定计算机、 虚拟系统或者其它设备固有相关。 各种通 用系统也可以与基于在此的示教一起使用。 根据上面的描述, 构造这类系统所要求的结构是 显而易见的。 此外, 本发明也不针对任何特定编程语言。 应当明白, 可以利用各种编程语言 实现在此描述的本发明的内容, 并且上面对特定语言所做的描述是为了披露本发明的最佳实 施方式。  The algorithms and displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems can also be used with the teaching based on the teachings herein. According to the above description, the structure required to construct such a system is obvious. Moreover, the invention is not directed to any particular programming language. It is to be understood that the present invention may be embodied in a variety of programming language, and the description of the specific language has been described above in order to disclose the preferred embodiments of the invention.
在此处所提供的说明书中, 说明了大量具体细节。 然而, 能够理解, 本发明的实施例可 以在没有这些具体细节的情况下实践。 在一些实例中, 并未详细示出公知的方法、 结构和技 术, 以便不模糊对本说明书的理解。  Numerous specific details are set forth in the description provided herein. However, it is understood that the embodiments of the invention may be practiced without these specific details. In some instances, well known methods, structures, and techniques have not been shown in detail so as not to obscure the description.
类似地, 应当理解, 为了精筒本公开并帮助理解各个发明方面中的一个或多个, 在上面 对本发明的示例性实施例的描述中, 本发明的各个特征有时被一起分组到单个实施例、 图、 或者对其的描述中。 然而, 并不应将该公开的方法解释成反映如下意图: 即所要求保护的本 发明要求比在每个权利要求中所明确记载的特征更多的特征。 更确切地说, 如下面的权利要 求书所反映的那样, 发明方面在于少于前面公开的单个实施例的所有特征。 因此, 遵循具体 实施方式的权利要求书由此明确地并入该具体实施方式, 其中每个权利要求本身都作为本发 明的单独实施例。 Similarly, it is to be understood that in the above description of the exemplary embodiments of the present invention, the various features of the present invention are sometimes grouped together into a single embodiment. , diagram, or description of it. However, the method disclosed is not to be interpreted as reflecting the intention that the claimed invention requires more features than those recited in the claims. Rather, as the following claims reflect, inventive aspects reside in less than all features of the single embodiments disclosed herein. Therefore, the claims following the specific embodiments are hereby explicitly incorporated into the embodiments, each of which A separate embodiment of the invention.
本领域那些技术人员可以理解, 可以对实施例中的设备中的模块进行自适应性地改变并 且把它们设置在与该实施例不同的一个或多个设备中。 可以把实施例中的模块或单元或组件 组合成一个模块或单元或组件, 以及此外可以把它们分成多个子模块或子单元或子组件。 除 了这样的特征和 /或过程或者单元中的至少一些是相互排斥之外, 可以釆用任何组合对本说明 书 (包括伴随的权利要求、 摘要和附图) 中公开的所有特征以及如此公开的任何方法或者设 备的所有过程或单元进行组合。 除非另外明确陈述, 本说明书 (包括伴随的权利要求、 摘要 和附图) 中公开的每个特征可以由提供相同、 等同或相似目的的替代特征来代替。  Those skilled in the art will appreciate that the modules in the devices of the embodiments can be adaptively changed and placed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and further they may be divided into a plurality of sub-modules or sub-units or sub-components. In addition to such features and/or at least some of the processes or units being mutually exclusive, any combination of the features disclosed in the specification, including the accompanying claims, the abstract and the drawings, and any methods so disclosed may be employed. Or combine all the processes or units of the device. Each feature disclosed in the specification (including the accompanying claims, the abstract and the drawings) may be replaced by alternative features that provide the same, equivalent or similar purpose.
此外, 本领域的技术人员能够理解, 尽管在此所述的一些实施例包括其它实施例中所包 括的某些特征而不是其它特征, 但是不同实施例的特征的组合意味着处于本发明的范围之内 并且形成不同的实施例。 例如, 在下面的权利要求书中, 所要求保护的实施例的任意之一都 可以以任意的组合方式来使用。  In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features that are not included in other embodiments, and other features, combinations of features of different embodiments are intended to be within the scope of the present invention. Different embodiments are formed and formed. For example, in the following claims, any one of the claimed embodiments can be used in any combination.
本发明的各个部件实施例可以以硬件实现, 或者以在一个或者多个处理器上运行的软件 模块实现, 或者以它们的组合实现。 本领域的技术人员应当理解, 可以在实践中使用微处理 器或者数字信号处理器 (DSP ) 来实现根据本发明实施例的通过链路拥塞时的动态路径调整 装置, 终端设备及系统中的一些或者全部部件的一些或者全部功能。 本发明还可以实现为用 于执行这里所描述的方法的一部分或者全部的设备或者装置程序 (例如, 计算机程序和计算 机程序产品)。这样的实现本发明的程序可以存储在计算机可读介盾上, 或者可以具有一个或 者多个信号的形式。 这样的信号可以从因特网网站上下载得到, 或者在载体信号上提供, 或 者以任何其他形式提供。  The various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or a digital signal processor (DSP) can be used in practice to implement dynamic path adjustment devices, some of the terminal devices and systems when the link is congested according to an embodiment of the present invention. Or some or all of the features of all components. The invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein. Such a program implementing the present invention may be stored on a computer readable shield or may have the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制, 并且本领域技术 人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。 在权利要求中, 不应将位 于括号之间的任何参考符号构造成对权利要求的限制。 单词 "包含" 不排除存在未列在权利 要求中的元件或步骤。 位于元件之前的单词 "一" 或 "一个" 不排除存在多个这样的元件。 本发明可以借助于包括有若千不同元件的硬件以及借助于适当编程的计算机来实现。 在列举 了若千装置的单元权利要求中, 这些装置中的若千个可以是通过同一个硬件项来具体体现。 单词第一、 第二、 以及第三等的使用不表示任何顺序。 可将这些单词解释为名称。  It is to be noted that the above-described embodiments are illustrative of the present invention and are not intended to limit the scope of the invention, and those skilled in the art can devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as a limitation. The word "comprising" does not exclude the presence of elements or steps that are not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising thousands of different elements and by means of a suitably programmed computer. In the unit claims enumerating the thousands of devices, thousands of these devices may be embodied by the same hardware item. The use of the words first, second, and third does not indicate any order. These words can be interpreted as names.
显然, 本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范 围。 这样, 倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内, 则 本发明也意图包含这些改动和变型在内。  It is apparent that those skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and the modifications

Claims

权 利 要 求 Rights request
1、 一种链路拥塞时的动态路径调整方法, 其特征在于, 该方法包括: A method for adjusting a dynamic path when a link is congested, characterized in that the method comprises:
标签边缘路由器根据待发送数据报文的预申请链路的带宽需求, 确定釆用 CSPF算法无 法为所述带宽需求分配 LSP标签交换路径时;  The label edge router determines, according to the bandwidth requirement of the pre-requested link of the data packet to be sent, that the CSPF algorithm cannot allocate the LSP label switching path for the bandwidth requirement;
所述标签边缘路由器根据所述带宽需求及所述待发送数据 4艮文的目的地址, 确定发送到 所述目的地址的每条 LSP;  Determining, by the label edge router, each LSP sent to the destination address according to the bandwidth requirement and the destination address of the to-be-sent data;
判断所述每条 LSP的预留带宽的和是否满足所述预申请链路的带宽需求;  Determining whether the sum of the reserved bandwidth of each LSP satisfies the bandwidth requirement of the pre-applied link;
当所述每条 LSP预留带宽的和满足所述预申请链路的带宽需求时,釆用所述每条 LSP发 送所述待发送数据艮文;  And sending, by each of the LSPs, the data to be sent, when the sum of the reserved bandwidth of each LSP meets the bandwidth requirement of the pre-applied link;
否则, 将待发送 ·ί艮文的该预申请链路的带宽需求加入到等待队列中。  Otherwise, the bandwidth requirement of the pre-application link to be sent is added to the waiting queue.
2、 如权利要求 1所述的方法, 其特征在于, 所述釆用所述每条 LSP发送所述待发送数 据报文包括:  2. The method according to claim 1, wherein the transmitting the data message to be sent by using each of the LSPs comprises:
根据所述每条 LSP的预留带宽, 为所述每条 LSP分配权重;  Allocating weights for each LSP according to the reserved bandwidth of each LSP;
根据分配的权重, 对所述预申请链路的带宽需求进行划分, 釆用每条 LSP传输所述带宽 需求划分后的带宽对应的数据报文。  The bandwidth requirement of the pre-applied link is divided according to the weight of the allocation, and each LSP is used to transmit the data packet corresponding to the bandwidth after the bandwidth requirement.
3、 如权利要求 1所述的方法, 其特征在于, 釆用所述每条 LSP发送所述待发送数据报 文包括:  The method of claim 1, wherein the sending the data message to be sent by using each of the LSPs includes:
确定所述每条 LSP中包含最少跳数的 LSP,釆用所述包含最少跳数 LSP的预留带宽传输 所述数据艮文; 并  Determining, by using the reserved bandwidth of the minimum hop LSP, the LSP that contains the minimum number of hops in each LSP; and
根据确定的其他每条 LSP的预留带宽, 将剩余的所述数据报文的带宽需求进行划分, 釆 用其他每条 LSP传输对应的数据报文。  The bandwidth requirements of the remaining data packets are divided according to the determined reserved bandwidth of each of the other LSPs, and the corresponding data packets are transmitted by using each of the other LSPs.
4、 如权利要求 1所述的方法, 其特征在于, 所述釆用所述每条 LSP发送所述待发送数 据报文包括:  The method of claim 1, wherein the sending, by the each LSP, the to-be-sent data message comprises:
将所述带宽需求进行等分, 首先将带宽需求 2等分;  Dividing the bandwidth requirements into equal parts, first dividing the bandwidth requirement by 2;
当不存在与每个 2等分后的带宽需求匹配的 LSP时, 将带宽需求 4等分;  When there is no LSP matching the bandwidth requirement after each halving, the bandwidth requirement is equally divided into 4;
当存在时, 釆用所述 LSP传输 4等分后每个带宽需求对应的数据报文;  When present, the LSP is used to transmit a data packet corresponding to each bandwidth requirement after 4 equal divisions;
当不存在与每个 4等分后的带宽需求匹配的 LSP时, 将带宽需求 8等分, 其中, 将所述 带宽需求根据所述待发送数据报文中的差分服务代码点的数值值进行等分。  When there is no LSP that matches the bandwidth requirement of each of the four equal parts, the bandwidth requirement is equally divided into eight, wherein the bandwidth requirement is performed according to the value of the differential service code point in the to-be-sent data message. Equally divided.
5、 如权利要求 1~4任一项所述的方法, 其特征在于, 所述方法还包括: 在每条 LSP传输的数据报文中添加标签, 该标签用于指示另一标签边缘路由器组装所述 每条 LSP传输的数据报文。 The method according to any one of claims 1 to 4, wherein the method further comprises: A label is added to the data packet transmitted by each LSP, and the label is used to instruct another label edge router to assemble the data packet transmitted by each LSP.
6、 一种链路拥塞时的动态路径调整装置, 其特征在于, 所述装置包括:  6. A dynamic path adjustment apparatus when a link is congested, wherein the apparatus comprises:
确定模块, 用于根据待发送数据报文的预申请链路的带宽需求, 确定釆用 CSPF算法无 法为所述带宽需求分配 LSP标签交换路径时; 根据所述带宽需求及所述待发送数据报文的目 的地址, 确定发送到所述目的地址的每条 LSP;  a determining module, configured to determine, according to the bandwidth requirement of the pre-requested link of the data packet to be sent, that the CSPF algorithm cannot allocate an LSP label switching path for the bandwidth requirement; according to the bandwidth requirement and the to-be-sent datagram The destination address of the text, determining each LSP sent to the destination address;
判断模块, 用于判断所述每条 LSP预留带宽的和是否满足所述预申请链路的带宽需求; 发送模块, 用于当判断模块判断每条 LSP预留带宽的和满足所述预申请链路的带宽需求 时, 釆用所述每条 LSP发送所述待发送数据报文;  a determining module, configured to determine whether the sum of the reserved bandwidth of each LSP meets the bandwidth requirement of the pre-applied link; and the sending module is configured to: when the determining module determines the sum of the reserved bandwidth of each LSP, the pre-application is satisfied When the bandwidth of the link is required, the data packet to be sent is sent by using each LSP;
路径调整模块, 用于当判断模块判断每条 LSP预留带宽的和不满足所述预申请链路的带 宽需求时, 将待发送 ·ί艮文的该预申请链路的带宽需求加入到等待队列中。  a path adjustment module, configured to: when the determining module determines that the reserved bandwidth of each LSP does not satisfy the bandwidth requirement of the pre-applied link, adding the bandwidth requirement of the pre-application link to be sent to the waiting In the queue.
7、 如权利要求 6所述的装置, 其特征在于, 所述发送模块, 具体用于根据所述每条 LSP 的预留带宽, 为所述每条 LSP分配权重; 根据分配的权重, 对所述预申请链路的带宽需求进 行划分; 釆用每条 LSP传输所述带宽需求划分后的带宽对应的数据 4艮文。  The device according to claim 6, wherein the sending module is configured to allocate weights to each of the LSPs according to the reserved bandwidth of each LSP; The bandwidth requirement of the pre-application link is divided; the data corresponding to the bandwidth after the bandwidth requirement is transmitted by each LSP.
8、 如权利要求 6所述的装置, 其特征在于, 所述发送模块, 具体用于确定所述每条 LSP 中包含最少跳数的 LSP, 釆用所述包含最少跳数 LSP的预留带宽传输所述数据报文; 并根据 确定的其他每条 LSP的预留带宽, 将剩余的所述数据报文的带宽需求进行划分, 釆用其他每 条 LSP传输对应的数据报文。  The device according to claim 6, wherein the sending module is specifically configured to determine an LSP that includes a minimum number of hops in each LSP, and use the reserved bandwidth that includes the minimum hop LSP Transmitting the data packet; and dividing the bandwidth requirement of the remaining data packet according to the determined reserved bandwidth of each of the other LSPs, and transmitting the corresponding data packet by using each of the other LSPs.
9、 如权利要求 6所述的装置, 其特征在于, 所述发送模块, 具体用于将所述带宽需求进 行等分, 首先将带宽需求 2等分; 当不存在与每个 2等分后的带宽需求匹配的 LSP时, 将带 宽需求 4等分; 当存在时, 釆用所述 LSP传输 4等分后每个带宽需求对应的数据 4艮文; 当不 存在与每个 4等分后的带宽需求匹配的 LSP时, 将带宽需求 8等分, 其中, 将所述带宽需求 根据所述待发送数据报文中的差分服务代码点的数值值进行等分。  The device of claim 6, wherein the sending module is specifically configured to divide the bandwidth requirement into equal parts, first dividing the bandwidth requirement by 2; when there is no equalization with each 2 When the bandwidth requirement matches the LSP, the bandwidth requirement is equally divided into 4; when it exists, the data corresponding to each bandwidth requirement after the LSP is transmitted by 4 is divided into 4; when there is no equalization with each 4; When the bandwidth requirement matches the LSP, the bandwidth requirement is equally divided into eight, wherein the bandwidth requirement is equally divided according to the value of the differential service code point in the to-be-sent data message.
10、 如权利要求 6~9任一项所述的装置, 其特征在于, 所述装置还包括: 标签添加模块, 用于在每条 LSP传输的数据报文中添加标签, 该标签用于指示另一标签 边缘路由器组装所述每条 LSP传输的数据报文。  The device according to any one of claims 6 to 9, wherein the device further comprises: a label adding module, configured to add a label to the data packet transmitted by each LSP, the label is used to indicate Another label edge router assembles the data message transmitted by each LSP.
PCT/CN2014/082623 2014-07-09 2014-07-21 Dynamic path adjustment method and apparatus for link congestion WO2016004647A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410325939.5A CN104202246A (en) 2014-07-09 2014-07-09 Dynamic path adjustment method and device for link congestion
CN201410325939.5 2014-07-09

Publications (1)

Publication Number Publication Date
WO2016004647A1 true WO2016004647A1 (en) 2016-01-14

Family

ID=52087476

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/082623 WO2016004647A1 (en) 2014-07-09 2014-07-21 Dynamic path adjustment method and apparatus for link congestion

Country Status (2)

Country Link
CN (1) CN104202246A (en)
WO (1) WO2016004647A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106850301A (en) * 2017-02-14 2017-06-13 深圳市风云实业有限公司 A kind of tunnel configuration mode based on intention
CN112311695B (en) * 2020-10-21 2022-09-30 中国科学院计算技术研究所 On-chip bandwidth dynamic allocation method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1622524A (en) * 2004-12-17 2005-06-01 北京邮电大学 Alleviation adjusting method for mobile IP burst flow
CN102123089A (en) * 2011-02-21 2011-07-13 杭州华三通信技术有限公司 Tunnel establishing method and device
CN103379042A (en) * 2012-04-25 2013-10-30 丛林网络公司 Path weighted equal-cost multipath

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2876525A1 (en) * 2004-10-08 2006-04-14 France Telecom METHOD AND DEVICE FOR CREATING A TUNNEL IN A LABEL SWITCHED TELECOMMUNICATION NETWORK
CN101127689B (en) * 2006-08-15 2010-10-13 中国电信股份有限公司 Method for minimizing priority seizing cost
CN101938422A (en) * 2010-09-16 2011-01-05 中兴通讯股份有限公司 Method and device for seizing tunnel in multi-protocol label switching (MPLS) traffic engineering

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1622524A (en) * 2004-12-17 2005-06-01 北京邮电大学 Alleviation adjusting method for mobile IP burst flow
CN102123089A (en) * 2011-02-21 2011-07-13 杭州华三通信技术有限公司 Tunnel establishing method and device
CN103379042A (en) * 2012-04-25 2013-10-30 丛林网络公司 Path weighted equal-cost multipath

Also Published As

Publication number Publication date
CN104202246A (en) 2014-12-10

Similar Documents

Publication Publication Date Title
US11909645B2 (en) Segment routing traffic engineering based on link utilization
US10892981B2 (en) Method and apparatus for segment routing and RSVP-TE routing in transport SDN networks
US8611335B1 (en) System and method for assigning paths for data flows through a wide-area network
CN101036355B (en) Method, system and device for inter-domain transmitting accessibility information
EP3043519B1 (en) Method, controller, forwarding device, and network system for forwarding packets
EP2892188B1 (en) Method for determining packet forwarding path, network device and control device
WO2018113586A1 (en) Network area division method, network device and system
EP3148131B1 (en) Address information publishing method and apparatus
KR20100021606A (en) Method for setting up a logic connecting path in a connection-oriented packet-switched communication network
CN105376162B (en) A kind of link-state information notifying method and equipment
CN101243648A (en) Method and apparatus for enabling routing of label switched data packets
CN101243654A (en) Method and apparatus for enabling routing of label switched data packets
CN108881017B (en) Method for changing bandwidth constraint of each hop in multi-path label switching path and router
CN108141410A (en) For the make-before-break mechanism of label switched path
CN105634941A (en) Cross-domain path calculation method and device
US20230084470A1 (en) Method and apparatus for controlling network traffic path
CN107078953A (en) The method divided for scalable computer network
WO2015196898A1 (en) Service path determining method and device
CN105684362B (en) Interworking between a first protocol entity of a stream reservation protocol and a second protocol entity of a routing protocol
WO2016004647A1 (en) Dynamic path adjustment method and apparatus for link congestion
WO2022166346A1 (en) Path determination method, network element, and computer-readable storage medium
US10397092B2 (en) Reducing flooding of route updates of a dynamic routing protocol
CN105634949B (en) A kind of network tab distribution, device, system and the network equipment
US9876675B1 (en) Packet transport shared mesh protection
Prabhavat et al. Load distribution with queuing delay bound over multipath networks: Rate control using stochastic delay prediction

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

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

Country of ref document: EP

Kind code of ref document: A1