WO2016000481A1 - Path switching method and network device - Google Patents

Path switching method and network device Download PDF

Info

Publication number
WO2016000481A1
WO2016000481A1 PCT/CN2015/077386 CN2015077386W WO2016000481A1 WO 2016000481 A1 WO2016000481 A1 WO 2016000481A1 CN 2015077386 W CN2015077386 W CN 2015077386W WO 2016000481 A1 WO2016000481 A1 WO 2016000481A1
Authority
WO
WIPO (PCT)
Prior art keywords
lsp
bandwidth
microwave link
microwave
available bandwidth
Prior art date
Application number
PCT/CN2015/077386
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 WO2016000481A1 publication Critical patent/WO2016000481A1/en

Links

Images

Definitions

  • the present invention relates to the field of communications and, more particularly, to a method and network device for path switching.
  • microwave bearing the bandwidth of the microwave carrier is subject to changes due to weather and other factors. When the weather is good, the bandwidth is large, the weather is bad, and the bandwidth is reduced. The bandwidth reduction naturally affects the quality of services, and some service packets may be discarded.
  • the embodiment of the invention provides a path switching method and a network device, which can improve the utilization of network bandwidth.
  • a method for path switching including:
  • the available bandwidth of the first microwave link of the first label switching path LSP is smaller than the first LSP.
  • the bandwidth switching threshold the first LSP needs to be switched.
  • the bandwidth switching threshold of the first LSP is based on the pre-configured priority of the first LSP and the pre-configured bandwidth switching threshold and the priority. Relationship determined;
  • the service in the first LSP is switched.
  • determining that the first LSP needs to be switched includes:
  • bandwidth change information of the first microwave link where the bandwidth change information of the first microwave link includes an available bandwidth of the first microwave link
  • the available bandwidth of the first microwave link is smaller than the bandwidth switching threshold of the first LSP, it is determined that the first LSP needs to be switched.
  • determining that the first LSP needs to be switched includes:
  • the bandwidth switching threshold of the LSP is determined by the intermediate node of the first LSP according to the pre-configured priority of the first LSP and the correspondence between the pre-configured bandwidth switching threshold and the priority.
  • the switching processing of the service in the first LSP includes:
  • the service in the first LSP is switched to the second LSP, where the second LSP is a backup LSP of the first LSP.
  • the switching processing of the service in the first LSP includes:
  • the switching notification message of the second LSP sent by the intermediate node of the second LSP is not received, and the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device is not received, the first The service in the LSP is switched to the second LSP, where the second The LSP is the backup LSP of the first LSP.
  • the switching processing of the service in the first LSP includes:
  • the service in the first LSP is switched to the second LSP.
  • the bandwidth change information of the first microwave link further includes a maximum bandwidth of the first microwave link
  • the switching processing of the service in the first LSP includes:
  • the switch notification message of the second LSP obtains, by the switch notification message of the second LSP, the available bandwidth of the second microwave link of the second LSP and the second, if the switch notification message of the second LSP is sent by the intermediate node of the second LSP
  • the maximum bandwidth of the microwave link or, if the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device is received, the current bandwidth is obtained from the bandwidth change information of the second microwave link.
  • the ratio of the available bandwidth of the second microwave link to the maximum bandwidth of the second microwave link is greater than the ratio of the available bandwidth of the first microwave link to the maximum bandwidth of the first microwave link.
  • the handover notification message of the first LSP carries the available bandwidth of the current first microwave link
  • the switching processing of the service in the first LSP includes:
  • the service in the first LSP is switched to the second LSP.
  • the handover notification message of the first LSP carries the available bandwidth of the first microwave link and the first microwave link. Maximum bandwidth
  • the switching processing of the service in the first LSP includes:
  • the switch notification message of the second LSP obtains, by the switch notification message of the second LSP, the available bandwidth of the second microwave link of the second LSP and the second, if the switch notification message of the second LSP is sent by the intermediate node of the second LSP
  • the maximum bandwidth of the microwave link or, if the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device is received, the current bandwidth is obtained from the bandwidth change information of the second microwave link.
  • the ratio of the available bandwidth of the second microwave link to the maximum bandwidth of the second microwave link is greater than the ratio of the available bandwidth of the first microwave link to the maximum bandwidth of the first microwave link.
  • a method for path switching including:
  • the available bandwidth of the first RRC link is smaller than the bandwidth switching threshold of the first LSP, send a handover notification message of the first LSP to the head node of the first LSP, so that the head node is configured according to the first LSP.
  • the handover notification message determines that the first LSP needs to be handed over.
  • the handover notification message of the first LSP carries the available bandwidth of the current first microwave link, or the available bandwidth of the first microwave link and the maximum of the first microwave link. bandwidth.
  • a network device including:
  • a determining module configured to determine, when the available bandwidth of the first microwave link of the first label switching path LSP is smaller than a bandwidth switching threshold of the first LSP, determining that the first LSP needs to be switched,
  • the bandwidth switching threshold of the first LSP is determined according to the pre-configured priority of the first LSP and the correspondence between the pre-configured bandwidth switching threshold and the priority;
  • the switching processing module is configured to perform switching processing on the service in the first LSP.
  • the network device further includes:
  • a first receiving module configured to receive bandwidth change information of the first microwave link that is sent by the first microwave device, where the bandwidth change information of the first microwave link includes an available bandwidth of the first microwave link;
  • the determining module is specifically configured to determine, according to the pre-configured priority of the first LSP and the pre-configured bandwidth switching threshold and the priority relationship, the first LSP that passes through the first microwave link. If the bandwidth of the first LSP is less than the bandwidth switching threshold of the first LSP, it is determined that the first LSP needs to be switched.
  • the network device further includes:
  • a second receiving module configured to receive a handover notification message of the first LSP sent by the intermediate node of the first LSP, where the handover notification message of the first LSP is used by the intermediate node of the first LSP in the first microwave chain
  • the bandwidth switching threshold of the first LSP is determined by the intermediate node of the first LSP according to the pre-configured priority of the first LSP and the pre-configured bandwidth switching threshold. The correspondence with the priority is determined;
  • the determining module is specifically configured to determine, according to the handover notification message of the first LSP, that the first LSP needs to be switched.
  • the switching processing module is specifically configured to switch the service in the first LSP to the second LSP.
  • the second LSP is a backup LSP of the first LSP.
  • the switching processing module is specifically configured to: if the network device does not receive the intermediate node of the second LSP Transmitting the service in the first LSP to the second LSP by receiving the handover notification message of the second LSP and not receiving the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device
  • the second LSP is a backup LSP of the first LSP.
  • the switching processing module is specifically used,
  • the available bandwidth of the second microwave link of the second LSP is obtained from the handover notification message of the second LSP. Or if the network device receives the bandwidth change information of the second microwave link of the second LSP that is sent by the second microwave device, acquiring the current second microwave link from the bandwidth change information of the second microwave link.
  • the service in the first LSP is switched to the second LSP.
  • the bandwidth change information of the first microwave link further includes a maximum bandwidth of the first microwave link
  • the switching processing module is specifically used,
  • the available bandwidth of the second microwave link of the second LSP is obtained from the handover notification message of the second LSP.
  • the maximum bandwidth of the second microwave link, or the bandwidth change from the second microwave link if the network device receives the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device Acquiring the current available bandwidth of the second microwave link and the maximum bandwidth of the second microwave link, where the second LSP is a backup LSP of the first LSP;
  • the ratio of the available bandwidth of the second microwave link to the maximum bandwidth of the second microwave link is greater than the ratio of the available bandwidth of the first microwave link to the maximum bandwidth of the first microwave link.
  • the handover notification message of the first LSP carries the available bandwidth of the current first microwave link
  • the switching processing module is specifically used,
  • the available bandwidth of the second microwave link of the second LSP is obtained from the handover notification message of the second LSP. Or if the network device receives the bandwidth change information of the second microwave link of the second LSP that is sent by the second microwave device, acquiring the current second microwave link from the bandwidth change information of the second microwave link. Available bandwidth, wherein the second LSP is the The backup LSP of the first LSP;
  • the service in the first LSP is switched to the second LSP.
  • the handover notification message of the first LSP carries the available bandwidth of the first microwave link and the first microwave link. Maximum bandwidth
  • the switching processing module is specifically used,
  • the available bandwidth of the second microwave link of the second LSP is obtained from the handover notification message of the second LSP.
  • the maximum bandwidth of the second microwave link, or the bandwidth change from the second microwave link if the network device receives the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device Acquiring the current available bandwidth of the second microwave link and the maximum bandwidth of the second microwave link, where the second LSP is a backup LSP of the first LSP;
  • the ratio of the available bandwidth of the second microwave link to the maximum bandwidth of the second microwave link is greater than the ratio of the available bandwidth of the first microwave link to the maximum bandwidth of the first microwave link.
  • a network device including:
  • a receiving module configured to receive bandwidth change information of the first microwave link sent by the first microwave device, where the bandwidth change information of the first microwave link includes an available bandwidth of the first microwave link;
  • a determining module configured to determine, according to a pre-configured priority of the first LSP and a pre-configured bandwidth switching threshold and a priority, for the first label switched path LSP passing through the first microwave link, determining the first The bandwidth switching threshold of the LSP;
  • a sending module configured to send, to the head node of the first LSP, a handover notification message of the first LSP, so that the head node of the first LSP is less than a bandwidth switching threshold of the first LSP And determining, according to the handover notification message of the first LSP, that the first LSP needs to be switched.
  • the handover notification message of the first LSP carries the available bandwidth of the current first microwave link, or the available bandwidth of the first microwave link and the first The maximum bandwidth of the microwave link.
  • the LSP when the available bandwidth of the LSP is smaller than the bandwidth switching threshold of the LSP, the LSP needs to be switched, and the service in the LSP is switched, where the LSP is processed.
  • the bandwidth switching threshold is determined according to the pre-configured priority of the LSP and the corresponding relationship between the pre-configured bandwidth switching threshold and the priority, and only part of the LSP can be switched, which can improve the utilization of the network bandwidth.
  • FIG. 1 is a schematic diagram of an application scenario of an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of a method for path switching according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of a method for path switching according to another embodiment of the present invention.
  • FIG. 4 is a schematic block diagram of a network device in accordance with an embodiment of the present invention.
  • FIG. 5 is a schematic block diagram of a network device according to another embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a network device according to still another embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a network device according to still another embodiment of the present invention.
  • FIG. 1 is a schematic diagram of an application scenario of an embodiment of the present invention.
  • the network device 110, the network device 120, the network device 130, and the network device 140 are respectively configured with two microwaves.
  • the backup device has the function of a Cell Site Gateway (CSG); the network device 150 and the network device 160 are respectively connected to a microwave device and have the function of an Aggregation Site Gateway (AGG).
  • CSG Cell Site Gateway
  • AAG Aggregation Site Gateway
  • Each network device transmits traffic through a microwave link between the microwave devices.
  • a traffic engineer (TE) tunnel is deployed on each network device. For each TE tunnel, two Label Switch Paths (LSPs) are generated.
  • TE traffic engineer
  • LSPs Label Switch Paths
  • LSP 181 network device 110 - network device 120 - network device 150
  • LSP 182 network device 110 - network device 130 - network device 140 - network device 160 - Network device 150
  • LSP 181 and LSP 182 can be backup LSPs. That is, one LSP is the primary LSP and the other LSP is the backup LSP.
  • LSP 181 is used as the primary LSP
  • LSP 182 is its backup LSP.
  • Different services are transmitted by using different TE tunnels. Specifically, one of the LSPs of the TE tunnel can be used for transmission. For example, the primary LSP is used for transmission.
  • the network device may be expressed as a router, a node, or a CSG/AGG, which is not limited by the present invention.
  • FIG. 2 shows a schematic flow diagram of a method 200 of path switching in accordance with an embodiment of the present invention.
  • the method 200 is performed by a head node of an LSP, such as the head node network device 120 of the LSP 191 of FIG. 1 or the head node network device 110 of the LSP 181.
  • the method 200 includes:
  • S220 Perform handover processing on the service in the first LSP.
  • the bandwidth switching threshold of the first LSP is determined according to the pre-configured priority of the first LSP and the corresponding relationship between the pre-configured bandwidth switching threshold and the priority. If the available bandwidth of the first LSP of the first LSP is smaller than the bandwidth switching threshold of the first LSP, the first LSP needs to be switched, and the service in the first LSP is switched. In this way, when the bandwidth of the first microwave link changes, only the LSPs whose bandwidth switching thresholds in all the LSPs that pass through the first microwave link are greater than the available bandwidth of the first microwave link are switched. All the LSPs of the first microwave link are switched, so that The first microwave link can continue to transmit a part of the service, so that the bandwidth resources of the network can be fully utilized.
  • the LSP needs to be switched, and the service in the LSP is switched.
  • the bandwidth switching threshold of the LSP is determined according to the pre-configured priority of the LSP and the corresponding relationship between the pre-configured bandwidth switching threshold and the priority, and only part of the LSP can be switched, which can improve the utilization of the network bandwidth.
  • determining that the first LSP needs to be switched includes:
  • bandwidth change information of the first microwave link where the bandwidth change information of the first microwave link includes an available bandwidth of the first microwave link
  • the available bandwidth of the first microwave link is smaller than the bandwidth switching threshold of the first LSP, it is determined that the first LSP needs to be switched.
  • the bandwidth change information of the microwave link is sent to the network device.
  • the bandwidth change information of the microwave link includes the available bandwidth of the current microwave link, and optionally, the maximum bandwidth of the microwave link.
  • the microwave device 122 in FIG. 1 detects that the microwave link 171 changes
  • the bandwidth change information of the microwave link 171 is transmitted to the network device 120.
  • the microwave device can transmit the bandwidth change information through 802.3ah or other protocols.
  • the network device can determine the bandwidth switching threshold of the LSP according to the pre-configured priority of the LSP and the pre-configured bandwidth switching threshold and the priority.
  • the priority of each LSP is pre-configured and the correspondence between the bandwidth switching threshold and the priority is pre-configured.
  • the priority of the LSP can be configured at the head node of the LSP.
  • the priority of the LSP from network device 110 to network device 150 is configured at network device 110.
  • the priority of the LSP is configured according to different services, for example, the priority of the LSP of the voice service is 10, the priority of the LSP of the data service is 8, and the priority of the LSP of the operation maintenance (OM) service is 15. Wait.
  • the priority of the LSP in the embodiment of the present invention may also be changed to the priority of the TE tunnel or the priority of the TE LSP, and these transformations are also included in the protection scope of the present invention.
  • the correspondence between the bandwidth switching threshold and the priority can be configured on each node of the LSP. Specifically, it can be configured on an interface where the network device is connected to the microwave device. For example, in FIG. 1, the following correspondence may be configured on the interface where the network device 120 is connected to the microwave device 122:
  • the network device After receiving the bandwidth change information of the microwave link, the network device determines the LSP according to the pre-configured priority of the LSP and the pre-configured bandwidth switching threshold and the priority of each LSP passing through the microwave link. Bandwidth switching threshold.
  • the bandwidth switching threshold is determined according to the priority for each LSP passing through the microwave link 171. Assuming that there are currently two LSPs passing through the microwave link 171, their priorities are 10 and 8, respectively, according to the above correspondence, it can be determined that their bandwidth switching thresholds are 600 and 700, respectively.
  • the network device After determining the bandwidth switching threshold of the LSP, the network device compares the bandwidth switching threshold of the LSP with the available bandwidth of the current microwave link, and selects an LSP whose current bandwidth of the microwave link is smaller than the bandwidth switching threshold of the LSP. If the network device is the head node of the LSP, it is determined that the LSP needs to be switched, and the service in the LSP is switched.
  • the available bandwidth of the current microwave link 171 included in the bandwidth change information of the microwave link 171 is 650. If the bandwidth threshold of the LSP 191 is 700, the LSP 191 needs to be switched. Since the network device 120 is the head node of the LSP 191, the network device 120 can perform handover processing on the traffic in the LSP 191.
  • the network device If the network device is an intermediate node of the LSP, the network device sends a handover notification message of the LSP to the head node of the LSP, and the head node determines, according to the handover notification message of the LSP, that the LSP needs to be switched.
  • the available bandwidth of the current microwave link 171 included in the bandwidth change information of the microwave link 171 is 650. If the bandwidth threshold of the LSP 181 is 700, since the network device 120 is an intermediate node of the LSP 181, the network device 120 can provide the network device to the network device. 110 sends LSP 181 switch Notification message. The network device 110 determines that the LSP 181 needs to be handed over according to the handover notification message of the LSP 181.
  • determining that the first LSP needs to be switched includes:
  • the bandwidth switching threshold of the LSP is determined by the intermediate node of the first LSP according to the pre-configured priority of the first LSP and the correspondence between the pre-configured bandwidth switching threshold and the priority.
  • the switching of the services in the first LSP by the head node of the first LSP may be performed in various manners, which are respectively described below.
  • the switching processing of the service in the first LSP includes:
  • the service in the first LSP is switched to the second LSP, where the second LSP is a backup LSP of the first LSP.
  • the second LSP is a backup LSP of the first LSP.
  • LSP 181 is the first LSP
  • LSP 182 is the second LSP
  • LSP 191 is the first LSP
  • LSP 192 is the second LSP.
  • the head node of the first LSP directly switches the service in the first LSP to the second LSP when determining that the first LSP needs to be handed over.
  • the network device 110 directly switches the traffic in the LSP 181 to the LSP 182 when it is determined that the LSP 181 needs to be handed over.
  • the switching processing of the service in the first LSP includes:
  • the switching notification message of the second LSP sent by the intermediate node of the second LSP is not received, and the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device is not received, the first The service in the LSP is switched to the second LSP, where the second LSP is a backup LSP of the first LSP.
  • the first node of the first LSP when determining that the first LSP needs to be handed over, the first node of the first LSP first determines whether the second LSP also needs to be switched, such as determining a microwave link of the second LSP (indicated as the first Whether the second microwave link is normal (that is, whether the bandwidth changes), and then determining whether to switch the service in the first LSP to the second LSP.
  • the head node does not receive the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device, indicating that the microwave link connected to the head node in the second LSP is normal.
  • the head node does not receive the handover notification message of the second LSP sent by the intermediate node of the second LSP, indicating that the intermediate node of the second LSP does not require handover.
  • the head node switches the service in the first LSP to the second LSP if the two conditions are met.
  • the network device 110 does not receive the bandwidth change information of the microwave link 173 sent by the microwave device 111, indicating that the microwave link 173 of the LSP 182 is normal; the network device 110 does not have A handover notification message of the LSP 182 sent by the network device 130 or the network device 140 is received, indicating that the network device 130 or the network device 140 does not require handover of the LSP 182. In this case, network device 110 switches the traffic in LSP 181 to LSP 182.
  • the network device 120 does not receive the bandwidth change information of the microwave link 172 sent by the microwave device 121, indicating that the microwave link 172 of the LSP 192 is normal; the network device 120 does not receive
  • the handover notification message to the LSP 192 sent by the network device 110, the network device 130, or the network device 140 indicates that the network device 110, the network device 130, or the network device 140 does not require handover of the LSP 192. In this case, network device 120 switches the traffic in LSP 191 to LSP 192.
  • the switching processing of the service in the first LSP includes:
  • the service in the first LSP is switched to the second LSP.
  • the head node may be in the When the available bandwidth of the second microwave link is greater than the available bandwidth of the first microwave link, the service in the first LSP is switched to the second LSP.
  • the head node obtains the available bandwidth of the first microwave link from the bandwidth change information of the first microwave link.
  • the handover notification message of the first LSP carries the available bandwidth of the first microwave link, and the head node obtains the available bandwidth of the first microwave link from the handover notification message of the first LSP.
  • the available bandwidth of the second microwave link of the second LSP is obtained from the handover notification message of the second LSP. Or if the head node receives the bandwidth change information of the second microwave link of the second LSP that is sent by the second microwave device, acquiring the current second microwave link from the bandwidth change information of the second microwave link. Available bandwidth. Then, the head node compares the available bandwidth of the current second microwave link with the current available bandwidth of the first microwave link, if the available bandwidth of the second microwave link is greater than the current first microwave link. If the available bandwidth is used, the service in the first LSP is switched to the second LSP.
  • the switching processing of the service in the first LSP includes:
  • the switch notification message of the second LSP obtains, by the switch notification message of the second LSP, the available bandwidth of the second microwave link of the second LSP and the second, if the switch notification message of the second LSP is sent by the intermediate node of the second LSP
  • the maximum bandwidth of the microwave link or, if the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device is received, the current bandwidth is obtained from the bandwidth change information of the second microwave link.
  • the ratio of the available bandwidth of the second microwave link to the maximum bandwidth of the second microwave link is greater than the ratio of the available bandwidth of the first microwave link to the maximum bandwidth of the first microwave link.
  • the ratio of the available bandwidth of the second microwave link to the maximum bandwidth of the second microwave link is greater than the current first microwave.
  • the service in the first LSP is switched to the second LSP.
  • the head node obtains the current available bandwidth of the first microwave link and the maximum bandwidth of the first microwave link from the bandwidth change information of the first microwave link.
  • the switching notification message of the first LSP carries the current first microwave link.
  • the bandwidth and the maximum bandwidth of the first microwave link are used.
  • the head node obtains the current available bandwidth of the first microwave link and the maximum bandwidth of the first microwave link from the handover notification message of the first LSP.
  • the available bandwidth of the second microwave link of the second LSP is obtained from the handover notification message of the second LSP.
  • the maximum bandwidth of the second microwave link, or the bandwidth change from the second microwave link if the head node receives the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device The information obtains the available bandwidth of the current second microwave link and the maximum bandwidth of the second microwave link. Then, the head node compares the ratio of the available bandwidth of the second microwave link to the maximum bandwidth of the second microwave link, and the current available bandwidth of the first microwave link and the maximum bandwidth of the first microwave link.
  • the handover notification message in the embodiment of the present invention may be implemented by using a Path Error packet of a Resource Reservation Protocol (RSVP).
  • RSVP Resource Reservation Protocol
  • the following format can be used:
  • IPv4 ErrorNode Address (4 bytes): The IPv4 address of the node that sent the message.
  • Flags (1 Byte): 0x01 indicates that tangent is required; 0x00 indicates that back-cutting is required; where tangent indicates that the service is switched from the LSP to the backup LSP, and the switchback indicates that the service is switched back to the LSP from the backup LSP.
  • Link Max BW Value (4 bytes): The maximum bandwidth of the link.
  • Link Available Value (4 bytes): The available bandwidth of the current link.
  • the path switching method of the embodiment of the present invention determines the bandwidth switching threshold of the LSP according to the pre-configured priority of the LSP and the pre-configured bandwidth switching threshold and the priority.
  • the available bandwidth of the current microwave link is smaller than the bandwidth of the LSP.
  • the method of path switching according to an embodiment of the present invention is described in detail above from the perspective of a head node of an LSP.
  • the method of path switching according to an embodiment of the present invention is described below from the perspective of an intermediate node of an LSP.
  • FIG. 3 shows a schematic flow chart of a method 300 for path switching according to another embodiment of the present invention.
  • the method 300 is performed by an intermediate node of the LSP. As shown in FIG. 3, the method 300 includes:
  • S310 Receive bandwidth change information of the first microwave link sent by the first microwave device, where the bandwidth change information of the first microwave link includes an available bandwidth of the first microwave link.
  • the path switching method of the embodiment of the present invention determines the bandwidth switching threshold of the LSP according to the pre-configured priority of the LSP and the pre-configured bandwidth switching threshold and the priority.
  • the available bandwidth of the current microwave link is smaller than the bandwidth of the LSP.
  • the handover notification message of the first LSP carries the available bandwidth of the first microwave link, or the available bandwidth of the first microwave link and the first microwave link. Maximum bandwidth.
  • the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be taken to the embodiments of the present invention.
  • the implementation process constitutes any limitation.
  • a method of path switching according to an embodiment of the present invention is described in detail above, and a network device according to an embodiment of the present invention will be described below.
  • FIG. 4 shows a schematic block diagram of a network device 400 in accordance with an embodiment of the present invention.
  • the network device 400 includes:
  • the determining module 410 is configured to determine, when the available bandwidth of the first microwave link of the first label switching path LSP is smaller than the bandwidth switching threshold of the first LSP, where the first LSP needs to be switched, where the first LSP is
  • the bandwidth switching threshold is determined according to the pre-configured priority of the first LSP and the correspondence between the pre-configured bandwidth switching threshold and the priority;
  • the handover processing module 420 is configured to perform handover processing on the service in the first LSP.
  • the network device of the embodiment of the present invention determines that the LSP needs to be handed over, and performs handover processing on the service in the LSP, where the available bandwidth of the LSP is smaller than the bandwidth switching threshold of the LSP, where the LSP is switched.
  • the bandwidth switching threshold is determined according to the pre-configured priority of the LSP and the corresponding relationship between the pre-configured bandwidth switching threshold and the priority, and only part of the LSP can be switched, which can improve the utilization of the network bandwidth.
  • the network device 400 further includes:
  • a first receiving module configured to receive bandwidth change information of the first microwave link that is sent by the first microwave device, where the bandwidth change information of the first microwave link includes an available bandwidth of the first microwave link;
  • the determining module 410 is specifically configured to: determine, according to a pre-configured priority of the first LSP and a pre-configured bandwidth switching threshold and a priority, for the first LSP that passes the first microwave link, determine the first LSP If the bandwidth of the first LSP is less than the bandwidth switching threshold of the first LSP, it is determined that the first LSP needs to be switched.
  • the network device 400 further includes:
  • a second receiving module configured to receive a handover notification message of the first LSP sent by the intermediate node of the first LSP, where the handover notification message of the first LSP is used by the intermediate node of the first LSP in the first microwave chain
  • the bandwidth switching threshold of the first LSP is determined by the intermediate node of the first LSP according to the pre-configured priority of the first LSP and the pre-configured bandwidth switching threshold. The correspondence with the priority is determined;
  • the determining module 410 is specifically configured to determine that the first LSP needs to be switched according to the handover notification message of the first LSP.
  • the switching processing module 420 is specifically configured to switch the service in the first LSP to the second LSP, where the second LSP is a backup LSP of the first LSP.
  • the switching processing module 420 is specifically configured to: if the network device does not receive the handover notification message of the second LSP sent by the intermediate node of the second LSP, and does not receive the second microwave
  • the bandwidth change information of the second microwave link of the second LSP sent by the device is used to switch the service in the first LSP to the second LSP, where the second LSP is a backup LSP of the first LSP.
  • the switching processing module 420 is specifically configured to:
  • the available bandwidth of the second microwave link of the second LSP is obtained from the handover notification message of the second LSP. Or if the network device receives the bandwidth change information of the second microwave link of the second LSP that is sent by the second microwave device, acquiring the current second microwave link from the bandwidth change information of the second microwave link. Available bandwidth, wherein the second LSP is the The backup LSP of the first LSP;
  • the service in the first LSP is switched to the second LSP.
  • the bandwidth change information of the first microwave link further includes a maximum bandwidth of the first microwave link
  • the switching processing module 420 is specifically configured to:
  • the available bandwidth of the second microwave link of the second LSP is obtained from the handover notification message of the second LSP.
  • the maximum bandwidth of the second microwave link, or the bandwidth change from the second microwave link if the network device receives the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device Acquiring the current available bandwidth of the second microwave link and the maximum bandwidth of the second microwave link, where the second LSP is a backup LSP of the first LSP;
  • the ratio of the available bandwidth of the second microwave link to the maximum bandwidth of the second microwave link is greater than the ratio of the available bandwidth of the first microwave link to the maximum bandwidth of the first microwave link.
  • the handover notification message of the first LSP carries the available bandwidth of the current first microwave link
  • the switching processing module 420 is specifically configured to:
  • the available bandwidth of the second microwave link of the second LSP is obtained from the handover notification message of the second LSP. Or if the network device receives the bandwidth change information of the second microwave link of the second LSP that is sent by the second microwave device, acquiring the current second microwave link from the bandwidth change information of the second microwave link.
  • the service in the first LSP is switched to the second LSP.
  • the handover notification message of the first LSP carries the available bandwidth of the first microwave link and the maximum bandwidth of the first microwave link;
  • the switching processing module 420 is specifically configured to:
  • the available bandwidth of the second microwave link of the second LSP is obtained from the handover notification message of the second LSP.
  • the maximum bandwidth of the second microwave link, or the bandwidth change from the second microwave link if the network device receives the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device Acquiring the current available bandwidth of the second microwave link and the maximum bandwidth of the second microwave link, where the second LSP is a backup LSP of the first LSP;
  • the ratio of the available bandwidth of the second microwave link to the maximum bandwidth of the second microwave link is greater than the ratio of the available bandwidth of the first microwave link to the maximum bandwidth of the first microwave link.
  • the network device 400 may correspond to an execution body of the method 200 of path switching according to an embodiment of the present invention, and the above and other operations and/or functions of the respective modules in the network device 400 respectively implement the foregoing respective methods
  • the corresponding process for the sake of brevity, will not be described here.
  • FIG. 5 shows a schematic block diagram of a network device 500 in accordance with an embodiment of the present invention.
  • the network device 500 includes:
  • the receiving module 510 is configured to receive bandwidth change information of the first microwave link that is sent by the first microwave device, where the bandwidth change information of the first microwave link includes an available bandwidth of the first microwave link.
  • the determining module 520 is configured to determine, according to a pre-configured priority of the first LSP and a pre-configured bandwidth switching threshold and a priority, for the first label switched path LSP that passes through the first microwave link.
  • the bandwidth switching threshold of an LSP is configured to determine, according to a pre-configured priority of the first LSP and a pre-configured bandwidth switching threshold and a priority, for the first label switched path LSP that passes through the first microwave link.
  • the sending module 530 is configured to: if the available bandwidth of the first microwave link is smaller than the bandwidth switching threshold of the first LSP, send a handover notification message of the first LSP to the head node of the first LSP, so that the header The node determines, according to the handover notification message of the first LSP, that the first LSP needs to be switched.
  • the handover notification message of the first LSP carries the available bandwidth of the first microwave link, or the available bandwidth of the first microwave link and the first microwave link. Maximum bandwidth.
  • Network device 500 in accordance with an embodiment of the present invention may correspond to a path in accordance with an embodiment of the present invention
  • the above-mentioned and other operations and/or functions of the respective modules in the network device 500 are respectively implemented in order to implement the respective processes of the foregoing various methods, and are not described herein again for brevity.
  • the network device of the embodiment of the present invention determines the bandwidth switching threshold of the LSP according to the pre-configured priority of the LSP and the pre-configured bandwidth switching threshold and the priority, and the available bandwidth of the current microwave link is smaller than the bandwidth switching gate of the LSP.
  • the head node of the LSP is notified to switch the services in the LSP, so that different services can be transmitted in different microwave links, thereby improving the utilization of the network bandwidth.
  • FIG. 6 shows a structure of a network device according to still another embodiment of the present invention, including at least one processor 602 (for example, a CPU), at least one network interface 605 or other communication interface, a memory 606, and at least one communication bus 603. Used to implement connection communication between these components.
  • the processor 602 is configured to execute executable modules, such as computer programs, stored in the memory 606.
  • the memory 606 may include a high speed random access memory (RAM), and may also include a non-volatile memory such as at least one disk memory.
  • a communication connection with at least one other network element is achieved by at least one network interface 605 (which may be wired or wireless).
  • the memory 606 stores a program 6061
  • the processor 602 executes the program 6061 for performing the following operations:
  • the bandwidth switching threshold of the first LSP is according to the Determining the pre-configured priority of the first LSP and the correspondence between the pre-configured bandwidth switching threshold and the priority;
  • the service in the first LSP is switched.
  • the processor 602 is specifically configured to:
  • the bandwidth switching threshold of the first LSP Determining the bandwidth switching threshold of the first LSP according to the pre-configured priority of the first LSP and the pre-configured bandwidth switching threshold and the priority of the first LSP. Currently, the available bandwidth of the first microwave link is smaller than the bandwidth of the first LSP. If the threshold is switched, it is determined that the first LSP needs to be switched.
  • the processor 602 is specifically configured to:
  • the processor 602 is specifically configured to: switch the service in the first LSP to the second LSP, where the second LSP is a backup LSP of the first LSP.
  • the processor 602 is specifically configured to: if the network device does not receive the handover notification message of the second LSP sent by the intermediate node of the second LSP, and does not receive the second LSP sent by the second microwave device The bandwidth change information of the second LSP is switched to the second LSP, where the second LSP is a backup LSP of the first LSP.
  • the processor 602 is specifically configured to:
  • the available bandwidth of the second microwave link of the second LSP is obtained from the handover notification message of the second LSP. Or if the network device receives the bandwidth change information of the second microwave link of the second LSP that is sent by the second microwave device, acquiring the current second microwave link from the bandwidth change information of the second microwave link.
  • the service in the first LSP is switched to the second LSP.
  • the bandwidth change information of the first microwave link further includes a maximum bandwidth of the first microwave link.
  • the processor 602 is specifically configured to:
  • the available bandwidth of the second microwave link of the second LSP is obtained from the handover notification message of the second LSP.
  • the maximum bandwidth of the second microwave link or if the network device receives the bandwidth change signal of the second microwave link of the second LSP sent by the second microwave device Obtaining, from the bandwidth change information of the second microwave link, the available bandwidth of the second microwave link and the maximum bandwidth of the second microwave link, where the second LSP is a backup of the first LSP LSP;
  • the ratio of the available bandwidth of the second microwave link to the maximum bandwidth of the second microwave link is greater than the ratio of the available bandwidth of the first microwave link to the maximum bandwidth of the first microwave link.
  • the handover notification message of the first LSP carries the available bandwidth of the current first microwave link
  • the processor 602 is specifically configured to:
  • the available bandwidth of the second microwave link of the second LSP is obtained from the handover notification message of the second LSP. Or if the network device receives the bandwidth change information of the second microwave link of the second LSP that is sent by the second microwave device, acquiring the current second microwave link from the bandwidth change information of the second microwave link.
  • the service in the first LSP is switched to the second LSP.
  • the handover notification message of the first LSP carries the available bandwidth of the first microwave link and the maximum bandwidth of the first microwave link.
  • the processor 602 is specifically configured to:
  • the available bandwidth of the second microwave link of the second LSP is obtained from the handover notification message of the second LSP.
  • the maximum bandwidth of the second microwave link, or the bandwidth change from the second microwave link if the network device receives the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device Acquiring the current available bandwidth of the second microwave link and the maximum bandwidth of the second microwave link, where the second LSP is a backup LSP of the first LSP;
  • the ratio of the available bandwidth of the second microwave link to the maximum bandwidth of the second microwave link is greater than the ratio of the available bandwidth of the first microwave link to the maximum bandwidth of the first microwave link.
  • the LSP when the available bandwidth of the LSP is smaller than the bandwidth switching threshold of the LSP, the LSP needs to be switched, and the LSP is in the LSP.
  • the service performs handover processing, where the bandwidth switching threshold of the LSP is determined according to the pre-configured priority of the LSP and the pre-configured bandwidth switching threshold and the priority, and only part of the LSP can be switched, and the network bandwidth can be improved. Utilization.
  • FIG. 7 shows a structure of a network device according to still another embodiment of the present invention, including at least one processor 702 (for example, a CPU), at least one network interface 705 or other communication interface, a memory 706, and at least one communication bus 703. Used to implement connection communication between these components.
  • the processor 702 is configured to execute executable modules, such as computer programs, stored in the memory 706.
  • the memory 706 may include a high speed random access memory (RAM), and may also include a non-volatile memory such as at least one disk memory.
  • a communication connection with at least one other network element is achieved by at least one network interface 705 (which may be wired or wireless).
  • the memory 706 stores a program 7061, and the processor 702 executes the program 7061 for performing the following operations:
  • the available bandwidth of the first RRC link is smaller than the bandwidth switching threshold of the first LSP, send a handover notification message of the first LSP to the head node of the first LSP through the network interface 705, so that the The handover notification message of the first LSP determines that the first LSP needs to be switched.
  • the handover notification message of the first LSP carries the available bandwidth of the first microwave link, or the available bandwidth of the first microwave link and the maximum bandwidth of the first microwave link.
  • the embodiments of the present invention are based on The pre-configured priority of the LSP and the pre-configured bandwidth switching threshold and the priority are used to determine the bandwidth switching threshold of the LSP.
  • the available bandwidth of the current microwave link is smaller than the bandwidth switching threshold of the LSP, the head node of the LSP is notified to the LSP.
  • the switching service in the service can make different services transmit in different microwave links, thereby improving the utilization of network bandwidth.
  • the term "and/or” is merely an association relationship describing an associated object, indicating that there may be three relationships.
  • a and/or B may indicate that A exists separately, and A and B exist simultaneously, and B cases exist alone.
  • the character "/" in this article generally indicates that the contextual object is an "or" relationship.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, or an electrical, mechanical or other form of connection.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
  • each functional unit in various embodiments of the present invention may be integrated in one processing unit
  • each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

Disclosed in the present invention are a path switching method and a network device. The method includes: under the circumstance that the available bandwidth of a first microwave link of a first LSP is less than the bandwidth switching threshold of the first LSP, determining that the first LSP requires to be switched, and the bandwidth switching threshold of the first LSP is determined according to pre-configured priority of the first LSP and the correspondence of the pre-configured bandwidth switching threshold and the priority; performing switching processing for services of the first LSP. The path switching method and network device of the embodiments of the present invention can increase the utilization of the network bandwidth.

Description

路径切换的方法和网络设备Path switching method and network device
本申请要求于2014年6月30日提交中国专利局、申请号为CN 201410305615.5、发明名称为“路径切换的方法和网络设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims the priority of the Chinese Patent Application, which is filed on June 30, 2014, the Chinese Patent Application No. PCT Application No. in.
技术领域Technical field
本发明涉及通信领域,并且更具体地,涉及路径切换的方法和网络设备。The present invention relates to the field of communications and, more particularly, to a method and network device for path switching.
背景技术Background technique
移动互联网的发展越来越快,移动承载网的规模也越来越大。在一些岛国或对于光纤资源比较紧张的运营商,承载网的接入层很多采用了微波来承载。微波承载有一个问题,就是微波承载的带宽会受天气等因素的影响而发生变化。天气好的时候带宽就大,天气不好,带宽就降低。带宽降低自然就会影响业务的质量,导致有些业务报文可能会被丢弃。The development of mobile Internet is getting faster and faster, and the scale of mobile bearer network is getting bigger and bigger. In some island countries or operators with relatively tight fiber resources, the access layer of the bearer network is mostly carried by microwaves. One problem with microwave bearing is that the bandwidth of the microwave carrier is subject to changes due to weather and other factors. When the weather is good, the bandwidth is large, the weather is bad, and the bandwidth is reduced. The bandwidth reduction naturally affects the quality of services, and some service packets may be discarded.
实际组网的时候,从一个地点到另一个地点,至少会有两条不同的微波路径,这样就可以互相保护。当某条微波链路带宽因为天气或其他原因下降时,可以把某些业务切换到其他的路径上。In actual networking, there are at least two different microwave paths from one location to another, so that they can protect each other. When a certain microwave link bandwidth drops due to weather or other reasons, some services can be switched to other paths.
在现有的方案中,当微波链路带宽变化时,根据预定的规则改变链路的Cost(开销),再根据链路的Cost重新计算两点之间的最短路径,然后将业务切换到重新计算的最短路径。然而,在该方案中,所有的业务可能都会切换,导致网络带宽的利用率降低。In the existing solution, when the bandwidth of the microwave link changes, the cost of the link is changed according to a predetermined rule, and then the shortest path between the two points is recalculated according to the cost of the link, and then the service is switched to the restart. The shortest path to calculate. However, in this scenario, all services may switch, resulting in reduced network bandwidth utilization.
发明内容Summary of the invention
本发明实施例提供了一种路径切换的方法和网络设备,能够提高网络带宽的利用率。The embodiment of the invention provides a path switching method and a network device, which can improve the utilization of network bandwidth.
第一方面,提供了一种路径切换的方法,包括:In a first aspect, a method for path switching is provided, including:
在第一标签交换路径LSP的第一微波链路的可用带宽小于该第一LSP 的带宽切换门限的情况下,确定该第一LSP需要切换,其中,该第一LSP的带宽切换门限是根据该第一LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系确定的;The available bandwidth of the first microwave link of the first label switching path LSP is smaller than the first LSP. In the case of the bandwidth switching threshold, the first LSP needs to be switched. The bandwidth switching threshold of the first LSP is based on the pre-configured priority of the first LSP and the pre-configured bandwidth switching threshold and the priority. Relationship determined;
对该第一LSP中的业务进行切换处理。The service in the first LSP is switched.
结合第一方面,在第一种可能的实现方式中,确定该第一LSP需要切换,包括:With reference to the first aspect, in a first possible implementation manner, determining that the first LSP needs to be switched includes:
接收第一微波设备发送的该第一微波链路的带宽变化信息,该第一微波链路的带宽变化信息包括当前该第一微波链路的可用带宽;And receiving, by the first microwave device, bandwidth change information of the first microwave link, where the bandwidth change information of the first microwave link includes an available bandwidth of the first microwave link;
对于经过该第一微波链路的该第一LSP,根据该第一LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系,确定该第一LSP的带宽切换门限;Determining, by the first LSP of the first LSP, a bandwidth switching threshold of the first LSP according to a pre-configured priority of the first LSP and a corresponding relationship between a pre-configured bandwidth switching threshold and a priority;
若当前该第一微波链路的可用带宽小于该第一LSP的带宽切换门限,则确定该第一LSP需要切换。If the available bandwidth of the first microwave link is smaller than the bandwidth switching threshold of the first LSP, it is determined that the first LSP needs to be switched.
结合第一方面,在第二种可能的实现方式中,确定该第一LSP需要切换,包括:With reference to the first aspect, in a second possible implementation manner, determining that the first LSP needs to be switched includes:
接收该第一LSP的中间节点发送的该第一LSP的切换通知消息,其中,该第一LSP的切换通知消息由该第一LSP的中间节点在该第一微波链路的可用带宽小于该第一LSP的带宽切换门限时发送,该第一LSP的带宽切换门限由该第一LSP的中间节点根据该第一LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系确定;Receiving a handover notification message of the first LSP sent by the intermediate node of the first LSP, where the handover notification message of the first LSP is smaller than the available bandwidth of the intermediate node of the first LSP on the first microwave link When the bandwidth switching threshold of the LSP is sent, the bandwidth switching threshold of the first LSP is determined by the intermediate node of the first LSP according to the pre-configured priority of the first LSP and the correspondence between the pre-configured bandwidth switching threshold and the priority. ;
根据该第一LSP的切换通知消息,确定该第一LSP需要切换。And determining, according to the handover notification message of the first LSP, that the first LSP needs to be switched.
结合第一方面或第一方面的第一或二种可能的实现方式,在第三种可能的实现方式中,对该第一LSP中的业务进行切换处理,包括:With reference to the first aspect or the first or the second possible implementation manner of the first aspect, in a third possible implementation, the switching processing of the service in the first LSP includes:
将该第一LSP中的业务切换到第二LSP,其中,该第二LSP为该第一LSP的备份LSP。The service in the first LSP is switched to the second LSP, where the second LSP is a backup LSP of the first LSP.
结合第一方面或第一方面的第一或二种可能的实现方式,在第四种可能的实现方式中,对该第一LSP中的业务进行切换处理,包括:With reference to the first aspect or the first or the second possible implementation manner of the first aspect, in a fourth possible implementation, the switching processing of the service in the first LSP includes:
若没有接收到第二LSP的中间节点发送的该第二LSP的切换通知消息并且没有接收到第二微波设备发送的该第二LSP的第二微波链路的带宽变化信息,则将该第一LSP中的业务切换到该第二LSP,其中,该第二 LSP为该第一LSP的备份LSP。If the switching notification message of the second LSP sent by the intermediate node of the second LSP is not received, and the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device is not received, the first The service in the LSP is switched to the second LSP, where the second The LSP is the backup LSP of the first LSP.
结合第一方面的第一种可能的实现方式,在第五种可能的实现方式中,对该第一LSP中的业务进行切换处理,包括:With reference to the first possible implementation manner of the first aspect, in a fifth possible implementation, the switching processing of the service in the first LSP includes:
若接收到第二LSP的中间节点发送的该第二LSP的切换通知消息,则从该第二LSP的切换通知消息中获取当前该第二LSP的第二微波链路的可用带宽,或者,若接收到第二微波设备发送的该第二LSP的第二微波链路的带宽变化信息,则从该第二微波链路的带宽变化信息中获取当前该第二微波链路的可用带宽,其中,该第二LSP为该第一LSP的备份LSP;Obtaining the available bandwidth of the second microwave link of the second LSP from the handover notification message of the second LSP, or if the handover notification message of the second LSP sent by the intermediate node of the second LSP is received, or Receiving the bandwidth change information of the second microwave link of the second LSP that is sent by the second microwave device, and acquiring the available bandwidth of the second microwave link from the bandwidth change information of the second microwave link, where The second LSP is a backup LSP of the first LSP;
若当前该第二微波链路的可用带宽大于当前该第一微波链路的可用带宽,则将该第一LSP中的业务切换到该第二LSP。If the available bandwidth of the second microwave link is greater than the current available bandwidth of the first microwave link, the service in the first LSP is switched to the second LSP.
结合第一方面的第一种可能的实现方式,在第六种可能的实现方式中,第一微波链路的带宽变化信息还包括该第一微波链路的最大带宽;With reference to the first possible implementation manner of the first aspect, in a sixth possible implementation, the bandwidth change information of the first microwave link further includes a maximum bandwidth of the first microwave link;
该对该第一LSP中的业务进行切换处理,包括:The switching processing of the service in the first LSP includes:
若接收到第二LSP的中间节点发送的该第二LSP的切换通知消息,则从该第二LSP的切换通知消息中获取当前该第二LSP的第二微波链路的可用带宽和该第二微波链路的最大带宽,或者,若接收到第二微波设备发送的该第二LSP的第二微波链路的带宽变化信息,则从该第二微波链路的带宽变化信息中获取当前该第二微波链路的可用带宽和该第二微波链路的最大带宽,其中,该第二LSP为该第一LSP的备份LSP;Obtaining, by the switch notification message of the second LSP, the available bandwidth of the second microwave link of the second LSP and the second, if the switch notification message of the second LSP is sent by the intermediate node of the second LSP The maximum bandwidth of the microwave link, or, if the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device is received, the current bandwidth is obtained from the bandwidth change information of the second microwave link. The available bandwidth of the second LSP and the maximum bandwidth of the second radiant link, wherein the second LSP is a backup LSP of the first LSP;
若当前该第二微波链路的可用带宽与该第二微波链路的最大带宽的比值大于当前该第一微波链路的可用带宽与该第一微波链路的最大带宽的比值,则将该第一LSP中的业务切换到该第二LSP。If the ratio of the available bandwidth of the second microwave link to the maximum bandwidth of the second microwave link is greater than the ratio of the available bandwidth of the first microwave link to the maximum bandwidth of the first microwave link, The service in the first LSP is switched to the second LSP.
结合第一方面的第二种可能的实现方式,在第七种可能的实现方式中,该第一LSP的切换通知消息携带当前该第一微波链路的可用带宽;With reference to the second possible implementation of the first aspect, in a seventh possible implementation, the handover notification message of the first LSP carries the available bandwidth of the current first microwave link;
该对该第一LSP中的业务进行切换处理,包括:The switching processing of the service in the first LSP includes:
若接收到第二LSP的中间节点发送的该第二LSP的切换通知消息,则从该第二LSP的切换通知消息中获取当前该第二LSP的第二微波链路的可用带宽,或者,若接收到第二微波设备发送的该第二LSP的第二微波链路的带宽变化信息,则从该第二微波链路的带宽变化信息中获取当前该第二微波链路的可用带宽,其中,该第二LSP为该第一LSP的备份LSP; Obtaining the available bandwidth of the second microwave link of the second LSP from the handover notification message of the second LSP, or if the handover notification message of the second LSP sent by the intermediate node of the second LSP is received, or Receiving the bandwidth change information of the second microwave link of the second LSP that is sent by the second microwave device, and acquiring the available bandwidth of the second microwave link from the bandwidth change information of the second microwave link, where The second LSP is a backup LSP of the first LSP;
若当前该第二微波链路的可用带宽大于当前该第一微波链路的可用带宽,则将该第一LSP中的业务切换到该第二LSP。If the available bandwidth of the second microwave link is greater than the current available bandwidth of the first microwave link, the service in the first LSP is switched to the second LSP.
结合第一方面的第二种可能的实现方式,在第八种可能的实现方式中,该第一LSP的切换通知消息携带当前该第一微波链路的可用带宽和该第一微波链路的最大带宽;In conjunction with the second possible implementation of the first aspect, in an eighth possible implementation, the handover notification message of the first LSP carries the available bandwidth of the first microwave link and the first microwave link. Maximum bandwidth
该对该第一LSP中的业务进行切换处理,包括:The switching processing of the service in the first LSP includes:
若接收到第二LSP的中间节点发送的该第二LSP的切换通知消息,则从该第二LSP的切换通知消息中获取当前该第二LSP的第二微波链路的可用带宽和该第二微波链路的最大带宽,或者,若接收到第二微波设备发送的该第二LSP的第二微波链路的带宽变化信息,则从该第二微波链路的带宽变化信息中获取当前该第二微波链路的可用带宽和该第二微波链路的最大带宽,其中,该第二LSP为该第一LSP的备份LSP;Obtaining, by the switch notification message of the second LSP, the available bandwidth of the second microwave link of the second LSP and the second, if the switch notification message of the second LSP is sent by the intermediate node of the second LSP The maximum bandwidth of the microwave link, or, if the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device is received, the current bandwidth is obtained from the bandwidth change information of the second microwave link. The available bandwidth of the second LSP and the maximum bandwidth of the second radiant link, wherein the second LSP is a backup LSP of the first LSP;
若当前该第二微波链路的可用带宽与该第二微波链路的最大带宽的比值大于当前该第一微波链路的可用带宽与该第一微波链路的最大带宽的比值,则将该第一LSP中的业务切换到该第二LSP。If the ratio of the available bandwidth of the second microwave link to the maximum bandwidth of the second microwave link is greater than the ratio of the available bandwidth of the first microwave link to the maximum bandwidth of the first microwave link, The service in the first LSP is switched to the second LSP.
第二方面,提供了一种路径切换的方法,包括:In a second aspect, a method for path switching is provided, including:
接收第一微波设备发送的第一微波链路的带宽变化信息,该第一微波链路的带宽变化信息包括当前该第一微波链路的可用带宽;Receiving, by the first microwave device, bandwidth change information of the first microwave link, where the bandwidth change information of the first microwave link includes an available bandwidth of the first microwave link;
对于经过该第一微波链路的第一标签交换路径LSP,根据该第一LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系,确定该第一LSP的带宽切换门限;Determining the bandwidth switching threshold of the first LSP according to the correspondence between the pre-configured priority of the first LSP and the pre-configured bandwidth switching threshold and the priority of the LSP through the first LSP. ;
若当前该第一微波链路的可用带宽小于该第一LSP的带宽切换门限,则向该第一LSP的头节点发送该第一LSP的切换通知消息,以使该头节点根据该第一LSP的切换通知消息,确定该第一LSP需要切换。If the available bandwidth of the first RRC link is smaller than the bandwidth switching threshold of the first LSP, send a handover notification message of the first LSP to the head node of the first LSP, so that the head node is configured according to the first LSP. The handover notification message determines that the first LSP needs to be handed over.
在第一种可能的实现方式中,该第一LSP的切换通知消息携带当前该第一微波链路的可用带宽,或者当前该第一微波链路的可用带宽和该第一微波链路的最大带宽。In a first possible implementation, the handover notification message of the first LSP carries the available bandwidth of the current first microwave link, or the available bandwidth of the first microwave link and the maximum of the first microwave link. bandwidth.
第三方面,提供了一种网络设备,包括:In a third aspect, a network device is provided, including:
确定模块,用于在第一标签交换路径LSP的第一微波链路的可用带宽小于该第一LSP的带宽切换门限的情况下,确定该第一LSP需要切换, 其中,该第一LSP的带宽切换门限是根据该第一LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系确定的;a determining module, configured to determine, when the available bandwidth of the first microwave link of the first label switching path LSP is smaller than a bandwidth switching threshold of the first LSP, determining that the first LSP needs to be switched, The bandwidth switching threshold of the first LSP is determined according to the pre-configured priority of the first LSP and the correspondence between the pre-configured bandwidth switching threshold and the priority;
切换处理模块,用于对该第一LSP中的业务进行切换处理。The switching processing module is configured to perform switching processing on the service in the first LSP.
结合第三方面,在第一种可能的实现方式中,该网络设备还包括:With reference to the third aspect, in a first possible implementation manner, the network device further includes:
第一接收模块,用于接收第一微波设备发送的该第一微波链路的带宽变化信息,该第一微波链路的带宽变化信息包括当前该第一微波链路的可用带宽;a first receiving module, configured to receive bandwidth change information of the first microwave link that is sent by the first microwave device, where the bandwidth change information of the first microwave link includes an available bandwidth of the first microwave link;
该确定模块具体用于,对于经过该第一微波链路的该第一LSP,根据该第一LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系,确定该第一LSP的带宽切换门限,若当前该第一微波链路的可用带宽小于该第一LSP的带宽切换门限,则确定该第一LSP需要切换。The determining module is specifically configured to determine, according to the pre-configured priority of the first LSP and the pre-configured bandwidth switching threshold and the priority relationship, the first LSP that passes through the first microwave link. If the bandwidth of the first LSP is less than the bandwidth switching threshold of the first LSP, it is determined that the first LSP needs to be switched.
结合第三方面,在第二种可能的实现方式中,该网络设备还包括:With reference to the third aspect, in a second possible implementation manner, the network device further includes:
第二接收模块,用于接收该第一LSP的中间节点发送的该第一LSP的切换通知消息,其中,该第一LSP的切换通知消息由该第一LSP的中间节点在该第一微波链路的可用带宽小于该第一LSP的带宽切换门限时发送,该第一LSP的带宽切换门限由该第一LSP的中间节点根据该第一LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系确定;a second receiving module, configured to receive a handover notification message of the first LSP sent by the intermediate node of the first LSP, where the handover notification message of the first LSP is used by the intermediate node of the first LSP in the first microwave chain When the available bandwidth of the first LSP is smaller than the bandwidth switching threshold of the first LSP, the bandwidth switching threshold of the first LSP is determined by the intermediate node of the first LSP according to the pre-configured priority of the first LSP and the pre-configured bandwidth switching threshold. The correspondence with the priority is determined;
该确定模块具体用于,根据该第一LSP的切换通知消息,确定该第一LSP需要切换。The determining module is specifically configured to determine, according to the handover notification message of the first LSP, that the first LSP needs to be switched.
结合第三方面或第三方面的第一或二种可能的实现方式,在第三种可能的实现方式中,该切换处理模块具体用于,将该第一LSP中的业务切换到第二LSP,其中,该第二LSP为该第一LSP的备份LSP。With the third aspect or the first or the second possible implementation manner of the third aspect, in a third possible implementation manner, the switching processing module is specifically configured to switch the service in the first LSP to the second LSP. The second LSP is a backup LSP of the first LSP.
结合第三方面或第三方面的第一或二种可能的实现方式,在第四种可能的实现方式中,该切换处理模块具体用于,若该网络设备没有接收到第二LSP的中间节点发送的该第二LSP的切换通知消息并且没有接收到第二微波设备发送的该第二LSP的第二微波链路的带宽变化信息,则将该第一LSP中的业务切换到该第二LSP,其中,该第二LSP为该第一LSP的备份LSP。With the third aspect or the first or the second possible implementation manner of the third aspect, in a fourth possible implementation, the switching processing module is specifically configured to: if the network device does not receive the intermediate node of the second LSP Transmitting the service in the first LSP to the second LSP by receiving the handover notification message of the second LSP and not receiving the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device The second LSP is a backup LSP of the first LSP.
结合第三方面的第一种可能的实现方式,在第五种可能的实现方式 中,该切换处理模块具体用于,In combination with the first possible implementation of the third aspect, in a fifth possible implementation The switching processing module is specifically used,
若该网络设备接收到第二LSP的中间节点发送的该第二LSP的切换通知消息,则从该第二LSP的切换通知消息中获取当前该第二LSP的第二微波链路的可用带宽,或者,若该网络设备接收到第二微波设备发送的该第二LSP的第二微波链路的带宽变化信息,则从该第二微波链路的带宽变化信息中获取当前该第二微波链路的可用带宽,其中,该第二LSP为该第一LSP的备份LSP;If the network device receives the handover notification message of the second LSP sent by the intermediate node of the second LSP, the available bandwidth of the second microwave link of the second LSP is obtained from the handover notification message of the second LSP. Or if the network device receives the bandwidth change information of the second microwave link of the second LSP that is sent by the second microwave device, acquiring the current second microwave link from the bandwidth change information of the second microwave link. The available bandwidth, wherein the second LSP is a backup LSP of the first LSP;
若当前该第二微波链路的可用带宽大于当前该第一微波链路的可用带宽,则将该第一LSP中的业务切换到该第二LSP。If the available bandwidth of the second microwave link is greater than the current available bandwidth of the first microwave link, the service in the first LSP is switched to the second LSP.
结合第三方面的第一种可能的实现方式,在第六种可能的实现方式中,该第一微波链路的带宽变化信息还包括该第一微波链路的最大带宽;With reference to the first possible implementation manner of the third aspect, in a sixth possible implementation, the bandwidth change information of the first microwave link further includes a maximum bandwidth of the first microwave link;
该切换处理模块具体用于,The switching processing module is specifically used,
若该网络设备接收到第二LSP的中间节点发送的该第二LSP的切换通知消息,则从该第二LSP的切换通知消息中获取当前该第二LSP的第二微波链路的可用带宽和该第二微波链路的最大带宽,或者,若该网络设备接收到第二微波设备发送的该第二LSP的第二微波链路的带宽变化信息,则从该第二微波链路的带宽变化信息中获取当前该第二微波链路的可用带宽和该第二微波链路的最大带宽,其中,该第二LSP为该第一LSP的备份LSP;If the network device receives the handover notification message of the second LSP sent by the intermediate node of the second LSP, the available bandwidth of the second microwave link of the second LSP is obtained from the handover notification message of the second LSP. The maximum bandwidth of the second microwave link, or the bandwidth change from the second microwave link if the network device receives the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device Acquiring the current available bandwidth of the second microwave link and the maximum bandwidth of the second microwave link, where the second LSP is a backup LSP of the first LSP;
若当前该第二微波链路的可用带宽与该第二微波链路的最大带宽的比值大于当前该第一微波链路的可用带宽与该第一微波链路的最大带宽的比值,则将该第一LSP中的业务切换到该第二LSP。If the ratio of the available bandwidth of the second microwave link to the maximum bandwidth of the second microwave link is greater than the ratio of the available bandwidth of the first microwave link to the maximum bandwidth of the first microwave link, The service in the first LSP is switched to the second LSP.
结合第三方面的第二种可能的实现方式,在第七种可能的实现方式中,该第一LSP的切换通知消息携带当前该第一微波链路的可用带宽;With reference to the second possible implementation manner of the third aspect, in a seventh possible implementation, the handover notification message of the first LSP carries the available bandwidth of the current first microwave link;
该切换处理模块具体用于,The switching processing module is specifically used,
若该网络设备接收到第二LSP的中间节点发送的该第二LSP的切换通知消息,则从该第二LSP的切换通知消息中获取当前该第二LSP的第二微波链路的可用带宽,或者,若该网络设备接收到第二微波设备发送的该第二LSP的第二微波链路的带宽变化信息,则从该第二微波链路的带宽变化信息中获取当前该第二微波链路的可用带宽,其中,该第二LSP为该 第一LSP的备份LSP;If the network device receives the handover notification message of the second LSP sent by the intermediate node of the second LSP, the available bandwidth of the second microwave link of the second LSP is obtained from the handover notification message of the second LSP. Or if the network device receives the bandwidth change information of the second microwave link of the second LSP that is sent by the second microwave device, acquiring the current second microwave link from the bandwidth change information of the second microwave link. Available bandwidth, wherein the second LSP is the The backup LSP of the first LSP;
若当前该第二微波链路的可用带宽大于当前该第一微波链路的可用带宽,则将该第一LSP中的业务切换到该第二LSP。If the available bandwidth of the second microwave link is greater than the current available bandwidth of the first microwave link, the service in the first LSP is switched to the second LSP.
结合第三方面的第二种可能的实现方式,在第八种可能的实现方式中,该第一LSP的切换通知消息携带当前该第一微波链路的可用带宽和该第一微波链路的最大带宽;In conjunction with the second possible implementation of the third aspect, in an eighth possible implementation, the handover notification message of the first LSP carries the available bandwidth of the first microwave link and the first microwave link. Maximum bandwidth
该切换处理模块具体用于,The switching processing module is specifically used,
若该网络设备接收到第二LSP的中间节点发送的该第二LSP的切换通知消息,则从该第二LSP的切换通知消息中获取当前该第二LSP的第二微波链路的可用带宽和该第二微波链路的最大带宽,或者,若该网络设备接收到第二微波设备发送的该第二LSP的第二微波链路的带宽变化信息,则从该第二微波链路的带宽变化信息中获取当前该第二微波链路的可用带宽和该第二微波链路的最大带宽,其中,该第二LSP为该第一LSP的备份LSP;If the network device receives the handover notification message of the second LSP sent by the intermediate node of the second LSP, the available bandwidth of the second microwave link of the second LSP is obtained from the handover notification message of the second LSP. The maximum bandwidth of the second microwave link, or the bandwidth change from the second microwave link if the network device receives the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device Acquiring the current available bandwidth of the second microwave link and the maximum bandwidth of the second microwave link, where the second LSP is a backup LSP of the first LSP;
若当前该第二微波链路的可用带宽与该第二微波链路的最大带宽的比值大于当前该第一微波链路的可用带宽与该第一微波链路的最大带宽的比值,则将该第一LSP中的业务切换到该第二LSP。If the ratio of the available bandwidth of the second microwave link to the maximum bandwidth of the second microwave link is greater than the ratio of the available bandwidth of the first microwave link to the maximum bandwidth of the first microwave link, The service in the first LSP is switched to the second LSP.
第四方面,提供了一种网络设备,包括:In a fourth aspect, a network device is provided, including:
接收模块,用于接收第一微波设备发送的第一微波链路的带宽变化信息,该第一微波链路的带宽变化信息包括当前该第一微波链路的可用带宽;a receiving module, configured to receive bandwidth change information of the first microwave link sent by the first microwave device, where the bandwidth change information of the first microwave link includes an available bandwidth of the first microwave link;
确定模块,用于对于经过该第一微波链路的第一标签交换路径LSP,根据该第一LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系,确定该第一LSP的带宽切换门限;a determining module, configured to determine, according to a pre-configured priority of the first LSP and a pre-configured bandwidth switching threshold and a priority, for the first label switched path LSP passing through the first microwave link, determining the first The bandwidth switching threshold of the LSP;
发送模块,用于若当前该第一微波链路的可用带宽小于该第一LSP的带宽切换门限,则向该第一LSP的头节点发送该第一LSP的切换通知消息,以使该头节点根据该第一LSP的切换通知消息,确定该第一LSP需要切换。a sending module, configured to send, to the head node of the first LSP, a handover notification message of the first LSP, so that the head node of the first LSP is less than a bandwidth switching threshold of the first LSP And determining, according to the handover notification message of the first LSP, that the first LSP needs to be switched.
在第一种可能的实现方式中,该第一LSP的切换通知消息携带当前该第一微波链路的可用带宽,或者当前该第一微波链路的可用带宽和该第一 微波链路的最大带宽。In a first possible implementation, the handover notification message of the first LSP carries the available bandwidth of the current first microwave link, or the available bandwidth of the first microwave link and the first The maximum bandwidth of the microwave link.
基于上述技术方案,本发明实施例在LSP的微波链路的可用带宽小于该LSP的带宽切换门限的情况下,确定该LSP需要切换,并对该LSP中的业务进行切换处理,其中,该LSP的带宽切换门限根据该LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系确定,可以只对部分LSP进行切换处理,能够提高网络带宽的利用率。Based on the foregoing technical solution, in the embodiment of the present invention, when the available bandwidth of the LSP is smaller than the bandwidth switching threshold of the LSP, the LSP needs to be switched, and the service in the LSP is switched, where the LSP is processed. The bandwidth switching threshold is determined according to the pre-configured priority of the LSP and the corresponding relationship between the pre-configured bandwidth switching threshold and the priority, and only part of the LSP can be switched, which can improve the utilization of the network bandwidth.
附图说明DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments of the present invention will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without paying any creative work.
图1是本发明实施例的一个应用场景的示意图。FIG. 1 is a schematic diagram of an application scenario of an embodiment of the present invention.
图2是本发明一个实施例的路径切换的方法的示意性流程图。FIG. 2 is a schematic flowchart of a method for path switching according to an embodiment of the present invention.
图3是本发明另一实施例的路径切换的方法的示意性流程图。FIG. 3 is a schematic flowchart of a method for path switching according to another embodiment of the present invention.
图4是本发明一个实施例的网络设备的示意性框图。4 is a schematic block diagram of a network device in accordance with an embodiment of the present invention.
图5是本发明另一实施例的网络设备的示意性框图。FIG. 5 is a schematic block diagram of a network device according to another embodiment of the present invention.
图6是本发明又一实施例的网络设备的结构示意图。FIG. 6 is a schematic structural diagram of a network device according to still another embodiment of the present invention.
图7是本发明又一实施例的网络设备的结构示意图。FIG. 7 is a schematic structural diagram of a network device according to still another embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明的一部分实施例,而不是全部实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动的前提下所获得的所有其他实施例,都应属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of the present invention.
图1是本发明实施例的一个应用场景的示意图。如图1所示,网络设备110、网络设备120、网络设备130和网络设备140分别与两个微波设 备连接,具有蜂窝节点网关(Cell Site Gateway,CSG)的功能;网络设备150和网络设备160分别与一个微波设备连接,具有汇聚网关(Aggregation Site Gateway,AGG)的功能。各网络设备通过微波设备之间的微波链路传输业务。在各网络设备上部署流量工程(Traffic Engineer,TE)隧道,对于每条TE隧道,生成主备两条标签交换路径(Label Switch Path,LSP)。例如,对于网络设备110到网络设备150的一条TE隧道,可以有LSP 181(网络设备110-网络设备120-网络设备150)和LSP 182(网络设备110-网络设备130-网络设备140-网络设备160-网络设备150)这两条LSP。LSP 181和LSP 182可以互为备份LSP,也就是说,其中一条LSP作为主用LSP时,另一条LSP为备份LSP。例如,LSP 181作为主用LSP时,LSP 182为其备份LSP。不同的业务采用不同的TE隧道传输,具体地,可以采用TE隧道的其中一条LSP传输,例如,采用主用LSP传输。FIG. 1 is a schematic diagram of an application scenario of an embodiment of the present invention. As shown in FIG. 1, the network device 110, the network device 120, the network device 130, and the network device 140 are respectively configured with two microwaves. The backup device has the function of a Cell Site Gateway (CSG); the network device 150 and the network device 160 are respectively connected to a microwave device and have the function of an Aggregation Site Gateway (AGG). Each network device transmits traffic through a microwave link between the microwave devices. A traffic engineer (TE) tunnel is deployed on each network device. For each TE tunnel, two Label Switch Paths (LSPs) are generated. For example, for a TE tunnel of the network device 110 to the network device 150, there may be an LSP 181 (network device 110 - network device 120 - network device 150) and LSP 182 (network device 110 - network device 130 - network device 140 - network device 160 - Network device 150) These two LSPs. LSP 181 and LSP 182 can be backup LSPs. That is, one LSP is the primary LSP and the other LSP is the backup LSP. For example, when LSP 181 is used as the primary LSP, LSP 182 is its backup LSP. Different services are transmitted by using different TE tunnels. Specifically, one of the LSPs of the TE tunnel can be used for transmission. For example, the primary LSP is used for transmission.
应理解,在不同场景中,网络设备可以表述为路由器、节点或CSG/AGG,本发明对此并不限定。It should be understood that, in different scenarios, the network device may be expressed as a router, a node, or a CSG/AGG, which is not limited by the present invention.
图2示出了根据本发明实施例的路径切换的方法200的示意性流程图。该方法200由LSP的头节点执行,例如图1中LSP 191的头节点网络设备120或LSP181的头节点网络设备110。如图2所示,该方法200包括:FIG. 2 shows a schematic flow diagram of a method 200 of path switching in accordance with an embodiment of the present invention. The method 200 is performed by a head node of an LSP, such as the head node network device 120 of the LSP 191 of FIG. 1 or the head node network device 110 of the LSP 181. As shown in FIG. 2, the method 200 includes:
S210,在第一LSP的第一微波链路的可用带宽小于该第一LSP的带宽切换门限的情况下,确定该第一LSP需要切换,其中,该第一LSP的带宽切换门限是根据该第一LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系确定的;S210, if the available bandwidth of the first LSP of the first LSP is smaller than the bandwidth switching threshold of the first LSP, determining that the first LSP needs to be switched, where the bandwidth switching threshold of the first LSP is according to the Determining the pre-configured priority of an LSP and the correspondence between the pre-configured bandwidth switching threshold and the priority;
S220,对该第一LSP中的业务进行切换处理。S220: Perform handover processing on the service in the first LSP.
在本发明实施例中,根据第一LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系确定该第一LSP的带宽切换门限。在第一LSP的第一微波链路的可用带宽小于该第一LSP的带宽切换门限的情况下,确定该第一LSP需要切换,并对该第一LSP中的业务进行切换处理。这样,当第一微波链路的带宽变化时,只对经过该第一微波链路的所有LSP中的带宽切换门限大于当前该第一微波链路的可用带宽的LSP进行切换处理,不需要对经过该第一微波链路的所有LSP进行切换处理,这样, 该第一微波链路可以继续传输一部分业务,从而能够充分利用网络的带宽资源。In the embodiment of the present invention, the bandwidth switching threshold of the first LSP is determined according to the pre-configured priority of the first LSP and the corresponding relationship between the pre-configured bandwidth switching threshold and the priority. If the available bandwidth of the first LSP of the first LSP is smaller than the bandwidth switching threshold of the first LSP, the first LSP needs to be switched, and the service in the first LSP is switched. In this way, when the bandwidth of the first microwave link changes, only the LSPs whose bandwidth switching thresholds in all the LSPs that pass through the first microwave link are greater than the available bandwidth of the first microwave link are switched. All the LSPs of the first microwave link are switched, so that The first microwave link can continue to transmit a part of the service, so that the bandwidth resources of the network can be fully utilized.
因此,本发明实施例的路径切换的方法,在LSP的微波链路的可用带宽小于该LSP的带宽切换门限的情况下,确定该LSP需要切换,并对该LSP中的业务进行切换处理,其中,该LSP的带宽切换门限根据该LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系确定,可以只对部分LSP进行切换处理,能够提高网络带宽的利用率。Therefore, in the path switching method of the embodiment of the present invention, if the available bandwidth of the LSP is smaller than the bandwidth switching threshold of the LSP, the LSP needs to be switched, and the service in the LSP is switched. The bandwidth switching threshold of the LSP is determined according to the pre-configured priority of the LSP and the corresponding relationship between the pre-configured bandwidth switching threshold and the priority, and only part of the LSP can be switched, which can improve the utilization of the network bandwidth.
在本发明实施例中,可选地,确定该第一LSP需要切换,包括:In the embodiment of the present invention, optionally, determining that the first LSP needs to be switched includes:
接收第一微波设备发送的该第一微波链路的带宽变化信息,该第一微波链路的带宽变化信息包括当前该第一微波链路的可用带宽;And receiving, by the first microwave device, bandwidth change information of the first microwave link, where the bandwidth change information of the first microwave link includes an available bandwidth of the first microwave link;
对于经过该第一微波链路的该第一LSP,根据该第一LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系,确定该第一LSP的带宽切换门限;Determining, by the first LSP of the first LSP, a bandwidth switching threshold of the first LSP according to a pre-configured priority of the first LSP and a corresponding relationship between a pre-configured bandwidth switching threshold and a priority;
若当前该第一微波链路的可用带宽小于该第一LSP的带宽切换门限,则确定该第一LSP需要切换。If the available bandwidth of the first microwave link is smaller than the bandwidth switching threshold of the first LSP, it is determined that the first LSP needs to be switched.
当微波设备检测到微波链路的带宽发生变化时,向网络设备发送该微波链路的带宽变化信息。该微波链路的带宽变化信息包括当前该微波链路的可用带宽,可选地,还可以包括该微波链路的最大带宽。例如,图1中的微波设备122检测到微波链路171发生变化时,向网络设备120发送微波链路171的带宽变化信息。具体地,微波设备可以通过802.3ah或其它协议发送该带宽变化信息。When the microwave device detects that the bandwidth of the microwave link changes, the bandwidth change information of the microwave link is sent to the network device. The bandwidth change information of the microwave link includes the available bandwidth of the current microwave link, and optionally, the maximum bandwidth of the microwave link. For example, when the microwave device 122 in FIG. 1 detects that the microwave link 171 changes, the bandwidth change information of the microwave link 171 is transmitted to the network device 120. Specifically, the microwave device can transmit the bandwidth change information through 802.3ah or other protocols.
对于经过该微波链路的LSP,该网络设备可以根据该LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系,确定该LSP的带宽切换门限。For the LSP that passes the LSP, the network device can determine the bandwidth switching threshold of the LSP according to the pre-configured priority of the LSP and the pre-configured bandwidth switching threshold and the priority.
具体而言,在本发明实施例中,预配置每一条LSP的优先级并且预配置带宽切换门限与优先级的对应关系。LSP的优先级可以在LSP的头节点处配置。例如,在图1中,从网络设备110到网络设备150的LSP的优先级在网络设备110处配置。具体地,根据不同的业务配置LSP的优先级,如语音业务的LSP的优先级为10,数据业务的LSP的优先级为8,操作维护(Operation Maintenance,OM)业务的LSP的优先级为15等。 Specifically, in the embodiment of the present invention, the priority of each LSP is pre-configured and the correspondence between the bandwidth switching threshold and the priority is pre-configured. The priority of the LSP can be configured at the head node of the LSP. For example, in FIG. 1, the priority of the LSP from network device 110 to network device 150 is configured at network device 110. Specifically, the priority of the LSP is configured according to different services, for example, the priority of the LSP of the voice service is 10, the priority of the LSP of the data service is 8, and the priority of the LSP of the operation maintenance (OM) service is 15. Wait.
应理解,本发明实施例中的LSP的优先级也可以变换为TE隧道的优先级或TE LSP的优先级,这些变换也应涵盖在本发明的保护范围之内。It should be understood that the priority of the LSP in the embodiment of the present invention may also be changed to the priority of the TE tunnel or the priority of the TE LSP, and these transformations are also included in the protection scope of the present invention.
带宽切换门限与优先级的对应关系可以在LSP的各个节点上配置。具体地,可以在网络设备连接微波设备的接口上配置。例如,在图1中,可以在网络设备120连接微波设备122的接口上配置如下对应关系:The correspondence between the bandwidth switching threshold and the priority can be configured on each node of the LSP. Specifically, it can be configured on an interface where the network device is connected to the microwave device. For example, in FIG. 1, the following correspondence may be configured on the interface where the network device 120 is connected to the microwave device 122:
优先级10,带宽切换门限600;Priority 10, bandwidth switching threshold 600;
优先级8,带宽切换门限700;Priority 8, bandwidth switching threshold 700;
优先级15,带宽切换门限400。Priority 15, bandwidth switching threshold 400.
网络设备在接收到微波链路的带宽变化信息后,对于经过该微波链路的每条LSP,根据该LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系确定该LSP的带宽切换门限。After receiving the bandwidth change information of the microwave link, the network device determines the LSP according to the pre-configured priority of the LSP and the pre-configured bandwidth switching threshold and the priority of each LSP passing through the microwave link. Bandwidth switching threshold.
例如,在图1中,网络设备120接收到微波设备122发送的微波链路171的带宽变化信息时,对于经过微波链路171的每条LSP,根据优先级确定带宽切换门限。假设当前共有两条LSP经过微波链路171,它们的优先级分别是10和8,则根据上述的对应关系可确定它们的带宽切换门限分别是600和700。For example, in FIG. 1, when the network device 120 receives the bandwidth change information of the microwave link 171 sent by the microwave device 122, the bandwidth switching threshold is determined according to the priority for each LSP passing through the microwave link 171. Assuming that there are currently two LSPs passing through the microwave link 171, their priorities are 10 and 8, respectively, according to the above correspondence, it can be determined that their bandwidth switching thresholds are 600 and 700, respectively.
网络设备在确定了LSP的带宽切换门限后,将LSP的带宽切换门限与当前该微波链路的可用带宽比较,选择当前该微波链路的可用带宽小于LSP的带宽切换门限的LSP。若网络设备为该LSP的头节点,则确定该LSP需要切换,并对该LSP中的业务进行切换处理。After determining the bandwidth switching threshold of the LSP, the network device compares the bandwidth switching threshold of the LSP with the available bandwidth of the current microwave link, and selects an LSP whose current bandwidth of the microwave link is smaller than the bandwidth switching threshold of the LSP. If the network device is the head node of the LSP, it is determined that the LSP needs to be switched, and the service in the LSP is switched.
例如,微波链路171的带宽变化信息中包括的当前微波链路171的可用带宽为650,假如LSP 191的带宽门限为700,则LSP 191需要切换。由于网络设备120为LSP 191的头节点,网络设备120可以对LSP 191中的业务进行切换处理。For example, the available bandwidth of the current microwave link 171 included in the bandwidth change information of the microwave link 171 is 650. If the bandwidth threshold of the LSP 191 is 700, the LSP 191 needs to be switched. Since the network device 120 is the head node of the LSP 191, the network device 120 can perform handover processing on the traffic in the LSP 191.
若该网络设备为该LSP的中间节点,则该网络设备向该LSP的头节点发送该LSP的切换通知消息,该头节点根据该LSP的切换通知消息,确定该LSP需要切换。If the network device is an intermediate node of the LSP, the network device sends a handover notification message of the LSP to the head node of the LSP, and the head node determines, according to the handover notification message of the LSP, that the LSP needs to be switched.
例如,微波链路171的带宽变化信息中包括的当前微波链路171的可用带宽为650,假如LSP 181的带宽门限为700,由于网络设备120为LSP181的中间节点,网络设备120可以向网络设备110发送LSP 181的切换 通知消息。网络设备110根据LSP 181的切换通知消息,确定LSP 181需要切换。For example, the available bandwidth of the current microwave link 171 included in the bandwidth change information of the microwave link 171 is 650. If the bandwidth threshold of the LSP 181 is 700, since the network device 120 is an intermediate node of the LSP 181, the network device 120 can provide the network device to the network device. 110 sends LSP 181 switch Notification message. The network device 110 determines that the LSP 181 needs to be handed over according to the handover notification message of the LSP 181.
因此,在本发明实施例中,可选地,确定该第一LSP需要切换,包括:Therefore, in the embodiment of the present invention, optionally, determining that the first LSP needs to be switched includes:
接收该第一LSP的中间节点发送的该第一LSP的切换通知消息,其中,该第一LSP的切换通知消息由该第一LSP的中间节点在该第一微波链路的可用带宽小于该第一LSP的带宽切换门限时发送,该第一LSP的带宽切换门限由该第一LSP的中间节点根据该第一LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系确定;Receiving a handover notification message of the first LSP sent by the intermediate node of the first LSP, where the handover notification message of the first LSP is smaller than the available bandwidth of the intermediate node of the first LSP on the first microwave link When the bandwidth switching threshold of the LSP is sent, the bandwidth switching threshold of the first LSP is determined by the intermediate node of the first LSP according to the pre-configured priority of the first LSP and the correspondence between the pre-configured bandwidth switching threshold and the priority. ;
根据该第一LSP的切换通知消息,确定该第一LSP需要切换。And determining, according to the handover notification message of the first LSP, that the first LSP needs to be switched.
第一LSP的头节点对第一LSP中的业务进行切换处理可以有多种方式,以下分别进行描述。The switching of the services in the first LSP by the head node of the first LSP may be performed in various manners, which are respectively described below.
可选地,作为本发明的一个实施例,对该第一LSP中的业务进行切换处理,包括:Optionally, as an embodiment of the present invention, the switching processing of the service in the first LSP includes:
将该第一LSP中的业务切换到第二LSP,其中,该第二LSP为该第一LSP的备份LSP。The service in the first LSP is switched to the second LSP, where the second LSP is a backup LSP of the first LSP.
在本发明的各种实施例中,第二LSP为第一LSP的备份LSP。例如,在LSP 181为第一LSP时,LSP 182为第二LSP;在LSP 191为第一LSP时,LSP 192为第二LSP。In various embodiments of the invention, the second LSP is a backup LSP of the first LSP. For example, when LSP 181 is the first LSP, LSP 182 is the second LSP; when LSP 191 is the first LSP, LSP 192 is the second LSP.
在本实施例中,第一LSP的头节点在确定第一LSP需要切换时,直接将第一LSP中的业务切换到第二LSP。In this embodiment, the head node of the first LSP directly switches the service in the first LSP to the second LSP when determining that the first LSP needs to be handed over.
例如,网络设备110在确定LSP 181需要切换时,直接将LSP 181中的业务切换到LSP 182。For example, the network device 110 directly switches the traffic in the LSP 181 to the LSP 182 when it is determined that the LSP 181 needs to be handed over.
可选地,作为本发明的又一个实施例,对该第一LSP中的业务进行切换处理,包括:Optionally, as a further embodiment of the present invention, the switching processing of the service in the first LSP includes:
若没有接收到第二LSP的中间节点发送的该第二LSP的切换通知消息并且没有接收到第二微波设备发送的该第二LSP的第二微波链路的带宽变化信息,则将该第一LSP中的业务切换到该第二LSP,其中,该第二LSP为该第一LSP的备份LSP。If the switching notification message of the second LSP sent by the intermediate node of the second LSP is not received, and the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device is not received, the first The service in the LSP is switched to the second LSP, where the second LSP is a backup LSP of the first LSP.
在本实施例中,第一LSP的头节点在确定第一LSP需要切换时,先确定第二LSP是否也需要切换,如确定第二LSP的微波链路(表示为第 二微波链路)是否正常(即带宽是否发生变化),再确定是否将第一LSP中的业务切换到第二LSP。In this embodiment, when determining that the first LSP needs to be handed over, the first node of the first LSP first determines whether the second LSP also needs to be switched, such as determining a microwave link of the second LSP (indicated as the first Whether the second microwave link is normal (that is, whether the bandwidth changes), and then determining whether to switch the service in the first LSP to the second LSP.
该头节点没有接收到第二微波设备发送的该第二LSP的第二微波链路的带宽变化信息,表示第二LSP中与该头节点连接的微波链路正常。The head node does not receive the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device, indicating that the microwave link connected to the head node in the second LSP is normal.
该头节点没有接收到第二LSP的中间节点发送的该第二LSP的切换通知消息,表示第二LSP的中间节点不要求切换。The head node does not receive the handover notification message of the second LSP sent by the intermediate node of the second LSP, indicating that the intermediate node of the second LSP does not require handover.
该头节点在满足上述两个条件的情况下,将第一LSP中的业务切换到第二LSP。The head node switches the service in the first LSP to the second LSP if the two conditions are met.
例如,假如第一LSP为LSP 181,第二LSP为LSP 182,网络设备110没有接收到微波设备111发送的微波链路173的带宽变化信息,表示LSP182的微波链路173正常;网络设备110没有接收到网络设备130或网络设备140发送的LSP 182的切换通知消息,表示网络设备130或网络设备140不要求切换LSP 182。在这种情况下,网络设备110将LSP 181中的业务切换到LSP 182。For example, if the first LSP is the LSP 181 and the second LSP is the LSP 182, the network device 110 does not receive the bandwidth change information of the microwave link 173 sent by the microwave device 111, indicating that the microwave link 173 of the LSP 182 is normal; the network device 110 does not have A handover notification message of the LSP 182 sent by the network device 130 or the network device 140 is received, indicating that the network device 130 or the network device 140 does not require handover of the LSP 182. In this case, network device 110 switches the traffic in LSP 181 to LSP 182.
假如第一LSP为LSP 191,第二LSP为LSP 192,网络设备120没有接收到微波设备121发送的微波链路172的带宽变化信息,表示LSP 192的微波链路172正常;网络设备120没有接收到网络设备110、网络设备130或网络设备140发送的LSP 192的切换通知消息,表示网络设备110、网络设备130或网络设备140不要求切换LSP 192。在这种情况下,网络设备120将LSP 191中的业务切换到LSP 192。If the first LSP is the LSP 191 and the second LSP is the LSP 192, the network device 120 does not receive the bandwidth change information of the microwave link 172 sent by the microwave device 121, indicating that the microwave link 172 of the LSP 192 is normal; the network device 120 does not receive The handover notification message to the LSP 192 sent by the network device 110, the network device 130, or the network device 140 indicates that the network device 110, the network device 130, or the network device 140 does not require handover of the LSP 192. In this case, network device 120 switches the traffic in LSP 191 to LSP 192.
可选地,作为本发明的又一个实施例,对该第一LSP中的业务进行切换处理,包括:Optionally, as a further embodiment of the present invention, the switching processing of the service in the first LSP includes:
若接收到第二LSP的中间节点发送的该第二LSP的切换通知消息,则从该第二LSP的切换通知消息中获取当前该第二LSP的第二微波链路的可用带宽,或者,若接收到第二微波设备发送的该第二LSP的第二微波链路的带宽变化信息,则从该第二微波链路的带宽变化信息中获取当前该第二微波链路的可用带宽,其中,该第二LSP为该第一LSP的备份LSP;Obtaining the available bandwidth of the second microwave link of the second LSP from the handover notification message of the second LSP, or if the handover notification message of the second LSP sent by the intermediate node of the second LSP is received, or Receiving the bandwidth change information of the second microwave link of the second LSP that is sent by the second microwave device, and acquiring the available bandwidth of the second microwave link from the bandwidth change information of the second microwave link, where The second LSP is a backup LSP of the first LSP;
若当前该第二微波链路的可用带宽大于当前该第一微波链路的可用带宽,则将该第一LSP中的业务切换到该第二LSP。If the available bandwidth of the second microwave link is greater than the current available bandwidth of the first microwave link, the service in the first LSP is switched to the second LSP.
在本实施例中,在第二LSP也需要切换的情况下,该头节点可以在当 前该第二微波链路的可用带宽大于当前该第一微波链路的可用带宽时,将该第一LSP中的业务切换到该第二LSP。该头节点从第一微波链路的带宽变化信息中获取当前该第一微波链路的可用带宽。或者,第一LSP的切换通知消息携带当前该第一微波链路的可用带宽,该头节点从该第一LSP的切换通知消息中获取当前该第一微波链路的可用带宽。若该头节点接收到第二LSP的中间节点发送的该第二LSP的切换通知消息,则从该第二LSP的切换通知消息中获取当前该第二LSP的第二微波链路的可用带宽,或者,若该头节点接收到第二微波设备发送的该第二LSP的第二微波链路的带宽变化信息,则从该第二微波链路的带宽变化信息中获取当前该第二微波链路的可用带宽。然后,该头节点比较当前该第二微波链路的可用带宽与当前该第一微波链路的可用带宽的大小,若当前该第二微波链路的可用带宽大于当前该第一微波链路的可用带宽,则将该第一LSP中的业务切换到该第二LSP。In this embodiment, in the case that the second LSP also needs to be switched, the head node may be in the When the available bandwidth of the second microwave link is greater than the available bandwidth of the first microwave link, the service in the first LSP is switched to the second LSP. The head node obtains the available bandwidth of the first microwave link from the bandwidth change information of the first microwave link. Alternatively, the handover notification message of the first LSP carries the available bandwidth of the first microwave link, and the head node obtains the available bandwidth of the first microwave link from the handover notification message of the first LSP. If the head node receives the handover notification message of the second LSP sent by the intermediate node of the second LSP, the available bandwidth of the second microwave link of the second LSP is obtained from the handover notification message of the second LSP. Or if the head node receives the bandwidth change information of the second microwave link of the second LSP that is sent by the second microwave device, acquiring the current second microwave link from the bandwidth change information of the second microwave link. Available bandwidth. Then, the head node compares the available bandwidth of the current second microwave link with the current available bandwidth of the first microwave link, if the available bandwidth of the second microwave link is greater than the current first microwave link. If the available bandwidth is used, the service in the first LSP is switched to the second LSP.
可选地,作为本发明的又一个实施例,对该第一LSP中的业务进行切换处理,包括:Optionally, as a further embodiment of the present invention, the switching processing of the service in the first LSP includes:
若接收到第二LSP的中间节点发送的该第二LSP的切换通知消息,则从该第二LSP的切换通知消息中获取当前该第二LSP的第二微波链路的可用带宽和该第二微波链路的最大带宽,或者,若接收到第二微波设备发送的该第二LSP的第二微波链路的带宽变化信息,则从该第二微波链路的带宽变化信息中获取当前该第二微波链路的可用带宽和该第二微波链路的最大带宽,其中,该第二LSP为该第一LSP的备份LSP;Obtaining, by the switch notification message of the second LSP, the available bandwidth of the second microwave link of the second LSP and the second, if the switch notification message of the second LSP is sent by the intermediate node of the second LSP The maximum bandwidth of the microwave link, or, if the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device is received, the current bandwidth is obtained from the bandwidth change information of the second microwave link. The available bandwidth of the second LSP and the maximum bandwidth of the second radiant link, wherein the second LSP is a backup LSP of the first LSP;
若当前该第二微波链路的可用带宽与该第二微波链路的最大带宽的比值大于当前该第一微波链路的可用带宽与该第一微波链路的最大带宽的比值,则将该第一LSP中的业务切换到该第二LSP。If the ratio of the available bandwidth of the second microwave link to the maximum bandwidth of the second microwave link is greater than the ratio of the available bandwidth of the first microwave link to the maximum bandwidth of the first microwave link, The service in the first LSP is switched to the second LSP.
在本实施例中,在第二LSP也需要切换的情况下,该头节点可以在当前该第二微波链路的可用带宽与该第二微波链路的最大带宽的比值大于当前该第一微波链路的可用带宽与该第一微波链路的最大带宽的比值时,将该第一LSP中的业务切换到该第二LSP。该头节点从第一微波链路的带宽变化信息中获取当前该第一微波链路的可用带宽和该第一微波链路的最大带宽。或者,第一LSP的切换通知消息携带当前该第一微波链路的可 用带宽和该第一微波链路的最大带宽。该头节点从该第一LSP的切换通知消息中获取当前该第一微波链路的可用带宽和该第一微波链路的最大带宽。若该头节点接收到第二LSP的中间节点发送的该第二LSP的切换通知消息,则从该第二LSP的切换通知消息中获取当前该第二LSP的第二微波链路的可用带宽和该第二微波链路的最大带宽,或者,若该头节点接收到第二微波设备发送的该第二LSP的第二微波链路的带宽变化信息,则从该第二微波链路的带宽变化信息中获取当前该第二微波链路的可用带宽和该第二微波链路的最大带宽。然后,该头节点比较当前该第二微波链路的可用带宽与该第二微波链路的最大带宽的比值与当前该第一微波链路的可用带宽与该第一微波链路的最大带宽的比值,若当前该第二微波链路的可用带宽与该第二微波链路的最大带宽的比值大于当前该第一微波链路的可用带宽与该第一微波链路的最大带宽的比值,则将该第一LSP中的业务切换到该第二LSP。In this embodiment, in the case that the second LSP also needs to be switched, the ratio of the available bandwidth of the second microwave link to the maximum bandwidth of the second microwave link is greater than the current first microwave. When the ratio of the available bandwidth of the link to the maximum bandwidth of the first microwave link, the service in the first LSP is switched to the second LSP. The head node obtains the current available bandwidth of the first microwave link and the maximum bandwidth of the first microwave link from the bandwidth change information of the first microwave link. Or the switching notification message of the first LSP carries the current first microwave link. The bandwidth and the maximum bandwidth of the first microwave link are used. The head node obtains the current available bandwidth of the first microwave link and the maximum bandwidth of the first microwave link from the handover notification message of the first LSP. If the head node receives the handover notification message of the second LSP sent by the intermediate node of the second LSP, the available bandwidth of the second microwave link of the second LSP is obtained from the handover notification message of the second LSP. The maximum bandwidth of the second microwave link, or the bandwidth change from the second microwave link if the head node receives the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device The information obtains the available bandwidth of the current second microwave link and the maximum bandwidth of the second microwave link. Then, the head node compares the ratio of the available bandwidth of the second microwave link to the maximum bandwidth of the second microwave link, and the current available bandwidth of the first microwave link and the maximum bandwidth of the first microwave link. a ratio, if the ratio of the available bandwidth of the second microwave link to the maximum bandwidth of the second microwave link is greater than the ratio of the available bandwidth of the first microwave link to the maximum bandwidth of the first microwave link, Switching the traffic in the first LSP to the second LSP.
可选地,本发明实施例中的切换通知消息可以采用扩展资源预留协议(Resource Reservation Protocol,RSVP)的路径错误(Path Error)报文来实现。例如,可以采用如下格式:Optionally, the handover notification message in the embodiment of the present invention may be implemented by using a Path Error packet of a Resource Reservation Protocol (RSVP). For example, the following format can be used:
Figure PCTCN2015077386-appb-000001
Figure PCTCN2015077386-appb-000001
在PathErr消息中扩展一个IFBWERROR_SPEC的Object对象来携带相关切换的信息,定义LINKBWERROR_SPEC class=200.(11001000),具体对象定义如下:Extend an Object object of IFBWERROR_SPEC in the PathErr message to carry the information about the switch, and define LINKBWERROR_SPEC class=200.(11001000). The specific object is defined as follows:
Figure PCTCN2015077386-appb-000002
Figure PCTCN2015077386-appb-000002
Figure PCTCN2015077386-appb-000003
Figure PCTCN2015077386-appb-000003
其中每个字段的具体描述如下:The specific description of each of these fields is as follows:
IPv4 ErrorNode Address(4 bytes):发送该消息的节点IPv4地址。IPv4 ErrorNode Address (4 bytes): The IPv4 address of the node that sent the message.
Flags(1 Byte):0x01表示需要正切;0x00=表示需要回切;其中,正切表示业务从该LSP切换到备份LSP,回切表示业务从备份LSP切换回该LSP。Flags (1 Byte): 0x01 indicates that tangent is required; 0x00= indicates that back-cutting is required; where tangent indicates that the service is switched from the LSP to the backup LSP, and the switchback indicates that the service is switched back to the LSP from the backup LSP.
Link Max BW Value(4 bytes):链路的最大带宽。Link Max BW Value (4 bytes): The maximum bandwidth of the link.
Link Available Value(4 bytes):当前链路的可用带宽。Link Available Value (4 bytes): The available bandwidth of the current link.
上述各个字段在不同的实施例中可以省略不需要的字段。The various fields described above may omit unneeded fields in different embodiments.
本发明实施例的路径切换的方法,根据LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系确定LSP的带宽切换门限,在当前微波链路的可用带宽小于LSP的带宽切换门限时,通知LSP的头节点或作为LSP的头节点对LSP中的业务进行切换处理,可以使不同的业务在不同的微波链路中传输,从而能够提高网络带宽的利用率。The path switching method of the embodiment of the present invention determines the bandwidth switching threshold of the LSP according to the pre-configured priority of the LSP and the pre-configured bandwidth switching threshold and the priority. The available bandwidth of the current microwave link is smaller than the bandwidth of the LSP. When the threshold is switched, the head node of the LSP or the head node of the LSP is switched to process the services in the LSP, so that different services can be transmitted in different microwave links, thereby improving the utilization of the network bandwidth.
以上从LSP的头节点的角度详细描述了根据本发明实施例的路径切换的方法,下面从LSP的中间节点的角度描述根据本发明实施例的路径切换的方法。The method of path switching according to an embodiment of the present invention is described in detail above from the perspective of a head node of an LSP. The method of path switching according to an embodiment of the present invention is described below from the perspective of an intermediate node of an LSP.
图3示出了根据本发明另一实施例的路径切换的方法300的示意性流程图。该方法300由LSP的中间节点执行。如图3所示,该方法300包括:FIG. 3 shows a schematic flow chart of a method 300 for path switching according to another embodiment of the present invention. The method 300 is performed by an intermediate node of the LSP. As shown in FIG. 3, the method 300 includes:
S310,接收第一微波设备发送的第一微波链路的带宽变化信息,该第一微波链路的带宽变化信息包括当前该第一微波链路的可用带宽;S310. Receive bandwidth change information of the first microwave link sent by the first microwave device, where the bandwidth change information of the first microwave link includes an available bandwidth of the first microwave link.
S320,对于经过该第一微波链路的第一LSP,根据该第一LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系,确定该第一LSP的带宽切换门限;S320, determining, according to a pre-configured priority of the first LSP, a pre-configured priority of the first LSP, and a pre-configured bandwidth switching threshold and a priority, determining a bandwidth switching threshold of the first LSP;
S330,若当前该第一微波链路的可用带宽小于该第一LSP的带宽切换门限,则向该第一LSP的头节点发送该第一LSP的切换通知消息,以使 该头节点根据该第一LSP的切换通知消息,确定该第一LSP需要切换。S330, if the available bandwidth of the first microwave link is smaller than the bandwidth switching threshold of the first LSP, send a handover notification message of the first LSP to the head node of the first LSP, so that The head node determines, according to the handover notification message of the first LSP, that the first LSP needs to be switched.
本发明实施例的路径切换的方法,根据LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系确定LSP的带宽切换门限,在当前微波链路的可用带宽小于LSP的带宽切换门限时,通知LSP的头节点对LSP中的业务进行切换处理,可以使不同的业务在不同的微波链路中传输,从而能够提高网络带宽的利用率。The path switching method of the embodiment of the present invention determines the bandwidth switching threshold of the LSP according to the pre-configured priority of the LSP and the pre-configured bandwidth switching threshold and the priority. The available bandwidth of the current microwave link is smaller than the bandwidth of the LSP. When the threshold is switched, the head node of the LSP is notified to switch the services in the LSP, so that different services can be transmitted in different microwave links, thereby improving the utilization of the network bandwidth.
在本发明实施例中,可选地,该第一LSP的切换通知消息携带当前该第一微波链路的可用带宽,或者当前该第一微波链路的可用带宽和该第一微波链路的最大带宽。In the embodiment of the present invention, optionally, the handover notification message of the first LSP carries the available bandwidth of the first microwave link, or the available bandwidth of the first microwave link and the first microwave link. Maximum bandwidth.
应理解,根据本发明实施例的路径切换的方法300中的头节点和中间节点的各个处理流程可参考根据本发明实施例的路径切换的方法200中的头节点和中间节点的相应处理流程,为了简洁,在此不再赘述。It should be understood that the respective processing flows of the head node and the intermediate node in the method 300 for path switching according to the embodiment of the present invention may refer to corresponding processing flows of the head node and the intermediate node in the method 200 of the path switching according to the embodiment of the present invention. For the sake of brevity, it will not be repeated here.
应理解,在本发明的各种实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that, in various embodiments of the present invention, the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be taken to the embodiments of the present invention. The implementation process constitutes any limitation.
上文中详细描述了根据本发明实施例的路径切换的方法,下面将描述根据本发明实施例的网络设备。A method of path switching according to an embodiment of the present invention is described in detail above, and a network device according to an embodiment of the present invention will be described below.
图4示出了根据本发明实施例的网络设备400的示意性框图。如图4所示,该网络设备400包括:FIG. 4 shows a schematic block diagram of a network device 400 in accordance with an embodiment of the present invention. As shown in FIG. 4, the network device 400 includes:
确定模块410,用于在第一标签交换路径LSP的第一微波链路的可用带宽小于该第一LSP的带宽切换门限的情况下,确定该第一LSP需要切换,其中,该第一LSP的带宽切换门限是根据该第一LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系确定的;The determining module 410 is configured to determine, when the available bandwidth of the first microwave link of the first label switching path LSP is smaller than the bandwidth switching threshold of the first LSP, where the first LSP needs to be switched, where the first LSP is The bandwidth switching threshold is determined according to the pre-configured priority of the first LSP and the correspondence between the pre-configured bandwidth switching threshold and the priority;
切换处理模块420,用于对该第一LSP中的业务进行切换处理。The handover processing module 420 is configured to perform handover processing on the service in the first LSP.
本发明实施例的网络设备,在LSP的微波链路的可用带宽小于该LSP的带宽切换门限的情况下,确定该LSP需要切换,并对该LSP中的业务进行切换处理,其中,该LSP的带宽切换门限根据该LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系确定,可以只对部分LSP进行切换处理,能够提高网络带宽的利用率。The network device of the embodiment of the present invention determines that the LSP needs to be handed over, and performs handover processing on the service in the LSP, where the available bandwidth of the LSP is smaller than the bandwidth switching threshold of the LSP, where the LSP is switched. The bandwidth switching threshold is determined according to the pre-configured priority of the LSP and the corresponding relationship between the pre-configured bandwidth switching threshold and the priority, and only part of the LSP can be switched, which can improve the utilization of the network bandwidth.
在本发明实施例中,可选地,该网络设备400还包括: In the embodiment of the present invention, optionally, the network device 400 further includes:
第一接收模块,用于接收第一微波设备发送的该第一微波链路的带宽变化信息,该第一微波链路的带宽变化信息包括当前该第一微波链路的可用带宽;a first receiving module, configured to receive bandwidth change information of the first microwave link that is sent by the first microwave device, where the bandwidth change information of the first microwave link includes an available bandwidth of the first microwave link;
该确定模块410具体用于,对于经过该第一微波链路的该第一LSP,根据该第一LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系,确定该第一LSP的带宽切换门限,若当前该第一微波链路的可用带宽小于该第一LSP的带宽切换门限,则确定该第一LSP需要切换。The determining module 410 is specifically configured to: determine, according to a pre-configured priority of the first LSP and a pre-configured bandwidth switching threshold and a priority, for the first LSP that passes the first microwave link, determine the first LSP If the bandwidth of the first LSP is less than the bandwidth switching threshold of the first LSP, it is determined that the first LSP needs to be switched.
在本发明实施例中,可选地,该网络设备400还包括:In the embodiment of the present invention, optionally, the network device 400 further includes:
第二接收模块,用于接收该第一LSP的中间节点发送的该第一LSP的切换通知消息,其中,该第一LSP的切换通知消息由该第一LSP的中间节点在该第一微波链路的可用带宽小于该第一LSP的带宽切换门限时发送,该第一LSP的带宽切换门限由该第一LSP的中间节点根据该第一LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系确定;a second receiving module, configured to receive a handover notification message of the first LSP sent by the intermediate node of the first LSP, where the handover notification message of the first LSP is used by the intermediate node of the first LSP in the first microwave chain When the available bandwidth of the first LSP is smaller than the bandwidth switching threshold of the first LSP, the bandwidth switching threshold of the first LSP is determined by the intermediate node of the first LSP according to the pre-configured priority of the first LSP and the pre-configured bandwidth switching threshold. The correspondence with the priority is determined;
该确定模块410具体用于,根据该第一LSP的切换通知消息,确定该第一LSP需要切换。The determining module 410 is specifically configured to determine that the first LSP needs to be switched according to the handover notification message of the first LSP.
在本发明实施例中,可选地,该切换处理模块420具体用于,将该第一LSP中的业务切换到第二LSP,其中,该第二LSP为该第一LSP的备份LSP。In the embodiment of the present invention, the switching processing module 420 is specifically configured to switch the service in the first LSP to the second LSP, where the second LSP is a backup LSP of the first LSP.
在本发明实施例中,可选地,该切换处理模块420具体用于,若该网络设备没有接收到第二LSP的中间节点发送的该第二LSP的切换通知消息并且没有接收到第二微波设备发送的该第二LSP的第二微波链路的带宽变化信息,则将该第一LSP中的业务切换到该第二LSP,其中,该第二LSP为该第一LSP的备份LSP。In the embodiment of the present invention, the switching processing module 420 is specifically configured to: if the network device does not receive the handover notification message of the second LSP sent by the intermediate node of the second LSP, and does not receive the second microwave The bandwidth change information of the second microwave link of the second LSP sent by the device is used to switch the service in the first LSP to the second LSP, where the second LSP is a backup LSP of the first LSP.
在本发明实施例中,可选地,该切换处理模块420具体用于,In the embodiment of the present invention, the switching processing module 420 is specifically configured to:
若该网络设备接收到第二LSP的中间节点发送的该第二LSP的切换通知消息,则从该第二LSP的切换通知消息中获取当前该第二LSP的第二微波链路的可用带宽,或者,若该网络设备接收到第二微波设备发送的该第二LSP的第二微波链路的带宽变化信息,则从该第二微波链路的带宽变化信息中获取当前该第二微波链路的可用带宽,其中,该第二LSP为该 第一LSP的备份LSP;If the network device receives the handover notification message of the second LSP sent by the intermediate node of the second LSP, the available bandwidth of the second microwave link of the second LSP is obtained from the handover notification message of the second LSP. Or if the network device receives the bandwidth change information of the second microwave link of the second LSP that is sent by the second microwave device, acquiring the current second microwave link from the bandwidth change information of the second microwave link. Available bandwidth, wherein the second LSP is the The backup LSP of the first LSP;
若当前该第二微波链路的可用带宽大于当前该第一微波链路的可用带宽,则将该第一LSP中的业务切换到该第二LSP。If the available bandwidth of the second microwave link is greater than the current available bandwidth of the first microwave link, the service in the first LSP is switched to the second LSP.
在本发明实施例中,可选地,该第一微波链路的带宽变化信息还包括该第一微波链路的最大带宽;In the embodiment of the present invention, optionally, the bandwidth change information of the first microwave link further includes a maximum bandwidth of the first microwave link;
该切换处理模块420具体用于,The switching processing module 420 is specifically configured to:
若该网络设备接收到第二LSP的中间节点发送的该第二LSP的切换通知消息,则从该第二LSP的切换通知消息中获取当前该第二LSP的第二微波链路的可用带宽和该第二微波链路的最大带宽,或者,若该网络设备接收到第二微波设备发送的该第二LSP的第二微波链路的带宽变化信息,则从该第二微波链路的带宽变化信息中获取当前该第二微波链路的可用带宽和该第二微波链路的最大带宽,其中,该第二LSP为该第一LSP的备份LSP;If the network device receives the handover notification message of the second LSP sent by the intermediate node of the second LSP, the available bandwidth of the second microwave link of the second LSP is obtained from the handover notification message of the second LSP. The maximum bandwidth of the second microwave link, or the bandwidth change from the second microwave link if the network device receives the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device Acquiring the current available bandwidth of the second microwave link and the maximum bandwidth of the second microwave link, where the second LSP is a backup LSP of the first LSP;
若当前该第二微波链路的可用带宽与该第二微波链路的最大带宽的比值大于当前该第一微波链路的可用带宽与该第一微波链路的最大带宽的比值,则将该第一LSP中的业务切换到该第二LSP。If the ratio of the available bandwidth of the second microwave link to the maximum bandwidth of the second microwave link is greater than the ratio of the available bandwidth of the first microwave link to the maximum bandwidth of the first microwave link, The service in the first LSP is switched to the second LSP.
在本发明实施例中,可选地,该第一LSP的切换通知消息携带当前该第一微波链路的可用带宽;In the embodiment of the present invention, optionally, the handover notification message of the first LSP carries the available bandwidth of the current first microwave link;
该切换处理模块420具体用于,The switching processing module 420 is specifically configured to:
若该网络设备接收到第二LSP的中间节点发送的该第二LSP的切换通知消息,则从该第二LSP的切换通知消息中获取当前该第二LSP的第二微波链路的可用带宽,或者,若该网络设备接收到第二微波设备发送的该第二LSP的第二微波链路的带宽变化信息,则从该第二微波链路的带宽变化信息中获取当前该第二微波链路的可用带宽,其中,该第二LSP为该第一LSP的备份LSP;If the network device receives the handover notification message of the second LSP sent by the intermediate node of the second LSP, the available bandwidth of the second microwave link of the second LSP is obtained from the handover notification message of the second LSP. Or if the network device receives the bandwidth change information of the second microwave link of the second LSP that is sent by the second microwave device, acquiring the current second microwave link from the bandwidth change information of the second microwave link. The available bandwidth, wherein the second LSP is a backup LSP of the first LSP;
若当前该第二微波链路的可用带宽大于当前该第一微波链路的可用带宽,则将该第一LSP中的业务切换到该第二LSP。If the available bandwidth of the second microwave link is greater than the current available bandwidth of the first microwave link, the service in the first LSP is switched to the second LSP.
在本发明实施例中,可选地,该第一LSP的切换通知消息携带当前该第一微波链路的可用带宽和该第一微波链路的最大带宽;In the embodiment of the present invention, optionally, the handover notification message of the first LSP carries the available bandwidth of the first microwave link and the maximum bandwidth of the first microwave link;
该切换处理模块420具体用于, The switching processing module 420 is specifically configured to:
若该网络设备接收到第二LSP的中间节点发送的该第二LSP的切换通知消息,则从该第二LSP的切换通知消息中获取当前该第二LSP的第二微波链路的可用带宽和该第二微波链路的最大带宽,或者,若该网络设备接收到第二微波设备发送的该第二LSP的第二微波链路的带宽变化信息,则从该第二微波链路的带宽变化信息中获取当前该第二微波链路的可用带宽和该第二微波链路的最大带宽,其中,该第二LSP为该第一LSP的备份LSP;If the network device receives the handover notification message of the second LSP sent by the intermediate node of the second LSP, the available bandwidth of the second microwave link of the second LSP is obtained from the handover notification message of the second LSP. The maximum bandwidth of the second microwave link, or the bandwidth change from the second microwave link if the network device receives the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device Acquiring the current available bandwidth of the second microwave link and the maximum bandwidth of the second microwave link, where the second LSP is a backup LSP of the first LSP;
若当前该第二微波链路的可用带宽与该第二微波链路的最大带宽的比值大于当前该第一微波链路的可用带宽与该第一微波链路的最大带宽的比值,则将该第一LSP中的业务切换到该第二LSP。If the ratio of the available bandwidth of the second microwave link to the maximum bandwidth of the second microwave link is greater than the ratio of the available bandwidth of the first microwave link to the maximum bandwidth of the first microwave link, The service in the first LSP is switched to the second LSP.
根据本发明实施例的网络设备400可对应于根据本发明实施例的路径切换的方法200的执行主体,并且网络设备400中的各个模块的上述和其它操作和/或功能分别为了实现前述各个方法的相应流程,为了简洁,在此不再赘述。The network device 400 according to an embodiment of the present invention may correspond to an execution body of the method 200 of path switching according to an embodiment of the present invention, and the above and other operations and/or functions of the respective modules in the network device 400 respectively implement the foregoing respective methods The corresponding process, for the sake of brevity, will not be described here.
图5示出了根据本发明实施例的网络设备500的示意性框图。如图5所示,该网络设备500包括:FIG. 5 shows a schematic block diagram of a network device 500 in accordance with an embodiment of the present invention. As shown in FIG. 5, the network device 500 includes:
接收模块510,用于接收第一微波设备发送的第一微波链路的带宽变化信息,该第一微波链路的带宽变化信息包括当前该第一微波链路的可用带宽;The receiving module 510 is configured to receive bandwidth change information of the first microwave link that is sent by the first microwave device, where the bandwidth change information of the first microwave link includes an available bandwidth of the first microwave link.
确定模块520,用于对于经过该第一微波链路的第一标签交换路径LSP,根据该第一LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系,确定该第一LSP的带宽切换门限;The determining module 520 is configured to determine, according to a pre-configured priority of the first LSP and a pre-configured bandwidth switching threshold and a priority, for the first label switched path LSP that passes through the first microwave link. The bandwidth switching threshold of an LSP;
发送模块530,用于若当前该第一微波链路的可用带宽小于该第一LSP的带宽切换门限,则向该第一LSP的头节点发送该第一LSP的切换通知消息,以使该头节点根据该第一LSP的切换通知消息,确定该第一LSP需要切换。The sending module 530 is configured to: if the available bandwidth of the first microwave link is smaller than the bandwidth switching threshold of the first LSP, send a handover notification message of the first LSP to the head node of the first LSP, so that the header The node determines, according to the handover notification message of the first LSP, that the first LSP needs to be switched.
在本发明实施例中,可选地,该第一LSP的切换通知消息携带当前该第一微波链路的可用带宽,或者当前该第一微波链路的可用带宽和该第一微波链路的最大带宽。In the embodiment of the present invention, optionally, the handover notification message of the first LSP carries the available bandwidth of the first microwave link, or the available bandwidth of the first microwave link and the first microwave link. Maximum bandwidth.
根据本发明实施例的网络设备500可对应于根据本发明实施例的路径 切换的方法300的执行主体,并且网络设备500中的各个模块的上述和其它操作和/或功能分别为了实现前述各个方法的相应流程,为了简洁,在此不再赘述。Network device 500 in accordance with an embodiment of the present invention may correspond to a path in accordance with an embodiment of the present invention The above-mentioned and other operations and/or functions of the respective modules in the network device 500 are respectively implemented in order to implement the respective processes of the foregoing various methods, and are not described herein again for brevity.
本发明实施例的网络设备,根据LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系确定LSP的带宽切换门限,在当前微波链路的可用带宽小于LSP的带宽切换门限时,通知LSP的头节点对LSP中的业务进行切换处理,可以使不同的业务在不同的微波链路中传输,从而能够提高网络带宽的利用率。The network device of the embodiment of the present invention determines the bandwidth switching threshold of the LSP according to the pre-configured priority of the LSP and the pre-configured bandwidth switching threshold and the priority, and the available bandwidth of the current microwave link is smaller than the bandwidth switching gate of the LSP. When the time limit is reached, the head node of the LSP is notified to switch the services in the LSP, so that different services can be transmitted in different microwave links, thereby improving the utilization of the network bandwidth.
图6示出了本发明的又一实施例提供的网络设备的结构,包括至少一个处理器602(例如CPU),至少一个网络接口605或者其他通信接口,存储器606,和至少一个通信总线603,用于实现这些部件之间的连接通信。处理器602用于执行存储器606中存储的可执行模块,例如计算机程序。存储器606可能包含高速随机存取存储器(RAM:Random Access Memory),也可能还包括非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。通过至少一个网络接口605(可以是有线或者无线)实现与至少一个其他网元之间的通信连接。6 shows a structure of a network device according to still another embodiment of the present invention, including at least one processor 602 (for example, a CPU), at least one network interface 605 or other communication interface, a memory 606, and at least one communication bus 603. Used to implement connection communication between these components. The processor 602 is configured to execute executable modules, such as computer programs, stored in the memory 606. The memory 606 may include a high speed random access memory (RAM), and may also include a non-volatile memory such as at least one disk memory. A communication connection with at least one other network element is achieved by at least one network interface 605 (which may be wired or wireless).
在一些实施方式中,存储器606存储了程序6061,处理器602执行程序6061,用于执行以下操作:In some embodiments, the memory 606 stores a program 6061, and the processor 602 executes the program 6061 for performing the following operations:
在第一标签交换路径LSP的第一微波链路的可用带宽小于该第一LSP的带宽切换门限的情况下,确定该第一LSP需要切换,其中,该第一LSP的带宽切换门限是根据该第一LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系确定的;And determining, in the case that the available bandwidth of the first LSP is smaller than the bandwidth switching threshold of the first LSP, the first LSP needs to be switched, where the bandwidth switching threshold of the first LSP is according to the Determining the pre-configured priority of the first LSP and the correspondence between the pre-configured bandwidth switching threshold and the priority;
对该第一LSP中的业务进行切换处理。The service in the first LSP is switched.
可选地,处理器602具体用于,Optionally, the processor 602 is specifically configured to:
通过网络接口605接收第一微波设备发送的该第一微波链路的带宽变化信息,该第一微波链路的带宽变化信息包括当前该第一微波链路的可用带宽;Receiving the bandwidth change information of the first microwave link sent by the first microwave device by using the network interface 605, where the bandwidth change information of the first microwave link includes the available bandwidth of the first microwave link;
对于经过该第一微波链路的该第一LSP,根据该第一LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系,确定该第一LSP的带宽切换门限,若当前该第一微波链路的可用带宽小于该第一LSP的带宽 切换门限,则确定该第一LSP需要切换。Determining the bandwidth switching threshold of the first LSP according to the pre-configured priority of the first LSP and the pre-configured bandwidth switching threshold and the priority of the first LSP. Currently, the available bandwidth of the first microwave link is smaller than the bandwidth of the first LSP. If the threshold is switched, it is determined that the first LSP needs to be switched.
可选地,处理器602具体用于,Optionally, the processor 602 is specifically configured to:
通过网络接口605接收该第一LSP的中间节点发送的该第一LSP的切换通知消息,其中,该第一LSP的切换通知消息由该第一LSP的中间节点在该第一微波链路的可用带宽小于该第一LSP的带宽切换门限时发送,该第一LSP的带宽切换门限由该第一LSP的中间节点根据该第一LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系确定;Receiving, by using the network interface 605, a handover notification message of the first LSP sent by the intermediate node of the first LSP, where the handover notification message of the first LSP is available by the intermediate node of the first LSP on the first microwave link When the bandwidth is smaller than the bandwidth switching threshold of the first LSP, the bandwidth switching threshold of the first LSP is switched by the intermediate node of the first LSP according to the pre-configured priority of the first LSP and the pre-configured bandwidth switching threshold and priority. Corresponding relationship is determined;
根据该第一LSP的切换通知消息,确定该第一LSP需要切换。And determining, according to the handover notification message of the first LSP, that the first LSP needs to be switched.
可选地,处理器602具体用于,将该第一LSP中的业务切换到第二LSP,其中,该第二LSP为该第一LSP的备份LSP。Optionally, the processor 602 is specifically configured to: switch the service in the first LSP to the second LSP, where the second LSP is a backup LSP of the first LSP.
可选地,处理器602具体用于,若该网络设备没有接收到第二LSP的中间节点发送的该第二LSP的切换通知消息并且没有接收到第二微波设备发送的该第二LSP的第二微波链路的带宽变化信息,则将该第一LSP中的业务切换到该第二LSP,其中,该第二LSP为该第一LSP的备份LSP。Optionally, the processor 602 is specifically configured to: if the network device does not receive the handover notification message of the second LSP sent by the intermediate node of the second LSP, and does not receive the second LSP sent by the second microwave device The bandwidth change information of the second LSP is switched to the second LSP, where the second LSP is a backup LSP of the first LSP.
可选地,处理器602具体用于,Optionally, the processor 602 is specifically configured to:
若该网络设备接收到第二LSP的中间节点发送的该第二LSP的切换通知消息,则从该第二LSP的切换通知消息中获取当前该第二LSP的第二微波链路的可用带宽,或者,若该网络设备接收到第二微波设备发送的该第二LSP的第二微波链路的带宽变化信息,则从该第二微波链路的带宽变化信息中获取当前该第二微波链路的可用带宽,其中,该第二LSP为该第一LSP的备份LSP;If the network device receives the handover notification message of the second LSP sent by the intermediate node of the second LSP, the available bandwidth of the second microwave link of the second LSP is obtained from the handover notification message of the second LSP. Or if the network device receives the bandwidth change information of the second microwave link of the second LSP that is sent by the second microwave device, acquiring the current second microwave link from the bandwidth change information of the second microwave link. The available bandwidth, wherein the second LSP is a backup LSP of the first LSP;
若当前该第二微波链路的可用带宽大于当前该第一微波链路的可用带宽,则将该第一LSP中的业务切换到该第二LSP。If the available bandwidth of the second microwave link is greater than the current available bandwidth of the first microwave link, the service in the first LSP is switched to the second LSP.
可选地,该第一微波链路的带宽变化信息还包括该第一微波链路的最大带宽;Optionally, the bandwidth change information of the first microwave link further includes a maximum bandwidth of the first microwave link.
可选地,处理器602具体用于,Optionally, the processor 602 is specifically configured to:
若该网络设备接收到第二LSP的中间节点发送的该第二LSP的切换通知消息,则从该第二LSP的切换通知消息中获取当前该第二LSP的第二微波链路的可用带宽和该第二微波链路的最大带宽,或者,若该网络设备接收到第二微波设备发送的该第二LSP的第二微波链路的带宽变化信 息,则从该第二微波链路的带宽变化信息中获取当前该第二微波链路的可用带宽和该第二微波链路的最大带宽,其中,该第二LSP为该第一LSP的备份LSP;If the network device receives the handover notification message of the second LSP sent by the intermediate node of the second LSP, the available bandwidth of the second microwave link of the second LSP is obtained from the handover notification message of the second LSP. The maximum bandwidth of the second microwave link, or if the network device receives the bandwidth change signal of the second microwave link of the second LSP sent by the second microwave device Obtaining, from the bandwidth change information of the second microwave link, the available bandwidth of the second microwave link and the maximum bandwidth of the second microwave link, where the second LSP is a backup of the first LSP LSP;
若当前该第二微波链路的可用带宽与该第二微波链路的最大带宽的比值大于当前该第一微波链路的可用带宽与该第一微波链路的最大带宽的比值,则将该第一LSP中的业务切换到该第二LSP。If the ratio of the available bandwidth of the second microwave link to the maximum bandwidth of the second microwave link is greater than the ratio of the available bandwidth of the first microwave link to the maximum bandwidth of the first microwave link, The service in the first LSP is switched to the second LSP.
可选地,该第一LSP的切换通知消息携带当前该第一微波链路的可用带宽;Optionally, the handover notification message of the first LSP carries the available bandwidth of the current first microwave link;
可选地,处理器602具体用于,Optionally, the processor 602 is specifically configured to:
若该网络设备接收到第二LSP的中间节点发送的该第二LSP的切换通知消息,则从该第二LSP的切换通知消息中获取当前该第二LSP的第二微波链路的可用带宽,或者,若该网络设备接收到第二微波设备发送的该第二LSP的第二微波链路的带宽变化信息,则从该第二微波链路的带宽变化信息中获取当前该第二微波链路的可用带宽,其中,该第二LSP为该第一LSP的备份LSP;If the network device receives the handover notification message of the second LSP sent by the intermediate node of the second LSP, the available bandwidth of the second microwave link of the second LSP is obtained from the handover notification message of the second LSP. Or if the network device receives the bandwidth change information of the second microwave link of the second LSP that is sent by the second microwave device, acquiring the current second microwave link from the bandwidth change information of the second microwave link. The available bandwidth, wherein the second LSP is a backup LSP of the first LSP;
若当前该第二微波链路的可用带宽大于当前该第一微波链路的可用带宽,则将该第一LSP中的业务切换到该第二LSP。If the available bandwidth of the second microwave link is greater than the current available bandwidth of the first microwave link, the service in the first LSP is switched to the second LSP.
可选地,该第一LSP的切换通知消息携带当前该第一微波链路的可用带宽和该第一微波链路的最大带宽;Optionally, the handover notification message of the first LSP carries the available bandwidth of the first microwave link and the maximum bandwidth of the first microwave link.
可选地,处理器602具体用于,Optionally, the processor 602 is specifically configured to:
若该网络设备接收到第二LSP的中间节点发送的该第二LSP的切换通知消息,则从该第二LSP的切换通知消息中获取当前该第二LSP的第二微波链路的可用带宽和该第二微波链路的最大带宽,或者,若该网络设备接收到第二微波设备发送的该第二LSP的第二微波链路的带宽变化信息,则从该第二微波链路的带宽变化信息中获取当前该第二微波链路的可用带宽和该第二微波链路的最大带宽,其中,该第二LSP为该第一LSP的备份LSP;If the network device receives the handover notification message of the second LSP sent by the intermediate node of the second LSP, the available bandwidth of the second microwave link of the second LSP is obtained from the handover notification message of the second LSP. The maximum bandwidth of the second microwave link, or the bandwidth change from the second microwave link if the network device receives the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device Acquiring the current available bandwidth of the second microwave link and the maximum bandwidth of the second microwave link, where the second LSP is a backup LSP of the first LSP;
若当前该第二微波链路的可用带宽与该第二微波链路的最大带宽的比值大于当前该第一微波链路的可用带宽与该第一微波链路的最大带宽的比值,则将该第一LSP中的业务切换到该第二LSP。 If the ratio of the available bandwidth of the second microwave link to the maximum bandwidth of the second microwave link is greater than the ratio of the available bandwidth of the first microwave link to the maximum bandwidth of the first microwave link, The service in the first LSP is switched to the second LSP.
从本发明实施例提供的以上技术方案可以看出,本发明实施例在LSP的微波链路的可用带宽小于该LSP的带宽切换门限的情况下,确定该LSP需要切换,并对该LSP中的业务进行切换处理,其中,该LSP的带宽切换门限根据该LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系确定,可以只对部分LSP进行切换处理,能够提高网络带宽的利用率。It can be seen from the foregoing technical solutions provided by the embodiments of the present invention that, in the embodiment of the present invention, when the available bandwidth of the LSP is smaller than the bandwidth switching threshold of the LSP, the LSP needs to be switched, and the LSP is in the LSP. The service performs handover processing, where the bandwidth switching threshold of the LSP is determined according to the pre-configured priority of the LSP and the pre-configured bandwidth switching threshold and the priority, and only part of the LSP can be switched, and the network bandwidth can be improved. Utilization.
图7示出了本发明的又一实施例提供的网络设备的结构,包括至少一个处理器702(例如CPU),至少一个网络接口705或者其他通信接口,存储器706,和至少一个通信总线703,用于实现这些部件之间的连接通信。处理器702用于执行存储器706中存储的可执行模块,例如计算机程序。存储器706可能包含高速随机存取存储器(RAM:Random Access Memory),也可能还包括非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。通过至少一个网络接口705(可以是有线或者无线)实现与至少一个其他网元之间的通信连接。FIG. 7 shows a structure of a network device according to still another embodiment of the present invention, including at least one processor 702 (for example, a CPU), at least one network interface 705 or other communication interface, a memory 706, and at least one communication bus 703. Used to implement connection communication between these components. The processor 702 is configured to execute executable modules, such as computer programs, stored in the memory 706. The memory 706 may include a high speed random access memory (RAM), and may also include a non-volatile memory such as at least one disk memory. A communication connection with at least one other network element is achieved by at least one network interface 705 (which may be wired or wireless).
在一些实施方式中,存储器706存储了程序7061,处理器702执行程序7061,用于执行以下操作:In some embodiments, the memory 706 stores a program 7061, and the processor 702 executes the program 7061 for performing the following operations:
通过网络接口705接收第一微波设备发送的第一微波链路的带宽变化信息,该第一微波链路的带宽变化信息包括当前该第一微波链路的可用带宽;Receiving the bandwidth change information of the first microwave link sent by the first microwave device by using the network interface 705, where the bandwidth change information of the first microwave link includes the available bandwidth of the first microwave link;
对于经过该第一微波链路的第一标签交换路径LSP,根据该第一LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系,确定该第一LSP的带宽切换门限;Determining the bandwidth switching threshold of the first LSP according to the correspondence between the pre-configured priority of the first LSP and the pre-configured bandwidth switching threshold and the priority of the LSP through the first LSP. ;
若当前该第一微波链路的可用带宽小于该第一LSP的带宽切换门限,则通过网络接口705向该第一LSP的头节点发送该第一LSP的切换通知消息,以使该头节点根据该第一LSP的切换通知消息,确定该第一LSP需要切换。If the available bandwidth of the first RRC link is smaller than the bandwidth switching threshold of the first LSP, send a handover notification message of the first LSP to the head node of the first LSP through the network interface 705, so that the The handover notification message of the first LSP determines that the first LSP needs to be switched.
可选地,该第一LSP的切换通知消息携带当前该第一微波链路的可用带宽,或者当前该第一微波链路的可用带宽和该第一微波链路的最大带宽。Optionally, the handover notification message of the first LSP carries the available bandwidth of the first microwave link, or the available bandwidth of the first microwave link and the maximum bandwidth of the first microwave link.
从本发明实施例提供的以上技术方案可以看出,本发明实施例根据 LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系确定LSP的带宽切换门限,在当前微波链路的可用带宽小于LSP的带宽切换门限时,通知LSP的头节点对LSP中的业务进行切换处理,可以使不同的业务在不同的微波链路中传输,从而能够提高网络带宽的利用率。It can be seen from the above technical solutions provided by the embodiments of the present invention that the embodiments of the present invention are based on The pre-configured priority of the LSP and the pre-configured bandwidth switching threshold and the priority are used to determine the bandwidth switching threshold of the LSP. When the available bandwidth of the current microwave link is smaller than the bandwidth switching threshold of the LSP, the head node of the LSP is notified to the LSP. The switching service in the service can make different services transmit in different microwave links, thereby improving the utilization of network bandwidth.
应理解,在本发明实施例中,术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系。例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should be understood that in the embodiment of the present invention, the term "and/or" is merely an association relationship describing an associated object, indicating that there may be three relationships. For example, A and/or B may indicate that A exists separately, and A and B exist simultaneously, and B cases exist alone. In addition, the character "/" in this article generally indicates that the contextual object is an "or" relationship.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both, for clarity of hardware and software. Interchangeability, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的***、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的***、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个***,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或通信连接,也可以是电的,机械的或其它的形式连接。In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, or an electrical, mechanical or other form of connection.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本发明实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元 中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in various embodiments of the present invention may be integrated in one processing unit In addition, each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。 The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any equivalent person can be easily conceived within the technical scope of the present invention by any person skilled in the art. Modifications or substitutions are intended to be included within the scope of the invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims (22)

  1. 一种路径切换的方法,其特征在于,包括:A method for path switching, comprising:
    在第一标签交换路径LSP的第一微波链路的可用带宽小于所述第一LSP的带宽切换门限的情况下,确定所述第一LSP需要切换,其中,所述第一LSP的带宽切换门限是根据所述第一LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系确定的;Determining that the first LSP needs to be switched, where the available bandwidth of the first MPLS network of the first label switching path LSP is smaller than the bandwidth switching threshold of the first LSP, where the bandwidth switching threshold of the first LSP is Determining according to the pre-configured priority of the first LSP and the correspondence between the pre-configured bandwidth switching threshold and the priority;
    对所述第一LSP中的业务进行切换处理。Performing handover processing on the service in the first LSP.
  2. 根据权利要求1所述的方法,其特征在于,所述确定所述第一LSP需要切换,包括:The method according to claim 1, wherein the determining that the first LSP needs to be handed over comprises:
    接收第一微波设备发送的所述第一微波链路的带宽变化信息,所述第一微波链路的带宽变化信息包括当前所述第一微波链路的可用带宽;And receiving, by the first microwave device, bandwidth change information of the first microwave link, where the bandwidth change information of the first microwave link includes an available bandwidth of the current first microwave link;
    对于经过所述第一微波链路的所述第一LSP,根据所述第一LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系,确定所述第一LSP的带宽切换门限;Determining the bandwidth of the first LSP according to the pre-configured priority of the first LSP and the pre-configured bandwidth switching threshold and the priority of the first LSP. Switching threshold
    若当前所述第一微波链路的可用带宽小于所述第一LSP的带宽切换门限,则确定所述第一LSP需要切换。If the available bandwidth of the first microwave link is smaller than the bandwidth switching threshold of the first LSP, determining that the first LSP needs to be switched.
  3. 根据权利要求1所述的方法,其特征在于,所述确定所述第一LSP需要切换,包括:The method according to claim 1, wherein the determining that the first LSP needs to be handed over comprises:
    接收所述第一LSP的中间节点发送的所述第一LSP的切换通知消息,其中,所述第一LSP的切换通知消息由所述第一LSP的中间节点在所述第一微波链路的可用带宽小于所述第一LSP的带宽切换门限时发送,所述第一LSP的带宽切换门限由所述第一LSP的中间节点根据所述第一LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系确定;And receiving, by the intermediate node of the first LSP, a handover notification message of the first LSP, where the handover notification message of the first LSP is used by an intermediate node of the first LSP on the first microwave link When the available bandwidth is smaller than the bandwidth switching threshold of the first LSP, the bandwidth switching threshold of the first LSP is determined by the intermediate node of the first LSP according to the pre-configured priority and the pre-configured bandwidth of the first LSP. The correspondence between the switching threshold and the priority is determined;
    根据所述第一LSP的切换通知消息,确定所述第一LSP需要切换。Determining that the first LSP needs to be switched according to the handover notification message of the first LSP.
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,所述对所述第一LSP中的业务进行切换处理,包括:The method according to any one of claims 1 to 3, wherein the switching processing of the service in the first LSP comprises:
    将所述第一LSP中的业务切换到第二LSP,其中,所述第二LSP为所述第一LSP的备份LSP。The service in the first LSP is switched to the second LSP, where the second LSP is a backup LSP of the first LSP.
  5. 根据权利要1至3中任一项所述的方法,其特征在于,所述对所述第一LSP中的业务进行切换处理,包括: The method according to any one of claims 1 to 3, wherein the switching processing of the service in the first LSP comprises:
    若没有接收到第二LSP的中间节点发送的所述第二LSP的切换通知消息并且没有接收到第二微波设备发送的所述第二LSP的第二微波链路的带宽变化信息,则将所述第一LSP中的业务切换到所述第二LSP,其中,所述第二LSP为所述第一LSP的备份LSP。If the handover notification message of the second LSP sent by the intermediate node of the second LSP is not received, and the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device is not received, The service in the first LSP is switched to the second LSP, where the second LSP is a backup LSP of the first LSP.
  6. 根据权利要求2所述的方法,其特征在于,所述对所述第一LSP中的业务进行切换处理,包括:The method according to claim 2, wherein the performing the switching process on the service in the first LSP comprises:
    若接收到第二LSP的中间节点发送的所述第二LSP的切换通知消息,则从所述第二LSP的切换通知消息中获取当前所述第二LSP的第二微波链路的可用带宽,或者,若接收到第二微波设备发送的所述第二LSP的第二微波链路的带宽变化信息,则从所述第二微波链路的带宽变化信息中获取当前所述第二微波链路的可用带宽,其中,所述第二LSP为所述第一LSP的备份LSP;Obtaining, by the switching notification message of the second LSP, the available bandwidth of the second microwave link of the current second LSP, if the switching notification message of the second LSP sent by the intermediate node of the second LSP is received, Or, if the bandwidth change information of the second microwave link of the second LSP that is sent by the second microwave device is received, acquiring the current second microwave link from the bandwidth change information of the second microwave link The available bandwidth, wherein the second LSP is a backup LSP of the first LSP;
    若当前所述第二微波链路的可用带宽大于当前所述第一微波链路的可用带宽,则将所述第一LSP中的业务切换到所述第二LSP。If the available bandwidth of the second microwave link is greater than the available bandwidth of the current first microwave link, the service in the first LSP is switched to the second LSP.
  7. 根据权利要求2所述的方法,其特征在于,所述第一微波链路的带宽变化信息还包括所述第一微波链路的最大带宽;The method according to claim 2, wherein the bandwidth change information of the first microwave link further comprises a maximum bandwidth of the first microwave link;
    所述对所述第一LSP中的业务进行切换处理,包括:The switching processing of the service in the first LSP includes:
    若接收到第二LSP的中间节点发送的所述第二LSP的切换通知消息,则从所述第二LSP的切换通知消息中获取当前所述第二LSP的第二微波链路的可用带宽和所述第二微波链路的最大带宽,或者,若接收到第二微波设备发送的所述第二LSP的第二微波链路的带宽变化信息,则从所述第二微波链路的带宽变化信息中获取当前所述第二微波链路的可用带宽和所述第二微波链路的最大带宽,其中,所述第二LSP为所述第一LSP的备份LSP;Obtaining the available bandwidth of the second microwave link of the second LSP from the handover notification message of the second LSP, if the handover notification message of the second LSP sent by the intermediate node of the second LSP is received a maximum bandwidth of the second microwave link, or a bandwidth change from the second microwave link if the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device is received Obtaining, in the information, the available bandwidth of the current second microwave link and the maximum bandwidth of the second microwave link, where the second LSP is a backup LSP of the first LSP;
    若当前所述第二微波链路的可用带宽与所述第二微波链路的最大带宽的比值大于当前所述第一微波链路的可用带宽与所述第一微波链路的最大带宽的比值,则将所述第一LSP中的业务切换到所述第二LSP。If the ratio of the available bandwidth of the second microwave link to the maximum bandwidth of the second microwave link is greater than the ratio of the available bandwidth of the first microwave link to the maximum bandwidth of the first microwave link And switching the service in the first LSP to the second LSP.
  8. 根据权利要求3所述的方法,其特征在于,所述第一LSP的切换通知消息携带当前所述第一微波链路的可用带宽;The method according to claim 3, wherein the handover notification message of the first LSP carries the available bandwidth of the current first microwave link;
    所述对所述第一LSP中的业务进行切换处理,包括: The switching processing of the service in the first LSP includes:
    若接收到第二LSP的中间节点发送的所述第二LSP的切换通知消息,则从所述第二LSP的切换通知消息中获取当前所述第二LSP的第二微波链路的可用带宽,或者,若接收到第二微波设备发送的所述第二LSP的第二微波链路的带宽变化信息,则从所述第二微波链路的带宽变化信息中获取当前所述第二微波链路的可用带宽,其中,所述第二LSP为所述第一LSP的备份LSP;Obtaining, by the switching notification message of the second LSP, the available bandwidth of the second microwave link of the current second LSP, if the switching notification message of the second LSP sent by the intermediate node of the second LSP is received, Or, if the bandwidth change information of the second microwave link of the second LSP that is sent by the second microwave device is received, acquiring the current second microwave link from the bandwidth change information of the second microwave link The available bandwidth, wherein the second LSP is a backup LSP of the first LSP;
    若当前所述第二微波链路的可用带宽大于当前所述第一微波链路的可用带宽,则将所述第一LSP中的业务切换到所述第二LSP。If the available bandwidth of the second microwave link is greater than the available bandwidth of the current first microwave link, the service in the first LSP is switched to the second LSP.
  9. 根据权利要求3所述的方法,其特征在于,所述第一LSP的切换通知消息携带当前所述第一微波链路的可用带宽和所述第一微波链路的最大带宽;The method according to claim 3, wherein the handover notification message of the first LSP carries the available bandwidth of the first microwave link and the maximum bandwidth of the first microwave link;
    所述对所述第一LSP中的业务进行切换处理,包括:The switching processing of the service in the first LSP includes:
    若接收到第二LSP的中间节点发送的所述第二LSP的切换通知消息,则从所述第二LSP的切换通知消息中获取当前所述第二LSP的第二微波链路的可用带宽和所述第二微波链路的最大带宽,或者,若接收到第二微波设备发送的所述第二LSP的第二微波链路的带宽变化信息,则从所述第二微波链路的带宽变化信息中获取当前所述第二微波链路的可用带宽和所述第二微波链路的最大带宽,其中,所述第二LSP为所述第一LSP的备份LSP;Obtaining the available bandwidth of the second microwave link of the second LSP from the handover notification message of the second LSP, if the handover notification message of the second LSP sent by the intermediate node of the second LSP is received a maximum bandwidth of the second microwave link, or a bandwidth change from the second microwave link if the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device is received Obtaining, in the information, the available bandwidth of the current second microwave link and the maximum bandwidth of the second microwave link, where the second LSP is a backup LSP of the first LSP;
    若当前所述第二微波链路的可用带宽与所述第二微波链路的最大带宽的比值大于当前所述第一微波链路的可用带宽与所述第一微波链路的最大带宽的比值,则将所述第一LSP中的业务切换到所述第二LSP。If the ratio of the available bandwidth of the second microwave link to the maximum bandwidth of the second microwave link is greater than the ratio of the available bandwidth of the first microwave link to the maximum bandwidth of the first microwave link And switching the service in the first LSP to the second LSP.
  10. 一种路径切换的方法,其特征在于,包括:A method for path switching, comprising:
    接收第一微波设备发送的第一微波链路的带宽变化信息,所述第一微波链路的带宽变化信息包括当前所述第一微波链路的可用带宽;And receiving, by the first microwave device, bandwidth change information of the first microwave link, where the bandwidth change information of the first microwave link includes an available bandwidth of the current first microwave link;
    对于经过所述第一微波链路的第一标签交换路径LSP,根据所述第一LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系,确定所述第一LSP的带宽切换门限;Determining, by the first label switching path LSP that is the first LSP, the first LSP according to the pre-configured priority of the first LSP and the pre-configured bandwidth switching threshold and the priority Bandwidth switching threshold;
    若当前所述第一微波链路的可用带宽小于所述第一LSP的带宽切换门限,则向所述第一LSP的头节点发送所述第一LSP的切换通知消息, 以使所述头节点根据所述第一LSP的切换通知消息,确定所述第一LSP需要切换。Sending, to the head node of the first LSP, a handover notification message of the first LSP, if the bandwidth of the first LSP is less than the bandwidth switching threshold of the first LSP, And determining, by the head node, that the first LSP needs to be switched according to the handover notification message of the first LSP.
  11. 根据权利要求10所述的方法,其特征在于,所述第一LSP的切换通知消息携带当前所述第一微波链路的可用带宽,或者当前所述第一微波链路的可用带宽和所述第一微波链路的最大带宽。The method according to claim 10, wherein the handover notification message of the first LSP carries the available bandwidth of the current first microwave link, or the available bandwidth of the current first microwave link and the The maximum bandwidth of the first microwave link.
  12. 一种网络设备,其特征在于,包括:A network device, comprising:
    确定模块,用于在第一标签交换路径LSP的第一微波链路的可用带宽小于所述第一LSP的带宽切换门限的情况下,确定所述第一LSP需要切换,其中,所述第一LSP的带宽切换门限是根据所述第一LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系确定的;a determining module, configured to determine that the first LSP needs to be switched if the available bandwidth of the first microwave link of the first label switching path LSP is smaller than a bandwidth switching threshold of the first LSP, where the first The bandwidth switching threshold of the LSP is determined according to the pre-configured priority of the first LSP and the correspondence between the pre-configured bandwidth switching threshold and the priority;
    切换处理模块,用于对所述第一LSP中的业务进行切换处理。The switching processing module is configured to perform switching processing on the service in the first LSP.
  13. 根据权利要求12所述的网络设备,其特征在于,所述网络设备还包括:The network device according to claim 12, wherein the network device further comprises:
    第一接收模块,用于接收第一微波设备发送的所述第一微波链路的带宽变化信息,所述第一微波链路的带宽变化信息包括当前所述第一微波链路的可用带宽;a first receiving module, configured to receive bandwidth change information of the first microwave link sent by the first microwave device, where the bandwidth change information of the first microwave link includes an available bandwidth of the current first microwave link;
    所述确定模块具体用于,对于经过所述第一微波链路的所述第一LSP,根据所述第一LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系,确定所述第一LSP的带宽切换门限,若当前所述第一微波链路的可用带宽小于所述第一LSP的带宽切换门限,则确定所述第一LSP需要切换。The determining module is specifically configured to switch, according to the pre-configured priority of the first LSP and the pre-configured bandwidth switching threshold to a priority, for the first LSP that passes the first microwave link, Determining a bandwidth switching threshold of the first LSP. If the available bandwidth of the first microwave link is smaller than a bandwidth switching threshold of the first LSP, determining that the first LSP needs to be switched.
  14. 根据权利要求12所述的网络设备,其特征在于,所述网络设备还包括:The network device according to claim 12, wherein the network device further comprises:
    第二接收模块,用于接收所述第一LSP的中间节点发送的所述第一LSP的切换通知消息,其中,所述第一LSP的切换通知消息由所述第一LSP的中间节点在所述第一微波链路的可用带宽小于所述第一LSP的带宽切换门限时发送,所述第一LSP的带宽切换门限由所述第一LSP的中间节点根据所述第一LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系确定;a second receiving module, configured to receive a handover notification message of the first LSP sent by the intermediate node of the first LSP, where the handover notification message of the first LSP is located by an intermediate node of the first LSP When the available bandwidth of the first LSP is smaller than the bandwidth switching threshold of the first LSP, the bandwidth switching threshold of the first LSP is determined by the intermediate node of the first LSP according to the pre-configuration of the first LSP. The correspondence between the priority and the pre-configured bandwidth switching threshold and the priority is determined;
    所述确定模块具体用于,根据所述第一LSP的切换通知消息,确定所 述第一LSP需要切换。The determining module is specifically configured to determine, according to the handover notification message of the first LSP, The first LSP needs to be switched.
  15. 根据权利要求12至14中任一项所述的网络设备,其特征在于,所述切换处理模块具体用于,将所述第一LSP中的业务切换到第二LSP,其中,所述第二LSP为所述第一LSP的备份LSP。The network device according to any one of claims 12 to 14, wherein the handover processing module is specifically configured to switch the service in the first LSP to a second LSP, where the second The LSP is a backup LSP of the first LSP.
  16. 根据权利要12至14中任一项所述的网络设备,其特征在于,所述切换处理模块具体用于,若所述网络设备没有接收到第二LSP的中间节点发送的所述第二LSP的切换通知消息并且没有接收到第二微波设备发送的所述第二LSP的第二微波链路的带宽变化信息,则将所述第一LSP中的业务切换到所述第二LSP,其中,所述第二LSP为所述第一LSP的备份LSP。The network device according to any one of claims 12 to 14, wherein the handover processing module is specifically configured to: if the network device does not receive the second LSP sent by an intermediate node that receives the second LSP Switching the notification message and not receiving the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device, and switching the service in the first LSP to the second LSP, where The second LSP is a backup LSP of the first LSP.
  17. 根据权利要求13所述的网络设备,其特征在于,所述切换处理模块具体用于,The network device according to claim 13, wherein the switching processing module is specifically configured to:
    若所述网络设备接收到第二LSP的中间节点发送的所述第二LSP的切换通知消息,则从所述第二LSP的切换通知消息中获取当前所述第二LSP的第二微波链路的可用带宽,或者,若所述网络设备接收到第二微波设备发送的所述第二LSP的第二微波链路的带宽变化信息,则从所述第二微波链路的带宽变化信息中获取当前所述第二微波链路的可用带宽,其中,所述第二LSP为所述第一LSP的备份LSP;If the network device receives the handover notification message of the second LSP sent by the intermediate node of the second LSP, acquiring the second microwave link of the current second LSP from the handover notification message of the second LSP The available bandwidth, or if the network device receives the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device, obtains the bandwidth change information of the second microwave link. Current available bandwidth of the second microwave link, where the second LSP is a backup LSP of the first LSP;
    若当前所述第二微波链路的可用带宽大于当前所述第一微波链路的可用带宽,则将所述第一LSP中的业务切换到所述第二LSP。If the available bandwidth of the second microwave link is greater than the available bandwidth of the current first microwave link, the service in the first LSP is switched to the second LSP.
  18. 根据权利要求13所述的网络设备,其特征在于,所述第一微波链路的带宽变化信息还包括所述第一微波链路的最大带宽;The network device according to claim 13, wherein the bandwidth change information of the first microwave link further comprises a maximum bandwidth of the first microwave link;
    所述切换处理模块具体用于,The switching processing module is specifically configured to:
    若所述网络设备接收到第二LSP的中间节点发送的所述第二LSP的切换通知消息,则从所述第二LSP的切换通知消息中获取当前所述第二LSP的第二微波链路的可用带宽和所述第二微波链路的最大带宽,或者,若所述网络设备接收到第二微波设备发送的所述第二LSP的第二微波链路的带宽变化信息,则从所述第二微波链路的带宽变化信息中获取当前所述第二微波链路的可用带宽和所述第二微波链路的最大带宽,其中,所述第二LSP为所述第一LSP的备份LSP; If the network device receives the handover notification message of the second LSP sent by the intermediate node of the second LSP, acquiring the second microwave link of the current second LSP from the handover notification message of the second LSP The available bandwidth and the maximum bandwidth of the second microwave link, or if the network device receives the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device, Obtaining, by the bandwidth change information of the second microwave link, the available bandwidth of the current second microwave link and the maximum bandwidth of the second microwave link, where the second LSP is a backup LSP of the first LSP ;
    若当前所述第二微波链路的可用带宽与所述第二微波链路的最大带宽的比值大于当前所述第一微波链路的可用带宽与所述第一微波链路的最大带宽的比值,则将所述第一LSP中的业务切换到所述第二LSP。If the ratio of the available bandwidth of the second microwave link to the maximum bandwidth of the second microwave link is greater than the ratio of the available bandwidth of the first microwave link to the maximum bandwidth of the first microwave link And switching the service in the first LSP to the second LSP.
  19. 根据权利要求14所述的网络设备,其特征在于,所述第一LSP的切换通知消息携带当前所述第一微波链路的可用带宽;The network device according to claim 14, wherein the handover notification message of the first LSP carries the available bandwidth of the current first microwave link;
    所述切换处理模块具体用于,The switching processing module is specifically configured to:
    若所述网络设备接收到第二LSP的中间节点发送的所述第二LSP的切换通知消息,则从所述第二LSP的切换通知消息中获取当前所述第二LSP的第二微波链路的可用带宽,或者,若所述网络设备接收到第二微波设备发送的所述第二LSP的第二微波链路的带宽变化信息,则从所述第二微波链路的带宽变化信息中获取当前所述第二微波链路的可用带宽,其中,所述第二LSP为所述第一LSP的备份LSP;If the network device receives the handover notification message of the second LSP sent by the intermediate node of the second LSP, acquiring the second microwave link of the current second LSP from the handover notification message of the second LSP The available bandwidth, or if the network device receives the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device, obtains the bandwidth change information of the second microwave link. Current available bandwidth of the second microwave link, where the second LSP is a backup LSP of the first LSP;
    若当前所述第二微波链路的可用带宽大于当前所述第一微波链路的可用带宽,则将所述第一LSP中的业务切换到所述第二LSP。If the available bandwidth of the second microwave link is greater than the available bandwidth of the current first microwave link, the service in the first LSP is switched to the second LSP.
  20. 根据权利要求14所述的网络设备,其特征在于,所述第一LSP的切换通知消息携带当前所述第一微波链路的可用带宽和所述第一微波链路的最大带宽;The network device according to claim 14, wherein the handover notification message of the first LSP carries the available bandwidth of the first microwave link and the maximum bandwidth of the first microwave link;
    所述切换处理模块具体用于,The switching processing module is specifically configured to:
    若所述网络设备接收到第二LSP的中间节点发送的所述第二LSP的切换通知消息,则从所述第二LSP的切换通知消息中获取当前所述第二LSP的第二微波链路的可用带宽和所述第二微波链路的最大带宽,或者,若所述网络设备接收到第二微波设备发送的所述第二LSP的第二微波链路的带宽变化信息,则从所述第二微波链路的带宽变化信息中获取当前所述第二微波链路的可用带宽和所述第二微波链路的最大带宽,其中,所述第二LSP为所述第一LSP的备份LSP;If the network device receives the handover notification message of the second LSP sent by the intermediate node of the second LSP, acquiring the second microwave link of the current second LSP from the handover notification message of the second LSP The available bandwidth and the maximum bandwidth of the second microwave link, or if the network device receives the bandwidth change information of the second microwave link of the second LSP sent by the second microwave device, Obtaining, by the bandwidth change information of the second microwave link, the available bandwidth of the current second microwave link and the maximum bandwidth of the second microwave link, where the second LSP is a backup LSP of the first LSP ;
    若当前所述第二微波链路的可用带宽与所述第二微波链路的最大带宽的比值大于当前所述第一微波链路的可用带宽与所述第一微波链路的最大带宽的比值,则将所述第一LSP中的业务切换到所述第二LSP。If the ratio of the available bandwidth of the second microwave link to the maximum bandwidth of the second microwave link is greater than the ratio of the available bandwidth of the first microwave link to the maximum bandwidth of the first microwave link And switching the service in the first LSP to the second LSP.
  21. 一种网络设备,其特征在于,包括:A network device, comprising:
    接收模块,用于接收第一微波设备发送的第一微波链路的带宽变化信 息,所述第一微波链路的带宽变化信息包括当前所述第一微波链路的可用带宽;a receiving module, configured to receive a bandwidth change signal of the first microwave link sent by the first microwave device The bandwidth change information of the first microwave link includes an available bandwidth of the current first microwave link.
    确定模块,用于对于经过所述第一微波链路的第一标签交换路径LSP,根据所述第一LSP的预配置的优先级和预配置的带宽切换门限与优先级的对应关系,确定所述第一LSP的带宽切换门限;a determining module, configured to determine, according to a pre-configured priority of the first LSP and a pre-configured bandwidth switching threshold and a priority, for a first label switched path LSP that passes through the first microwave link, Describe the bandwidth switching threshold of the first LSP;
    发送模块,用于若当前所述第一微波链路的可用带宽小于所述第一LSP的带宽切换门限,则向所述第一LSP的头节点发送所述第一LSP的切换通知消息,以使所述头节点根据所述第一LSP的切换通知消息,确定所述第一LSP需要切换。a sending module, configured to send, to the head node of the first LSP, a handover notification message of the first LSP, if the available bandwidth of the first microwave link is smaller than a bandwidth switching threshold of the first LSP, And causing the head node to determine, according to the handover notification message of the first LSP, that the first LSP needs to be switched.
  22. 根据权利要求21所述的网络设备,其特征在于,所述第一LSP的切换通知消息携带当前所述第一微波链路的可用带宽,或者当前所述第一微波链路的可用带宽和所述第一微波链路的最大带宽。 The network device according to claim 21, wherein the handover notification message of the first LSP carries the available bandwidth of the current first microwave link, or the available bandwidth and the current bandwidth of the first microwave link. The maximum bandwidth of the first microwave link.
PCT/CN2015/077386 2014-06-30 2015-04-24 Path switching method and network device WO2016000481A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410305615.5A CN105337862B (en) 2014-06-30 2014-06-30 The method and the network equipment of path switching
CN201410305615.5 2014-06-30

Publications (1)

Publication Number Publication Date
WO2016000481A1 true WO2016000481A1 (en) 2016-01-07

Family

ID=55018416

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/077386 WO2016000481A1 (en) 2014-06-30 2015-04-24 Path switching method and network device

Country Status (2)

Country Link
CN (1) CN105337862B (en)
WO (1) WO2016000481A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111949489B (en) * 2020-08-14 2022-04-05 珠海格力电器股份有限公司 Terminal network speed adjusting method and device and electronic equipment
CN113347083B (en) * 2021-05-31 2022-09-23 北京字跳网络技术有限公司 Network path determination and switching method, device, equipment, medium and program product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101159669A (en) * 2007-10-09 2008-04-09 华为技术有限公司 Service flow switching method and apparatus
CN101645797A (en) * 2009-08-25 2010-02-10 华为技术有限公司 Automatic protective switching method, equipment and system
CN101902396A (en) * 2010-06-18 2010-12-01 中兴通讯股份有限公司 Method and system for protecting tunnel in multi-protocol label switching traffic engineering
US7903584B2 (en) * 2006-01-06 2011-03-08 Cisco Technology, Inc. Technique for dynamically splitting MPLS TE-LSPs

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101646207B (en) * 2009-08-31 2012-08-08 华为技术有限公司 Bandwidth information notification method, service processing method, network node and communication system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7903584B2 (en) * 2006-01-06 2011-03-08 Cisco Technology, Inc. Technique for dynamically splitting MPLS TE-LSPs
CN101159669A (en) * 2007-10-09 2008-04-09 华为技术有限公司 Service flow switching method and apparatus
CN101645797A (en) * 2009-08-25 2010-02-10 华为技术有限公司 Automatic protective switching method, equipment and system
CN101902396A (en) * 2010-06-18 2010-12-01 中兴通讯股份有限公司 Method and system for protecting tunnel in multi-protocol label switching traffic engineering

Also Published As

Publication number Publication date
CN105337862B (en) 2019-02-01
CN105337862A (en) 2016-02-17

Similar Documents

Publication Publication Date Title
US11792046B2 (en) Method for generating forwarding information, controller, and service forwarding entity
US11533254B2 (en) Packet processing method, related device, and computer storage medium
CN113395210B (en) Method for calculating forwarding path and network equipment
WO2017084487A1 (en) Method for obtaining target transmission path and network node
US11522803B2 (en) Method and apparatus for handling packet delay budget division and quality of service monitoring in a communication system
CN114128228B (en) Transmitting MTNC-ID through SRv head to realize 5G transmission
WO2015101066A1 (en) Method and node for establishing quality of service reservation
US20160014029A1 (en) Method and Apparatus for Congestion Signalling for MPLS Networks
WO2017173880A1 (en) Method and device for reducing packet loss ratio of transmission
WO2016197689A1 (en) Method, apparatus and system for processing packet
WO2020135238A1 (en) Method, apparatus and system for planning path
WO2018006305A1 (en) Method for generating forwarding table, and forwarding device
CN113038526B (en) Data transmission method and device
EP3032782B1 (en) Packet transmission method and apparatus
WO2017206670A1 (en) Method and device for flow distribution in hybrid access network
WO2014118174A1 (en) Method and arrangement for qos differentiation of vpn traffic across domains
CN113055293A (en) Routing method and device in software defined wide area network and communication system
WO2016000481A1 (en) Path switching method and network device
CN114128227B (en) Transmitting MTNC-ID on SRv 6-enabled data plane to enable 5G transmission
CN108966039B (en) Multicast method and equipment
WO2015120741A1 (en) Method and controller for notifying bandwidth of cluster system
CN115866544A (en) Shunting method, proxy gateway and shunting system
CN109104367B (en) Method, network equipment and system for establishing tunnel
US11757784B2 (en) Packet processing method and system, and network device
WO2023185362A1 (en) Media unit transmission method and apparatus

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

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

Country of ref document: EP

Kind code of ref document: A1