The present document relates to a network data communication technology, in particular, to a method for processing data forwarding and a Service Provider-end Provider Edge (SPE).
Pseudo Wire Emulation Edge-to-Edge (PWE3) provides a tunnel on a packet switched network (IP/Multiple Protocol Label Switching (MPLS)), so as to emulate a layer 2 Virtual Private Network (VPN) protocol of some services (e.g., Frame Relay (FR), Asynchronous Transfer Mode (ATM), Ethernet, Time Division Multiplex Synchronous Optical Network/Synchronous Digital Hierarchy (TDM SONET/SDH)), and a traditional network and the packet switched network can be interconnected through the protocol, thereby realizing the resource sharing and network expansion.
The PWE3 is an extension to an L2VPN Martini protocol, in which a function of Multi Segment Pseudo Wires (MSPW) is added and a networking mode is extended. The MSPW means that multiple Pseudo Wires (PW) exist between a User-end Provider Edge (U-PE, also called as a user access device) and a U-PE. A forwarding mechanism of a U-PE in multiple hops is the same as a forwarding mechanism of a U-PE in a single hop, except it is needed to perform label switching of a PW Label layer on a Switching PE (S-PE) in the multi-hop forwarding. In most situations, the single-hop PW can meet practical requirements, but under the following several situations the single-hop PW cannot meet the requirements and the multi-hop PW needs to be adopted: two PEs are not in a same Autonomous System domain, and a signaling connection or a tunnel cannot be established between the two PEs; signalings on the two PEs are different, for example, one end runs a Label Distribution Protocol (LDP) and the other end runs a Resource Reservation Protocol (RSVP); if access devices can run the MPLS but have no capability to establish a large number of LDP sessions, then User Facing Provider Devices (UFPE) can be taken as U-PEs at this point, and high performance devices S-PEs can be taken as switching nodes of the LDP sessions, similar to a signaling reflector.
The function of MSPW can reduce the requirement for the number of LDP connections supported by the access devices, i.e., can reduce overheads of the LDP sessions of the access nodes; the multi-hop access nodes meet a convergence function of the PW, which makes the network more flexible and appropriate for grading (access, convergence and core). More telecom low-speed Time Division Multiplex (TDM) interfaces are supported.
In an MSPW network in the PWE3 application, when a failure occurs in a device between intermediate S-PEs, it causes that data messages cannot be forwarded successfully, so as to affect the quality of service.
The technical problem required to be solved in the embodiments of the present document is to provide a method for processing data forwarding and a Service Provider-end Provider Edge (SPE), so as to solve the problem that data messages cannot be forwarded when an intermediate device fails.
In order to solve the above technical problem, the following technical solution is adopted.
The embodiment of the present document provides a method for processing data forwarding, comprising:
a Service Provider-end Provider Edge (SPE) configuring data forwarding information, wherein the data forwarding information comprises a corresponding relationship between Multi Segment Pseudo Wires (MSPW) information and forwarding information of an MSPW protection link group or a corresponding relationship between the MSPW information and forwarding information of other MSPW except the forwarding information of the MSPW protection link group;
the SPE receiving a service message, wherein the service message carries the MSPW information;
the SPE querying the forwarding information of the MSPW protection link group or the forwarding information of other MSPW except the forwarding information of the MSPW protection link group corresponding to the MSPW information carried in the service message according to the corresponding relationship between the MSPW information and the forwarding information of the MSPW protection link group or the corresponding relationship between the MSPW information and the forwarding information of other MSPW except the forwarding information of the MSPW protection link group; and
the SPE performing label encapsulation and forwarding according to the queried-out forwarding information of the MSPW protection link group or the forwarding information of other MSPW except the forwarding information of the MSPW protection link group.
Optionally, the forwarding information of the MSPW protection link group comprises forwarding information of at least one effective protection link and forwarding information of at least one standby protection link.
Correspondingly, the step of performing label encapsulation according to the queried-out forwarding information of the MSPW protection link group comprises: performing the label encapsulation according to the forwarding information of the effective protection link.
Optionally, the method further comprises:
the SPE selecting one standby protection link as a new effective protection link when determining that a current effective protection link fails.
Optionally, the SPE selects from all standby protection links a protection link with a highest priority as the new effective protection link.
The embodiment of the present document provides a Service Provider-end Provider Edge (SPE), comprising: a data forwarding information management unit, a message receiving unit, a query unit and a message encapsulation and forwarding unit, wherein,
the data forwarding information management unit is configured to: configure data forwarding information, wherein the data forwarding information comprises a corresponding relationship between Multi Segment Pseudo Wires (MSPW) information and forwarding information of an MSPW protection link group or a corresponding relationship between the MSPW information and forwarding information of other MSPW except the forwarding information of the MSPW protection link group;
the message receiving unit is configured to: receive a service message, wherein the service message carries the MSPW information;
the query unit is configured to: query the forwarding information of the MSPW protection link group or the forwarding information of other MSPW except the forwarding information of the MSPW protection link group corresponding to the MSPW information carried in the service message according to the corresponding relationship between the MSPW information and the forwarding information of the MSPW protection link group or the corresponding relationship between the MSPW information and the forwarding information of other MSPW except the forwarding information of the MSPW protection link group; and
the message encapsulation and forwarding unit is configured to: perform label encapsulation and forwarding according to the queried-out forwarding information of the MSPW protection link group or the forwarding information of other MSPW except the forwarding information of the MSPW protection link group.
Optionally, the forwarding information of the MSPW protection link group comprises forwarding information of at least one effective protection link and forwarding information of at least one standby protection link.
Optionally, the message encapsulation and forwarding unit is configured to perform label encapsulation according to the queried-out forwarding information of the MSPW protection link group in the following way: performing the label encapsulation according to the forwarding information of the effective protection link.
Optionally, the data forwarding information management unit is further configured to configure the data forwarding information in the following way: selecting one standby protection link as a new effective protection link when determining that a current effective protection link fails.
Optionally, the SPE selects from all standby protection links a protection link with a highest priority as the new effective protection link.
With the technical solution of the present document, the forwarding performance of the PWE3 MSPW function can be improved; by implementing the MSPW protection group function of the MSPW, the service flow can be switched quickly when there is a fault on the MSPW link, thereby effectively protecting the service flow, preventing the service flow from cutting off and increasing the robustness of the MSPW network, so the requirements of the network operators can be met better.
In order to make the skilled people in the art be able to understand the present document much better and implement the present document, the technical solution of the present document is described in detail with reference to the accompanying drawings and specific embodiments hereinafter, but the cited embodiments are not intended to limit the present document. It should be illustrated that, in the case of not conflicting, the embodiments in the present application and the features in these embodiments can be combined with each other.
It is an embodiment 1 of a method for processing data forwarding of the present document, and as shown in
In step 101, a Service Provider-end Provider Edge (SPE) configures data forwarding information, wherein the data forwarding information includes a corresponding relationship between Multi Segment Pseudo Wires (MSPW) information and forwarding information of an MSPW protection link group or a corresponding relationship between the MSPW information and forwarding information of other MSPW except the forwarding information of the MSPW protection link group;
The forwarding information of the MSPW protection link group includes forwarding information of at least one effective protection link and forwarding information of at least one standby protection link.
In the embodiment of the present document, a form for representing the corresponding relationship between the multi segment pseudo wires (MSPW) information and the forwarding information of the MSPW protection link group or the corresponding relationship between the MSPW information and the forwarding information of other MSPW except the forwarding information of the MSPW protection link group is not limited, but it is ok that the corresponding forwarding information can be found according to the MSPW information.
Generally, when there is no protection group, the forwarding information includes a forwarding label, a PW label and an output interface. When there is a protection group, the forwarding information includes a forwarding label, an MSPW label and an output interface.
A step of the SPE managing the data forwarding information includes:
when determining that the current effective protection link fails, the SPE selecting one standby protection link as a new effective protection link.
Optionally, the SPE selects from all standby protection links a protection link with the highest priority as the new effective protection link. Of course, the new effective protection link can be selected from the standby protection links randomly.
In step 102, the SPE receives a service message, wherein the service message carries the MSPW information;
In step 103, the SPE queries the forwarding information of the MSPW protection link group or the forwarding information of other MSPW except the forwarding information of the MSPW protection link group corresponding to the MSPW information carried in the service message according to the corresponding relationship between the MSPW information and the forwarding information of the MSPW protection link group or the corresponding relationship between the MSPW information and the forwarding information of other MSPW except the forwarding information of the MSPW protection link group;
In step 104: label encapsulation is performed according to the queried-out forwarding information of the MSPW protection link group or forwarding information of other MSPW except the forwarding information of the MSPW protection link group.
The step of performing label encapsulation according to the queried-out forwarding information of the MSPW protection link group includes: performing the label encapsulation according to the forwarding information of the effective protection link.
An embodiment 2 of a method for processing data forwarding of the present document, as shown in
In step 201, a Service Provider-end Provider Edge (SPE) configures an MSPW member forwarding table and an MSPW protection group table;
In this embodiment 2, the MSPW member forwarding table and the MSPW protection group table are a specific representation form, the corresponding relationship between Multi Segment Pseudo Wires (MSPW) information and forwarding information of an MSPW protection link group or between MSPW information and forwarding information of other MSPW except the forwarding information of the MSPW protection link group can be embodied by using the MSPW member forwarding table and the MSPW protection group table.
Certainly, the above MSPW member forwarding table and MSPW protection group table also can be integrated into one table to be represented, or can be divided into 3 tables reasonably.
The contents in the MSPW member forwarding table are an MSPW protection group table flag, an MSPW protection group index, a forwarding label, a PW label, and an output interface; the contents in the MSPW protection group table are an effective MSPN protection link serial number, the number of protection links, as well as a protection link serial number of each protection link, a protection link forwarding label of each protection link, a protection link MSPW label of each protection link, and an output interface of each protection link.
Wherein the number of the protection links can be selectable. A protection relationship of multiple standby protection links protecting one effective protection link (also can be called as a main protection link) can be configured in one MSPW protection group table, and priorities can be set, and a protection link with a high priority is in the front part of the MSPW protection table structure.
Understandably, in the MSPW member forwarding table, if the MSPW protection group table flag represents that the corresponding MSPW protection group exists, the MSPW protection group index in the corresponding table item is valid information, but the forwarding label, the PW label and the output interface are invalid information; accordingly, if the MSPW protection group table flag represents that the corresponding MSPW protection group does not exist, the MSPW protection group index in the corresponding table item is invalid information, but the forwarding label, the PW label and the output interface are valid information.
The specific contents of the MSPW member forwarding table and the MSPW protection group table given in the present embodiment are only a kind of implementation form, and the embodiments of the present document do not limit the contents of the tables.
For example, in the networking shown in
For the device SPE2, the MSPW link protection mechanism on a direction of a link CE3-CE1 is consistent with the MSPW link protection mechanism on the direction of the link CE1-CE3 in the device SPE1, and the content structures of the MSPW member forwarding table and the MSPW protection group table on the device SPE2 can be analogized according to the MSPW member forwarding table and the MSPW protection group table on the device SPE1.
For example, in the networking shown in
In step 202: the service message is received, and the service message carries the MSPW label;
In step 203: it is to judge whether an MSPW protection group is configured by querying the MSPW member forwarding table, if the MSPW protection group is configured, step 204 is executed, and if the MSPW protection group is not configured, step 206 is executed;
In this step, the MSPW member forwarding table is queried according to the MSPW label, and it is to judge whether the MSPW network configures an MSPW protection group service according to the MSPW protection group table flag in the MSPW member forwarding table; if the MSPW protection group service is configured, then step 204 is executed, i.e., the MSPW protection group table is searched and MSPW protection processing is performed according to the MSPW protection group table; and if the MSPW protection group service is not configured, a common MSPW forwarding processing flow is performed.
For example, in the networking shown in
In step 204: the MSPW protection group table is queried.
In the step, the MSPW protection group table is searched according to the MSPW protection group index in the MSPW member forwarding table, the MSPW protection group table includes the effective MSPW protection link serial number, the number of protection links, the protection link serial number, as well as the protection link forwarding label, the protection link MSPW label and the output interface of each protection link. Information of the corresponding protection link is selected according to the effective protection link serial number, i.e., the protection link serial number, the protection link forwarding label, the protection link MSPW label and the output interface in the MSPW protection group table.
For example, in the networking shown in
In step 205: forwarding information of the effective protection link is selected to perform a label encapsulation and forwarding flow;
In the step, the forwarding information corresponding to the protection link serial number is selected according to the effective MSPW protection link serial number of the MSPW protection group table to perform the message label encapsulation and forwarding flow. The MSPW protection group table contains information of the forwarding label, the MSPW label and the output interface of the protection link, the forwarding label of the protection link is encapsulated in the message, the original MSPW label in the message is replaced with the MSPW label in the MSPW protection group table, and sending is performed to the output interface of the protection link, to implement the forwarding function of the MSPW protection group.
For example, in the networking shown in
In step 206: the common MSPW forwarding processing is performed.
Correspondingly, the label encapsulation and forwarding flow is performed according to the forwarding information in the MSPW member forwarding table.
In order to implement the above method, the embodiment of the present document also provides a Service Provider-end Provider Edge (SPE) 400, and as shown in
the data forwarding information management unit 401 is configured to: configure data forwarding information, wherein the data forwarding information includes a corresponding relationship between Multi Segment Pseudo Wires (MSPW) information and forwarding information of an MSPW protection link group or a corresponding relationship between MSPW information and forwarding information of other MSPW except the forwarding information of the MSPW protection link group;
the message receiving unit 402 is configured to: receive a service message, wherein the service message carries the MSPW information;
the query unit 403 is configured to: query the forwarding information of the MSPW protection link group or the forwarding information of other MSPW except the forwarding information of the MSPW protection link group corresponding to the MSPW information carried in the service message according to the corresponding relationship between the MSPW information and the forwarding information of the MSPW protection link group or the corresponding relationship between the MSPW information and the forwarding information of other MSPW except the forwarding information of the MSPW protection link group; and
the message encapsulation and forwarding unit 404 is configured to: perform label encapsulation and forwarding according to the queried-out corresponding forwarding information of the MSPW protection link group or forwarding information of other MSPW except the forwarding information of the MSPW protection link group.
Accordingly, the forwarding information of the MSPW protection link group includes forwarding information of at least one effective protection link and forwarding information of at least one standby protection link.
Optionally, the message encapsulation and forwarding unit is configured to perform label encapsulation according to the queried-out forwarding information of the MSPW protection link group in the following way: performing the label encapsulation according to the forwarding information of the effective protection link.
Optionally, the data forwarding information management unit is further configured to configure the data forwarding information in the following way: selecting one standby protection link as a new effective protection link when determining that the current effective protection link fails.
The SPE selects from all standby protection links a protection link with the highest priority as the new effective protection link.
An ordinary person skilled in the art can understand that all or part of steps in the above method can be completed by a program instructing relevant hardware, and the program may be stored in a computer readable storage medium, such as a readable memory, a magnet disk or an optical disk, etc. Optionally, all or part of steps of the above embodiments also can be implemented by means of one or a plurality of integrated circuits. Accordingly, the respective module/unit in the above embodiments can be implemented in a form of hardware, or be implemented in a form of software function module. The present document is not limited to any combination of hardware and software in a specific form.
The above description is only a specific embodiment of the present document, but the protection scope of the present document is not limited to this. Changes or substitutions that can be easily conceived by the related skilled people familiar to the art within the technical scope disclosed by the present document should all fall into the protection scope of the present document. Thus, the protection scope of the present document should be subject to the appending claims.
In the embodiments of the present document, the forwarding performance of the PWE3 MSPW function can be improved; by implementing the MSPW protection group function of MSPW, the service flow can be switched quickly when there is a fault on the MSPW link, thereby effectively protecting the service flow, preventing the service flow from cutting off and increasing the robustness of the MSPW network, so the requirements of network operators can be met better. Therefore, the present document has a very strong industrial applicability.
Number | Date | Country | Kind |
---|---|---|---|
2013 1 0322944 | Jul 2013 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2014/078661 | 5/28/2014 | WO | 00 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2014/177100 | 11/6/2014 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
20040037275 | Li et al. | Feb 2004 | A1 |
20060133265 | Alcatel | Jun 2006 | A1 |
20100238795 | Boutros | Sep 2010 | A1 |
20120082025 | Guichard | Apr 2012 | A1 |
20150006757 | Boutros | Jan 2015 | A1 |
20160072703 | Xu | Mar 2016 | A1 |
Number | Date | Country |
---|---|---|
101820397 | Sep 2010 | CN |
102025541 | Apr 2011 | CN |
2450644 | Dec 2008 | GB |
2003102489 | Aug 2004 | RU |
2008045255 | Apr 2008 | WO |
Number | Date | Country | |
---|---|---|---|
20160164717 A1 | Jun 2016 | US |