[go: up one dir, main page]

WO2014029286A1 - Protection method of cross line card, relevant device, and method and system for access of line card service to ptn - Google Patents

Protection method of cross line card, relevant device, and method and system for access of line card service to ptn Download PDF

Info

Publication number
WO2014029286A1
WO2014029286A1 PCT/CN2013/081307 CN2013081307W WO2014029286A1 WO 2014029286 A1 WO2014029286 A1 WO 2014029286A1 CN 2013081307 W CN2013081307 W CN 2013081307W WO 2014029286 A1 WO2014029286 A1 WO 2014029286A1
Authority
WO
WIPO (PCT)
Prior art keywords
line card
protection
switching unit
main control
working
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/CN2013/081307
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 WO2014029286A1 publication Critical patent/WO2014029286A1/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery

Definitions

  • the present invention relates to a packet switching technology, and in particular to a method and system for implementing a cross-line card protection method, a related device, and a line card service accessing a Packet Transport Network (PTN).
  • PTN Packet Transport Network
  • MSP Multiplex Section Protection
  • SDH Synchronous Digital Hierarchy
  • Linear multiplex section protection includes 1+1 linear multiplex section protection and 1:N linear multiplex section protection (where N is an integer greater than or equal to 1 and less than or equal to 14), and they have in common when the working path fails.
  • the 1+1 linear multiplex section protection is that the working path and the protection path simultaneously transmit service packets, and the receiving end selects one of the service packets according to the state of the MSP group and discards another group;
  • 1 : N linear multiplexing Segment protection is a protection path shared by N working channels.
  • service packets are only transmitted in the working path.
  • the protection path can be used to transmit additional service packets or send idle frames. When the working path fails, it is used according to the priority.
  • the protection path transmits the service packet.
  • the receiving end receives the service according to the state of the MSP group.
  • MSP has been widely used.
  • the MSP function is implemented in the packet switching network.
  • line card protection there are three types: line card protection, line card protection, and inter-rack protection.
  • the protection inside the line card is mainly the protection inside the line card; the protection between the racks is mainly controlled at the protocol level, and the technologies in both aspects are relatively mature.
  • the MSP technology applied between the line cards in the packet switching network especially the scheme for accessing the PTN under the line card multiplex section protection under the line card service has not been implemented, therefore, providing a cross-line card multiplex section protection It is necessary for the line card service to access the PTN. Summary of the invention
  • the main purpose of the embodiments of the present invention is to provide a method and system for accessing a PTN across a line card protection method, a related device, and a line card service, to ensure that the line card service operates safely in the PTN network.
  • An embodiment of the present invention provides a method for protecting a cross-line card multiplex section.
  • the method includes: allocating a pair of internal control pseudo-line multi-protocol label switching (MPLS) on the working link and the protection link. ) tags, including internal control pseudowire uplink MPLS labels and internal control pseudowire downlink MPLS labels;
  • MPLS multi-protocol label switching
  • the master switching unit generates a forwarding table according to the state of the MSP group, and performs service packet transmission through the working link and/or the protection link through the outbound port of the forwarding table + the internal control pseudowire uplink/downlink MPLS label information.
  • the master switching unit generates a forwarding table according to the state of the MSP group, and the service packet is transmitted through the working link and/or the protection link by using the outbound port of the forwarding table and the uplink/downlink MPLS label information of the internal control pseudowire.
  • the master switching unit generates a forwarding table according to the state of the MSP group, and performs the service packet sent to the working line card through the working link or through the cascade port of the forwarding table by using the MPLS label of the forwarding port 1+ the internal control pseudowire.
  • the internal control pseudowire downlink MPLS label performs service packets sent to the protection line card through the protection link;
  • the master switching unit generates a forwarding table, and the service packet is sent through the working link and the protection link through the MPLS label of the forwarding table 1+ the internal control pseudowire downlink MPLS label and the cascade port 2+ internal control pseudowire downlink MPLS label.
  • work line card and protection line card To work line card and protection line card;
  • the working line card and the protection line card send service packets at the same time, and the main control switching unit generates a forwarding table according to the state of the MSP group, and forwards the MPLS label or cascade through the cascade port 1+ internal control pseudo line of the forwarding table.
  • the port 2+ internal control pseudowire uplink MPLS label performs service packets receiving the work line card or the protection line card.
  • the method further includes: determining whether the operation is normal, and according to the determination result, the service line card or the protection line card performs service packet transmission to the main control switching unit through the working link or the protection link.
  • the sending, by the working line card or the protection line card, the service packet to the main control switching unit by using the working link or the protection link, according to the determination result includes:
  • the work line card execution service message is sent to the main control switching unit through the working link;
  • the protection line card When the result of the determination is that the working line card is abnormal and the protection line card is running normally, the protection line card performs service packet transmission to the main control switching unit through the protection link.
  • the method further includes:
  • the working line card and the protection line card detect the running status of the device in real time to obtain detection information, and send the detection information to the main control exchange unit;
  • the main control exchange unit determines the state of the MSP group based on the detection information sent by the work line card and the protection line card received in real time.
  • the embodiment of the present invention further provides a method for protecting a line card service to access a PTN by using an inter-line card multiplex section, where the method includes: allocating a pair of internal control pseudowire MPLS labels on the working link and the protection link;
  • the working line card and/or the protection line card sends the uplink MPLS label of the service control packet to the main control switching unit, and the main control switching unit receives the service packet sent by the working line card or the protection line card, and
  • the uplink MPLS label of the internal control pseudowire encapsulated in the service packet is exchanged into the uplink MPLS label of the pseudo-line on the network side, and the uplink MPLS label of the tunnel is encapsulated, and the processed service packet is sent to the network side;
  • the master switching unit strips the tunnel downlink MPLS label encapsulated in the service packet.
  • the downlink MPLS label on the network side is switched to the downlink MPLS label of the internal control pseudowire, and the processed service packet is sent to the working line card and/or the protection line card, and the working line card and/or the protection line card receive the service report. Forward the user-side service packets.
  • the method further comprises
  • the working line card and the protection line card simultaneously send service packets to the main control switching unit, and the main control switching unit generates a forwarding table according to the state of the MSP group, and selects to receive the working line card or the protection line card according to the forwarding table information.
  • Business message
  • the working line card or the protection line card is sent to the main control switching unit through the working line card when the working line card is running normally according to the running state of the working line card or the protection line card; when the working line card is abnormally running, the service message passes The protection line card is sent to the master switching unit.
  • the method further comprises
  • the main control switching unit sends the service packet to the working line card and the protection line card;
  • the master switching unit generates a forwarding table according to the state of the MSP group, and selects to send the service packet to the working line card or the protection line card according to the forwarding table information.
  • the embodiment of the present invention further provides a line card, where the line card is used as a working line card, and the line card includes: a first detecting module, a first transceiver module, and a first label management module;
  • the first detecting module is configured to detect the running status of the working line card in real time to obtain detection information, and send the detection information to the first transceiver module;
  • the first transceiver module is configured to send the detection information to the main control switching unit, and is configured to send the service packet to the main control switching unit in the uplink direction, and send the service packet received from the main control switching unit to the downlink direction.
  • the first label management module is configured to: encapsulate the internal control pseudowire uplink MPLS label on the service packet sent to the main control switching unit, and send the service packet to the first transceiver module.
  • the line card further includes a first determining module configured to be in an uplink direction
  • the first detection module obtains the detection information to determine whether the working line card is running normally, and sends the determination result to the first transceiver module and the protection line card;
  • the first transceiver module is further configured to: when the determination result of the first determining module is yes, send the service packet to the main control switching unit.
  • the first transceiver module is further configured to receive a determination result of whether the protection line card is running normally. When the determination result is no, the service packet is sent to the main control exchange unit.
  • the embodiment of the present invention further provides a line card, where the line card is used as a protection line card, and the line card includes: a second detection module, a second transceiver module, and a second label management module;
  • the second detecting module is configured to detect the running status of the protection line card in real time to obtain detection information, and send the detection information to the second transceiver module;
  • the second transceiver module is configured to send the detection information to the main control switching unit, and is configured to send the service packet to the main control switching unit in the uplink direction, and send the service packet received from the main control switching unit to the downlink direction.
  • the second label management module is configured to: encapsulate the uplink MPLS label of the internal control pseudowire on the service packet sent to the main control switching unit, and send the service packet to the second transceiver module.
  • the protection line card further includes a second determining module, configured to determine, in the uplink direction, when the working line card or the protection line card sends the service packet to the main control switching unit, according to the detection information obtained by the second detecting module. Protecting the line card from running normally, and sending the determination result to the working line card and the second transceiver module;
  • the second transceiver module is further configured to receive a determination result of whether the work line card is running normally. When the determination result is no, and the determination result of the second determination module is yes, the service packet is sent. Give the master exchange unit.
  • the embodiment of the present invention further provides a main control switching unit, where the main control switching unit includes: a third transceiver module, a central processing module, a switching module, and a third label management module;
  • the third transceiver module is configured to receive the detection information of the working line card and the protection line card; and is configured to send the service packet sent by the working line card or the protection line card to the network side in the uplink direction; The service packet sent by the network side is sent to the working line card and/or the protection line card.
  • the central processing module is configured to determine the state of the MSP group according to the detection information of the working line card and the protection line card received by the third transceiver module, and generate a forwarding table according to the state of the MSP group, and send a forwarding table to the switching module;
  • the switching module is configured to perform switching to a working link or a protection link according to the forwarding table information
  • the third label management module is configured to exchange, in the uplink direction, the uplink MPLS label of the internal control pseudowire encapsulated by the service packet received by the third transceiver module from the work line card or the protection line card into the uplink MPLS label of the pseudowire on the network side,
  • the tunnel MPLS label is encapsulated and sent by the third transceiver module to the network side.
  • the downlink MPLS label encapsulated in the service packet received by the third transceiver module from the network side is stripped in the downlink direction.
  • the downlink MPLS label switching is an internal control pseudowire downlink MPLS label, which is sent by the third transceiver module to the working line card and/or the protection line card.
  • the embodiment of the present invention further provides a system for protecting a line card service from accessing a PTN by using a line card multiplex section, and the system includes: a working line card, a protection line card, and a main control switching unit according to the embodiment of the present invention.
  • the work line card includes: a first detection module, a first transceiver module, a first label management module, and a first transceiver module;
  • the protection line card includes: a second detection module, a second transceiver module, and a second label management Module and second decision module.
  • the continuity of the service transmission in the PTN network can be ensured, and the security and reliability of the service transmission are well guaranteed.
  • 1 is a schematic structural diagram of a system for accessing a PTN of a line card service under the protection of a cross-line card multiplex section according to an embodiment of the present invention
  • 2 is a schematic flowchart of a method for protecting a line card service from accessing a PTN by using a cross-line card multiplex section according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a method for a cross-line card MSP 1+1 to protect a downlink line card service from accessing a PTN according to an embodiment of the present invention
  • FIG. 4 is a schematic flowchart of a method for a line card MSP 1+1 to protect an uplink line card service from accessing a PTN according to an embodiment of the present invention
  • FIG. 5 is a schematic flowchart of a method for protecting a downlink line card service from accessing a PTN according to an embodiment of the present invention
  • FIG. 6 is a schematic flowchart of a method for protecting an uplink line card service from accessing a PTN according to an embodiment of the present invention. detailed description
  • FIG. 1 is a schematic diagram of a system for accessing a PTN of a line card service under the protection of a cross-line card multiplex section according to an embodiment of the present invention.
  • the system includes: a work line card 11, a protection line card 12, and a master control exchange. Unit 13; where:
  • the line card 11 is configured to detect the running status of the device in real time to obtain the detection information, and send the detection information to the main control switching unit 13; and configured to send the uplink MPLS label of the service packet encapsulation in the uplink direction to the main control
  • the switching unit 13 sends the service packet received from the main control switching unit 13 to the user side in the downlink direction;
  • the protection line card 12 is configured to detect the running status of the device in real time and obtain the detection information, and send the detection information to the main control switching unit 13; and configured to send the uplink MPLS label of the service packet encapsulation in the uplink direction to the main control
  • the switching unit 13 sends the service packet received from the main control switching unit 13 to the user side in the downlink direction;
  • the main control switching unit 13 is configured to receive the detection information sent by the working line card 11 or the protection line card 12, determine the state of the MSP group, generate a forwarding table according to the state of the MSP group, and execute the working link. Or the protection link is switched; the uplink MPLS label of the internal control pseudowire encapsulated in the service packet is switched to the uplink MPLS label of the network side in the uplink direction, and the uplink MPLS label of the tunnel is encapsulated, and the processed service is encapsulated.
  • the packet is sent to the network side; the downlink MPLS label encapsulated in the service packet is stripped in the downlink direction, and the downlink MPLS label on the network side is switched to the downlink MPLS label of the internal control pseudowire, and the processed service packet is sent to the working line.
  • the main control switching unit 13 is generally an application specific integrated circuit (ASIC) switching chip, which can be designed and manufactured according to the needs of the specified application; wherein the main control switching unit 13 and the working line card 11 Connected through the cascade port 1; the main control switch unit 13 and the protection line card 12 are connected through the cascade port 2;
  • ASIC application specific integrated circuit
  • the information contained in the service link or the protection link between the online card and the main control switching unit 13 is an internal control pseudowire MPLS label, an Ethernet type, and a destination medium access control (Medium/Media Access Control).
  • the service packet exchanged between the master switching unit 13 and the network side includes the pseudo-line MPLS label on the network side, the tunnel MPLS label, the Ethernet type, and the virtual local area network ( Virtual Local Area Network (VLAN) information, destination MAC address, address, source MAC address, address, etc.
  • VLAN Virtual Local Area Network
  • the destination MAC address, address, and source MAC address here are because the destination MAC address and source MAC address are changed when the service packet is transmitted between the master switching unit 13 and the network side to distinguish it from the destination MAC address and the source MAC address. This is the same as the prior art and will not be described here.
  • the working line card 11 includes: a first detecting module 111, a first transceiver module 112, and a first tag management module 113; wherein:
  • the first detecting module 111 is configured to detect the running status of the working line card 11 in real time to obtain detection information, and send the detection information to the first transceiver module 112;
  • the first transceiver module 112 is configured to send the detection information to the main control switching unit 13; it is further configured to send the service packet to the main control switching unit 13 in the uplink direction; The service packet received by the switching unit 13 is sent to the user side.
  • the first label management module 113 is configured to encapsulate the internal control pseudowire uplink MPLS label on the service packet sent to the main control switching unit 13, and send the service packet to the first transceiver module 112.
  • the working line card 11 further includes a first determining module 114 configured to be in the uplink direction, when the working line card 11 or the protection line card 12 sends a service packet to the main control switching unit 13, according to the first detecting module 111.
  • the detection information determines whether the work line card 11 is operating normally, and sends the determination result to the first transceiver module 112 and the protection line card 12;
  • the first transceiver module 112 is further configured to send the service packet to the main control switching unit 13 when the determination result of the first determining module 114 is YES.
  • the first transceiver module 112 is further configured to receive a determination result of whether the protection line card 12 is running normally. When the determination result is no, the service packet is sent to the main control switching unit 13.
  • the protection line card 12 includes: a second detection module 121, a second transceiver module 122, and a second label management module 123;
  • the second detecting module 121 is configured to detect the running status of the protection line card 12 in real time to obtain detection information, and send the detection information to the second transceiver module 122;
  • the second transceiver module 122 is configured to send the detection information to the main control switching unit 13; it is further configured to send the service packet to the main control switching unit 13 in the uplink direction; and receive the service received from the main control switching unit 13 in the downlink direction. The message is sent to the user side;
  • the second label management module 123 is configured to encapsulate the internal control pseudowire uplink MPLS label on the service packet sent to the main control switching unit 13, and send the service packet to the second transceiver module 122.
  • the protection line card 12 further includes a second determining module 124 configured to be in the uplink direction, when the working line card 11 or the protection line card 12 sends a service packet to the main control switching unit 13, according to the second detecting module 121.
  • the detection information determines whether the protection line card 12 is operating normally, and the determination result is Send to the work line card 11 and the second transceiver module 122;
  • the second transceiver module 122 is further configured to receive a determination result of whether the work line card 11 is operating normally. When the determination result is no, and the determination result of the second determination module 124 is YES, the service is performed. The message is sent to the master switching unit 13.
  • the main control switching unit 13 includes: a third transceiver module 131, a central processing module 132, a switching module 133, and a third label management module 134;
  • the third transceiver module 131 is configured to receive the detection information of the work line card 11 and the protection line card 12; and is configured to send the service packet sent by the work line card 11 or the protection line card 12 to the network side in the uplink direction. Sending the service packet sent by the network side to the working line card 11 and/or the protection line card 12 in the downlink direction;
  • the central processing module 132 is configured to determine the state of the MSP group according to the detection information of the working line card 11 and the protection line card 12 received by the third transceiver module 131, and generate a forwarding table according to the state of the MSP group, and send the forwarding table to the switching module 133. Forwarding table
  • the switching module 133 is configured to perform switching to the working link or the protection link according to the forwarding table information
  • the third label management module 134 is configured to exchange the uplink MPLS label of the internal control pseudowire encapsulated by the service packet received by the third transceiver module 131 from the line card into the uplink MPLS label of the network side, and encapsulate the tunnel at the same time.
  • the uplink MPLS label is sent to the network side by the third transceiver module 131.
  • the downlink MPLS label encapsulated in the service packet received by the third transceiver module 131 from the network side is stripped in the downlink direction, and the pseudowire on the network side is disconnected.
  • the downlink MPLS label switch is an internal control pseudowire downlink MPLS label, and is sent by the third transceiver module 131 to the work line card 11 and/or the protection line card 12.
  • the forwarding table may be an Access Control List (ACL).
  • the forwarding table information includes a cascade port + an internal control pseudowire uplink/downlink MPLS label, and the switching module 133 controls the cascade port 1 or the 2+ internal control pseudowire uplink/downlink MPLS label. Switching between the working link or the protection link, and controlling the third transceiver module 131 to receive the service packet sent by the first transceiver module 111 or the second transceiver module 121 in the uplink direction; or controlling the third transceiver module 131 The service packet is sent to the first transceiver module 111 and/or the second transceiver module 121 in the downlink direction.
  • ACL Access Control List
  • the second determining module 124, the central processing module 132, the switching module 133, and the third label management module 134 in the main control switching unit 13 may be implemented by a central processing unit (CPU) in the device.
  • the working line card 11 in the first transceiver module 112 the working line card 11 in the first transceiver module 112
  • the The second transceiver module 122 in the protection line card 12 and the third transceiver module 131 in the main control switching unit 13 can be implemented by a transceiver or a transceiver antenna in practical applications.
  • FIG. 2 is a schematic flowchart of a method for protecting a line card service to a PTN by using a cross-line card multiplex section according to an embodiment of the present invention. As shown in FIG. 2, the method includes the following steps:
  • Step 201 The working line card and the protection line card detect their own running status in real time to obtain detection information, and send the detection information to the main control switching unit.
  • Step 202 The master switching unit determines the state of the MSP group according to the received detection information sent by the working line card and the protection line card, generates a forwarding table according to the state of the MSP group, and performs switching of the working link or the protection link.
  • a pair of internal control pseudowire MPLS labels are allocated on the working link and the protection link, including an internal pseudowire uplink MPLS label and an internal pseudowire downlink MPLS label.
  • the state of the MSP group includes a protocol state and a protection state.
  • the protocol state refers to the working line card running normally, and the service packet is sent to the user side or to the main control switching unit through the working line card, or the service packet passes the working line.
  • the card and the protection line card are sent to the user side or to the main control exchange unit.
  • the main control switching unit selects the service packet of the working line card to receive; the protection status means that the working line card runs abnormally, and the service packet can only pass the protection line.
  • the card is sent to the user side or to the master switching unit.
  • the switching of the working link or the protection link by the main control switching unit is performed by the central processing module inside the main control switching unit, and the forwarding table is generated according to the state of the MSP group, and the forwarding table is sent to the switching module to implement the switching module.
  • the service packet is sent to the working line card and/or through the cascade port 1 through the cascade port 1+ internal control pseudowire downlink MPLS label and/or the cascade port 2+ internal control pseudowire downlink MPLS label in the forwarding table.
  • the port 2 is sent to the protection line card.
  • the service packet is transmitted in the uplink direction. Steps 203 to 204:
  • Step 203 The working line card and/or the protection line card send the uplink MPLS label of the service packet encapsulation internal control packet to the main control switching unit.
  • the working line card and/or the protection line card sends the uplink MPLS label of the internal control pseudowire of the service packet to the main control switching unit: the working line card and the protection line card simultaneously send the service packet encapsulation internal control pseudowire uplink MPLS label
  • the master switching unit; or the working line card determines the state of the MSP group according to the detection information obtained by the operating state of the operating line. If the state of the MSP group is the protocol state, the service packet sent from the user side is received from the working line card, and The service packet encapsulates the internal control pseudowire upstream MPLS label and sends it to the master switching unit. If the MSP group status is protected, the service packet sent from the user side is received from the protection line card, and the service packet is encapsulated into the internal control pseudowire.
  • the uplink MPLS label is sent to the master switching unit.
  • Step 204 The main control switching unit exchanges the uplink MPLS label of the internal control pseudowire of the service packet into the uplink MPLS label of the pseudowire on the network side, and encapsulates the uplink MPLS label of the tunnel, and sends the MPLS label to the network side.
  • the main control switching unit if the working line card and the protection line card simultaneously send the service packet to the main control switching unit, the main control switching unit generates a forwarding table according to the state of the MSP group, and uplinks the MPLS label according to the concatenation port 1+ internal control pseudo line of the forwarding table. Or cascade port 2+ internal control pseudowire uplink MPLS label information selection receiver As a service packet of the line card or the protection line card, and then performing the method described in step 204; if the service line card or the protection line card sends the service message to the main control exchange unit, the main control exchange unit selects to receive The process directly performs the method described in step 204.
  • the service packet is transmitted in the downlink direction. Steps 205 to 206:
  • Step 205 The main control switching unit strips the downlink MPLS label encapsulated in the service packet, and switches the downlink MPLS label of the network side to the downlink MPLS label of the internal control pseudo line, and sends the service packet to the line card.
  • the main control switching unit sends the service packet to the line card: the main control switching unit strips the tunnel downlink MPLS label encapsulated in the service packet, and exchanges the downlink MPLS label of the pseudo-line on the network side into the downlink MPLS label of the internal control pseudo line.
  • the processed service packet is sent to the working line card and the protection line card at the same time; or the main control switching unit strips the tunnel downlink MPLS label encapsulated in the service packet, and the downlink MPLS label on the network side is switched to the internal control pseudo line downlink.
  • the MPLS label generates a forwarding table according to the state of the MSP group, and sends the processed service packet to the work according to the downlink MPLS label of the forwarding table 1+ the internal control pseudowire downlink MPLS label or the cascade interface 2+ internal control pseudowire.
  • Line card or protection line card
  • Step 206 The line card forwards the service packet of the user side.
  • both the work line card and the protection line card can receive the service message, or the work line card or the protection line card can receive the service message. In either case, the line card that receives the service message will perform the user. Forwarding of side service packets.
  • the protection of the cross-line card multiplex section in the packet switched network mainly includes MSP 1+1 protection and MSP 1: 1 protection.
  • FIG. 3 to FIG. 6 respectively show an implementation process of the line card service access PTN protected by the over-line card multiplex section in the embodiment of the present invention.
  • the working line card and the protection line card are both Synchronous Transport Module-4 (STM-4) line cards, working line cards and the cascade port 1 of the main control switching unit, and allocate a pair of internal control pseudo Thread (pseudo wire, pw) MPLS label; protection line card and The cascade port 2 of the main control switching unit is connected, and a pair of internal control pseudowire MPLS labels are allocated.
  • the service packet is carried by the pseudowire on the network side and enters and exits from the network side through the tunnel.
  • the implementation process of the line card multiplex section protecting the offline card service accessing PTN in the embodiment of the present invention is as follows:
  • FIG. 3 is a schematic flowchart of a method for a cross-line card MSP 1+1 to protect a downlink line card service from accessing a PTN according to an embodiment of the present invention. As shown in Figure 3, the following steps are included:
  • Step 301 The service packet is sent from the network side to the main control switching unit.
  • the service packet has encapsulated the tunnel downlink MPLS label 1000 and the network side pseudowire downlink MPLS label 100.
  • Step 302 The main control switching unit strips the tunnel downlink MPLS label encapsulated in the service packet, and exchanges the downlink MPLS label of the pseudowire on the network side into the downlink MPLS label of the internal control pseudowire.
  • the main control switching unit strips the downlink MPLS label 1000 encapsulated in the service packet, and exchanges the pseudo-line downlink MPLS label 100 on the network side into the internal control pseudo-line downlink MPLS label 10.
  • Step 303 The master switching unit generates a forwarding table according to the state of the MSP group, and directs the outgoing port of the service packet to the cascade port 1 and the cascade port 2.
  • the central processing module inside the main control switching unit generates a downlink forwarding table according to the state of the MSP group, and delivers the forwarding table to the switching module. Because it is MSP 1+1 protection, the main control switching unit simultaneously goes to the STM-4 working line.
  • the card and the STM-4 protection line card send service packets, and the MPLS label 10 and the cascade port 2+ internal control pseudowire downlink MPLS label 10 matched by the forwarding table are matched by the forwarding table to determine the purpose of the service packet.
  • the ports are cascade port 1 and cascade port 2.
  • Steps 304 to 305 The main control switching unit sends the service packet to the working line card and the protection line card through the expansion port 1 and the expansion port 2, and the working line card and the protection line card receive the service packet and then perform the user side. Forwarding of service packets.
  • the main control switching unit sends the service packet to the STM-4 working line card through the cascade port 1, and is sent to the STM-4 protection line card through the cascade port 2, the STM-4 work line card and the STM-4.
  • the protection line card receives the service packet, it forwards it to the user.
  • FIG. 4 is a schematic flowchart of a method for a cross-line card MSP 1+1 to protect an uplink line card service from accessing a PTN according to an embodiment of the present invention. As shown in Figure 4, the following steps are included:
  • Step 401 The working line card and the protection line card encapsulate the service packet with the uplink MPLS label of the internal control pseudowire, and send it to the main control switching unit through the cascade port 1 and the cascade port 2.
  • the STM-4 working line card encapsulates the service packet with the internal control pseudowire uplink MPLS label 20, and sends it to the main control switching unit through the cascade port 1; the STM-4 protection line card uses the internal control uplink MPLS label 20 for the service packet. The encapsulation is sent to the main control switching unit through the cascade port 2.
  • Step 402 The master switching unit generates a forwarding table according to the state of the MSP group, and selects the expansion port 1 or the cascade port 2 to receive the service packet.
  • the master switching unit determines whether the state of the MSP group is a protocol state or a protection state according to the detection information of the STM-4 working line card and the STM-4 protection line card received in real time, according to the state of the MSP group, the CPU inside the main control switching unit An uplink forwarding table is generated, and the forwarding table is delivered to the switching module.
  • the master switching unit selects the service packet of the STM-4 working line card by using the uplink port 1+ internal control pseudowire uplink MPLS label 20 information matched by the forwarding table; if the MSP group status is In the protection state, the master switching unit selects the uplink MPLS label 20 information of the cascade port 2+ internal control pseudowire matched by the forwarding table, and selects to receive the service packet of the STM-4 protection line card.
  • Step 403 to step 404 The master switching unit exchanges the uplink MPLS label of the internal control pseudowire encapsulated in the service packet sent from the STM-4 working line card or the STM-4 protection line card to the network side pseudo
  • the upstream MPLS label of the line encapsulates the upstream MPLS label of the tunnel and sends the processed service packet from the network side port.
  • the main control switching unit exchanges the uplink MPLS label 20 of the internal control pseudowire encapsulated in the service packet into the pseudo line of the network side.
  • the MPLS label 200 encapsulates the tunnel upstream MPLS label 2000, and changes the destination MAC address and the source MAC address of the service packet, adds the VLAN information to the service packet, and sends the processed service packet from the network side port.
  • FIG. 5 is a schematic flowchart of a method for protecting a downlink line card service from accessing a PTN according to an embodiment of the present invention. As shown in Figure 5, the following steps are included:
  • Step 501 The service packet is sent from the network side to the main control switching unit.
  • the service packet enters from the Gigabit or 10 Gigabit port on the network side of the main control switching unit; the service packet has encapsulated the tunnel downlink MPLS label 1000, and the network side pseudowire line MPLS label 100.
  • Step 502 The main control switching unit strips the downlink MPLS label of the tunnel, and exchanges the MPLS label of the pseudowire on the network side into the downlink MPLS label of the internal control pseudowire.
  • the main control switching unit strips the downlink MPLS label 1000 encapsulated in the service packet, and exchanges the pseudo-line downlink MPLS label 100 on the network side into the internal control pseudo-line downlink MPLS label 10.
  • Step 503 The master switching unit generates a forwarding table according to the state of the MSP group, and directs the outbound port of the service packet to the cascade port 1 or the cascade port 2.
  • the master switching unit determines whether the state of the MSP group is a protocol state or a protection state according to the detection information of the STM-4 working line card and the STM-4 protection line card received in real time, according to the state of the MSP group, the CPU inside the main control switching unit A downlink forwarding table is generated, and the forwarding table is delivered to the switching module. If the state of the MSP group is the protocol state, the master switching unit selects to send the service report to the STM-4 working line card by using the cascading port 1+ internal control pseudowire downlink MPLS label 10 information matched by the forwarding table.
  • the master switching unit selects the downlink MPLS label 10 information of the cascade port 2+ internal control pseudowire matched by the forwarding table, and selects to send the service packet to the STM-4 protection line card.
  • Step 504 to step 505 The main control switching unit sends the service packet to the working line card through the expansion port 1, or sends the protection line card through the expansion port 2, and the working line card or the protection line card receives the service packet. Forwards user-side service packets.
  • the service packet is sent to the STM-4 working line card through the cascade port 1, or sent to the protection STM-4 line card through the cascade port 2, the STM-4 work line card or the STM-4 protection line card.
  • the user-side service packet is forwarded.
  • FIG. 6 is a schematic flowchart of a method for protecting an uplink line card service from accessing a PTN according to an embodiment of the present invention. As shown in Figure 6, the following steps are included:
  • Step 601 The working line card or the protection line card determines whether the working line card or the protection line card is operating normally according to the detection information obtained by the running status of the working line card or the protection line card.
  • the STM-4 working line card determines whether it is running normally according to the detection information obtained by its own running status. If the determination result is yes, the service message received from the user side is sent to the main control through the STM-4 working line card. If the result of the determination is no, and the protection line card determines that the protection line card is operating normally according to the detection information obtained by the operation state of the operation line, the service packet received from the user side is sent to the main exchange unit through the STM-4 protection line card. .
  • Step 602 According to the determination result, the working line card or the protection line card encapsulates the service packet with the uplink MPLS label of the internal control pseudowire, and sends the processed service packet to the main control switching unit.
  • the STM-4 working line card receives the service packet sent by the user side, and then encapsulates the service packet with the internal control pseudowire upstream MPLS label 20, and the processed packet is processed.
  • the service packet is sent to the master switching unit. If the STM-4 line card is abnormal and the STM-4 line card is working properly, the STM-4 line card receives the service packet from the user side.
  • the service packet is encapsulated by the internal control pseudowire upstream MPLS label 20, and the processed service packet is processed.
  • the text is sent to the master switching unit through the STM-4 protection line card.
  • Step 603 The working line card sends the service packet to the main control switching unit through the expansion port 2 through the cascade port 1 or the protection line card.
  • Step 604 to step 605 The main control switching unit exchanges the uplink MPLS label of the internal control pseudowire encapsulated in the service packet encapsulated by the working line card or the protection line card into the uplink MPLS label of the network side, and encapsulates the uplink MPLS label of the tunnel. Send it out from the network side port.
  • the main control switching unit exchanges the uplink MPLS label 20 of the internal control pseudowire encapsulated in the service packet into the pseudo line of the network side.
  • the MPLS label 200 encapsulates the tunnel upstream MPLS label 2000, and changes the destination MAC address and the source MAC address of the service packet, adds the VLAN information to the service packet, and sends the processed service packet from the network side port.
  • the main control switching device when the packet is transmitted between the main control switching device and the line card, the working line card and the protection line card are set, and the main control switching device executes the packet through the working line card and/or the protection line according to the state of the MSP group. Card transfer. It ensures the continuity of the transmission of services in the PTN network, which ensures the security and reliability of service transmission.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Filamentary Materials, Packages, And Safety Devices Therefor (AREA)

Description

跨线卡保护方法、 相关装置及线卡业务接入 PTN的方法及系统 技术领域  Cross-line card protection method, related device and line card service access PTN method and system

本发明涉及分组交换技术, 具体涉及一种跨线卡保护方法、 相关装置 及线卡业务接入分组交换网 (Packet Transport Network, PTN ) 的方法及系 统。 背景技术  The present invention relates to a packet switching technology, and in particular to a method and system for implementing a cross-line card protection method, a related device, and a line card service accessing a Packet Transport Network (PTN). Background technique

复用段保护 (Multiplex Section Protection, MSP )是同步数字传送网 ( Synchronous Digital Hierarchy, SDH ) 的一种保护机制, 它主要应用在网 络的边缘。 在 PTN中的 MSP即为线性复用段保护。  Multiplex Section Protection (MSP) is a protection mechanism for Synchronous Digital Hierarchy (SDH), which is mainly applied at the edge of the network. The MSP in the PTN is linear multiplex section protection.

线性复用段保护包括 1+1线性复用段保护和 1 :N线性复用段保护 (其 中 N是大于等于 1小于等于 14的整数), 它们的共同点都是当工作通路发 生故障时, 将业务倒换到保护通路上。 区别在于, 1+1线性复用段保护是工 作通路和保护通路同时传送业务报文, 接收端根据 MSP组状态选择接收其 中一组业务报文而丟弃另外一组; 1 :N线性复用段保护是 N条工作通路共 用一条保护通路, 正常工作时业务报文只在工作通路传送, 保护通路可用 来传送额外业务报文或发送空闲帧, 当工作通路出现故障时, 按照优先级 大小使用保护通路传送业务报文, 同样,接收端根据 MSP组状态接收业务。  Linear multiplex section protection includes 1+1 linear multiplex section protection and 1:N linear multiplex section protection (where N is an integer greater than or equal to 1 and less than or equal to 14), and they have in common when the working path fails. Switch the service to the protection path. The difference is that the 1+1 linear multiplex section protection is that the working path and the protection path simultaneously transmit service packets, and the receiving end selects one of the service packets according to the state of the MSP group and discards another group; 1 : N linear multiplexing Segment protection is a protection path shared by N working channels. During normal operation, service packets are only transmitted in the working path. The protection path can be used to transmit additional service packets or send idle frames. When the working path fails, it is used according to the priority. The protection path transmits the service packet. Similarly, the receiving end receives the service according to the state of the MSP group.

为了保护线卡上业务的稳定传输, MSP 已经得到了广泛的使用。 分组 交换网中实现 MSP功能, 按照具体的保护配置方式, 分为三种类型: 线卡 内保护、 线卡间保护和机架间保护。 线卡内保护主要是线卡内部进行保护; 机架间保护主要是协议层面进行控制, 这两方面的技术都比较成熟。 但是, 应用在分组交换网中线卡间的 MSP技术, 尤其是在跨线卡复用段保护下线 卡业务接入 PTN的方案还没有实现, 因此, 提供一种跨线卡复用段保护下 线卡业务接入 PTN的方案是十分必要的。 发明内容 In order to protect the stable transmission of services on line cards, MSP has been widely used. The MSP function is implemented in the packet switching network. According to the specific protection configuration mode, there are three types: line card protection, line card protection, and inter-rack protection. The protection inside the line card is mainly the protection inside the line card; the protection between the racks is mainly controlled at the protocol level, and the technologies in both aspects are relatively mature. However, the MSP technology applied between the line cards in the packet switching network, especially the scheme for accessing the PTN under the line card multiplex section protection under the line card service has not been implemented, therefore, providing a cross-line card multiplex section protection It is necessary for the line card service to access the PTN. Summary of the invention

有鉴于此, 本发明实施例的主要目的在于提供一种跨线卡保护方法、 相关装置及线卡业务接入 PTN的方法及系统,确保线卡业务在 PTN网络中 安全运行。  In view of this, the main purpose of the embodiments of the present invention is to provide a method and system for accessing a PTN across a line card protection method, a related device, and a line card service, to ensure that the line card service operates safely in the PTN network.

为达到上述目的, 本发明实施例的技术方案是这样实现的:  To achieve the above objective, the technical solution of the embodiment of the present invention is implemented as follows:

本发明实施例提供了一种跨线卡复用段保护的方法, 所述方法包括: 在工作链路和保护链路各分配一对内控伪线多协议标签交换 ( Multi-Protocol Label Switching, MPLS )标签, 包括内控伪线上行 MPLS 标签和内控伪线下行 MPLS标签;  An embodiment of the present invention provides a method for protecting a cross-line card multiplex section. The method includes: allocating a pair of internal control pseudo-line multi-protocol label switching (MPLS) on the working link and the protection link. ) tags, including internal control pseudowire uplink MPLS labels and internal control pseudowire downlink MPLS labels;

主控交换单元根据 MSP组状态生成转发表, 通过转发表的出端口 +内 控伪线上行 /下行 MPLS 标签信息执行业务报文是通过工作链路和 /或保护 链路传输。  The master switching unit generates a forwarding table according to the state of the MSP group, and performs service packet transmission through the working link and/or the protection link through the outbound port of the forwarding table + the internal control pseudowire uplink/downlink MPLS label information.

优选地, 所述主控交换单元根据 MSP组状态生成转发表, 通过转发表 的出端口 +内控伪线上行 /下行 MPLS 标签信息执行业务报文是通过工作链 路和 /或保护链路传输, 包括:  Preferably, the master switching unit generates a forwarding table according to the state of the MSP group, and the service packet is transmitted through the working link and/or the protection link by using the outbound port of the forwarding table and the uplink/downlink MPLS label information of the internal control pseudowire. Includes:

主控交换单元根据 MSP组状态生成转发表, 通过转发表的级联口 1+ 内控伪线下行 MPLS标签执行业务报文通过工作链路发往工作线卡或通过 转发表的级联口 2+内控伪线下行 MPLS标签执行业务报文通过保护链路发 往保护线卡;  The master switching unit generates a forwarding table according to the state of the MSP group, and performs the service packet sent to the working line card through the working link or through the cascade port of the forwarding table by using the MPLS label of the forwarding port 1+ the internal control pseudowire. The internal control pseudowire downlink MPLS label performs service packets sent to the protection line card through the protection link;

或主控交换单元生成转发表, 通过转发表的级联口 1+内控伪线下行 MPLS标签和级联口 2+内控伪线下行 MPLS标签执行业务报文通过工作链 路和保护链路同时发往工作线卡和保护线卡;  Or the master switching unit generates a forwarding table, and the service packet is sent through the working link and the protection link through the MPLS label of the forwarding table 1+ the internal control pseudowire downlink MPLS label and the cascade port 2+ internal control pseudowire downlink MPLS label. To work line card and protection line card;

或工作线卡和保护线卡同时发来业务报文, 主控交换单元根据 MSP组 状态生成转发表, 通过转发表的级联口 1+内控伪线上行 MPLS标签或级联 口 2+内控伪线上行 MPLS标签执行接收工作线卡或保护线卡的业务报文。 优选地, 所述方法还包括: 定自身是否运行正常, 根据判定结果, 工作线卡或保护线卡执行业务报文 通过工作链路或保护链路发送给主控交换单元。 Or the working line card and the protection line card send service packets at the same time, and the main control switching unit generates a forwarding table according to the state of the MSP group, and forwards the MPLS label or cascade through the cascade port 1+ internal control pseudo line of the forwarding table. The port 2+ internal control pseudowire uplink MPLS label performs service packets receiving the work line card or the protection line card. Preferably, the method further includes: determining whether the operation is normal, and according to the determination result, the service line card or the protection line card performs service packet transmission to the main control switching unit through the working link or the protection link.

优选地, 所述根据判定结果工作线卡或保护线卡执行业务报文通过工 作链路或保护链路发送给主控交换单元, 包括:  Preferably, the sending, by the working line card or the protection line card, the service packet to the main control switching unit by using the working link or the protection link, according to the determination result, includes:

当所述判定结果为工作线卡运行正常时, 则工作线卡执行业务报文通 过工作链路发送给主控交换单元;  When the result of the determination is that the working line card is running normally, the work line card execution service message is sent to the main control switching unit through the working link;

当所述判定结果为工作线卡运行异常且保护线卡运行正常时, 则保护 线卡执行业务报文通过保护链路发送给主控交换单元。  When the result of the determination is that the working line card is abnormal and the protection line card is running normally, the protection line card performs service packet transmission to the main control switching unit through the protection link.

优选地, 所述方法还包括:  Preferably, the method further includes:

工作线卡和保护线卡实时检测自身的运行状态得到检测信息, 并将检 测信息发送给主控交换单元;  The working line card and the protection line card detect the running status of the device in real time to obtain detection information, and send the detection information to the main control exchange unit;

主控交换单元根据实时收到的工作线卡和保护线卡发来的检测信息判 定 MSP组状态。  The main control exchange unit determines the state of the MSP group based on the detection information sent by the work line card and the protection line card received in real time.

本发明实施例还提供了一种跨线卡复用段保护下线卡业务接入 PTN的 方法, 所述方法包括: 在工作链路和保护链路各分配一对内控伪线 MPLS 标签;  The embodiment of the present invention further provides a method for protecting a line card service to access a PTN by using an inter-line card multiplex section, where the method includes: allocating a pair of internal control pseudowire MPLS labels on the working link and the protection link;

上行方向, 工作线卡和 /或保护线卡将业务报文封装内控伪线上行 MPLS标签发送给主控交换单元,主控交换单元接收工作线卡或保护线卡发 来的业务报文, 并将业务报文上封装的内控伪线上行 MPLS标签交换为网 络侧的伪线上行 MPLS标签, 同时封装隧道上行 MPLS标签, 将处理后的 业务报文发送给网络侧;  In the uplink direction, the working line card and/or the protection line card sends the uplink MPLS label of the service control packet to the main control switching unit, and the main control switching unit receives the service packet sent by the working line card or the protection line card, and The uplink MPLS label of the internal control pseudowire encapsulated in the service packet is exchanged into the uplink MPLS label of the pseudo-line on the network side, and the uplink MPLS label of the tunnel is encapsulated, and the processed service packet is sent to the network side;

下行方向,主控交换单元剥离业务报文上封装的隧道下行 MPLS标签, 将网络侧的伪线下行 MPLS标签交换为内控伪线下行 MPLS标签, 将处理 后的业务报文发送给工作线卡和 /或保护线卡, 工作线卡和 /或保护线卡收到 业务报文后进行用户侧业务报文的转发。 In the downlink direction, the master switching unit strips the tunnel downlink MPLS label encapsulated in the service packet. The downlink MPLS label on the network side is switched to the downlink MPLS label of the internal control pseudowire, and the processed service packet is sent to the working line card and/or the protection line card, and the working line card and/or the protection line card receive the service report. Forward the user-side service packets.

优选地, 所述方法还包括,  Preferably, the method further comprises

在上行方向, 所述工作线卡和保护线卡同时发送业务报文给主控交换 单元, 主控交换单元根据 MSP组状态生成转发表, 根据转发表信息选择接 收工作线卡或保护线卡的业务报文;  In the uplink direction, the working line card and the protection line card simultaneously send service packets to the main control switching unit, and the main control switching unit generates a forwarding table according to the state of the MSP group, and selects to receive the working line card or the protection line card according to the forwarding table information. Business message

或者所述工作线卡或保护线卡根据自身的运行状态, 当工作线卡运行 正常时, 业务报文通过工作线卡发送给主控交换单元; 当工作线卡运行异 常时, 业务报文通过保护线卡发送给主控交换单元。  Or the working line card or the protection line card is sent to the main control switching unit through the working line card when the working line card is running normally according to the running state of the working line card or the protection line card; when the working line card is abnormally running, the service message passes The protection line card is sent to the master switching unit.

优选地, 所述方法还包括,  Preferably, the method further comprises

在下行方向, 所述主控交换单元将业务报文发送给工作线卡和保护线 卡;  In the downlink direction, the main control switching unit sends the service packet to the working line card and the protection line card;

或者所述主控交换单元根据 MSP组状态生成转发表, 根据转发表信息 选择将业务报文发送给工作线卡或保护线卡。  Or the master switching unit generates a forwarding table according to the state of the MSP group, and selects to send the service packet to the working line card or the protection line card according to the forwarding table information.

本发明实施例还提供了一种线卡, 所述线卡作为工作线卡, 所述线卡 包括: 第一检测模块、 第一收发模块和第一标签管理模块;  The embodiment of the present invention further provides a line card, where the line card is used as a working line card, and the line card includes: a first detecting module, a first transceiver module, and a first label management module;

所述第一检测模块, 配置为实时检测工作线卡的运行状态得到检测信 息, 将该检测信息发送给第一收发模块;  The first detecting module is configured to detect the running status of the working line card in real time to obtain detection information, and send the detection information to the first transceiver module;

所述第一收发模块, 配置为将检测信息发送给主控交换单元; 还配置 为在上行方向发送业务报文给主控交换单元; 下行方向将从主控交换单元 接收的业务报文发往用户侧;  The first transceiver module is configured to send the detection information to the main control switching unit, and is configured to send the service packet to the main control switching unit in the uplink direction, and send the service packet received from the main control switching unit to the downlink direction. User side

所述第一标签管理模块, 配置为在发往主控交换单元的业务报文上封 装内控伪线上行 MPLS标签, 将所述业务报文发送给第一收发模块。  The first label management module is configured to: encapsulate the internal control pseudowire uplink MPLS label on the service packet sent to the main control switching unit, and send the service packet to the first transceiver module.

优选地, 所述线卡还包括第一判定模块, 配置为在上行方向上, 当工 作线卡或保护线卡发送业务报文给主控交换单元时, 根据第一检测模块得 到检测信息判定工作线卡是否运行正常, 并将判定结果发送给第一收发模 块和保护线卡; Preferably, the line card further includes a first determining module configured to be in an uplink direction When the line card or the protection line card sends the service packet to the main control switching unit, the first detection module obtains the detection information to determine whether the working line card is running normally, and sends the determination result to the first transceiver module and the protection line card;

相应的, 所述第一收发模块, 还配置为当所述第一判定模块的判定结 果为是时, 将业务报文发送给主控交换单元。  Correspondingly, the first transceiver module is further configured to: when the determination result of the first determining module is yes, send the service packet to the main control switching unit.

优选地, 所述第一收发模块, 还配置为接收所述保护线卡是否运行正 常的判定结果, 当所述判定结果为否时, 将业务报文发送给主控交换单元。  Preferably, the first transceiver module is further configured to receive a determination result of whether the protection line card is running normally. When the determination result is no, the service packet is sent to the main control exchange unit.

本发明实施例还提供了一种线卡, 所述线卡作为保护线卡, 所述线卡 包括: 第二检测模块、 第二收发模块和第二标签管理模块;  The embodiment of the present invention further provides a line card, where the line card is used as a protection line card, and the line card includes: a second detection module, a second transceiver module, and a second label management module;

所述第二检测模块, 配置为实时检测保护线卡的运行状态得到检测信 息, 将该检测信息发送给第二收发模块;  The second detecting module is configured to detect the running status of the protection line card in real time to obtain detection information, and send the detection information to the second transceiver module;

所述第二收发模块, 配置为将检测信息发送给主控交换单元; 还配置 为在上行方向发送业务报文给主控交换单元; 下行方向将从主控交换单元 接收的业务报文发往用户侧;  The second transceiver module is configured to send the detection information to the main control switching unit, and is configured to send the service packet to the main control switching unit in the uplink direction, and send the service packet received from the main control switching unit to the downlink direction. User side

所述第二标签管理模块, 配置为在发往主控交换单元的业务报文上封 装内控伪线上行 MPLS标签, 将该业务报文发送给第二收发模块。  The second label management module is configured to: encapsulate the uplink MPLS label of the internal control pseudowire on the service packet sent to the main control switching unit, and send the service packet to the second transceiver module.

优选地, 所述保护线卡还包括第二判定模块, 配置为在上行方向上, 当工作线卡或保护线卡发送业务报文给主控交换单元时, 根据第二检测模 块得到检测信息判定保护线卡是否运行正常, 并将判定结果发送给工作线 卡和第二收发模块;  Preferably, the protection line card further includes a second determining module, configured to determine, in the uplink direction, when the working line card or the protection line card sends the service packet to the main control switching unit, according to the detection information obtained by the second detecting module. Protecting the line card from running normally, and sending the determination result to the working line card and the second transceiver module;

所述第二收发模块, 还配置为接收所述工作线卡是否运行正常的判定 结果, 当所述判定结果为否, 且所述第二判定模块的判定结果为是时, 将 业务报文发送给主控交换单元。  The second transceiver module is further configured to receive a determination result of whether the work line card is running normally. When the determination result is no, and the determination result of the second determination module is yes, the service packet is sent. Give the master exchange unit.

本发明实施例还提供了一种主控交换单元, 所述主控交换单元包括: 第三收发模块、 中央处理模块、 交换模块和第三标签管理模块; 所述第三收发模块, 配置为接收工作线卡和保护线卡的检测信息; 还 配置为在上行方向将工作线卡或保护线卡发来的业务报文发送给网络侧; 在下行方向将网络侧发来的业务报文发送给工作线卡和 /或保护线卡; The embodiment of the present invention further provides a main control switching unit, where the main control switching unit includes: a third transceiver module, a central processing module, a switching module, and a third label management module; The third transceiver module is configured to receive the detection information of the working line card and the protection line card; and is configured to send the service packet sent by the working line card or the protection line card to the network side in the uplink direction; The service packet sent by the network side is sent to the working line card and/or the protection line card.

所述中央处理模块, 配置为根据第三收发模块接收到的工作线卡和保 护线卡的检测信息判定 MSP组状态, 并根据 MSP组状态生成转发表, 向 交换模块下发转发表;  The central processing module is configured to determine the state of the MSP group according to the detection information of the working line card and the protection line card received by the third transceiver module, and generate a forwarding table according to the state of the MSP group, and send a forwarding table to the switching module;

所述交换模块, 配置为根据转发表信息执行对工作链路或是保护链路 的切换;  The switching module is configured to perform switching to a working link or a protection link according to the forwarding table information;

所述第三标签管理模块, 配置为在上行方向将第三收发模块从工作线 卡或保护线卡接收的业务报文封装的内控伪线上行 MPLS标签交换为网络 侧的伪线上行 MPLS标签, 同时封装隧道上行 MPLS标签, 由第三收发模 块发往网络侧; 还配置为在下行方向将第三收发模块从网络侧接收的业务 报文上封装的隧道下行 MPLS标签剥离, 将网络侧的伪线下行 MPLS标签 交换为内控伪线下行 MPLS标签, 由第三收发模块发送给工作线卡和 /或保 护线卡。  The third label management module is configured to exchange, in the uplink direction, the uplink MPLS label of the internal control pseudowire encapsulated by the service packet received by the third transceiver module from the work line card or the protection line card into the uplink MPLS label of the pseudowire on the network side, The tunnel MPLS label is encapsulated and sent by the third transceiver module to the network side. The downlink MPLS label encapsulated in the service packet received by the third transceiver module from the network side is stripped in the downlink direction. The downlink MPLS label switching is an internal control pseudowire downlink MPLS label, which is sent by the third transceiver module to the working line card and/or the protection line card.

本发明实施例还提供了一种跨线卡复用段保护下线卡业务接入 PTN的 系统, 所述系统包括: 工作线卡、 保护线卡和本发明实施例所述的主控交 换单元; 所述工作线卡包括: 第一检测模块、 第一收发模块、 第一标签管 理模块和第一收发模块; 所述保护线卡包括: 第二检测模块、 第二收发模 块、 第二标签管理模块和第二判定模块。  The embodiment of the present invention further provides a system for protecting a line card service from accessing a PTN by using a line card multiplex section, and the system includes: a working line card, a protection line card, and a main control switching unit according to the embodiment of the present invention. The work line card includes: a first detection module, a first transceiver module, a first label management module, and a first transceiver module; the protection line card includes: a second detection module, a second transceiver module, and a second label management Module and second decision module.

根据本发明实施例提供的方案, 能够确保业务在 PTN网络中传输的连 续性, 使业务传输的安全性和可靠性得到了很好的保证。 附图说明  According to the solution provided by the embodiment of the present invention, the continuity of the service transmission in the PTN network can be ensured, and the security and reliability of the service transmission are well guaranteed. DRAWINGS

图 1为本发明实施例的跨线卡复用段保护下线卡业务接入 PTN的系统 组成示意图; 图 2为本发明实施例的跨线卡复用段保护下线卡业务接入 PTN的方法 流程示意图; 1 is a schematic structural diagram of a system for accessing a PTN of a line card service under the protection of a cross-line card multiplex section according to an embodiment of the present invention; 2 is a schematic flowchart of a method for protecting a line card service from accessing a PTN by using a cross-line card multiplex section according to an embodiment of the present invention;

图 3 为本发明实施例的跨线卡 MSP 1+1 保护下行方向线卡业务接入 PTN的方法流程示意图;  FIG. 3 is a schematic flowchart of a method for a cross-line card MSP 1+1 to protect a downlink line card service from accessing a PTN according to an embodiment of the present invention;

图 4 为本发明实施例的跨线卡 MSP 1+1 保护上行方向线卡业务接入 PTN的方法流程示意图;  FIG. 4 is a schematic flowchart of a method for a line card MSP 1+1 to protect an uplink line card service from accessing a PTN according to an embodiment of the present invention;

图 5 为本发明实施例的跨线卡 MSP 1 : 1 保护下行方向线卡业务接入 PTN的方法流程示意图;  FIG. 5 is a schematic flowchart of a method for protecting a downlink line card service from accessing a PTN according to an embodiment of the present invention;

图 6 为本发明实施例的跨线卡 MSP 1 : 1 保护上行方向线卡业务接入 PTN的方法流程示意图。 具体实施方式  FIG. 6 is a schematic flowchart of a method for protecting an uplink line card service from accessing a PTN according to an embodiment of the present invention. detailed description

下面结合附图及具体实施例对本发明实施例作进一步详细的说明。 图 1为本发明实施例的跨线卡复用段保护下线卡业务接入 PTN的系统 示意图, 如图 1所示, 所述系统包括: 工作线卡 11、 保护线卡 12和主控交 换单元 13; 其中:  The embodiments of the present invention are further described in detail below with reference to the accompanying drawings and specific embodiments. FIG. 1 is a schematic diagram of a system for accessing a PTN of a line card service under the protection of a cross-line card multiplex section according to an embodiment of the present invention. As shown in FIG. 1, the system includes: a work line card 11, a protection line card 12, and a master control exchange. Unit 13; where:

工作线卡 11, 配置为实时检测自身的运行状态得到检测信息, 并将检 测信息发送给主控交换单元 13 ; 还配置为在上行方向将业务报文封装内控 伪线上行 MPLS标签发送给主控交换单元 13; 下行方向上将从主控交换单 元 13接收的业务报文发往用户侧;  The line card 11 is configured to detect the running status of the device in real time to obtain the detection information, and send the detection information to the main control switching unit 13; and configured to send the uplink MPLS label of the service packet encapsulation in the uplink direction to the main control The switching unit 13 sends the service packet received from the main control switching unit 13 to the user side in the downlink direction;

保护线卡 12, 配置为实时检测自身的运行状态得到检测信息, 并将检 测信息发送给主控交换单元 13 ; 还配置为在上行方向将业务报文封装内控 伪线上行 MPLS标签发送给主控交换单元 13; 下行方向上将从主控交换单 元 13接收的业务报文发往用户侧;  The protection line card 12 is configured to detect the running status of the device in real time and obtain the detection information, and send the detection information to the main control switching unit 13; and configured to send the uplink MPLS label of the service packet encapsulation in the uplink direction to the main control The switching unit 13 sends the service packet received from the main control switching unit 13 to the user side in the downlink direction;

主控交换单元 13, 配置为接收工作线卡 11或保护线卡 12发来的检测 信息, 判定 MSP组状态, 根据 MSP组状态生成转发表, 执行对工作链路 或是保护链路的切换; 还配置为在上行方向将业务报文上封装的内控伪线 上行 MPLS标签交换为网络侧的伪线上行 MPLS标签, 同时封装隧道上行 MPLS标签,将处理后的业务报文发送给网络侧; 下行方向剥离业务报文上 封装的隧道下行 MPLS标签, 将网络侧的伪线下行 MPLS标签交换为内控 伪线下行 MPLS标签,将处理后的业务报文发送给工作线卡 11和 /或保护线 卡 12; The main control switching unit 13 is configured to receive the detection information sent by the working line card 11 or the protection line card 12, determine the state of the MSP group, generate a forwarding table according to the state of the MSP group, and execute the working link. Or the protection link is switched; the uplink MPLS label of the internal control pseudowire encapsulated in the service packet is switched to the uplink MPLS label of the network side in the uplink direction, and the uplink MPLS label of the tunnel is encapsulated, and the processed service is encapsulated. The packet is sent to the network side; the downlink MPLS label encapsulated in the service packet is stripped in the downlink direction, and the downlink MPLS label on the network side is switched to the downlink MPLS label of the internal control pseudowire, and the processed service packet is sent to the working line. Card 11 and/or protection line card 12;

这里, 所述主控交换单元 13—般为专用集成线路( Application Specific Integrated Circuit, ASIC ) 交换芯片, 可以应指定用途需要而设计、 制造; 其中, 所述主控交换单元 13与工作线卡 11通过级联口 1相连; 所述 主控交换单元 13与保护线卡 12通过级联口 2相连;  Here, the main control switching unit 13 is generally an application specific integrated circuit (ASIC) switching chip, which can be designed and manufactured according to the needs of the specified application; wherein the main control switching unit 13 and the working line card 11 Connected through the cascade port 1; the main control switch unit 13 and the protection line card 12 are connected through the cascade port 2;

其中, 在线卡和主控交换单元 13之间的工作链路或保护链路中传输的 业务报文包含的信息为内控伪线 MPLS标签、 以太网类型、 目的介质访问 控制 (Medium/Media Access Control, MAC )地址, 源 MAC地址等等; 在 主控交换单元 13与网络侧之间交互的业务报文包含的信息为网络侧的伪线 MPLS标签、隧道 MPLS标签、以太网类型、虚拟局域网(Virtual Local Area Network, VLAN )信息、 目的 MAC,地址、 源 MAC,地址等信息。 此处的 目的 MAC,地址和源 MAC,地址是因为业务报文在从主控交换单元 13与网 络侧之间传输时目的 MAC和源 MAC发生了变化, 以区别于目的 MAC地 址和源 MAC地址, 这与现有技术相同, 在此不再赘述。  The information contained in the service link or the protection link between the online card and the main control switching unit 13 is an internal control pseudowire MPLS label, an Ethernet type, and a destination medium access control (Medium/Media Access Control). MAC address, source MAC address, and the like; the service packet exchanged between the master switching unit 13 and the network side includes the pseudo-line MPLS label on the network side, the tunnel MPLS label, the Ethernet type, and the virtual local area network ( Virtual Local Area Network (VLAN) information, destination MAC address, address, source MAC address, address, etc. The destination MAC address, address, and source MAC address here are because the destination MAC address and source MAC address are changed when the service packet is transmitted between the master switching unit 13 and the network side to distinguish it from the destination MAC address and the source MAC address. This is the same as the prior art and will not be described here.

优选地, 所述工作线卡 11包括: 第一检测模块 111、 第一收发模块 112 和第一标签管理模块 113; 其中:  Preferably, the working line card 11 includes: a first detecting module 111, a first transceiver module 112, and a first tag management module 113; wherein:

所述第一检测模块 111, 配置为实时检测工作线卡 11的运行状态得到 检测信息, 将该检测信息发送给第一收发模块 112;  The first detecting module 111 is configured to detect the running status of the working line card 11 in real time to obtain detection information, and send the detection information to the first transceiver module 112;

所述第一收发模块 112, 配置为将检测信息发送给主控交换单元 13; 还配置为在上行方向发送业务报文给主控交换单元 13; 下行方向将从主控 交换单元 13接收的业务报文发往用户侧; The first transceiver module 112 is configured to send the detection information to the main control switching unit 13; it is further configured to send the service packet to the main control switching unit 13 in the uplink direction; The service packet received by the switching unit 13 is sent to the user side.

所述第一标签管理模块 113, 配置为在发往主控交换单元 13的业务报 文上封装内控伪线上行 MPLS标签, 将所述业务报文发送给第一收发模块 112。  The first label management module 113 is configured to encapsulate the internal control pseudowire uplink MPLS label on the service packet sent to the main control switching unit 13, and send the service packet to the first transceiver module 112.

所述工作线卡 11还包括第一判定模块 114, 配置为在上行方向上, 当 工作线卡 11或保护线卡 12发送业务报文给主控交换单元 13时, 根据第一 检测模块 111得到检测信息判定工作线卡 11是否运行正常, 并将判定结果 发送给第一收发模块 112和保护线卡 12;  The working line card 11 further includes a first determining module 114 configured to be in the uplink direction, when the working line card 11 or the protection line card 12 sends a service packet to the main control switching unit 13, according to the first detecting module 111. The detection information determines whether the work line card 11 is operating normally, and sends the determination result to the first transceiver module 112 and the protection line card 12;

相应的, 所述第一收发模块 112, 还配置为当所述第一判定模块 114的 判定结果为是时, 将业务报文发送给主控交换单元 13。  Correspondingly, the first transceiver module 112 is further configured to send the service packet to the main control switching unit 13 when the determination result of the first determining module 114 is YES.

所述第一收发模块 112, 还配置为接收所述保护线卡 12是否运行正常 的判定结果, 当所述判定结果为否时, 将业务报文发送给主控交换单元 13。  The first transceiver module 112 is further configured to receive a determination result of whether the protection line card 12 is running normally. When the determination result is no, the service packet is sent to the main control switching unit 13.

优选地, 所述保护线卡 12包括: 第二检测模块 121、第二收发模块 122 和第二标签管理模块 123; 其中:  Preferably, the protection line card 12 includes: a second detection module 121, a second transceiver module 122, and a second label management module 123;

所述第二检测模块 121, 配置为实时检测保护线卡 12的运行状态得到 检测信息, 将该检测信息发送给第二收发模块 122;  The second detecting module 121 is configured to detect the running status of the protection line card 12 in real time to obtain detection information, and send the detection information to the second transceiver module 122;

所述第二收发模块 122, 配置为将检测信息发送给主控交换单元 13; 还配置为在上行方向发送业务报文给主控交换单元 13; 下行方向将从主控 交换单元 13接收的业务报文发往用户侧;  The second transceiver module 122 is configured to send the detection information to the main control switching unit 13; it is further configured to send the service packet to the main control switching unit 13 in the uplink direction; and receive the service received from the main control switching unit 13 in the downlink direction. The message is sent to the user side;

所述第二标签管理模块 123, 配置为在发往主控交换单元 13的业务报 文上封装内控伪线上行 MPLS 标签, 将该业务报文发送给第二收发模块 122。  The second label management module 123 is configured to encapsulate the internal control pseudowire uplink MPLS label on the service packet sent to the main control switching unit 13, and send the service packet to the second transceiver module 122.

所述保护线卡 12还包括第二判定模块 124, 配置为在上行方向上, 当 工作线卡 11或保护线卡 12发送业务报文给主控交换单元 13时, 根据第二 检测模块 121得到检测信息判定保护线卡 12是否运行正常, 并将判定结果 发送给工作线卡 11和第二收发模块 122; The protection line card 12 further includes a second determining module 124 configured to be in the uplink direction, when the working line card 11 or the protection line card 12 sends a service packet to the main control switching unit 13, according to the second detecting module 121. The detection information determines whether the protection line card 12 is operating normally, and the determination result is Send to the work line card 11 and the second transceiver module 122;

所述第二收发模块 122, 还配置为接收所述工作线卡 11是否运行正常 的判定结果, 当所述判定结果为否, 且所述第二判定模块 124 的判定结果 为是时, 将业务报文发送给主控交换单元 13。  The second transceiver module 122 is further configured to receive a determination result of whether the work line card 11 is operating normally. When the determination result is no, and the determination result of the second determination module 124 is YES, the service is performed. The message is sent to the master switching unit 13.

优选地, 所述主控交换单元 13包括: 第三收发模块 131、 中央处理模 块 132、 交换模块 133和第三标签管理模块 134; 其中:  Preferably, the main control switching unit 13 includes: a third transceiver module 131, a central processing module 132, a switching module 133, and a third label management module 134;

所述第三收发模块 131,配置为接收工作线卡 11和保护线卡 12的检测 信息; 还配置为在上行方向将工作线卡 11或保护线卡 12发来的业务报文 发送给网络侧; 在下行方向将网络侧发来的业务报文发送给工作线卡 11和 /或保护线卡 12;  The third transceiver module 131 is configured to receive the detection information of the work line card 11 and the protection line card 12; and is configured to send the service packet sent by the work line card 11 or the protection line card 12 to the network side in the uplink direction. Sending the service packet sent by the network side to the working line card 11 and/or the protection line card 12 in the downlink direction;

所述中央处理模块 132,配置为根据第三收发模块 131接收到的工作线 卡 11和保护线卡 12的检测信息判定 MSP组状态, 并根据 MSP组状态生 成转发表, 向交换模块 133下发转发表;  The central processing module 132 is configured to determine the state of the MSP group according to the detection information of the working line card 11 and the protection line card 12 received by the third transceiver module 131, and generate a forwarding table according to the state of the MSP group, and send the forwarding table to the switching module 133. Forwarding table

所述交换模块 133,配置为根据转发表信息执行对工作链路或是保护链 路的切换;  The switching module 133 is configured to perform switching to the working link or the protection link according to the forwarding table information;

所述第三标签管理模块 134,配置为在上行方向将第三收发模块 131从 线卡接收的业务报文封装的内控伪线上行 MPLS标签交换为网络侧的伪线 上行 MPLS标签, 同时封装隧道上行 MPLS标签, 由第三收发模块 131发 送给网络侧; 还配置为在下行方向将第三收发模块 131 从网络侧接收的业 务报文上封装的隧道下行 MPLS标签剥离, 将网络侧的伪线下行 MPLS标 签交换为内控伪线下行 MPLS标签, 由第三收发模块 131发送给工作线卡 11和 /或保护线卡 12。  The third label management module 134 is configured to exchange the uplink MPLS label of the internal control pseudowire encapsulated by the service packet received by the third transceiver module 131 from the line card into the uplink MPLS label of the network side, and encapsulate the tunnel at the same time. The uplink MPLS label is sent to the network side by the third transceiver module 131. The downlink MPLS label encapsulated in the service packet received by the third transceiver module 131 from the network side is stripped in the downlink direction, and the pseudowire on the network side is disconnected. The downlink MPLS label switch is an internal control pseudowire downlink MPLS label, and is sent by the third transceiver module 131 to the work line card 11 and/or the protection line card 12.

其中, 所述转发表可以是访问控制列表( Access Control List, ACL )。 其中, 所述转发表信息包括级联口 +内控伪线上行 /下行 MPLS 标签, 所述交换模块 133通过控制级联口 1或 2+内控伪线上行 /下行 MPLS标签执 行对工作链路或是保护链路的切换, 进而控制第三收发模块 131 在上行方 向接收第一收发模块 111或第二收发模块 121发来的业务报文; 或是控制 第三收发模块 131在下行方向将业务报文发送给第一收发模块 111和 /或第 二收发模块 121。 The forwarding table may be an Access Control List (ACL). The forwarding table information includes a cascade port + an internal control pseudowire uplink/downlink MPLS label, and the switching module 133 controls the cascade port 1 or the 2+ internal control pseudowire uplink/downlink MPLS label. Switching between the working link or the protection link, and controlling the third transceiver module 131 to receive the service packet sent by the first transceiver module 111 or the second transceiver module 121 in the uplink direction; or controlling the third transceiver module 131 The service packet is sent to the first transceiver module 111 and/or the second transceiver module 121 in the downlink direction.

其中,所述工作线卡 11中的第一检测模块 111、第一标签管理模块 113 和第一判定模块 114, 所述保护线卡 12 中的第二检测模块 121、 第二标签 管理模块 123和第二判定模块 124, 所述主控交换单元 13中的中央处理模 块 132、 交换模块 133和第三标签管理模块 134在实际应用中, 均可由装置 中的中央处理器( CPU, Central Processing Unit )、或数字信号处理器( DSP, Digital Signal Processor )、 或可编程還辑阵歹1 J ( FPGA, Field-Programmable Gate Array )实现; 所述工作线卡 11中的第一收发模块 112、 所述保护线卡 12中的第二收发模块 122和所述主控交换单元 13中的第三收发模块 131在 实际应用中, 均可由收发器或收发天线实现。 The first detection module 111, the first label management module 113, and the first determination module 114 in the work line card 11, the second detection module 121 and the second label management module 123 in the protection line card 12 The second determining module 124, the central processing module 132, the switching module 133, and the third label management module 134 in the main control switching unit 13 may be implemented by a central processing unit (CPU) in the device. , or digital signal processor (DSP, digital signal processor), or further programmable mutli bad 1 J (FPGA, Field-programmable Gate array) implemented; the working line card 11 in the first transceiver module 112, the The second transceiver module 122 in the protection line card 12 and the third transceiver module 131 in the main control switching unit 13 can be implemented by a transceiver or a transceiver antenna in practical applications.

基于上述系统, 图 2 为本发明实施例的跨线卡复用段保护下线卡业务 接入 PTN的方法流程示意图, 如图 2所示, 包括以下步骤:  Based on the above system, FIG. 2 is a schematic flowchart of a method for protecting a line card service to a PTN by using a cross-line card multiplex section according to an embodiment of the present invention. As shown in FIG. 2, the method includes the following steps:

步骤 201 : 工作线卡和保护线卡实时检测自身的运行状态得到检测信 息, 并将检测信息发送给主控交换单元。  Step 201: The working line card and the protection line card detect their own running status in real time to obtain detection information, and send the detection information to the main control switching unit.

步骤 202:主控交换单元根据收到的工作线卡和保护线卡发来的检测信 息判断 MSP组状态, 根据 MSP组状态生成转发表, 执行对工作链路或是 保护链路的切换。  Step 202: The master switching unit determines the state of the MSP group according to the received detection information sent by the working line card and the protection line card, generates a forwarding table according to the state of the MSP group, and performs switching of the working link or the protection link.

这里, 在工作链路和保护链路各分配一对内控伪线 MPLS标签, 包括 内控伪线上行 MPLS标签和内控伪线下行 MPLS标签。  Here, a pair of internal control pseudowire MPLS labels are allocated on the working link and the protection link, including an internal pseudowire uplink MPLS label and an internal pseudowire downlink MPLS label.

这里, 所述 MSP组状态包括协议状态和保护状态; 这里, 协议状态指 工作线卡运行正常, 业务报文通过工作线卡向用户侧或向主控交换单元发 送, 或业务报文通过工作线卡和保护线卡向用户侧或向主控交换单元发送, 当工作线卡和保护线卡同时向主控交换单元业务报文时, 主控交换单元选 择工作线卡的业务报文接收; 保护状态指工作线卡运行异常, 业务报文只 可以通过保护线卡向用户侧或向主控交换单元发送。 Here, the state of the MSP group includes a protocol state and a protection state. Here, the protocol state refers to the working line card running normally, and the service packet is sent to the user side or to the main control switching unit through the working line card, or the service packet passes the working line. The card and the protection line card are sent to the user side or to the main control exchange unit. When the working line card and the protection line card simultaneously send packets to the main control switching unit, the main control switching unit selects the service packet of the working line card to receive; the protection status means that the working line card runs abnormally, and the service packet can only pass the protection line. The card is sent to the user side or to the master switching unit.

其中, 主控交换单元执行对工作链路或是保护链路的切换是通过主控 交换单元内部的中央处理模块根据 MSP组状态生成转发表, 并向交换模块 下发转发表来实现, 交换模块通过转发表里的级联口 1+内控伪线下行 MPLS标签和 /或级联口 2+内控伪线下行 MPLS标签执行业务报文是通过级 联口 1发送给工作线卡和 /或通过级联口 2发送给保护线卡。  The switching of the working link or the protection link by the main control switching unit is performed by the central processing module inside the main control switching unit, and the forwarding table is generated according to the state of the MSP group, and the forwarding table is sent to the switching module to implement the switching module. The service packet is sent to the working line card and/or through the cascade port 1 through the cascade port 1+ internal control pseudowire downlink MPLS label and/or the cascade port 2+ internal control pseudowire downlink MPLS label in the forwarding table. The port 2 is sent to the protection line card.

业务报文在上行方向传输执行步骤 203〜步骤 204:  The service packet is transmitted in the uplink direction. Steps 203 to 204:

步骤 203:工作线卡和 /或保护线卡将业务报文封装内控伪线上行 MPLS 标签发送给主控交换单元。  Step 203: The working line card and/or the protection line card send the uplink MPLS label of the service packet encapsulation internal control packet to the main control switching unit.

这里, 工作线卡和 /或保护线卡将业务报文封装内控伪线上行 MPLS标 签发送给主控交换单元为: 工作线卡和保护线卡同时将业务报文封装内控 伪线上行 MPLS标签发送给主控交换单元; 或工作线卡根据自身的运行状 态得到的检测信息判定 MSP组状态, 若 MSP组状态为协议状态, 则从用 户侧发来的业务报文从工作线卡接收, 并将业务报文封装内控伪线上行 MPLS标签发送给主控交换单元; 若 MSP组状态为保护状态, 则从用户侧 发来的业务报文从保护线卡接收, 并将业务报文封装内控伪线上行 MPLS 标签发送给主控交换单元。  Here, the working line card and/or the protection line card sends the uplink MPLS label of the internal control pseudowire of the service packet to the main control switching unit: the working line card and the protection line card simultaneously send the service packet encapsulation internal control pseudowire uplink MPLS label The master switching unit; or the working line card determines the state of the MSP group according to the detection information obtained by the operating state of the operating line. If the state of the MSP group is the protocol state, the service packet sent from the user side is received from the working line card, and The service packet encapsulates the internal control pseudowire upstream MPLS label and sends it to the master switching unit. If the MSP group status is protected, the service packet sent from the user side is received from the protection line card, and the service packet is encapsulated into the internal control pseudowire. The uplink MPLS label is sent to the master switching unit.

步骤 204:主控交换单元将业务报文的内控伪线上行 MPLS标签交换为 网络侧的伪线上行 MPLS标签, 同时封装隧道上行 MPLS标签, 发送给网 络侧。  Step 204: The main control switching unit exchanges the uplink MPLS label of the internal control pseudowire of the service packet into the uplink MPLS label of the pseudowire on the network side, and encapsulates the uplink MPLS label of the tunnel, and sends the MPLS label to the network side.

这里, 若工作线卡和保护线卡同时将业务报文发送给主控交换单元, 则主控交换单元根据 MSP组状态生成转发表,根据转发表的级联口 1+内控 伪线上行 MPLS标签或级联口 2+内控伪线上行 MPLS标签信息选择接收工 作线卡或保护线卡的业务报文, 然后执行步骤 204 中所述的方法; 若是工 作线卡或保护线卡中将业务报文发送给主控交换单元, 则无主控交换单元 选择接收过程, 直接执行步骤 204中所述的方法。 Here, if the working line card and the protection line card simultaneously send the service packet to the main control switching unit, the main control switching unit generates a forwarding table according to the state of the MSP group, and uplinks the MPLS label according to the concatenation port 1+ internal control pseudo line of the forwarding table. Or cascade port 2+ internal control pseudowire uplink MPLS label information selection receiver As a service packet of the line card or the protection line card, and then performing the method described in step 204; if the service line card or the protection line card sends the service message to the main control exchange unit, the main control exchange unit selects to receive The process directly performs the method described in step 204.

业务报文在下行方向传输执行步骤 205〜步骤 206:  The service packet is transmitted in the downlink direction. Steps 205 to 206:

步骤 205: 主控交换单元剥离业务报文上封装的隧道下行 MPLS标签, 将网络侧的伪线下行 MPLS标签交换为内控伪线下行 MPLS标签, 将业务 报文发送给线卡。  Step 205: The main control switching unit strips the downlink MPLS label encapsulated in the service packet, and switches the downlink MPLS label of the network side to the downlink MPLS label of the internal control pseudo line, and sends the service packet to the line card.

这里, 主控交换单元将业务报文发送给线卡为: 主控交换单元剥离业 务报文上封装的隧道下行 MPLS标签, 将网络侧的伪线下行 MPLS标签交 换为内控伪线下行 MPLS标签, 将处理后的业务报文同时发送给工作线卡 和保护线卡; 或者主控交换单元剥离业务报文上封装的隧道下行 MPLS标 签, 将网络侧的伪线下行 MPLS标签交换为内控伪线下行 MPLS标签, 根 据 MSP组状态生成转发表, 根据转发表的级联口 1+内控伪线下行 MPLS 标签或级联口 2+内控伪线下行 MPLS标签信息, 将处理后的业务报文发送 给工作线卡或保护线卡。  Here, the main control switching unit sends the service packet to the line card: the main control switching unit strips the tunnel downlink MPLS label encapsulated in the service packet, and exchanges the downlink MPLS label of the pseudo-line on the network side into the downlink MPLS label of the internal control pseudo line. The processed service packet is sent to the working line card and the protection line card at the same time; or the main control switching unit strips the tunnel downlink MPLS label encapsulated in the service packet, and the downlink MPLS label on the network side is switched to the internal control pseudo line downlink. The MPLS label generates a forwarding table according to the state of the MSP group, and sends the processed service packet to the work according to the downlink MPLS label of the forwarding table 1+ the internal control pseudowire downlink MPLS label or the cascade interface 2+ internal control pseudowire. Line card or protection line card.

步骤 206: 线卡进行用户侧业务报文的转发。  Step 206: The line card forwards the service packet of the user side.

这里, 可以是工作线卡和保护线卡都收到业务报文, 也可以是工作线 卡或保护线卡收到业务报文, 不论哪种情况, 收到业务报文的线卡都会进 行用户侧业务报文的转发。  Here, both the work line card and the protection line card can receive the service message, or the work line card or the protection line card can receive the service message. In either case, the line card that receives the service message will perform the user. Forwarding of side service packets.

具体的, 分组交换网中跨线卡复用段保护主要包括 MSP 1+1 保护和 MSP 1 :1保护。图 3至图 6将分别介绍本发明实施例的跨线卡复用段保护下 线卡业务接入 PTN的实现过程。  Specifically, the protection of the cross-line card multiplex section in the packet switched network mainly includes MSP 1+1 protection and MSP 1: 1 protection. FIG. 3 to FIG. 6 respectively show an implementation process of the line card service access PTN protected by the over-line card multiplex section in the embodiment of the present invention.

假设工作线卡和保护线卡均为同步传输模块 4 级 ( Synchronous Transport Module-4, STM-4 ) 线卡、 工作线卡和主控交换单元的级联口 1 相连接, 分配一对内控伪线(pseudo wire, pw ) MPLS标签; 保护线卡和 主控交换单元的级联口 2相连接, 分配一对内控伪线 MPLS标签。 业务报 文由网络侧的伪线承载、 经隧道从网络侧进出。 若隧道下行 MPLS标签为 1000, 隧道上行 MPLS标签为 2000, 网络侧的伪线下行 MPLS标签为 100, 网络侧的伪线上行 MPLS标签为 200,工作链路和保护链路的内控伪线下行 MPLS标签同为 10, 工作链路和保护链路的内控伪线上行 MPLS标签同为 20, 那么, 本发明实施例的跨线卡复用段保护下线卡业务接入 PTN的实现 过程如下: Assume that the working line card and the protection line card are both Synchronous Transport Module-4 (STM-4) line cards, working line cards and the cascade port 1 of the main control switching unit, and allocate a pair of internal control pseudo Thread (pseudo wire, pw) MPLS label; protection line card and The cascade port 2 of the main control switching unit is connected, and a pair of internal control pseudowire MPLS labels are allocated. The service packet is carried by the pseudowire on the network side and enters and exits from the network side through the tunnel. If the downlink MPLS label of the tunnel is 1000, the uplink MPLS label of the tunnel is 2000, the downlink MPLS label of the pseudowire on the network side is 100, the uplink MPLS label of the pseudowire on the network side is 200, and the internal control pseudowire of the working link and the protection link is downlink MPLS. The tag is the same as 10, and the internal control pseudowire uplink MPLS label of the working link and the protection link is 20, then the implementation process of the line card multiplex section protecting the offline card service accessing PTN in the embodiment of the present invention is as follows:

图 3 为本发明实施例的跨线卡 MSP 1+1 保护下行方向线卡业务接入 PTN的方法流程示意图。 如图 3所示, 包括以下步骤:  FIG. 3 is a schematic flowchart of a method for a cross-line card MSP 1+1 to protect a downlink line card service from accessing a PTN according to an embodiment of the present invention. As shown in Figure 3, the following steps are included:

步骤 301 : 业务报文从网络侧发送给主控交换单元。 所述的业务报文已经封装了隧道下行 MPLS标签 1000、 和网络侧的伪线下 行 MPLS标签 100。  Step 301: The service packet is sent from the network side to the main control switching unit. The service packet has encapsulated the tunnel downlink MPLS label 1000 and the network side pseudowire downlink MPLS label 100.

步骤 302: 主控交换单元剥离业务报文上封装的隧道下行 MPLS标签, 把网络侧的伪线下行 MPLS标签交换成内控伪线下行 MPLS标签。  Step 302: The main control switching unit strips the tunnel downlink MPLS label encapsulated in the service packet, and exchanges the downlink MPLS label of the pseudowire on the network side into the downlink MPLS label of the internal control pseudowire.

这里, 主控交换单元剥离了业务报文上封装的隧道下行的 MPLS标签 1000, 将网络侧的伪线下行 MPLS标签 100交换为内控伪线下行 MPLS标 签 10。  Here, the main control switching unit strips the downlink MPLS label 1000 encapsulated in the service packet, and exchanges the pseudo-line downlink MPLS label 100 on the network side into the internal control pseudo-line downlink MPLS label 10.

步骤 303: 主控交换单元根据 MSP组状态生成转发表, 把业务报文出 端口定向为级联口 1和级联口 2。  Step 303: The master switching unit generates a forwarding table according to the state of the MSP group, and directs the outgoing port of the service packet to the cascade port 1 and the cascade port 2.

这里, 主控交换单元内部的中央处理模块根据 MSP组状态生成下行的 转发表, 并向交换模块下发该转发表, 因为是 MSP 1+1保护, 主控交换单 元同时向 STM-4工作线卡和 STM-4保护线卡发送业务报文,通过转发表匹 配的级联口 1+内控伪线下行 MPLS标签 10和级联口 2+内控伪线下行 MPLS 标签 10, 确定业务报文的目的端口为级联口 1和级联口 2。 步骤 304〜步骤 305:主控交换单元将业务报文通过级联口 1和级联口 2 送往工作线卡和保护线卡, 工作线卡和保护线卡收到业务报文后进行用户 侧业务报文的转发。 Here, the central processing module inside the main control switching unit generates a downlink forwarding table according to the state of the MSP group, and delivers the forwarding table to the switching module. Because it is MSP 1+1 protection, the main control switching unit simultaneously goes to the STM-4 working line. The card and the STM-4 protection line card send service packets, and the MPLS label 10 and the cascade port 2+ internal control pseudowire downlink MPLS label 10 matched by the forwarding table are matched by the forwarding table to determine the purpose of the service packet. The ports are cascade port 1 and cascade port 2. Steps 304 to 305: The main control switching unit sends the service packet to the working line card and the protection line card through the expansion port 1 and the expansion port 2, and the working line card and the protection line card receive the service packet and then perform the user side. Forwarding of service packets.

这里,主控交换单元将业务报文通过级联口 1被送往 STM-4工作线卡, 通过级联口 2被送往 STM-4保护线卡, STM-4工作线卡和 STM-4保护线 卡收到业务报文后进行用户侧的转发。  Here, the main control switching unit sends the service packet to the STM-4 working line card through the cascade port 1, and is sent to the STM-4 protection line card through the cascade port 2, the STM-4 work line card and the STM-4. After the protection line card receives the service packet, it forwards it to the user.

图 4 为本发明实施例的跨线卡 MSP 1+1 保护上行方向线卡业务接入 PTN的方法流程示意图。 如图 4所示, 包括以下步骤:  FIG. 4 is a schematic flowchart of a method for a cross-line card MSP 1+1 to protect an uplink line card service from accessing a PTN according to an embodiment of the present invention. As shown in Figure 4, the following steps are included:

步骤 401 :工作线卡和保护线卡把业务报文用内控伪线上行 MPLS标签 封装, 通过级联口 1和级联口 2发送给主控交换单元。  Step 401: The working line card and the protection line card encapsulate the service packet with the uplink MPLS label of the internal control pseudowire, and send it to the main control switching unit through the cascade port 1 and the cascade port 2.

这里, STM-4工作线卡把业务报文用内控伪线上行 MPLS标签 20封装, 通过级联口 1发送给主控交换单元; STM-4保护线卡把业务报文用内控上 行 MPLS标签 20封装, 通过级联口 2发送给主控交换单元。  Here, the STM-4 working line card encapsulates the service packet with the internal control pseudowire uplink MPLS label 20, and sends it to the main control switching unit through the cascade port 1; the STM-4 protection line card uses the internal control uplink MPLS label 20 for the service packet. The encapsulation is sent to the main control switching unit through the cascade port 2.

步骤 402: 主控交换单元根据 MSP组状态生成转发表, 选择级联口 1 或级联口 2接收业务报文。  Step 402: The master switching unit generates a forwarding table according to the state of the MSP group, and selects the expansion port 1 or the cascade port 2 to receive the service packet.

这里,主控交换单元根据实时收到的 STM-4工作线卡和 STM-4保护线 卡的检测信息判定 MSP组状态是协议状态还是保护状态, 根据 MSP组状 态, 主控交换单元内部的 CPU生成上行的转发表, 并向交换模块下发该转 发表。 若 MSP组状态为协议状态, 则主控交换单元通过转发表匹配的级联 口 1+内控伪线上行 MPLS标签 20信息, 选择接收 STM-4工作线卡的业务 报文; 若 MSP组状态为保护状态, 则主控交换单元通过转发表匹配的级联 口 2+内控伪线上行 MPLS标签 20信息, 选择接收 STM-4保护线卡的业务 报文。  Here, the master switching unit determines whether the state of the MSP group is a protocol state or a protection state according to the detection information of the STM-4 working line card and the STM-4 protection line card received in real time, according to the state of the MSP group, the CPU inside the main control switching unit An uplink forwarding table is generated, and the forwarding table is delivered to the switching module. If the state of the MSP group is the protocol state, the master switching unit selects the service packet of the STM-4 working line card by using the uplink port 1+ internal control pseudowire uplink MPLS label 20 information matched by the forwarding table; if the MSP group status is In the protection state, the master switching unit selects the uplink MPLS label 20 information of the cascade port 2+ internal control pseudowire matched by the forwarding table, and selects to receive the service packet of the STM-4 protection line card.

步骤 403〜步骤 404:主控交换单元将从 STM-4工作线卡或 STM-4保护 线卡发来的业务报文上封装的内控伪线上行 MPLS标签交换为网络侧的伪 线上行 MPLS标签, 同时封装隧道上行 MPLS标签, 将处理后的业务报文 从网络侧端口发送出去。 Step 403 to step 404: The master switching unit exchanges the uplink MPLS label of the internal control pseudowire encapsulated in the service packet sent from the STM-4 working line card or the STM-4 protection line card to the network side pseudo The upstream MPLS label of the line encapsulates the upstream MPLS label of the tunnel and sends the processed service packet from the network side port.

这里,主控交换单元收到 STM-4工作线卡或 STM-4保护线卡发来的业 务报文后,将业务报文封装的内控伪线上行 MPLS标签 20交换为网络侧的 伪线上行 MPLS标签 200, 同时封装隧道上行 MPLS标签 2000, 变更业务 报文的目的 MAC地址、 源 MAC地址, 在业务报文上添加 VLAN信息, 将 处理后的业务报文从网络侧端口发送出去。  Here, after receiving the service packet sent by the STM-4 working line card or the STM-4 protection line card, the main control switching unit exchanges the uplink MPLS label 20 of the internal control pseudowire encapsulated in the service packet into the pseudo line of the network side. The MPLS label 200 encapsulates the tunnel upstream MPLS label 2000, and changes the destination MAC address and the source MAC address of the service packet, adds the VLAN information to the service packet, and sends the processed service packet from the network side port.

图 5 为本发明实施例的跨线卡 MSP 1 : 1 保护下行方向线卡业务接入 PTN的方法流程示意图。 如图 5所示, 包括以下步骤:  FIG. 5 is a schematic flowchart of a method for protecting a downlink line card service from accessing a PTN according to an embodiment of the present invention. As shown in Figure 5, the following steps are included:

步骤 501 : 业务报文从网络侧发送给主控交换单元。  Step 501: The service packet is sent from the network side to the main control switching unit.

这里, 业务报文从主控交换单元网络侧的千兆级或万兆级端口进入; 所述的业务报文已经封装了隧道下行 MPLS标签 1000, 和网络侧的伪线下 行 MPLS标签 100。  Here, the service packet enters from the Gigabit or 10 Gigabit port on the network side of the main control switching unit; the service packet has encapsulated the tunnel downlink MPLS label 1000, and the network side pseudowire line MPLS label 100.

步骤 502: 主控交换单元剥离隧道下行 MPLS标签,把网络侧的伪线下 行 MPLS标签交换成内控伪线下行 MPLS标签。  Step 502: The main control switching unit strips the downlink MPLS label of the tunnel, and exchanges the MPLS label of the pseudowire on the network side into the downlink MPLS label of the internal control pseudowire.

这里, 主控交换单元剥离了业务报文上封装的隧道下行的 MPLS标签 1000, 将网络侧的伪线下行 MPLS标签 100交换为内控伪线下行 MPLS标 签 10。  Here, the main control switching unit strips the downlink MPLS label 1000 encapsulated in the service packet, and exchanges the pseudo-line downlink MPLS label 100 on the network side into the internal control pseudo-line downlink MPLS label 10.

步骤 503: 主控交换单元根据 MSP组状态生成转发表, 把业务报文出 端口定向为级联口 1或级联口 2。  Step 503: The master switching unit generates a forwarding table according to the state of the MSP group, and directs the outbound port of the service packet to the cascade port 1 or the cascade port 2.

这里,主控交换单元根据实时收到的 STM-4工作线卡和 STM-4保护线 卡的检测信息判定 MSP组状态是协议状态还是保护状态, 根据 MSP组状 态, 主控交换单元内部的 CPU生成下行的转发表, 并向交换模块下发该转 发表。 若 MSP组状态为协议状态, 则主控交换单元通过转发表匹配的级联 口 1+内控伪线下行 MPLS标签 10信息选择向 STM-4工作线卡发送业务报 文; 若 MSP组状态为保护状态, 则主控交换单元通过转发表匹配的级联口 2+内控伪线下行 MPLS标签 10信息, 选择向 STM-4保护线卡发送业务报 文。 Here, the master switching unit determines whether the state of the MSP group is a protocol state or a protection state according to the detection information of the STM-4 working line card and the STM-4 protection line card received in real time, according to the state of the MSP group, the CPU inside the main control switching unit A downlink forwarding table is generated, and the forwarding table is delivered to the switching module. If the state of the MSP group is the protocol state, the master switching unit selects to send the service report to the STM-4 working line card by using the cascading port 1+ internal control pseudowire downlink MPLS label 10 information matched by the forwarding table. If the state of the MSP group is in the protection state, the master switching unit selects the downlink MPLS label 10 information of the cascade port 2+ internal control pseudowire matched by the forwarding table, and selects to send the service packet to the STM-4 protection line card.

步骤 504〜步骤 505: 主控交换单元将业务报文通过级联口 1送往工作 线卡, 或通过级联口 2送往保护线卡, 工作线卡或保护线卡收到业务报文 后进行用户侧业务报文的转发。  Step 504 to step 505: The main control switching unit sends the service packet to the working line card through the expansion port 1, or sends the protection line card through the expansion port 2, and the working line card or the protection line card receives the service packet. Forwards user-side service packets.

这里, 业务报文通过级联口 1被送往 STM-4工作线卡, 或通过级联口 2被送往保护 STM-4线卡, STM-4工作线卡或 STM-4保护线卡收到业务报 文后进行用户侧业务报文的转发。  Here, the service packet is sent to the STM-4 working line card through the cascade port 1, or sent to the protection STM-4 line card through the cascade port 2, the STM-4 work line card or the STM-4 protection line card. After the service packet is received, the user-side service packet is forwarded.

图 6 为本发明实施例的跨线卡 MSP 1 : 1 保护上行方向线卡业务接入 PTN的方法流程示意图。 如图 6所示, 包括以下步骤:  FIG. 6 is a schematic flowchart of a method for protecting an uplink line card service from accessing a PTN according to an embodiment of the present invention. As shown in Figure 6, the following steps are included:

步骤 601 :工作线卡或保护线卡根据自身的运行状态得到的检测信息判 定工作线卡或保护线卡是否运行正常。  Step 601: The working line card or the protection line card determines whether the working line card or the protection line card is operating normally according to the detection information obtained by the running status of the working line card or the protection line card.

这里, STM-4 工作线卡根据自身的运行状态得到的检测信息, 判定自 身是否运行正常,若判定结果为是,则从用户侧接收的业务报文通过 STM-4 工作线卡发往主控交换单元; 若判定结果为否, 且保护线卡根据自身的运 行状态得到的检测信息判定保护线卡运行正常, 则从用户侧接收的业务报 文通过 STM-4保护线卡发往主交换单元。  Here, the STM-4 working line card determines whether it is running normally according to the detection information obtained by its own running status. If the determination result is yes, the service message received from the user side is sent to the main control through the STM-4 working line card. If the result of the determination is no, and the protection line card determines that the protection line card is operating normally according to the detection information obtained by the operation state of the operation line, the service packet received from the user side is sent to the main exchange unit through the STM-4 protection line card. .

步骤 602: 根据判定结果, 工作线卡或保护线卡把业务报文用内控伪线 上行 MPLS标签封装, 将处理后的业务报文发送给主控交换单元。  Step 602: According to the determination result, the working line card or the protection line card encapsulates the service packet with the uplink MPLS label of the internal control pseudowire, and sends the processed service packet to the main control switching unit.

这里, 若 STM-4工作线卡运行正常, 则 STM-4工作线卡收到用户侧发 来的业务报文后, 将此业务报文用内控伪线上行 MPLS标签 20封装, 将处 理后的业务报文发送给主控交换单元; 若 STM-4 工作线卡运行异常而 STM-4保护线卡运行正常, 则 STM-4保护线卡收到用户侧发来的业务报文 后, 将此业务报文用内控伪线上行 MPLS标签 20封装, 将处理后的业务报 文通过 STM-4保护线卡发送给主控交换单元。 Here, if the STM-4 working line card is operating normally, the STM-4 working line card receives the service packet sent by the user side, and then encapsulates the service packet with the internal control pseudowire upstream MPLS label 20, and the processed packet is processed. The service packet is sent to the master switching unit. If the STM-4 line card is abnormal and the STM-4 line card is working properly, the STM-4 line card receives the service packet from the user side. The service packet is encapsulated by the internal control pseudowire upstream MPLS label 20, and the processed service packet is processed. The text is sent to the master switching unit through the STM-4 protection line card.

步骤 603:工作线卡通过级联口 1或保护线卡通过级联口 2将业务报文 发送给主控交换单元。  Step 603: The working line card sends the service packet to the main control switching unit through the expansion port 2 through the cascade port 1 or the protection line card.

步骤 604〜步骤 605: 主控交换单元将工作线卡或保护线卡发来的业务 报文封装的内控伪线上行 MPLS标签交换为网络侧的伪线上行 MPLS标签, 同时封装隧道上行 MPLS标签, 从网络侧端口发送出去。  Step 604 to step 605: The main control switching unit exchanges the uplink MPLS label of the internal control pseudowire encapsulated in the service packet encapsulated by the working line card or the protection line card into the uplink MPLS label of the network side, and encapsulates the uplink MPLS label of the tunnel. Send it out from the network side port.

这里,主控交换单元收到 STM-4工作线卡或 STM-4保护线卡发来的业 务报文后,将业务报文封装的内控伪线上行 MPLS标签 20交换为网络侧的 伪线上行 MPLS标签 200, 同时封装隧道上行 MPLS标签 2000, 变更业务 报文的目的 MAC地址、 源 MAC地址, 在业务报文上添加 VLAN信息, 将 处理后的业务报文从网络侧端口发送出去。  Here, after receiving the service packet sent by the STM-4 working line card or the STM-4 protection line card, the main control switching unit exchanges the uplink MPLS label 20 of the internal control pseudowire encapsulated in the service packet into the pseudo line of the network side. The MPLS label 200 encapsulates the tunnel upstream MPLS label 2000, and changes the destination MAC address and the source MAC address of the service packet, adds the VLAN information to the service packet, and sends the processed service packet from the network side port.

以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。 凡在本发明的精神和范围之内所作的任何修改、 等同替换和改进 等, 均包含在本发明的保护范围之内。 工业实用性  The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and scope of the invention are intended to be included within the scope of the invention. Industrial applicability

本发明实施例中当报文在主控交换设备和线卡间传输时, 设置工作线 卡和保护线卡, 通过主控交换设备根据 MSP组状态执行报文通过工作线卡 和 /或保护线卡传输。 能够确保业务在 PTN网络中传输的连续性, 使业务传 输的安全性和可靠性得到了很好的保证。  In the embodiment of the present invention, when the packet is transmitted between the main control switching device and the line card, the working line card and the protection line card are set, and the main control switching device executes the packet through the working line card and/or the protection line according to the state of the MSP group. Card transfer. It ensures the continuity of the transmission of services in the PTN network, which ensures the security and reliability of service transmission.

Claims

权利要求书 claims 1、 一种跨线卡复用段保护的方法, 所述方法包括: 1. A method for cross-line card multiplex section protection. The method includes: 在工作链路和保护链路各分配一对内控伪线多协议标签交换 MPLS标 签, 包括内控伪线上行 MPLS标签和内控伪线下行 MPLS标签; Allocate a pair of internal control pseudowire multi-protocol label switching MPLS labels to each of the working link and protection link, including internal control pseudowire upstream MPLS labels and internal control pseudowire downstream MPLS labels; 主控交换单元根据复用段保护 MSP组状态生成转发表, 通过转发表的 出端口 +内控伪线上行 /下行 MPLS 标签信息执行业务报文是通过工作链路 和 /或保护链路传输。 The main control switching unit generates a forwarding table based on the status of the multiplex section protection MSP group, and executes service packets through the upstream/downstream MPLS label information of the forwarding table's egress port + internal control pseudo wire and transmits them through the working link and/or protection link. 2、 根据权利要求 1 所述的方法, 其中, 所述主控交换单元根据 MSP 组状态生成转发表, 通过转发表的出端口 +内控伪线上行 /下行 MPLS 标签 信息执行业务报文是通过工作链路和 /或保护链路传输, 包括: 2. The method according to claim 1, wherein the main control switching unit generates a forwarding table according to the MSP group status, and executes the service message through the outgoing port of the forwarding table + the upstream/downstream MPLS label information on the internal control pseudo wire by working Link and/or protection link transmission, including: 主控交换单元根据 MSP组状态生成转发表, 通过转发表的级联口 1+ 内控伪线下行 MPLS标签执行业务报文通过工作链路发往工作线卡或通过 转发表的级联口 2+内控伪线下行 MPLS标签执行业务报文通过保护链路发 往保护线卡; The main control switching unit generates a forwarding table based on the MSP group status, and sends the downlink MPLS label execution service packets of the internal control pseudowire to the working line card through the working link through the cascade port 1+ of the forwarding table or through the cascade port 2+ of the forwarding table. The internal control pseudo wire downstream MPLS label execution service packets are sent to the protection line card through the protection link; 或主控交换单元生成转发表, 通过转发表的级联口 1+内控伪线下行 MPLS标签和级联口 2+内控伪线下行 MPLS标签执行业务报文通过工作链 路和保护链路同时发往工作线卡和保护线卡; Or the main control switching unit generates a forwarding table, and the service packets are sent simultaneously through the working link and the protection link through the cascade port 1 + internal control pseudo wire downlink MPLS label and the cascade port 2 + internal control pseudo wire downlink MPLS label in the forwarding table. To the working line card and protection line card; 或工作线卡和保护线卡同时发来业务报文, 主控交换单元根据 MSP组 状态生成转发表, 通过转发表的级联口 1+内控伪线上行 MPLS标签或级联 口 2+内控伪线上行 MPLS标签执行接收工作线卡或保护线卡的业务报文。 Or the working line card and the protection line card send service packets at the same time. The main control switching unit generates a forwarding table according to the MSP group status, and uses the cascade port 1 + internal control pseudo line in the forwarding table to uplink the MPLS label or the cascade port 2 + internal control pseudo wire. The online upstream MPLS label is used to receive service packets from the working line card or the protection line card. 3、 根据权利要求 1或 2所述的方法, 其中, 所述方法还包括: 定自身是否运行正常, 根据判定结果, 工作线卡或保护线卡执行业务报文 通过工作链路或保护链路发送给主控交换单元。 3. The method according to claim 1 or 2, wherein the method further includes: determining whether it is operating normally, and based on the determination result, the working line card or the protection line card executes the service message through the working link or the protection link. Sent to the main control switching unit. 4、 根据权利要求 3所述的方法, 其中, 所述根据判定结果工作线卡或 保护线卡执行业务报文通过工作链路或保护链路发送给主控交换单元, 包 括: 4. The method according to claim 3, wherein the working line card or The protection line card executes service packets and sends them to the main control switching unit through the working link or protection link, including: 当所述判定结果为工作线卡运行正常时, 则工作线卡执行业务报文通 过工作链路发送给主控交换单元; When the determination result is that the working line card is operating normally, the working line card execution service message is sent to the main control switching unit through the working link; 当所述判定结果为工作线卡运行异常且保护线卡运行正常时, 则保护 线卡执行业务报文通过保护链路发送给主控交换单元。 When the determination result is that the working line card operates abnormally and the protection line card operates normally, the protection line card execution service message is sent to the main control switching unit through the protection link. 5、 根据权利要求 1或 2所述的方法, 其中, 所述方法还包括: 工作线卡和保护线卡实时检测自身的运行状态得到检测信息, 并将检 测信息发送给主控交换单元; 5. The method according to claim 1 or 2, wherein the method further includes: detecting the operating status of the working line card and the protection line card in real time to obtain detection information, and sending the detection information to the main control switching unit; 主控交换单元根据实时收到的工作线卡和保护线卡发来的检测信息判 定 MSP组状态。 The main control switching unit determines the MSP group status based on the detection information received from the working line card and protection line card in real time. 6、一种跨线卡复用段保护下线卡业务接入分组交换网 PTN的方法,所 述方法包括: 在工作链路和保护链路各分配一对内控伪线多协议标签交换 MPLS标签; 6. A method for connecting line card services to a packet-switched network (PTN) under multiplex section protection across line cards. The method includes: allocating a pair of internal control pseudo-wire multi-protocol label switching MPLS labels to each of the working link and the protection link. ; 上行方向, 工作线卡和 /或保护线卡将业务报文封装内控伪线上行 MPLS标签发送给主控交换单元,主控交换单元接收工作线卡或保护线卡发 来的业务报文, 并将业务报文上封装的内控伪线上行 MPLS标签交换为网 络侧的伪线上行 MPLS标签, 同时封装隧道上行 MPLS标签, 将处理后的 业务报文发送给网络侧; In the upstream direction, the working line card and/or protection line card encapsulates the service packet with the internal control pseudo wire upstream MPLS label and sends it to the main control switching unit. The main control switching unit receives the service packet sent by the working line card or protection line card, and Exchange the internal control pseudowire upstream MPLS label encapsulated on the service packet for the pseudowire upstream MPLS label on the network side, encapsulate the tunnel upstream MPLS label at the same time, and send the processed service packet to the network side; 下行方向,主控交换单元剥离业务报文上封装的隧道下行 MPLS标签, 将网络侧的伪线下行 MPLS标签交换为内控伪线下行 MPLS标签, 将处理 后的业务报文发送给工作线卡和 /或保护线卡, 工作线卡和 /或保护线卡收到 业务报文后进行用户侧业务报文的转发。 In the downstream direction, the main control switching unit strips off the tunnel downstream MPLS label encapsulated on the service packet, exchanges the pseudowire downstream MPLS label on the network side for the internal control pseudowire downstream MPLS label, and sends the processed service packet to the working line card and /or protection line card, working line card and/or protection line card forward the user-side service message after receiving the service message. 7、 根据权利要求 6所述的方法, 其中, 所述方法还包括, 7. The method according to claim 6, wherein the method further includes: 在上行方向, 所述工作线卡和保护线卡同时发送业务报文给主控交换 单元, 主控交换单元根据 MSP组状态生成转发表, 根据转发表信息选择接 收工作线卡或保护线卡的业务报文; In the upstream direction, the working line card and the protection line card simultaneously send service packets to the main control switch. Unit, the main control switching unit generates a forwarding table according to the MSP group status, and selects to receive the service packets of the working line card or the protection line card according to the forwarding table information; 或者所述工作线卡或保护线卡根据自身的运行状态, 当工作线卡运行 正常时, 业务报文通过工作线卡发送给主控交换单元; 当工作线卡运行异 常时, 业务报文通过保护线卡发送给主控交换单元。 Or the working line card or the protection line card is based on its own operating status. When the working line card is running normally, the service message is sent to the main control switching unit through the working line card; when the working line card is running abnormally, the service message is sent through The protection line card is sent to the main control switching unit. 8、 根据权利要求 6或 7所述的方法, 其中, 所述方法还包括, 在下行方向, 所述主控交换单元将业务报文发送给工作线卡和保护线 卡; 8. The method according to claim 6 or 7, wherein the method further includes: in the downlink direction, the main control switching unit sends the service message to the working line card and the protection line card; 或者所述主控交换单元根据 MSP组状态生成转发表, 根据转发表信息 选择将业务报文发送给工作线卡或保护线卡。 Or the main control switching unit generates a forwarding table based on the MSP group status, and selects to send the service packet to the working line card or the protection line card based on the forwarding table information. 9、 一种线卡, 所述线卡作为工作线卡, 所述线卡包括: 第一检测模块、 第一收发模块和第一标签管理模块; 9. A line card, the line card serves as a working line card, and the line card includes: a first detection module, a first transceiver module and a first label management module; 所述第一检测模块, 配置为实时检测工作线卡的运行状态得到检测信 息, 将该检测信息发送给第一收发模块; The first detection module is configured to detect the operating status of the working line card in real time to obtain detection information, and send the detection information to the first transceiver module; 所述第一收发模块, 配置为将检测信息发送给主控交换单元; 还配置 为在上行方向发送业务报文给主控交换单元; 下行方向将从主控交换单元 接收的业务报文发往用户侧; The first transceiver module is configured to send detection information to the main control switching unit; is also configured to send service messages to the main control switching unit in the uplink direction; and sends service messages received from the main control switching unit in the downlink direction. User side; 所述第一标签管理模块, 配置为在发往主控交换单元的业务报文上封 装内控伪线上行 MPLS标签, 将所述业务报文发送给第一收发模块。 The first label management module is configured to encapsulate the internal control pseudo wire upstream MPLS label on the service packet sent to the main control switching unit, and send the service packet to the first transceiver module. 10、 根据权利要求 9所述的线卡, 其中, 所述线卡还包括第一判定模 块, 配置为在上行方向上, 当工作线卡或保护线卡发送业务报文给主控交 换单元时, 根据第一检测模块得到检测信息判定工作线卡是否运行正常, 并将判定结果发送给第一收发模块和保护线卡; 10. The line card according to claim 9, wherein the line card further includes a first determination module configured to, in the uplink direction, when the working line card or the protection line card sends a service message to the main control switching unit , determine whether the working line card is operating normally based on the detection information obtained by the first detection module, and send the determination result to the first transceiver module and the protection line card; 相应的, 所述第一收发模块, 还配置为当所述第一判定模块的判定结 果为是时, 将业务报文发送给主控交换单元。 Correspondingly, the first transceiver module is further configured to send the service message to the main control switching unit when the determination result of the first determination module is yes. 11、 根据权利要求 9 所述的线卡, 其中, 所述第一收发模块, 还配置 为接收所述保护线卡是否运行正常的判定结果, 当所述判定结果为否时, 将业务报文发送给主控交换单元。 11. The line card according to claim 9, wherein the first transceiver module is further configured to receive a determination result of whether the protection line card is operating normally, and when the determination result is no, send the service message to Sent to the main control switching unit. 12、 一种线卡, 所述线卡作为保护线卡, 所述线卡包括: 第二检测模 块、 第二收发模块和第二标签管理模块; 12. A line card, the line card serves as a protection line card, and the line card includes: a second detection module, a second transceiver module and a second label management module; 所述第二检测模块, 配置为实时检测保护线卡的运行状态得到检测信 息, 将该检测信息发送给第二收发模块; The second detection module is configured to detect the operating status of the protection line card in real time to obtain detection information, and send the detection information to the second transceiver module; 所述第二收发模块, 配置为将检测信息发送给主控交换单元; 还配置 为在上行方向发送业务报文给主控交换单元; 下行方向将从主控交换单元 接收的业务报文发往用户侧; The second transceiver module is configured to send detection information to the main control switching unit; is also configured to send service messages to the main control switching unit in the uplink direction; and sends service messages received from the main control switching unit in the downlink direction. User side; 所述第二标签管理模块, 配置为在发往主控交换单元的业务报文上封 装内控伪线上行 MPLS标签, 将该业务报文发送给第二收发模块。 The second label management module is configured to encapsulate the internal control pseudo-wire upstream MPLS label on the service message sent to the main control switching unit, and send the service message to the second transceiver module. 13、 根据权利要求 12所述的线卡, 其中, 所述保护线卡还包括第二判 定模块, 配置为在上行方向上, 当工作线卡或保护线卡发送业务报文给主 控交换单元时, 根据第二检测模块得到检测信息判定保护线卡是否运行正 常, 并将判定结果发送给工作线卡和第二收发模块; 13. The line card according to claim 12, wherein the protection line card further includes a second determination module configured to, in the uplink direction, when the working line card or the protection line card sends a service message to the main control switching unit When, determine whether the protection line card is operating normally based on the detection information obtained by the second detection module, and send the determination result to the working line card and the second transceiver module; 所述第二收发模块, 还配置为接收所述工作线卡是否运行正常的判定 结果, 当所述判定结果为否, 且所述第二判定模块的判定结果为是时, 将 业务报文发送给主控交换单元。 The second transceiver module is also configured to receive a determination result of whether the working line card is operating normally, and when the determination result is no and the determination result of the second determination module is yes, send the service message. to the main control switching unit. 14、 一种主控交换单元, 所述主控交换单元包括: 第三收发模块、 中 央处理模块、 交换模块和第三标签管理模块; 14. A main control switching unit, the main control switching unit includes: a third transceiver module, a central processing module, a switching module and a third label management module; 所述第三收发模块, 配置为接收工作线卡和保护线卡的检测信息; 还 配置为在上行方向将工作线卡或保护线卡发来的业务报文发送给网络侧; 在下行方向将网络侧发来的业务报文发送给工作线卡和 /或保护线卡; The third transceiver module is configured to receive detection information of the working line card and the protection line card; and is also configured to send the service packets sent by the working line card or the protection line card to the network side in the uplink direction; and in the downlink direction. Service packets sent from the network side are sent to the working line card and/or protection line card; 所述中央处理模块, 配置为根据第三收发模块接收到的工作线卡和保 护线卡的检测信息判定 MSP组状态, 并根据 MSP组状态生成转发表, 向 交换模块下发转发表; The central processing module is configured to receive the working line card and the protection data according to the third transceiver module. The detection information of the line protection card determines the MSP group status, generates a forwarding table based on the MSP group status, and delivers the forwarding table to the switching module; 所述交换模块, 配置为根据转发表信息执行对工作链路或是保护链路 的切换; The switching module is configured to perform switching of the working link or the protection link according to the forwarding table information; 所述第三标签管理模块, 配置为在上行方向将第三收发模块从工作线 卡或保护线卡接收的业务报文封装的内控伪线上行 MPLS标签交换为网络 侧的伪线上行 MPLS标签, 同时封装隧道上行 MPLS标签, 由第三收发模 块发往网络侧; 还配置为在下行方向将第三收发模块从网络侧接收的业务 报文上封装的隧道下行 MPLS标签剥离, 将网络侧的伪线下行 MPLS标签 交换为内控伪线下行 MPLS标签, 由第三收发模块发送给工作线卡和 /或保 护线卡。 The third label management module is configured to exchange the internal control pseudo-wire upstream MPLS label encapsulated in the service message received by the third transceiver module from the working line card or the protection line card into a pseudo-wire upstream MPLS label on the network side in the upstream direction, At the same time, the tunnel upstream MPLS label is encapsulated and sent to the network side by the third transceiver module; it is also configured to strip the tunnel downstream MPLS label encapsulated on the service packets received by the third transceiver module from the network side in the downstream direction, and remove the pseudo network side MPLS label. The offline downlink MPLS label is exchanged for the internal control pseudo line downlink MPLS label, which is sent by the third transceiver module to the working line card and/or protection line card. 15、 一种跨线卡复用段保护下线卡业务接入 PTN的系统, 所述系统包 括: 工作线卡、 保护线卡和权利要求 14所述的主控交换单元; 所述工作线 卡包括权利要求 9至 11任一项所述的线卡;所述保护线卡包括权利要求 12 或 13所述的线卡。 15. A system for connecting line card services to PTN under multiplex section protection of line cards. The system includes: a working line card, a protection line card and the main control switching unit according to claim 14; the working line card The protection line card includes the line card according to any one of claims 9 to 11; the protection line card includes the line card according to claim 12 or 13.
PCT/CN2013/081307 2012-08-24 2013-08-12 Protection method of cross line card, relevant device, and method and system for access of line card service to ptn Ceased WO2014029286A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210304158.9 2012-08-24
CN201210304158.9A CN102857420B (en) 2012-08-24 2012-08-24 The method and system of cross-line card protection method, relevant apparatus and line card service access PTN

Publications (1)

Publication Number Publication Date
WO2014029286A1 true WO2014029286A1 (en) 2014-02-27

Family

ID=47403624

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/081307 Ceased WO2014029286A1 (en) 2012-08-24 2013-08-12 Protection method of cross line card, relevant device, and method and system for access of line card service to ptn

Country Status (2)

Country Link
CN (1) CN102857420B (en)
WO (1) WO2014029286A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3182645A4 (en) * 2014-08-15 2017-08-16 ZTE Corporation Network protection switching method, network device and storage medium
CN109495286A (en) * 2017-09-13 2019-03-19 中兴通讯股份有限公司 Intersect loop multiplying segment alarm detection method and device, computer readable storage medium
CN112583731A (en) * 2021-01-11 2021-03-30 北京华环电子设备有限公司 Method and device for fragmenting and recombining GRE (generic routing encapsulation) message
CN115941603A (en) * 2022-10-26 2023-04-07 新华三信息技术有限公司 A method and network equipment for processing packets

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857420B (en) * 2012-08-24 2016-01-20 中兴通讯股份有限公司 The method and system of cross-line card protection method, relevant apparatus and line card service access PTN
CN106411546B (en) * 2015-07-29 2020-03-17 中兴通讯股份有限公司 Pseudo wire dual-homing protection control method and communication equipment
CN107040392B (en) * 2015-07-29 2020-08-04 南京中兴软件有限责任公司 Pseudo wire dual-homing protection management method and communication equipment
CN113271266B (en) * 2021-04-21 2024-03-22 锐捷网络股份有限公司 Message forwarding method and device of heterogeneous switching chip

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1394053A (en) * 2001-06-27 2003-01-29 华为技术有限公司 Fast protecting switching method for multi-protocol label exchange
CN101227397A (en) * 2008-01-28 2008-07-23 华为技术有限公司 Method, device and system for protecting links
CN102571426A (en) * 2011-12-29 2012-07-11 杭州华三通信技术有限公司 Double-homing protection method and device
CN102857420A (en) * 2012-08-24 2013-01-02 中兴通讯股份有限公司 Protective method of cross line card, associated device, and method and system for accessing line card service to PTN (Packet Transport Network)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101854255B (en) * 2010-05-14 2014-03-12 中兴通讯股份有限公司 Method and system for protecting multiplex section in packet transport network
CN102035680A (en) * 2010-12-17 2011-04-27 中兴通讯股份有限公司 Cross-equipment link protection method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1394053A (en) * 2001-06-27 2003-01-29 华为技术有限公司 Fast protecting switching method for multi-protocol label exchange
CN101227397A (en) * 2008-01-28 2008-07-23 华为技术有限公司 Method, device and system for protecting links
CN102571426A (en) * 2011-12-29 2012-07-11 杭州华三通信技术有限公司 Double-homing protection method and device
CN102857420A (en) * 2012-08-24 2013-01-02 中兴通讯股份有限公司 Protective method of cross line card, associated device, and method and system for accessing line card service to PTN (Packet Transport Network)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3182645A4 (en) * 2014-08-15 2017-08-16 ZTE Corporation Network protection switching method, network device and storage medium
CN109495286A (en) * 2017-09-13 2019-03-19 中兴通讯股份有限公司 Intersect loop multiplying segment alarm detection method and device, computer readable storage medium
CN112583731A (en) * 2021-01-11 2021-03-30 北京华环电子设备有限公司 Method and device for fragmenting and recombining GRE (generic routing encapsulation) message
CN115941603A (en) * 2022-10-26 2023-04-07 新华三信息技术有限公司 A method and network equipment for processing packets

Also Published As

Publication number Publication date
CN102857420B (en) 2016-01-20
CN102857420A (en) 2013-01-02

Similar Documents

Publication Publication Date Title
WO2014029286A1 (en) Protection method of cross line card, relevant device, and method and system for access of line card service to ptn
JP4899959B2 (en) VPN equipment
US9755957B2 (en) Pseudowire control channel for signaling events
US8565098B2 (en) Method, device, and system for traffic switching in multi-protocol label switching traffic engineering
JP5484590B2 (en) Method, device and system for processing service traffic based on pseudowire
US8521896B2 (en) Method and system for negotiating the bidirectional forwarding detection session discriminator of pseudo wire
EP2951959B1 (en) Using ethernet ring protection switching with computer networks
US20150138958A1 (en) System and method to send oam packets on redundancy paths
US20130272114A1 (en) Pseudo wire switching method and device
CN102264088B (en) Pseudo-wire pretection switch implementation method and device
WO2012075831A1 (en) Method and system for multicast protection
EP2839611A1 (en) Method to do fast traffic switchover based on server layer status
US20090010182A1 (en) Protection providing method and customer edge apparatus
EP3681112B1 (en) Method, apparatus and system for transmitting multicast message
WO2018113294A1 (en) Method, device and system for forwarding packet
CN105656776B (en) Pseudo wire dual-homing protection switching system, method and device
CN101719834B (en) Method and system for realizing virtual private multicast service protection
EP2485451B1 (en) Two-layer forwarding method for a pseudo wire (pw) service and system thereof
CN103825819B (en) A kind of message sending and receiving method, device
JP2012151604A (en) Provider network and provider edge device
WO2008095390A1 (en) An equipment for detecting the line fault of the pseudo wire emulation and a method thereof
CN101729361A (en) Method and device for processing message
CN104753792B (en) The network equipment and the method to E-Packet
CN103281244A (en) Service carrying method and device of multi-protocol label switching network
WO2011017892A1 (en) Method and apparatus for implementing load sharing for communication traffic

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

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

Country of ref document: EP

Kind code of ref document: A1