CN108092866B - Method, equipment and system for switching tunnel - Google Patents

Method, equipment and system for switching tunnel Download PDF

Info

Publication number
CN108092866B
CN108092866B CN201611043428.XA CN201611043428A CN108092866B CN 108092866 B CN108092866 B CN 108092866B CN 201611043428 A CN201611043428 A CN 201611043428A CN 108092866 B CN108092866 B CN 108092866B
Authority
CN
China
Prior art keywords
tunnel
node
backup
physical port
traffic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611043428.XA
Other languages
Chinese (zh)
Other versions
CN108092866A (en
Inventor
童国飞
张华�
虞淑雯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201611043428.XA priority Critical patent/CN108092866B/en
Publication of CN108092866A publication Critical patent/CN108092866A/en
Application granted granted Critical
Publication of CN108092866B publication Critical patent/CN108092866B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]

Abstract

The present application relates to the field of communications, and in particular, to a method for switching tunnels, which is applied to an MPLS TE network. The network includes a primary TE tunnel and a backup TE tunnel. And the entry nodes of the main TE tunnel and the backup TE tunnel are first nodes. The first physical port of the first node is located on the primary TE tunnel. The second physical port of the first node is located on the backup TE tunnel. And the first node obtains the rate of the traffic transmitted by the physical port of the second node on the main TE tunnel. When the first node determines that the physical port of the second node is in a congestion state, the first node switches a tunnel for transmitting MPLS TE traffic from the primary TE tunnel to the backup TE tunnel. And the more accurate tunnel switching is realized, and the service loss is reduced.

Description

Method, equipment and system for switching tunnel
Technical Field
The present invention relates to the field of communications, and in particular, to a method, device, and system for switching tunnels.
Background
The Multi-Path Label Switching (MPLS) Traffic Engineering (TE) is used to establish a Label Switched Path (LSP) tunnel. The tunnels used to transport traffic may include primary TE tunnels as well as backup TE tunnels. When the main TE tunnel fails, the service flow can be quickly switched to the backup TE tunnel. However, how to more accurately switch the traffic flow from the primary TE tunnel to the backup TE tunnel is a problem to be solved.
Disclosure of Invention
In order to realize more accurate switching of service traffic from a main TE tunnel to a backup TE tunnel and reduce loss of MPLS TE traffic, the application provides a method, equipment and a system for switching tunnels.
In a first aspect, the present application provides a method for tunnel handover. The method is applied to the MPLS TE network of the multi-protocol label switching traffic engineering. The network comprises a main TE tunnel and a backup TE tunnel, and the entry nodes of the main TE tunnel and the backup TE tunnel are first nodes. The method comprises the following steps:
the first node obtains a first rate. The first rate is a rate of traffic transmitted by a physical port of the second node. The second node is a node on the primary TE tunnel. The physical port of the second node is on a primary TE tunnel. And the direction of the traffic transmitted by the physical port of the second node is the same as that of the main TE tunnel.
And when the first node determines that the physical port of the second node is in a congestion state according to the first rate, the first node switches the tunnel for transmitting MPLS TE traffic from the main TE tunnel to the backup TE tunnel.
And the first node determines whether the physical port of the second node is congested according to the obtained rate of the traffic transmitted by the physical port of the second node of the main TE tunnel. And further, if the first node determines that the physical port of the second node is congested, switching the flow from the main TE tunnel to the backup TE tunnel. The technical scheme for specifically and accurately realizing the switching of the traffic from the main TE tunnel to the backup TE tunnel is provided according to whether the physical port is in a congestion state or not so as to determine whether to perform tunnel switching or not.
In one possible design, before the first node switches the tunnel used for transporting MPLS TE traffic from the primary TE tunnel to the backup TE tunnel, the method further includes:
the first node obtains a rate of traffic transmitted by a physical port on the backup TE tunnel, and a direction of the traffic transmitted by the physical port on the backup TE tunnel is the same as a direction of the backup TE tunnel.
And the first node determines that the physical port on the standby TE tunnel is not in a congestion state according to the rate of the traffic transmitted by the physical port on the standby TE tunnel.
The first node switching a tunnel used for transporting MPLS TE traffic from the primary TE tunnel to the backup TE tunnel comprises:
and when the first node determines that the physical port on the standby TE tunnel is not in the congestion state, the first node switches the tunnel for transmitting the MPLS TE traffic from the main TE tunnel to the standby TE tunnel.
Switching the MPLS TE traffic of the primary TE tunnel from the primary TE tunnel to the backup TE tunnel, and determining whether a physical port on the primary TE tunnel is congested and whether a physical port on the backup TE tunnel is congested. By the scheme, the situation that the standby TE tunnel is congested is avoided, MPLS TE flow is switched from the main TE tunnel to the standby TE tunnel, and larger loss caused after tunnel switching can be avoided.
In one possible design, before the first node switches the tunnel used for transporting MPLS TE traffic from the primary TE tunnel to the backup TE tunnel, the method further includes:
the first node obtains a rate of traffic transmitted by a physical port on the backup TE tunnel, and a direction of the traffic transmitted by the physical port on the backup TE tunnel is the same as a direction of the backup TE tunnel.
And the first node determines that if the MPLS TE traffic is switched from the main TE tunnel to the backup TE tunnel according to the rate of the traffic transmitted by the physical port on the backup TE tunnel, the physical port on the backup TE tunnel is not in a congestion state.
The first node switching a tunnel used for transporting MPLS TE traffic from the primary TE tunnel to the backup TE tunnel comprises:
when the first node determines that if the MPLS TE traffic is switched from the main TE tunnel to the backup TE tunnel, the physical port on the backup TE tunnel is not in a congestion state, the first node switches the MPLS TE traffic from the main TE tunnel to the backup TE tunnel.
In the above scheme, before the MPLS TE traffic of the main TE tunnel is switched from the main TE tunnel to the backup TE tunnel, it is further determined whether the physical port of the backup TE tunnel is congested if the MPLS TE tunnel of the main TE tunnel is switched to the backup TE tunnel. Therefore, the first node needs to obtain the rate of traffic transmitted by the physical port through which the backup TE tunnel passes. Thus, the first node may determine, according to the rate of the traffic of the MPLS TE, the rate of the traffic transmitted through the physical port through which the backup TE tunnel passes, and the bandwidth of the physical port through which the backup TE tunnel passes, whether congestion may occur on the physical port through which the backup TE tunnel passes if the traffic of the MPLS TE is switched from the primary TE tunnel to the backup TE tunnel. The scheme can reduce the possibility of congestion of the physical port passed by the backup TE tunnel caused by switching the tunnel of the MPLS TE to the backup TE tunnel. And larger loss caused after tunnel switching can be avoided.
In one possible design, after the first node switches the tunnel used for transporting MPLS TE traffic from the primary TE tunnel to the backup TE tunnel, the method further includes:
the first node obtains a rate of traffic of a physical port on the primary TE tunnel, and a direction of the traffic of the physical port on the primary TE tunnel is the same as a direction of the primary TE tunnel.
When the first node determines that no physical port in a congestion state exists in the physical ports on the main TE tunnel according to the flow rate of the physical ports on the main TE tunnel, the first node switches the tunnel for transmitting the MPLS TE flow from the backup TE tunnel to the main TE tunnel.
After the time for the primary TE tunnel to restore the state, the first node directly switches the MPLS TE traffic from the backup TE tunnel to the primary TE tunnel. In the above scheme, the first node determines that the physical port on the main TE tunnel does not exist in the congestion state, and switches the MPLS TE traffic transmitted on the backup TE tunnel back to the main TE tunnel, so as to avoid switching the MPLS TE traffic from the backup TE tunnel to the main TE tunnel in the congestion state of the main TE tunnel, thereby reducing traffic loss caused by switching the MPLS TE traffic from the backup TE tunnel to the main TE tunnel.
In one possible design, the obtaining, by the first node, the first rate includes:
and the first node receives a Resv message which carries the first speed.
The first node obtains the first rate from the Resv message.
The Resv message is one of the existing MPLS TE mechanisms. In the technical scheme of the application, the ingress node obtains the rate of the traffic transmitted by the physical port of the second node through the Resv message. Compared with the technical scheme of realizing the speed of transmitting the physical port of the second node to the entrance node by defining a new message, the technical scheme of the application can specifically realize the switching of the service flow from the main TE tunnel to the backup TE tunnel by utilizing the existing MPLS TE mechanism, thereby reducing the realization cost.
In one possible design, the first node determining that the physical port of the second node is in a congested state based on the first rate comprises:
determining that the physical port is in a congested state when the first node determines that the first rate exceeds a threshold.
In one possible design, the Resv message includes a record route object RRO field, where the RRO field includes a Subobject, and the Subobject carries the first rate.
And the first node obtains the rate of the traffic transmitted by the physical port of the second node through the RRO field in the Resv message. That is, the rate of the traffic transmitted through the physical port traversed by the primary TE tunnel can be obtained by using the Resv message in the Resource Reservation Protocol (RSVP). The scheme reduces the waste of bandwidth and network overhead.
In a second aspect, the present application further provides another method for switching a tunnel, where the method includes:
the first node obtains a second rate. The second rate is a rate of traffic transmitted by a first physical port of the first node, and the first physical port of the first node is located on the primary TE tunnel.
And when the first node determines that the second physical port is in a congestion state according to the rate of the traffic transmitted by the second physical port, the first node switches the tunnel for transmitting the MPLS TE traffic from the main TE tunnel to the backup TE tunnel.
And the first node determines whether the physical port of the second node is congested according to the obtained rate of the traffic transmitted by the physical port of the first node on the main TE tunnel. Furthermore, if the first node determines that the physical port of the first node on the primary TE tunnel is congested, the traffic is switched from the primary TE tunnel to the backup TE tunnel. The technical scheme for specifically and accurately realizing the switching of the traffic from the main TE tunnel to the backup TE tunnel is provided according to whether the physical port is in a congestion state or not so as to determine whether to perform tunnel switching or not.
In a third aspect, the present application provides a first node for tunnel handover. The first node is applied to a multi-protocol label switching traffic engineering (MPLS TE) network. The network includes a primary TE tunnel and a backup TE tunnel. The first node is an entry node of the primary TE tunnel and the backup TE tunnel, and the first node includes an obtaining unit and a switching unit:
the obtaining unit is configured to obtain a first rate. The first rate is a rate of traffic transmitted by a physical port of the second node. The second node is a node of the primary TE tunnel, and a physical port of the second node is on the primary TE tunnel. The direction of traffic transmitted by the physical port of the second node is the same as the direction of the primary TE tunnel.
The switching unit is configured to switch, by the first node, a tunnel used for transmitting MPLS TE traffic from the primary TE tunnel to the backup TE tunnel when the first node determines that the physical port of the second node is in a congestion state according to the first rate.
In one possible design, the first node further includes a determination unit.
The obtaining unit is further configured to obtain a rate of traffic transmitted by a physical port on the backup TE tunnel, where a direction of the traffic transmitted by the physical port on the backup TE tunnel is the same as a direction of the backup TE tunnel.
The determining unit is configured to determine that the physical port on the backup TE tunnel is not in a congestion state according to the rate of the traffic transmitted by the physical port on the backup TE tunnel obtained by the obtaining unit.
The switching unit is configured to switch, by the first node, the tunnel used for transmitting the MPLS TE traffic from the primary TE tunnel to the backup TE tunnel when the first node determines that the physical port on the backup TE tunnel is not in the congestion state.
In one possible design, the first node further includes a determination unit,
the obtaining unit is further configured to obtain a rate of traffic transmitted by a physical port on the backup TE tunnel. And the direction of the flow transmitted by the physical port on the standby TE tunnel is the same as that of the backup TE tunnel.
The determining unit is further configured to determine, according to the rate of the traffic transmitted by the physical port on the standby TE tunnel obtained by the obtaining unit, that if the MPLS TE traffic is switched from the primary TE tunnel to the standby TE tunnel, the physical port on the standby TE tunnel is not in a congestion state.
The switching unit is configured to switch, by the first node, the tunnel used for transmitting the MPLS TE traffic from the primary TE tunnel to the backup TE tunnel when it is determined by the first node that if the MPLS TE traffic is switched from the primary TE tunnel to the backup TE tunnel, a physical port on the backup TE tunnel is not in a congestion state.
In a possible design, the obtaining unit is further configured to obtain a rate of traffic of a physical port through which the main TE tunnel passes after the switching unit switches the traffic of the MPLSTE from the main TE tunnel to the backup TE tunnel. The direction of the traffic of the physical port through which the main TE tunnel passes is the same as the direction of the main TE tunnel.
The switching unit is further configured to switch, by the first node, the tunnel used for transmitting the MPLS TE traffic from the backup TE tunnel to the main TE tunnel when the first node determines, according to the rate of the traffic of the physical ports on the main TE tunnel, that there is no physical port in a congested state in the physical ports on the main TE tunnel.
In one possible design, the first node further includes a receiving unit.
The receiving unit is configured to receive a reserved Resv message, where the Resv message carries the first rate. The obtaining unit is configured to obtain the first rate from the Resv message.
In one possible design, the switching unit is further configured to determine that the physical port is in a congested state when the first node determines that the first rate exceeds a threshold.
In a fourth aspect, the present application provides a system for tunnel switching. The system is applied to the network of MPLS TE. The network includes a primary TE tunnel and a backup TE tunnel. And the entry nodes of the main TE tunnel and the backup TE tunnel are first nodes. The system includes the first node and a second node.
The second node is configured to send a first rate to the first node. The first rate is a rate of traffic transmitted by a physical port of the second node. The second node is a node on the primary TE tunnel. The physical port of the second node is on a primary TE tunnel. And the direction of the traffic transmitted by the physical port of the second node is the same as that of the main TE tunnel.
The first node is configured to obtain the first rate. And when the first node determines that the physical port of the second node is in a congestion state according to the first rate, the first node switches the tunnel for transmitting MPLS TE traffic from the main TE tunnel to the backup TE tunnel.
In one possible design, the first node is further configured to obtain a rate of traffic transported by a physical port on the backup TE tunnel. And the direction of the flow transmitted by the physical port on the standby TE tunnel is the same as that of the backup TE tunnel. And determining that the physical port on the standby TE tunnel is not in a congestion state according to the rate of the traffic transmitted by the physical port on the standby TE tunnel. And when the first node determines that the physical port on the standby TE tunnel is not in the congestion state, the first node switches the tunnel for transmitting the MPLS TE traffic from the main TE tunnel to the standby TE tunnel.
In one possible design, the first node is further configured to obtain a rate of traffic transported by a physical port on the backup TE tunnel. And the direction of the flow transmitted by the physical port on the standby TE tunnel is the same as that of the backup TE tunnel. And determining that if the MPLS TE traffic is switched from the main TE tunnel to the backup TE tunnel according to the rate of the traffic transmitted by the physical port on the backup TE tunnel, the physical port on the backup TE tunnel is not in a congestion state. And when it is determined that if the MPLS TE traffic is switched from the main TE tunnel to the backup TE tunnel, the physical port on the backup TE tunnel is not in a congestion state, the first node switches the tunnel for transmitting the MPLS TE traffic from the main TE tunnel to the backup TE tunnel.
In one possible design, the first node is further configured to obtain a rate of traffic of a physical port on the primary TE tunnel. The direction of the traffic of the physical port on the main TE tunnel is the same as the direction of the main TE tunnel. When the first node determines that no physical port in a congestion state exists in the physical ports on the main TE tunnel according to the flow rate of the physical ports on the main TE tunnel, the tunnel used for transmitting MPLS TE flow by the first node is switched to the main TE tunnel from the backup TE tunnel.
In one possible design, the first node is further configured to receive a reserve Resv message. The Resv message carries the first rate.
In one possible design, the first node is further configured to receive a reserved Resv message, where the Resv message carries the first rate.
The first node is configured to obtain the first rate from the Resv message.
In one possible design, the first node determining that the physical port of the second node is in a congested state based on the first rate comprises:
determining that the physical port is in a congested state when the first node determines that the first rate exceeds a threshold.
In a fifth aspect, the present application provides an apparatus comprising a processor and a network interface, the processor being configured to perform corresponding functions in the method of the first aspect. The network interface is configured to support the second node to send a first rate to the device. The control device may also include a memory for coupling with the processor for storing program instructions and data for execution by the processor.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application.
Fig. 2 is a flowchart illustrating a method for switching a tunnel according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a first node according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of another first node provided in the embodiment of the present application.
Fig. 5 is a schematic structural diagram of a system according to an embodiment of the present application.
Detailed Description
The application scenario described in the embodiment of the present application is for more clearly illustrating the technical solution of the embodiment of the present application, and does not form a limitation on the technical solution provided in the embodiment of the present application, and as a person having ordinary skill in the art knows that along with the evolution of a network architecture and the appearance of a new service scenario, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.
In this embodiment of the present application, a "node" may refer to a device that forwards service traffic in an MPLS TE Network, for example, the "node" may be a router, a switch, an Optical Transport Network (OTN) device, a Packet Transport Network (PTN) device, or a Wavelength Division Multiplexing (WDM) device.
In the present application, the bandwidth of the physical port is used to indicate the data transmission capability of the physical port. Specifically, the bandwidth of a physical port is equal to the maximum transmission rate of the physical port. For example, the bandwidth of an ethernet port following 100BASE-TX is 100 megabits per second (Mbps), and the maximum transmission rate that the ethernet port can support is 100 Mbps. The bandwidth of an ethernet port following 1000BASE-TX is 1000Mbps, and the maximum transmission rate that the ethernet port can support is 1000 Mbps.
In this application, the direction of the tunnel refers to a direction from an entrance node of the tunnel to an exit node of the tunnel. The primary TE tunnel is a unidirectional tunnel. That is, the direction of the primary TE tunnel includes only the direction from the ingress node of the primary TE tunnel to the egress node of the primary TE tunnel. The backup TE tunnel is a unidirectional tunnel. That is, the direction of the backup TE tunnel includes only the direction from the ingress node of the backup TE tunnel to the egress node of the backup TE tunnel.
In this application, traffic transmitted by a physical port of a node may be traffic sent by the physical port of the node, or may be traffic received by the physical port of the node. Taking fig. 1 as an example for explanation, the direction from node 101 to node 103 (i.e., node 101-node 102-node 103) is the direction of the primary TE tunnel. Node 102 includes two physical ports (a left port and a right port). The left port is connected to node 101. The right port is connected to node 103. The direction of traffic received by the left port is the same as the direction of the primary TE tunnel. The direction of the traffic received by the right port is the same as the direction of the main TE tunnel.
In this application, a "Resv message" is a message defined by RSVP. With respect to RSVP, see Request Comments (RFC) 2205 issued by Internet Engineering Task Force (IETF). Specifically, according to the RSVP specification, after the LSP tunnel is established, the resource reservation information stored in each node can be periodically refreshed by sending a Resv message.
In the present application, an MPLS TE network refers to a network for implementing MPLS TE. The MPLS TE network includes a primary TE tunnel and a backup TE tunnel. The main TE tunnel and the backup TE tunnel are established according to MPLSTE. In this application, MPLS TE traffic refers to traffic transmitted via the primary TE tunnel. And after the TE tunnel for transmitting the MPLS TE traffic is switched from the main TE tunnel to the backup TE tunnel, the backup TE tunnel is used for transmitting the MPLS TE traffic.
The actual service is constantly changing, and the TE technology cannot guarantee that the reserved bandwidth of the TE tunnel can always meet the requirement of service traffic. To solve the technical problem of how to accurately switch the traffic, fig. 1 shows an application scenario diagram of the embodiment of the present application. In the MPLS TE network environment, a primary TE tunnel and a backup TE tunnel are included. Node 101, node 102, and node 103 in fig. 1 are the nodes of the primary TE tunnel. Node 101, node 104, node 105, node 106, and node 103 in fig. 1 are nodes that backup the TE tunnel. Node 101 is the ingress node of the primary TE tunnel and the backup TE tunnel that transports MPLS TE traffic. Node 103 is the egress node of the primary TE tunnel and the backup TE tunnel that transports MPLS TE traffic. The primary TE tunnel and the backup TE tunnel are established via RSVP.
The process of primary TE tunnel establishment may include: ingress node 101 sends a Path message to intermediate node 102. The Path message is sent downstream along the data message transmission direction. All nodes along the way save the path state respectively. After receiving the Path message, the egress node 103 generates and sends a Resv message carrying reservation information and a label. The Resv message is transmitted along the reverse Path of the Path message transmission Path and reaches the egress node 101. All nodes along the way keep the reserved state respectively. If ingress node 101 receives the Resv message, the resource reservation on the primary TE tunnel is successful.
After the main TE tunnel is established, the resource reservation information stored in the ingress node 101, the node 102 and the egress node 103 of the main TE tunnel can be refreshed regularly by transmitting Resv messages on the main TE tunnel. Specifically, host software periodically and repeatedly sends a Path message from an entry node 101 of a main TE tunnel to an intermediate node 102, the intermediate node receives the Path message sent by the entry node, stores the information carried by the received Path message, and then forms another Path message sending and giving port node 103, after receiving the Path message sent by the intermediate node 102, the outlet node 103 finds that the outlet node is the destination of the main TE tunnel, that is, the outlet node of the main TE tunnel, and the outlet node 103 generates a Resv message according to the information about the resource request carried in the Path message, and sends the Resv message to the entry node through the intermediate node 102 hop by hop along the reverse direction of the Path message sending Path. The embodiment of the application occurs in the process of regularly refreshing the resource reservation information stored on the maintenance node between the nodes on the main TE tunnel through Resv information after the RSVP is used for establishing the path of the main TE tunnel.
Fig. 2 shows a flowchart of a method for switching a tunnel according to an embodiment of the present application. For example, the method may be applied to the application scenario illustrated in fig. 1. The ingress node 101 in fig. 1 may be a first node involved in the method shown in fig. 2, and the intermediate node 102 or the egress node 103 in fig. 1 may be a second node involved in the method shown in fig. 2. The method shown in fig. 2 is applied to a network including MPLS TE, where the network includes a primary TE tunnel and a backup TE tunnel, and a common ingress node of the primary TE tunnel and the backup TE tunnel is a first node. And the physical port of the first node on the main TE tunnel is a first physical port. And the physical port of the first node in the standby TE tunnel is a second physical port. The method shown in fig. 2 includes S201 and S202.
S201, the first node obtains a first rate. The first rate is a rate of traffic transmitted by a physical port of a second node, and the second node is a node on the primary TE tunnel. The physical port of the second node is on a primary TE tunnel. And the direction of the traffic transmitted by the physical port of the second node is the same as that of the main TE tunnel.
The first node obtains the rate of the physical port of the second node, which may be an intermediate node on the primary TE tunnel or an egress node on the primary TE tunnel, on the primary TE tunnel. If the second node is an intermediate node on the primary TE tunnel, the first node obtains the rate of traffic of the second node on both physical ports on the primary TE tunnel. If the second node is an egress node on the primary TE tunnel, the first node obtains a rate of a physical port on the primary TE tunnel on which the second node is located.
For example, the second node may detect traffic transmitted by a physical port of the second node, thereby determining a rate of the traffic transmitted by the physical port of the second node.
The physical port involved in the method shown in fig. 2 may be an Ethernet port (Ethernet port), for example. The ethernet port may specifically comply with 1000 BASE-T. As 1000BASE-T, refer to IEEE802.3ab issued by the Institute of Electrical and Electronics Engineers (IEEE), which will not be described herein.
Optionally, in specific implementation, S201 may include:
and the first node receives a Resv message which carries the first speed. The first node obtains the first rate from the Resv message.
After the main TE tunnel is established, the node on the main TE tunnel can be refreshed regularly to store the resource reservation information by transmitting Resv information on the main TE tunnel. In this process, the egress node sends a Resv message hop-by-hop towards the ingress node, and the first node receives the Resv message from the second node of the primary TE tunnel.
For example, when the second node is an egress node, the first node obtains the rate of traffic transmitted by the physical port of the second node on the backup TE tunnel through the Resv message. When the second node is any one intermediate node of the main TE tunnel, the first node can obtain the speed value of the traffic transmitted by the two physical ports of the second node through the Resv message.
The first node may also determine whether the primary TE tunnel is congested more accurately based on the rates of traffic transmitted on all physical ports on the backup TE tunnel by obtaining the rates of traffic transmitted on the physical ports of other nodes of the primary TE tunnel through which the Resv message passes, the other nodes of the primary TE tunnel also adding the rates of traffic transmitted on the respective physical ports to the fields of the Resv message.
In a specific implementation, after receiving the Resv message through the receiver, the first node may send the Resv message to a parser (parser) of the first node. A parser of the first node may parse the Resv message to determine the first rate.
Optionally, the Resv message includes a record route object RRO field, where the RRO field includes a Subobject, and the Subobject carries the first rate.
The second node adds the rate of the traffic transmitted by the physical port of the second node to the subject field of the Resv message, and the first node obtains the rate of the traffic transmitted by the physical port of the second node according to the received subject field of the Resv message.
For example, when the second node is an egress node, the second node adds the rate value of the traffic transmitted by the physical port of the second node to the Subobject of the Resv message, so that the Resv message carries the rate of the traffic transmitted by the physical port of the second node. When the second node is any one of the intermediate nodes on the main TE tunnel, the second node may also add the rate value of the traffic transmitted by the physical port of the second node in the Subobject of the Resv message.
S202, when the first node determines that the physical port of the second node is in a congestion state according to the first rate, the first node switches a tunnel for transmitting MPLS TE traffic from the primary TE tunnel to the backup TE tunnel.
When the first node determines that the physical port of the second node is in a congestion state according to the first rate, the condition that the first node is triggered to switch the tunnel for transmitting the MPLS TE traffic from the main TE tunnel to the backup TE tunnel is expressed, but not the time sequence.
When S202 is specifically implemented, the first node switches the tunnel used for transmitting the MPLS TE traffic from the primary TE tunnel to the backup TE tunnel based on the result determined by the first node. The first node determines that the physical port of the second node is in a congested state as a result. That is, the result determined by the first node triggers the first node to switch the tunnel for transmitting MPLS TE traffic from the primary TE tunnel to the backup TE tunnel.
Based on the rate of the transmitted traffic of the physical port of the second node obtained by the first node in step S201, the first node determines whether the physical port of the second node is in a congested state.
For example, when the second node is an egress node of the primary TE tunnel, the primary TE tunnel includes only the egress node and the ingress node, and the primary TE tunnel does not include the intermediate node. The first node determines whether the physical port of the second node is in a congested state according to the rate of the transmitted traffic of the physical port of the second node. When the second node is any one of the intermediate nodes on the primary TE tunnel, the first node may determine whether the physical port of the second node is in a congested state according to the obtained rate of the traffic transmitted by the two physical ports of the second node.
Optionally, when the second node is any one of the intermediate nodes of the primary TE tunnel, the first node may further obtain the rate of the traffic transmitted by the physical ports of the other nodes of the primary TE tunnel through which the Resv message passes, as described above. Thus, the first node can obtain the rate of traffic transmitted by each node physical port traversed by the primary TE tunnel. In a more preferred embodiment, the first node may determine whether congestion occurs on a physical port through which the primary TE tunnel passes according to a rate of traffic transmitted on a physical port of each node through which the primary TE tunnel passes, so that more accurate tunnel switching may be achieved.
The first node determining whether the physical port of the second node is in a congested state according to the first rate may be implemented as follows: the first node may be a router. The router includes a control plane and a forwarding plane. The control plane includes a CPU and a memory coupled to the CPU. The memory of the control plane of the first node pre-stores the bandwidth of the physical port of the second node. The memory of the control plane of the first node pre-holds rules that determine whether the physical port of the second node is in a congested state. The rules may be implemented by a computer program. The computer program is stored in a memory of a control plane of the first node. The rule may be that the CPU of the control plane of the first node determines that the physical port of the second node is in a congested state if the transmission rate of the physical port of the second node is greater than or equal to ninety percent of the bandwidth of the physical port of the second node. If the transmission rate of the physical port of the second node is less than ninety percent of the bandwidth of the physical port of the second node and the physical port of the second node is available without failing, the CPU of the control plane of the first node determines that the physical port of the second node is not in a congested state. After the first node obtains the first rate, the CPU of the control plane of the first node may determine whether the physical port of the second node is in a congestion state according to the bandwidth of the physical port of the second node and the rule, which are pre-stored by the CPU of the control plane of the first node. Of course, the rules may be set in other manners, and may be set according to the experience of an engineer.
Specifically, if the first node determines that the physical port of the second node is in a congested state, the traffic of the MPLS TE is switched from the primary TE tunnel to the backup TE tunnel.
The first node may be a router. The router includes a control plane and a forwarding plane. The control plane is realized by a control panel. The forwarding plane is implemented by a forwarding board. The control plane is used for controlling the forwarding plane. The forwarding plane is used for forwarding the message. The control plane and the forwarding plane are coupled by a control channel.
S202 may include, when implemented specifically: and the control plane of the first node sends a command to the forwarding plane of the first node through a control channel. The physical port of the first node on the primary TE tunnel is a first physical port, and the physical port of the first node on the standby TE tunnel is a second physical port. The command may include characteristic information of traffic of the MPLS TE and an identifier of the second physical port. After receiving the command, the forwarding plane of the first node may analyze the command, so as to obtain the feature information of the MPLS TE traffic and the identifier of the second physical port. The forwarding plane of the first node may use the feature information of the traffic of the MPLS TE as a search key to search a forwarding table entry for guiding forwarding of the traffic of the MPLS TE in a forwarding table maintained by the forwarding plane of the first node. The forwarding table entry includes feature information of the traffic of the MPLS TE and an identifier of an egress interface. The identification of the egress interface is the identification of the first physical port. After the forwarding plane of the first node finds the forwarding entry, the identifier of the outgoing interface in the forwarding entry may be modified to the identifier of the second physical port. The forwarding table entry includes a matching field. The matching field includes characteristic information of traffic of the MPLS TE. The characteristic information of the traffic of the MPLS TE may include a source IP address, a destination IP address, a source port, and a destination port. And after the first node modifies the forwarding table, the first node receives the traffic of the MPLS TE. The mpls te traffic may include a plurality of packets. In the multiple messages, the message header of each message includes the characteristic information of the traffic of the MPLS TE. The first node may forward the plurality of packets through the second physical port according to the modified forwarding entry.
For example, when the second node is an egress node of a primary TE tunnel, the primary TE tunnel includes an ingress node and an egress node, and the first node determines that a physical port of the second node is in a congestion state or that a first physical port of the first node is in a congestion state, switches traffic of the MPLS TE from the primary TE tunnel to the backup TE tunnel. When the second node is any one intermediate node of the main TE tunnel, and the first node determines that at least one physical port passing through the physical port of the main TE tunnel is congested according to the rate of the traffic transmitted by each node physical port passing through the main TE tunnel, the traffic of the MPLS TE is switched from the main TE tunnel to the backup TE tunnel.
First, the first node determines whether the physical port of the second node is congested according to the obtained rate of the traffic transmitted by the physical port of the second node of the primary TE tunnel. And further, if the first node determines that the physical port of the second node is congested, switching the flow from the main TE tunnel to the backup TE tunnel. The technical scheme for specifically and accurately realizing the switching of the traffic from the main TE tunnel to the backup TE tunnel is provided according to whether the physical port is in a congestion state or not so as to determine whether to perform tunnel switching or not.
Second, the Resv message is one of the existing MPLS TE mechanisms. In the technical scheme of the application, the ingress node obtains the rate of the traffic transmitted by the physical port of the second node through the Resv message. Compared with the technical scheme of realizing the speed of transmitting the physical port of the second node to the inlet node by defining a new message, the technical scheme of the application can specifically realize the switching of the service flow from the main TE tunnel to the backup TE tunnel by utilizing the existing MPLS TE mechanism, thereby reducing the realization cost and reducing the network overhead.
Optionally, before the first node switches the traffic of the MPLS TE from the primary TE tunnel to the backup TE tunnel, the method further includes:
the first node obtains the rate of the traffic transmitted by the physical port on the backup TE tunnel, and the direction of the traffic transmitted by the physical port on the backup TE tunnel is the same as the direction of the backup TE tunnel;
the first node determines that the physical port on the standby TE tunnel is not in a congestion state according to the rate of the traffic transmitted by the physical port on the standby TE tunnel;
the first node switching a tunnel used for transporting MPLS TE traffic from the primary TE tunnel to the backup TE tunnel comprises:
and when the first node determines that the physical port on the standby TE tunnel is not in the congestion state, the first node switches the tunnel for transmitting the MPLS TE traffic from the main TE tunnel to the standby TE tunnel.
Before the first node switches the traffic of the MPLS TE from the primary TE tunnel to the backup TE tunnel, it is further required to determine a rate of traffic transmission of a physical port on the backup TE tunnel, so as to avoid switching the MPLS TE tunnel to the backup TE tunnel under the condition that the backup TE tunnel is congested, so as to reduce the loss of the MPLS TE traffic.
Specifically, based on the methods of S201 and S202, before the first node switches the traffic of MPLS TE from the primary TE tunnel to the backup TE tunnel, the first node obtains a rate of the traffic transmitted through a physical port on the backup TE tunnel, where a direction of the traffic transmitted through the physical port through which the backup TE tunnel passes is the same as a direction of the backup TE tunnel. The rate at which the first node obtains traffic transmitted by the physical port on the backup TE tunnel includes both the rate at which traffic transmitted by the physical port of the backup TE tunnel is obtained and the rate at which traffic transmitted by all physical ports on the backup TE tunnel is obtained.
For example, the first node obtains the rate of the traffic transmitted by the physical ports of the other nodes on the backup TE tunnel by adding the rate of the physical ports of the other nodes on the backup TE tunnel to the Subobject field of the Resv message. For the rate of the traffic transmitted by the second physical port of the first node on the backup TE tunnel, the first node may obtain the rate of the traffic transmitted by the second physical port through the memory of the first node.
Optionally, before the first node switches the traffic of the MPLS TE from the primary TE tunnel to the backup TE tunnel, the method further includes:
the first node obtains the rate of the traffic transmitted by the physical port on the backup TE tunnel, and the direction of the traffic transmitted by the physical port on the backup TE tunnel is the same as the direction of the backup TE tunnel;
the first node determines that if the MPLS TE traffic is switched from the main TE tunnel to the backup TE tunnel according to the rate of the traffic transmitted by the physical port on the backup TE tunnel, the physical port on the backup TE tunnel is not in a congestion state;
the first node switching a tunnel used for transporting MPLS TE traffic from the primary TE tunnel to the backup TE tunnel comprises:
when the first node determines that if the MPLS TE traffic is switched from the main TE tunnel to the backup TE tunnel, the physical port on the backup TE tunnel is not in a congestion state, the first node switches the MPLS TE traffic from the main TE tunnel to the backup TE tunnel.
After obtaining the rate of the traffic transmitted by the physical ports through which the backup TE tunnel passes, the first node also considers the rate of the real-time traffic transmitted by the backup TE tunnel, so as to determine whether at least one of the physical ports through which the backup TE tunnel passes is in a congestion state if the MPLS TE tunnel is switched to the backup TE tunnel. And if the sum of the real-time transmission traffic rate of the backup TE tunnel and the traffic of the MPLS TE is greater than the bandwidth of the traffic of at least one physical port which is penetrated by the backup TE tunnel, the physical port which is penetrated by the backup TE tunnel is considered to be congested. If the sum of the real-time traffic rate of the backup TE tunnel and the traffic of the MPLS TE is less than the rate of the traffic transmitted by the physical port of the backup TE tunnel, it is determined that the physical port through which the backup TE tunnel passes is not congested, and thus the traffic of the MPLS TE may be switched from the main TE tunnel to the backup TE tunnel.
The specific implementation manner is that the first node prestores the bandwidth of the physical port on the standby TE tunnel. For example, the first node may be a router, and a memory in the router pre-stores the bandwidth of the physical port on the backup TE tunnel.
And the first node measures the MPLS TE traffic transmitted by the first physical port to obtain the rate of the MPLS TE traffic. For example, a traffic management chip in the router measures the MPLS TE traffic transmitted by the first physical port according to the feature information of the MPLS TE traffic, so as to obtain a rate of the MPLS TE traffic. The characteristic information may include a source IP address, a destination IP address, a source port, and a destination port.
The first node holds in advance a computer program that executes a first algorithm. The first algorithm is used for judging whether a physical port on the standby TE tunnel is in a congestion state or not if the MPLS TE traffic is switched from the main TE tunnel to the standby TE tunnel. For example, the computer program is stored in advance in a memory in the router. The CPU in the router may execute the computer program by accessing the memory.
For example, the first algorithm may be to determine that if the sum of the rate of the MPLS TE traffic and the rate of the traffic transported by the physical port on the backup TE tunnel is greater than the bandwidth of the physical port on the backup TE tunnel, switching the MPLS TE traffic from the primary TE tunnel to the backup TE tunnel will result in the physical port on the backup TE tunnel being in a congested state. If the sum of the rate of the MPLS TE traffic and the rate of the traffic transmitted by the physical port on the backup TE tunnel is less than or equal to the bandwidth of the physical port on the backup TE tunnel, it is determined that if the MPLS TE traffic is switched from the primary TE tunnel to the backup TE tunnel, the physical port on the backup TE tunnel will not be caused to be in a congested state.
Alternatively, the first algorithm may be to determine that if the sum of the rate of the MPLS TE traffic and the rate of the traffic transported by the physical port on the backup TE tunnel is ninety percent greater than the bandwidth of the physical port on the backup TE tunnel, switching the MPLS TE traffic from the primary TE tunnel to the backup TE tunnel will result in the physical port on the backup TE tunnel being in a congested state. If ninety percent of a sum of a rate of the MPLS TE traffic and a rate of traffic transported by a physical port on the backup TE tunnel is less than or equal to a bandwidth of the physical port on the backup TE tunnel, then a determination is made that the physical port on the backup TE tunnel will not be caused to be in a congested state if the MPLS TE traffic is switched from the primary TE tunnel to the backup TE tunnel.
After the CPU in the router may obtain the bandwidth of the physical port on the backup TE tunnel, the rate of the MPLS TE traffic, and the rate of the traffic transmitted by the physical port on the backup TE tunnel, the CPU may determine, by executing the computer program, whether switching the MPLS TE traffic from the primary TE tunnel to the backup TE tunnel would cause the physical port on the backup TE tunnel to be in a congested state.
For example, the first node may also select to obtain the rate of the traffic transmitted by only a part of the physical ports of the nodes in the backup TE tunnel according to the actual situation, instead of obtaining the rates of the traffic transmitted by the physical ports of the nodes in all the backup TE tunnels. For example, the physical port transmission rate of the partial node of the backup TE tunnel is very high, and even if the traffic of the MPLS TE of the main TE tunnel is switched from the main TE tunnel to the backup TE tunnel without congestion, the first node does not need to obtain the rate of the traffic transmitted by the physical port of the partial node. In this case, the first node only needs to obtain the rate of traffic transmitted by the physical ports of the other nodes of the backup TE tunnel, and then determines whether switching the traffic of the MPLS TE of the main TE tunnel from the main TE tunnel to the backup TE tunnel would cause the physical ports of more than one node of the backup TE tunnel to be congested, and if the first node determines that congestion would not occur, the first node switches the traffic of the MPLS TE of the main TE tunnel from the main TE tunnel to the backup TE tunnel.
Optionally, after S202, the method further includes:
the first node obtains a rate of traffic of a physical port through which the primary TE tunnel passes, and a direction of the traffic of each physical port through which the primary TE tunnel passes is the same as a direction of the primary TE tunnel.
And the first node determines whether a physical port in a congestion state exists in the physical ports passed by the main TE tunnel according to the flow rate of the physical ports passed by the main TE tunnel.
And if the first node determines that no physical port in a congestion state exists in the physical ports passed by the main TE tunnel, switching the traffic of the MPLS TE from the backup TE tunnel to the main TE tunnel.
After switching the traffic of the MPLS TE from the primary TE tunnel to the backup TE tunnel, the first node may obtain the rate of the traffic transmitted by the physical port of the other node on the primary TE tunnel by using the same method as S201. The first node may directly obtain a rate of the first node at the physical port of the primary TE tunnel, and a specific implementation manner may be that the first node directly obtains, through a register of the first node, a rate of traffic transmitted by the physical port of the first node on the primary TE tunnel. And if the first node determines that no physical port in the congestion state exists in the physical ports crossed by the primary TE tunnel, switching the traffic of the MPLS TE from the backup TE tunnel to the primary TE tunnel.
Fig. 3 is a schematic structural diagram of a first node according to an embodiment of the present application. For example, the first node in fig. 3 may be used to perform the method shown in fig. 2. The first node in fig. 3 may be used to implement node 101 in fig. 1. The first node 300 includes: an obtaining unit 301 and a switching unit 302.
The first node shown in fig. 3 is applied to a MPLS TE network, where the network includes a primary TE tunnel and a backup TE tunnel, and the first node is an ingress node of the primary TE tunnel and the backup TE tunnel. The obtaining unit 301 is configured to obtain a rate of traffic transmitted by a physical port of the second node. The obtaining unit 301 may be configured to perform S201. For a specific implementation manner of the obtaining unit 301, please refer to the description of S201 in the embodiment shown in fig. 2, which is not described herein again.
The obtaining unit 301 is further configured to obtain a first rate, where the first rate is a rate of traffic transmitted by a physical port of the second node. The second node is a node on the primary TE tunnel. The physical port of the second node is on a primary TE tunnel. And the direction of the traffic transmitted by the physical port of the second node is the same as that of the main TE tunnel. The obtaining unit 301 may specifically obtain, through the memory of the first node, a rate of traffic transmitted by a physical port of another node on the primary TE tunnel.
The switching unit 302 is configured to switch, by the first node, a tunnel used for transmitting MPLS TE traffic from the primary TE tunnel to the backup TE tunnel when the first node determines that the physical port of the second node is in the congestion state according to the first rate. The switching unit 302 may be configured to perform S202. For a specific implementation of the switching unit 302, please refer to the description of S202 in the embodiment shown in fig. 2, which is not described herein again. The switching unit 302 may perform the function of the first node to switch the tunnel for transmitting MPLS TE traffic from the primary TE tunnel to the backup TE tunnel when the first node determines that switching the MPLS TE traffic from the primary TE tunnel to the backup TE tunnel would not cause the physical port on the backup TE tunnel to be in a congested state.
Optionally, the first node further includes a determining unit 303.
The obtaining unit 301 is further configured to obtain a rate of traffic transmitted by a physical port on the standby TE tunnel, where a direction of the traffic transmitted by the physical port on the standby TE tunnel is the same as a direction of the backup TE tunnel.
The determining unit 303 is further configured to determine that the physical port on the backup TE tunnel is not in a congestion state according to the rate of the traffic transmitted by the physical port on the backup TE tunnel obtained by the obtaining unit 301.
The switching unit 302 is further configured to switch the tunnel used for transmitting the MPLS TE traffic from the primary TE tunnel to the backup TE tunnel when the determining unit 303 determines that the physical port on the backup TE tunnel is not in the congestion state.
Optionally, the first node further includes a determining unit 303.
The obtaining unit 301 is further configured to obtain a rate of traffic transmitted by a physical port on the standby TE tunnel, where a direction of the traffic transmitted by the physical port on the standby TE tunnel is the same as a direction of the backup TE tunnel.
The determining unit 303 is further configured to determine, according to the rate of the traffic transmitted by the physical port on the standby TE tunnel obtained by the obtaining unit 301, that if the MPLS TE traffic is switched from the primary TE tunnel to the standby TE tunnel, the physical port on the standby TE tunnel is not in a congestion state.
The switching unit 302 is further configured to switch the tunnel used for transmitting the MPLS TE traffic from the primary TE tunnel to the backup TE tunnel when the determination unit 303 determines that if the MPLS TE traffic is switched from the primary TE tunnel to the backup TE tunnel, it will not cause a physical port on the backup TE tunnel to be in a congested state.
Optionally, the obtaining unit 301 is further configured to obtain a rate of traffic of a physical port that the main TE tunnel passes through after the switching unit 303 switches the traffic of the MPLS TE from the main TE tunnel to the backup TE tunnel, where a direction of the traffic of the physical port that the main TE tunnel passes through is the same as a direction of the main TE tunnel.
The switching unit 302 is further configured to switch, by the first node, the tunnel used for transmitting the MPLS TE traffic from the backup TE tunnel to the main TE tunnel when the first node determines, according to the rate of the traffic of the physical ports on the main TE tunnel, that there is no physical port in the congested state in the physical ports on the main TE tunnel.
Optionally, the first node further includes a receiving unit 304, where the receiving unit 304 is configured to receive a reserved Resv message, and the Resv message carries the first rate.
The obtaining unit 301 is configured to obtain the first rate from the Resv message received by the receiving unit 304.
Optionally, the switching unit 302 is further configured to determine that the physical port is in a congestion state when the first node determines that the first rate exceeds a threshold.
Fig. 4 is a schematic structural diagram of a first node according to an embodiment of the present application. The first node 400 provided in this embodiment may be used to implement the node 101 shown in fig. 1. The first node 400 may be adapted to perform the method shown in fig. 2. The meaning of the technical terms referred to by the first node 400 and the specific implementation of the technical terms referred to may refer to the descriptions of the corresponding embodiments of fig. 1 and fig. 2.
As shown in fig. 4, first node 400 includes a processor 401 and a processor 402. Optionally, the control device 400 further comprises a network interface 403. Processor 401 is coupled to processor 402 by a bus. The processor 401 is coupled to a network interface 403 by a bus.
The processor 401 may be a Central Processing Unit (CPU), a Network Processor (NP), an application-specific integrated circuit (ASIC), or a Programmable Logic Device (PLD). The PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), or a General Array Logic (GAL).
The memory 402 may be a content-addressable memory (CAM) or a random-access memory (RAM). The CAM may be a Ternary Content Addressable Memory (TCAM).
The network Interface 403 may be a wired Interface, such as a Fiber Distributed Data Interface (FDDI) or an Ethernet Interface.
The memory 402 may also be integrated in the processor 401. If the memory 403 and the processor 401 are separate devices, the memory 402 and the processor 401 may be connected, for example, the memory 402 and the processor 401 may communicate via a bus. The network interface 403 and the processor 401 may communicate via a bus, and the network interface 403 may be directly connected to the processor 401.
The processor 401 is configured to perform:
a first rate is obtained by the memory 402, the first rate being a rate of traffic transmitted by a physical port of the second node.
And when the first node determines that the physical port of the second node is in a congestion state according to the first rate, the first node switches the tunnel for transmitting MPLS TE traffic from the main TE tunnel to the backup TE tunnel. .
For other additional functions that the control device 400 can implement and the interaction process with other devices, please refer to the description of the first node in the method embodiment, which is not described herein again.
Fig. 5 is a schematic structural diagram of a system according to an embodiment of the present application. The system provided by this embodiment may be applied to the application scenario shown in fig. 1, and the first node 501 provided by this embodiment may be used to implement the node 101 in fig. 1. The second node 502 may be used to implement either node 102 or node 103 in fig. 1. The first node 501 provided in this embodiment may be used to execute the method shown in fig. 2. The system is applied to a network of MPLS TE for multi-protocol label switching traffic engineering, where the network includes a main TE tunnel and a backup TE tunnel, and an entry node of the main TE tunnel and the backup TE tunnel is a first node 501. The system 500 includes a first node 501 and a second node 502.
The second node 502 is arranged to send the first rate to said first node 501. The first rate is the rate of traffic transmitted by the physical port of the second node 502. The second node 502 is a node on the primary TE tunnel. The direction of traffic transmitted by the physical port of the second node 502 is the same as the direction of the primary TE tunnel.
The first node 501 is configured to obtain the first rate. And when the first node determines that the physical port of the second node is in a congestion state according to the first rate, the first node switches the tunnel for transmitting MPLS TE traffic from the main TE tunnel to the backup TE tunnel.
Optionally, the first node 501 is further configured to obtain a rate of traffic transmitted by a physical port on the backup TE tunnel, a direction of the traffic transmitted by the physical port on the backup TE tunnel is the same as the direction of the backup TE tunnel, determine that the physical port on the backup TE tunnel is not in a congestion state according to the rate of the traffic transmitted by the physical port on the backup TE tunnel, when the first node determines that the physical port on the backup TE tunnel is not in the congestion state, the first node switches the tunnel used for transmitting the MPLS TE traffic from the main TE tunnel to the backup TE tunnel, and is optional, the first node 501 is further configured to obtain a rate of the traffic transmitted by the physical port on the backup TE tunnel, and a direction of the traffic transmitted by the physical port on the backup TE tunnel is the same as the direction of the backup TE tunnel, determining, according to a rate of traffic transmitted by a physical port on the backup TE tunnel, that if the MPLS TE traffic is switched from the primary TE tunnel to the backup TE tunnel, the physical port on the backup TE tunnel is not in a congested state; and when it is determined that if the MPLS TE traffic is switched from the main TE tunnel to the backup TE tunnel, the physical port on the backup TE tunnel is not in a congestion state, the first node switches the tunnel for transmitting the MPLS TE traffic from the main TE tunnel to the backup TE tunnel. Optionally, the first node 501 is further configured to obtain a flow rate of a physical port on the main TE tunnel, where a direction of the flow rate of the physical port on the main TE tunnel is the same as a direction of the main TE tunnel, and when the first node determines that there is no physical port in a congested state in the physical ports on the main TE tunnel according to the flow rate of the physical port on the main TE tunnel, the tunnel used by the first node to transmit the MPLS TE flow is switched from the backup TE tunnel to the main TE tunnel.
Optionally, the first node 501 is further configured to receive a reserved Resv message, where the Resv message carries the first rate. The first node is configured to obtain the first rate from the Resv message.
Optionally, the determining, by the first node, that the physical port of the second node is in the congestion state according to the first rate includes:
determining that the physical port is in a congested state when the first node determines that the first rate exceeds a threshold.
The functional units in the embodiments of the present application may be integrated into one processor, or each unit may exist alone physically, or two or more circuits are integrated into one circuit. The functional units can be realized in a hardware form, and can also be realized in a software functional unit form.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of the unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The elements described as separate components may or may not be physically separate. The components displayed as a unit may or may not be a physical unit. I.e. may be located in one place or may be distributed over a plurality of network elements. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The integrated unit, if implemented in hardware in combination with software and sold or used as a stand-alone product, may be stored in a computer readable storage medium. With this understanding, some technical features of the technical solutions of the present invention that contribute to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) to perform some or all of the steps of the methods described in the embodiments of the present invention. The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
All parts of the specification are described in a progressive mode, the same and similar parts of all embodiments can be referred to each other, and each embodiment is mainly introduced to be different from other embodiments. In particular, as to the apparatus and system embodiments, since they are substantially similar to the method embodiments, the description is relatively simple and reference may be made to the description of the method embodiments in relevant places.
It should be understood that, in the embodiments of the present application, the magnitude of the serial number of each method described above does not mean the execution sequence, and the execution sequence of each method should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Those of ordinary skill in the art will appreciate that the various illustrative devices or methods described in connection with the embodiments disclosed herein may be implemented as electronic hardware. Or in a combination of electronic hardware and computer software. To clearly illustrate this interchangeability of hardware and software, various illustrative components and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application.
Finally, it is to be noted that: the above description is only a preferred embodiment of the present application. Obviously, various modifications and alterations to the present application will be apparent to those skilled in the art.

Claims (9)

1. A method for switching tunnels, the method is applied to a multi-protocol label switching traffic engineering (MPLS TE) network, the network comprises a main Traffic Engineering (TE) tunnel and a backup TE tunnel, and an entrance node of the main TE tunnel and the backup TE tunnel is a first node, and the method comprises the following steps:
the first node obtains a first rate, where the first rate is a rate of traffic transmitted by a physical port of a second node, the second node is a node on the main TE tunnel, the physical port of the second node is on the main TE tunnel, and a direction of the traffic transmitted by the physical port of the second node is the same as a direction of the main TE tunnel;
when the first node determines that the physical port of the second node is in a congestion state according to the first rate, the first node switches a tunnel for transmitting MPLS TE traffic from the main TE tunnel to the backup TE tunnel;
before the first node switches the tunnel for transporting MPLS TE traffic from the primary TE tunnel to the backup TE tunnel, the method further includes:
the first node obtains the rate of the traffic transmitted by the physical port on the backup TE tunnel, and the direction of the traffic transmitted by the physical port on the backup TE tunnel is the same as the direction of the backup TE tunnel;
the first node determines that the physical port on the standby TE tunnel is not in a congestion state according to the rate of the traffic transmitted by the physical port on the standby TE tunnel;
the first node switching a tunnel used for transporting MPLS TE traffic from the primary TE tunnel to the backup TE tunnel comprises:
when the first node determines that a physical port on the standby TE tunnel is not in a congestion state, the first node switches a tunnel for transmitting MPLS TE traffic from the main TE tunnel to the standby TE tunnel;
the first node obtaining a first rate comprises:
the first node obtains the first rate from recording a route object, RRO, field in a reserved Resv message.
2. The method of claim 1, wherein before the first node switches the tunnel used for transporting MPLS TE traffic from the primary TE tunnel to the backup TE tunnel, the method further comprises:
the first node obtains the rate of the traffic transmitted by the physical port on the backup TE tunnel, and the direction of the traffic transmitted by the physical port on the backup TE tunnel is the same as the direction of the backup TE tunnel;
the first node determines that if the MPLS TE traffic is switched from the main TE tunnel to the backup TE tunnel according to the rate of the traffic transmitted by the physical port on the backup TE tunnel, the physical port on the backup TE tunnel is not in a congestion state;
the first node switching a tunnel used for transporting MPLS TE traffic from the primary TE tunnel to the backup TE tunnel comprises:
when the first node determines that if the MPLS TE traffic is switched from the main TE tunnel to the backup TE tunnel, the physical port on the backup TE tunnel is not in a congestion state, the first node switches the MPLS TE traffic from the main TE tunnel to the backup TE tunnel.
3. The method of claim 1 or 2, wherein after the first node switches the tunnel used for transporting MPLS TE traffic from the primary TE tunnel to the backup TE tunnel, the method further comprises:
the first node obtains a rate of traffic of a physical port on the main TE tunnel, and a direction of the traffic of the physical port on the main TE tunnel is the same as a direction of the main TE tunnel;
when the first node determines that no physical port in a congestion state exists in the physical ports on the main TE tunnel according to the flow rate of the physical ports on the main TE tunnel, the first node switches the tunnel for transmitting the MPLS TE flow from the backup TE tunnel to the main TE tunnel.
4. A first node, the first node is applied in a multi-protocol label switching traffic engineering MPLS TE network, the network includes a primary traffic engineering TE tunnel and a backup TE tunnel, the first node is an ingress node of the primary TE tunnel and the backup TE tunnel, and the first node includes an obtaining unit and a switching unit:
the obtaining unit is configured to obtain a first rate, where the first rate is a rate of traffic transmitted by a physical port of a second node, the second node is a node of the primary TE tunnel, the physical port of the second node is on the primary TE tunnel, and a direction of the traffic transmitted by the physical port of the second node is the same as a direction of the primary TE tunnel;
the switching unit is configured to switch, by the first node, a tunnel used for transmitting MPLS TE traffic from the primary TE tunnel to the backup TE tunnel when the first node determines that the physical port of the second node is in a congestion state according to the first rate;
the first node further comprises a determining unit,
the obtaining unit is further configured to obtain a rate of traffic transmitted by a physical port on the backup TE tunnel, where a direction of the traffic transmitted by the physical port on the backup TE tunnel is the same as a direction of the backup TE tunnel;
the determining unit is configured to determine, according to the rate of the traffic transmitted by the physical port on the backup TE tunnel obtained by the obtaining unit, that the physical port on the backup TE tunnel is not in a congestion state;
the switching unit is configured to, when the first node determines that a physical port on the backup TE tunnel is not in a congestion state, switch, by the first node, a tunnel used for transmitting MPLS TE traffic from the primary TE tunnel to the backup TE tunnel;
the obtaining unit is configured to obtain the first rate from a RRO field of a routing object recorded in the Resv message.
5. The first node according to claim 4, characterized in that the first node further comprises a determining unit,
the obtaining unit is further configured to obtain a rate of traffic transmitted by a physical port on the backup TE tunnel, where a direction of the traffic transmitted by the physical port on the backup TE tunnel is the same as a direction of the backup TE tunnel;
the determining unit is further configured to determine, according to the rate of the traffic transmitted by the physical port on the backup TE tunnel obtained by the obtaining unit, that if the MPLS TE traffic is switched from the primary TE tunnel to the backup TE tunnel, the physical port on the backup TE tunnel is not in a congestion state;
the switching unit is configured to, when the first node determines that if the MPLS TE traffic is switched from the primary TE tunnel to the backup TE tunnel, it will not cause a physical port on the backup TE tunnel to be in a congestion state, switch, by the first node, a tunnel used for transmitting MPLS TE traffic from the primary TE tunnel to the backup TE tunnel.
6. The first node according to claim 4 or 5,
the obtaining unit is further configured to obtain a rate of traffic of a physical port that the main TE tunnel passes through after the switching unit switches the traffic of the MPLS TE from the main TE tunnel to the backup TE tunnel, where a direction of the traffic of the physical port that the main TE tunnel passes through is the same as a direction of the main TE tunnel;
the switching unit is further configured to switch, by the first node, the tunnel used for transmitting the MPLS TE traffic from the backup TE tunnel to the main TE tunnel when the first node determines, according to the rate of the traffic of the physical ports on the main TE tunnel, that there is no physical port in a congested state in the physical ports on the main TE tunnel.
7. A system for tunnel switching, the system being applied in a network for multiprotocol label switching traffic engineering, MPLS, the network comprising a primary traffic engineering, TE, tunnel and a backup, TE, the ingress node of the primary and backup, TE, tunnels being a first node, the system comprising the first node and a second node,
the second node is configured to send a first rate to the first node, where the first rate is a rate of traffic transmitted by a physical port of the second node, the second node is a node on the primary TE tunnel, the physical port of the second node is on the primary TE tunnel, and a direction of the traffic transmitted by the physical port of the second node is the same as a direction of the primary TE tunnel;
the first node is configured to obtain the first rate, and when the first node determines that the physical port of the second node is in a congestion state according to the first rate, the first node switches a tunnel used for transmitting MPLS TE traffic from the primary TE tunnel to the backup TE tunnel;
the first node is further configured to obtain a rate of traffic transmitted by a physical port on the backup TE tunnel, where a direction of the traffic transmitted by the physical port on the backup TE tunnel is the same as a direction of the backup TE tunnel, determine, according to the rate of the traffic transmitted by the physical port on the backup TE tunnel, that the physical port on the backup TE tunnel is not in a congestion state, and when the first node determines that the physical port on the backup TE tunnel is not in the congestion state, switch, by the first node, the tunnel for transmitting MPLS TE traffic from the main TE tunnel to the backup TE tunnel;
the first node obtaining a first rate comprises:
the first node obtains the first rate from recording a route object, RRO, field in a reserved Resv message.
8. The system of claim 7,
the first node is further configured to obtain a rate of traffic transmitted by a physical port on the backup TE tunnel, where a direction of the traffic transmitted by the physical port on the backup TE tunnel is the same as a direction of the backup TE tunnel, and determine, according to the rate of the traffic transmitted by the physical port on the backup TE tunnel, that if the MPLS TE traffic is switched from the primary TE tunnel to the backup TE tunnel, the physical port on the backup TE tunnel is not in a congestion state; and when it is determined that if the MPLS TE traffic is switched from the main TE tunnel to the backup TE tunnel, the physical port on the backup TE tunnel is not in a congestion state, the first node switches the tunnel for transmitting the MPLS TE traffic from the main TE tunnel to the backup TE tunnel.
9. The system of claim 8 or 7,
the first node is further configured to obtain a flow rate of a physical port on the main TE tunnel, where a flow direction of the physical port on the main TE tunnel is the same as a direction of the main TE tunnel, and when the first node determines that there is no physical port in a congested state in the physical ports on the main TE tunnel according to the flow rate of the physical port on the main TE tunnel, the tunnel used by the first node to transmit MPLS TE flow is switched from the backup TE tunnel to the main TE tunnel.
CN201611043428.XA 2016-11-23 2016-11-23 Method, equipment and system for switching tunnel Active CN108092866B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611043428.XA CN108092866B (en) 2016-11-23 2016-11-23 Method, equipment and system for switching tunnel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611043428.XA CN108092866B (en) 2016-11-23 2016-11-23 Method, equipment and system for switching tunnel

Publications (2)

Publication Number Publication Date
CN108092866A CN108092866A (en) 2018-05-29
CN108092866B true CN108092866B (en) 2021-07-16

Family

ID=62171126

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611043428.XA Active CN108092866B (en) 2016-11-23 2016-11-23 Method, equipment and system for switching tunnel

Country Status (1)

Country Link
CN (1) CN108092866B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112235209A (en) * 2019-07-25 2021-01-15 北京天德科技有限公司 Intra-network control of virtual circuits

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110753A (en) * 2006-07-20 2008-01-23 华为技术有限公司 End-to-end quality assurance method and system based on congestion alarm
CN101447929A (en) * 2008-12-26 2009-06-03 华为技术有限公司 Traffic routing method, router and communication system
CN101577661A (en) * 2008-05-09 2009-11-11 华为技术有限公司 Method and equipment for switching path
CN103595628B (en) * 2013-11-13 2016-09-07 杭州华三通信技术有限公司 A kind of method and device saving FRR protection resource

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8072879B2 (en) * 2006-02-03 2011-12-06 Cisco Technology, Inc. Technique for determining whether to reestablish fast rerouted primary tunnels based on backup tunnel path quality feedback

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110753A (en) * 2006-07-20 2008-01-23 华为技术有限公司 End-to-end quality assurance method and system based on congestion alarm
CN101577661A (en) * 2008-05-09 2009-11-11 华为技术有限公司 Method and equipment for switching path
CN101447929A (en) * 2008-12-26 2009-06-03 华为技术有限公司 Traffic routing method, router and communication system
CN103595628B (en) * 2013-11-13 2016-09-07 杭州华三通信技术有限公司 A kind of method and device saving FRR protection resource

Also Published As

Publication number Publication date
CN108092866A (en) 2018-05-29

Similar Documents

Publication Publication Date Title
US11848757B2 (en) In-situ passive performance measurement in a network environment
US20210058315A1 (en) Method and Network Device for Computing Forwarding Path
US11012353B2 (en) Using in-band operations data to signal packet processing departures in a network
US10250459B2 (en) Bandwidth on-demand services in multiple layer networks
US9185036B2 (en) Method and apparatus for flow control of data in a network
US7826369B2 (en) Subsets of the forward information base (FIB) distributed among line cards in a switching device
US9391704B2 (en) Replacing an existing network communications path with a new path using some exclusive physical resources of the existing path
JP5760083B2 (en) Method and apparatus for fast switching from a primary multicast tree to a standby multicast tree
US20130232193A1 (en) Control-Plane Interface Between Layers in a Multilayer Network
US10298499B2 (en) Technique of operating a network node for load balancing
US20130322248A1 (en) Flow label negotiation method, related device, and system
US9210037B2 (en) Method, apparatus and system for interconnected ring protection
Porwal et al. Traffic Analysis of MPLS and Non MPLS Network including MPLS Signaling Protocols and Traffic distribution in OSPF and MPLS
US20150200843A1 (en) Packet Labels For Identifying Synchronization Groups of Packets
WO2021185208A1 (en) Packet processing method and apparatus, device, and storage medium
US11750517B2 (en) Service function chaining congestion feedback
KR101688682B1 (en) Fast lsp alert mechanism
EP3534571B1 (en) Service packet transmission method, and node apparatus
US20220124023A1 (en) Path Switching Method, Device, and System
US10389615B2 (en) Enhanced packet flow monitoring in a network
CN113055293B (en) Routing method and device in software defined wide area network and communication system
Chung Analysis of MPLS traffic engineering
CN108092866B (en) Method, equipment and system for switching tunnel
CN108512771A (en) A kind of method and apparatus that data stream load is shared
US20230379246A1 (en) Method and Apparatus for Performing Protection Switching in Segment Routing SR Network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant