WO2018006711A1 - Service processing method and device - Google Patents

Service processing method and device Download PDF

Info

Publication number
WO2018006711A1
WO2018006711A1 PCT/CN2017/089585 CN2017089585W WO2018006711A1 WO 2018006711 A1 WO2018006711 A1 WO 2018006711A1 CN 2017089585 W CN2017089585 W CN 2017089585W WO 2018006711 A1 WO2018006711 A1 WO 2018006711A1
Authority
WO
WIPO (PCT)
Prior art keywords
ring
network
protection switching
ring node
module
Prior art date
Application number
PCT/CN2017/089585
Other languages
French (fr)
Chinese (zh)
Inventor
陈亮
王春霞
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018006711A1 publication Critical patent/WO2018006711A1/en

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

Definitions

  • the embodiments of the present invention relate to, but are not limited to, the field of communications, and in particular, to a service processing method and apparatus.
  • the Ethernet Ring Protection Switch is a link layer protocol applied to the Ethernet ring network to protect the service traffic of the virtual local area network (VLAN).
  • VLAN virtual local area network
  • An Ethernet ring network usually consists of a plurality of nodes connected end to end to form a ring, one of which is the master node and the other nodes are the transit nodes.
  • the two ports connected to the ring network on the master node are the master port and the slave port respectively, and the ring link connected to the slave port is a ring protection link (Ring Protection Link, RPL for short).
  • RPL Ring Protection Link
  • Layer 2 Virtual Private Network is a Layer 2 virtual private network technology based on Multi-Protocol Label Switching (MPLS).
  • MPLS Multi-Protocol Label Switching
  • the Provider Edge device (PE), the tunnel, and the Customer Edge device (CE) are usually used. Part of the composition.
  • the L2VPN establishes a PseudoWire (PW) between the PEs.
  • PW PseudoWire
  • the access circuit (Attachment Circuit, AC for short) is established on the CE.
  • An L2VPN service instance contains several PW members and AC members.
  • an Ethernet ring network protection method and apparatus are proposed.
  • the ring link fails, it can effectively protect the traffic on the Ethernet ring network.
  • the method needs to add a ring network node to the VLAN service and update the MAC address table to protect the service traffic.
  • the embodiment of the invention provides a service processing method and device, so that the Ethernet ring protection protocol can be applied to an L2VPN scenario.
  • a business processing method comprising:
  • the method further includes: before the step of adding the AC member or the PW member established on each ring node port of the Ethernet ring network to the L2VPN, the method further includes:
  • Determining a member type of each ring node port of the Ethernet ring network where the member type includes: an AC member or a PW member;
  • a PW member is established on the ring node port.
  • the step of determining the status of the AC member or the PW member corresponding to each ring node port in the case that the Ethernet ring network is faulty includes:
  • the result of the determination is that the AC member or the PW member has the service traffic, determine whether the AC member or the PW member is faulty; if the result of the determination is that the AC member or the PW member is faulty, determine the The status of the AC member or the PW member is abnormal. If the result is that the AC member or the PW member is not faulty, the status of the AC member or PW member is normal.
  • the method further includes:
  • the method further includes:
  • the determining, according to the determined status of the AC member or the PW member corresponding to each ring node port, the step of protecting the protection switching result of the Ethernet ring network includes:
  • the protection switching result of the AC or PW member of the port where the RPL is located is blocked.
  • the protection switching result of the AC or PW member of the other port is turned on. If the Ethernet ring network fails, The protection switching result of the AC or PW member connected to the faulty link is blocked.
  • the protection switching result of the AC or PW member of other ports is open.
  • the step of performing service traffic forwarding processing according to the determined protection switching result includes:
  • the protection switching result is turned on, the service traffic is forwarded; if the protection switching result is blocked, the service traffic is not forwarded.
  • a service processing device includes: a joining module, a first determining module, a second determining module, and Processing module, wherein
  • the adding module is configured to: join an access circuit AC member or a pseudowire PW member established on each ring node port of the Ethernet ring network into the layer 2 virtual private network L2VPN;
  • the first determining module is configured to: determine a state of an AC member or a PW member corresponding to each ring node port if a fault occurs on the Ethernet ring network;
  • the second determining module is configured to: determine, according to the determined status of the AC member or the PW member corresponding to each ring node, the protection switching result used to protect the Ethernet ring network;
  • the processing module is configured to: perform service traffic forwarding processing according to the determined protection switching result.
  • the device further includes: a third determining module, a first establishing module, and a second establishing module, wherein
  • the third determining module is configured to: determine a member type of each ring node port establishing member of the Ethernet ring network, where the member type includes: an AC member or a PW member;
  • the first establishing module is configured to: establish an AC member on the ring node port if the ring node port belongs to the L2VPN;
  • the second establishing module is configured to establish a PW member on the ring node port if the ring node port traverses the multi-protocol label switching MPLS network.
  • the first determining module includes: a first determining unit, a first determining unit, a second determining unit, a second determining unit, and a third determining unit, wherein
  • the first determining unit is configured to: determine whether the AC member or the PW member corresponding to each ring node port has service traffic;
  • the first determining unit is configured to: determine that the status of the AC member or the PW member is normal if the result of the first determining unit is that the AC member or the PW member does not have service traffic;
  • the second judging unit is configured to: determine whether the AC member or the PW member is faulty if the result of the first judging unit is that the AC member or the PW member has service traffic;
  • the second determining unit is configured to: the result of the determination in the second determining unit is the AC If the member or the PW member is faulty, determine that the status of the AC member or PW member is abnormal.
  • the third determining unit is configured to determine that the state of the AC member or the PW member is normal if the result of the second determining unit is that the AC member or the PW member has not failed.
  • the device also includes a notification module, wherein
  • the notification module is configured to: notify the other ring nodes in the Ethernet ring network except the ring node that first perceived the fault, and set the corresponding AC member or PW to the other ring node. The status of the member.
  • the device also includes a recovery module, wherein
  • the recovery module is configured to: restore the state of the AC member or PW member that was updated when the fault occurred, in the case that it is determined that the fault on the Ethernet ring network has disappeared.
  • the second determining module is configured to determine, according to the determined status of the AC member or the PW member corresponding to each ring node port, the protection switching result used to protect the Ethernet ring network:
  • the protection switching result of the AC or PW member of the port where the RPL is located is blocked.
  • the protection switching result of the AC or PW member of the other port is turned on. If the Ethernet ring network fails, The protection switching result of the AC or PW member connected to the faulty link is blocked.
  • the protection switching result of the AC or PW member of other ports is open.
  • the processing module is configured to perform service traffic forwarding processing according to the determined protection switching result according to the following manner:
  • the protection switching result is turned on, the service traffic is forwarded; if the protection switching result is blocked, the service traffic is not forwarded.
  • a storage medium configured to store program code for performing the following steps: adding an access circuit AC member or a pseudowire PW member established on each ring node port of the Ethernet ring network to the layer 2 virtual private network L2VPN; In the case of a fault on the Ethernet ring network, the status of the AC member or the PW member corresponding to each ring node port is determined; and the state of the AC member or the PW member corresponding to each ring node port is determined according to the determined state. Determining the protection switching result of the Ethernet ring network; performing service traffic forwarding processing according to the determined protection switching result.
  • the storage medium is further configured to store program code for performing the following steps: before adding the AC member or the PW member established on each ring node port of the Ethernet ring network to the L2VPN,
  • the method includes: determining a member type of each ring node port establishing member on the Ethernet ring network, where the member type includes: an AC member or a PW member; and in a case where the ring node port belongs to the L2VPN, in the link An AC member is established on the point port; in the case that the ring node port crosses the multi-protocol label switching MPLS network, a PW member is established on the ring node port.
  • the storage medium is further configured to store program code for performing the following steps: determining that the status of the AC member or the PW member corresponding to each ring node port in the case of a failure in the Ethernet ring network comprises: determining each of the Whether the AC member or the PW member corresponding to the ring node port has the service traffic; if the result is that the AC member or the PW member does not have the service traffic, the status of the AC member or the PW member is normal; If the AC member or the PW member is faulty, the AC member or the PW member is faulty. If the AC member or the PW member is faulty, the AC member or the AC member is determined. The status of the PW member is abnormal. If the result is that the AC member or the PW member is not faulty, the status of the AC member or PW member is determined to be normal.
  • the storage medium is further configured to store program code for performing the step of: determining, according to the determined status of the AC member or the PW member corresponding to each ring node port, the method for protecting the Ethernet ring network After the protection of the handover result, the method further includes: notifying, by using the protection switching result, other ring nodes except the ring node in the Ethernet ring network, and setting the status of the corresponding AC member or PW member in the other ring node. .
  • the storage medium is further configured to store program code for performing the following steps: after performing the service traffic forwarding process according to the determined protection switching result, further comprising: determining that the fault on the Ethernet ring network disappears , restore the status of the AC member or PW member that was updated when the fault occurred.
  • An AC member or PW member established on each ring node port of the Ethernet ring network is added to the L2VPN.
  • the AC member or the PW member can detect the fault. Specifically, OAM detection can be deployed on the AC member or PW member to quickly detect the fault.
  • the ERPS protocol determines the protection switching result based on the fault of the AC member or the PW member, that is, whether the AC member or the PW member is blocked or opened. Traffic forwarding is performed by an AC member or a PW member based on the blocked state or the open state.
  • the AC member or the PW member established on each ring node of the Ethernet ring network is added to the L2VPN, and 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 traffic is forwarded.
  • the Ethernet ring protection protocol can be applied to the L2VPN scenario to effectively perform Ethernet ring protection switching, because the state of the AC member or the PW member established on the ring node is used for protection switching and service traffic forwarding. The effect of protecting L2VPN service traffic.
  • Figure 1 is a schematic diagram of a topology in a normal state under the protection of a ring network
  • FIG. 2 is a schematic diagram of a topology in a fault state under a protection of a ring network
  • FIG. 3 is a schematic diagram of a topology of an MPLS L2VPN network model
  • FIG. 4 is a block diagram showing the hardware structure of a terminal of a service processing method according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of a service processing method according to an embodiment of the present invention.
  • FIG. 6 is a structural 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 service processing method in accordance with a preferred embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a topology of an L2VPN-based Ethernet ring network in a normal state according to a preferred embodiment of the present invention.
  • FIG. 9 is a schematic diagram of a topology in an L2VPN-based Ethernet ring network protection fault state according to a preferred embodiment of the present invention.
  • FIG. 10 is an L2VPN-based Ethernet ring network protection not associated with a preferred embodiment of the present invention. Schematic diagram of the topology in the fault state of the member;
  • FIG. 11 is a structural block diagram 1 of a service processing apparatus according to an embodiment of the present invention.
  • FIG. 12 is a second structural block diagram of a service processing apparatus according to an embodiment of the present invention.
  • FIG. 13 is a structural block diagram of a first determining module 114 of a service processing apparatus according to an embodiment of the present invention.
  • FIG. 14 is a structural block diagram 3 of a service processing apparatus according to an embodiment of the present invention.
  • FIG. 15 is a structural block diagram 4 of a service processing apparatus according to an embodiment of the present invention.
  • terminal 40 may include one or more (only one shown) processor 402 (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.
  • 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
  • a transmission device 406 for communication functions.
  • terminal 40 may also include more or fewer components than shown in FIG. 4, or have a different configuration than that shown in FIG.
  • the memory 404 can be configured to: store a software program of the application software and a module, such as a program instruction/module corresponding to the business processing method in the embodiment of the present invention, and the processor 402 executes by executing the software program and the module stored in the memory 404.
  • Memory 404 can include high speed random access memory and can also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • memory 404 can further include memory remotely located relative to processor 402, which can be connected to terminal 40 over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • Transmission device 406 is arranged to receive or transmit data via a network.
  • the network specific example described above may include a wireless network provided by a communication provider of the terminal 40.
  • transmission device 406 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet.
  • NIC Network Interface Controller
  • the transmission device 406 can be a Radio Frequency (RF) module for communicating with the Internet wirelessly.
  • RF Radio Frequency
  • FIG. 5 is a flowchart of a service processing method according to an embodiment of the present invention. As shown in FIG. 5, the process includes the following steps:
  • Step S502 adding an access circuit AC member or a pseudowire PW member established on each ring node port of the Ethernet ring network to the Layer 2 virtual private network L2VPN;
  • Step S504 in the case that a fault occurs on the ring node Ethernet ring network, determine the state of the AC member or PW member corresponding to each ring node port;
  • Step S506 determining, according to the determined status of the AC member or the PW member corresponding to each ring node port, a protection switching result for protecting the ring node Ethernet ring network;
  • the protection switching result here is the result obtained by the protocol processing module, that is, blocking or opening.
  • the protocol processing module notifies the L2VPN that the protection switching result of the AC or PW member of the port where the RPL is located is blocked, and the protection switching result of the AC or PW member of the other port is turned on. Failure in the Ethernet ring network In this case, the protocol processing module notifies the L2VPN that the protection switching result of the AC or PW member connected to the faulty link is blocked, and the protection switching result of the AC or PW member of the other port is turned on. For example, as shown in Figure 8, the protection of the PW12 is performed. The result of the switch is open, and the protection switch result of AC14 is blocked.
  • Step S508 performing service traffic forwarding processing according to the determined ring node protection switching result.
  • step S508 if the protection switching result is on, traffic forwarding can be performed. If the protection switching result is blocked, traffic forwarding cannot be performed.
  • the AC member or the PW member established on each ring node of the Ethernet ring network is added to the L2VPN, and 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 traffic is forwarded.
  • the Ethernet ring protection protocol can be applied to the L2VPN scenario, and the Ethernet ring protection switch can be effectively performed to protect the L2VPN service traffic.
  • the execution body of the foregoing step may be a terminal, a ring node in an Ethernet ring network, or the like, but is not limited thereto.
  • the member type of each ring node port of the Ethernet ring network may be determined, where the member type includes an AC member or a PW member: the ring node port belongs to the L2VPN (local network) In the case of a ring node, an AC member is established; in the case where the ring node port spans the MPLS network, a PW member is established on the ring node port. Whether the ring node port belongs to the L2VP or the MPLS network can be determined according to the network configuration.
  • each ring node port can be replaced with a corresponding member type according to the ring node port belonging to the local network or the MPLS network to determine the member type established by each ring node port.
  • the protection switching is guaranteed to proceed smoothly.
  • the step S504 can be implemented in multiple manners. For example, the status of the AC member or the PW member corresponding to each ring node port can be determined, and the status of the AC member or the PW member corresponding to each ring node port is determined.
  • the AC member or the PW member corresponding to each ring node port has service traffic
  • the AC member or PW member that does not have service traffic determines the AC.
  • the status of the member or the PW member is normal. If the AC member or the PW member is faulty, the AC member or the PW member is faulty. If the fault occurs, the status of the AC member or PW member is abnormal. If no fault occurs, the status of the AC member or PW member is normal. Because the Ethernet ring network is used to protect the traffic in the VLAN, the status of the AC member or the PW member that does not pass the service traffic does not affect the transmission of the service traffic. Therefore, the AC member or PW corresponding to each ring node is determined.
  • the status of the member is determined by the status of the AC member or the PW member corresponding to each ring node.
  • the status of the fault is determined only for the AC member or the PW member that has the service traffic.
  • the PW member considers that the member is in a normal state and can reduce the workload of determining the state of the AC member or PW member corresponding to each ring node port, thereby improving the operating efficiency of the system.
  • the determined protection switching result may also be notified to other ring nodes in the Ethernet ring network except the ring node, and used by other ring nodes to set the state of the corresponding AC member or PW member.
  • the "ring node” herein may refer to one or more ring nodes that are first perceived or first detected as a failure.
  • the determined protection switching result is notified to other ring nodes, and other ring nodes may set the state of the corresponding AC member or PW member according to the switching result, thereby improving the efficiency of setting the state of the AC member or the PW member.
  • the reliability of the state setting of the AC member or PW member of the ring node in the Ethernet ring network is guaranteed.
  • the state of the AC member or the PW member that is updated when the fault occurs may also be restored in the case that it is determined that the fault on the Ethernet ring network disappears.
  • a service processing method is provided.
  • the method can be run in an Ethernet ring protection device as shown in FIG. 6.
  • the device includes: an L2VPN management module 62, an L2VPN status module 64, a status notification module 66, and Protocol processing module 68. The device will be described below.
  • the L2VPN management module 62 (which functions as the following adding module 112, processing module 118, third determining module 116, first establishing module 124, and second establishing module 126) is configured to: manage AC members and PW members. Add each ring node port on the Ethernet ring network to the L2VPN. If the ring node port is on the local network, the AC member is added to the L2VPN on the port. If the ring node port crosses the MPLS network, the PW member is established on the port. Join the L2VPN. In addition, the L2VPN management module 62 can also receive the protection switching result of the status notification module 66, and set the AC member or the PW member to be blocked or opened to implement correct service traffic forwarding.
  • the L2VPN state module 64 (acting as the first determining module 114 described below) is configured to: sense the state change of the AC member or the PW member, calculate the final state of the AC member or the PW member, and pass the final state to the state notification module 66.
  • the L2VPN status module 64 can select whether to associate the member status when calculating the final status of the member. If the L2VPN member has both the service traffic and the protocol packet traffic, the member status is associated; if the L2VPN member only has the protocol packet traffic, the L2VPN member is not associated. Member status.
  • the status notification module 66 (acting as described below with the notification module 142) is configured 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.
  • the protocol processing module 68 (acting as the second determining module 116 described below) is configured to: run the ERPS protocol, receive status information of the status notification module 66, calculate a protection switching result according to the status information, and transmit the protection switching result to the status notification module. 66.
  • the associated or unassociated member status can be selected.
  • the associated member status refers to the current actual status of the AC or PW member, and the protocol processing module is notified to calculate the protection switching result.
  • the status of the unassociated member is that the AC or PW member status is normal regardless of whether the current or actual status of the AC or PW member is normal or faulty.
  • the normal state is notified to the protocol processing module to calculate the protection switching result.
  • the purpose of this operation is that the state of an AC member or PW member that does not have traffic flows does not affect the transmission of service traffic. Therefore, the AC that has service traffic exists.
  • the fault status of the member or the PW member is judged by the state, and the AC member or the PW member that does not have the service traffic considers that the member status is normal, and the workload for determining the state of the AC member or the PW member corresponding to each ring node port can be reduced. Improve the efficiency of the system.
  • 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 flow includes the following steps:
  • Step S702 adding each ring node port on the Ethernet ring network to the L2VPN.
  • Ethernet ring network Before adding each ring node port on the Ethernet ring network to the L2VPN, you need to configure the Ethernet ring network: configure the primary node and the transit node of the Ethernet ring protection, configure the primary port and the secondary port of the primary node, and The Ethernet ring protection protocol is running on the port.
  • All the ring node ports are added to the L2VPN service. If the ring node port is in the local network, the AC member is added to the L2VPN (instance) on the port. If the ring node port crosses the MPLS network, the port is on the port. Establish a PW member to join the L2VPN (instance).
  • step S704 the AC member or the PW member detects that the Ethernet ring network is faulty, and the L2VPN calculates the final state of the AC member and the PW member according to the fault information.
  • the AC member or the PW member of the primary port When the Ethernet ring is in the normal state, the AC member or the PW member of the primary port is in the open state, and the AC member or PW member on the primary port is in the blocked state.
  • the AC member or PW member on the ring protection link blocks traffic.
  • the L2VPN state module 64 calculates the final state of the AC member or the PW member according to the fault state information.
  • the L2VPN status module 64 can select whether to associate the member status when calculating the final status of the member. If the L2VPN member has both the service traffic and the protocol packet traffic, the member status is associated; if the L2VPN member only has the protocol packet traffic, the L2VPN member is not associated. The member status, even if a fault occurs on the member, the result of the calculation is still normal.
  • the associated or unassociated member status can be selected.
  • the associated member status refers to the current actual status of the AC or PW member, and the protocol processing module is notified to calculate the protection cut. Change the result.
  • the status of the unassociated member is that the AC or PW member status is normal regardless of whether the current or actual status of the AC or PW member is normal or faulty.
  • the normal state is notified to the protocol processing module to calculate the protection switching result.
  • the purpose of this operation is that the state of the AC member or the PW member that does not have the service traffic does not affect the transmission of the service traffic. Therefore, the status of the fault condition of the AC member or the PW member that has the service traffic is judged, but does not exist.
  • the AC member or PW member of the service traffic considers that the member is in the normal state and can reduce the workload of determining the status of the AC member or PW member corresponding to each ring node port, and improve the operating efficiency of the system.
  • step S706 the final state information of the AC member and the PW member is notified to the protocol processing module 68.
  • the final state of the AC member and the PW member calculated by the L2VPN status module 64 is notified to the protocol processing module 68 via the status notification module 66, where the protocol is the ERPS protocol.
  • Step S708 calculating a protection switching result according to the received status information.
  • the protocol processing module 68 After receiving the fault information, the protocol processing module 68 performs protocol state calculation, and notifies the protection switching result to the L2VPN management module 62 where the current link is located via the status notification module 66.
  • Step S7010 Set the AC member or the PW member to a blocked or open state according to the protection switching result.
  • the L2VPN management module 62 sets the AC member or the PW member to a blocked or open state according to the received protection switching result, so as to implement correct service traffic forwarding.
  • the protocol processing module 68 can also send a fault message to notify the ring network master node. After receiving the fault message, the ring network master node performs protocol state calculation, and notifies the protection switching result to the L2VPN service on the ring network master node, and the L2VPN opens the ring network master node. A blocked AC member or PW member.
  • the L2VPN management module 62 When the AC member or the PW member of the Ethernet ring network detects that the ring link failure disappears, the L2VPN management module 62 notifies the protocol processing module 68 of the failure disappear message.
  • the protocol processing module 68 After receiving the failure disappearing information, the protocol processing module 68 performs protocol state calculation to notify the L2VPN.
  • the management module 62 restores the current AC member or PW member status.
  • the L2VPN management module 62 may also send a fault message to notify the ring network master node, and after receiving the fault disappearing message, the ring network master node performs protocol state calculation, and notifies the L2VPN on the primary node of the ring network to re-block the slave port associated with the master node on the ring network.
  • L2VPN service on the Ethernet ring network there is no limitation on the type of L2VPN service on the Ethernet ring network, which may be point-to-point, point-to-multipoint, local exchange service, and the like.
  • L2VPN service member combination on the Ethernet ring network There is no restriction on the L2VPN service member combination on the Ethernet ring network. All of them can be PW members, or all AC members, or any combination of PW members and AC members.
  • Ethernet ring network composed of four nodes as an example to describe the service processing method of the preferred embodiment.
  • the PE1 device is configured as the master node, and the PE2, PE3, and PE4 devices are the transit nodes. Configure the primary and secondary ports of the primary node.
  • the Ethernet ring protection switching protocol is run on the PE1, PE2, PE3, and PE4 devices.
  • Example 1 consists of PW12 members and AC14 members
  • Example 2 consists of PW21 members and AC23 members
  • Example 3 consists of PW34 members and AC32 members
  • Example 4 consists of PW43 members and AC41 members.
  • the PW12 When the Ethernet ring link is normal, the PW12 is in the open state and the AC 14 is in the blocked state.
  • the PW12 member can transmit service traffic and the AC14 member blocks service traffic.
  • the L2VPN calculates the final status of the PW34 and PW43 members, and notifies the Ethernet ring protection protocol of the final fault status information.
  • the L2VPN can be associated with the member status when calculating the final state of the member. If the L2VPN member has both the service traffic and the protocol packet traffic, the L2VPN member is associated with the member state. If the L2VPN member has only protocol packet traffic, the member state is not associated. Even if a fault occurs on the member, the member is still in a normal state.
  • the ERPS protocol will notify the fault to PE2, PE1, and PE4.
  • the ERPS protocol will notify the fault to PE1 and PE2. PE3.
  • the service traffic enters from the PW12 of the PE1 device and passes through the PE2 device. The device comes out. In this case, there is no service traffic on the PW34 and PW43 members. Even if the PW34 and PW43 members have link faults, the normal service traffic forwarding will not be affected. In this case, the member status is not associated, that is, the PW34 and PW43 members are considered. The final state is normal.
  • the Ethernet ring protection device After receiving the fault information, the Ethernet ring protection device performs protocol state calculation, and notifies the L2VPN instance 3 and the L2VPN instance 4 of the protection switching result.
  • the L2VPN instance 3 blocks the PW34 member, and the L2VPN instance 4 blocks the PW43 member.
  • the "Ethernet Ring Protection Device" is placed on each ring node.
  • the Ethernet ring protection device sends a fault message to notify the PE1 of the primary node of the ring network. After receiving the fault message, PE1 notifies L2VPN instance 1 on PE1, and L2VPN instance 1 opens the blocked PW12 member.
  • the L2VPN When the link fault between the PE3 and PE4 devices on the Ethernet ring network disappears, the L2VPN notifies the Ethernet ring protection protocol of the failure disappear message.
  • the Ethernet ring protection device After receiving the fault disappearing information, the Ethernet ring protection device performs the protocol state calculation to notify the L2VPN instance 3 to restore the blocked PW34 member, and the L2VPN instance 4 restores the blocked PW43 member.
  • the Ethernet ring protection device sends a fault message to notify the PE1 device of the primary node of the ring network. After receiving the message of the failure disappearance, the primary node PE1 of the ring network performs protocol status calculation to notify L2VPN instance 1 to re-block the AC 14 member.
  • the AC member and the PW member of the L2VPN are used as the basic state unit, and the Ethernet ring network protection switching can be effectively performed in the environment spanning the MPLS network to protect the L2VPN service traffic.
  • the ring network node is not required to be added to the VLAN service, and the protection switching is performed according to the state of the AC member and the PW member.
  • the ERPS state can be correctly calculated, and the service traffic on the Ethernet ring network is effectively protected.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM, including a number of instructions to make a terminal device (can be a mobile phone, a computer, The server, or network device, etc.) performs the methods described in various embodiments of the present invention.
  • a service processing device is also provided, which is used to implement the foregoing embodiments and preferred embodiments, and has not been described again.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 11 is a structural block diagram of a service processing apparatus according to an embodiment of the present invention. 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 device will be described below.
  • the adding module 112 is configured to: join the access circuit AC member or the pseudowire PW member established on each ring node port of the Ethernet ring network into the layer 2 virtual private network L2VPN; the first determining module 114, and the joining module 112 The connection is set to: determine the state of the AC member or the PW member corresponding to each ring node port in the case of a failure on the Ethernet ring network; the second determining module 116 is connected to the first determining module 114, and is configured to: The status of the AC member or the PW member corresponding to each ring node is determined, and the protection switching result for protecting the Ethernet ring network is determined; the processing module 118 is connected to the second determining module 116, and is configured to: switch according to the determined protection. As a result, traffic forwarding processing is performed.
  • FIG. 12 is a block diagram showing the structure of a service processing apparatus according to an embodiment of the present invention. As shown in FIG. 12, the apparatus includes, in addition to all the modules shown in FIG. 11, a third determining module 122 and a first establishing module 124. The second establishing module 126. The device will be described below.
  • the third determining module 122 is configured to: determine a member type of each ring node port of the Ethernet ring network, wherein the member type includes: an AC member or a PW member; the first establishing module 124, and the third determining module 122
  • the connection is set to: when the ring node port belongs to the L2VPN, the AC member is established on the ring node port; the second establishing module 126 is connected to the third determining module 122, and is configured to: span the multi-protocol label on the ring node port.
  • a PW member is established on the ring node port.
  • FIG. 13 is a structural block diagram of a first determining module 114 of a service processing apparatus according to an embodiment of the present invention.
  • the first determining module 114 includes: a first determining unit 132, and a first determining.
  • the first determining module 114 will be described below.
  • the first determining unit 132 is configured to: determine whether the AC member or the PW member corresponding to each ring node port has service traffic; the first determining unit 134 is connected to the first determining unit 132, and is configured to: in the first determining unit If the result of the determination is that the AC member or the PW member does not have the service traffic, the status of the AC member or the PW member is determined to be normal.
  • the second determining unit 136 is connected to the first determining unit 132 and is configured to: If the result of the unit 132 is that the AC member or the PW member has the service traffic, the AC member or the PW member is determined to be faulty.
  • the second determining unit 138 is connected to the second determining unit 136 and is configured to: If the result of the determination of the unit 136 is that the AC member or the PW member is faulty, the status of the AC member or the PW member is abnormal.
  • the third determining unit 1310 is connected to the second determining unit 136, and is configured to: in the second determining unit. If the result of the judgment of 136 is that the AC member or the PW member has not failed, it is determined that the state of the AC member or the PW member is normal.
  • FIG. 14 is a structural block diagram 3 of a service processing apparatus according to an embodiment of the present invention. As shown in FIG. 14, the apparatus includes: a notification module 142 in addition to all the modules shown in FIG. The device will be described below.
  • the notification module 142 is configured to: notify the other ring nodes in the Ethernet ring network other than the ring node, and set the state of the corresponding AC member or PW member to the other ring node.
  • FIG. 15 is a structural block diagram of a service processing apparatus according to an embodiment of the present invention. As shown in FIG. 15, the apparatus includes: a recovery module 152 in addition to all the modules shown in FIG. The device will be described below.
  • the recovery module 152 is configured to: restore the state of the AC member or PW member that was updated when the fault occurred, in the case that it is determined that the fault on the Ethernet ring network has disappeared.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination.
  • the forms are located in different processors.
  • Embodiments of the present invention also provide a storage medium.
  • the above The storage medium can be configured to store program code for performing the following steps:
  • the access circuit AC member or the pseudowire PW member established on each ring node port of the Ethernet ring network is added to the Layer 2 virtual private network L2VPN;
  • S4 Perform service traffic forwarding processing according to the determined protection switching result.
  • the storage medium is further arranged to store program code for performing the following steps:
  • the AC member is established on the ring node port.
  • the PW member is established on the ring node port.
  • the storage medium is further arranged to store program code for performing the following steps:
  • the status of the AC member or PW member corresponding to each ring node is determined to include:
  • the storage medium is further configured to store program code for performing the following steps: determining a protection switching result for protecting the Ethernet ring network according to the determined status of the AC member or the PW member corresponding to each ring node port After that, the method further includes: notifying the ringback node in the Ethernet ring network other than the ring node, and setting the state of the corresponding AC member or the PW member in the other ring node.
  • the storage medium is further configured to store program code for performing the following steps: after performing the service traffic forwarding process according to the determined protection switching result, further comprising: after determining that the fault on the Ethernet ring network disappears, Restore the status of an AC member or PW member that was updated when a failure occurred.
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • the processor performs, according to the stored program code in the storage medium, adding an access circuit AC member or a pseudowire PW member established on each ring node port of the Ethernet ring network to the second layer virtual In the private network L2VPN, in the case of a failure on the Ethernet ring network, determine the status of the AC member or PW member corresponding to each ring node port; determine the status of the AC member or PW member corresponding to each ring node port.
  • the protection switching result used to protect the Ethernet ring network; and the service traffic forwarding process is performed according to the determined protection switching result.
  • the processor performs, according to the stored program code in the storage medium, before the AC member or the PW member established on each ring node port of the Ethernet ring network is added to the L2VPN, the method further includes: Determine the member type of each ring node port on the Ethernet ring network.
  • the member type includes: AC member or PW member.
  • the ring node port belongs to L2VPN, the AC member is established on the ring node port.
  • a PW member is established on the ring node port.
  • the processor performs, according to the stored program code in the storage medium, in the case that a fault occurs on the Ethernet ring network, determining the status of the AC member or the PW member corresponding to each ring node port includes: If the AC member or the PW member of the ring member does not have any service traffic, it is determined that the AC member or the PW member does not have service traffic. The status of the AC member or the PW member is normal. If the AC member or the PW member is faulty, the AC member or the PW member is faulty. The status of the AC member or the PW member is abnormal. If the AC member or the PW member is faulty, the status of the AC member or PW member is normal.
  • the processor performs, according to the stored program code in the storage medium, determining, according to the determined status of the AC member or the PW member corresponding to each ring node port, for protecting the Ethernet ring network.
  • the method further includes: notifying the ringback node of the Ethernet ring network other than the ring node, and setting the state of the corresponding AC member or PW member of the other ring node.
  • the processor performs, according to the stored program code in the storage medium, after performing the service traffic forwarding process according to the determined protection switching result, further comprising: determining that the fault on the Ethernet ring network disappears. In this case, the status of the AC member or PW member that was updated at the time of the failure is restored.
  • the embodiment of the invention further discloses a computer program, comprising program instructions, when the program instruction is executed by the terminal, so that the terminal can perform any of the above methods for detecting wireless network access security.
  • the embodiment of the invention also discloses a carrier carrying the computer program.
  • computer storage medium includes volatile and nonvolatile, implemented in any method or technology for storing information, such as computer readable instructions, data structures, program modules or other data. Sex, removable and non-removable media.
  • Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridge, magnetic tape, magnetic disk storage or other magnetic storage device, or may Any other medium used to store the desired information and that can be accessed by the computer.
  • communication media typically includes computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and can include any information delivery media. .
  • the AC member or the PW member established on each ring node of the Ethernet ring network is added to the L2VPN, and 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 traffic is forwarded.
  • the Ethernet ring protection protocol can be applied to the L2VPN scenario to effectively perform Ethernet ring protection switching, because the state of the AC member or the PW member established on the ring node is used for protection switching and service traffic forwarding. The effect of protecting L2VPN service traffic. Therefore, the application has strong industrial applicability.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

Provided in the present application are a service processing method and device, the method comprising: adding to a layer 2 virtual private network (L2VPN) every access circuit (AC) member or pseudowire (PW) member established on a ring node interface on an Ethernet ring network; if there is a fault on the Ethernet ring network, determining the state of the AC member or PW member corresponding to each ring node interface; according to the determined state of the AC member or PW member corresponding to each ring node interface, determining a protective switching result used to protect the Ethernet ring network; according to the determined protective switching result, performing service traffic forwarding processing.

Description

业务处理方法及装置Business processing method and device 技术领域Technical field
本发明实施例涉及但不限于通信领域,具体而言,涉及一种业务处理方法及装置。The embodiments of the present invention relate to, but are not limited to, the field of communications, and in particular, to a service processing method and apparatus.
背景技术Background technique
以太环网保护切换(Ethernet Ring Protection Switch,简称为ERPS)是一个应用于以太环形网络的链路层协议,用来保护虚拟局域网(Virtual Local Area Network,简称为VLAN)的业务流量。当某一链路出现故障时,ERPS能够迅速恢复网络通讯,具有较高的收敛速度。The Ethernet Ring Protection Switch (ERPS) is a link layer protocol applied to the Ethernet ring network to protect the service traffic of the virtual local area network (VLAN). When a link fails, ERPS can quickly resume network communication and has a high convergence speed.
以太环形网络通常由多个节点首尾相连构成环,其中一个节点为主节点,其他节点为传输节点。主节点上连接环形网络的两个端口分别为主端口和从端口,并指定与从端口相连的一段环形链路为环保护链路(Ring Protection Link,简称为RPL)。当以太环网处于正常状态时,主端口打开,从端口阻塞,在主端口上传输业务流量,环保护链路上阻塞业务流量,如图1所示。当以太环网链路出现故障,从端口状态由阻塞变成打开,在环保护链路上传输业务流量,如图2所示。An Ethernet ring network usually consists of a plurality of nodes connected end to end to form a ring, one of which is the master node and the other nodes are the transit nodes. The two ports connected to the ring network on the master node are the master port and the slave port respectively, and the ring link connected to the slave port is a ring protection link (Ring Protection Link, RPL for short). When the Ethernet ring is in the normal state, the primary port is opened, the secondary port is blocked, traffic is transmitted on the primary port, and service traffic is blocked on the ring protection link, as shown in Figure 1. When the Ethernet ring link fails, the slave port status changes from blocking to on, and traffic is transmitted on the ring protection link, as shown in Figure 2.
二层虚拟专用网络(Layer 2Virtual Private Network,简称为L2VPN)是一种基于多协议标签交换(Multi-Protocol Label Switching,简称为MPLS)协议的二层虚拟专用网络技术。在常见的MPLS L2VPN网络模型中,例如,如图3所示,通常由服务商边缘设备(Provider Edge device,简称为PE)、隧道和用户边缘设备(Customer Edge device,简称为CE)这几个部分组成。L2VPN在PE设备之间建立伪线(PseudoWire,简称为PW),在CE设备上建立接入电路(Attachment Circuit,简称为AC)。一个L2VPN服务实例包含若干个PW成员和AC成员。Layer 2 Virtual Private Network (L2VPN) is a Layer 2 virtual private network technology based on Multi-Protocol Label Switching (MPLS). In the common MPLS L2VPN network model, for example, as shown in FIG. 3, the Provider Edge device (PE), the tunnel, and the Customer Edge device (CE) are usually used. Part of the composition. The L2VPN establishes a PseudoWire (PW) between the PEs. The access circuit (Attachment Circuit, AC for short) is established on the CE. An L2VPN service instance contains several PW members and AC members.
于是,提出了一种以太环网保护方法和装置。在环网链路出现故障时,可以有效保护以太环网上的业务流量。该方法需要将环网节点加入到VLAN业务中,更新MAC地址表,来实现对业务流量的保护。 Therefore, an Ethernet ring network protection method and apparatus are proposed. When the ring link fails, it can effectively protect the traffic on the Ethernet ring network. The method needs to add a ring network node to the VLAN service and update the MAC address table to protect the service traffic.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述,本概述并非是为了限制权利要求的保护范围。The following is a summary of the subject matter described in detail herein, and is not intended to limit the scope of the claims.
本发明实施例提供了一种业务处理方法及装置,以使得以太环网保护协议能够适用于L2VPN场景。The embodiment of the invention provides a service processing method and device, so that the Ethernet ring protection protocol can be applied to an L2VPN scenario.
本发明实施例采用了如下技术方案:The embodiment of the invention adopts the following technical solutions:
一种业务处理方法,包括:A business processing method comprising:
将以太环网上的每个环节点端口上建立的接入电路(AC)成员或者伪线(PW)成员加入二层虚拟专用网络(L2VPN)中;Adding access circuit (AC) members or pseudowire (PW) members established on each ring node port of the Ethernet ring network to the Layer 2 virtual private network (L2VPN);
在所述以太环网上出现故障的情况下,确定每个环节点端口对应的AC成员或PW成员的状态;Determining the status of an AC member or a PW member corresponding to each ring node port in the case of a failure on the Ethernet ring network;
根据确定的每个环节点端口对应的AC成员或PW成员的状态,确定用于保护所述以太环网的保护切换结果;Determining, according to the determined status of the AC member or the PW member corresponding to each ring node port, a protection switching result for protecting the Ethernet ring network;
根据确定的所述保护切换结果,进行业务流量转发处理。And performing service traffic forwarding processing according to the determined protection switching result.
其中,在将所述以太环网上的每个环节点端口上建立的所述AC成员或者所述PW成员加入所述L2VPN中的步骤之前,该方法还包括:The method further includes: before the step of adding the AC member or the PW member established on each ring node port of the Ethernet ring network to the L2VPN, the method further includes:
确定所述以太环网上的每个环节点端口建立成员的成员类型,其中,所述成员类型包括:AC成员或者PW成员;Determining a member type of each ring node port of the Ethernet ring network, where the member type includes: an AC member or a PW member;
在一环节点端口属于所述L2VPN的情况下,在所述环节点端口上建立AC成员;In the case that a ring node port belongs to the L2VPN, an AC member is established on the ring node port;
在一环节点端口跨越多协议标签交换MPLS网络的情况下,在所述环节点端口上建立PW成员。In the case where a ring node port spans a multi-protocol label switching MPLS network, a PW member is established on the ring node port.
其中,在所述以太环网上出现故障的情况下,确定每个环节点端口对应的AC成员或PW成员的状态的步骤包括:The step of determining the status of the AC member or the PW member corresponding to each ring node port in the case that the Ethernet ring network is faulty includes:
判断所述每个环节点端口对应的AC成员或PW成员是否存在业务流量;Determining whether the AC member or the PW member corresponding to each ring node port has service traffic;
在判断结果为所述AC成员或PW成员不存在业务流量的情况下,确定 所述AC成员或PW成员的状态正常;If the result of the judgment is that the AC member or the PW member does not have service traffic, determine The status of the AC member or PW member is normal.
在判断结果为所述AC成员或PW成员存在业务流量的情况下,判断所述AC成员或PW成员是否发生故障;在判断结果为所述AC成员或PW成员发生故障的情况下,确定所述AC成员或PW成员的状态异常;在判断结果为所述AC成员或PW成员未发生故障的情况下,确定所述AC成员或PW成员的状态正常。If the result of the determination is that the AC member or the PW member has the service traffic, determine whether the AC member or the PW member is faulty; if the result of the determination is that the AC member or the PW member is faulty, determine the The status of the AC member or the PW member is abnormal. If the result is that the AC member or the PW member is not faulty, the status of the AC member or PW member is normal.
其中,在所述根据确定的每个环节点端口对应的AC成员或PW成员的状态,确定用于保护所述以太环网的所述保护切换结果的步骤之后,该方法还包括:After the step of determining the protection switching result of the Ethernet ring network according to the determined status of the AC member or the PW member corresponding to each ring node port, the method further includes:
将所述保护切换结果通知所述以太环网中除最先感知到故障的环节点之外的其它环节点,用于所述其它环节点设置对应的AC成员或PW成员的状态。Notifying the ringback network of the ring ring network other than the ring node that first perceived the fault, and setting the state of the corresponding AC member or PW member for the other ring node.
其中,在所述根据确定的所述保护切换结果,进行业务流量转发处理的步骤之后,该方法还包括:After the step of performing the service traffic forwarding process according to the determined protection switching result, the method further includes:
在确定所述以太环网上的故障消失的情况下,对发生故障时更新过的AC成员或PW成员的状态进行恢复。In the case that it is determined that the failure of the Ethernet ring network has disappeared, the state of the AC member or PW member that has been updated at the time of the failure is restored.
其中,所述根据确定的每个环节点端口对应的AC成员或PW成员的状态,确定用于保护所述以太环网的保护切换结果的步骤包括:The determining, according to the determined status of the AC member or the PW member corresponding to each ring node port, the step of protecting the protection switching result of the Ethernet ring network includes:
在以太环网没有故障的情况下,RPL所在的端口的AC或者PW成员的保护切换结果是阻塞,其他端口的AC或者PW成员的保护切换结果是打开;在以太环网出现故障的情况下,故障链路相连的AC或者PW成员的保护切换结果是阻塞,其他端口的AC或者PW成员的保护切换结果是打开。If the Ethernet ring network is faulty, the protection switching result of the AC or PW member of the port where the RPL is located is blocked. The protection switching result of the AC or PW member of the other port is turned on. If the Ethernet ring network fails, The protection switching result of the AC or PW member connected to the faulty link is blocked. The protection switching result of the AC or PW member of other ports is open.
其中,所述根据确定的所述保护切换结果,进行业务流量转发处理的步骤包括:The step of performing service traffic forwarding processing according to the determined protection switching result includes:
如果保护切换结果是打开,则进行业务流量转发;如果保护切换结果是阻塞,则不进行业务流量转发。If the protection switching result is turned on, the service traffic is forwarded; if the protection switching result is blocked, the service traffic is not forwarded.
一种业务处理装置,包括:加入模块、第一确定模块、第二确定模块和 处理模块,其中A service processing device includes: a joining module, a first determining module, a second determining module, and Processing module, wherein
所述加入模块设置成:将以太环网上的每个环节点端口上建立的接入电路AC成员或者伪线PW成员加入二层虚拟专用网络L2VPN中;The adding module is configured to: join an access circuit AC member or a pseudowire PW member established on each ring node port of the Ethernet ring network into the layer 2 virtual private network L2VPN;
所述第一确定模块设置成:在所述以太环网上出现故障的情况下,确定每个环节点端口对应的AC成员或PW成员的状态;The first determining module is configured to: determine a state of an AC member or a PW member corresponding to each ring node port if a fault occurs on the Ethernet ring network;
所述第二确定模块设置成:根据确定的每个环节点端口对应的AC成员或PW成员的状态,确定用于保护所述以太环网的保护切换结果;The second determining module is configured to: determine, according to the determined status of the AC member or the PW member corresponding to each ring node, the protection switching result used to protect the Ethernet ring network;
所述处理模块设置成:根据确定的所述保护切换结果,进行业务流量转发处理。The processing module is configured to: perform service traffic forwarding processing according to the determined protection switching result.
该装置还包括:第三确定模块、第一建立模块和第二建立模块,其中The device further includes: a third determining module, a first establishing module, and a second establishing module, wherein
所述第三确定模块设置成:确定所述以太环网上的每个环节点端口建立成员的成员类型,其中,所述成员类型包括:AC成员或者PW成员;The third determining module is configured to: determine a member type of each ring node port establishing member of the Ethernet ring network, where the member type includes: an AC member or a PW member;
所述第一建立模块设置成:在环节点端口属于所述L2VPN的情况下,在所述环节点端口上建立AC成员;The first establishing module is configured to: establish an AC member on the ring node port if the ring node port belongs to the L2VPN;
所述第二建立模块设置成:在环节点端口跨越多协议标签交换MPLS网络的情况下,在所述环节点端口上建立PW成员。The second establishing module is configured to establish a PW member on the ring node port if the ring node port traverses the multi-protocol label switching MPLS network.
所述第一确定模块包括:第一判断单元、第一确定单元、第二判断单元、第二确定单元和第三确定单元,其中The first determining module includes: a first determining unit, a first determining unit, a second determining unit, a second determining unit, and a third determining unit, wherein
所述第一判断单元设置成:判断所述每个环节点端口对应的AC成员或PW成员是否存在业务流量;The first determining unit is configured to: determine whether the AC member or the PW member corresponding to each ring node port has service traffic;
所述第一确定单元设置成:在所述第一判断单元的判断结果为所述AC成员或PW成员不存在业务流量的情况下,确定所述AC成员或PW成员的状态正常;The first determining unit is configured to: determine that the status of the AC member or the PW member is normal if the result of the first determining unit is that the AC member or the PW member does not have service traffic;
所述第二判断单元设置成:在所述第一判断单元的判断结果为所述AC成员或PW成员存在业务流量的情况下,判断所述AC成员或PW成员是否发生故障;The second judging unit is configured to: determine whether the AC member or the PW member is faulty if the result of the first judging unit is that the AC member or the PW member has service traffic;
所述第二确定单元设置成:在所述第二判断单元的判断结果为所述AC 成员或PW成员发生故障的情况下,确定所述AC成员或PW成员的状态异常;The second determining unit is configured to: the result of the determination in the second determining unit is the AC If the member or the PW member is faulty, determine that the status of the AC member or PW member is abnormal.
所述第三确定单元设置成:在所述第二判断单元的判断结果为所述AC成员或PW成员未发生故障的情况下,确定所述AC成员或PW成员的状态正常。The third determining unit is configured to determine that the state of the AC member or the PW member is normal if the result of the second determining unit is that the AC member or the PW member has not failed.
该装置还包括通知模块,其中The device also includes a notification module, wherein
所述通知模块设置成:将所述保护切换结果通知所述以太环网中除最先感知到故障的环节点之外的其它环节点,用于所述其它环节点设置对应的AC成员或PW成员的状态。The notification module is configured to: notify the other ring nodes in the Ethernet ring network except the ring node that first perceived the fault, and set the corresponding AC member or PW to the other ring node. The status of the member.
该装置还包括恢复模块,其中The device also includes a recovery module, wherein
所述恢复模块设置成:在确定所述以太环网上的故障消失的情况下,对发生故障时更新过的AC成员或PW成员的状态进行恢复。The recovery module is configured to: restore the state of the AC member or PW member that was updated when the fault occurred, in the case that it is determined that the fault on the Ethernet ring network has disappeared.
所述第二确定模块设置成按照如下方式根据确定的每个环节点端口对应的AC成员或PW成员的状态,确定用于保护所述以太环网的保护切换结果:The second determining module is configured to determine, according to the determined status of the AC member or the PW member corresponding to each ring node port, the protection switching result used to protect the Ethernet ring network:
在以太环网没有故障的情况下,RPL所在的端口的AC或者PW成员的保护切换结果是阻塞,其他端口的AC或者PW成员的保护切换结果是打开;在以太环网出现故障的情况下,故障链路相连的AC或者PW成员的保护切换结果是阻塞,其他端口的AC或者PW成员的保护切换结果是打开。If the Ethernet ring network is faulty, the protection switching result of the AC or PW member of the port where the RPL is located is blocked. The protection switching result of the AC or PW member of the other port is turned on. If the Ethernet ring network fails, The protection switching result of the AC or PW member connected to the faulty link is blocked. The protection switching result of the AC or PW member of other ports is open.
其中,所述处理模块设置成按照如下方式根据确定的所述保护切换结果,进行业务流量转发处理:The processing module is configured to perform service traffic forwarding processing according to the determined protection switching result according to the following manner:
如果保护切换结果是打开,则进行业务流量转发;如果保护切换结果是阻塞,则不进行业务流量转发。If the protection switching result is turned on, the service traffic is forwarded; if the protection switching result is blocked, the service traffic is not forwarded.
一种存储介质。该存储介质设置为存储用于执行以下步骤的程序代码:将以太环网上的每个环节点端口上建立的接入电路AC成员或者伪线PW成员加入二层虚拟专用网络L2VPN中;在所述以太环网上出现故障的情况下,确定每个环节点端口对应的AC成员或PW成员的状态;根据确定的所述每个环节点端口对应的AC成员或PW成员的状态,确定用于保护所述以太环网的保护切换结果;根据确定的所述保护切换结果,进行业务流量转发处理。 A storage medium. The storage medium is configured to store program code for performing the following steps: adding an access circuit AC member or a pseudowire PW member established on each ring node port of the Ethernet ring network to the layer 2 virtual private network L2VPN; In the case of a fault on the Ethernet ring network, the status of the AC member or the PW member corresponding to each ring node port is determined; and the state of the AC member or the PW member corresponding to each ring node port is determined according to the determined state. Determining the protection switching result of the Ethernet ring network; performing service traffic forwarding processing according to the determined protection switching result.
其中,存储介质还设置为存储用于执行以下步骤的程序代码:在将所述以太环网上的每个环节点端口上建立的所述AC成员或者所述PW成员加入所述L2VPN中之前,还包括:确定所述以太环网上的每个环节点端口建立成员的成员类型,其中,所述成员类型包括:AC成员或者PW成员;在环节点端口属于所述L2VPN的情况下,在所述环节点端口上建立AC成员;在环节点端口跨越多协议标签交换MPLS网络的情况下,在所述环节点端口上建立PW成员。Wherein the storage medium is further configured to store program code for performing the following steps: before adding the AC member or the PW member established on each ring node port of the Ethernet ring network to the L2VPN, The method includes: determining a member type of each ring node port establishing member on the Ethernet ring network, where the member type includes: an AC member or a PW member; and in a case where the ring node port belongs to the L2VPN, in the link An AC member is established on the point port; in the case that the ring node port crosses the multi-protocol label switching MPLS network, a PW member is established on the ring node port.
其中,存储介质还设置为存储用于执行以下步骤的程序代码:在所述以太环网上出现故障的情况下,确定每个环节点端口对应的AC成员或PW成员的状态包括:判断所述每个环节点端口对应的AC成员或PW成员是否存在业务流量;在判断结果为所述AC成员或PW成员不存在业务流量的情况下,确定所述AC成员或PW成员的状态正常;在判断结果为所述AC成员或PW成员存在业务流量的情况下,判断所述AC成员或PW成员是否发生故障;在判断结果为所述AC成员或PW成员发生故障的情况下,确定所述AC成员或PW成员的状态异常;在判断结果为所述AC成员或PW成员未发生故障的情况下,确定所述AC成员或PW成员的状态正常。The storage medium is further configured to store program code for performing the following steps: determining that the status of the AC member or the PW member corresponding to each ring node port in the case of a failure in the Ethernet ring network comprises: determining each of the Whether the AC member or the PW member corresponding to the ring node port has the service traffic; if the result is that the AC member or the PW member does not have the service traffic, the status of the AC member or the PW member is normal; If the AC member or the PW member is faulty, the AC member or the PW member is faulty. If the AC member or the PW member is faulty, the AC member or the AC member is determined. The status of the PW member is abnormal. If the result is that the AC member or the PW member is not faulty, the status of the AC member or PW member is determined to be normal.
其中,存储介质还设置为存储用于执行以下步骤的程序代码:在根据确定的所述每个环节点端口对应的AC成员或PW成员的状态,确定用于保护所述以太环网的所述保护切换结果之后,还包括:将所述保护切换结果通知所述以太环网中除所述环节点之外的其它环节点,用于所述其它环节点设置对应的AC成员或PW成员的状态。Wherein the storage medium is further configured to store program code for performing the step of: determining, according to the determined status of the AC member or the PW member corresponding to each ring node port, the method for protecting the Ethernet ring network After the protection of the handover result, the method further includes: notifying, by using the protection switching result, other ring nodes except the ring node in the Ethernet ring network, and setting the status of the corresponding AC member or PW member in the other ring node. .
其中,存储介质还设置为存储用于执行以下步骤的程序代码:在根据确定的所述保护切换结果,进行业务流量转发处理之后,还包括:在确定所述以太环网上的故障消失的情况下,对发生故障时更新过的AC成员或PW成员的状态进行恢复。The storage medium is further configured to store program code for performing the following steps: after performing the service traffic forwarding process according to the determined protection switching result, further comprising: determining that the fault on the Ethernet ring network disappears , restore the status of the AC member or PW member that was updated when the fault occurred.
以太环网上的每个环节点端口上建立的AC成员或者PW成员加入L2VPN中。当以太环网出现故障时,AC成员或者PW成员能感知到故障的发生,具体的,可以在AC成员或者PW成员上部署OAM检测,快速的检测到故障的发生。在AC成员或者PW成员感知到故障后,将故障通知ERPS 协议。ERPS协议根据AC成员或者PW成员的故障确定出保护切换结果,即AC成员或者PW成员是阻塞还是打开。AC成员或者PW成员根据阻塞状态还是打开状态来进行流量转发。An AC member or PW member established on each ring node port of the Ethernet ring network is added to the L2VPN. When the Ethernet ring network fails, the AC member or the PW member can detect the fault. Specifically, OAM detection can be deployed on the AC member or PW member to quickly detect the fault. After the AC member or PW member senses the fault, notify the ERPS of the fault. protocol. The ERPS protocol determines the protection switching result based on the fault of the AC member or the PW member, that is, whether the AC member or the PW member is blocked or opened. Traffic forwarding is performed by an AC member or a PW member based on the blocked state or the open state.
通过上述技术方案,以太环网上的每个环节点端口上建立的AC成员或者PW成员加入L2VPN中,根据每个环节点端口对应的AC成员或PW成员的状态确定保护切换结果,进行业务流量转发,由于使用的是环节点端口上建立的AC成员或者PW成员的状态进行保护切换以及业务流量转发处理,因此,使得以太环网保护协议能够适用于L2VPN场景,达到有效进行以太环网保护切换,保护L2VPN业务流量的效果。Through the above technical solution, the AC member or the PW member established on each ring node of the Ethernet ring network is added to the L2VPN, and 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 traffic is forwarded. The Ethernet ring protection protocol can be applied to the L2VPN scenario to effectively perform Ethernet ring protection switching, because the state of the AC member or the PW member established on the ring node is used for protection switching and service traffic forwarding. The effect of protecting L2VPN service traffic.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是以太环网保护正常状态下的拓扑示意图;Figure 1 is a schematic diagram of a topology in a normal state under the protection of a ring network;
图2是以太环网保护故障状态下的拓扑示意图;2 is a schematic diagram of a topology in a fault state under a protection of a ring network;
图3是MPLS L2VPN网络模型拓扑示意图;3 is a schematic diagram of a topology of an MPLS L2VPN network model;
图4是本发明实施例的一种业务处理方法的终端的硬件结构框图;4 is a block diagram showing the hardware structure of a terminal of a service processing method according to an embodiment of the present invention;
图5是根据本发明实施例的业务处理方法的流程图;FIG. 5 is a flowchart of a service processing method according to an embodiment of the present invention; FIG.
图6是根据本发明实施例优选实施例的以太环网保护装置的结构框图;6 is a structural block diagram of an Ethernet ring protection device according to a preferred embodiment of the present invention;
图7是根据本发明优选实施例的业务处理方法的流程图;7 is a flow chart of a service processing method in accordance with a preferred embodiment of the present invention;
图8是根据本发明优选实施例的基于L2VPN的以太环网保护正常状态下的拓扑示意图;FIG. 8 is a schematic diagram of a topology of an L2VPN-based Ethernet ring network in a normal state according to a preferred embodiment of the present invention; FIG.
图9是根据本发明优选实施例的基于L2VPN的以太环网保护故障状态下的拓扑示意图;9 is a schematic diagram of a topology in an L2VPN-based Ethernet ring network protection fault state according to a preferred embodiment of the present invention;
图10是根据本发明优选实施例的基于L2VPN的以太环网保护不关联成 员故障状态下的拓扑示意图;10 is an L2VPN-based Ethernet ring network protection not associated with a preferred embodiment of the present invention. Schematic diagram of the topology in the fault state of the member;
图11是根据本发明实施例的业务处理装置的结构框图一;11 is a structural block diagram 1 of a service processing apparatus according to an embodiment of the present invention;
图12是根据本发明实施例的业务处理装置的结构框图二;FIG. 12 is a second structural block diagram of a service processing apparatus according to an embodiment of the present invention; FIG.
图13是根据本发明实施例的业务处理装置的第一确定模块114的结构框图;FIG. 13 is a structural block diagram of a first determining module 114 of a service processing apparatus according to an embodiment of the present invention;
图14是根据本发明实施例的业务处理装置的结构框图三;FIG. 14 is a structural block diagram 3 of a service processing apparatus according to an embodiment of the present invention; FIG.
图15是根据本发明实施例的业务处理装置的结构框图四。FIG. 15 is a structural block diagram 4 of a service processing apparatus according to an embodiment of the present invention.
详述Detailed
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
但是,通过将环网节点加入到VLAN中,更新MAC地址表,来实现对业务流量的保护方式,在某些场景下会存在如下的问题:1)在L2VPN业务中,PW成员会跨越MPLS网络,针对VLAN业务的以太环网保护切换技术不能在PW上应用;2)在L2VPN业务中,某些类型的L2VPN业务不存在VLAN和MAC地址表。However, by adding a ring network node to a VLAN and updating the MAC address table to protect the service traffic, in some scenarios, the following problems exist: 1) In the L2VPN service, the PW member crosses the MPLS network. The Ethernet ring protection switching technology for VLAN services cannot be applied on the PW; 2) In the L2VPN service, some types of L2VPN services do not have a VLAN and a MAC address table.
实施例1Example 1
本申请实施例一所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在终端上为例,图4是本发明实施例的一种业务处理方法的终端的硬件结构框图。如图4所示,终端40可以包括一个或多个(图中仅示出一个)处理器402(处理器402可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)、用于存储数据的存储器404、以及用于通信功能的传输装置406。本领域普通技术人员可以理解,图 4所示的结构仅为示意,其并不对上述电子装置的结构造成限定。例如,终端40还可包括比图4中所示更多或者更少的组件,或者具有与图4所示不同的配置。The method embodiment provided in Embodiment 1 of the present application can be executed in a mobile terminal, a computer terminal or the like. 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. As shown in FIG. 4, terminal 40 may include one or more (only one shown) processor 402 (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. One of ordinary skill in the art will understand that the figure The structure shown in FIG. 4 is merely illustrative, and it does not limit the structure of the above electronic device. For example, terminal 40 may also include more or fewer components than shown in FIG. 4, or have a different configuration than that shown in FIG.
存储器404可设置成:存储应用软件的软件程序以及模块,如本发明实施例中的业务处理方法对应的程序指令/模块,处理器402通过运行存储在存储器404内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器404可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器404可进一步包括相对于处理器402远程设置的存储器,这些远程存储器可以通过网络连接至终端40。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 404 can be configured to: store a software program of the application software and a module, such as a program instruction/module corresponding to the business processing method in the embodiment of the present invention, and the processor 402 executes by executing the software program and the module stored in the memory 404. Various functional applications and data processing, that is, the above methods are implemented. Memory 404 can include high speed random access memory and can 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, memory 404 can further include memory remotely located relative to processor 402, which can be connected to terminal 40 over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
传输装置406设置成:经由一个网络接收或者发送数据。上述的网络具体实例可包括终端40的通信供应商提供的无线网络。在一个实例中,传输装置406包括一个网络适配器(Network Interface Controller,NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置406可以为射频(Radio Frequency,RF)模块,其用于通过无线方式与互联网进行通讯。Transmission device 406 is arranged to receive or transmit data via a network. The network specific example described above may include a wireless network provided by a communication provider of the terminal 40. In one example, transmission device 406 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet. In one example, the transmission device 406 can be a Radio Frequency (RF) module for communicating with the Internet wirelessly.
在本实施例中提供了一种运行于上述终端的业务处理方法,图5是根据本发明实施例的业务处理方法的流程图,如图5所示,该流程包括如下步骤:In this embodiment, a service processing method running on the terminal is provided. FIG. 5 is a flowchart of a service processing method according to an embodiment of the present invention. As shown in FIG. 5, the process includes the following steps:
步骤S502,将以太环网上的每个环节点端口上建立的接入电路AC成员或者伪线PW成员加入二层虚拟专用网络L2VPN中;Step S502, adding an access circuit AC member or a pseudowire PW member established on each ring node port of the Ethernet ring network to the Layer 2 virtual private network L2VPN;
步骤S504,在环节点以太环网上出现故障的情况下,确定每个环节点端口对应的AC成员或PW成员的状态;Step S504, in the case that a fault occurs on the ring node Ethernet ring network, determine the state of the AC member or PW member corresponding to each ring node port;
步骤S506,根据确定的每个环节点端口对应的AC成员或PW成员的状态,确定用于保护环节点以太环网的保护切换结果;Step S506, determining, according to the determined status of the AC member or the PW member corresponding to each ring node port, a protection switching result for protecting the ring node Ethernet ring network;
可选地,此处的保护切换结果是经过协议处理模块计算后得到的结果,即阻塞还是打开。比如在以太环网没有故障的情况下,协议处理模块通知L2VPN,RPL所在的端口的AC或者PW成员的保护切换结果是阻塞,其他端口的AC或者PW成员的保护切换结果是打开。在以太环网出现故障的 情况下,协议处理模块通知L2VPN,故障链路相连的AC或者PW成员的保护切换结果是阻塞,其他端口的AC或者PW成员的保护切换结果是打开,例如,如图8所示,PW12的保护切换结果为打开,AC14的保护切换结果为阻塞。Optionally, the protection switching result here is the result obtained by the protocol processing module, that is, blocking or opening. For example, if the Ethernet ring network is not faulty, the protocol processing module notifies the L2VPN that the protection switching result of the AC or PW member of the port where the RPL is located is blocked, and the protection switching result of the AC or PW member of the other port is turned on. Failure in the Ethernet ring network In this case, the protocol processing module notifies the L2VPN that the protection switching result of the AC or PW member connected to the faulty link is blocked, and the protection switching result of the AC or PW member of the other port is turned on. For example, as shown in Figure 8, the protection of the PW12 is performed. The result of the switch is open, and the protection switch result of AC14 is blocked.
步骤S508,根据确定的环节点保护切换结果,进行业务流量转发处理。Step S508, performing service traffic forwarding processing according to the determined ring node protection switching result.
步骤S508中,如果保护切换结果是打开,则可以进行业务流量转发。如果保护切换结果是阻塞,则不能进行业务流量转发。In step S508, if the protection switching result is on, traffic forwarding can be performed. If the protection switching result is blocked, traffic forwarding cannot be performed.
通过上述步骤,以太环网上的每个环节点端口上建立的AC成员或者PW成员加入L2VPN中,根据每个环节点端口对应的AC成员或PW成员的状态确定保护切换结果,进行业务流量转发,使得以太环网保护协议能够适用于L2VPN场景的问题,能够有效进行以太环网保护切换,保护L2VPN业务流量。Through the above steps, the AC member or the PW member established on each ring node of the Ethernet ring network is added to the L2VPN, and 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 traffic is forwarded. The Ethernet ring protection protocol can be applied to the L2VPN scenario, and the Ethernet ring protection switch can be effectively performed to protect the L2VPN service traffic.
可选地,上述步骤的执行主体可以为终端、以太环网中的环节点等,但不限于此。Optionally, the execution body of the foregoing step may be a terminal, a ring node in an Ethernet ring network, or the like, but is not limited thereto.
可选地,在步骤S502之前,还可以采用如下方式确定以太环网上的每个环节点端口建立成员的成员类型,其中,成员类型包括AC成员或者PW成员:在环节点端口属于L2VPN(本地网络)的情况下,在环节点端口上建立AC成员;在环节点端口跨越MPLS网络的情况下,在环节点端口上建立PW成员。而环节点端口属于L2VP还是跨越MPLS网络,可以根据网络配置进行确定。Optionally, before step S502, the member type of each ring node port of the Ethernet ring network may be determined, where the member type includes an AC member or a PW member: the ring node port belongs to the L2VPN (local network) In the case of a ring node, an AC member is established; in the case where the ring node port spans the MPLS network, a PW member is established on the ring node port. Whether the ring node port belongs to the L2VP or the MPLS network can be determined according to the network configuration.
通过本发明实施例的上述技术方案,根据环节点端口属于本地网络还是跨越MPLS网络确定每个环节点端口建立的成员类型,可以在业务处理时将每个环节点端口替代为对应的成员类型,保证了保护切换的顺利进行。According to the foregoing technical solution of the embodiment of the present invention, each ring node port can be replaced with a corresponding member type according to the ring node port belonging to the local network or the MPLS network to determine the member type established by each ring node port. The protection switching is guaranteed to proceed smoothly.
可选地,步骤S504可以采用多种方式实现,例如,可以确定每个环节点端口对应的AC成员或PW成员的状态,确定每个环节点端口对应的AC成员或PW成员的状态。Optionally, the step S504 can be implemented in multiple manners. For example, the status of the AC member or the PW member corresponding to each ring node port can be determined, and the status of the AC member or the PW member corresponding to each ring node port is determined.
又例如,可以首先判断每个环节点端口对应的AC成员或PW成员是否存在业务流量,对于不存在业务流量的AC成员或PW成员,确定该AC成 员或PW成员的状态正常;对于存在业务流量的AC成员或PW成员,依据该AC成员或PW成员是否发生故障确定该AC成员或PW成员是否正常,判断AC成员或PW成员是否发生故障,如果发生故障,则确定该AC成员或PW成员的状态异常,如果未发生故障,则确定该AC成员或PW成员的状态正常。由于以太环网用于保护VLAN中的业务流量,对于没有业务流量流经的AC成员或PW成员的状态并不影响业务流量的传输,因此,与确定每个环节点端口对应的AC成员或PW成员的状态,确定每个环节点端口对应的AC成员或PW成员的状态相比,仅对存在业务流量的AC成员或PW成员的故障状况进行状态判断,而对于不存在业务流量的AC成员或PW成员认为该成员状态正常,能够降低确定每个环节点端口对应的AC成员或PW成员的状态的工作量,提高系统的运行效率。For example, it may be determined that the AC member or the PW member corresponding to each ring node port has service traffic, and the AC member or PW member that does not have service traffic determines the AC. The status of the member or the PW member is normal. If the AC member or the PW member is faulty, the AC member or the PW member is faulty. If the fault occurs, the status of the AC member or PW member is abnormal. If no fault occurs, the status of the AC member or PW member is normal. Because the Ethernet ring network is used to protect the traffic in the VLAN, the status of the AC member or the PW member that does not pass the service traffic does not affect the transmission of the service traffic. Therefore, the AC member or PW corresponding to each ring node is determined. The status of the member is determined by the status of the AC member or the PW member corresponding to each ring node. The status of the fault is determined only for the AC member or the PW member that has the service traffic. The PW member considers that the member is in a normal state and can reduce the workload of determining the state of the AC member or PW member corresponding to each ring node port, thereby improving the operating efficiency of the system.
通过本发明实施例的上述技术方案,仅对存在业务流量的AC成员或PW成员的故障状况进行状态判断,而对于不存在业务流量的AC成员或PW成员认为该成员状态正常,能够降低确定每个环节点端口对应的AC成员或PW成员的状态的工作量,提高系统的运行效率。With the foregoing technical solution of the embodiment of the present invention, only the fault status of the AC member or the PW member that has the service traffic is judged, and the AC member or the PW member that does not have the service traffic considers that the member status is normal. The workload of the status of the AC member or PW member corresponding to the ring node port improves the operating efficiency of the system.
可选地,在步骤S506之后,还可以将确定的保护切换结果通知以太环网中除该环节点之外的其它环节点,用于其它环节点设置对应的AC成员或PW成员的状态。此处的“该环节点”指的可以是最先感知或者最先检测到故障的一个或多个环节点。Optionally, after the step S506, the determined protection switching result may also be notified to other ring nodes in the Ethernet ring network except the ring node, and used by other ring nodes to set the state of the corresponding AC member or PW member. The "ring node" herein may refer to one or more ring nodes that are first perceived or first detected as a failure.
通过本发明实施例的上述技术方案,将确定的保护切换结果通知其它环节点,其它环节点可以根据切换结果设置对应的AC成员或PW成员的状态,提高了AC成员或PW成员状态设置的效率,保证了以太环网中环节点AC成员或PW成员状态设置的可靠性。With the foregoing technical solution of the embodiment of the present invention, the determined protection switching result is notified to other ring nodes, and other ring nodes may set the state of the corresponding AC member or PW member according to the switching result, thereby improving the efficiency of setting the state of the AC member or the PW member. The reliability of the state setting of the AC member or PW member of the ring node in the Ethernet ring network is guaranteed.
可选地,在步骤S508之后,还可以在确定以太环网上的故障消失的情况下,对发生故障时更新过的AC成员或PW成员的状态进行恢复。Optionally, after the step S508, the state of the AC member or the PW member that is updated when the fault occurs may also be restored in the case that it is determined that the fault on the Ethernet ring network disappears.
通过本发明实施例的上述技术方案,在以太环网上的故障消失时,对发生故障时更新过的AC成员或PW成员的状态进行恢复,保证了环节点的AC成员或PW成员的状态更新的及时性,保证了业务流量转发的效率。With the above technical solution of the embodiment of the present invention, when the fault on the Ethernet ring network disappears, the state of the AC member or the PW member that is updated when the fault occurs is restored, and the status of the AC member or the PW member of the ring node is updated. Timeliness ensures the efficiency of business traffic forwarding.
基于上述实施例及可选实施方式,为说明方案的整个流程交互,在本优 选实施例中,提供了一种业务处理方法,该方法可以运行在如图6所示的以太环网保护装置中,该装置包括:L2VPN管理模块62、L2VPN状态模块64、状态通知模块66和协议处理模块68。下面对该装置进行说明。Based on the above embodiments and optional implementation manners, in order to explain the entire process interaction of the solution, in this excellent In an embodiment, a service processing method is provided. The method can be run in an Ethernet ring protection device as shown in FIG. 6. The device includes: an L2VPN management module 62, an L2VPN status module 64, a status notification module 66, and Protocol processing module 68. The device will be described below.
L2VPN管理模块62(作用同下述加入模块112、处理模块118、第三确定模块116、第一建立模块124、第二建立模块126),设置成:管理AC成员和PW成员。将以太环网上的每个环节点端口加入L2VPN中,若环节点端口在本地网络中,则在该端口上建立AC成员加入L2VPN;若环节点端口跨越MPLS网络,则在该端口上建立PW成员加入L2VPN。此外,L2VPN管理模块62还可以接收状态通知模块66的保护切换结果,将AC成员或PW成员设置成阻塞或者打开状态,实现正确的业务流量转发。The L2VPN management module 62 (which functions as the following adding module 112, processing module 118, third determining module 116, first establishing module 124, and second establishing module 126) is configured to: manage AC members and PW members. Add each ring node port on the Ethernet ring network to the L2VPN. If the ring node port is on the local network, the AC member is added to the L2VPN on the port. If the ring node port crosses the MPLS network, the PW member is established on the port. Join the L2VPN. In addition, the L2VPN management module 62 can also receive the protection switching result of the status notification module 66, and set the AC member or the PW member to be blocked or opened to implement correct service traffic forwarding.
L2VPN状态模块64(作用同下述第一确定模块114),设置成:感知AC成员或PW成员的状态变化,计算出AC成员或PW成员的最终状态,将最终状态传递给状态通知模块66。L2VPN状态模块64在计算成员的最终状态时可以选择是否关联成员状态,如果L2VPN成员上既有业务流量也有协议报文流量,则关联成员状态;如果L2VPN成员上只有协议报文流量,则不关联成员状态。The L2VPN state module 64 (acting as the first determining module 114 described below) is configured to: sense the state change of the AC member or the PW member, calculate the final state of the AC member or the PW member, and pass the final state to the state notification module 66. The L2VPN status module 64 can select whether to associate the member status when calculating the final status of the member. If the L2VPN member has both the service traffic and the protocol packet traffic, the member status is associated; if the L2VPN member only has the protocol packet traffic, the L2VPN member is not associated. Member status.
状态通知模块66(作用同下述通知模块142),设置成:响应L2VPN状态模块64的状态,将状态通知给协议处理模块68。状态通知模块66还设置成:接收协议处理模块68的保护切换结果,将保护切换结果通知给L2VPN管理模块62。The status notification module 66 (acting as described below with the notification module 142) is configured 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.
协议处理模块68(作用同下述第二确定模块116),设置成:运行ERPS协议,接收状态通知模块66的状态信息,根据状态信息计算出保护切换结果,将保护切换结果传递给状态通知模块66。The protocol processing module 68 (acting as the second determining module 116 described below) is configured to: run the ERPS protocol, receive status information of the status notification module 66, calculate a protection switching result according to the status information, and transmit the protection switching result to the status notification module. 66.
该实施例中,可以选择关联或不关联成员状态。其中,关联成员状态是指将AC或者PW成员的当前实际的状态,通知协议处理模块,计算保护切换结果。而不关联成员状态是指无论AC或者PW成员的当前实际状态是正常还是故障,都认为AC或者PW成员状态正常,将正常状态通知协议处理模块,计算保护切换结果。这样操作的目的是:没有业务流量流经的AC成员或PW成员的状态并不影响业务流量的传输,因此,对存在业务流量的AC 成员或PW成员的故障状况进行状态判断,而对于不存在业务流量的AC成员或PW成员认为该成员状态正常,能够降低确定每个环节点端口对应的AC成员或PW成员的状态的工作量,提高系统的运行效率。In this embodiment, the associated or unassociated member status can be selected. The associated member status refers to the current actual status of the AC or PW member, and the protocol processing module is notified to calculate the protection switching result. The status of the unassociated member is that the AC or PW member status is normal regardless of whether the current or actual status of the AC or PW member is normal or faulty. The normal state is notified to the protocol processing module to calculate the protection switching result. The purpose of this operation is that the state of an AC member or PW member that does not have traffic flows does not affect the transmission of service traffic. Therefore, the AC that has service traffic exists. The fault status of the member or the PW member is judged by the state, and the AC member or the PW member that does not have the service traffic considers that the member status is normal, and the workload for determining the state of the AC member or the PW member corresponding to each ring node port can be reduced. Improve the efficiency of the system.
结合上述装置及对应的模块,下面对本优选实施例中的业务处理方法进行说明。图7是根据本发明优选实施例的业务处理方法的流程图,如图7所示,该流程包括以下步骤:The service processing method in the preferred embodiment will be described below in conjunction with the above 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 flow includes the following steps:
步骤S702,将以太环网上的每个环节点端口加入L2VPN中。Step S702, adding each ring node port on the Ethernet ring network to the L2VPN.
将以太环网上的每个环节点端口加入L2VPN之前,需要对以太环网进行配置:配置以太环网保护的主节点和传输节点,配置主节点的主端口和从端口,在每个环节点的端口上运行以太环网保护协议。Before adding each ring node port on the Ethernet ring network to the L2VPN, you need to configure the Ethernet ring network: configure the primary node and the transit node of the Ethernet ring protection, configure the primary port and the secondary port of the primary node, and The Ethernet ring protection protocol is running on the port.
将所有的环节点端口加入到L2VPN业务中,若环节点端口在本地网络中,则在所述端口上建立AC成员加入L2VPN(实例),若环节点端口跨越MPLS网络,则在所述端口上建立PW成员加入L2VPN(实例)。All the ring node ports are added to the L2VPN service. If the ring node port is in the local network, the AC member is added to the L2VPN (instance) on the port. If the ring node port crosses the MPLS network, the port is on the port. Establish a PW member to join the L2VPN (instance).
步骤S704,AC成员或PW成员感知到以太环网上发生故障,L2VPN根据故障信息计算出AC成员和PW成员的最终状态。In step S704, the AC member or the PW member detects that the Ethernet ring network is faulty, and the L2VPN calculates the final state of the AC member and the PW member according to the fault information.
当以太环网处于正常状态时,主端口所在的AC成员或者PW成员处于打开状态,从端口所在的AC成员或者PW成员处于阻塞状态,在主端口上的AC成员或者PW成员上传输业务流量,环保护链路上的AC成员或者PW成员阻塞业务流量。When the Ethernet ring is in the normal state, the AC member or the PW member of the primary port is in the open state, and the AC member or PW member on the primary port is in the blocked state. The AC member or PW member on the ring protection link blocks traffic.
当以太环网上AC成员或者PW成员检测到环链路故障时,L2VPN状态模块64根据故障状态信息计算出AC成员或者PW成员的最终状态。L2VPN状态模块64在计算成员的最终状态时可以选择是否关联成员状态,如果L2VPN成员上既有业务流量也有协议报文流量,则关联成员状态;如果L2VPN成员上只有协议报文流量,则不关联成员状态,即使该成员上产生了故障,计算结果该成员仍然是正常状态。When the ring link fault is detected by the AC member or the PW member on the Ethernet ring network, the L2VPN state module 64 calculates the final state of the AC member or the PW member according to the fault state information. The L2VPN status module 64 can select whether to associate the member status when calculating the final status of the member. If the L2VPN member has both the service traffic and the protocol packet traffic, the member status is associated; if the L2VPN member only has the protocol packet traffic, the L2VPN member is not associated. The member status, even if a fault occurs on the member, the result of the calculation is still normal.
该实施例中,可以选择关联或不关联成员状态。其中,关联成员状态是指将AC或者PW成员的当前实际的状态,通知协议处理模块,计算保护切 换结果。而不关联成员状态是指无论AC或者PW成员的当前实际状态是正常还是故障,都认为AC或者PW成员状态正常,将正常状态通知协议处理模块,计算保护切换结果。这样操作的目的是:没有业务流量流经的AC成员或PW成员的状态并不影响业务流量的传输,因此,对存在业务流量的AC成员或PW成员的故障状况进行状态判断,而对于不存在业务流量的AC成员或PW成员认为该成员状态正常,能够降低确定每个环节点端口对应的AC成员或PW成员的状态的工作量,提高系统的运行效率。In this embodiment, the associated or unassociated member status can be selected. The associated member status refers to the current actual status of the AC or PW member, and the protocol processing module is notified to calculate the protection cut. Change the result. The status of the unassociated member is that the AC or PW member status is normal regardless of whether the current or actual status of the AC or PW member is normal or faulty. The normal state is notified to the protocol processing module to calculate the protection switching result. The purpose of this operation is that the state of the AC member or the PW member that does not have the service traffic does not affect the transmission of the service traffic. Therefore, the status of the fault condition of the AC member or the PW member that has the service traffic is judged, but does not exist. The AC member or PW member of the service traffic considers that the member is in the normal state and can reduce the workload of determining the status of the AC member or PW member corresponding to each ring node port, and improve the operating efficiency of the system.
步骤S706,将AC成员和PW成员的最终状态信息通知给协议处理模块68。In step S706, the final state information of the AC member and the PW member is notified to the protocol processing module 68.
将L2VPN状态模块64计算出的AC成员和PW成员的最终状态,通过状态通知模块66通知给协议处理模块68,这里的协议为ERPS协议。The final state of the AC member and the PW member calculated by the L2VPN status module 64 is notified to the protocol processing module 68 via the status notification module 66, where the protocol is the ERPS protocol.
步骤S708,根据收到的状态信息计算出保护切换结果。Step S708, calculating a protection switching result according to the received status information.
协议处理模块68接收故障信息后,进行协议状态计算,将保护切换结果经状态通知模块66通知给当前链路所在的L2VPN管理模块62。After receiving the fault information, the protocol processing module 68 performs protocol state calculation, and notifies the protection switching result to the L2VPN management module 62 where the current link is located via the status notification module 66.
步骤S7010,根据保护切换结果,将AC成员或PW成员设置成阻塞或者打开状态。Step S7010: Set the AC member or the PW member to a blocked or open state according to the protection switching result.
可选地,在环网链路上没有故障的情况下,将RPL链路相连的端口的AC或者PW设置为阻塞状态,将其他端口设置为打开状态。Optionally, if there is no fault on the ring link, set the AC or PW of the port connected to the RPL link to the blocked state, and set the other port to the open state.
在环网链路出现故障的情况下,将发生故障的链路相连的端口的AC或者PW设置为阻塞,将其他端口设置为打开状态。In the case of a ring link failure, set the AC or PW of the port to which the failed link is connected to block and set the other port to the open state.
L2VPN管理模块62,根据接收到的保护切换结果,将AC成员或PW成员设置成阻塞或者打开状态,从而实现正确的业务流量转发。The L2VPN management module 62 sets the AC member or the PW member to a blocked or open state according to the received protection switching result, so as to implement correct service traffic forwarding.
协议处理模块68还可以发送故障消息通知环网主节点,环网主节点收到故障消息后,进行协议状态计算,将保护切换结果通知环网主节点上的L2VPN业务,L2VPN打开环网主节点上被阻塞的AC成员或者PW成员。The protocol processing module 68 can also send a fault message to notify the ring network master node. After receiving the fault message, the ring network master node performs protocol state calculation, and notifies the protection switching result to the L2VPN service on the ring network master node, and the L2VPN opens the ring network master node. A blocked AC member or PW member.
当以太环网上AC成员或者PW成员检测到环链路故障消失时,L2VPN管理模块62将故障消失消息通知给协议处理模块68。When the AC member or the PW member of the Ethernet ring network detects that the ring link failure disappears, the L2VPN management module 62 notifies the protocol processing module 68 of the failure disappear message.
协议处理模块68接收故障消失信息后,进行协议状态计算,通知L2VPN 管理模块62恢复当前AC成员或者PW成员状态。After receiving the failure disappearing information, the protocol processing module 68 performs protocol state calculation to notify the L2VPN. The management module 62 restores the current AC member or PW member status.
L2VPN管理模块62还可以发送故障消息通知环网主节点,环网主节点收到故障消失消息后,进行协议状态计算,通知环网主节点上的L2VPN重新阻塞环网主节点上从端口关联的AC成员或者PW成员。The L2VPN management module 62 may also send a fault message to notify the ring network master node, and after receiving the fault disappearing message, the ring network master node performs protocol state calculation, and notifies the L2VPN on the primary node of the ring network to re-block the slave port associated with the master node on the ring network. AC member or PW member.
本优选实施例中对以太环网上的L2VPN业务类型没有限制,可以是点到点、点到多点、本地交换业务等等。对以太环网上的L2VPN业务成员组合没有限制,可以全部是PW成员,或全部是AC成员,或PW成员和AC成员的任意组合。In the preferred embodiment, there is no limitation on the type of L2VPN service on the Ethernet ring network, which may be point-to-point, point-to-multipoint, local exchange service, and the like. There is no restriction on the L2VPN service member combination on the Ethernet ring network. All of them can be PW members, or all AC members, or any combination of PW members and AC members.
下面以四个节点组成的以太环网为例,对本优选实施例的业务处理方法进行说明。The following takes the Ethernet ring network composed of four nodes as an example to describe the service processing method of the preferred embodiment.
如图8所示,配置PE1设备为主节点,PE2、PE3、PE4设备为传输节点。配置主节点的主端口和从端口。在PE1、PE2、PE3、PE4设备上运行以太环网保护切换协议。As shown in Figure 8, the PE1 device is configured as the master node, and the PE2, PE3, and PE4 devices are the transit nodes. Configure the primary and secondary ports of the primary node. The Ethernet ring protection switching protocol is run on the PE1, PE2, PE3, and PE4 devices.
在PE1上建立L2VPN实例1,PE2上建立L2VPN实例2,PE3上建立L2VPN实例3,PE4上建立L2VPN实例4。PE1和PE2之间、PE3和PE4之间跨越MPLS网络,建立PW连接。实例1由PW12成员和AC14成员组成,实例2由PW21成员和AC23成员组成,实例3由PW34成员和AC32成员组成,实例4由PW43成员和AC41成员组成。Establish L2VPN instance 1 on PE1, L2VPN instance 2 on PE2, L2VPN instance 3 on PE3, and L2VPN instance 4 on PE4. A PW connection is established between PE1 and PE2 and between PE3 and PE4 across the MPLS network. Example 1 consists of PW12 members and AC14 members, Example 2 consists of PW21 members and AC23 members, Example 3 consists of PW34 members and AC32 members, and Example 4 consists of PW43 members and AC41 members.
当以太环网链路正常时,PW12处于打开状态,AC14处于阻塞状态,PW12成员上可以传输业务流量,AC14成员上阻塞业务流量。When the Ethernet ring link is normal, the PW12 is in the open state and the AC 14 is in the blocked state. The PW12 member can transmit service traffic and the AC14 member blocks service traffic.
如图9所示,当以太环网上PE3和PE4设备之间检测到链路故障时,L2VPN计算PW34和PW43成员的最终状态,将最终故障状态信息通知给以太环网保护协议。L2VPN在计算成员的最终状态时可以选择是否关联成员状态,如果L2VPN成员上既有业务流量也有协议报文流量,则关联成员状态;如果L2VPN成员上只有协议报文流量,则不关联成员状态,即使该成员上产生了故障,计算结果该成员仍然是正常状态。图9中的PE3节点感知/检测到故障发生后,ERPS协议会将故障通知到PE2、PE1、PE4,同时,PE4节点感知/检测到故障发生后,ERPS协议会将故障通知到PE1、PE2、PE3。如图10所示,业务流量从PE1设备的PW12进入,经过PE2设备后,从PE3 设备出来。这种情况下,在PW34和PW43成员上没有业务流量,即使PW34和PW43成员出现了链路故障,也不影响正常的业务流量转发,此时选择不关联成员状态,即认为PW34和PW43成员的最终状态是正常状态。As shown in Figure 9, when a link fault is detected between the PE3 and PE4 devices on the Ethernet ring network, the L2VPN calculates the final status of the PW34 and PW43 members, and notifies the Ethernet ring protection protocol of the final fault status information. The L2VPN can be associated with the member status when calculating the final state of the member. If the L2VPN member has both the service traffic and the protocol packet traffic, the L2VPN member is associated with the member state. If the L2VPN member has only protocol packet traffic, the member state is not associated. Even if a fault occurs on the member, the member is still in a normal state. After the PE3 node in Figure 9 senses/detects the fault, the ERPS protocol will notify the fault to PE2, PE1, and PE4. At the same time, after the PE4 node senses/detects the fault, the ERPS protocol will notify the fault to PE1 and PE2. PE3. As shown in Figure 10, the service traffic enters from the PW12 of the PE1 device and passes through the PE2 device. The device comes out. In this case, there is no service traffic on the PW34 and PW43 members. Even if the PW34 and PW43 members have link faults, the normal service traffic forwarding will not be affected. In this case, the member status is not associated, that is, the PW34 and PW43 members are considered. The final state is normal.
以太环网保护装置接收故障信息后,进行协议状态计算,将保护切换结果通知L2VPN实例3和L2VPN实例4。L2VPN实例3阻塞PW34成员,L2VPN实例4阻塞PW43成员。After receiving the fault information, the Ethernet ring protection device performs protocol state calculation, and notifies the L2VPN instance 3 and the L2VPN instance 4 of the protection switching result. The L2VPN instance 3 blocks the PW34 member, and the L2VPN instance 4 blocks the PW43 member.
“以太环网保护装置”是设置在每个环节点上。以太环网保护装置发送故障消息通知环网主节点PE1设备,PE1收到故障消息后,通知PE1上的L2VPN实例1,L2VPN实例1打开被阻塞的PW12成员。The "Ethernet Ring Protection Device" is placed on each ring node. The Ethernet ring protection device sends a fault message to notify the PE1 of the primary node of the ring network. After receiving the fault message, PE1 notifies L2VPN instance 1 on PE1, and L2VPN instance 1 opens the blocked PW12 member.
当以太环网上PE3和PE4设备之间的链路故障消失时,L2VPN将故障消失消息通知给以太环网保护协议。When the link fault between the PE3 and PE4 devices on the Ethernet ring network disappears, the L2VPN notifies the Ethernet ring protection protocol of the failure disappear message.
以太环网保护装置接收故障消失信息后,进行协议状态计算,通知L2VPN实例3恢复被阻塞PW34成员,L2VPN实例4恢复被阻塞PW43成员。After receiving the fault disappearing information, the Ethernet ring protection device performs the protocol state calculation to notify the L2VPN instance 3 to restore the blocked PW34 member, and the L2VPN instance 4 restores the blocked PW43 member.
以太环网保护装置发送故障消息通知环网主节点PE1设备,环网主节点PE1收到故障消失消息后,进行协议状态计算,通知L2VPN实例1重新阻塞AC14成员。The Ethernet ring protection device sends a fault message to notify the PE1 device of the primary node of the ring network. After receiving the message of the failure disappearance, the primary node PE1 of the ring network performs protocol status calculation to notify L2VPN instance 1 to re-block the AC 14 member.
本优选实施例的上述技术方案,以L2VPN的AC成员和PW成员为基本状态单位,在跨越MPLS网络的环境中,能够有效的进行以太环网保护切换,实现对L2VPN业务流量的保护。一方面,不需要将环网节点加入VLAN业务中,直接根据AC成员和PW成员的状态进行保护切换。另一方面,对于环网节点跨越MPLS网络的场景,能够正确的计算出ERPS状态,有效的保护了以太环网上的业务流量。In the above-mentioned technical solution of the preferred embodiment, the AC member and the PW member of the L2VPN are used as the basic state unit, and the Ethernet ring network protection switching can be effectively performed in the environment spanning the MPLS network to protect the L2VPN service traffic. On the one hand, the ring network node is not required to be added to the VLAN service, and the protection switching is performed according to the state of the AC member and the PW member. On the other hand, for the scenario where the ring network node spans the MPLS network, the ERPS state can be correctly calculated, and the service traffic on the Ethernet ring network is effectively protected.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机, 服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM, including a number of instructions to make a terminal device (can be a mobile phone, a computer, The server, or network device, etc.) performs the methods described in various embodiments of the present invention.
实施例2Example 2
在本实施例中还提供了一种业务处理装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a service processing device is also provided, which is used to implement the foregoing embodiments and preferred embodiments, and has not been described again. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图11是根据本发明实施例的业务处理装置的结构框图一,如图11所示,该装置包括:加入模块112、第一确定模块114、第二确定模块116、处理模块118。下面对该装置进行说明。FIG. 11 is a structural block diagram of a service processing apparatus according to an embodiment of the present invention. 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 device will be described below.
加入模块112,设置成:将以太环网上的每个环节点端口上建立的接入电路AC成员或者伪线PW成员加入二层虚拟专用网络L2VPN中;第一确定模块114,与上述加入模块112相连,设置成:在以太环网上出现故障的情况下,确定每个环节点端口对应的AC成员或PW成员的状态;第二确定模块116,与上述第一确定模块114相连,设置成:根据确定的每个环节点端口对应的AC成员或PW成员的状态,确定用于保护以太环网的保护切换结果;处理模块118,与上述第二确定模块116相连,设置成:根据确定的保护切换结果,进行业务流量转发处理。The adding module 112 is configured to: join the access circuit AC member or the pseudowire PW member established on each ring node port of the Ethernet ring network into the layer 2 virtual private network L2VPN; the first determining module 114, and the joining module 112 The connection is set to: determine the state of the AC member or the PW member corresponding to each ring node port in the case of a failure on the Ethernet ring network; the second determining module 116 is connected to the first determining module 114, and is configured to: The status of the AC member or the PW member corresponding to each ring node is determined, and the protection switching result for protecting the Ethernet ring network is determined; the processing module 118 is connected to the second determining module 116, and is configured to: switch according to the determined protection. As a result, traffic forwarding processing is performed.
图12是根据本发明实施例的业务处理装置的结构框图二,如图12所示,该装置除包括图11所示的所有模块外,还包括:第三确定模块122、第一建立模块124、第二建立模块126。下面对该装置进行说明。FIG. 12 is a block diagram showing the structure of a service processing apparatus according to an embodiment of the present invention. As shown in FIG. 12, the apparatus includes, in addition to all the modules shown in FIG. 11, a third determining module 122 and a first establishing module 124. The second establishing module 126. The device will be described below.
第三确定模块122,设置成:确定以太环网上的每个环节点端口建立成员的成员类型,其中,成员类型包括:AC成员或者PW成员;第一建立模块124,与上述第三确定模块122相连,设置成:在环节点端口属于L2VPN的情况下,在环节点端口上建立AC成员;第二建立模块126,与上述第三确定模块122相连,设置成:在环节点端口跨越多协议标签交换MPLS网络的情况下,在环节点端口上建立PW成员。The third determining module 122 is configured to: determine a member type of each ring node port of the Ethernet ring network, wherein the member type includes: an AC member or a PW member; the first establishing module 124, and the third determining module 122 The connection is set to: when the ring node port belongs to the L2VPN, the AC member is established on the ring node port; the second establishing module 126 is connected to the third determining module 122, and is configured to: span the multi-protocol label on the ring node port. In the case of an MPLS network exchange, a PW member is established on the ring node port.
图13是根据本发明实施例的业务处理装置的第一确定模块114的结构框图,如图13所示,该第一确定模块114包括:第一判断单元132、第一确定 单元134、第二判断单元136、第二确定单元138、第三确定单元1310。下面对该第一确定模块114进行说明。FIG. 13 is a structural block diagram of a first determining module 114 of a service processing apparatus according to an embodiment of the present invention. As shown in FIG. 13, the first determining module 114 includes: a first determining unit 132, and a first determining. The unit 134, the second determining unit 136, the second determining unit 138, and the third determining unit 1310. The first determining module 114 will be described below.
第一判断单元132,设置成:判断每个环节点端口对应的AC成员或PW成员是否存在业务流量;第一确定单元134,与上述第一判断单元132相连,设置成:在第一判断单元132的判断结果为AC成员或PW成员不存在业务流量的情况下,确定AC成员或PW成员的状态正常;第二判断单元136,与上述第一判断单元132相连,设置成:在第一判断单元132的判断结果为AC成员或PW成员存在业务流量的情况下,判断AC成员或PW成员是否发生故障;第二确定单元138,与上述第二判断单元136相连,设置成:在第二判断单元136的判断结果为AC成员或PW成员发生故障的情况下,确定AC成员或PW成员的状态异常;第三确定单元1310,与上述第二判断单元136相连,设置成:在第二判断单元136的判断结果为AC成员或PW成员未发生故障的情况下,确定AC成员或PW成员的状态正常。The first determining unit 132 is configured to: determine whether the AC member or the PW member corresponding to each ring node port has service traffic; the first determining unit 134 is connected to the first determining unit 132, and is configured to: in the first determining unit If the result of the determination is that the AC member or the PW member does not have the service traffic, the status of the AC member or the PW member is determined to be normal. The second determining unit 136 is connected to the first determining unit 132 and is configured to: If the result of the unit 132 is that the AC member or the PW member has the service traffic, the AC member or the PW member is determined to be faulty. The second determining unit 138 is connected to the second determining unit 136 and is configured to: If the result of the determination of the unit 136 is that the AC member or the PW member is faulty, the status of the AC member or the PW member is abnormal. The third determining unit 1310 is connected to the second determining unit 136, and is configured to: in the second determining unit. If the result of the judgment of 136 is that the AC member or the PW member has not failed, it is determined that the state of the AC member or the PW member is normal.
图14是根据本发明实施例的业务处理装置的结构框图三,如图14所示,该装置除包括图11所示的所有模块外,还包括:通知模块142。下面对该装置进行说明。FIG. 14 is a structural block diagram 3 of a service processing apparatus according to an embodiment of the present invention. As shown in FIG. 14, the apparatus includes: a notification module 142 in addition to all the modules shown in FIG. The device will be described below.
通知模块142,设置成:将保护切换结果通知以太环网中除环节点之外的其它环节点,用于其它环节点设置对应的AC成员或PW成员的状态。The notification module 142 is configured to: notify the other ring nodes in the Ethernet ring network other than the ring node, and set the state of the corresponding AC member or PW member to the other ring node.
图15是根据本发明实施例的业务处理装置的结构框图四,如图15所示,该装置除包括图11所示的所有模块外,还包括:恢复模块152。下面对该装置进行说明。FIG. 15 is a structural block diagram of a service processing apparatus according to an embodiment of the present invention. As shown in FIG. 15, the apparatus includes: a recovery module 152 in addition to all the modules shown in FIG. The device will be described below.
恢复模块152,设置成:在确定以太环网上的故障消失的情况下,对发生故障时更新过的AC成员或PW成员的状态进行恢复。The recovery module 152 is configured to: restore the state of the AC member or PW member that was updated when the fault occurred, in the case that it is determined that the fault on the Ethernet ring network has disappeared.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination. The forms are located in different processors.
实施例3Example 3
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述 存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present invention also provide a storage medium. Optionally, in this embodiment, the above The storage medium can be configured to store program code for performing the following steps:
S1,将以太环网上的每个环节点端口上建立的接入电路AC成员或者伪线PW成员加入二层虚拟专用网络L2VPN中;S1, the access circuit AC member or the pseudowire PW member established on each ring node port of the Ethernet ring network is added to the Layer 2 virtual private network L2VPN;
S2,在以太环网上出现故障的情况下,确定每个环节点端口对应的AC成员或PW成员的状态;S2, in the case that a fault occurs on the Ethernet ring network, determine the state of the AC member or the PW member corresponding to each ring node port;
S3,根据确定的每个环节点端口对应的AC成员或PW成员的状态,确定用于保护以太环网的保护切换结果;S3. Determine, according to the determined status of the AC member or the PW member corresponding to each ring node, the protection switching result used to protect the Ethernet ring network.
S4,根据确定的保护切换结果,进行业务流量转发处理。S4: Perform service traffic forwarding processing according to the determined protection switching result.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:Optionally, the storage medium is further arranged to store program code for performing the following steps:
在将以太环网上的每个环节点端口上建立的AC成员或者PW成员加入L2VPN中之前,还包括:Before adding an AC member or PW member established on each ring node port of the Ethernet ring network to the L2VPN, it also includes:
S1,确定以太环网上的每个环节点端口建立成员的成员类型,其中,成员类型包括:AC成员或者PW成员;S1. Determine a member type of each ring node port of the Ethernet ring network, where the member type includes: an AC member or a PW member.
S2,在环节点端口属于L2VPN的情况下,在环节点端口上建立AC成员;S2. When the ring node port belongs to the L2VPN, the AC member is established on the ring node port.
S3,在环节点端口跨越多协议标签交换MPLS网络的情况下,在环节点端口上建立PW成员。S3. In the case that the ring node port crosses the multi-protocol label switching MPLS network, the PW member is established on the ring node port.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:Optionally, the storage medium is further arranged to store program code for performing the following steps:
在以太环网上出现故障的情况下,确定每个环节点端口对应的AC成员或PW成员的状态包括:In the case of a fault on the Ethernet ring network, the status of the AC member or PW member corresponding to each ring node is determined to include:
S1,在判断结果为AC成员或PW成员不存在业务流量的情况下,确定AC成员或PW成员的状态正常;S1. If the status of the AC member or the PW member does not exist, the status of the AC member or the PW member is normal.
S2,在判断结果为AC成员或PW成员存在业务流量的情况下,判断AC成员或PW成员是否发生故障;S2: If the AC member or the PW member has service traffic, the AC member or the PW member is faulty.
S3,在判断结果为AC成员或PW成员发生故障的情况下,确定AC成员或PW成员的状态异常;S3: If the result of the failure is that the AC member or the PW member is faulty, the status of the AC member or the PW member is abnormal.
S4,在判断结果为AC成员或PW成员未发生故障的情况下,确定AC 成员或PW成员的状态正常。S4. Determine the AC if the result of the determination is that the AC member or the PW member has not failed. The status of the member or PW member is normal.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:在根据确定的每个环节点端口对应的AC成员或PW成员的状态,确定用于保护以太环网的保护切换结果之后,还包括:将保护切换结果通知以太环网中除环节点之外的其它环节点,用于其它环节点设置对应的AC成员或PW成员的状态。Optionally, the storage medium is further configured to store program code for performing the following steps: determining a protection switching result for protecting the Ethernet ring network according to the determined status of the AC member or the PW member corresponding to each ring node port After that, the method further includes: notifying the ringback node in the Ethernet ring network other than the ring node, and setting the state of the corresponding AC member or the PW member in the other ring node.
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:在根据确定的保护切换结果,进行业务流量转发处理之后,还包括:在确定以太环网上的故障消失的情况下,对发生故障时更新过的AC成员或PW成员的状态进行恢复。Optionally, the storage medium is further configured to store program code for performing the following steps: after performing the service traffic forwarding process according to the determined protection switching result, further comprising: after determining that the fault on the Ethernet ring network disappears, Restore the status of an AC member or PW member that was updated when a failure occurred.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory. A variety of media that can store program code, such as a disc or a disc.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:将以太环网上的每个环节点端口上建立的接入电路AC成员或者伪线PW成员加入二层虚拟专用网络L2VPN中;在以太环网上出现故障的情况下,确定每个环节点端口对应的AC成员或PW成员的状态;根据确定的每个环节点端口对应的AC成员或PW成员的状态,确定用于保护以太环网的保护切换结果;根据确定的保护切换结果,进行业务流量转发处理。Optionally, in this embodiment, the processor performs, according to the stored program code in the storage medium, adding an access circuit AC member or a pseudowire PW member established on each ring node port of the Ethernet ring network to the second layer virtual In the private network L2VPN, in the case of a failure on the Ethernet ring network, determine the status of the AC member or PW member corresponding to each ring node port; determine the status of the AC member or PW member corresponding to each ring node port. The protection switching result used to protect the Ethernet ring network; and the service traffic forwarding process is performed according to the determined protection switching result.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:在将以太环网上的每个环节点端口上建立的AC成员或者PW成员加入L2VPN中之前,还包括:确定以太环网上的每个环节点端口建立成员的成员类型,其中,成员类型包括:AC成员或者PW成员;在环节点端口属于L2VPN的情况下,在环节点端口上建立AC成员;在环节点端口跨越多协议标签交换MPLS网络的情况下,在环节点端口上建立PW成员。Optionally, in this embodiment, the processor performs, according to the stored program code in the storage medium, before the AC member or the PW member established on each ring node port of the Ethernet ring network is added to the L2VPN, the method further includes: Determine the member type of each ring node port on the Ethernet ring network. The member type includes: AC member or PW member. In the case that the ring node port belongs to L2VPN, the AC member is established on the ring node port. In the case where a port spans a multi-protocol label switching MPLS network, a PW member is established on the ring node port.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:在以太环网上出现故障的情况下,确定每个环节点端口对应的AC成员或PW成员的状态包括:判断每个环节点端口对应的AC成员或PW成员是否存在业务流量;在判断结果为AC成员或PW成员不存在业务流量的情况下,确 定AC成员或PW成员的状态正常;在判断结果为AC成员或PW成员存在业务流量的情况下,判断AC成员或PW成员是否发生故障;在判断结果为AC成员或PW成员发生故障的情况下,确定AC成员或PW成员的状态异常;在判断结果为AC成员或PW成员未发生故障的情况下,确定AC成员或PW成员的状态正常。Optionally, in this embodiment, the processor performs, according to the stored program code in the storage medium, in the case that a fault occurs on the Ethernet ring network, determining the status of the AC member or the PW member corresponding to each ring node port includes: If the AC member or the PW member of the ring member does not have any service traffic, it is determined that the AC member or the PW member does not have service traffic. The status of the AC member or the PW member is normal. If the AC member or the PW member is faulty, the AC member or the PW member is faulty. The status of the AC member or the PW member is abnormal. If the AC member or the PW member is faulty, the status of the AC member or PW member is normal.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:在根据确定的每个环节点端口对应的AC成员或PW成员的状态,确定用于保护以太环网的保护切换结果之后,还包括:将保护切换结果通知以太环网中除环节点之外的其它环节点,用于其它环节点设置对应的AC成员或PW成员的状态。Optionally, in this embodiment, the processor performs, according to the stored program code in the storage medium, determining, according to the determined status of the AC member or the PW member corresponding to each ring node port, for protecting the Ethernet ring network. After the protection of the handover result, the method further includes: notifying the ringback node of the Ethernet ring network other than the ring node, and setting the state of the corresponding AC member or PW member of the other ring node.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:在根据确定的保护切换结果,进行业务流量转发处理之后,还包括:在确定以太环网上的故障消失的情况下,对发生故障时更新过的AC成员或PW成员的状态进行恢复。Optionally, in this embodiment, the processor performs, according to the stored program code in the storage medium, after performing the service traffic forwarding process according to the determined protection switching result, further comprising: determining that the fault on the Ethernet ring network disappears. In this case, the status of the AC member or PW member that was updated at the time of the failure is restored.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
本发明实施例还公开了一种计算机程序,包括程序指令,当该程序指令被终端执行时,使得该终端可执行上述任意的检测无线网络接入安全的方法。The embodiment of the invention further discloses a computer program, comprising program instructions, when the program instruction is executed by the terminal, so that the terminal can perform any of the above methods for detecting wireless network access security.
本发明实施例还公开了一种载有所述的计算机程序的载体。The embodiment of the invention also discloses a carrier carrying the computer program.
本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或者等同替换,而不脱离本发明技术方案的精神和范围,均应涵盖在本发明的权利要求范围当中。It should be understood by those skilled in the art that the present invention may be modified or equivalently substituted without departing from the spirit and scope of the invention.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些组件或所有组件可以被实施 为由处理器,如数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM,ROM,EEPROM、闪存或其他存储器技术、CD-ROM,数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。Those of ordinary skill in the art will appreciate that all or some of the steps, systems, and functional blocks/units of the methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be composed of several physical The components work together. Some or all components can be implemented Software executed by a processor, such as a digital signal processor or microprocessor, is either implemented as hardware or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer readable medium, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As is well known to those of ordinary skill in the art, the term computer storage medium includes volatile and nonvolatile, implemented in any method or technology for storing information, such as computer readable instructions, data structures, program modules or other data. Sex, removable and non-removable media. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridge, magnetic tape, magnetic disk storage or other magnetic storage device, or may Any other medium used to store the desired information and that can be accessed by the computer. Moreover, it is well known to those skilled in the art that communication media typically includes computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and can include any information delivery media. .
工业实用性Industrial applicability
通过上述技术方案,以太环网上的每个环节点端口上建立的AC成员或者PW成员加入L2VPN中,根据每个环节点端口对应的AC成员或PW成员的状态确定保护切换结果,进行业务流量转发,由于使用的是环节点端口上建立的AC成员或者PW成员的状态进行保护切换以及业务流量转发处理,因此,使得以太环网保护协议能够适用于L2VPN场景,达到有效进行以太环网保护切换,保护L2VPN业务流量的效果。因此本申请具有很强的工业实用性。 Through the above technical solution, the AC member or the PW member established on each ring node of the Ethernet ring network is added to the L2VPN, and 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 traffic is forwarded. The Ethernet ring protection protocol can be applied to the L2VPN scenario to effectively perform Ethernet ring protection switching, because the state of the AC member or the PW member established on the ring node is used for protection switching and service traffic forwarding. The effect of protecting L2VPN service traffic. Therefore, the application has strong industrial applicability.

Claims (14)

  1. 一种业务处理方法,包括:A business processing method comprising:
    将以太环网上的每个环节点端口上建立的接入电路(AC)成员或者伪线(PW)成员加入(S502)二层虚拟专用网络(L2VPN)中;Adding an access circuit (AC) member or a pseudowire (PW) member established on each ring node port of the Ethernet ring network to (S502) a Layer 2 virtual private network (L2VPN);
    在所述以太环网上出现故障的情况下,确定(S504)每个环节点端口对应的AC成员或PW成员的状态;In a case where a failure occurs on the Ethernet ring network, determining (S504) a state of an AC member or a PW member corresponding to each ring node port;
    根据确定的每个环节点端口对应的AC成员或PW成员的状态,确定(S506)用于保护所述以太环网的保护切换结果;Determining (S506) a protection switching result for protecting the Ethernet ring network according to the determined status of the AC member or the PW member corresponding to each ring node port;
    根据确定的所述保护切换结果,进行(S508)业务流量转发处理。The service traffic forwarding process is performed (S508) according to the determined protection switching result.
  2. 根据权利要求1所述的业务处理方法,其中,在将所述以太环网上的每个环节点端口上建立的所述AC成员或者所述PW成员加入所述L2VPN中的步骤之前,该方法还包括:The service processing method according to claim 1, wherein the method further comprises the step of adding the AC member or the PW member established on each ring node port of the Ethernet ring network to the L2VPN. include:
    确定所述以太环网上的每个环节点端口建立成员的成员类型,其中,所述成员类型包括:AC成员或者PW成员;Determining a member type of each ring node port of the Ethernet ring network, where the member type includes: an AC member or a PW member;
    在一环节点端口属于所述L2VPN的情况下,在所述环节点端口上建立AC成员;In the case that a ring node port belongs to the L2VPN, an AC member is established on the ring node port;
    在一环节点端口跨越多协议标签交换MPLS网络的情况下,在所述环节点端口上建立PW成员。In the case where a ring node port spans a multi-protocol label switching MPLS network, a PW member is established on the ring node port.
  3. 根据权利要求1所述的业务处理方法,其中,在所述以太环网上出现故障的情况下,确定每个环节点端口对应的AC成员或PW成员的状态的步骤包括:The service processing method according to claim 1, wherein, in the case that a failure occurs on the Ethernet ring network, the step of determining the status of the AC member or the PW member corresponding to each ring node port includes:
    判断所述每个环节点端口对应的AC成员或PW成员是否存在业务流量;Determining whether the AC member or the PW member corresponding to each ring node port has service traffic;
    在判断结果为所述AC成员或PW成员不存在业务流量的情况下,确定所述AC成员或PW成员的状态正常;If the result of the determination is that the AC member or the PW member does not have service traffic, determine that the status of the AC member or the PW member is normal.
    在判断结果为所述AC成员或PW成员存在业务流量的情况下,判断所述AC成员或PW成员是否发生故障;在判断结果为所述AC成员或PW成员发生故障的情况下,确定所述AC成员或PW成员的状态异常;在判断结果为所述AC成员或PW成员未发生故障的情况下,确定所述AC成员或PW成员的状态正常。If the result of the determination is that the AC member or the PW member has the service traffic, determine whether the AC member or the PW member is faulty; if the result of the determination is that the AC member or the PW member is faulty, determine the The status of the AC member or the PW member is abnormal. If the result is that the AC member or the PW member is not faulty, the status of the AC member or PW member is normal.
  4. 根据权利要求1中所述的业务处理方法,其中,在所述根据确定的每 个环节点端口对应的AC成员或PW成员的状态,确定用于保护所述以太环网的所述保护切换结果的步骤之后,该方法还包括:A business processing method according to claim 1, wherein said each of said After the step of determining the protection switching result of the Ethernet ring network is determined by the state of the AC member or the PW member corresponding to the ring node port, the method further includes:
    将所述保护切换结果通知所述以太环网中除最先感知到故障的环节点之外的其它环节点,用于所述其它环节点设置对应的AC成员或PW成员的状态。Notifying the ringback network of the ring ring network other than the ring node that first perceived the fault, and setting the state of the corresponding AC member or PW member for the other ring node.
  5. 根据权利要求1至4中任一项所述的业务处理方法,其中,在所述根据确定的所述保护切换结果,进行业务流量转发处理的步骤之后,该方法还包括:The service processing method according to any one of claims 1 to 4, wherein after the step of performing a service traffic forwarding process according to the determined protection switching result, the method further comprises:
    在确定所述以太环网上的故障消失的情况下,对发生故障时更新过的AC成员或PW成员的状态进行恢复。In the case that it is determined that the failure of the Ethernet ring network has disappeared, the state of the AC member or PW member that has been updated at the time of the failure is restored.
  6. 根据权利要求1中所述的业务处理方法,其中,所述根据确定的每个环节点端口对应的AC成员或PW成员的状态,确定用于保护所述以太环网的保护切换结果的步骤包括:The service processing method according to claim 1, wherein the step of determining a protection switching result for protecting the Ethernet ring network according to the determined status of an AC member or a PW member corresponding to each ring node port includes: :
    在以太环网没有故障的情况下,RPL所在的端口的AC或者PW成员的保护切换结果是阻塞,其他端口的AC或者PW成员的保护切换结果是打开;在以太环网出现故障的情况下,故障链路相连的AC或者PW成员的保护切换结果是阻塞,其他端口的AC或者PW成员的保护切换结果是打开。If the Ethernet ring network is faulty, the protection switching result of the AC or PW member of the port where the RPL is located is blocked. The protection switching result of the AC or PW member of the other port is turned on. If the Ethernet ring network fails, The protection switching result of the AC or PW member connected to the faulty link is blocked. The protection switching result of the AC or PW member of other ports is open.
  7. 根据权利要求1中所述的业务处理方法,其中,所述根据确定的所述保护切换结果,进行业务流量转发处理的步骤包括:The service processing method according to claim 1, wherein the step of performing service traffic forwarding processing according to the determined protection switching result comprises:
    如果保护切换结果是打开,则进行业务流量转发;如果保护切换结果是阻塞,则不进行业务流量转发。If the protection switching result is turned on, the service traffic is forwarded; if the protection switching result is blocked, the service traffic is not forwarded.
  8. 一种业务处理装置,包括:加入模块(112)、第一确定模块(114)、第二确定模块(116)和处理模块(118),其中A service processing apparatus includes: a joining module (112), a first determining module (114), a second determining module (116), and a processing module (118), wherein
    所述加入模块(112)设置成:将以太环网上的每个环节点端口上建立的接入电路AC成员或者伪线PW成员加入二层虚拟专用网络L2VPN中;The joining module (112) is configured to: join an access circuit AC member or a pseudowire PW member established on each ring node port of the Ethernet ring network into the layer 2 virtual private network L2VPN;
    所述第一确定模块(114)设置成:在所述以太环网上出现故障的情况下,确定每个环节点端口对应的AC成员或PW成员的状态;The first determining module (114) is configured to: determine a state of an AC member or a PW member corresponding to each ring node port if a fault occurs on the Ethernet ring network;
    所述第二确定模块(116)设置成:根据确定的每个环节点端口对应的AC成员或PW成员的状态,确定用于保护所述以太环网的保护切换结果;The second determining module (116) is configured to: determine, according to the determined status of the AC member or the PW member corresponding to each ring node port, a protection switching result for protecting the Ethernet ring network;
    所述处理模块(118)设置成:根据确定的所述保护切换结果,进行业务 流量转发处理。The processing module (118) is configured to: perform a service according to the determined protection switching result Traffic forwarding processing.
  9. 根据权利要求8所述的业务处理装置,该装置还包括:第三确定模块(122)、第一建立模块(124)和第二建立模块(126),其中The service processing apparatus according to claim 8, further comprising: a third determining module (122), a first establishing module (124), and a second establishing module (126), wherein
    所述第三确定模块(122)设置成:确定所述以太环网上的每个环节点端口建立成员的成员类型,其中,所述成员类型包括:AC成员或者PW成员;The third determining module (122) is configured to: determine a member type of each ring node port establishing member on the Ethernet ring network, where the member type includes: an AC member or a PW member;
    所述第一建立模块(124)设置成:在环节点端口属于所述L2VPN的情况下,在所述环节点端口上建立AC成员;The first establishing module (124) is configured to: establish an AC member on the ring node port if the ring node port belongs to the L2VPN;
    所述第二建立模块(126)设置成:在环节点端口跨越多协议标签交换MPLS网络的情况下,在所述环节点端口上建立PW成员。The second establishing module (126) is configured to establish a PW member on the ring node port if the ring node port spans the multi-protocol label switching MPLS network.
  10. 根据权利要求8所述的业务处理装置,其中,所述第一确定模块(114)包括:第一判断单元(132)、第一确定单元(134)、第二判断单元(136)、第二确定单元(138)和第三确定单元(1310),其中The service processing apparatus according to claim 8, wherein the first determining module (114) comprises: a first determining unit (132), a first determining unit (134), a second determining unit (136), and a second a determining unit (138) and a third determining unit (1310), wherein
    所述第一判断单元(132)设置成:判断所述每个环节点端口对应的AC成员或PW成员是否存在业务流量;The first determining unit (132) is configured to: determine whether the AC member or the PW member corresponding to each ring node port has service traffic;
    所述第一确定单元(134)设置成:在所述第一判断单元(132)的判断结果为所述AC成员或PW成员不存在业务流量的情况下,确定所述AC成员或PW成员的状态正常;The first determining unit (134) is configured to: determine, in the case that the first judging unit (132) determines that the AC member or the PW member does not have service traffic, determine the AC member or the PW member. The state is normal;
    所述第二判断单元(136)设置成:在所述第一判断单元(132)的判断结果为所述AC成员或PW成员存在业务流量的情况下,判断所述AC成员或PW成员是否发生故障;The second determining unit (136) is configured to determine whether the AC member or the PW member is generated if the result of the first determining unit (132) is that the AC member or the PW member has service traffic. malfunction;
    所述第二确定单元(138)设置成:在所述第二判断单元(136)的判断结果为所述AC成员或PW成员发生故障的情况下,确定所述AC成员或PW成员的状态异常;The second determining unit (138) is configured to determine that the status of the AC member or PW member is abnormal if the result of the second determining unit (136) is that the AC member or the PW member is faulty. ;
    所述第三确定单元(1310)设置成:在所述第二判断单元(136)的判断结果为所述AC成员或PW成员未发生故障的情况下,确定所述AC成员或PW成员的状态正常。The third determining unit (1310) is configured to determine the status of the AC member or the PW member if the result of the second determining unit (136) is that the AC member or the PW member has not failed. normal.
  11. 根据权利要求8中所述的业务处理装置,该装置还包括通知模块(142),其中A service processing apparatus according to claim 8, further comprising a notification module (142), wherein
    所述通知模块(142)设置成:将所述保护切换结果通知所述以太环网中除最先感知到故障的环节点之外的其它环节点,用于所述其它环节点设置对 应的AC成员或PW成员的状态。The notification module (142) is configured to: notify the protection ring switching result to other ring nodes in the Ethernet ring network except the ring node that first perceives the fault, and use the other ring node to set the pair The status of the AC member or PW member.
  12. 根据权利要求8至11中任一项所述的装置,该装置还包括恢复模块(152),其中Apparatus according to any one of claims 8 to 11, further comprising a recovery module (152), wherein
    所述恢复模块(152)设置成:在确定所述以太环网上的故障消失的情况下,对发生故障时更新过的AC成员或PW成员的状态进行恢复。The recovery module (152) is configured to recover the state of the AC member or PW member that was updated when the failure occurred, in the case that it is determined that the failure on the Ethernet ring network has disappeared.
  13. 根据权利要求8中所述的业务处理装置,其中,所述第二确定模块(116)设置成按照如下方式根据确定的每个环节点端口对应的AC成员或PW成员的状态,确定用于保护所述以太环网的保护切换结果:The service processing apparatus according to claim 8, wherein the second determining module (116) is configured to determine, according to the determined status of the AC member or the PW member corresponding to each ring node port, for protection according to the following manner. The protection ring switching result of the Ethernet ring network:
    在以太环网没有故障的情况下,RPL所在的端口的AC或者PW成员的保护切换结果是阻塞,其他端口的AC或者PW成员的保护切换结果是打开;在以太环网出现故障的情况下,故障链路相连的AC或者PW成员的保护切换结果是阻塞,其他端口的AC或者PW成员的保护切换结果是打开。If the Ethernet ring network is faulty, the protection switching result of the AC or PW member of the port where the RPL is located is blocked. The protection switching result of the AC or PW member of the other port is turned on. If the Ethernet ring network fails, The protection switching result of the AC or PW member connected to the faulty link is blocked. The protection switching result of the AC or PW member of other ports is open.
  14. 根据权利要求8中所述的业务处理装置,其中,所述处理模块(118)设置成按照如下方式根据确定的所述保护切换结果,进行业务流量转发处理:The service processing apparatus according to claim 8, wherein the processing module (118) is configured to perform a traffic forwarding process according to the determined protection switching result according to the following manner:
    如果保护切换结果是打开,则进行业务流量转发;如果保护切换结果是阻塞,则不进行业务流量转发。 If the protection switching result is turned on, the service traffic is forwarded; if the protection switching result is blocked, the service traffic is not forwarded.
PCT/CN2017/089585 2016-07-08 2017-06-22 Service processing method and device WO2018006711A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
WO2018006711A1 true WO2018006711A1 (en) 2018-01-11

Family

ID=60921575

Family Applications (1)

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

Country Status (2)

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

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101316212A (en) * 2008-07-07 2008-12-03 华为技术有限公司 Looped network failure processing method, looped network and operator backbone equipment
CN101778031A (en) * 2009-12-31 2010-07-14 中兴通讯股份有限公司 Ethernet and multicast stream processing method based on VPLS
CN102014035A (en) * 2009-09-04 2011-04-13 中兴通讯股份有限公司 Networking method and device based on Ethernet ring
WO2012058300A1 (en) * 2010-10-28 2012-05-03 Cisco Technology, Inc. Dual-homing for ethernet line services
US20140254395A1 (en) * 2013-03-07 2014-09-11 Centurylink Intellectual Property Llc Remote Monitoring a Layer 2 Virtual Private Network
CN104956628A (en) * 2013-01-29 2015-09-30 思科技术公司 Using Ethernet ring protection switching with computer networks

Family Cites Families (6)

* 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
CN101719834B (en) * 2009-06-02 2012-06-13 中兴通讯股份有限公司 Method and system for realizing virtual private multicast service protection
CN102035665B (en) * 2009-09-25 2014-12-10 中兴通讯股份有限公司 Protection method and device for point-to-multipoint pseudowires (P2MP PW)
WO2012106930A1 (en) * 2011-07-26 2012-08-16 华为技术有限公司 Method and apparatus for generating virtual private network (vpn) forwarding entry
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 (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN101778031A (en) * 2009-12-31 2010-07-14 中兴通讯股份有限公司 Ethernet and multicast stream processing method based on VPLS
WO2012058300A1 (en) * 2010-10-28 2012-05-03 Cisco Technology, Inc. Dual-homing for ethernet line services
CN104956628A (en) * 2013-01-29 2015-09-30 思科技术公司 Using Ethernet ring protection switching with computer networks
US20140254395A1 (en) * 2013-03-07 2014-09-11 Centurylink Intellectual Property Llc Remote Monitoring a Layer 2 Virtual Private Network

Also Published As

Publication number Publication date
CN107592252B (en) 2021-06-29
CN107592252A (en) 2018-01-16

Similar Documents

Publication Publication Date Title
US8208369B2 (en) Ethernet ring system and a master node and an initialization method thereof
US8102760B2 (en) Method for reconvergence after failure in a dual-homing network environment
US7911938B2 (en) System and method for preventing loops in the presence of control plane failures
US8724627B2 (en) Single-homing and active-active multi-homing in a virtual private LAN service
CN101999224B (en) Redundant Ethernet automatic protection switching access to virtual private lan services
US9001644B2 (en) Ethernet virtual private network system for providing fast protection for access rings
US9628409B1 (en) Designated forwarder election for multi-homed data center interconnect using multicast routing protocol state information
US11611509B2 (en) Communication method, communications device, and communications system
EP3493489B1 (en) Failover between active pseudo wire and standby pseudo wire
CN110730125B (en) Message forwarding method and device, dual-active system and communication equipment
CN102088415B (en) Method and device for MAC (media access control) address withdrawal
CN111092813B (en) Equivalent multipath ECMP switching method, network equipment and system
EP3029883B1 (en) Network protection method and apparatus, next-ring node, and system
US20080285442A1 (en) Vpls Remote Failure Indication
CN103607317A (en) Two-layer loop detection method, two-layer loop detection device and communication system
KR20150124369A (en) Relay system and switch apparatus
CN113615132B (en) Fast flood Hong Tapu protection
US8670299B1 (en) Enhanced service status detection and fault isolation within layer two networks
EP3566401B1 (en) Detecting and mitigating loops
CN109347717B (en) VXLAN tunnel switching method and device
CN109246005B (en) Message forwarding method and device
WO2018006711A1 (en) Service processing method and device
WO2018077124A1 (en) Method, device, and system for service alarm processing
CN104601381A (en) Method and equipment for preventing flow interruption
WO2012123954A1 (en) A protection switching method and system provision by a distributed protection group

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17823523

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17823523

Country of ref document: EP

Kind code of ref document: A1