[go: up one dir, main page]

WO2013016983A1 - Pseudo wire redundancy negotiation mode detection method, system and device thereof - Google Patents

Pseudo wire redundancy negotiation mode detection method, system and device thereof Download PDF

Info

Publication number
WO2013016983A1
WO2013016983A1 PCT/CN2012/077205 CN2012077205W WO2013016983A1 WO 2013016983 A1 WO2013016983 A1 WO 2013016983A1 CN 2012077205 W CN2012077205 W CN 2012077205W WO 2013016983 A1 WO2013016983 A1 WO 2013016983A1
Authority
WO
WIPO (PCT)
Prior art keywords
redundancy
edge device
negotiation mode
mode
negotiation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2012/077205
Other languages
French (fr)
Chinese (zh)
Inventor
朱春
胡侃
杨美琴
鄂龙慧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Publication of WO2013016983A1 publication Critical patent/WO2013016983A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and system for detecting a Pseudo Wire (PW) redundancy negotiation mode.
  • PW Pseudo Wire
  • IP network itself is very scalable, scalable, and compatible.
  • upgrade, extension, and interoperability of traditional communication networks are relatively poor. Due to the mode of transmission and the type of services, the new network sharing is also poor. Interoperability management.
  • End-to-end PWE3 Pseudo-Wire Emulation Edge-to-Edge
  • Provider Edge
  • Layer 2 packet services such as Ethernet, Frame Relay, and Asynchronous Transfer Mode.
  • the original access method can be integrated with the existing IP backbone network, thereby reducing network duplication and saving operating costs.
  • the IP backbone network can be connected to a variety of access networks to transform and enhance the original data network. Therefore, the above advantages of PWE3 technology have made it more and more widely used in various needs and networking of operators.
  • FIG. 1 is a network structure diagram of an end-to-end pseudowire simulation according to the related art.
  • a typical network reference model for end-to-end pseudowire simulation shows that the user edge device (CE1) of a user's local area network 1 accesses the carrier's MPLS through the access link (AC1). (Multi-Protocol Label Switching)
  • the edge device (PE1) of the backbone network; the user edge device (CE2) of the user's local area network 2 accesses the edge device of the MPLS backbone network of the operator through the access link (AC2) (PE2)
  • the operator deploys a pseudowire for this service between PE1 and PE2.
  • a pseudowire is a collection of a pair of unidirectional Label Switch Paths (LSPs) in opposite directions.
  • LSPs Label Switch Paths
  • the packet in the local area network 1 of the user which is sent from the access link AC1, is encapsulated into a protocol data unit (PDU) of the pseudowire, and is transparently transmitted to the peer PE2 device through the pseudowire.
  • PDU protocol data unit
  • PE2 When the packet arrives at the PE2 device, PE2 is restored to the local form after being processed locally and forwarded to the local area of the user through AC2. Go to the network of network 2.
  • the packet forwarding from CE2 to CE1 is similar to the above process.
  • the traditional PW service protection is based on the PSN tunnel layer, that is, the redundancy protection technology is deployed on the PW outer tunnel (for example, LDP FRR technology or RSVP-TE FRR technology). But this is not enough for the protection of PW-based end-to-end services. For example, for the failure of the access side of the pseudowire service, the failure of the PE node, etc., the redundancy protection measures of the PSN layer will be powerless. Therefore, the industry has proposed a redundancy protection mechanism based on the pseudowire service layer.
  • the draft draft-ietf-pwe3-redundancy-bit-04 summarizes the scenario of deploying PW redundancy protection services and defines two PW redundancy states, Active state and Standby state.
  • the PE device selects the PW whose current state is the active state to forward the user data.
  • the PW in the standby state protects the PW in the active state and does not forward the user data.
  • the active PW cannot forward user data for some reason (such as the access side failure or the PSN side failure)
  • the PW in the Standby state will replace the failed Active PW to forward the user packet, and the PW of the Standby state.
  • the redundant state is switched to the active state.
  • the redundancy status of the PW can be determined by the local configuration, and can be determined by the state of the access side or by other policies.
  • the PW redundancy status of the PEs at both ends of the PW may be inconsistent. Therefore, the PEs at both ends of the PW need to negotiate the PW redundancy status.
  • the result of the negotiation is the final redundancy status of the PW.
  • the draft defines a status bit that indicates the current PW redundancy status, that is, a referential forwarding (Preferential Forwarding) to advertise and negotiate PW redundancy (including Active and Standby states).
  • the negotiation mode of two PW redundant status bits is defined in the draft, namely Independent Mode and Master/Slave Mode.
  • the independent mode means that the two PE devices of the pseudowire negotiate the PW redundancy state of the pseudowire according to the local PW redundancy state and the PW redundancy state of the remote advertisement.
  • the principle of negotiation is equivalent to the redundancy of the two ends.
  • An "AND" operation of the remaining state that is, when only the PW redundancy states at both ends are in the Active state, the final negotiation result is Active, and the negotiation result in all other cases is the Standby state; wherein two of the pseudowires in the master-slave mode
  • the role of the terminal is not equal, that is, one end is the active end, and one end is the slave end. To receive and comply with the decision results of the initiative. Different negotiation modes are applicable to different PW redundancy scenarios.
  • the PW redundancy negotiation mode is configured independently on the two PE devices that establish the pseudowire, rather than negotiated. Therefore, the configuration requires the legality and validity of the configuration of the PW redundancy negotiation mode on the two PEs.
  • the two PEs of the PW are generally located in different areas, and because of subsequent adjustments to the network deployment, the legality and effectiveness of the PW redundancy negotiation mode configuration are very high. Hard to guarantee.
  • both ends of the PW are configured as the active end of the master-slave mode.
  • the two PEs of the PW will unilaterally determine the final redundancy state of the PW by using the local policy, which may result in inconsistent negotiation results of the redundancy status of the PW on the two PEs.
  • the PE device at one end of the PW is configured in a master-slave mode (active or slave), and the PE device at the other end is configured in an independent mode, so that one end of the PW is locally redundant.
  • the remaining state either takes the remote redundancy state as the final redundancy state of the PW, and the other end uses the negotiation result of the redundancy state of the PEs at both ends as the final redundancy state of the PW.
  • the result of the negotiation of the redundancy status of the PW on the two PEs is also inconsistent.
  • the inconsistency of this negotiation also affects the renegotiation and determination of the PW redundancy state when the redundancy state changes on the PE device at the subsequent end.
  • the two PEs of the PW redundancy negotiation mode are difficult to guarantee because the two PEs of the PW redundancy negotiation mode are generally assigned to different areas. The problem, there is currently no effective solution.
  • the main purpose of the embodiments of the present invention is to provide a method and system for detecting a PW redundancy negotiation mode, so as to solve the problem that the two PE devices of the PW are generally located in different regions, and are subsequently deployed to the network. Adjustments and other factors make the legality and validity of the PW redundancy negotiation mode configuration difficult to guarantee.
  • a method for detecting a PW redundancy negotiation mode including:
  • the first edge device and the second edge device respectively send a local PW redundancy negotiation mode to the peer end;
  • the first edge device and the second edge device respectively check the received PW redundancy negotiation mode to obtain a verification result.
  • the step of the first edge device and the second edge device respectively sending the local PW redundancy negotiation mode to the peer end includes:
  • the second edge device sends the second PW redundancy negotiation mode to the first edge device by using an end-to-end PW emulation signaling message.
  • the step of the first edge device and the second edge device respectively verifying the received PW redundancy negotiation mode to obtain the verification result includes:
  • the first edge device parses the received second PW redundancy negotiation mode to obtain second PW redundancy negotiation mode information
  • the step of the first edge device and the second edge device respectively verifying the received PW redundancy negotiation mode to obtain the verification result includes:
  • the second edge device parses the received first PW redundancy negotiation mode to obtain first PW redundancy negotiation mode information
  • the first PW redundancy negotiation mode includes: an independent mode or a master-slave mode, where the valid check result includes:
  • the first PW redundancy negotiation mode and the second PW redundancy negotiation mode are both the independent modes; or
  • the first edge device is an active end of the master-slave mode, and the second edge device is a slave end of the master-slave mode; or
  • the second edge device is an active end of the master-slave mode
  • the first edge device is a slave end of the master-slave mode
  • the method further includes:
  • the verification result is displayed, wherein when the verification result is an invalid verification result, the system issues a prompt message.
  • the embodiment of the present invention further provides a detection system for a pseudowire PW redundancy negotiation mode, which includes: a configuration unit, configured to: configure a first PW redundancy negotiation mode of a first edge device on a PW, and configure a PW on the PW a second PW redundancy negotiation mode of the second edge device;
  • a sending unit configured to: send a local PW redundancy negotiation mode of the first edge device and the second edge device to respective peer ends;
  • a verification unit configured to: respectively check the PW redundancy negotiation mode received by the first edge device and the second edge device to obtain a verification result.
  • the sending unit includes:
  • a first sending module configured to: send the first PW redundancy negotiation mode from the first edge device to the second edge device by using an end-to-end PW emulation signaling message;
  • a second sending module configured to: send the second PW redundancy negotiation mode from the second edge device to the first edge device by using an end-to-end PW emulation signaling message.
  • the verification unit includes:
  • a first parsing module configured to: parse the second PW redundancy negotiation mode received by the first edge device to obtain second PW redundancy negotiation mode information;
  • a first matching module configured to: perform matching check on the first PW redundancy negotiation mode information in the first edge device with the parsed second PW redundancy negotiation mode information, to obtain valid Check the result.
  • the verification unit includes: a second parsing module, configured to: parse the first PW redundancy negotiation mode received by the second edge device, to obtain first PW redundancy negotiation mode information;
  • a second matching module configured to: perform matching check on the second PW redundancy negotiation mode information in the second edge device with the parsed first PW redundancy negotiation mode information, to obtain valid Check the result.
  • system further includes:
  • a display unit configured to: display the verification result, wherein when the verification result is an invalid verification result, the prompt information is sent.
  • the embodiment of the present invention further provides an edge device, which is located at one end of the pseudowire PW, and the edge device includes:
  • a configuration module configured to: configure a first PW redundancy negotiation mode of the edge device; the sending module is configured to: send the first PW redundancy negotiation mode to a peer edge device located at another end of the PW ;
  • a receiving module configured to: receive a second PW redundancy negotiation mode sent by the peer edge device;
  • a verification module configured to: perform verification on the received second PW redundancy negotiation mode to obtain a verification result.
  • the sending module is configured to send the first PW redundancy negotiation mode to the peer edge device by using an end-to-end PW emulation signaling packet.
  • the verification module includes:
  • a parsing submodule configured to: parse the received second PW redundancy negotiation mode to obtain second pw redundancy negotiation mode information;
  • the matching sub-module is configured to: perform matching verification on the first PW redundancy negotiation mode information of the edge device and the second PW redundancy negotiation mode information that is parsed to obtain a valid verification result.
  • the edge device further includes:
  • a display module configured to: display the verification result, where the verification result is none When the result of the verification is valid, a message is sent.
  • the first PW redundancy negotiation mode includes: an independent mode or a master-slave mode, where the valid check result includes:
  • the first PW redundancy negotiation mode and the second PW redundancy negotiation mode are both the independent modes; or
  • the first edge device is an active end of the master-slave mode, and the second edge device is a slave end of the master-slave mode;
  • the second edge device is an active end of the master-slave mode
  • the first edge device is a slave end of the master-slave mode
  • the first pseudowire PW redundancy negotiation mode of the first edge device on the pseudowire PW is configured, and the second pseudowire PW redundancy negotiation mode of the second edge device on the pseudowire PW is configured;
  • the device and the second edge device respectively send the local pseudowire PW redundancy negotiation mode to the peer end;
  • the first edge device and the second edge device respectively check the received pseudowire PW redundancy negotiation mode to obtain the calibration
  • the result of the test is that the two PE devices in the prior art are generally divided into different regions, and the legality and effectiveness of the PW redundancy negotiation mode configuration are very large due to subsequent adjustments to the network deployment. It is difficult to guarantee the problem, and thus achieve the effect of effectively ensuring the legitimacy and effectiveness of the PW redundancy negotiation mode.
  • FIG. 1 is a network structure diagram of an end-to-end pseudowire simulation according to the related art
  • FIG. 2 is a structural diagram of a detection system of a PW redundancy negotiation mode according to an embodiment of the present invention
  • FIG. 3 is a structural diagram of an edge device according to an embodiment of the present invention
  • FIG. 4 is a flowchart of a method for detecting a PW redundancy negotiation mode according to an embodiment of the present invention
  • FIG. 5 is a detailed flowchart of a method for detecting a PW redundancy negotiation mode according to an embodiment of the present invention
  • 6 is a schematic diagram of coding of a PW redundancy negotiation mode TLV according to an embodiment of the present invention
  • FIG. 7 is a schematic diagram of verification of a PW redundancy negotiation mode according to an embodiment of the present invention.
  • the embodiment of the invention provides a method and a system for detecting a PW redundancy negotiation mode.
  • FIG. 2 is a structural diagram of a detection system of a PW redundancy negotiation mode according to an embodiment of the present invention. As shown in FIG. 2, the system includes: a configuration unit 10, a transmitting unit 30, and a verification unit 50.
  • the configuration unit 10 is configured to configure a first PW redundancy negotiation mode of the first edge device on the PW, and configure a second PW redundancy negotiation mode of the second edge device on the PW.
  • the sending unit 30 is configured to use the first edge.
  • the device and the second edge device respectively send the local PW redundancy negotiation mode to the peer end;
  • the verification unit 50 is configured to perform verification on the received PW redundancy negotiation mode by the first edge device and the second edge device, respectively. To get the verification result.
  • the foregoing embodiment of the present application is configured to detect a legality detection system in a PW redundancy negotiation mode, and is configured to detect an illegal configuration of a PE device redundancy negotiation mode at both ends of a PW in a PW redundancy scenario, so as to discover PW redundancy as early as possible.
  • the problems existing in the networking are corrected in time to achieve the effect of effectively ensuring the legitimacy and effectiveness of the PW redundancy negotiation mode.
  • the configuration unit 10 implements a pseudowire PW redundancy negotiation mode configuration on the edge device PEs of the PW, and implements the local PW by using the PEs at both ends through the PWE3 signaling.
  • the redundancy negotiation mode is advertised to the peer PE, and then the check unit 50 is used to verify the PW redundancy negotiation mode and the local PW redundancy negotiation mode advertised by the peer PE.
  • the configuration of the PW redundancy negotiation mode may be configured on the command line interface of the PE device, or may be configured on the network management system, or may be inherited from the default attributes of the PE device.
  • the PW redundancy negotiation mode involved in the embodiment of the present invention may include an independent mode, an active mode in the master-slave mode, and a slave mode in the master-slave mode.
  • the sending unit 30 in the foregoing embodiment of the present application may include: a first sending module, configured to The edge device sends the first PW redundancy negotiation mode to the second edge device by using the end-to-end PW emulation signaling packet; the second sending module is configured to use the end-to-end PW emulation signaling packet by the second edge device.
  • the two PW redundancy negotiation mode is sent to the first edge device.
  • the PWE3 signaling in the foregoing embodiment is specifically a PW mapping message that is advertised to the peer end when the PW is established.
  • the local PW redundancy negotiation mode is carried in the interface parameter TLV (PW Interface Parameters TLV) of the extended PW mapping message.
  • TLV PW Interface Parameters TLV
  • the coding of the specific PW redundancy negotiation mode in the signaling can be in various specific forms. This patent gives a suggested coding format.
  • the encoding of the interface parameter TLV is as follows (Parameter ID: OxOD, Length: 4, Description: PW Redundancy Negotiation Mode), and the encoding of the redundancy negotiation mode is as follows (Independent Mode: 0x01; Master/Slave Mode (Master Role): 0x02; Master /Slave Mode(Slave Role) :0x03 ) .
  • the verification unit 50 in the above embodiment of the present application may include: a first parsing module, configured to parse the received second pseudowire PW redundancy negotiation mode by the first edge device, to obtain a second pseudowire PW redundancy negotiation mode.
  • the first matching module is configured to perform matching check on the first pseudowire PW redundancy negotiation mode information in the first edge device and the parsed second pseudowire PW redundancy negotiation mode information to obtain valid information. Check the result.
  • the verification unit 50 may further include: a second parsing module, configured to parse the received first pseudowire PW redundancy negotiation mode by the second edge device, to obtain first pseudowire PW redundancy negotiation mode information; a second matching module, configured to perform matching check between the second pseudowire PW redundancy negotiation mode information in the second edge device and the parsed first pseudowire PW redundancy negotiation mode information, to obtain a valid checksum result.
  • a second parsing module configured to parse the received first pseudowire PW redundancy negotiation mode by the second edge device, to obtain first pseudowire PW redundancy negotiation mode information
  • a second matching module configured to perform matching check between the second pseudowire PW redundancy negotiation mode information in the second edge device and the parsed first pseudowire PW redundancy negotiation mode information, to obtain a valid checksum result.
  • the check of the PW redundancy negotiation mode and the local PW redundancy negotiation mode is to verify the validity of the PW redundancy configuration mode at both ends.
  • the PEs at both ends of the PW are In the PW redundancy negotiation mode, only the two ends are in independent mode, or one end is the active end of the master-slave mode, and the other end is the slave end of the master-slave mode.
  • the configuration combination of the two PW redundancy negotiation modes is effective.
  • the configuration combination of other PW redundancy negotiation modes should be considered incorrect.
  • the system may further include: a display unit 70, configured to display a verification result, where the system issues a prompt message when the verification result is an invalid verification result.
  • the result of the verification may be given on the command line interface or the network management.
  • the display unit 70 the PW redundancy configuration verification result can be displayed on the command line interface based on the display command per PW, including the local PW redundancy negotiation mode and the remote notification. PW redundancy negotiation mode. It can also be displayed as a separate entry on the U2000. For the configuration of the incorrect redundancy negotiation mode, you can give corresponding alarm prompt information on the command line interface or the NMS. Prompt equipment maintenance personnel to check and modify accordingly.
  • FIG. 3 is a schematic structural diagram of an edge device according to an embodiment of the present invention. As shown in Figure 3, the edge device includes:
  • the configuration module 301 is configured to: configure a first PW redundancy negotiation mode of the edge device; the sending module 302 is configured to: send the first PW redundancy negotiation mode to the peer end located at the other end of the PW Edge device
  • the receiving module 303 is configured to: receive a second PW redundancy negotiation mode sent by the peer edge device;
  • the verification module 304 is configured to: perform verification on the received second PW redundancy negotiation mode to obtain a verification result.
  • the sending module is configured to send the first PW redundancy negotiation mode to the peer edge device by using an end-to-end PW emulation signaling message.
  • the verification module may include:
  • a parsing sub-module 3041 configured to: parse the received second PW redundancy negotiation mode to obtain second PW redundancy negotiation mode information;
  • the matching sub-module 3042 is configured to: perform matching verification on the first PW redundancy negotiation mode information of the edge device and the parsed second PW redundancy negotiation mode information to obtain a valid check result.
  • the edge device may further include:
  • a display module 305 configured to: display the verification result, where the verification result is When the result of the invalid check is issued, a message is sent.
  • the PW redundancy negotiation mode configuration information can be carried to the peer end through PWE3 signaling in the process of the PW redundancy negotiation mode.
  • the validity check of the configuration of the PW redundancy negotiation mode is completed before the negotiation of the remaining state. Therefore, the incorrect configuration of the PW redundancy negotiation mode on the two PEs that establish the PW can be discovered as soon as possible, prompting the device maintenance personnel to modify it in time.
  • FIG. 4 is a flowchart of a method for detecting a PW redundancy negotiation mode according to an embodiment of the present invention
  • FIG. 5 is a detailed flowchart of a method for detecting a PW redundancy negotiation mode according to an embodiment of the present invention
  • FIG. 6 is a flowchart according to an embodiment of the present invention. Schematic diagram of the coding of the PW redundancy negotiation mode TLV
  • FIG. 7 is a schematic diagram of the verification of the PW redundancy negotiation mode according to an embodiment of the present invention.
  • the method for detecting the PW redundancy negotiation mode includes the following steps:
  • step S102 the first PW redundancy negotiation mode of the first edge device on the PW is configured by the configuration unit 10 shown in FIG. 2, and the second pseudowire PW redundancy negotiation mode of the second edge device on the PW is configured.
  • Step S104 The first edge device and the second edge device respectively send the local PW redundancy negotiation mode to the peer end by using the sending unit 30 in FIG. 2 .
  • Step S106 The first edge device and the second edge device respectively perform verification on the received PW redundancy negotiation mode by using the verification unit 50 in FIG. 2 to obtain a verification result.
  • the foregoing method for detecting the validity of the PW redundancy negotiation mode is implemented in the PW redundancy scenario, and the configuration of the redundancy negotiation mode of the PEs at both ends of the PW is invalid.
  • the problem in order to correct in time, thus achieving the effect of effectively ensuring the legitimacy and effectiveness of the PW redundancy negotiation mode.
  • the method for detecting the validity of the PW redundancy negotiation mode configuration is to perform the PW redundancy negotiation mode configuration on the PEs at both ends of the pseudowire, and implement the PEs at both ends by using the sending singleton.
  • the local PW redundancy negotiation mode is respectively advertised to the peer PE, and then the check unit 50 is used to verify the PW redundancy negotiation mode and the local PW redundancy negotiation mode notified by the peer PE.
  • step S104, the first edge device and the second edge device respectively respectively
  • the sending of the PW redundancy negotiation mode to the peer end may include: the first edge device sends the first PW redundancy negotiation mode to the second edge device by using the end-to-end pseudowire emulation signaling packet; and the second edge device passes the end to The PW emulation signaling message of the end sends the second PW redundancy negotiation mode to the first edge device.
  • the first edge device and the second edge device respectively check the received PW redundancy negotiation mode, so as to obtain the verification result, the first edge device parses the received second PW redundancy.
  • the first edge device parses the received second PW redundancy.
  • Negotiating the mode to obtain the second PW redundancy negotiation mode information and performing matching and verifying the first PW redundancy negotiation mode information in the first edge device with the parsed second PW redundancy negotiation mode information to obtain valid Check result.
  • the first edge device and the second edge device respectively check the received PW redundancy negotiation mode to obtain the verification result, which may also include: the second edge device parses the received first PW redundancy.
  • the negotiation mode is configured to obtain the first PW redundancy negotiation mode information, and the second PW redundancy negotiation mode information in the second edge device is matched and verified with the parsed first PW redundancy negotiation mode information to obtain Valid check results.
  • the first PW redundancy negotiation mode in the foregoing embodiments may include: an independent mode and a master-slave mode, where the valid check result includes: the first PW redundancy negotiation mode and the second PW redundancy negotiation mode are independent Mode; or the first edge device is the active end of the master-slave mode, and the second edge device is the slave end of the master-slave mode; or the second edge device is the active end of the master-slave mode, and the first edge device is the master-slave mode The slave of the pattern.
  • the method further includes: displaying the verification result, where When the verification result is invalid verification result, the system issues a prompt message.
  • the configuration of the related parameters of the pseudowire is first performed on the first edge device PE1, including the configuration of the local PW redundancy negotiation mode.
  • the configuration of the redundancy negotiation mode can be performed on the command line interface, or on the network management system, or inherit the default configuration of the system.
  • the PWE3 signaling is initiated, and the information about the PW on the PE1 is advertised to the PE2 device through the PW mapping message, where the local redundancy negotiation mode information of the PE1 is encoded in the PW mapping message.
  • Interface Parameter Tlv The encoding format is shown in Figure 5. After receiving the mapping message advertised by PE1, ⁇ 2 parses and saves the PW redundancy negotiation mode information of PE1.
  • PE2 Configure the PW parameters on PE2, including the configuration of the local PW redundancy negotiation mode.
  • PE2 checks the validity of the PW redundancy negotiation mode advertised by the previously received PE1 with the locally configured redundancy negotiation mode.
  • the verification strategy is shown in Figure 6. That is, the PW redundancy negotiation mode configuration of the PEs at both ends of the PW is only in the independent mode, or the active end of the master-slave mode and the slave end of the master-slave mode, and the configuration of the two PW redundancy negotiation modes. The combination is valid, and the configuration combinations of other PW redundancy negotiation modes should be considered incorrect.
  • PE2 carries the PW redundancy negotiation mode information of the local configuration to PE1 through the PW mapping message sent by PE2 to PE1. After receiving the mapping message advertised by PE2, PE1 will analyze the redundancy negotiation mode information of PE2 and perform the validity check with the locally configured redundancy negotiation mode configuration information according to the verification policy of Figure 6.
  • the present invention implements a method for detecting the legality of PW redundancy negotiation mode configuration in a PW redundancy scenario, and uses the PW redundancy negotiation proposed in this document.
  • the method for detecting the validity of the mode configuration may be configured to carry the local PW redundancy negotiation mode configuration information to the peer end through PWE3 signaling in the process of the signaling process established by the PW, thereby completing the PW redundancy before the PW redundancy state negotiation.
  • the negotiation mode is configured to check the validity of the negotiation mode. Therefore, the incorrect configuration of the PW redundancy negotiation mode on the two PEs that establish the PW can be discovered as soon as possible, prompting the device maintenance personnel to modify it in time.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A pseudo wire (PW) redundancy negotiation mode detection method and system are provided. The method comprises: a first PW redundancy negotiation mode of a first edge device on the PW is configured and a second PW redundancy negotiation mode of a second edge device on the PW is configured meanwhile; the first edge device and the second edge device send the local PW redundancy negotiation modes to each other respectively; the first edge device and the second edge device check the received PW redundancy negotiation modes respectively and obtain check results.

Description

伪线冗余协商模式的检测方法、 系统及装置  Detection method, system and device for pseudowire redundancy negotiation mode

技术领域 Technical field

本发明涉及通信领域,具体而言,尤其涉及一种伪线( Pseudo Wire, PW ) 冗余协商模式的检测方法及系统。  The present invention relates to the field of communications, and in particular, to a method and system for detecting a Pseudo Wire (PW) redundancy negotiation mode.

背景技术 Background technique

随着 IP数据网的发展, IP网络本身的可拓展、 可升级以及兼容互通能力 非常强。 但是传统的通信网络(如 FR网络、 ATM网络) 的升级、 扩展、 互 通的灵活性则相对比较差; 受限于传输的方式和业务的类型, 因此, 新建的 网络共用性也比较差, 不宜于互通管理。 端到端的伪线仿真 (PWE3 , Pseudo-Wire Emulation Edge-to-Edge )技术, 通过在运营商的边缘设备 ( ΡΕ , Provider Edge )之间, 部署 PW, 提供了在分组交换网络上传送用户的以太、 帧中继、 异步传输模式等二层报文的服务。 由于 PWE3技术能够让运营商的 不同服务在同一个网络中进行传输, 因此, 可以将原有的接入方式与现有的 IP骨干网融合在一起, 从而减少了网络的重复建设, 节约运营成本。 同时, 使得 IP骨干网可以连接多样化的接入网络, 实现对原有数据网络的改造及增 强。 因此, PWE3 技术的上述优势使其在运营商的各种需求和组网中得到了 越来越广泛的应用。  With the development of IP data networks, the IP network itself is very scalable, scalable, and compatible. However, the upgrade, extension, and interoperability of traditional communication networks (such as FR networks and ATM networks) are relatively poor. Due to the mode of transmission and the type of services, the new network sharing is also poor. Interoperability management. End-to-end PWE3 (Pseudo-Wire Emulation Edge-to-Edge) technology, which provides PW on the packet switched network by deploying PW between the carrier's edge devices (ΡΕ, Provider Edge) Layer 2 packet services such as Ethernet, Frame Relay, and Asynchronous Transfer Mode. Since PWE3 technology enables different services of operators to be transmitted in the same network, the original access method can be integrated with the existing IP backbone network, thereby reducing network duplication and saving operating costs. . At the same time, the IP backbone network can be connected to a variety of access networks to transform and enhance the original data network. Therefore, the above advantages of PWE3 technology have made it more and more widely used in various needs and networking of operators.

图 1是根据相关现有技术的端到端伪线仿真的网络结构图。 如图 1所示 的一个典型的端到端伪线仿真的网络参考模型可知, 某个用户的局域网络 1 的用户边缘设备 ( CE1 )通过接入链路( AC1 )接入到运营商的 MPLS (多协 议标签交换)骨干网络的边缘设备(PE1 ); 该用户的局域网络 2的用户边缘 设备 ( CE2 )通过接入链路(AC2 )接入到运营商的 MPLS 骨干网络的边缘 设备(PE2 ) ; 运营商在 PE1和 PE2之间为该业务部署一条伪线。 伪线是一 对方向相反的单向的标签转发路径( Label Switch Path, LSP ) 的集合。 从接 入链路 AC1上发送的该用户的局域网 1内的报文被封装成伪线的协议数据单 元( PDU ) , 通过该伪线透传给对端的 PE2设备。 当 艮文到达 PE2设备时, PE2经过本地处理后重新恢复为本地形式, 并通过 AC2转发到该用户的局域 网 2的网络中去。 CE2到 CE1的报文转发与上述过程类似。 1 is a network structure diagram of an end-to-end pseudowire simulation according to the related art. As shown in Figure 1, a typical network reference model for end-to-end pseudowire simulation shows that the user edge device (CE1) of a user's local area network 1 accesses the carrier's MPLS through the access link (AC1). (Multi-Protocol Label Switching) The edge device (PE1) of the backbone network; the user edge device (CE2) of the user's local area network 2 accesses the edge device of the MPLS backbone network of the operator through the access link (AC2) (PE2) The operator deploys a pseudowire for this service between PE1 and PE2. A pseudowire is a collection of a pair of unidirectional Label Switch Paths (LSPs) in opposite directions. The packet in the local area network 1 of the user, which is sent from the access link AC1, is encapsulated into a protocol data unit (PDU) of the pseudowire, and is transparently transmitted to the peer PE2 device through the pseudowire. When the packet arrives at the PE2 device, PE2 is restored to the local form after being processed locally and forwarded to the local area of the user through AC2. Go to the network of network 2. The packet forwarding from CE2 to CE1 is similar to the above process.

随着用户对网络可靠性的要求越来越高, 运营商往往需要给 PW业务部 署保护措施, 以保证当某条 PW链路失效时, 能够迅速的找到一条备用 PW 链路来接替之前的 PW链路继续工作。 传统的 PW业务保护是基于 PSN隧道 层面的, 即对 PW外层隧道部署冗余保护技术(如使用 LDP FRR技术或者 RSVP-TE FRR技术)。 但是这对于基于 PW的端到端的业务的保护还是不够 的。 比如: 对于伪线业务接入侧的失效、 对于 PE节点的失效等情况, PSN 层的冗余保护措施将无能为力。 因此, 业界又提出了基于伪线业务层面的冗 余保护机制。  As users' requirements for network reliability become higher and higher, operators often need to deploy protection measures for PW services to ensure that when a PW link fails, an alternate PW link can be quickly found to replace the previous PW. The link continues to work. The traditional PW service protection is based on the PSN tunnel layer, that is, the redundancy protection technology is deployed on the PW outer tunnel (for example, LDP FRR technology or RSVP-TE FRR technology). But this is not enough for the protection of PW-based end-to-end services. For example, for the failure of the access side of the pseudowire service, the failure of the PE node, etc., the redundancy protection measures of the PSN layer will be powerless. Therefore, the industry has proposed a redundancy protection mechanism based on the pseudowire service layer.

《draft-ietf-pwe3-redundancy-bit-04》草案中归纳了部署 PW冗余保护业务 的场景, 并定义了两种 PW冗余状态, Active状态和 Standby状态。 PE设备 选择当前状态为 Active状态的 PW进行用户数据的转发; Standby状态的 PW 用于对 Active状态的 PW进行备份保护,不进行用户数据的转发。当 Active PW 由于某种原因(如接入侧失效、 PSN侧失效)不能进行用户数据转发时, Standby 状态的 PW将取代该失效的 Active PW进行用户报文的转发, 同时该 Standby 状态的 PW的冗余状态切换为 Active状态。 PW的冗余状态可以由本地配置 决定, 可以由接入侧的状态决定, 也可以由其它策略决定。 由于 PW两端 PE 设备的 PW冗余状态的本地决策结果可能不一致, 因此, PW的两端 PE设备 需要对 PW冗余状态的进行协商, 协商的结果作为该 PW的最终冗余状态。 该草案中定义了一个指示当前 PW 冗余状态的状态位, 即优先转发状态位 ( referential forwarding )来进行 PW冗余^ 态(包括 Active和 Standby 态) 的通告和协商。 同时草案中还定义了两种 PW冗余状态位的协商模式, 即独 立模式 ( Independent Mode )和主从模式 ( Master/Slave Mode ) 。 其中独立模 式是指伪线的两个 PE设备分别根据本地的 PW冗余状态和远端通告来的 PW 冗余状态进行伪线的 PW冗余状态的协商, 其协商的原则相当于两端冗余状 态的一个 "与" 操作, 即只有两端的 PW冗余状态都为 Active状态时, 最终 的协商结果才为 Active,其它情况协商结果都为 Standby状态; 其中主从模式 中伪线的两个终端的角色不是对等的, 即一端是主动端, 一端是从动端, 该 要接收和遵从主动端的决策结果。 不同的协商模式适用于不同的 PW冗余场 景, 具体可以参考草案附录 A中归纳的 PW冗余场景。 在该草案中, PW冗 余协商的模式是在建立该伪线的两个 PE设备上独立进行配置的,而不是协商 完成的。 因此,部署的时候在配置上需要人为的保证两个 PE设备上 PW冗余 协商模式配置的合法性和有效性。 而在实际的业务部署中, 由于伪线的两个 PE设备一般都分处不同的地域, 同时由于后续对网络部署的调整等因素, 因 此, PW 冗余协商模式配置的合法性和有效性很难去保证。 例如: 对于某个 PW的冗余协商模式, 该 PW的两端都配置成了主从模式的主动端。 这样, 就会导致,该 PW的两个 PE都会以本地的策略来单方面决定该 PW的最终冗 余状态,从而会导致该 PW的冗余状态在两个 PE上的协商结果不一致的情况; 再例如: 对于某个 PW的冗余协商模式,该 PW的一端 PE设备配置成主从模 式(主动端或者从动端), 另一端 PE设备配置成独立模式, 这样该 PW的一 端以本地冗余状态或者以远端冗余状态作为该 PW的最终冗余状态, 而另一 端却以两端 PE的冗余状态的协商结果作为该 PW的最终冗余状态。同样会导 致该 PW的冗余状态在两个 PE上的协商结果不一致的情况。这种协商的不一 致也会影响到后续一端 PE设备上冗余状态变化时,该 PW冗余状态的重新协 商和确定。 The draft draft-ietf-pwe3-redundancy-bit-04 summarizes the scenario of deploying PW redundancy protection services and defines two PW redundancy states, Active state and Standby state. The PE device selects the PW whose current state is the active state to forward the user data. The PW in the standby state protects the PW in the active state and does not forward the user data. When the active PW cannot forward user data for some reason (such as the access side failure or the PSN side failure), the PW in the Standby state will replace the failed Active PW to forward the user packet, and the PW of the Standby state. The redundant state is switched to the active state. The redundancy status of the PW can be determined by the local configuration, and can be determined by the state of the access side or by other policies. The PW redundancy status of the PEs at both ends of the PW may be inconsistent. Therefore, the PEs at both ends of the PW need to negotiate the PW redundancy status. The result of the negotiation is the final redundancy status of the PW. The draft defines a status bit that indicates the current PW redundancy status, that is, a referential forwarding (Preferential Forwarding) to advertise and negotiate PW redundancy (including Active and Standby states). At the same time, the negotiation mode of two PW redundant status bits is defined in the draft, namely Independent Mode and Master/Slave Mode. The independent mode means that the two PE devices of the pseudowire negotiate the PW redundancy state of the pseudowire according to the local PW redundancy state and the PW redundancy state of the remote advertisement. The principle of negotiation is equivalent to the redundancy of the two ends. An "AND" operation of the remaining state, that is, when only the PW redundancy states at both ends are in the Active state, the final negotiation result is Active, and the negotiation result in all other cases is the Standby state; wherein two of the pseudowires in the master-slave mode The role of the terminal is not equal, that is, one end is the active end, and one end is the slave end. To receive and comply with the decision results of the initiative. Different negotiation modes are applicable to different PW redundancy scenarios. For details, refer to the PW redundancy scenario summarized in Appendix A of the draft. In this draft, the PW redundancy negotiation mode is configured independently on the two PE devices that establish the pseudowire, rather than negotiated. Therefore, the configuration requires the legality and validity of the configuration of the PW redundancy negotiation mode on the two PEs. In the actual service deployment, the two PEs of the PW are generally located in different areas, and because of subsequent adjustments to the network deployment, the legality and effectiveness of the PW redundancy negotiation mode configuration are very high. Hard to guarantee. For example: For the redundancy negotiation mode of a PW, both ends of the PW are configured as the active end of the master-slave mode. In this way, the two PEs of the PW will unilaterally determine the final redundancy state of the PW by using the local policy, which may result in inconsistent negotiation results of the redundancy status of the PW on the two PEs. For example, in the redundancy negotiation mode of a PW, the PE device at one end of the PW is configured in a master-slave mode (active or slave), and the PE device at the other end is configured in an independent mode, so that one end of the PW is locally redundant. The remaining state either takes the remote redundancy state as the final redundancy state of the PW, and the other end uses the negotiation result of the redundancy state of the PEs at both ends as the final redundancy state of the PW. The result of the negotiation of the redundancy status of the PW on the two PEs is also inconsistent. The inconsistency of this negotiation also affects the renegotiation and determination of the PW redundancy state when the redundancy state changes on the PE device at the subsequent end.

针对上述现有技术的由于伪线的两个 PE设备一般都分处不同的地域,同 时由于后续对网络部署的调整等因素, 导致 PW冗余协商模式配置的合法性 和有效性很难去保证的问题, 目前还没有有效的解决方案。  The two PEs of the PW redundancy negotiation mode are difficult to guarantee because the two PEs of the PW redundancy negotiation mode are generally assigned to different areas. The problem, there is currently no effective solution.

发明内容 Summary of the invention

本发明实施例的主要目的在于提供一种 PW冗余协商模式的检测方法及 系统, 以解决现有技术的由于 PW的两个 PE设备一般都分处不同的地域, 同 时由于后续对网络部署的调整等因素, 导致 PW冗余协商模式配置的合法性 和有效性很难去保证的问题。  The main purpose of the embodiments of the present invention is to provide a method and system for detecting a PW redundancy negotiation mode, so as to solve the problem that the two PE devices of the PW are generally located in different regions, and are subsequently deployed to the network. Adjustments and other factors make the legality and validity of the PW redundancy negotiation mode configuration difficult to guarantee.

为了实现上述目的, 根据本发明实施例的一方面, 提供了一种 PW冗余 协商模式的检测方法, 包括:  In order to achieve the above object, according to an aspect of the present invention, a method for detecting a PW redundancy negotiation mode is provided, including:

配置 PW上第一边缘设备的第一 PW冗余协商模式, 同时配置 PW上第 二边缘设备的第二 PW冗余协商模式; Configure the first PW redundancy negotiation mode on the first edge device on the PW and configure the PW on the PW. a second PW redundancy negotiation mode of the second edge device;

所述第一边缘设备和所述第二边缘设备分别将本地的 PW冗余协商模式 发送给对端;  The first edge device and the second edge device respectively send a local PW redundancy negotiation mode to the peer end;

所述第一边缘设备和所述第二边缘设备分别对接收到的 PW冗余协商模 式进行校验, 以获取校验结果。  The first edge device and the second edge device respectively check the received PW redundancy negotiation mode to obtain a verification result.

可选的, 所述第一边缘设备和所述第二边缘设备分别将本地的 PW冗余 协商模式发送给对端的步骤包括:  Optionally, the step of the first edge device and the second edge device respectively sending the local PW redundancy negotiation mode to the peer end includes:

所述第一边缘设备通过端到端的 PW仿真信令报文将所述第一 PW冗余 协商模式发送至所述第二边缘设备;  Transmitting, by the first edge device, the first PW redundancy negotiation mode to the second edge device by using an end-to-end PW emulation signaling packet;

同时所述第二边缘设备通过端到端的 PW仿真信令报文将所述第二 PW 冗余协商模式发送至所述第一边缘设备。  At the same time, the second edge device sends the second PW redundancy negotiation mode to the first edge device by using an end-to-end PW emulation signaling message.

可选的, 所述第一边缘设备和所述第二边缘设备分别对接收到的 PW冗 余协商模式进行校验, 以获取校验结果的步骤包括:  Optionally, the step of the first edge device and the second edge device respectively verifying the received PW redundancy negotiation mode to obtain the verification result includes:

所述第一边缘设备解析接收到的所述第二 PW冗余协商模式, 以获取第 二 PW冗余协商模式信息;  The first edge device parses the received second PW redundancy negotiation mode to obtain second PW redundancy negotiation mode information;

将所述第一边缘设备中的第一 PW冗余协商模式信息与解析的到的所述 第二 PW冗余协商模式信息进行匹配校验, 以获取有效的校验结果。  And matching the first PW redundancy negotiation mode information in the first edge device with the parsed second PW redundancy negotiation mode information to obtain a valid verification result.

可选的, 所述第一边缘设备和所述第二边缘设备分别对接收到的 PW冗 余协商模式进行校验, 以获取校验结果的步骤包括:  Optionally, the step of the first edge device and the second edge device respectively verifying the received PW redundancy negotiation mode to obtain the verification result includes:

所述第二边缘设备解析接收到的所述第一 PW冗余协商模式, 以获取第 一 PW冗余协商模式信息;  The second edge device parses the received first PW redundancy negotiation mode to obtain first PW redundancy negotiation mode information;

将所述第二边缘设备中的第二 PW冗余协商模式信息与解析的到的所述 第一 PW冗余协商模式信息进行匹配校验, 以获取有效的校验结果。  And matching the second PW redundancy negotiation mode information in the second edge device with the parsed first PW redundancy negotiation mode information to obtain a valid verification result.

可选的, 所述第一 PW冗余协商模式包括: 独立模式或主从模式, 其中, 所述有效的校验结果包括:  Optionally, the first PW redundancy negotiation mode includes: an independent mode or a master-slave mode, where the valid check result includes:

第一 PW冗余协商模式和第二 PW冗余协商模式都是所述独立模式; 或 者 所述第一边缘设备为所述主从模式的主动端, 且所述第二边缘设备为所 述主从模式的从动端; 或者 The first PW redundancy negotiation mode and the second PW redundancy negotiation mode are both the independent modes; or The first edge device is an active end of the master-slave mode, and the second edge device is a slave end of the master-slave mode; or

所述第二边缘设备为所述主从模式的主动端, 且所述第一边缘设备为所 述主从模式的从动端。  The second edge device is an active end of the master-slave mode, and the first edge device is a slave end of the master-slave mode.

可选的, 在所述第一边缘设备和所述第二边缘设备分别对接收到的 PW 冗余协商模式进行校验, 以获取校验结果之后, 所述方法还包括:  Optionally, after the first edge device and the second edge device respectively check the received PW redundancy negotiation mode to obtain the verification result, the method further includes:

显示所述校验结果, 其中, 在所述校验结果为无效校验结果的时候, 系 统发出提示信息。  The verification result is displayed, wherein when the verification result is an invalid verification result, the system issues a prompt message.

本发明实施例还提供一种伪线 PW冗余协商模式的检测系统, 其包括: 配置单元, 其设置为: 配置 PW上第一边缘设备的第一 PW冗余协商模 式, 同时配置 PW上第二边缘设备的第二 PW冗余协商模式;  The embodiment of the present invention further provides a detection system for a pseudowire PW redundancy negotiation mode, which includes: a configuration unit, configured to: configure a first PW redundancy negotiation mode of a first edge device on a PW, and configure a PW on the PW a second PW redundancy negotiation mode of the second edge device;

发送单元, 其设置为: 分别将所述第一边缘设备和所述第二边缘设备的 本地的 PW冗余协商模式发送给各自对端; 以及  a sending unit, configured to: send a local PW redundancy negotiation mode of the first edge device and the second edge device to respective peer ends; and

校验单元, 其设置为: 分别对所述第一边缘设备和所述第二边缘设备接 收到的 PW冗余协商模式进行校验, 以获取校验结果。  And a verification unit, configured to: respectively check the PW redundancy negotiation mode received by the first edge device and the second edge device to obtain a verification result.

可选的, 所述发送单元包括:  Optionally, the sending unit includes:

第一发送模块, 其设置为: 通过端到端的 PW仿真信令报文将所述第一 PW冗余协商模式从所述第一边缘设备发送至所述第二边缘设备; 以及  a first sending module, configured to: send the first PW redundancy negotiation mode from the first edge device to the second edge device by using an end-to-end PW emulation signaling message;

第二发送模块, 其设置为: 通过端到端的 PW仿真信令报文将所述第二 PW冗余协商模式从所述第二边缘设备发送至所述第一边缘设备。  And a second sending module, configured to: send the second PW redundancy negotiation mode from the second edge device to the first edge device by using an end-to-end PW emulation signaling message.

可选的, 所述校验单元包括:  Optionally, the verification unit includes:

第一解析模块,其设置为:解析所述第一边缘设备接收到的所述第二 PW 冗余协商模式, 以获取第二 PW冗余协商模式信息; 以及  a first parsing module, configured to: parse the second PW redundancy negotiation mode received by the first edge device to obtain second PW redundancy negotiation mode information;

第一匹配模块, 其设置为: 将所述第一边缘设备中的第一 PW冗余协商 模式信息与解析的到的所述第二 PW冗余协商模式信息进行匹配校验, 以获 取有效的校验结果。  a first matching module, configured to: perform matching check on the first PW redundancy negotiation mode information in the first edge device with the parsed second PW redundancy negotiation mode information, to obtain valid Check the result.

可选的, 所述校验单元包括: 第二解析模块,其设置为:解析所述第二边缘设备接收到的所述第一 PW 冗余协商模式, 以获取第一 PW冗余协商模式信息; 以及 Optionally, the verification unit includes: a second parsing module, configured to: parse the first PW redundancy negotiation mode received by the second edge device, to obtain first PW redundancy negotiation mode information;

第二匹配模块, 其设置为: 将所述第二边缘设备中的第二 PW冗余协商 模式信息与解析的到的所述第一 PW冗余协商模式信息进行匹配校验, 以获 取有效的校验结果。  a second matching module, configured to: perform matching check on the second PW redundancy negotiation mode information in the second edge device with the parsed first PW redundancy negotiation mode information, to obtain valid Check the result.

可选的, 所述系统还包括:  Optionally, the system further includes:

显示单元, 其设置为: 显示所述校验结果, 其中, 在所述校验结果为无 效校验结果的时候, 发出提示信息。  And a display unit, configured to: display the verification result, wherein when the verification result is an invalid verification result, the prompt information is sent.

本发明实施例还提供一种边缘设备, 位于伪线 PW的一端, 所述边缘设 备包括:  The embodiment of the present invention further provides an edge device, which is located at one end of the pseudowire PW, and the edge device includes:

配置模块, 其设置为: 配置本边缘设备的第一 PW冗余协商模式; 发送模块,其设置为:将所述第一 PW冗余协商模式发送给位于所述 PW 另一端的对端边缘设备;  a configuration module, configured to: configure a first PW redundancy negotiation mode of the edge device; the sending module is configured to: send the first PW redundancy negotiation mode to a peer edge device located at another end of the PW ;

接收模块, 其设置为: 接收所述对端边缘设备发送的第二 PW冗余协商 模式; 以及  a receiving module, configured to: receive a second PW redundancy negotiation mode sent by the peer edge device;

校验模块, 其设置为: 对接收到的所述第二 PW冗余协商模式进行校验, 以获取校验结果。  And a verification module, configured to: perform verification on the received second PW redundancy negotiation mode to obtain a verification result.

可选的, 所述发送模块是设置为通过端到端的 PW仿真信令报文将所述 第一 PW冗余协商模式发送至所述对端边缘设备。  Optionally, the sending module is configured to send the first PW redundancy negotiation mode to the peer edge device by using an end-to-end PW emulation signaling packet.

可选的, 所述校验模块包括:  Optionally, the verification module includes:

解析子模块, 其设置为: 解析接收到的所述第二 PW冗余协商模式, 以 获取第二 pw冗余协商模式信息; 以及  a parsing submodule, configured to: parse the received second PW redundancy negotiation mode to obtain second pw redundancy negotiation mode information;

匹配子模块, 其设置为: 将本边缘设备第一 PW冗余协商模式信息与解 析到的所述第二 PW冗余协商模式信息进行匹配校验, 以获取有效的校验结 果。  The matching sub-module is configured to: perform matching verification on the first PW redundancy negotiation mode information of the edge device and the second PW redundancy negotiation mode information that is parsed to obtain a valid verification result.

可选的, 所述边缘设备还包括:  Optionally, the edge device further includes:

显示模块, 其设置为: 显示所述校验结果, 其中, 在所述校验结果为无 效校验结果的时候, 发出提示信息。 a display module, configured to: display the verification result, where the verification result is none When the result of the verification is valid, a message is sent.

可选的, 所述第一 PW冗余协商模式包括: 独立模式或主从模式, 其中, 所述有效的校验结果包括:  Optionally, the first PW redundancy negotiation mode includes: an independent mode or a master-slave mode, where the valid check result includes:

第一 PW冗余协商模式和第二 PW冗余协商模式都是所述独立模式; 或 者  The first PW redundancy negotiation mode and the second PW redundancy negotiation mode are both the independent modes; or

所述第一边缘设备为所述主从模式的主动端, 且所述第二边缘设备为所 述主从模式的从动端; 或者  The first edge device is an active end of the master-slave mode, and the second edge device is a slave end of the master-slave mode; or

所述第二边缘设备为所述主从模式的主动端, 且所述第一边缘设备为所 述主从模式的从动端。  The second edge device is an active end of the master-slave mode, and the first edge device is a slave end of the master-slave mode.

本发明实施例釆用配置伪线 PW上第一边缘设备的第一伪线 PW冗余协 商模式, 同时配置伪线 PW上第二边缘设备的第二伪线 PW冗余协商模式; 第一边缘设备和第二边缘设备分别将本地的伪线 PW冗余协商模式发送给对 端; 第一边缘设备和第二边缘设备分别对接收到的伪线 PW冗余协商模式进 行校验, 以获取校验结果,解决了现有技术的由于伪线的两个 PE设备一般都 分处不同的地域, 同时由于后续对网络部署的调整等因素, 导致 PW冗余协 商模式配置的合法性和有效性很难去保证的问题, 进而达到了有效保证 PW 冗余协商模式的合法性和有效性的效果。 附图概述  In the embodiment of the present invention, the first pseudowire PW redundancy negotiation mode of the first edge device on the pseudowire PW is configured, and the second pseudowire PW redundancy negotiation mode of the second edge device on the pseudowire PW is configured; The device and the second edge device respectively send the local pseudowire PW redundancy negotiation mode to the peer end; the first edge device and the second edge device respectively check the received pseudowire PW redundancy negotiation mode to obtain the calibration The result of the test is that the two PE devices in the prior art are generally divided into different regions, and the legality and effectiveness of the PW redundancy negotiation mode configuration are very large due to subsequent adjustments to the network deployment. It is difficult to guarantee the problem, and thus achieve the effect of effectively ensuring the legitimacy and effectiveness of the PW redundancy negotiation mode. BRIEF abstract

此处所说明的附图用来提供对本发明实施例的进一步理解, 构成本发明 的一部分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本 发明的不当限定。 在附图中:  The drawings are intended to provide a further understanding of the embodiments of the invention, and are intended to be a part of the invention. In the drawing:

图 1是根据相关现有技术的端到端伪线仿真的网络结构图;  1 is a network structure diagram of an end-to-end pseudowire simulation according to the related art;

图 2是根据本发明实施例的 PW冗余协商模式的检测系统结构图; 图 3是根据本发明实施例的边缘设备的结构图;  2 is a structural diagram of a detection system of a PW redundancy negotiation mode according to an embodiment of the present invention; FIG. 3 is a structural diagram of an edge device according to an embodiment of the present invention;

图 4是根据本发明实施例的 PW冗余协商模式的检测方法流程图; 图 5是根据本发明实施例的 PW冗余协商模式的检测方法的详细流程图; 图 6是根据本发明实施例的 PW冗余协商模式 TLV的编码示意图; 以及 图 7是根据本发明实施例的 PW冗余协商模式的校验对照示意图。 本发明的较佳实施方式 4 is a flowchart of a method for detecting a PW redundancy negotiation mode according to an embodiment of the present invention; FIG. 5 is a detailed flowchart of a method for detecting a PW redundancy negotiation mode according to an embodiment of the present invention; 6 is a schematic diagram of coding of a PW redundancy negotiation mode TLV according to an embodiment of the present invention; and FIG. 7 is a schematic diagram of verification of a PW redundancy negotiation mode according to an embodiment of the present invention. Preferred embodiment of the invention

下文中将结合附图对本发明的实施例进行详细说明。 需要说明的是, 在 不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互任意组合。  Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.

本发明实施例提供了一种 PW冗余协商模式的检测方法及系统。  The embodiment of the invention provides a method and a system for detecting a PW redundancy negotiation mode.

图 2是根据本发明实施例的 PW冗余协商模式的检测系统结构图。 如图 2所示, 该系统包括: 配置单元 10、 发送单元 30以及校验单元 50。  2 is a structural diagram of a detection system of a PW redundancy negotiation mode according to an embodiment of the present invention. As shown in FIG. 2, the system includes: a configuration unit 10, a transmitting unit 30, and a verification unit 50.

其中, 配置单元 10, 用于配置 PW上第一边缘设备的第一 PW冗余协商 模式, 同时配置 PW上第二边缘设备的第二 PW冗余协商模式;发送单元 30, 用于第一边缘设备和第二边缘设备分别将本地的 PW冗余协商模式发送给对 端; 校验单元 50, 用于第一边缘设备和第二边缘设备分别对接收到的 PW冗 余协商模式进行校验, 以获取校验结果。  The configuration unit 10 is configured to configure a first PW redundancy negotiation mode of the first edge device on the PW, and configure a second PW redundancy negotiation mode of the second edge device on the PW. The sending unit 30 is configured to use the first edge. The device and the second edge device respectively send the local PW redundancy negotiation mode to the peer end; the verification unit 50 is configured to perform verification on the received PW redundancy negotiation mode by the first edge device and the second edge device, respectively. To get the verification result.

本申请上述实施例针对 PW冗余协商模式来配置合法性的检测系统, 旨 在检测 PW冗余场景中, PW两端 PE设备冗余协商模式的不合法的配置, 从 而尽早的发现 PW冗余组网中存在的问题, 以便及时的进行纠正, 从而达到 了有效保证 PW冗余协商模式的合法性和有效性的效果。  The foregoing embodiment of the present application is configured to detect a legality detection system in a PW redundancy negotiation mode, and is configured to detect an illegal configuration of a PE device redundancy negotiation mode at both ends of a PW in a PW redundancy scenario, so as to discover PW redundancy as early as possible. The problems existing in the networking are corrected in time to achieve the effect of effectively ensuring the legitimacy and effectiveness of the PW redundancy negotiation mode.

具体的, 该系统通过配置单元 10来实现对 PW的两端边缘设备 PE进行 伪线 PW冗余协商模式的配置, 并通过发送单实现两端 PE (可以通过 PWE3 信令)分别把本地的 PW冗余协商模式通告给对端 PE, 然后通过校验单元 50 来实现将对端 PE通告过来的 PW冗余协商模式和本地的 PW冗余协商模式进 行校验。  Specifically, the configuration unit 10 implements a pseudowire PW redundancy negotiation mode configuration on the edge device PEs of the PW, and implements the local PW by using the PEs at both ends through the PWE3 signaling. The redundancy negotiation mode is advertised to the peer PE, and then the check unit 50 is used to verify the PW redundancy negotiation mode and the local PW redundancy negotiation mode advertised by the peer PE.

本申请上述实施例的配置单元 10中,对该 PW冗余协商模式的配置可以 在 PE设备的命令行界面下配置, 也可以通过在网管上配置, 也可以是从 PE 设备的默认属性中继承。 且本发明实施例涉及到的 PW冗余协商模式可以包 括独立模式、 主从模式下的主动端模式、 主从模式下的从动端模式。  In the configuration unit 10 of the foregoing embodiment of the present application, the configuration of the PW redundancy negotiation mode may be configured on the command line interface of the PE device, or may be configured on the network management system, or may be inherited from the default attributes of the PE device. . The PW redundancy negotiation mode involved in the embodiment of the present invention may include an independent mode, an active mode in the master-slave mode, and a slave mode in the master-slave mode.

本申请上述实施例中的发送单元 30可以包括: 第一发送模块, 用于第一 边缘设备通过端到端的 PW仿真信令报文将第一 PW冗余协商模式发送至第 二边缘设备; 第二发送模块, 用于第二边缘设备通过端到端的 PW仿真信令 报文将第二 PW冗余协商模式发送至第一边缘设备。 The sending unit 30 in the foregoing embodiment of the present application may include: a first sending module, configured to The edge device sends the first PW redundancy negotiation mode to the second edge device by using the end-to-end PW emulation signaling packet; the second sending module is configured to use the end-to-end PW emulation signaling packet by the second edge device. The two PW redundancy negotiation mode is sent to the first edge device.

具体的, 上述实施例中的 PWE3信令具体是指 PW建立的时候, 向对端 通告的 PW mapping消息。本地的 PW冗余协商模式携带在扩展的 PW mapping 消息的接口参数 TLV ( PW Interface Parameters TLV ) 中。 具体 PW冗余协商 模式在信令中的编码可以有多种具体的形式, 本专利给出了一种建议的编码 格式。 其中接 口 参数 TLV 的编码如下 ( Parameter ID: OxOD, Length:4,Description:PW Redundancy Negotiation Mode ) , 冗余协商模式的编 码如下 ( Independent Mode: 0x01 ; Master/Slave Mode(Master Role) :0x02; Master/Slave Mode(Slave Role) :0x03 ) 。  Specifically, the PWE3 signaling in the foregoing embodiment is specifically a PW mapping message that is advertised to the peer end when the PW is established. The local PW redundancy negotiation mode is carried in the interface parameter TLV (PW Interface Parameters TLV) of the extended PW mapping message. The coding of the specific PW redundancy negotiation mode in the signaling can be in various specific forms. This patent gives a suggested coding format. The encoding of the interface parameter TLV is as follows (Parameter ID: OxOD, Length: 4, Description: PW Redundancy Negotiation Mode), and the encoding of the redundancy negotiation mode is as follows (Independent Mode: 0x01; Master/Slave Mode (Master Role): 0x02; Master /Slave Mode(Slave Role) :0x03 ) .

本申请上述实施例中的校验单元 50可以包括: 第一解析模块, 用于第一 边缘设备解析接收到的第二伪线 PW冗余协商模式, 以获取第二伪线 PW冗 余协商模式信息; 第一匹配模块, 用于将第一边缘设备中的第一伪线 PW冗 余协商模式信息与解析的到的第二伪线 PW 冗余协商模式信息进行匹配校 验, 以获取有效的校验结果。  The verification unit 50 in the above embodiment of the present application may include: a first parsing module, configured to parse the received second pseudowire PW redundancy negotiation mode by the first edge device, to obtain a second pseudowire PW redundancy negotiation mode. The first matching module is configured to perform matching check on the first pseudowire PW redundancy negotiation mode information in the first edge device and the parsed second pseudowire PW redundancy negotiation mode information to obtain valid information. Check the result.

优选地, 该校验单元 50也可以包括: 第二解析模块, 用于第二边缘设备 解析接收到的第一伪线 PW冗余协商模式, 以获取第一伪线 PW冗余协商模 式信息; 第二匹配模块, 用于将第二边缘设备中的第二伪线 PW冗余协商模 式信息与解析的到的第一伪线 PW冗余协商模式信息进行匹配校验, 以获取 有效的校验结果。  Preferably, the verification unit 50 may further include: a second parsing module, configured to parse the received first pseudowire PW redundancy negotiation mode by the second edge device, to obtain first pseudowire PW redundancy negotiation mode information; a second matching module, configured to perform matching check between the second pseudowire PW redundancy negotiation mode information in the second edge device and the parsed first pseudowire PW redundancy negotiation mode information, to obtain a valid checksum result.

上述校验单元 50的实施例中, PW冗余协商模式和本地的 PW冗余协商 模式进行校验是指对两端 PW冗余配置模式的合法性校验, 具体来说 PW两 端 PE的 PW冗余协商模式配置只有两端都是独立模式,或者一端是主从模式 的主动端, 另一端是主从模式的从动端, 这两种 PW冗余协商模式的配置组 合是有效的, 其它 PW冗余协商模式的配置组合都应该认为是不正确的。  In the embodiment of the check unit 50, the check of the PW redundancy negotiation mode and the local PW redundancy negotiation mode is to verify the validity of the PW redundancy configuration mode at both ends. Specifically, the PEs at both ends of the PW are In the PW redundancy negotiation mode, only the two ends are in independent mode, or one end is the active end of the master-slave mode, and the other end is the slave end of the master-slave mode. The configuration combination of the two PW redundancy negotiation modes is effective. The configuration combination of other PW redundancy negotiation modes should be considered incorrect.

本申请上述实施例中, 系统还可以包括: 显示单元 70, 用于显示校验结 果, 其中, 在校验结果为无效校验结果的时候, 系统发出提示信息。 具体的, 是实现在进行校验之后, 可以对校验的结果在命令行界面或者网管上给予提 具体的, 上述显示单元 70的实施例中, 可以实现对于 PW冗余配置校验 结果可以在命令行界面上基于每 PW的显示命令中进行显示, 包括本地 PW 冗余协商模式以及远端通告过来的 PW冗余协商模式。 也可以在网管上作为 独立的表项进行显示。 对于不正确的冗余协商模式的配置, 可以在命令行界 面或者网管上给出相应的告警提示信息。 提示设备维护人员进行相应的检查 和修改。 In the above embodiment of the present application, the system may further include: a display unit 70, configured to display a verification result, where the system issues a prompt message when the verification result is an invalid verification result. Specifically, after the verification is performed, the result of the verification may be given on the command line interface or the network management. Specifically, in the embodiment of the display unit 70, the PW redundancy configuration verification result can be displayed on the command line interface based on the display command per PW, including the local PW redundancy negotiation mode and the remote notification. PW redundancy negotiation mode. It can also be displayed as a separate entry on the U2000. For the configuration of the incorrect redundancy negotiation mode, you can give corresponding alarm prompt information on the command line interface or the NMS. Prompt equipment maintenance personnel to check and modify accordingly.

图 3是本发明实施例的边缘设备的结构示意图。 如图 3所示, 该边缘设 备包括: FIG. 3 is a schematic structural diagram of an edge device according to an embodiment of the present invention. As shown in Figure 3, the edge device includes:

配置模块 301 , 其设置为: 配置本边缘设备的第一 PW冗余协商模式; 发送模块 302, 其设置为: 将所述第一 PW冗余协商模式发送给位于所 述 PW另一端的对端边缘设备;  The configuration module 301 is configured to: configure a first PW redundancy negotiation mode of the edge device; the sending module 302 is configured to: send the first PW redundancy negotiation mode to the peer end located at the other end of the PW Edge device

接收模块 303 , 其设置为: 接收所述对端边缘设备发送的第二 PW冗余 协商模式; 以及  The receiving module 303 is configured to: receive a second PW redundancy negotiation mode sent by the peer edge device;

校验模块 304, 其设置为: 对接收到的所述第二 PW冗余协商模式进行 校验, 以获取校验结果。  The verification module 304 is configured to: perform verification on the received second PW redundancy negotiation mode to obtain a verification result.

较佳的, 所述发送模块是设置为通过端到端的 PW仿真信令报文将所述 第一 PW冗余协商模式发送至所述对端边缘设备。  Preferably, the sending module is configured to send the first PW redundancy negotiation mode to the peer edge device by using an end-to-end PW emulation signaling message.

较佳的, 所述校验模块可以包括:  Preferably, the verification module may include:

解析子模块 3041 ,其设置为:解析接收到的所述第二 PW冗余协商模式, 以获取第二 PW冗余协商模式信息; 以及  a parsing sub-module 3041, configured to: parse the received second PW redundancy negotiation mode to obtain second PW redundancy negotiation mode information;

匹配子模块 3042, 其设置为: 将本边缘设备第一 PW冗余协商模式信息 与解析到的所述第二 PW冗余协商模式信息进行匹配校验, 以获取有效的校 验结果。  The matching sub-module 3042 is configured to: perform matching verification on the first PW redundancy negotiation mode information of the edge device and the parsed second PW redundancy negotiation mode information to obtain a valid check result.

较佳的, 所述边缘设备还可以包括:  Preferably, the edge device may further include:

显示模块 305 , 其设置为: 显示所述校验结果, 其中, 在所述校验结果 为无效校验结果的时候, 发出提示信息。 a display module 305, configured to: display the verification result, where the verification result is When the result of the invalid check is issued, a message is sent.

通过上述针对 PW冗余协商模式配置合法性的检测系统, 可以在 PW建 立的信令过程的过程中, 把本地的 PW冗余协商模式配置信息通过 PWE3信 令携带给对端, 从而在 PW冗余状态协商之前完成 PW冗余协商模式配置合 法性的校验。从而可以尽早的发现建立 PW的两个 PE上的 PW冗余协商模式 的不正确的配置, 提示设备维护人员及时修改。 The PW redundancy negotiation mode configuration information can be carried to the peer end through PWE3 signaling in the process of the PW redundancy negotiation mode. The validity check of the configuration of the PW redundancy negotiation mode is completed before the negotiation of the remaining state. Therefore, the incorrect configuration of the PW redundancy negotiation mode on the two PEs that establish the PW can be discovered as soon as possible, prompting the device maintenance personnel to modify it in time.

图 4是根据本发明实施例的 PW冗余协商模式的检测方法流程图; 图 5 是根据本发明实施例的 PW冗余协商模式的检测方法的详细流程图; 图 6是 根据本发明实施例的 PW冗余协商模式 TLV的编码示意图; 以及图 7是根据 本发明实施例的 PW冗余协商模式的校验对照示意图。  4 is a flowchart of a method for detecting a PW redundancy negotiation mode according to an embodiment of the present invention; FIG. 5 is a detailed flowchart of a method for detecting a PW redundancy negotiation mode according to an embodiment of the present invention; FIG. 6 is a flowchart according to an embodiment of the present invention. Schematic diagram of the coding of the PW redundancy negotiation mode TLV; and FIG. 7 is a schematic diagram of the verification of the PW redundancy negotiation mode according to an embodiment of the present invention.

如图 4所示, 该 PW冗余协商模式的检测方法包括如下步骤:  As shown in FIG. 4, the method for detecting the PW redundancy negotiation mode includes the following steps:

步骤 S102, 通过图 2所示的配置单元 10来配置 PW上第一边缘设备的 第一 PW冗余协商模式, 同时配置 PW上第二边缘设备的第二伪线 PW冗余 协商模式。  In step S102, the first PW redundancy negotiation mode of the first edge device on the PW is configured by the configuration unit 10 shown in FIG. 2, and the second pseudowire PW redundancy negotiation mode of the second edge device on the PW is configured.

步骤 S104, 通过图 2中的发送单元 30来实现第一边缘设备和第二边缘 设备分别将本地的 PW冗余协商模式发送给对端。  Step S104: The first edge device and the second edge device respectively send the local PW redundancy negotiation mode to the peer end by using the sending unit 30 in FIG. 2 .

步骤 S106, 通过图 2中的校验单元 50来实现第一边缘设备和第二边缘 设备分别对接收到的 PW冗余协商模式进行校验, 以获取校验结果。  Step S106: The first edge device and the second edge device respectively perform verification on the received PW redundancy negotiation mode by using the verification unit 50 in FIG. 2 to obtain a verification result.

上述针对 PW冗余协商模式配置合法性的检测方法, 实现了在检测 PW 冗余场景中, PW两端 PE设备冗余协商模式的不合法的配置, 从而尽早的发 现 PW冗余组网中存在的问题, 以便及时的进行纠正, 从而达到了有效保证 PW冗余协商模式的合法性和有效性的效果。  The foregoing method for detecting the validity of the PW redundancy negotiation mode is implemented in the PW redundancy scenario, and the configuration of the redundancy negotiation mode of the PEs at both ends of the PW is invalid. The problem, in order to correct in time, thus achieving the effect of effectively ensuring the legitimacy and effectiveness of the PW redundancy negotiation mode.

具体的, 该针对 PW冗余协商模式配置合法性的检测方法, 首先对伪线 的两端边缘设备 PE进行 PW冗余协商模式的配置, 并通过发送单实现两端 PE (可以通过 PWE3信令 )分别把本地的 PW冗余协商模式通告给对端 PE, 然后通过校验单元 50来实现将对端 PE通告过来的 PW冗余协商模式和本地 的 PW冗余协商模式进行校验。 上述实施例中, 步骤 S104 第一边缘设备和第二边缘设备分别将本地的Specifically, the method for detecting the validity of the PW redundancy negotiation mode configuration is to perform the PW redundancy negotiation mode configuration on the PEs at both ends of the pseudowire, and implement the PEs at both ends by using the sending singleton. The local PW redundancy negotiation mode is respectively advertised to the peer PE, and then the check unit 50 is used to verify the PW redundancy negotiation mode and the local PW redundancy negotiation mode notified by the peer PE. In the above embodiment, step S104, the first edge device and the second edge device respectively respectively

PW 冗余协商模式发送给对端可以包括: 第一边缘设备通过端到端的伪线仿 真信令报文将第一 PW冗余协商模式发送至第二边缘设备; 同时第二边缘设 备通过端到端的 PW仿真信令报文将第二 PW冗余协商模式发送至第一边缘 设备。 The sending of the PW redundancy negotiation mode to the peer end may include: the first edge device sends the first PW redundancy negotiation mode to the second edge device by using the end-to-end pseudowire emulation signaling packet; and the second edge device passes the end to The PW emulation signaling message of the end sends the second PW redundancy negotiation mode to the first edge device.

上述实施例的步骤 S106 第一边缘设备和第二边缘设备分别对接收到的 PW 冗余协商模式进行校验, 以获取校验结果可以包括: 第一边缘设备解析 接收到的第二 PW冗余协商模式, 以获取第二 PW冗余协商模式信息; 将第 一边缘设备中的第一 PW冗余协商模式信息与解析的到的第二 PW冗余协商 模式信息进行匹配校验, 以获取有效的校验结果。  In the step S106 of the foregoing embodiment, the first edge device and the second edge device respectively check the received PW redundancy negotiation mode, so as to obtain the verification result, the first edge device parses the received second PW redundancy. Negotiating the mode to obtain the second PW redundancy negotiation mode information, and performing matching and verifying the first PW redundancy negotiation mode information in the first edge device with the parsed second PW redundancy negotiation mode information to obtain valid Check result.

优选地, 该步骤 S106第一边缘设备和第二边缘设备分别对接收到的 PW 冗余协商模式进行校验, 以获取校验结果也可以包括: 第二边缘设备解析接 收到的第一 PW冗余协商模式, 以获取第一 PW冗余协商模式信息; 将第二 边缘设备中的第二 PW冗余协商模式信息与解析的到的第一 PW冗余协商模 式信息进行匹配校验, 以获取有效的校验结果。  Preferably, in step S106, the first edge device and the second edge device respectively check the received PW redundancy negotiation mode to obtain the verification result, which may also include: the second edge device parses the received first PW redundancy. The negotiation mode is configured to obtain the first PW redundancy negotiation mode information, and the second PW redundancy negotiation mode information in the second edge device is matched and verified with the parsed first PW redundancy negotiation mode information to obtain Valid check results.

上述各个实施例中的第一 PW冗余协商模式可以包括: 独立模式以及主 从模式, 其中, 有效的校验结果包括: 第一 PW冗余协商模式和第二 PW冗 余协商模式都是独立模式; 或者第一边缘设备为主从模式的主动端, 且第二 边缘设备为主从模式的从动端; 或者第二边缘设备为主从模式的主动端, 且 第一边缘设备为主从模式的从动端。  The first PW redundancy negotiation mode in the foregoing embodiments may include: an independent mode and a master-slave mode, where the valid check result includes: the first PW redundancy negotiation mode and the second PW redundancy negotiation mode are independent Mode; or the first edge device is the active end of the master-slave mode, and the second edge device is the slave end of the master-slave mode; or the second edge device is the active end of the master-slave mode, and the first edge device is the master-slave mode The slave of the pattern.

本申请上述实施的步骤 S106在第一边缘设备和第二边缘设备分别对接 收到的 PW冗余协商模式进行校验, 以获取校验结果之后, 方法还包括: 显 示校验结果, 其中, 在校验结果为无效校验结果的时候, 系统发出提示信息。  In the step S106 of the foregoing implementation of the present application, after the first edge device and the second edge device respectively check the received PW redundancy negotiation mode to obtain the verification result, the method further includes: displaying the verification result, where When the verification result is invalid verification result, the system issues a prompt message.

如图 5所示, 本申请上述方法实施例中, 在第一边缘设备 PE1上首先进 行伪线的相关参数的配置, 其中包括本地 PW冗余协商模式的配置。 冗余协 商模式的配置可以在命令行界面中进行, 也可以在网管上进行设置, 或者继 承系统的默认配置。 当在 PE1上对 PW的参数配置完成后,发起 PWE3信令, 通过 PW Mapping消息把 PE1上的 PW的相关信息通告给 PE2设备,其中 PE1 本地的冗余协商模式信息被编码在 PW Mapping消息的 Interface Parameter Tlv 中 , 其编码格式如图 5所示。 ΡΕ2在收到 PE1通告的 Mapping消息后, 解析 并保存 PE1的 PW冗余协商模式信息。 As shown in FIG. 5, in the foregoing method embodiment of the present application, the configuration of the related parameters of the pseudowire is first performed on the first edge device PE1, including the configuration of the local PW redundancy negotiation mode. The configuration of the redundancy negotiation mode can be performed on the command line interface, or on the network management system, or inherit the default configuration of the system. After the configuration of the PW parameters on the PE1 is complete, the PWE3 signaling is initiated, and the information about the PW on the PE1 is advertised to the PE2 device through the PW mapping message, where the local redundancy negotiation mode information of the PE1 is encoded in the PW mapping message. Interface Parameter Tlv The encoding format is shown in Figure 5. After receiving the mapping message advertised by PE1, ΡΕ2 parses and saves the PW redundancy negotiation mode information of PE1.

PE2上进行 PW的相关参数的配置, 其中包括本地 PW冗余协商模式的 配置。 PE2把之前接收到的 PE1通告过来的 PW冗余协商模式和本地配置的 冗余协商模式一起进行合法性校验。 校验的策略如图 6所示。 即 PW两端 PE 的 PW冗余协商模式配置只有两端都是独立模式, 或者一端是主从模式的主 动端, 一端是主从模式的从动端, 这两种 PW冗余协商模式的配置组合是有 效的, 其它 PW冗余协商模式的配置组合都应该认为是不正确的。  Configure the PW parameters on PE2, including the configuration of the local PW redundancy negotiation mode. PE2 checks the validity of the PW redundancy negotiation mode advertised by the previously received PE1 with the locally configured redundancy negotiation mode. The verification strategy is shown in Figure 6. That is, the PW redundancy negotiation mode configuration of the PEs at both ends of the PW is only in the independent mode, or the active end of the master-slave mode and the slave end of the master-slave mode, and the configuration of the two PW redundancy negotiation modes. The combination is valid, and the configuration combinations of other PW redundancy negotiation modes should be considered incorrect.

PE2同时把本地配置的 PW冗余协商模式信息通过 PE2发送给 PE1的 PW Mapping消息携带给 PE1。 PE1在收到 PE2通告过来的 Mapping消息后 , 解 析出 PE2的冗余协商模式信息, 并和本地配置的冗余协商模式配置信息按照 图 6的校验策略进行合法性校验。  PE2 carries the PW redundancy negotiation mode information of the local configuration to PE1 through the PW mapping message sent by PE2 to PE1. After receiving the mapping message advertised by PE2, PE1 will analyze the redundancy negotiation mode information of PE2 and perform the validity check with the locally configured redundancy negotiation mode configuration information according to the verification policy of Figure 6.

在 PE1和 PE2上, 当 PW冗余协商模式的校验结果为不合理时, 通过命 令行界面或者网管给出告警信息, 提示配置人员进行配置合法性的检查和修 改操作。  On PE1 and PE2, when the check result of the PW redundancy negotiation mode is unreasonable, the alarm information is sent through the command line interface or the NMS, and the configuration personnel are prompted to check the configuration validity and modify the operation.

需要说明的是, 本发明实施例在附图的流程图示出的步骤可以在诸如一 组计算机可执行指令的计算机系统中执行, 并且, 虽然在流程图中示出了逻 辑顺序, 但是在某些情况下, 可以以不同于此处的顺序执行所示出或描述的 步骤。  It should be noted that the steps shown in the flowchart of the accompanying drawings of the embodiments of the present invention may be executed in a computer system such as a set of computer executable instructions, and although a logical sequence is shown in the flowchart, In some cases, the steps shown or described may be performed in an order different than that described herein.

从以上的实施例描述中, 可以看出, 本发明实现了如下技术效果: 本发 明实现 PW冗余场景中 PW冗余协商模式配置合法性的检测方法, 通过本文 中提出的针对 PW冗余协商模式配置合法性的检测方法, 可以在 PW建立的 信令过程的过程中, 把本地的 PW冗余协商模式配置信息通过 PWE3信令携 带给对端, 从而在 PW冗余状态协商之前完成 PW冗余协商模式配置合法性 的校验。从而可以尽早的发现建立 PW的两个 PE上的 PW冗余协商模式的不 正确的配置, 提示设备维护人员及时修改。  It can be seen from the description of the foregoing embodiments that the present invention achieves the following technical effects: The present invention implements a method for detecting the legality of PW redundancy negotiation mode configuration in a PW redundancy scenario, and uses the PW redundancy negotiation proposed in this document. The method for detecting the validity of the mode configuration may be configured to carry the local PW redundancy negotiation mode configuration information to the peer end through PWE3 signaling in the process of the signaling process established by the PW, thereby completing the PW redundancy before the PW redundancy state negotiation. The negotiation mode is configured to check the validity of the negotiation mode. Therefore, the incorrect configuration of the PW redundancy negotiation mode on the two PEs that establish the PW can be discovered as soon as possible, prompting the device maintenance personnel to modify it in time.

本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现, 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于任 何特定形式的硬件和软件的结合。 One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct the associated hardware, such as a read only memory, a magnetic disk, or an optical disk. Optionally, all or part of the steps of the above embodiments may also be used. One or more integrated circuits are implemented. Correspondingly, each module/unit in the above embodiment may be implemented in the form of hardware or in the form of a software function module. The invention is not limited to any specific form of combination of hardware and software.

需要说明的是, 本发明还可有其他多种实施例, 在不背离本发明精神及 和变形, 但这些相应的改变和变形都应属于本发明所附的权利要求的保护范 围。 工业实用性  It is to be understood that the invention may be embodied in other forms and modifications without departing from the spirit and scope of the invention. Industrial applicability

本发明实施例的方案有效保证了 PW冗余协商模式的合法性和有效性。  The solution of the embodiment of the invention effectively guarantees the legitimacy and effectiveness of the PW redundancy negotiation mode.

Claims

权 利 要 求 书 Claim 1、 一种伪线 PW冗余协商模式的检测方法, 其包括: A method for detecting a pseudowire PW redundancy negotiation mode, comprising: 配置 PW上第一边缘设备的第一 PW冗余协商模式, 同时配置 PW上第 二边缘设备的第二 PW冗余协商模式;  The first PW redundancy negotiation mode of the first edge device on the PW is configured, and the second PW redundancy negotiation mode of the second edge device on the PW is configured. 所述第一边缘设备和所述第二边缘设备分别将本地的 PW冗余协商模式 发送给对端;  The first edge device and the second edge device respectively send a local PW redundancy negotiation mode to the peer end; 所述第一边缘设备和所述第二边缘设备分别对接收到的 PW冗余协商模 式进行校验, 以获取校验结果。  The first edge device and the second edge device respectively check the received PW redundancy negotiation mode to obtain a verification result. 2、 根据权利要求 1所述的方法, 其中, 所述第一边缘设备和所述第二边 缘设备分别将本地的 PW冗余协商模式发送给对端的步骤包括: 2. The method according to claim 1, wherein the step of the local edge device and the second edge device respectively transmitting the local PW redundancy negotiation mode to the peer end includes: 所述第一边缘设备通过端到端的 PW仿真信令报文将所述第一 PW冗余 协商模式发送至所述第二边缘设备;  Transmitting, by the first edge device, the first PW redundancy negotiation mode to the second edge device by using an end-to-end PW emulation signaling packet; 同时所述第二边缘设备通过端到端的 PW仿真信令报文将所述第二 PW 冗余协商模式发送至所述第一边缘设备。  At the same time, the second edge device sends the second PW redundancy negotiation mode to the first edge device by using an end-to-end PW emulation signaling message. 3、 根据权利要求 2所述的方法, 其中, 所述第一边缘设备和所述第二边 缘设备分别对接收到的 PW冗余协商模式进行校验, 以获取校验结果的步骤 包括: The method according to claim 2, wherein the step of the first edge device and the second edge device respectively verifying the received PW redundancy negotiation mode to obtain the verification result includes: 所述第一边缘设备解析接收到的所述第二 PW冗余协商模式, 以获取第 二 PW冗余协商模式信息;  The first edge device parses the received second PW redundancy negotiation mode to obtain second PW redundancy negotiation mode information; 将所述第一边缘设备中的第一 PW冗余协商模式信息与解析的到的所述 第二 PW冗余协商模式信息进行匹配校验, 以获取有效的校验结果。  And matching the first PW redundancy negotiation mode information in the first edge device with the parsed second PW redundancy negotiation mode information to obtain a valid verification result. 4、 根据权利要求 2所述的方法, 其中, 所述第一边缘设备和所述第二边 缘设备分别对接收到的 PW冗余协商模式进行校验, 以获取校验结果的步骤 包括: The method according to claim 2, wherein the step of the first edge device and the second edge device respectively verifying the received PW redundancy negotiation mode to obtain the verification result includes: 所述第二边缘设备解析接收到的所述第一 PW冗余协商模式, 以获取第 一 PW冗余协商模式信息; 将所述第二边缘设备中的第二 PW冗余协商模式信息与解析的到的所述 第一 PW冗余协商模式信息进行匹配校验, 以获取有效的校验结果。 The second edge device parses the received first PW redundancy negotiation mode to obtain first PW redundancy negotiation mode information; And matching the second PW redundancy negotiation mode information in the second edge device with the parsed first PW redundancy negotiation mode information to obtain a valid verification result. 5、 根据权利要求 3或 4所述的方法, 其中, 所述第一 PW冗余协商模式 包括: 独立模式或主从模式, 其中, 所述有效的校验结果包括: The method according to claim 3 or 4, wherein the first PW redundancy negotiation mode comprises: an independent mode or a master-slave mode, wherein the valid verification result comprises: 第一 PW冗余协商模式和第二 PW冗余协商模式都是所述独立模式; 或 者  The first PW redundancy negotiation mode and the second PW redundancy negotiation mode are both the independent modes; or 所述第一边缘设备为所述主从模式的主动端, 且所述第二边缘设备为所 述主从模式的从动端; 或者  The first edge device is an active end of the master-slave mode, and the second edge device is a slave end of the master-slave mode; or 所述第二边缘设备为所述主从模式的主动端, 且所述第一边缘设备为所 述主从模式的从动端。  The second edge device is an active end of the master-slave mode, and the first edge device is a slave end of the master-slave mode. 6、 根据权利要求 1所述的方法, 其中, 在所述第一边缘设备和所述第二 边缘设备分别对接收到的 PW冗余协商模式进行校验,以获取校验结果之后, 所述方法还包括: The method according to claim 1, wherein after the first edge device and the second edge device respectively check the received PW redundancy negotiation mode to obtain a verification result, The method also includes: 显示所述校验结果, 其中, 在所述校验结果为无效校验结果的时候, 系 统发出提示信息。  The verification result is displayed, wherein when the verification result is an invalid verification result, the system issues a prompt message. 7、 一种伪线 PW冗余协商模式的检测系统, 其包括: 7. A detection system for a pseudowire PW redundancy negotiation mode, comprising: 配置单元, 其设置为: 配置 PW上第一边缘设备的第一 PW冗余协商模 式, 同时配置 PW上第二边缘设备的第二 PW冗余协商模式;  a configuration unit, configured to: configure a first PW redundancy negotiation mode of the first edge device on the PW, and configure a second PW redundancy negotiation mode of the second edge device on the PW; 发送单元, 其设置为: 分别将所述第一边缘设备和所述第二边缘设备的 本地的 PW冗余协商模式发送给各自对端; 以及  a sending unit, configured to: send a local PW redundancy negotiation mode of the first edge device and the second edge device to respective peer ends; and 校验单元, 其设置为: 分别对所述第一边缘设备和所述第二边缘设备接 收到的 PW冗余协商模式进行校验, 以获取校验结果。  And a verification unit, configured to: respectively check the PW redundancy negotiation mode received by the first edge device and the second edge device to obtain a verification result. 8、 根据权利要求 7所述的系统, 其中, 所述发送单元包括: 8. The system according to claim 7, wherein the sending unit comprises: 第一发送模块, 其设置为: 通过端到端的 PW仿真信令报文将所述第一 PW冗余协商模式从所述第一边缘设备发送至所述第二边缘设备; 以及  a first sending module, configured to: send the first PW redundancy negotiation mode from the first edge device to the second edge device by using an end-to-end PW emulation signaling message; 第二发送模块, 其设置为: 通过端到端的 PW仿真信令报文将所述第二 PW冗余协商模式从所述第二边缘设备发送至所述第一边缘设备。 a second sending module, configured to: pass the second through an end-to-end PW emulation signaling message A PW redundancy negotiation mode is sent from the second edge device to the first edge device. 9、 根据权利要求 8所述的系统, 其中, 所述校验单元包括: 9. The system according to claim 8, wherein the verification unit comprises: 第一解析模块,其设置为:解析所述第一边缘设备接收到的所述第二 PW 冗余协商模式, 以获取第二 PW冗余协商模式信息; 以及  a first parsing module, configured to: parse the second PW redundancy negotiation mode received by the first edge device to obtain second PW redundancy negotiation mode information; 第一匹配模块, 其设置为: 将所述第一边缘设备中的第一 PW冗余协商 模式信息与解析的到的所述第二 PW冗余协商模式信息进行匹配校验, 以获 取有效的校验结果。  a first matching module, configured to: perform matching check on the first PW redundancy negotiation mode information in the first edge device with the parsed second PW redundancy negotiation mode information, to obtain valid Check the result. 10、 根据权利要求 8所述的系统, 其中, 所述校验单元包括: 10. The system according to claim 8, wherein the verification unit comprises: 第二解析模块,其设置为:解析所述第二边缘设备接收到的所述第一 PW 冗余协商模式, 以获取第一 PW冗余协商模式信息; 以及  a second parsing module, configured to: parse the first PW redundancy negotiation mode received by the second edge device, to obtain first PW redundancy negotiation mode information; 第二匹配模块, 其设置为: 将所述第二边缘设备中的第二 PW冗余协商 模式信息与解析的到的所述第一 PW冗余协商模式信息进行匹配校验, 以获 取有效的校验结果。  a second matching module, configured to: perform matching check on the second PW redundancy negotiation mode information in the second edge device with the parsed first PW redundancy negotiation mode information, to obtain valid Check the result. 11、 根据权利要求 7所述的系统, 所述系统还包括: 11. The system of claim 7, the system further comprising: 显示单元, 其设置为: 显示所述校验结果, 其中, 在所述校验结果为无 效校验结果的时候, 发出提示信息。  And a display unit, configured to: display the verification result, wherein when the verification result is an invalid verification result, the prompt information is sent. 12、 一种边缘设备, 位于伪线 PW的一端, 所述边缘设备包括: 配置模块, 其设置为: 配置本边缘设备的第一 PW冗余协商模式; 发送模块,其设置为:将所述第一 PW冗余协商模式发送给位于所述 PW 另一端的对端边缘设备;  An edge device, located at one end of the pseudowire PW, the edge device includes: a configuration module, configured to: configure a first PW redundancy negotiation mode of the edge device; and a sending module, configured to: The first PW redundancy negotiation mode is sent to the peer edge device located at the other end of the PW; 接收模块, 其设置为: 接收所述对端边缘设备发送的第二 PW冗余协商 模式; 以及  a receiving module, configured to: receive a second PW redundancy negotiation mode sent by the peer edge device; 校验模块, 其设置为: 对接收到的所述第二 PW冗余协商模式进行校验, 以获取校验结果。  And a verification module, configured to: perform verification on the received second PW redundancy negotiation mode to obtain a verification result. 13、 根据权利要求 12所述的边缘设备, 其中, 13. The edge device according to claim 12, wherein 所述发送模块是设置为通过端到端的 PW仿真信令报文将所述第一 PW 冗余协商模式发送至所述对端边缘设备。 The sending module is configured to pass the first PW by using an end-to-end PW emulation signaling message The redundancy negotiation mode is sent to the peer edge device. 14、 根据权利要求 13所述的边缘设备, 其中, 所述校验模块包括: 解析子模块, 其设置为: 解析接收到的所述第二 PW冗余协商模式, 以 获取第二 pw冗余协商模式信息; 以及 The edge device according to claim 13, wherein the verification module comprises: a parsing submodule, configured to: parse the received second PW redundancy negotiation mode to obtain a second pw redundancy Negotiation mode information; 匹配子模块, 其设置为: 将本边缘设备第一 PW冗余协商模式信息与解 析到的所述第二 PW冗余协商模式信息进行匹配校验, 以获取有效的校验结 果。  The matching sub-module is configured to: perform matching verification on the first PW redundancy negotiation mode information of the edge device and the second PW redundancy negotiation mode information that is parsed to obtain a valid verification result. 15、 根据权利要求 12所述的边缘设备, 其还包括: 15. The edge device of claim 12, further comprising: 显示模块, 其设置为: 显示所述校验结果, 其中, 在所述校验结果为无 效校验结果的时候, 发出提示信息。  And a display module, configured to: display the verification result, wherein when the verification result is an invalid verification result, a prompt message is sent. 16、 根据权利要求 15所述的边缘设备, 其中: 所述第一 PW冗余协商模式包括: 独立模式或主从模式, 其中, 所述有 效的校验结果包括: The edge device according to claim 15, wherein: the first PW redundancy negotiation mode comprises: an independent mode or a master-slave mode, wherein the valid verification result comprises: 第一 PW冗余协商模式和第二 PW冗余协商模式都是所述独立模式; 或 者  The first PW redundancy negotiation mode and the second PW redundancy negotiation mode are both the independent modes; or 所述第一边缘设备为所述主从模式的主动端, 且所述第二边缘设备为所 述主从模式的从动端; 或者  The first edge device is an active end of the master-slave mode, and the second edge device is a slave end of the master-slave mode; or 所述第二边缘设备为所述主从模式的主动端, 且所述第一边缘设备为所 述主从模式的从动端。  The second edge device is an active end of the master-slave mode, and the first edge device is a slave end of the master-slave mode.
PCT/CN2012/077205 2011-08-01 2012-06-20 Pseudo wire redundancy negotiation mode detection method, system and device thereof Ceased WO2013016983A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110218440.0 2011-08-01
CN201110218440.0A CN102263628B (en) 2011-08-01 2011-08-01 The detection method and system of pseudo-wire PW redundancy negotiation modes

Publications (1)

Publication Number Publication Date
WO2013016983A1 true WO2013016983A1 (en) 2013-02-07

Family

ID=45010103

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/077205 Ceased WO2013016983A1 (en) 2011-08-01 2012-06-20 Pseudo wire redundancy negotiation mode detection method, system and device thereof

Country Status (2)

Country Link
CN (1) CN102263628B (en)
WO (1) WO2013016983A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102263628B (en) * 2011-08-01 2017-10-27 中兴通讯股份有限公司 The detection method and system of pseudo-wire PW redundancy negotiation modes
CN102811153B (en) * 2012-08-17 2015-05-27 杭州华三通信技术有限公司 VLAN state negotiating method and edge device
CN110071830B (en) * 2019-04-15 2020-03-06 北京华三通信技术有限公司 Pseudo wire back switching method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212400A (en) * 2006-12-25 2008-07-02 华为技术有限公司 A method and system for negotiating pseudowire bidirectional forwarding detection session identifier
CN101631069A (en) * 2008-07-18 2010-01-20 华为技术有限公司 Method, system and equipment for pseudo wire parameter negotiation
CN102263628A (en) * 2011-08-01 2011-11-30 中兴通讯股份有限公司 Detection method of pseudo wire (PW) negotiation mode and system thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977150B (en) * 2010-11-05 2012-05-23 华为技术有限公司 A method and device for real-time restoration of VPN packet forwarding in L3VPN

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212400A (en) * 2006-12-25 2008-07-02 华为技术有限公司 A method and system for negotiating pseudowire bidirectional forwarding detection session identifier
CN101631069A (en) * 2008-07-18 2010-01-20 华为技术有限公司 Method, system and equipment for pseudo wire parameter negotiation
CN102263628A (en) * 2011-08-01 2011-11-30 中兴通讯股份有限公司 Detection method of pseudo wire (PW) negotiation mode and system thereof

Also Published As

Publication number Publication date
CN102263628B (en) 2017-10-27
CN102263628A (en) 2011-11-30

Similar Documents

Publication Publication Date Title
CN101212400B (en) Method and system for negotiating bidirectional forwarding detection session identifier for pseudo wire
CN103259724B (en) A kind of MPLS VPN implementation method, system and customer edge devices
CN101631069B (en) Method, system and equipment for pseudo wire parameter negotiation
CN101826990A (en) Method, device and system for detecting connectedness of virtual pseudo wires
CN103580894B (en) Method, equipment and the system of Operations, Administration and Maintenance OAM configurations
CN102820990B (en) Method and device for switching service protection
CN100499527C (en) Warning information transmission method, apparatus and network equipment
CN102164085B (en) Based on tunnel group protection implementation method and the device of multi-protocol label switching network
CN101924676B (en) Consultation method of control word ability and pseudowire establishing equipment
WO2011144088A2 (en) Method for service protection and access device
CN102546357A (en) Message forwarding method and network device
CN112737949A (en) Fault detection method and device, electronic equipment and computer readable medium
EP2621133B1 (en) Method and system for implementing pw control bit capability negotiation
CN102143060B (en) Method and device for building primary pseudowire and spare pseudowire
CN102170390B (en) Method and system for parameter negotiation
CN101674239B (en) Method and device for providing network service
WO2013016983A1 (en) Pseudo wire redundancy negotiation mode detection method, system and device thereof
CN102045239B (en) Implementation method and device of point-to-multipoint pseudowire protective network
JP6371399B2 (en) Interface parameter synchronization method and apparatus
Martini et al. Segmented Pseudowire
Sajassi et al. Layer 2 Virtual Private Network (L2VPN) Operations, Administration, and Maintenance (OAM) Requirements and Framework
WO2007030988A1 (en) A method for implementing bi-directional traffic engineering tunnel and the system as well as the router thereof
CN106850247A (en) A kind of pseudo-wire control word upgrade method
CN103220220B (en) The method and apparatus that a kind of pseudo-wire is established
Martini et al. RFC 6073: Segmented Pseudowire

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

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

Country of ref document: EP

Kind code of ref document: A1