CN107592252B - Service processing method and device - Google Patents

Service processing method and device Download PDF

Info

Publication number
CN107592252B
CN107592252B CN201610539578.3A CN201610539578A CN107592252B CN 107592252 B CN107592252 B CN 107592252B CN 201610539578 A CN201610539578 A CN 201610539578A CN 107592252 B CN107592252 B CN 107592252B
Authority
CN
China
Prior art keywords
ring
state
node port
determining
ring node
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
CN201610539578.3A
Other languages
Chinese (zh)
Other versions
CN107592252A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610539578.3A priority Critical patent/CN107592252B/en
Priority to PCT/CN2017/089585 priority patent/WO2018006711A1/en
Publication of CN107592252A publication Critical patent/CN107592252A/en
Application granted granted Critical
Publication of CN107592252B publication Critical patent/CN107592252B/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/42Loop networks
    • H04L12/437Ring fault isolation or reconfiguration

Abstract

The invention provides a service processing method and a device, wherein the method comprises the following steps: adding an access circuit AC member or a pseudo wire PW member established on each ring node port on the Ethernet ring into a two-layer virtual private network L2 VPN; determining the state of an AC member or a PW member corresponding to each ring node port under the condition that the Ethernet ring network has a fault; determining a protection switching result for protecting the Ethernet ring network according to the determined state of the AC member or the PW member corresponding to each ring node port; the invention solves the problem that the Ethernet ring network protection protocol in the related technology can not be completely suitable for the L2VPN scene, thereby achieving the effect of effectively performing Ethernet ring network protection switching and protecting the L2VPN service flow.

Description

Service processing method and device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for processing a service.
Background
Ethernet Ring Protection Switch (ERPS) is a link layer protocol applied to an Ethernet Ring Network, and is used to protect the traffic of a Virtual Local Area Network (VLAN). When a certain link fails, the ERPS can quickly recover network communication and has higher convergence rate.
An ethernet ring network is generally formed by a plurality of nodes connected end to end in a ring, where one node is a master node and the other nodes are transmission nodes. Two ports connected to a Ring network on a master node are respectively a master port and a slave port, and a segment of Ring Link connected to the slave port is designated as a Ring Protection Link (RPL). When the ethernet ring network is in a normal state, the master port is opened, the slave port is blocked, the service traffic is transmitted on the master port, and the service traffic is blocked on the environmental protection link, as shown in fig. 1. When the ethernet ring link fails, the slave port state is changed from blocking to opening, and the service traffic is transmitted on the environmental protection link, as shown in fig. 2.
A Layer 2Virtual Private Network (L2 VPN) is a two-Layer Virtual Private Network technology based on a Multi-Protocol Label Switching (MPLS) Protocol. In a common MPLS L2VPN network model (as shown in fig. 3), the network model generally consists of several parts, namely, Provider Edge device (PE), tunnel, and Customer Edge device (CE). The L2VPN establishes a PseudoWire (PW) between PE devices, and establishes an Access Circuit (AC) on a CE device. One L2VPN service instance contains several PW members and AC members.
In the related art, an ethernet ring network protection method and apparatus are provided. When the ring network link fails, the service flow on the Ethernet ring network can be effectively protected. The method needs to add the ring network node into the VLAN service and update the MAC address table to realize the protection of the service flow.
However, the protection method for the service traffic is implemented by adding the ring network node into the VLAN and updating the MAC address table, and the following problems may occur in some scenarios: 1) in the L2VPN service, PW members can cross the MPLS network, and the Ethernet ring network protection switching technology aiming at the VLAN service cannot be applied to the PW; 2) in L2VPN traffic, VLAN and MAC address tables do not exist for certain types of L2VPN traffic.
Therefore, the problem that the ethernet ring protection protocol cannot be completely applied to the L2VPN scenario exists in the related art.
Disclosure of Invention
The embodiment of the invention provides a service processing method and a service processing device, which are used for at least solving the problem that an Ethernet ring protection protocol in the related technology cannot be completely suitable for an L2VPN scene.
According to an embodiment of the present invention, a service processing method is provided, including: adding an access circuit AC member or a pseudo wire PW member established on each ring node port on the Ethernet ring into a two-layer virtual private network L2 VPN; determining the state of an AC member or a PW member corresponding to each ring node port under the condition that the Ethernet ring network has a fault; determining a protection switching result for protecting the Ethernet ring network according to the determined state of the AC member or the PW member corresponding to each ring node port; and carrying out service flow forwarding processing according to the determined protection switching result.
Optionally, before joining the AC member or the PW member established on each ring node port on the ethernet ring into the L2VPN, the method further includes: determining a member type of each ring node port establishing member on the Ethernet ring network, wherein the member type comprises: an AC member or a PW member; under the condition that a ring node port belongs to the L2VPN, establishing an AC member on the ring node port; establishing PW members on ring node ports in the case that the ring node ports span a multi-protocol label switching (MPLS) network.
Optionally, when a fault occurs in the ethernet ring network, determining the state of the AC member or the PW member corresponding to each ring node port includes: determining that the state of the AC member or the PW member is normal under the condition that the judgment result shows that the AC member or the PW member has no service flow; judging whether the AC member or the PW member has a fault or not under the condition that the judgment result is that the AC member or the PW member has service flow; determining that the state of the AC member or the PW member is abnormal under the condition that the judgment result is that the AC member or the PW member fails; and determining that the AC member or the PW member is in a normal state under the condition that the AC member or the PW member is not in fault according to the judgment result.
Optionally, after determining the protection switching result for protecting the ethernet ring network according to the determined state of the AC member or the PW member corresponding to each ring node port, the method further includes: and informing other ring nodes except the ring node in the Ethernet ring network of the protection switching result, wherein the protection switching result is used for the other ring nodes to set the states of the corresponding AC members or PW members.
Optionally, after performing service traffic forwarding processing according to the determined protection switching result, the method further includes: and under the condition that the fault on the Ethernet ring network is determined to disappear, recovering the state of the AC member or the PW member which is updated when the fault occurs.
According to another embodiment of the present invention, there is provided a service processing apparatus including: the adding module is used for adding an access circuit AC member or a pseudo wire PW member established on each ring node port on the Ethernet ring network into a two-layer virtual private network L2 VPN; a first determining module, configured to determine, when a fault occurs in the ethernet ring network, a state of an AC member or a PW member corresponding to each ring node port; a second determining module, configured to determine, according to the determined state of the AC member or the PW member corresponding to each ring node port, a protection switching result for protecting the ethernet ring; and the processing module is used for forwarding the service flow according to the determined protection switching result.
Optionally, the apparatus further comprises: a third determining module, configured to determine a member type of each ring node port on the ethernet ring, where the member type includes: an AC member or a PW member; a first establishing module, configured to establish an AC member on a ring node port when the ring node port belongs to the L2 VPN; a second establishing module, configured to establish a PW member on a ring node port when the ring node port spans multiple protocol label switching MPLS networks.
Optionally, the first determining module includes: a first judging unit, configured to judge whether there is a service traffic in an AC member or a PW member corresponding to each ring node port; a first determining unit, configured to determine that a state of the AC member or the PW member is normal when a determination result of the first determining unit is that there is no service traffic in the AC member or the PW member; a second judging unit, configured to judge whether the AC member or the PW member fails when a judgment result of the first judging unit is that the AC member or the PW member has service traffic; a second determining unit, configured to determine that a state of the AC member or the PW member is abnormal when a determination result of the second determining unit is that the AC member or the PW member has a failure; a third determining unit, configured to determine that the state of the AC member or the PW member is normal when the determination result of the second determining unit is that the AC member or the PW member does not fail.
Optionally, the apparatus further comprises: a notifying module, configured to notify other ring nodes except the ring node in the ethernet ring network of the protection switching result, so that the other ring nodes set states of corresponding AC members or PW members.
Optionally, the apparatus further comprises: and the recovery module is used for recovering the state of the AC member or the PW member updated when the fault occurs under the condition that the fault on the Ethernet ring is determined to disappear.
According to still another embodiment of the present invention, there is also provided a storage medium. The storage medium is configured to store program code for performing the steps of: adding an access circuit AC member or a pseudo wire PW member established on each ring node port on the Ethernet ring into a two-layer virtual private network L2 VPN; determining the state of an AC member or a PW member corresponding to each ring node port under the condition that the Ethernet ring network has a fault; determining a protection switching result for protecting the Ethernet ring network according to the determined state of the AC member or the PW member corresponding to each ring node port; and carrying out service flow forwarding processing according to the determined protection switching result.
Optionally, the storage medium is further arranged to store program code for performing the steps of: before joining the AC member or the PW member established on each ring node port on the ethernet ring into the L2VPN, the method further includes: determining a member type of each ring node port establishing member on the Ethernet ring network, wherein the member type comprises: an AC member or a PW member; under the condition that a ring node port belongs to the L2VPN, establishing an AC member on the ring node port; establishing PW members on ring node ports in the case that the ring node ports span a multi-protocol label switching (MPLS) network.
Optionally, the storage medium is further arranged to store program code for performing the steps of: determining the state of the AC member or the PW member corresponding to each ring node port when a fault occurs in the ethernet ring network includes: judging whether the AC member or PW member corresponding to each ring node port has service flow; determining that the state of the AC member or the PW member is normal under the condition that the judgment result shows that the AC member or the PW member has no service flow; judging whether the AC member or the PW member has a fault or not under the condition that the judgment result is that the AC member or the PW member has service flow; determining that the state of the AC member or the PW member is abnormal under the condition that the judgment result is that the AC member or the PW member fails; and determining that the AC member or the PW member is in a normal state under the condition that the AC member or the PW member is not in fault according to the judgment result.
Optionally, the storage medium is further arranged to store program code for performing the steps of: after determining the protection switching result for protecting the ethernet ring network according to the determined state of the AC member or the PW member corresponding to each ring node port, the method further includes: and informing other ring nodes except the ring node in the Ethernet ring network of the protection switching result, wherein the protection switching result is used for the other ring nodes to set the states of the corresponding AC members or PW members.
Optionally, the storage medium is further arranged to store program code for performing the steps of: after the service traffic forwarding processing is performed according to the determined protection switching result, the method further includes: and under the condition that the fault on the Ethernet ring network is determined to disappear, recovering the state of the AC member or the PW member which is updated when the fault occurs.
According to the invention, the AC member or PW member established on each ring node port on the Ethernet ring is added into the L2VPN, the protection switching result is determined according to the state of the AC member or PW member corresponding to each ring node port, and the service flow is forwarded, because the protection switching and the service flow forwarding processing are carried out by using the states of the AC member or PW member established on the ring node port, the problem that the Ethernet ring protection protocol existing in the related technology cannot be completely suitable for the L2VPN scene can be solved, and the effects of effectively carrying out Ethernet ring protection switching and protecting the L2VPN service flow are achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a schematic topology diagram of an ethernet ring network in a normal state in the related art;
fig. 2 is a schematic topology diagram of an ethernet ring protection failure state in the related art;
fig. 3 is a schematic diagram of a topology of an MPLS L2VPN network model in the related art;
fig. 4 is a block diagram of a hardware structure of a terminal of a service processing method according to an embodiment of the present invention;
FIG. 5 is a flow chart of a method of business processing according to an embodiment of the invention;
fig. 6 is a block diagram of an ethernet ring protection device according to a preferred embodiment of the present invention;
FIG. 7 is a flow chart of a method of service processing according to a preferred embodiment of the present invention;
fig. 8 is a topology diagram in a normal state of ethernet ring protection based on L2VPN according to the preferred embodiment of the present invention;
fig. 9 is a schematic topology diagram of an L2VPN based ethernet ring network protection failure state according to the preferred embodiment of the present invention;
fig. 10 is a schematic topology diagram of an L2VPN based ethernet ring network protection in a failure state of an unassociated member according to the preferred embodiment of the present invention;
fig. 11 is a first block diagram of the structure of a service processing device according to an embodiment of the present invention;
fig. 12 is a block diagram of a second structure of a service processing apparatus according to an embodiment of the present invention;
fig. 13 is a block diagram of the first determination module 114 of the service processing apparatus according to an embodiment of the present invention;
fig. 14 is a block diagram of a third configuration of a service processing apparatus according to an embodiment of the present invention;
fig. 15 is a block diagram of a service processing apparatus according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Example 1
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking the operation on the terminal as an example, fig. 4 is a hardware structure block diagram of the terminal of a service processing method according to the embodiment of the present invention. As shown in fig. 4, the terminal 40 may include one or more (only one shown) processors 402 (the processor 402 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 404 for storing data, and a transmission device 406 for communication functions. It will be understood by those skilled in the art that the structure shown in fig. 4 is only an illustration and is not intended to limit the structure of the electronic device. For example, terminal 40 may also include more or fewer components than shown in FIG. 4, or have a different configuration than shown in FIG. 4.
The memory 404 may be used to store software programs and modules of application software, such as program instructions/modules corresponding to the service processing method in the embodiment of the present invention, and the processor 402 executes various functional applications and data processing by running the software programs and modules stored in the memory 404, so as to implement the method described above. The memory 404 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 404 may further include memory located remotely from the processor 402, which may be connected to the terminal 40 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 406 is used for receiving or sending data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the terminal 40. In one example, the transmission device 406 includes a Network adapter (NIC) that can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 406 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a service processing method operating in the terminal is provided, and fig. 5 is a flowchart of the service processing method according to the embodiment of the present invention, as shown in fig. 5, the flowchart includes the following steps:
step S502, adding an access circuit AC member or a pseudo wire PW member established on each ring node port on the Ethernet ring network into a two-layer virtual private network L2 VPN;
step S504, under the condition that the ring node Ethernet ring network has a fault, determining the state of the AC member or PW member corresponding to each ring node port;
step S506, determining a protection switching result for protecting the Ethernet ring network of the ring node according to the determined state of the AC member or the PW member corresponding to each ring node port of the ring node;
and step S508, according to the determined ring node protection switching result, forwarding the service flow.
Through the steps, the AC member or the PW member established on each ring node port on the Ethernet ring is added into the L2VPN, the protection switching result is determined according to the state of the AC member or the PW member corresponding to each ring node port, and the service flow is forwarded, so that the problem that an Ethernet ring protection protocol in the related technology cannot be completely suitable for an L2VPN scene is solved, the Ethernet ring protection switching can be effectively carried out, and the L2VPN service flow is protected.
Optionally, the main body of the above steps may be a terminal, a ring node in an ethernet ring network, etc., but is not limited thereto.
Optionally, before step S502, a member type of each ring node port establishment member on the ethernet ring network may also be determined in the following manner, where the member type includes an AC member or a PW member: establishing an AC member on a ring node port in the case that the ring node port belongs to an L2VPN (local network); in the case of a ring node port spanning an MPLS network, PW members are established on the ring node port. Whether the ring node port belongs to L2VP or spans the MPLS network may be determined based on the network configuration.
Through the technical scheme of the embodiment of the invention, the member type established by each ring node port is determined according to whether the ring node port belongs to a local network or spans an MPLS network, and each ring node port can be replaced by a corresponding member type during service processing, thereby ensuring the smooth operation of protection switching.
Alternatively, step S504 may be implemented in various ways, for example, the state of the AC member or the PW member corresponding to each ring node port may be determined, and the state of the AC member or the PW member corresponding to each ring node port may be determined. For another example, it may be determined whether an AC member or a PW member corresponding to each ring node port has a service traffic first, and for an AC member or a PW member that does not have a service traffic, determine that the state of the AC member or the PW member is normal; for the AC member or the PW member with the service flow, determining whether the AC member or the PW member is normal according to whether the AC member or the PW member fails, judging whether the AC member or the PW member fails, if so, determining that the state of the AC member or the PW member is abnormal, and if not, determining that the state of the AC member or the PW member is normal. Because the ethernet ring is used for protecting the service traffic in the VLAN, the transmission of the service traffic is not affected for the state of the AC member or the PW member through which no service traffic flows, and therefore, compared with determining the state of the AC member or the PW member corresponding to each ring node port and determining the state of the AC member or the PW member corresponding to each ring node port, only the state judgment is performed for the fault condition of the AC member or the PW member with service traffic, and the state of the AC member or the PW member without service traffic is considered to be normal for the AC member or the PW member with service traffic, which can reduce the workload for determining the state of the AC member or the PW member corresponding to each ring node port, and improve the operating efficiency of the system.
Through the technical scheme of the embodiment of the invention, only the fault condition of the AC member or the PW member with the service flow is judged, and the AC member or the PW member without the service flow considers that the member state is normal, so that the workload of determining the state of the AC member or the PW member corresponding to each ring node port can be reduced, and the operation efficiency of the system is improved.
Optionally, after step S506, the determined protection switching result may be notified to other ring nodes in the ethernet ring network except the ring node, so that the other ring nodes set the states of the corresponding AC members or PW members.
Through the technical scheme of the embodiment of the invention, the determined protection switching result is notified to other ring nodes, and the other ring nodes can set the state of the corresponding AC member or PW member according to the switching result, so that the efficiency of setting the state of the AC member or PW member is improved, and the reliability of setting the state of the AC member or the PW member of the ring nodes in the Ethernet ring network is ensured.
Optionally, after step S508, the state of the AC member or the PW member updated when the failure occurs may also be recovered when it is determined that the failure on the ethernet ring disappears.
Through the technical scheme of the embodiment of the invention, when the fault on the Ethernet ring network disappears, the state of the AC member or the PW member which is updated when the fault occurs is recovered, so that the timeliness of updating the state of the AC member or the PW member of the ring node is ensured, and the efficiency of forwarding the service flow is ensured.
Based on the foregoing embodiment and optional implementation manner, to illustrate the whole process interaction of the scheme, in the preferred embodiment, a service processing method is provided, which may be operated in an ethernet ring network protection device as shown in fig. 6, where the device includes: an L2VPN management module 62, an L2VPN status module 64, a status notification module 66, and a protocol processing module 68. The apparatus will be explained below.
The L2VPN management module 62 (which functions as the joining module, the processing module, the third determining module, the first establishing module, and the second establishing module described below) is configured to manage AC members and PW members. Adding each ring node port on the Ethernet ring into the L2VPN, and if the ring node port is in the local network, establishing an AC member on the port to join the L2 VPN; if the ring node port crosses the MPLS network, a PW member is established on the port to join the L2 VPN. In addition, the L2VPN management module 62 may also receive the protection switching result of the status notification module 66, and set the AC member or the PW member to be in the blocking state or the open state, so as to implement correct service traffic forwarding.
The L2VPN state module 64 (also functioning as the first determining module described below) is configured to sense a state change of the AC member or the PW member, calculate a final state of the AC member or the PW member, and transmit the final state to the state notification module 66. The L2VPN state module 64 may select whether to associate a member state when calculating the final state of the member, and associate a member state if there is both service traffic and protocol packet traffic on the L2VPN member; if only protocol message flow exists on the L2VPN member, the member state is not associated.
A status notification module 66 (acting as a notification module described below) is used to notify the protocol processing module 68 of the status in response to the status of the L2VPN status module 64. The status notification module 66 is further configured to receive the protection switching result of the protocol processing module 68 and notify the L2VPN management module 62 of the protection switching result.
A protocol processing module 68 (acting as a second determining module described below) is configured to run the ERPS protocol, receive the status information of the status notifying module 66, calculate a protection switching result according to the status information, and transmit the protection switching result to the status notifying module 66.
The following describes a service processing method in the preferred embodiment with reference to the above-described apparatus and corresponding modules. Fig. 7 is a flowchart of a service processing method according to a preferred embodiment of the present invention, as shown in fig. 7, the flowchart includes the following steps:
step S702, adding each ring node port on the Ethernet ring into the L2 VPN.
Before each ring node port on the ethernet ring network is added to the L2VPN, the ethernet ring network needs to be configured: configuring a main node and a transmission node for Ethernet ring protection, configuring a main port and a slave port of the main node, and operating an Ethernet ring protection protocol on the port of each ring node.
Adding all ring node ports into L2VPN service, if the ring node ports are in a local network, establishing AC members on the ports to join the L2VPN (example), and if the ring node ports cross the MPLS network, establishing PW members on the ports to join the L2VPN (example).
Step S704, the AC member or the PW member perceives that a failure occurs on the ethernet ring, and the L2VPN calculates the final states of the AC member and the PW member according to the failure information.
When the ethernet ring network is in a normal state, the AC member or PW member where the master port is located is in an open state, the AC member or PW member where the slave port is located is in a blocking state, the AC member or PW member on the master port transmits service traffic, and the AC member or PW member on the ring protection link blocks the service traffic.
When the AC member or the PW member on the ethernet ring detects a ring link failure, the L2VPN state module 64 calculates the final state of the AC member or the PW member according to the failure state information. The L2VPN state module 64 may select whether to associate a member state when calculating the final state of the member, and associate a member state if there is both service traffic and protocol packet traffic on the L2VPN member; if only protocol message flow exists on the L2VPN member, the member state is not related, and even if a fault occurs on the member, the member is still in a normal state according to a calculation result.
Step S706, the final state information of the AC member and the PW member is notified to the protocol processing module.
The final states of the AC member and the PW member calculated by the L2VPN state module 64 are notified to the protocol processing module 68 through the state notification module 66, where the protocol is an ERPS protocol.
In step S708, a protection switching result is calculated according to the received status information.
After receiving the fault information, the protocol processing module 68 performs protocol state calculation, and notifies the L2VPN management module 62 of the current link of the protection switching result through the and state notification module 66.
And step S7010, setting the AC member or the PW member to be in a blocking state or an opening state according to the protection switching result.
The L2VPN management module 62 sets the AC member or the PW member to be in the blocking state or the open state according to the received protection switching result, thereby implementing correct service traffic forwarding.
The protocol processing module 68 may also send a fault message to notify the ring network master node, and after receiving the fault message, the ring network master node performs protocol state calculation, and notifies the L2VPN service on the ring network master node of the protection switching result, and the L2VPN opens the blocked AC member or PW member on the ring network master node.
When the AC member or the PW member on the ethernet ring detects that the ring link failure disappears, the L2VPN management module 62 notifies the protocol processing module 68 of the failure disappearing message.
After receiving the failure disappearance information, the protocol processing module 68 performs protocol state calculation to notify the L2VPN management module 62 to recover the current AC member or PW member state.
The L2VPN management module 62 may also send a failure message to notify the ring network master node, and after receiving the failure disappearing message, the ring network master node performs protocol state calculation to notify the L2VPN on the ring network master node to re-block the AC member or PW member associated with the slave port on the ring network master node.
In the preferred embodiment, there is no limitation on the type of L2VPN service on the ethernet ring network, and the service may be point-to-point, point-to-multipoint, local switching service, etc. There is no limitation on the combination of L2VPN service members on the ethernet ring, and all the members may be PW members, or all the members may be AC members, or any combination of PW members and AC members.
The following describes a service processing method according to the preferred embodiment by taking an ethernet ring network formed by four nodes as an example.
As shown in fig. 8, the PE1 device is configured as a master node, and the PE2, PE3, and PE4 devices are configured as transport nodes. The master port and the slave port of the master node are configured. And running Ethernet ring protection switching protocols on PE1, PE2, PE3 and PE4 devices.
An L2VPN instance 1 is established on PE1, an L2VPN instance 2 is established on PE2, an L2VPN instance 3 is established on PE3, and an L2VPN instance 4 is established on PE 4. PW connections are established between PE1 and PE2, and between PE3 and PE4 across the MPLS network. Example 1 consisted of a member of PW12 and a member of AC14, example 2 consisted of a member of PW21 and a member of AC23, example 3 consisted of a member of PW34 and a member of AC32, and example 4 consisted of a member of PW43 and a member of AC 41.
When the Ethernet ring network link is normal, the PW12 is in an open state, the AC14 is in a blocking state, the PW12 member can transmit service traffic, and the AC14 member blocks the service traffic.
As shown in fig. 9, when a link failure is detected between PE3 and PE4 devices on the ethernet ring, the L2VPN calculates the final states of PW34 and PW43 members, and notifies the ethernet ring protection protocol of the final failure state information. The L2VPN can select whether to associate the member state when calculating the final state of the member, and associate the member state if the L2VPN member has both the service flow and the protocol message flow; if only protocol message flow exists on the L2VPN member, the member state is not related, and even if a fault occurs on the member, the member is still in a normal state according to a calculation result. As shown in fig. 10, traffic enters from PW12 of PE1 device, passes through PE2 device, and exits from PE3 device. In this case, there is no traffic on PW34 and PW43 members, and even if a link failure occurs in PW34 and PW43 members, normal traffic forwarding is not affected, and at this time, a non-associated member state is selected, that is, the final state of PW34 and PW43 members is considered to be a normal state.
And after receiving the fault information, the Ethernet ring network protection device calculates the protocol state and informs the L2VPN example 3 and the L2VPN example 4 of the protection switching result. L2VPN instance 3 blocks PW34 members and L2VPN instance 4 blocks PW43 members.
The ethernet ring protection device sends a fault message to notify the ring main node PE1 device, and after PE1 receives the fault message, it notifies L2VPN instance 1 on PE1, and L2VPN instance 1 opens the blocked PW12 member.
When the link failure between PE3 and PE4 devices on the ethernet ring disappears, the L2VPN notifies the ethernet ring protection protocol of the failure disappeared message.
And after receiving the failure disappearance information, the Ethernet ring network protection device performs protocol state calculation to inform the L2VPN instance 3 of recovering the blocked PW34 member and inform the L2VPN instance 4 of recovering the blocked PW43 member.
The Ethernet ring protection device sends a fault message to inform the ring main node PE1 of the device, and after the ring main node PE1 receives the fault disappearance message, the protocol state calculation is carried out to inform the L2VPN example 1 of blocking the AC14 member again.
In the technical solution of the preferred embodiment, the AC member and the PW member of the L2VPN are used as basic state units, and in an environment across the MPLS network, ethernet ring protection switching can be effectively performed, so as to implement protection of the L2VPN service traffic. Compared with the related technology, on one hand, the ring network node does not need to be added into the VLAN service, and the protection switching is directly carried out according to the states of the AC member and the PW member. On the other hand, for the scene that the ring network node crosses the MPLS network, the ERPS state can be correctly calculated, and the service flow on the Ethernet ring network is effectively protected.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
In this embodiment, a service processing apparatus is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and details of which have been already described are omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 11 is a first block diagram of a service processing apparatus according to an embodiment of the present invention, and as shown in fig. 11, the apparatus includes: a joining module 112, a first determining module 114, a second determining module 116, and a processing module 118. The apparatus will be explained below.
A joining module 112, configured to join an access circuit AC member or a pseudo wire PW member established on each ring node port on the ethernet ring into a layer two virtual private network L2 VPN; a first determining module 114, connected to the joining module 112, configured to determine, when a fault occurs in the ethernet ring network, a state of an AC member or a PW member corresponding to each ring node port; a second determining module 116, connected to the first determining module 114, configured to determine a protection switching result for protecting the ethernet ring network according to the determined state of the AC member or the PW member corresponding to each ring node port; and a processing module 118, connected to the second determining module 116, configured to perform service traffic forwarding processing according to the determined protection switching result.
Fig. 12 is a block diagram of a second structure of a service processing apparatus according to an embodiment of the present invention, and as shown in fig. 12, the apparatus includes, in addition to all modules shown in fig. 11: a third determination module 122, a first establishment module 124, and a second establishment module 126. The apparatus will be explained below.
A third determining module 122, configured to determine a member type of each ring node port establishing member in the ethernet ring network, where the member type includes: an AC member or a PW member; a first establishing module 124, connected to the third determining module 122, configured to establish an AC member on a ring node port when the ring node port belongs to an L2 VPN; a second establishing module 126, connected to the third determining module 122, configured to establish a PW member on a ring node port when the ring node port spans multiple protocol label switching MPLS networks.
Fig. 13 is a block diagram of a first determining module 114 of a service processing apparatus according to an embodiment of the present invention, and as shown in fig. 13, the first determining module 114 includes: a first judging unit 132, a first determining unit 134, a second judging unit 136, a second determining unit 138, and a third determining unit 1310. The first determination module 114 is explained below.
A first determining unit 132, configured to determine whether there is a service traffic in an AC member or a PW member corresponding to each ring node port; a first determining unit 134, connected to the first determining unit 132, configured to determine that the state of the AC member or the PW member is normal when the determination result of the first determining unit 132 is that the AC member or the PW member does not have the service traffic; a second determining unit 136, connected to the first determining unit 132, configured to determine whether the AC member or the PW member fails when a determination result of the first determining unit 132 is that the AC member or the PW member has service traffic; a second determining unit 138, connected to the second judging unit 136, configured to determine that the state of the AC member or the PW member is abnormal when the judgment result of the second judging unit 136 is that the AC member or the PW member fails; a third determining unit 1310, connected to the second determining unit 136, configured to determine that the state of the AC member or the PW member is normal when the determination result of the second determining unit 136 is that the AC member or the PW member has not failed.
Fig. 14 is a block diagram of a third structure of a service processing apparatus according to an embodiment of the present invention, and as shown in fig. 14, the apparatus includes, in addition to all modules shown in fig. 11: a notification module 142. The apparatus will be explained below.
A notifying module 142, configured to notify other ring nodes except the ring node in the ethernet ring network of the protection switching result, so that the other ring nodes set the states of the corresponding AC members or PW members.
Fig. 15 is a block diagram of a fourth structure of a service processing apparatus according to an embodiment of the present invention, as shown in fig. 15, the apparatus includes, in addition to all modules shown in fig. 11: and a recovery module 152. The apparatus will be explained below.
A recovering module 152, configured to recover, when it is determined that the failure on the ethernet ring disappears, the state of the AC member or the PW member that is updated when the failure occurs.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Example 3
The embodiment of the invention also provides a storage medium. Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps:
s1, adding an access circuit AC member or a pseudo wire PW member established on each ring node port on the Ethernet ring into a two-layer virtual private network L2 VPN;
s2, under the condition that the Ethernet ring network has a fault, determining the state of the AC member or PW member corresponding to each ring node port;
s3, determining the protection switching result for protecting the Ethernet ring network according to the determined state of the AC member or PW member corresponding to each ring node port;
and S4, according to the determined protection switching result, carrying out service flow forwarding processing.
Optionally, the storage medium is further arranged to store program code for performing the steps of:
before adding the AC member or PW member established on each ring node port on the ethernet ring network into the L2VPN, the method further includes:
s1, determining the member type of each ring node port establishing member on the Ethernet ring network, wherein the member type includes: an AC member or a PW member;
s2, under the condition that the ring node port belongs to L2VPN, establishing an AC member on the ring node port;
s3, under the condition that the ring node port spans multiple protocol label switching MPLS networks, a PW member is established on the ring node port.
Optionally, the storage medium is further arranged to store program code for performing the steps of:
under the condition that a fault occurs on the Ethernet ring network, determining the state of the AC member or the PW member corresponding to each ring node port comprises the following steps:
s1, determining that the state of the AC member or the PW member is normal under the condition that the judgment result is that the AC member or the PW member has no service flow;
s2, judging whether the AC member or the PW member has a fault or not under the condition that the judgment result is that the AC member or the PW member has the service flow;
s3, determining that the state of the AC member or the PW member is abnormal under the condition that the judgment result is that the AC member or the PW member has a fault;
and S4, determining that the AC member or the PW member is in a normal state under the condition that the judgment result shows that the AC member or the PW member has no fault.
Optionally, the storage medium is further arranged to store program code for performing the steps of: after determining a protection switching result for protecting the ethernet ring network according to the determined state of the AC member or the PW member corresponding to each ring node port, the method further includes: and informing the protection switching result to other ring nodes except the ring node in the Ethernet ring network, wherein the protection switching result is used for the other ring nodes to set the states of the corresponding AC members or PW members.
Optionally, the storage medium is further arranged to store program code for performing the steps of: after the service traffic forwarding processing is performed according to the determined protection switching result, the method further includes: and under the condition that the fault on the Ethernet ring is determined to disappear, recovering the state of the AC member or the PW member which is updated when the fault occurs.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Optionally, in this embodiment, the processor executes, according to the program code stored in the storage medium: adding an access circuit AC member or a pseudo wire PW member established on each ring node port on the Ethernet ring into a two-layer virtual private network L2 VPN; under the condition that a fault occurs on the Ethernet ring network, determining the state of an AC member or a PW member corresponding to each ring node port; determining a protection switching result for protecting the Ethernet ring network according to the determined state of the AC member or the PW member corresponding to each ring node port; and carrying out service flow forwarding processing according to the determined protection switching result.
Optionally, in this embodiment, the processor executes, according to the program code stored in the storage medium: before adding the AC member or PW member established on each ring node port on the ethernet ring network into the L2VPN, the method further includes: determining the member type of each ring node port establishing member on the Ethernet ring network, wherein the member type comprises: an AC member or a PW member; under the condition that a ring node port belongs to the L2VPN, establishing an AC member on the ring node port; and under the condition that the ring node port spans the multi-protocol label switching MPLS network, establishing PW members on the ring node port.
Optionally, in this embodiment, the processor executes, according to the program code stored in the storage medium: under the condition that a fault occurs on the Ethernet ring network, determining the state of the AC member or the PW member corresponding to each ring node port comprises the following steps: judging whether the AC member or PW member corresponding to each ring node port has service flow; determining that the state of the AC member or the PW member is normal under the condition that the judgment result is that the AC member or the PW member has no service flow; judging whether the AC member or the PW member has a fault or not under the condition that the judgment result is that the AC member or the PW member has the service flow; determining that the state of the AC member or the PW member is abnormal under the condition that the judgment result is that the AC member or the PW member fails; and determining that the AC member or the PW member is in a normal state under the condition that the AC member or the PW member is not in fault according to the judgment result.
Optionally, in this embodiment, the processor executes, according to the program code stored in the storage medium: after determining a protection switching result for protecting the ethernet ring network according to the determined state of the AC member or the PW member corresponding to each ring node port, the method further includes: and informing the protection switching result to other ring nodes except the ring node in the Ethernet ring network, wherein the protection switching result is used for the other ring nodes to set the states of the corresponding AC members or PW members.
Optionally, in this embodiment, the processor executes, according to the program code stored in the storage medium: after the service traffic forwarding processing is performed according to the determined protection switching result, the method further includes: and under the condition that the fault on the Ethernet ring is determined to disappear, recovering the state of the AC member or the PW member which is updated when the fault occurs.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A method for processing a service, comprising:
adding an access circuit AC member or a pseudo wire PW member established on each ring node port on the Ethernet ring into a two-layer virtual private network L2 VPN;
determining the state of an AC member or a PW member corresponding to each ring node port under the condition that the Ethernet ring network has a fault;
determining a protection switching result for protecting the Ethernet ring network according to the determined state of the AC member or the PW member corresponding to each ring node port;
carrying out service flow forwarding processing according to the determined protection switching result;
the determining the state of the AC member or the PW member corresponding to each ring node port when the ethernet ring network fails includes:
judging whether the AC member or PW member corresponding to each ring node port has service flow;
determining that the state of the AC member or the PW member is normal under the condition that the judgment result shows that the AC member or the PW member has no service flow;
judging whether the AC member or the PW member has a fault or not under the condition that the judgment result is that the AC member or the PW member has service flow;
determining that the state of the AC member or the PW member is abnormal under the condition that the judgment result is that the AC member or the PW member fails;
and determining that the AC member or the PW member is in a normal state under the condition that the AC member or the PW member is not in fault according to the judgment result.
2. The method according to claim 1, further comprising, before joining the AC member or the PW member established on each ring node port on the ethernet ring to the L2 VPN:
determining a member type of each ring node port establishing member on the Ethernet ring network, wherein the member type comprises: an AC member or a PW member;
under the condition that a ring node port belongs to the L2VPN, establishing an AC member on the ring node port;
establishing PW members on ring node ports in the case that the ring node ports span a multi-protocol label switching (MPLS) network.
3. The method according to claim 1, wherein after determining the protection switching result for protecting the ethernet ring network according to the determined state of the AC member or the PW member corresponding to each ring node port, further comprising:
and informing other ring nodes except the ring node in the Ethernet ring network of the protection switching result, wherein the protection switching result is used for the other ring nodes to set the states of the corresponding AC members or PW members.
4. The method according to any one of claims 1 to 3, further comprising, after performing a service traffic forwarding process according to the determined protection switching result:
and under the condition that the fault on the Ethernet ring network is determined to disappear, recovering the state of the AC member or the PW member which is updated when the fault occurs.
5. A traffic processing apparatus, comprising:
the adding module is used for adding an access circuit AC member or a pseudo wire PW member established on each ring node port on the Ethernet ring network into a two-layer virtual private network L2 VPN;
a first determining module, configured to determine, when a fault occurs in the ethernet ring network, a state of an AC member or a PW member corresponding to each ring node port;
a second determining module, configured to determine, according to the determined state of the AC member or the PW member corresponding to each ring node port, a protection switching result for protecting the ethernet ring;
the processing module is used for forwarding the service flow according to the determined protection switching result;
the first determining module includes:
a first judging unit, configured to judge whether there is a service traffic in an AC member or a PW member corresponding to each ring node port;
a first determining unit, configured to determine that a state of the AC member or the PW member is normal when a determination result of the first determining unit is that there is no service traffic in the AC member or the PW member;
a second judging unit, configured to judge whether the AC member or the PW member fails when a judgment result of the first judging unit is that the AC member or the PW member has service traffic;
a second determining unit, configured to determine that a state of the AC member or the PW member is abnormal when a determination result of the second determining unit is that the AC member or the PW member has a failure;
a third determining unit, configured to determine that the state of the AC member or the PW member is normal when the determination result of the second determining unit is that the AC member or the PW member does not fail.
6. The apparatus of claim 5, further comprising:
a third determining module, configured to determine a member type of each ring node port on the ethernet ring, where the member type includes: an AC member or a PW member;
a first establishing module, configured to establish an AC member on a ring node port when the ring node port belongs to the L2 VPN;
a second establishing module, configured to establish a PW member on a ring node port when the ring node port spans multiple protocol label switching MPLS networks.
7. The apparatus of claim 5, further comprising:
a notifying module, configured to notify other ring nodes except the ring node in the ethernet ring network of the protection switching result, so that the other ring nodes set states of corresponding AC members or PW members.
8. The apparatus of any of claims 5 to 7, further comprising:
and the recovery module is used for recovering the state of the AC member or the PW member updated when the fault occurs under the condition that the fault on the Ethernet ring is determined to disappear.
CN201610539578.3A 2016-07-08 2016-07-08 Service processing method and device Active CN107592252B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610539578.3A CN107592252B (en) 2016-07-08 2016-07-08 Service processing method and device
PCT/CN2017/089585 WO2018006711A1 (en) 2016-07-08 2017-06-22 Service processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610539578.3A CN107592252B (en) 2016-07-08 2016-07-08 Service processing method and device

Publications (2)

Publication Number Publication Date
CN107592252A CN107592252A (en) 2018-01-16
CN107592252B true CN107592252B (en) 2021-06-29

Family

ID=60921575

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610539578.3A Active CN107592252B (en) 2016-07-08 2016-07-08 Service processing method and device

Country Status (2)

Country Link
CN (1) CN107592252B (en)
WO (1) WO2018006711A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719834A (en) * 2009-06-02 2010-06-02 中兴通讯股份有限公司 Method and system for realizing virtual private multicast service protection
CN102035665A (en) * 2009-09-25 2011-04-27 中兴通讯股份有限公司 Protection method and device for point-to-multipoint pseudowires (P2MP PW)
CN102549990A (en) * 2011-07-26 2012-07-04 华为技术有限公司 Method and device for generating forwarding table term of virtual private network
CN104956628A (en) * 2013-01-29 2015-09-30 思科技术公司 Using Ethernet ring protection switching with computer networks

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101022390B (en) * 2007-03-21 2010-07-28 华为技术有限公司 Method, system and equipment for protecting double-return switch-in RRPP loop network
CN101316212A (en) * 2008-07-07 2008-12-03 华为技术有限公司 Looped network failure processing method, looped network and operator backbone equipment
CN102014035A (en) * 2009-09-04 2011-04-13 中兴通讯股份有限公司 Networking method and device based on Ethernet ring
CN101778031B (en) * 2009-12-31 2012-10-10 中兴通讯股份有限公司 Ethernet and multicast stream processing method based on VPLS
US8644134B2 (en) * 2010-10-28 2014-02-04 Cisco Technology, Inc. Dual-homing for ethernet line services
US9203729B2 (en) * 2013-03-07 2015-12-01 Centurylink Intellectual Property Llc Remote monitoring a layer 2 virtual private network
CN103595626B (en) * 2013-10-15 2017-02-15 苏州拓康自动化技术有限公司 Method for achieving dynamic path planning in ring network
CN103546321B (en) * 2013-10-24 2016-10-12 杭州华三通信技术有限公司 A kind of RPR administration of energy conservation method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719834A (en) * 2009-06-02 2010-06-02 中兴通讯股份有限公司 Method and system for realizing virtual private multicast service protection
CN102035665A (en) * 2009-09-25 2011-04-27 中兴通讯股份有限公司 Protection method and device for point-to-multipoint pseudowires (P2MP PW)
CN102549990A (en) * 2011-07-26 2012-07-04 华为技术有限公司 Method and device for generating forwarding table term of virtual private network
CN104956628A (en) * 2013-01-29 2015-09-30 思科技术公司 Using Ethernet ring protection switching with computer networks

Also Published As

Publication number Publication date
WO2018006711A1 (en) 2018-01-11
CN107592252A (en) 2018-01-16

Similar Documents

Publication Publication Date Title
US7558194B2 (en) Virtual private network fault tolerance
US8102760B2 (en) Method for reconvergence after failure in a dual-homing network environment
US8886831B2 (en) System and methodology for fast link failover based on remote upstream failures
EP1994694B1 (en) System and method for preventing loops in the presence of control plane failures
CN102823205B (en) Aggregating data traffic from access domains
US8411690B2 (en) Preventing data traffic connectivity between endpoints of a network segment
US9344323B2 (en) G.8032 ethernet multiple fault recovery mechanisms
EP3297224B1 (en) Preventing data traffic loops associated with designated forwarder selection
US9628409B1 (en) Designated forwarder election for multi-homed data center interconnect using multicast routing protocol state information
US8619785B2 (en) Pre-computing alternate forwarding state in a routed ethernet mesh network
CN110798403B (en) Communication method, communication device and communication system
EP3493489B1 (en) Failover between active pseudo wire and standby pseudo wire
CN104869057A (en) OpeFlow switch graceful restart processing method, device and OpeFlow controller
WO2022166543A1 (en) Fault protection method and device, storage medium, and electronic device
EP3029883B1 (en) Network protection method and apparatus, next-ring node, and system
EP3641240B1 (en) Node protection for bum traffic for multi-homed node failure
CN109691031B (en) Service message transmission method and node equipment
CN107682261B (en) Flow forwarding method and device
US9716639B2 (en) Protection switching method and system
CN108234305B (en) Control method and equipment for cross-machine frame link redundancy protection
CN107770061B (en) Method and equipment for forwarding message
CN102769571B (en) Graceful restart realization method and equipment
CN107592252B (en) Service processing method and device
CN111885630A (en) Data transmission method and communication device
CN106856446B (en) Method and system for improving virtual network reliability

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