WO2017118008A1 - 报文传输方法及装置 - Google Patents

报文传输方法及装置 Download PDF

Info

Publication number
WO2017118008A1
WO2017118008A1 PCT/CN2016/093615 CN2016093615W WO2017118008A1 WO 2017118008 A1 WO2017118008 A1 WO 2017118008A1 CN 2016093615 W CN2016093615 W CN 2016093615W WO 2017118008 A1 WO2017118008 A1 WO 2017118008A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
message
packet
receiving
channel
Prior art date
Application number
PCT/CN2016/093615
Other languages
English (en)
French (fr)
Inventor
何益波
唐思诚
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017118008A1 publication Critical patent/WO2017118008A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • H04L12/437Ring fault isolation or reconfiguration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]

Definitions

  • Embodiments of the present invention relate to, but are not limited to, the field of communications, and in particular, to a message transmission method and apparatus.
  • the Packet Optical Transport Network (POTN) technology is a result of the continued evolution of the Packet Transport Network (PTN) technology. It uses a multi-protocol label switching based transmission subset (Multi-Protocol). Label Switching-Transport Profile (referred to as MPLS-TP) over optical path data unit (ODU), which maps MPLS packets to multi-service packets and maps them to optical transport networks (Optical).
  • MPLS-TP Label Switching-Transport Profile
  • ODU optical path data unit
  • the Transport Network (OTN) ODU time slot channel transmission combines the advantages of PTN and OTN, and can fuse the original PTN network and OTN nodes.
  • the ring network protection function of the OTN can effectively utilize the bandwidth.
  • the Label Switched Path (LSP) of the through-node that is in the POTN network cannot be protected by the ring network.
  • LSP Label Switched Path
  • the ODU is set in segments in the POTN network, and the protection mechanism for the OTN is not deployed.
  • the protection mechanism of the PTN-side shared ring can solve the local failure fault.
  • the PTN side shares the ring network.
  • this method can also be used, but it also has some disadvantages: a shared tunnel and a shared tunnel protection tunnel must be configured.
  • 4*N ring tunnels need to be configured.
  • the configuration workload is very large; at the same time, different shared working tunnels correspond to different protection tunnels, which makes the calculation of bandwidth control very complicated; the configuration segment needs to be configured, and the Operation Administration and Maintenance (OAM) is enabled on the segment. , Need to occupy link bandwidth.
  • OFAM Operation Administration and Maintenance
  • the embodiment of the invention provides a message transmission method and device, which at least solves the problem that the POTN shared ring network protection configuration in the related art has a large workload, a complicated bandwidth control calculation, and needs to occupy excessive link bandwidth.
  • a packet transmission method includes: a first node in an Optical Packet Transport Network (POTN) determines that a packet transmission direction between the second node needs to be adjusted; The first node adjusts the message transmission direction; the first node uses the adjusted message transmission direction to perform message transmission between the first node and the second node.
  • POTN Optical Packet Transport Network
  • the first node in the POTN determines that a message transmission direction that needs to be adjusted and the second node includes at least one of the following:
  • the first node detects that a link between the first node and the second node is faulty
  • the first node detects that a node between the first node and the second node is faulty
  • the first node receives a switching command for performing packet transmission switching with the second node.
  • the adjusting, by the first node, the packet transmission direction includes:
  • the first node adjusts packet transmission of the first node in a first direction of the first node and a second direction of the first node, where the first direction is east and west In one direction, the second direction is the other of the east and west directions.
  • the first node passes the first working channel and the second node in the first direction of the first node before determining that the packet transmission direction needs to be adjusted.
  • the first node detects that the link between the first node and the second node is faulty and/or, the first node detects the first node and the When the node between the second nodes fails,
  • Adjusting, by the first node, the packet transmission of the first node in the first direction of the first node and the second direction of the first node includes:
  • the first node When the message is sent, the first node sends a message to the first protection channel and the second protection channel in the second direction of the first node; and/or, when receiving the message, The first node processes the message received by the first protection channel in the first direction of the first working channel and the first node in the first direction: the receiving is determined by the optical data unit (ODUK) Discarding the message before the message; the first node pair passes the second working channel in the second direction of the first node and the second direction in the second direction of the first node
  • the packet received by the protection channel is processed as follows: after receiving the packet parsed by the ODUK, the packet is subjected to label processing.
  • the method further includes: After the first node determines that the packet transmission direction between the second node and the second node is restored, the packet is transmitted between the second node and the second node: when the packet is sent, the first working channel is used.
  • the second protection channel sends a message; and/or, when receiving the message, the message to be received by the first working channel and the second working channel is processed as follows: the receiving is parsed by the ODUK After the received packet, the packet is processed by the label; the packet received by the first protection channel and the second protection channel is processed as follows: before receiving the packet parsed by the ODUK, Discarding the packet; after determining that the second node returns to a normal state, enters a normal state; or
  • the normal state is that the node is configured to be received by the ODUK by a protection channel in a first direction of the node and a protection channel in the second direction of the node.
  • the first node passes the first working channel and the second node in the first direction of the first node before determining that the packet transmission direction needs to be adjusted.
  • the first node adjusts the first node at the first
  • the message transmission in the first direction of the node and the second direction of the first node includes:
  • the first node enters a first packet transmission state: when the packet is sent, the packet is sent by the first working channel and the second protection channel in the second direction of the first node; And/or, when receiving the message, the message to be received by the first working channel and the second working channel in the second direction of the first node is processed as follows: receiving the optical data unit After the ODUK parses the obtained packet, the packet is processed by the label processing. The packet received by the first protection channel and the second protection channel in the first direction of the first node is processed as follows: Discarding the packet before receiving the packet parsed by the ODUK;
  • the first node instructs the second node to enter a second packet transmission state: when the packet is sent, the second node sends the second node to the second node.
  • the third working channel in the first direction and the fourth protection channel in the second direction of the second node send a message; and/or, when receiving the message, the second node treats
  • the packet received by the third working channel and the third protection channel in the first direction of the second node is processed as follows: before receiving the packet parsed by the ODUK, discarding the packet
  • the second node processes the packet received by the fourth working channel in the second direction of the second node and the fourth protection channel in the second direction of the second node as follows: After receiving the packet parsed by the ODUK, performing label processing on the packet;
  • the first node After the first node determines that the second node enters the second packet transmission state, the first node enters a third packet transmission state: when the packet is sent, the first node sends The first working channel and the second protection channel send a message; and/or, when receiving the message, the first node receives a report that is received by the first working channel and the first protection channel
  • the processing is as follows: before receiving the packet parsed by the optical data unit ODUK, discarding the packet; the first node performs the following message received by the second working channel and the second protection channel as follows Processing: After receiving the packet parsed by the ODUK, performing label processing on the packet.
  • the first node adjusts a first direction of the first node in the first node and After the message transmission in the second direction of the first node, the method further includes:
  • the first node After the first node determines that the switching command has been revoked, the first node enters the first message transmission state
  • the first node After the first node enters the first packet transmission state, the first node is instructed to enter a normal state;
  • the first node After the first node determines that the second node enters a normal state, the first node enters a normal state;
  • the normal state is that the node is configured to be received by the ODUK by a protection channel in a first direction of the node and a protection channel in the second direction of the node.
  • a packet transmission method including: a second node in an optical packet transmission network POTN determines that a message transmission direction between the first node needs to be adjusted; The node adjusts the message transmission direction; the second node uses the adjusted message transmission direction to perform message transmission between the second node and the first node.
  • the second node in the POTN determines that a packet transmission direction that needs to be adjusted with the first node includes at least one of the following:
  • the second node detects that a link between the second node and the first node is faulty
  • the second node detects that a node between the second node and the first node is faulty
  • the second node receives the adjustment instruction sent by the first node, where the adjustment instruction is used to instruct the second node to adjust a message transmission direction with the first node.
  • the adjusting, by the second node, the packet transmission direction includes: the second node adjusting the second node in a first direction of the second node and a second direction of the second node The message transmission, wherein the first direction is one of an east direction and a west direction, and the second direction is another direction of the east direction and the west direction.
  • the second node passes the fourth working channel in the second direction of the second node and the first node before determining that the packet transmission direction needs to be adjusted.
  • the second node detects that the link between the second node and the first node is faulty and/or, the second node detects the second node and the When the node between the first node fails, the second node adjusts the message transmission of the second node in the first direction of the second node and the second direction of the second node, including:
  • the second node When the packet is sent, the second node sends a message to the third protection channel in the first direction of the fourth working channel and the second node; and/or,
  • the second node When receiving the packet, the second node processes the packet received by the fourth protection channel in the second direction of the second working channel and the second node by processing: receiving optical data Before the unit ODUK parses the obtained packet, discarding the packet; the second node pair passes the third working channel in the first direction of the second node and the first party of the second node
  • the packet received by the third protection channel is processed as follows: after receiving the packet parsed by the ODUK, the packet is subjected to label processing.
  • the method further includes:
  • the packet is transmitted between the first node and the first node: when the packet is sent, the fourth work is performed.
  • the channel and the third protection channel send a message; and/or, when receiving the message, the message to be received by the fourth working channel and the third working channel is processed as follows:
  • the ODUK parses the obtained packet, the packet is processed by the label; the packet received by the fourth protection channel and the third protection channel is processed as follows: receiving the packet parsed by the ODUK Previously, the packet is discarded; after the first node is determined to return to the normal state, the normal state is entered; or
  • the normal state is that the node is configured to be received by the ODUK by a protection channel in a first direction of the node and a protection channel in the second direction of the node.
  • the second node passes the fourth working channel in the second direction of the second node and the first node before determining that the packet transmission direction needs to be adjusted.
  • the second node adjusts the first direction and the second node of the second node in the second node.
  • the message transmission in the second direction of the node includes:
  • the first packet transmission status that is entered by the first node is: when the packet is sent, by using the Transmitting a message by the first working channel in the first direction of the first node and the second protection channel in the second direction of the first node; and/or, when receiving the message, treating the message
  • the packet received by the first working channel and the second working channel in the second direction of the first node is processed as follows: after receiving the packet parsed by the optical data unit ODUK, the packet is processed. a label processing; the message to be received by the first protection channel and the second protection channel in the first direction of the first node is processed as follows: before receiving the message parsed by the ODUK, Discard the message;
  • the second node enters a second message transmission state according to the adjustment instruction: when the message is sent, the second node sends a third working channel in the first direction to the second node Transmitting, by the fourth protection channel in the second direction of the second node, a message; and/or, when receiving the message, the second node is to pass the third working channel and the second node
  • the packet received by the third protection channel in the first direction is processed as follows: before receiving the packet parsed by the ODUK, discarding the packet; the second node pair passes the second node
  • the message received by the fourth working channel in the second direction and the fourth protection channel in the second direction of the second node is processed as follows: after receiving the message parsed by the ODUK After that, the message is tagged.
  • the second node after the second node adjusts the message transmission of the second node in the first direction of the second node and the second direction of the second node, the second node further includes:
  • the second node enters a normal state according to the first indication message
  • the second node sends a second indication message to the first node, where the second indication message is used to indicate that the first node enters a normal state;
  • the normal state is that the node is configured to be received by the ODUK by a protection channel in a first direction of the node and a protection channel in the second direction of the node.
  • a message transmission apparatus is provided, where the apparatus is applied to a first node in an optical packet transmission network POTN, including:
  • a first determining module configured to determine that a message transmission direction between the second node and the second node needs to be adjusted
  • the first adjustment module is configured to adjust the message transmission direction
  • the first transmission module is configured to perform message transmission between the first node and the second node by using the adjusted message transmission direction.
  • the first determining module includes at least one of the following:
  • a first detecting unit configured to detect that a link between the first node and the second node is faulty
  • a second detecting unit configured to detect that a node between the first node and the second node is faulty
  • the first receiving unit is configured to receive a switching command for performing packet transmission switching with the second node.
  • the first adjustment module includes: a first adjustment unit, configured to adjust packet transmission of the first node in a first direction of the first node and a second direction of the first node Wherein the first direction is one of an east direction and a west direction, and the second direction is another direction of the east direction and the west direction.
  • the first node passes the first working channel and the second node in the first direction of the first node before determining that the packet transmission direction needs to be adjusted.
  • the first adjusting unit includes:
  • a first adjusting subunit configured to send a message to the first working channel and the second protection channel in the second direction of the first node when sending a message
  • the packet received by the first protection channel in the direction is processed as follows: before receiving the packet parsed by the optical data unit ODUK, discarding the packet; the first node pair passing the first node.
  • the packet received by the second working channel in the second direction and the second protection channel in the second direction of the first node is processed as follows: after receiving the packet obtained by the ODUK parsing, The message is tagged.
  • the device further includes: a first processing module, configured to: after adjusting the first node in the first direction of the first node and the second direction of the first node After determining that the packet transmission direction between the second node and the second node is restored, the packet transmission is performed between the second node and the second node: when the packet is sent, the first working channel and the The second protection channel sends a message; and/or, when receiving the message, the message to be received by the first working channel and the second working channel is processed as follows: the receiving is obtained by the ODUK After the packet is processed, the packet is processed by the labeling process. The packet received by the first protection channel and the second protection channel is processed as follows: before receiving the packet parsed by the ODUK, discarding the packet The message enters a normal state after determining that the second node returns to a normal state; or
  • the first node passes the first working channel and the second node in the first direction of the first node before determining that the packet transmission direction needs to be adjusted.
  • the first adjusting unit includes:
  • a first processing subunit configured to enter a first message transmission state: when the message is sent, sent by the first working channel and the second protection channel in the second direction of the first node a message; and/or, when receiving the message, the message to be received by the second working channel in the second direction of the first working channel and the first node is processed as follows: After the optical data unit ODUK parses the obtained packet, the packet is subjected to label processing; The packet received by the first protection channel and the second protection channel in the first direction of the node is processed as follows: before receiving the packet parsed by the ODUK, discarding the packet;
  • the indication subunit is configured to, after entering the first message transmission state, instruct the second node to enter a second message transmission state: when the message is sent, the second node is to the second Transmitting a message by the third working channel in the first direction of the node and the fourth protection channel in the second direction of the second node; and/or, when receiving the message, the second node And processing, by the third working channel, the packet received by the third protection channel in the first direction of the second node, to process the packet: discarding the packet before receiving the packet parsed by the ODUK
  • the second node performs the following message on the fourth protection channel in the second direction of the second node and the fourth protection channel in the second direction of the second node: Processing: after receiving the packet parsed by the ODUK, performing label processing on the packet;
  • a second processing subunit configured to: after determining that the second node enters the second packet transmission state, the first node enters a third packet transmission state: when the packet is sent, the a node sends a message to the first working channel and the second protection channel; and/or, when receiving a message, the first node is to pass the first working channel and the first protection channel
  • the received message is processed as follows: before receiving the packet parsed by the optical data unit ODUK, discarding the packet; the first node receives the packet received by the second working channel and the second protection channel
  • the message is processed as follows: after receiving the message parsed by the ODUK, the message is tagged.
  • the device further includes: a second processing module, configured to: after adjusting the first node in the first direction of the first node and the second direction of the first node And determining that the switching command has been revoked, and entering the first message transmission state;
  • the indication module is configured to: after entering the first message transmission state, instructing the second node to enter a normal state;
  • the third processing module is configured to enter a normal state after determining that the second node enters a normal state
  • the normal state is that the node is configured to be received by the ODUK by a protection channel in a first direction of the node and a protection channel in the second direction of the node.
  • a message transmission apparatus is provided, where the apparatus is applied to a second node in an optical packet transmission network POTN, including:
  • a second determining module configured to determine that a message transmission direction between the first node and the first node needs to be adjusted
  • a second adjustment module configured to adjust the message transmission direction
  • the second transmission module is configured to perform packet transmission between the second node and the first node by using the adjusted message transmission direction.
  • the second determining module includes at least one of the following:
  • a third detecting unit configured to detect that a link between the second node and the first node is faulty
  • a fourth detecting unit configured to detect that a node between the second node and the first node fails
  • the second receiving unit is configured to receive the adjustment instruction sent by the first node, where the adjustment instruction is used to instruct the second node to adjust a message transmission direction with the first node.
  • the second adjustment module includes: a second adjustment unit, configured to adjust packet transmission of the second node in a first direction of the second node and a second direction of the second node Wherein the first direction is one of an east direction and a west direction, and the second direction is another direction of the east direction and the west direction.
  • the second node passes the fourth working channel in the second direction of the second node and the first node before determining that the packet transmission direction needs to be adjusted.
  • the second adjusting unit includes:
  • a second adjustment subunit configured to send a message to the third protection channel in the first direction of the fourth working channel and the second node when sending a message; and/or, receiving the message
  • the message received by the fourth protection channel in the second direction of the second working channel and the second node is processed as follows: before receiving the message parsed by the optical data unit ODUK Discarding the message; the second node pair is in the first direction through the second node
  • the packet received by the third working channel and the third protection channel in the first direction of the second node is processed as follows: after receiving the packet parsed by the ODUK, performing label processing on the packet .
  • the apparatus further includes: a fourth processing module, configured to adjust, at the second node, the second node in a first direction of the second node and a second direction of the second node After the message is transmitted, and after determining that the message transmission direction between the first node is restored, the message transmission is performed with the first node by:
  • the packet is processed as follows: after receiving the packet parsed by the ODUK, performing label processing on the packet; and processing the packet received through the fourth protection channel and the third protection channel as follows: Before discarding the packet obtained by the ODUK, discarding the packet; after determining that the first node returns to a normal state, entering the normal state; or
  • the second node passes the fourth working channel in the second direction of the second node and the first node before determining that the packet transmission direction needs to be adjusted. And performing the message transmission, when the second node receives the adjustment instruction sent by the first node, the second adjustment unit includes:
  • the receiving subunit is configured to receive the adjustment instruction that is sent by the first node after entering the first packet transmission state, where the first packet transmission status of the first node is: Sending a message through the first working channel in the first direction of the first node and the second protection channel in the second direction of the first node; and/or receiving a message
  • the message received by the first working channel and the second working channel in the second direction of the first node is processed as follows: after receiving the message parsed by the optical data unit ODUK And performing label processing on the packet; treating the first guarantee in the first direction that passes the first node
  • the packet received by the guard channel and the second protection channel is processed as follows: before receiving the packet parsed by the ODUK, discarding the packet;
  • a third processing subunit configured to enter a second message transmission state according to the adjustment instruction: when the message is sent, the second node is in a third direction in the first direction of the second node
  • the working channel and the fourth protection channel in the second direction of the second node send a message; and/or, when receiving the message, the second node is to pass the third working channel and the
  • the packet received by the third protection channel in the first direction of the second node is processed as follows: before receiving the packet parsed by the ODUK, discarding the packet; the second node pair passes the The message received by the fourth working channel in the second direction of the second node and the fourth protection channel in the second direction of the second node is processed as follows: after receiving the parsing by the ODUK After the message is received, the message is tagged.
  • the device further includes:
  • a receiving module configured to receive a first indication sent by the first node after adjusting a message transmission of the second node in a first direction of the second node and a second direction of the second node Message
  • a fifth processing module configured to enter a normal state according to the first indication message
  • a sending module configured to send a second indication message to the first node, where the second indication message is used to indicate that the first node enters a normal state
  • the normal state is that the node is configured to be received by the ODUK by a protection channel in a first direction of the node and a protection channel in the second direction of the node.
  • the first node in the optical packet transport network POTN determines that the packet transmission direction between the second node and the second node needs to be adjusted; the first node adjusts the packet transmission direction; the first node Transmitting a message between the adjusted message transmission direction and the second node.
  • FIG. 1 is a flowchart of a first message transmission method according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of a second packet transmission method according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of a service path of an ODUK ring network in a non-switching scenario according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of a service path in which a ring bridge is switched between spans according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of a side bridge bridging switching between side spans and a side bridging service path according to an embodiment of the present invention
  • FIG. 6 is a schematic diagram of a normal service path on one side of a bridge between two segments according to an embodiment of the present invention
  • FIG. 7 is a schematic diagram of a service path in a case of a node failure according to an embodiment of the present invention.
  • FIG. 8 is a structural block diagram of a first message transmission apparatus according to an embodiment of the present invention.
  • FIG. 9 is a structural block diagram of a first determining module 82 in a first message transmission apparatus according to an embodiment of the present invention.
  • FIG. 10 is a structural block diagram of a first adjustment module 84 in a first message transmission apparatus according to an embodiment of the present invention.
  • FIG. 11 is a structural block diagram 1 of a first adjusting unit 102 in a first message transmission apparatus according to an embodiment of the present invention
  • FIG. 12 is a block diagram 1 of an optional structure of a first message transmission apparatus according to an embodiment of the present invention.
  • FIG. 13 is a second structural block diagram of a first adjusting unit 102 in a first message transmission apparatus according to an embodiment of the present invention
  • FIG. 14 is a block diagram 2 of an optional structure of a first message transmission apparatus according to an embodiment of the present invention.
  • FIG. 15 is a structural block diagram of a second message transmission apparatus according to an embodiment of the present invention.
  • FIG. 16 is a structural block diagram of a second determining module 152 in a second message transmitting apparatus according to an embodiment of the present invention.
  • FIG. 17 is a structural block diagram of a second adjustment module 154 in a second message transmission apparatus according to an embodiment of the present invention.
  • FIG. 18 is a structural block diagram 1 of a second adjustment unit 172 in a second message transmission apparatus according to an embodiment of the present invention.
  • 19 is a block diagram 1 of an optional structure of a second message transmission apparatus according to an embodiment of the present invention.
  • FIG. 20 is a second structural block diagram of a second adjustment unit 172 in a second message transmission apparatus according to an embodiment of the present invention.
  • FIG. 21 is a block diagram 2 of an optional structure of a second message transmission apparatus according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a first packet transmission method according to an embodiment of the present invention. As shown in FIG. 1, the process includes the following steps:
  • Step S102 the first node in the optical packet transport network POTN determines that the packet transmission direction between the second node and the second node needs to be adjusted;
  • Step S104 the first node adjusts a packet transmission direction
  • Step S106 The first node performs packet transmission between the adjusted message transmission direction and the second node.
  • the first node in the POTN may determine that the original transmission path cannot be used to transmit the packet to the second node.
  • the scenario may be in multiple types, for example, between the first node and the second node.
  • the foregoing operations in this embodiment can be implemented by using the original tunnel in the POTN, and no need to additionally configure too many ring network tunnels, thereby effectively reducing the configuration workload of the POTN shared ring network protection, the computational complexity of the bandwidth control, and the occupation.
  • the link bandwidth solves the problem that the configuration of the POTN shared ring network protection in the related art is large, the bandwidth control calculation is complicated, and the excessive link bandwidth is required, thereby achieving the configuration work of reducing the protection of the POTN shared ring network.
  • the effect of the amount, bandwidth control computational complexity, and the occupied link bandwidth is a problem that the configuration of the POTN shared ring network protection in the related art is large, the bandwidth control calculation is complicated, and the excessive link bandwidth is required, thereby achieving the configuration work of reducing the protection of the POTN shared ring network.
  • the foregoing first node in the POTN determines that the packet transmission direction to be adjusted with the second node includes at least one of the following: the first node detects the first node and the second node The link fails; the first node detects that the node between the first node and the second node has failed; the first node receives a switching command for performing packet transmission switching with the second node.
  • the foregoing application scenarios are only examples, and can also be applied to other scenarios, for example, setting a specific time point, and when the time point is reached, the message transmission direction with the second node needs to be adjusted. And, after a certain period of time has elapsed, the message transmission direction can be adjusted to the original transmission direction.
  • the first node adjusting the packet transmission direction includes: the first node adjusting the packet transmission of the first node in the first direction of the first node and the second direction of the first node, where The first direction is one of the east direction and the west direction, and the second direction is the other direction. That is, when the first direction is the east direction, the second direction is the west direction; when the first direction is the west direction, the second direction is the east direction.
  • the first node performs packet transmission by using the first working channel and the second node in the first direction of the first node before determining that the packet transmission direction needs to be adjusted.
  • the first node detects that the link between the first node and the second node fails and/or, the first node detects that the node between the first node and the second node fails, the first node can enter In the ring bridge switching state, the first node adjusts the packet transmission of the first node in the first direction of the first node and the second direction of the first node in the ring bridge switching state, and may include: when sending the packet The first node sends a message to the first protection channel and the second protection channel in the second direction of the first node; and/or, when receiving the message, the first node treats the first working channel and the first
  • the packet received by the first protection channel in the first direction of the node is processed as follows: Before the packet is parsed by the optical data unit (ODUK), the packet is discarded; the first node pair passes the second
  • a node that detects the fault recovery may cancel the switchover into the ring bridge state, and after the other node is switched from the ring bridge to the normal state, the node then cancels the ring.
  • the bridging state enters a normal state, and the switching operation is described below.
  • the first node adjusts the first node in the first direction of the first node and the second direction of the first node.
  • the packet is transmitted between the second node and the second node: when the first node detects the fault recovery node, the packet is sent. Transmitting a message through the first working channel and the second protection channel; and/or, when receiving the message, processing the message received through the first working channel and the second working channel as follows: receiving at ODUK
  • the packet is processed by the labeling process.
  • the packet received by the first protection channel and the second protection channel is processed as follows: before receiving the packet parsed by the ODUK, the packet is discarded. After determining that the second node returns to the normal state, it enters a normal state;
  • the first node receives the indication message that is sent by the second node to indicate that the packet transmission direction between the first node and the second node has been restored; Entering a normal state according to the foregoing indication message; wherein the normal state is: the node has a protection channel in a first direction of the node and a protection channel in a second direction of the node, and the received message obtained by the ODUK is respectively determined by the node The ability to pass through.
  • the first node performs packet transmission by using the first working channel and the second node in the first direction of the first node before determining that the packet transmission direction needs to be adjusted.
  • the first node may enter a ring bridging state, and then may notify (eg, notify by an APS command) that the second node The node enters the ring bridge switching state, and after determining that the second node enters the ring bridge switching state, the first node enters the bridge switching state again.
  • the first node adjusts the first node at the first node
  • the message transmission in a direction and the second direction of the first node includes: the first node enters a first message transmission state: when transmitting the message, passing the first working channel and the second direction of the first node
  • the second protection channel sends a message; and/or, when receiving the message, the message to be received by the second working channel in the second direction of the first working channel and the first node is processed as follows:
  • the packet is parsed by the optical data unit ODUK, the packet is processed by the label processing;
  • the packet received by the first protection channel and the second protection channel in the first direction of the first node is processed as follows: Before the packet is parsed by the ODUK, the packet is discarded; after the first node enters the first packet transmission state, the first node instructs the second node to enter the second packet transmission state: when the packet is sent, the second packet is sent.
  • the node sends a message to the third working channel in the first direction of the second node and the fourth protection channel in the second direction of the second node; and/or, when receiving the message, the second node treats the second node Three workers
  • the packet received by the third protection channel in the first direction of the channel and the second node is processed as follows: before receiving the packet parsed by the ODUK, discarding the packet; the second node is passing the second node
  • the packet received by the fourth working channel in the second direction and the fourth protection channel in the second direction of the second node is processed as follows: after receiving the packet parsed by the ODUK, the packet is processed by the label; After determining that the second node enters the second packet transmission state, the first node enters a third packet transmission state: when the packet is sent, the first node is to the first working channel and the second protection The channel sends a message; and/or, when receiving the message, the first node processes the message received by the first working channel and the first protection channel as follows: before receiving the
  • the first node when the switching command is cancelled, the first node may enter the ring bridging state first, and then notify the second node to enter a normal state. When it is determined that the second node enters a normal state, the first node Then enter the normal state.
  • the operation is as follows: after the first node adjusts the first node in the first direction of the first node and the second direction of the first node, the first node further includes:
  • the first node After the first node determines that the switching command has been revoked, the first node enters the first packet transmission state; after the first node enters the first packet transmission state, the first node indicates that the second node enters the normal state. After the first node determines that the second node enters a normal state, the first node enters a normal state; wherein the normal state is: the node has a protection channel in the first direction of the node through the node and a second node The protection channel in the direction transmits the received packets parsed by ODUK separately.
  • FIG. 2 is a flowchart of a second packet transmission method according to an embodiment of the present invention. As shown in FIG. 2, the process includes the following steps:
  • Step S202 the second node in the optical packet transport network POTN determines that the packet transmission direction between the first node and the first node needs to be adjusted;
  • Step S204 the second node adjusts a packet transmission direction.
  • Step S206 the second node performs message transmission between the adjusted message transmission direction and the first node.
  • the second node in the POTN may determine that the original transmission path cannot be used to transmit the packet with the first node (the scenario may be multiple types, for example, between the first node and the second node).
  • the link failure, or the node failure between the first node and the second node, or otherwise, adjusts the message transmission direction to implement message transmission with the first node.
  • the foregoing operations in this embodiment can be implemented by using the original tunnel in the POTN, and no need to additionally configure too many ring network tunnels, thereby effectively reducing the configuration workload of the POTN shared ring network protection, the computational complexity of the bandwidth control, and the occupation.
  • the link bandwidth solves the problem that the configuration of the POTN shared ring network protection in the related art is large, the bandwidth control calculation is complicated, and the excessive link bandwidth is required, thereby achieving the configuration work of reducing the protection of the POTN shared ring network.
  • the effect of the amount, bandwidth control computational complexity, and the occupied link bandwidth is a problem that the configuration of the POTN shared ring network protection in the related art is large, the bandwidth control calculation is complicated, and the excessive link bandwidth is required, thereby achieving the configuration work of reducing the protection of the POTN shared ring network.
  • the second node in the POTN determines that the packet transmission direction to be adjusted with the first node includes at least one of the following: the second node detects the second node and the first node.
  • the link between the second node detects that the node between the second node and the first node has failed; the second node receives the adjustment command sent by the first node, where the adjustment instruction is used to indicate
  • the two nodes adjust the direction of message transmission between the first node and the first node.
  • the first The premise that the node sends the adjustment instruction may be multiple.
  • the first node receives the switching command.
  • the second node receives the above-mentioned switching command, or presets a specific time point, and when the time point is reached, The direction of the message transmission with the first node needs to be adjusted, and the direction of the message transmission can be adjusted to the original transmission direction after a certain period of time has elapsed.
  • the foregoing second node adjusts the packet transmission direction, where the second node adjusts the packet transmission of the second node in the first direction of the second node and the second direction of the second node, where The first direction is one of the east direction and the west direction, and the second direction is the other direction. That is, when the first direction is the east direction, the second direction is the west direction; when the first direction is the west direction, the second direction is the east direction.
  • the second node before the second node determines that the packet transmission direction needs to be adjusted, performs packet transmission with the first node by using the fourth working channel in the second direction of the second node.
  • the second node detects that the link between the second node and the first node is faulty, and/or, when the second node detects that the node between the second node and the first node fails, the second node can enter The ring bridges the switching state, in the ring bridge switching state, the second node adjusts the second node to transmit the message in the first direction of the second node and the second direction of the second node, including: when sending the message, The second node sends a message to the third protection channel in the first direction of the fourth working channel and the second node; and/or, when receiving the message, the second node treats the fourth working channel and the second node
  • the packet received by the fourth protection channel in the two directions is processed as follows: before receiving the packet parsed by the optical data unit ODUK, discarding the packet; the second
  • a node that detects the fault recovery may cancel the switchover into the ring bridge state, and after the other node is switched from the ring bridge to the normal state, the node then cancels the ring.
  • the bridging state enters a normal state, and the switching operation is described below: after the second node adjusts the second node in the first direction of the second node and the second direction of the second node, the method further include:
  • the second node determines the first node After the message transmission direction is restored, the message is transmitted between the first node and the first node: when the message is sent, the message is sent through the fourth working channel and the third protection channel; and/or
  • the packet received by the fourth working channel and the third working channel is processed as follows: after receiving the packet parsed by the ODUK, the packet is processed by the label;
  • the packets received by the fourth protection channel and the third protection channel are processed as follows: before receiving the packet parsed by the ODUK, discarding the packet; after determining that the first node returns to the normal state, the normal state is entered; or
  • the second node receives the indication message sent by the first node to indicate that the packet transmission direction between the first node and the second node has been restored; a state in which the node has a protection channel in a first direction of the node through the node and
  • the second node before the second node determines that the packet transmission direction needs to be adjusted, performs packet transmission with the first node by using the fourth working channel in the second direction of the second node.
  • the second node receives the adjustment instruction sent by the first node, the second node enters a ring bridge switching state, and the operation is described below: the second node adjusts the second node in the first direction and the second node of the second node
  • the message transmission in the second direction of the node includes: receiving an adjustment instruction sent by the first node after entering the first message transmission state, where the first message transmission status of the first node is: sending a message Sending a message through the first working channel in the first direction of the first node and the second protection channel in the second direction of the first node; and/or, when receiving the message, treating the first working channel
  • the packet received by the second working channel in the second direction of the first node is processed as follows: after receiving the packet parsed by the optical data unit ODUK, performing label processing on the packet; The
  • the second node when receiving the message, processes the message received through the third working channel and the third protection channel in the first direction of the second node as follows: receiving the report obtained by ODUK analysis Before the text, the packet is discarded; the second node processes the packet received by the fourth working channel in the second direction of the second node and the fourth protection channel in the second direction of the second node as follows: After the message obtained by ODUK analysis, the message is entered. Line label processing (tag processing may include label stripping and/or label switching processing, etc.).
  • the first node when the switching command is cancelled, may enter the ring bridging state first, and then notify the second node to enter a normal state. When it is determined that the second node enters a normal state, the first node Then enter the normal state.
  • the second node further includes: a first indication message sent by a node; the second node enters a normal state according to the first indication message; the second node sends a second indication message to the first node, where the second indication message is used to indicate that the first node enters a normal state, wherein the normal state is: the node has the capability of transparently transmitting the received message parsed by the ODUK through the protection channel in the first direction of the node and the protection channel in the second direction of the node.
  • the ODUK slot channel is mapped to a virtual port (which may be simply referred to as a virtual port or port) as an example:
  • a POTN shared ring network protection solution is also provided, which can be applied to a ring network configured with distributed services, and realizes multiple distributed services between all sites by occupying two different ODUK channels. protection.
  • the ODUK slot channel can be mapped to a virtual port to the PTN side.
  • the PTN service directly exits the virtual port, that is, enters a time slot channel of the OTN.
  • GFP Generic Framing Procedure
  • the APS protocol is implemented by G.873.2.
  • the protection configuration is on the virtual port of the OTN mapping to the PTN side. Different tunnels can enter the same ODUK channel. The switching is only the switching between the virtual ports, that is, the switching between the ODUK slot channels. To the processing of the tunnel.
  • the MPLS packet parsed from the ODUK is discarded when it reaches the virtual port on the PTN side.
  • the MPLS packet parsed from the virtual port is sent out to the virtual port of the peer end. That is, the packet is not processed on the PTN side.
  • the switching action of the POTN shared ring network is the switching action of the virtual port mapped to the PTN side, including the following three aspects:
  • Ring bridge The action of sending the direction and protecting the virtual port at the same time, that is, dual-issue; the virtual port of the receive direction protection is forbidden, and the working virtual port is terminated.
  • the eastbound bridge it needs to be sent to both the east working port and the west direction protection port; the east and west protection ports are forbidden, and the east and west working ports need to be terminated.
  • the sending direction works and protects the virtual port from sending at the same time; in the receiving direction, the bridging switching in this direction works the virtual port and the protected virtual port are forbidden, and the virtual port and the protected virtual port in the opposite direction need to be terminated.
  • the eastbound bridge switchover needs to be sent to the east working port and the westbound protection port at the same time; the receiving direction, the east working and the protecting virtual port need to be forbidden, and the west working and protecting the virtual port need to be terminated.
  • the MPLS packet that is parsed from the virtual port is sent out to the virtual port of the peer end.
  • the protection channel service is in the through state and the working channel does not pass through. In this way, there is no need to configure a tunnel on the protection channel.
  • Step 1 Select four ODUK slot channels on each node to establish virtual ports mapped to the PTN side.
  • Step 2 Configure the four ports on each node as a ring network protection group, two of which are east working and protection ports, and the other two are west working and protection ports;
  • the third step the upper ring node, configure the tunnel to go directly from a working port
  • the fourth step through the point node, configure the tunnel to come in from a certain working port, and punch out from the working port in the other direction;
  • Step 5 Lower the ring node, configure the tunnel to come in from a virtual port
  • Step 6 Enable the APS protocol of the ring protection group on each node, and include the configuration waiting time WTR;
  • Step 7 When detecting a fault in a certain direction, both ends of the ring network protection enter the ring bridge switching state. When the fault recovers, the end where the fault disappears is detected first (that is, the node that detects the fault disappears first). After entering the ring bridge state, after the peer end is switched from the ring bridge to the normal state, the local end of the ring bridge is normal;
  • Step 8 When the manual command is switched in a certain direction on a certain node, the local end enters the ring bridging state. After the peer end receives the APS command and the peer end enters the ring bridging switchover, the peer end sends an APS packet to let the local end enter the bridging. Switching
  • Step 9 When the manual command is cancelled, the local device enters the ring bridge first. After the peer receives the APS command, the peer end cancels the ring bridge and switches to the normal state. The peer end sends an APS packet to let the local end enter the normal state.
  • FIG. 3 is a schematic diagram of a ODUK ring network service path in a non-switching scenario according to an embodiment of the present invention. As shown in FIG. 3, the specific configuration steps are as follows:
  • Step 1 Select four ODUK slot channels on the four nodes A, B, C, and D, respectively, and establish virtual ports mapped to the PTN side.
  • the virtual port is named GFP_F port.
  • the east is a physical link, such as a pair of physical fibers; the west is also a physical link.
  • the A node may correspond to the first node described above, and the B node may correspond to the second node.
  • Step 2 Configure the four GFP_F ports on each node as ring protection groups, two of which are eastbound and protection ports, and the other two are westbound and protection ports.
  • Step 3 Configure other properties of these shared ring networks, such as WTR time (default is 5 minutes, or other time), HOLD OFF time (default is 0, or other time).
  • Step 4 On the D node, configure the working tunnel to go out from the east working port of the ring network.
  • Step 5 On the A node, configure the working tunnel to come in from the west working port of the ring network, and go through the working port from the east.
  • the inbound and outbound labels of this tunnel must be consistently configured.
  • Step 6 On the D node, configure the tunnel to come to the end from the west working port.
  • Step 7 The C node is an optional node. If it exists, you only need to configure the first three steps.
  • the E-node may be a CE device on the user side edge or a PE device on the other side of the network. If it is a CE device, then the D-node is a user network interface (User Network Interface, UNI for short) side message, or the E node configuration is only a local interactive service, then the D node is also a UNI side message, then The D node needs to configure the service and then enters the working tunnel. If the MPLS packet is sent out from the E node, the working tunnel configured on the D node is a P node switching type tunnel.
  • the D-node is a user network interface (User Network Interface, UNI for short) side message, or the E node configuration is only a local interactive service, then the D node is also a UNI side message, then The D node needs to configure the service and then enters the working tunnel. If the MPLS packet is sent out from the E node, the working tunnel configured on the D node is a P node switching type tunnel.
  • FIG. 4 is a cross according to an embodiment of the present invention.
  • the service path of the ring bridge is switched between the segments.
  • the A and B nodes detect the alarms in the ODUK and then the A and B nodes enter the ring bridge switching state.
  • the following describes the process of alarm trigger switching and alarm disappearing and cutting. Take the traffic flow in the E->D->A->B direction as an example:
  • Step 1 An alarm occurs on the link between nodes A and B.
  • a eastbound fault, westward normal, and A and B nodes enter the ring bridge switching state.
  • the A node will be dual-issue, one direction flow will continue to work eastward, and the other direction will flow to the west.
  • the second step the westbound protection sends the flow to the D node eastward.
  • the D node normally protects the GFP_P port from the punch-through state, and the packet is directly passed through to the westbound protected GFP_P port.
  • the processing of the C node is the same as that of the D node, and the message arrives eastward of the Node B.
  • the third step Node B, in the east direction, protects the GFP_F port from the west to the SF.
  • the packet is terminated and the MPLS packet is parsed out, and then the MPLS packet label is stripped.
  • a cross-bridge bridging switching between side spans and a ring bridging service path are performed, and the service flow from E to B is consistent with the previous two-way bridging switching. Only the traffic from B to E will be banned on the westbound protection of the A node.
  • FIG. 6 is a schematic diagram of a normal service path on one side of the bridge between the segments according to the embodiment of the present invention.
  • the E->B message is still sent at the A node, but only the flow from the east to the B node is reached. The reverse protected flow will eventually be discarded in the east direction of the A node and discarded.
  • Step 6 After receiving the APS packet exchanged by the Node B, the Node A enters the normal state, and the A node also returns to the normal state from the ring bridge state.
  • the first step the east node of the A node will become the ring bridge state, and the other points are currently in the normal state. At this point, the flow of the service flow is as shown in FIG. 4.
  • Step 2 After the Node B receives the APS command, the Westbound switch becomes the Ring Bridge Switchover command. The flow of the service at this time is as shown in FIG. 5.
  • Step 3 After the Node B becomes a ring bridge switchover, the APS command is sent to the A node, and the A node becomes a ring bridge bridge switchover. At this time, the service flow will become as shown in Figure 4.
  • Step 4 Revoke the manual switching command at node A.
  • the A node will become the ring bridge state, and the B node will still be in the ring bridge switching state.
  • the service flow is shown in Figure 5.
  • Step 5 After the Node A receives the APS command, it becomes a normal state. At this time, the A node is still in the ring bridging state. At this time, the service flow is as shown in FIG. 6.
  • Step 6 Finally, point A also cancels the ring bridge state. At this point, the business flow is shown in Figure 3.
  • FIG. 7 is A schematic diagram of a service path in the case of a node failure according to an embodiment of the present invention includes the following steps:
  • Step 1 The A node fails, including abnormal reset or power failure, causing the node to lose power.
  • the D point will detect the fault in the east direction, and the ring bridge will be switched in the east direction.
  • the west direction of point B will detect the fault and also occur.
  • the ring bridge is switched.
  • Step 2 The D node will double-transmit, one direction flow due to the ring bridge switching in the east direction. Continue to work eastward, and the other direction flows to the west.
  • the third step the protection flow from the west of the D node reaches the C node, and the protection channel of the C node is punched through, and the direct service packet punching is sent from the east side of the C node to the B node.
  • Node B is bridged and switched over in the west direction.
  • the protection GFP_F port in the east direction becomes the termination state.
  • the packet is terminated and parsed to obtain the MPLS packet, and then the MPLS packet label is stripped and finally exits from the Node B.
  • Step 5 When the A node is powered on, because the A node is connected to the D node and the B node, it is equivalent to two link failure recovery. Separately, when each link fails to recover, it first detects that the end of the fault disappears into the ring bridge, and then cancels the ring bridge and enters the normal state after the opposite end is normal. This process flow is the same as the previous process of fault recovery, and will not be described again.
  • each node can be a computing device, and each computing device can be connected through a physical link, and the physical link can be used for service message delivery.
  • Each node can have fault detection devices, which detect the east-west direction of the link, and then pass it to the decision-making module for switching decision, and then control the forwarding of the service protection by setting the forwarding chip.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A preferred embodiment.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic).
  • the disc, the optical disc includes a number of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
  • a message transmission device is also provided, which is used to implement the foregoing embodiments and optional implementations, and has not been described again.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 8 is a structural block diagram of a first message transmission apparatus according to an embodiment of the present invention, which may be To be applied to the first node in the optical packet transport network POTN, as shown in FIG. 8, the apparatus includes a first determining module 82, a first adjusting module 84, and a first transmitting module 86, which are described below.
  • the first determining module 82 is configured to determine that the packet transmission direction between the second node and the second node needs to be adjusted; the first adjusting module 84 is connected to the first determining module 82, and is configured to adjust the packet transmission direction; the first transmission The module 86 is connected to the first adjustment module 84, and is configured to perform message transmission between the first node and the second node by using the adjusted message transmission direction.
  • FIG. 9 is a structural block diagram of a first determining module 82 in a first type of message transmitting apparatus according to an embodiment of the present invention. As shown in FIG. 9, the first determining module 82 includes at least one of the following units:
  • the first detecting unit 92 is configured to detect that the link between the first node and the second node is faulty; and the second detecting unit 94 is configured to detect that the node between the first node and the second node is faulty
  • the first receiving unit 96 is configured to receive a switching command for performing message transmission switching with the second node.
  • FIG. 10 is a structural block diagram of a first adjustment module 84 in a first message transmission apparatus according to an embodiment of the present invention. As shown in FIG. 10, the first adjustment module 84 includes a first adjustment unit 102, and the unit is Be explained.
  • the first adjusting unit 102 is configured to adjust a message transmission of the first node in a first direction of the first node and a second direction of the first node, where the first direction is one of an east direction and a west direction, The second direction is the other direction in the east and west directions.
  • the first node before the determining, by the first node, that the packet transmission direction needs to be adjusted, performs packet transmission by using the first working channel in the first direction of the first node and the second node.
  • the first node detects that the link between the first node and the second node is faulty, and/or the first node detects that the node between the first node and the second node fails.
  • 102 may include a first adjustment sub-unit 112, as shown in FIG. 11, FIG. 11 is a structural block diagram 1 of the first adjustment unit 102 in the first message transmission apparatus according to an embodiment of the present invention, and the first adjustment is Subunit 112 is described:
  • the first adjustment subunit 112 is configured to send a message to the second protection channel in the second direction of the first working channel and the first node when sending the message; and/or, when receiving the message, pass the message
  • the first working channel and the packet received by the first protection channel in the first direction of the first node are processed as follows: before receiving the packet parsed by the optical data unit (ODUK), discarding the packet; the first node Transmitting a message received by the second working channel in the second direction of the first node and the second protection channel in the second direction of the first node as follows: after receiving the ODUK analysis After the message is received, the message is tagged.
  • ODUK optical data unit
  • FIG. 12 is a block diagram of an optional structure of a first message transmission apparatus according to an embodiment of the present invention. As shown in FIG. 12, the apparatus includes a first processing module 122 in addition to all the modules shown in FIG. The device will be described below.
  • the first processing module 122 is connected to the first adjustment module 84, and is configured to: after adjusting the first node in the first direction of the first node and the second direction of the first node, and determine the second After the packet transmission direction between the nodes is restored, the packet is transmitted between the node and the second node by sending a packet through the first working channel and the second protection channel when sending the packet; and/or
  • the packet received by the first working channel and the second working channel is processed as follows: after receiving the packet parsed by ODUK, the packet is processed by the label;
  • the packet received by the second protection channel is processed as follows: before receiving the packet parsed by the ODUK, discarding the packet; after determining that the second node returns to the normal state, entering the normal state; or receiving the second node to send the packet
  • An indication message indicating that a message transmission direction between the first node and the second node has been restored; entering a normal state according to the indication message; wherein the positive Status: node by node protection ability in the second direction
  • FIG. 13 is a block diagram showing the structure of the first adjusting unit 102 in the first message transmitting apparatus according to the embodiment of the present invention.
  • the first node before the first node determines that the packet transmission direction needs to be adjusted, The first node performs packet transmission by using the first working channel in the first direction of the first node and the second node, and the first node receives the switching command for performing packet transmission switching with the second node.
  • the first adjustment unit 102 includes a first processing sub-unit 132, an indication sub-unit 134, and a second processing sub-unit 136. The first adjustment unit 102 will be described below.
  • the first processing sub-unit 132 is configured to enter a first packet transmission state: when the packet is sent, the packet is sent through the first working channel and the second protection channel in the second direction of the first node; And/or, when receiving the message, the message to be received by the second working channel in the second direction of the first working channel and the first node is processed as follows: receiving the message parsed by the optical data unit ODUK And performing the label processing on the packet; the packet to be received by the first protection channel and the second protection channel in the first direction of the first node is processed as follows: before receiving the packet parsed by the ODUK, discarding The message;
  • the indication sub-unit 134 is connected to the first processing sub-unit 132, and is configured to, after entering the first message transmission state, instruct the second node to enter a second message transmission state: when transmitting the message, the second node Transmitting a message to a third working channel in a first direction of the second node and a fourth protection channel in a second direction of the second node; and/or, when receiving the message, the second node is to pass the third work
  • the packet received by the channel and the third protection channel in the first direction of the second node is processed as follows: the packet is discarded before receiving the packet parsed by the ODUK; the second node is second through the second node.
  • the packet received by the fourth working channel in the direction and the fourth protection channel in the second direction of the second node is processed as follows: after receiving the packet parsed by the ODUK, the packet is processed by the label;
  • the second processing sub-unit 136 is connected to the indication sub-unit 134, and is configured to: after determining that the second node enters the second packet transmission state, the first node enters a third packet transmission state as follows: when transmitting the packet, The first node sends a message to the first working channel and the second protection channel; and/or, when receiving the message, the first node processes the packet received by the first working channel and the first protection channel as follows: Before receiving the packet parsed by the optical data unit ODUK, discarding the packet; the first node processes the packet received by the second working channel and the second protection channel as follows: receiving the packet parsed by ODUK After that, the message is tagged.
  • FIG. 14 is a block diagram showing an optional structure of a first message transmission apparatus according to an embodiment of the present invention. As shown in FIG. 14, the apparatus includes a second processing module 142 in addition to all the modules shown in FIG. The indication module 144 and the third processing module 146 are described below.
  • the second processing module 142 is connected to the first adjustment module 84, and is configured to: after adjusting the first node in the first direction of the first node and the second direction of the first node, and determine that the switching command has been After being revoked, the first message transmission state is entered;
  • the indicating module 144 is connected to the second processing module 142, and is configured to instruct the second node to enter a normal state after entering the first message transmission state;
  • the third processing module 146 is connected to the indication module 144, and is configured to enter a normal state after determining that the second node enters a normal state; wherein the normal state is: the node has a protection channel in a first direction of the node through the node And the ability of the protection channel in the second direction of the node to transparently receive the received message parsed by ODUK.
  • FIG. 15 is a structural block diagram of a second message transmission apparatus according to an embodiment of the present invention.
  • the apparatus may be applied to a second node in an optical packet transmission network POTN.
  • the apparatus includes a second determination module. 152.
  • the second adjustment module 154 and the second transmission module 156 are described below.
  • the second determining module 152 is configured to determine that the packet transmission direction needs to be adjusted with the first node; the second adjusting module 154 is connected to the second determining module 152, and is configured to adjust the packet transmission direction; the second transmission module 156. Connect to the second adjustment module 154, and set to perform message transmission between the second node and the first node by using the adjusted message transmission direction.
  • FIG. 16 is a structural block diagram of a second determining module 152 in a second message transmitting apparatus according to an embodiment of the present invention. As shown in FIG. 16, the module includes at least one of the following units:
  • the third detecting unit 162 is configured to detect that the link between the second node and the first node is faulty, and the fourth detecting unit 164 is configured to detect that the node between the second node and the first node is faulty;
  • the receiving unit 166 is configured to receive the adjustment instruction sent by the first node, where the adjustment instruction is used to instruct the second node to adjust the message transmission direction with the first node.
  • FIG. 17 is a structural block diagram of a second adjustment module 154 in a second message transmission apparatus according to an embodiment of the present invention. As shown in FIG. 17, the module includes a second adjustment unit 172, which will be described below.
  • the second adjusting unit 172 is configured to adjust a message transmission of the second node in a first direction of the second node and a second direction of the second node, where the first direction is one of an east direction and a west direction, The second direction is the other direction.
  • FIG. 18 is a block diagram showing the structure of a second adjusting unit 172 in a second packet transmission apparatus according to an embodiment of the present invention.
  • the second node before determining that the packet transmission direction needs to be adjusted, The second node performs message transmission with the first node through the fourth working channel in the second direction of the second node, and when the second node detects the link between the second node and the first node If the second node detects that the node between the second node and the first node has failed, the second adjusting unit 172 includes a second adjusting subunit 182, and the second adjusting subunit 182 for explanation.
  • the second adjusting subunit 182 is configured to send a message to the third protection channel in the first direction of the fourth working channel and the second node when sending the message; and/or, when receiving the message, pass the message
  • the packet received by the fourth protection channel and the fourth protection channel in the second direction of the second node is processed as follows: the packet is discarded before receiving the packet parsed by the optical data unit (ODUK); the second node
  • the message received by the third working channel in the first direction of the second node and the third protection channel in the first direction of the second node is processed as follows: after receiving the message obtained by the ODUK parsing, The message is tagged.
  • FIG. 19 is a block diagram showing an optional structure of a second message transmission apparatus according to an embodiment of the present invention. As shown in FIG. 19, the apparatus includes a fourth processing module 192 in addition to all the modules shown in FIG. The device will be described below.
  • the fourth processing module 192 is connected to the second adjustment module 154, and is configured to adjust, after the second node adjusts the second node in the first direction of the second node and the second direction of the second node, and After determining that the packet transmission direction is restored with the first node, the packet is transmitted between the first node and the first node: when the packet is sent, the packet is sent through the fourth working channel and the third protection channel; Or, when receiving a message, the message to be received through the fourth working channel and the third working channel is processed as follows: after receiving the packet parsed by the ODUK, the packet is processed by the tag; The packet received by the fourth protection channel and the third protection channel is processed as follows: before receiving the packet parsed by the ODUK, discarding the packet; after determining that the first node returns to the normal state, the normal state is entered; or Receiving an indication message sent by the first node, indicating that the packet transmission direction between the first node and the second node has been restored; and entering the normal state according to the indication message ;
  • FIG. 20 is a second structural diagram of a second adjustment unit 172 in a second packet transmission apparatus according to an embodiment of the present invention.
  • the second node before determining that the packet transmission direction needs to be adjusted, The second node passes through the fourth working channel in the second direction of the second node and the first The node performs message transmission.
  • the second adjustment unit 172 includes the receiving subunit 202 and the third processing subunit 204. Each subunit is described below.
  • the receiving sub-unit 202 is configured to receive an adjustment instruction sent by the first node after entering the first packet transmission state, where the first packet transmission status of the first node is: when the packet is sent, the first Transmitting a message by the first working channel in the first direction of the node and the second protection channel in the second direction of the first node; and/or, when receiving the message, treating the first working channel and the first node
  • the packet received by the second working channel in the second direction is processed as follows: after receiving the packet parsed by the optical data unit ODUK, performing label processing on the packet; treating the first party passing the first node
  • the packets received by the first protection channel and the second protection channel are processed as follows: before receiving the packet parsed by the ODUK, discarding the packet;
  • the third processing sub-unit 204 is connected to the receiving sub-unit 202, and is configured to enter a second message transmission state according to the adjustment instruction: when the message is sent, the second node is in the first direction of the second node.
  • the third working channel and the fourth protection channel in the second direction of the second node send a message; and/or, when receiving the message, the second node treats the first direction through the third working channel and the second node
  • the packet received by the third protection channel is processed as follows: before receiving the packet parsed by the ODUK, discarding the packet; the second node pair passes the fourth working channel and the second in the second direction of the second node
  • the packet received by the fourth protection channel in the second direction of the node is processed as follows: after receiving the packet parsed by the ODUK, the packet is subjected to label processing.
  • FIG. 21 is a second block diagram of an optional structure of a second message transmission apparatus according to an embodiment of the present invention. As shown in FIG. 21, the apparatus includes a receiving module 212 and a fifth, in addition to all the modules shown in FIG. The processing module 214 and the transmitting module 216 are described below.
  • the receiving module 212 is connected to the second adjusting module 154, and configured to receive, after adjusting the second node in the first direction of the second node and the second direction of the second node, receiving the sending by the first node. a first indication message; the fifth processing module 214 is connected to the receiving module 212, and is configured to enter a normal state according to the first indication message; the sending module 216 is connected to the fifth processing module 214, and configured to send to the first node.
  • the second indication message is used to indicate that the first node enters a normal state; wherein the normal state is: the node has a protection channel in a first direction of the node through the node and a second direction of the node Protection channel will receive The ability of the packets obtained by ODUK to be transparently transmitted out.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple In the processor.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • the first node in the optical packet transport network POTN determines that a packet transmission direction between the second node and the second node needs to be adjusted.
  • the first node adjusts a packet transmission direction.
  • the first node performs packet transmission between the first node and the second node by using the adjusted message transmission direction.
  • the storage medium is further arranged to store program code for performing the following steps:
  • the second node in the optical packet transport network POTN determines that the packet transmission direction between the first node and the first node needs to be adjusted.
  • the second node adjusts a packet transmission direction.
  • the second node performs packet transmission between the second node and the first node by using the adjusted message transmission direction.
  • the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM).
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • the processor executes the steps in the foregoing method embodiments according to the stored program code in the storage medium.
  • a shared ring in a POTN network can be implemented by using the method and apparatus in the embodiments of the present invention.
  • Network protection which solves the problem that the LSPs that pass through the local node cannot be protected by the ring network when the node fails in the POTN network.
  • the protection tunnel and the configuration segment and the OAM of the segment are not required to be configured.
  • the configuration is simple, and the maintenance efficiency is improved.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the present application provides a message transmission method and apparatus, wherein the method includes: a first node in an optical packet transmission network POTN determines that a message transmission direction between the second node needs to be adjusted; the first node adjustment report The transmission direction of the text; the first node uses the adjusted message transmission direction to perform message transmission between the first node and the second node.
  • the present invention can solve the problem that the configuration of the POTN shared ring network protection in the related art is large, the bandwidth control calculation is complicated, and the excessive link bandwidth is required, thereby reducing the configuration workload of the POTN shared ring network protection.
  • Bandwidth control calculates the complexity and the effect of the occupied link bandwidth.

Landscapes

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

Abstract

本发明实施例提供了一种报文传输方法及装置,其中,该方法包括:光分组传送网POTN中的第一节点确定需要调整与第二节点之间的报文传输方向;上述第一节点调整报文传输方向;上述第一节点利用调整后的报文传输方向,在所述第一节点与第二节点之间进行报文传输。

Description

报文传输方法及装置 技术领域
本发明实施例涉及但不限于通信领域,具体而言,涉及一种报文传输方法及装置。
背景技术
光分组传送网(Packet Optical Transport Network,简称为POTN)技术是分组传送网(Packet Transport Network,简称为PTN)技术继续演进的一个结果,它采用基于多协议标签交换的传输子集(Multi-Protocol Label Switching-Transport Profile,简称为MPLS-TP)over光通路数据单元(Optical channel Data Unit,简称为ODU)的方式,将多业务报文进行MPLS报文分装后,映射到光传输网络(Optical Transport Network,简称为OTN)的ODU时隙通道传输,它将PTN和OTN的优势结合起来,同时可以将原有的PTN网络和OTN节点融合起来。
针对MPLS-TP over ODU场景,如果在POTN网络中ODU是分段的,采用OTN的环网保护功能可以有效利用带宽。但由于ODU是分段的,所以POTN网络中因节点失效导致的穿通本节点的标签交换路径(Label Switched Path,简称为LSP)不能被环网保护。针对基站等小颗粒需要汇聚业务的MPLS-TP over ODU场景,在POTN网络中ODU是分段设置的,不部署对OTN的保护机制,而部署PTN侧共享环的保护机制可以解决本地失效故障。
PTN侧共享环网,目前是基于包装Wrapping环网技术,将多条业务隧道在不同节点上可以上环,进入到同一个共享隧道,然后在最后的同一个节点下环。在POTN网络中,也可以采用这种方式,但是它也存在一些缺点:须配置共享隧道和共享隧道的保护隧道,对于有N个节点组合的共享环网,需配置4*N条环网隧道,配置工作量非常大;同时不同的共享工作隧道对应不同的保护隧道,导致带宽控制上计算非常复杂;需要配置段,以及段上启用运行、管理和维护(Operation Administration and Maintenance,简称为OAM), 需要占用链路带宽。
针对相关技术中的POTN共享环网保护的配置工作量大、带宽控制计算复杂以及需要占用过多的链路带宽的问题,目前尚未提出有效的解决方案。
发明内容
本发明实施例提供了一种报文传输方法及装置,以至少解决相关技术中存在的POTN共享环网保护的配置工作量大、带宽控制计算复杂以及需要占用过多的链路带宽的问题。
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
根据本发明实施例的一个方面,提供了一种报文传输方法,该方法包括:光分组传送网(POTN)中的第一节点确定需要调整与第二节点之间的报文传输方向;所述第一节点调整所述报文传输方向;所述第一节点利用调整后的报文传输方向,在所述第一节点与所述第二节点之间进行报文传输。
可选地,所述POTN中的所述第一节点确定需要调整与所述第二节点之间的报文传输方向包括以下至少之一:
所述第一节点检测到所述第一节点和所述第二节点之间的链路发生故障;
所述第一节点检测到所述第一节点和所述第二节点之间的节点发生故障;
所述第一节点接收到用于进行与所述第二节点之间的报文传输倒换的倒换命令。
可选地,所述第一节点调整所述报文传输方向包括:
所述第一节点调整所述第一节点在所述第一节点的第一方向和所述第一节点的第二方向上的报文传输,其中,所述第一方向为东向和西向中的一个方向,所述第二方向为东向和西向中的另一个方向。
可选地,所述第一节点在确定需要调整所述报文传输方向之前,所述第一节点通过所述第一节点的所述第一方向上的第一工作通道与所述第二节点 进行报文传输,当所述第一节点检测到所述第一节点和所述第二节点之间的链路发生故障和/或,所述第一节点检测到所述第一节点和所述第二节点之间的节点发生故障时,
所述第一节点调整所述第一节点在所述第一节点的第一方向和所述第一节点的第二方向上的报文传输包括:
在发送报文时,所述第一节点向所述第一工作通道和所述第一节点的所述第二方向上的第二保护通道发送报文;和/或,在接收报文时,所述第一节点对待通过所述第一工作通道和所述第一节点的所述第一方向上的第一保护通道接收的报文进行如下处理:在接收由光数据单元(ODUK)解析得到的报文之前,丢弃该报文;所述第一节点对通过所述第一节点的所述第二方向上的第二工作通道和所述第一节点的所述第二方向上的第二保护通道接收的报文进行如下处理:在接收到由所述ODUK解析得到的报文后,对该报文进行标签处理。
可选地,所述第一节点调整所述第一节点在所述第一节点的第一方向和所述第一节点的第二方向上的报文传输之后,所述方法还包括:所述第一节点确定与所述第二节点之间的报文传输方向恢复之后,通过如下方式与所述第二节点之间进行报文传输:在发送报文时,通过所述第一工作通道和所述第二保护通道发送报文;和/或,在接收报文时,对待通过所述第一工作通道和所述第二工作通道接收的报文进行如下处理:在接收由所述ODUK解析得到的报文后,对该报文进行标签处理;对待通过所述第一保护通道和所述第二保护通道接收的报文进行如下处理:在接收由所述ODUK解析得到的报文之前,丢弃该报文;在确定所述第二节点恢复正常状态后,进入正常状态;或者,
所述第一节点接收到所述第二节点发送的用于指示所述第一节点与所述第二节点之间的报文传输方向已经恢复的指示消息;根据所述指示消息进入正常状态;
其中,所述正常状态为:节点具备通过节点在所述节点的所述第一方向上的保护通道和所述节点的所述第二方向上的保护通道将接收的由所述ODUK解析得到的报文分别透传出去的能力。
可选地,所述第一节点在确定需要调整所述报文传输方向之前,所述第一节点通过所述第一节点的所述第一方向上的第一工作通道与所述第二节点进行报文传输,当所述第一节点接收到用于进行与所述第二节点之间的报文传输倒换的倒换命令时,所述第一节点调整所述第一节点在所述第一节点的第一方向和所述第一节点的第二方向上的报文传输包括:
所述第一节点进入如下的第一报文传输状态:在发送报文时,通过所述第一工作通道和所述第一节点的所述第二方向上的第二保护通道发送报文;和/或,在接收报文时,对待通过所述第一工作通道和所述第一节点的所述第二方向上的第二工作通道接收的报文进行如下处理:在接收由光数据单元ODUK解析得到的报文后,对该报文进行标签处理;对待通过所述第一节点的所述第一方向上的第一保护通道和所述第二保护通道接收的报文进行如下处理:在接收由所述ODUK解析得到的报文之前,丢弃该报文;
所述第一节点在进入所述第一报文传输状态后,指示所述第二节点进入如下的第二报文传输状态:在发送报文时,所述第二节点向所述第二节点的所述第一方向上的第三工作通道和所述第二节点的所述第二方向上的第四保护通道发送报文;和/或,在接收报文时,所述第二节点对待通过所述第三工作通道和所述第二节点的所述第一方向上的第三保护通道接收的报文进行如下处理:在接收由所述ODUK解析得到的报文之前,丢弃该报文;所述第二节点对通过所述第二节点的所述第二方向上的第四工作通道和所述第二节点的所述第二方向上的第四保护通道接收的报文进行如下处理:在接收到由所述ODUK解析得到的报文后,对该报文进行标签处理;
所述第一节点在确定所述第二节点进入所述第二报文传输状态后,所述第一节点进入如下的第三报文传输状态:在发送报文时,所述第一节点向所述第一工作通道和所述第二保护通道发送报文;和/或,在接收报文时,所述第一节点对待通过所述第一工作通道和所述第一保护通道接收的报文进行如下处理:在接收由光数据单元ODUK解析得到的报文之前,丢弃该报文;所述第一节点对通过所述第二工作通道和所述第二保护通道接收的报文进行如下处理:在接收到由所述ODUK解析得到的报文后,对该报文进行标签处理。
可选地,所述第一节点调整所述第一节点在所述第一节点的第一方向和 所述第一节点的第二方向上的报文传输之后,还包括:
所述第一节点在确定所述倒换命令已被撤销后,所述第一节点进入所述第一报文传输状态;
所述第一节点在进入所述第一报文传输状态后,指示所述第二节点进入正常状态;
所述第一节点在确定所述第二节点进入正常状态后,所述第一节点进入正常状态;
其中,所述正常状态为:节点具备通过节点在所述节点的所述第一方向上的保护通道和所述节点的所述第二方向上的保护通道将接收的由所述ODUK解析得到的报文分别透传出去的能力。
根据本发明实施例的另一方面,提供了一种报文传输方法,包括:光分组传送网POTN中的第二节点确定需要调整与第一节点之间的报文传输方向;所述第二节点调整所述报文传输方向;所述第二节点利用调整后的报文传输方向,在所述第二节点与所述第一节点之间进行报文传输。
可选地,所述POTN中的所述第二节点确定需要调整与所述第一节点之间的报文传输方向包括以下至少之一:
所述第二节点检测到所述第二节点和所述第一节点之间的链路发生故障;
所述第二节点检测到所述第二节点和所述第一节点之间的节点发生故障;
所述第二节点接收到所述第一节点发送的调整指令,其中,所述调整指令用于指示所述第二节点调整与所述第一节点之间的报文传输方向。
可选地,所述第二节点调整所述报文传输方向包括:所述第二节点调整所述第二节点在所述第二节点的第一方向和所述第二节点的第二方向上的报文传输,其中,所述第一方向为东向和西向中的一个方向,所述第二方向为东向和西向中的另一个方向。
可选地,所述第二节点在确定需要调整所述报文传输方向之前,所述第二节点通过所述第二节点的所述第二方向上的第四工作通道与所述第一节点 进行报文传输,当所述第二节点检测到所述第二节点和所述第一节点之间的链路发生故障和/或,所述第二节点检测到所述第二节点和所述第一节点之间的节点发生故障时,所述第二节点调整所述第二节点在所述第二节点的第一方向和所述第二节点的第二方向上的报文传输包括:
在发送报文时,所述第二节点向所述第四工作通道和所述第二节点的所述第一方向上的第三保护通道发送报文;和/或,
在接收报文时,所述第二节点对待通过所述第四工作通道和所述第二节点的所述第二方向上的第四保护通道接收的报文进行如下处理:在接收由光数据单元ODUK解析得到的报文之前,丢弃该报文;所述第二节点对通过所述第二节点的所述第一方向上的第三工作通道和所述第二节点的所述第一方向上的第三保护通道接收的报文进行如下处理:在接收到由所述ODUK解析得到的报文后,对该报文进行标签处理。
可选地,在所述第二节点调整所述第二节点在所述第二节点的第一方向和所述第二节点的第二方向上的报文传输之后,所述方法还包括:
所述第二节点确定与所述第一节点之间的报文传输方向恢复之后,通过如下方式与所述第一节点之间进行报文传输:在发送报文时,通过所述第四工作通道和所述第三保护通道发送报文;和/或,在接收报文时,对待通过所述第四工作通道和所述第三工作通道接收的报文进行如下处理:在接收由所述ODUK解析得到的报文后,对该报文进行标签处理;对待通过所述第四保护通道和所述第三保护通道接收的报文进行如下处理:在接收由所述ODUK解析得到的报文之前,丢弃该报文;在确定所述第一节点恢复正常状态后,进入正常状态;或者,
所述第二节点接收到所述第一节点发送的用于指示所述第一节点与所述第二节点之间的报文传输方向已经恢复的指示消息;根据所述指示消息进入正常状态;
其中,所述正常状态为:节点具备通过节点在所述节点的所述第一方向上的保护通道和所述节点的所述第二方向上的保护通道将接收的由所述ODUK解析得到的报文分别透传出去的能力。
可选地,所述第二节点在确定需要调整所述报文传输方向之前,所述第二节点通过所述第二节点的所述第二方向上的第四工作通道与所述第一节点进行报文传输,当所述第二节点接收到所述第一节点发送的调整指令时,所述第二节点调整所述第二节点在所述第二节点的第一方向和所述第二节点的第二方向上的报文传输包括:
接收所述第一节点在进入第一报文传输状态后发送的所述调整指令,其中,所述第一节点进入的所述第一报文传输状态为:在发送报文时,通过所述第一节点的所述第一方向上的第一工作通道和所述第一节点的所述第二方向上的第二保护通道发送报文;和/或,在接收报文时,对待通过所述第一工作通道和所述第一节点的所述第二方向上的第二工作通道接收的报文进行如下处理:在接收由光数据单元ODUK解析得到的报文后,对该报文进行标签处理;对待通过所述第一节点的所述第一方向上的第一保护通道和所述第二保护通道接收的报文进行如下处理:在接收由所述ODUK解析得到的报文之前,丢弃该报文;
所述第二节点根据所述调整指令进入如下的第二报文传输状态:在发送报文时,所述第二节点向所述第二节点的所述第一方向上的第三工作通道和所述第二节点的所述第二方向上的第四保护通道发送报文;和/或,在接收报文时,所述第二节点对待通过所述第三工作通道和所述第二节点的所述第一方向上的第三保护通道接收的报文进行如下处理:在接收由所述ODUK解析得到的报文之前,丢弃该报文;所述第二节点对通过所述第二节点的所述第二方向上的第四工作通道和所述第二节点的所述第二方向上的第四保护通道接收的报文进行如下处理:在接收到由所述ODUK解析得到的报文后,对该报文进行标签处理。
可选地,所述第二节点调整所述第二节点在所述第二节点的第一方向和所述第二节点的第二方向上的报文传输之后,还包括:
所述第二节点接收所述第一节点发送的第一指示消息;
所述第二节点根据所述第一指示消息进入正常状态;
所述第二节点向所述第一节点发送第二指示消息,其中,所述第二指示消息用于指示所述第一节点进入正常状态;
其中,所述正常状态为:节点具备通过节点在所述节点的所述第一方向上的保护通道和所述节点的所述第二方向上的保护通道将接收的由所述ODUK解析得到的报文分别透传出去的能力。
根据本发明实施例的另一方面,提供了一种报文传输装置,所述装置应用于光分组传送网POTN中的第一节点中,包括:
第一确定模块,设置为确定需要调整与第二节点之间的报文传输方向;
第一调整模块,设置为调整所述报文传输方向;
第一传输模块,设置为利用调整后的报文传输方向,在所述第一节点与所述第二节点之间进行报文传输。
可选地,所述第一确定模块包括以下至少之一:
第一检测单元,设置为检测到所述第一节点和所述第二节点之间的链路发生故障;
第二检测单元,设置为检测到所述第一节点和所述第二节点之间的节点发生故障;
第一接收单元,设置为接收到用于进行与所述第二节点之间的报文传输倒换的倒换命令。
可选地,所述第一调整模块包括:第一调整单元,设置为调整所述第一节点在所述第一节点的第一方向和所述第一节点的第二方向上的报文传输,其中,所述第一方向为东向和西向中的一个方向,所述第二方向为东向和西向中的另一个方向。
可选地,所述第一节点在确定需要调整所述报文传输方向之前,所述第一节点通过所述第一节点的所述第一方向上的第一工作通道与所述第二节点进行报文传输,当所述第一节点检测到所述第一节点和所述第二节点之间的链路发生故障,和/或,所述第一节点检测到所述第一节点和所述第二节点之间的节点发生故障时,所述第一调整单元包括:
第一调整子单元,设置为在发送报文时,向所述第一工作通道和所述第一节点的所述第二方向上的第二保护通道发送报文;和/或,
在接收报文时,对待通过所述第一工作通道和所述第一节点的所述第一 方向上的第一保护通道接收的报文进行如下处理:在接收由光数据单元ODUK解析得到的报文之前,丢弃该报文;所述第一节点对通过所述第一节点的所述第二方向上的第二工作通道和所述第一节点的所述第二方向上的第二保护通道接收的报文进行如下处理:在接收到由所述ODUK解析得到的报文后,对该报文进行标签处理。
可选地,所述装置还包括:第一处理模块,设置为在调整所述第一节点在所述第一节点的第一方向和所述第一节点的第二方向上的报文传输之后,且确定与所述第二节点之间的报文传输方向恢复之后,通过如下方式与所述第二节点之间进行报文传输:在发送报文时,通过所述第一工作通道和所述第二保护通道发送报文;和/或,在接收报文时,对待通过所述第一工作通道和所述第二工作通道接收的报文进行如下处理:在接收由所述ODUK解析得到的报文后,对该报文进行标签处理;对待通过所述第一保护通道和所述第二保护通道接收的报文进行如下处理:在接收由所述ODUK解析得到的报文之前,丢弃该报文;在确定所述第二节点恢复正常状态后,进入正常状态;或者,
接收到所述第二节点发送的用于指示所述第一节点与所述第二节点之间的报文传输方向已经恢复的指示消息;根据所述指示消息进入正常状态;其中,所述正常状态为:节点具备通过节点在所述节点的所述第一方向上的保护通道和所述节点的所述第二方向上的保护通道将接收的由所述ODUK解析得到的报文分别透传出去的能力。
可选地,所述第一节点在确定需要调整所述报文传输方向之前,所述第一节点通过所述第一节点的所述第一方向上的第一工作通道与所述第二节点进行报文传输,当所述第一节点接收到用于进行与所述第二节点之间的报文传输倒换的倒换命令时,所述第一调整单元包括:
第一处理子单元,设置为进入如下的第一报文传输状态:在发送报文时,通过所述第一工作通道和所述第一节点的所述第二方向上的第二保护通道发送报文;和/或,在接收报文时,对待通过所述第一工作通道和所述第一节点的所述第二方向上的第二工作通道接收的报文进行如下处理:在接收由光数据单元ODUK解析得到的报文后,对该报文进行标签处理;对待通过所述第 一节点的所述第一方向上的第一保护通道和所述第二保护通道接收的报文进行如下处理:在接收由所述ODUK解析得到的报文之前,丢弃该报文;
指示子单元,设置为在进入所述第一报文传输状态后,指示所述第二节点进入如下的第二报文传输状态:在发送报文时,所述第二节点向所述第二节点的所述第一方向上的第三工作通道和所述第二节点的所述第二方向上的第四保护通道发送报文;和/或,在接收报文时,所述第二节点对待通过所述第三工作通道和所述第二节点的所述第一方向上的第三保护通道接收的报文进行如下处理:在接收由所述ODUK解析得到的报文之前,丢弃该报文;所述第二节点对通过所述第二节点的所述第二方向上的第四工作通道和所述第二节点的所述第二方向上的第四保护通道接收的报文进行如下处理:在接收到由所述ODUK解析得到的报文后,对该报文进行标签处理;
第二处理子单元,设置为在确定所述第二节点进入所述第二报文传输状态后,所述第一节点进入如下的第三报文传输状态:在发送报文时,所述第一节点向所述第一工作通道和所述第二保护通道发送报文;和/或,在接收报文时,所述第一节点对待通过所述第一工作通道和所述第一保护通道接收的报文进行如下处理:在接收由光数据单元ODUK解析得到的报文之前,丢弃该报文;所述第一节点对通过所述第二工作通道和所述第二保护通道接收的报文进行如下处理:在接收到由所述ODUK解析得到的报文后,对该报文进行标签处理。
可选地,所述装置还包括:第二处理模块,设置为在调整所述第一节点在所述第一节点的第一方向和所述第一节点的第二方向上的报文传输之后,且确定所述倒换命令已被撤销后,进入所述第一报文传输状态;
指示模块,设置为在进入所述第一报文传输状态后,指示所述第二节点进入正常状态;
第三处理模块,设置为在确定所述第二节点进入正常状态后,进入正常状态;
其中,所述正常状态为:节点具备通过节点在所述节点的所述第一方向上的保护通道和所述节点的所述第二方向上的保护通道将接收的由所述ODUK解析得到的报文分别透传出去的能力。
根据本发明实施例的另一方面,提供了一种报文传输装置,所述装置应用于光分组传送网POTN中的第二节点中,包括:
第二确定模块,设置为确定需要调整与第一节点之间的报文传输方向;
第二调整模块,设置为调整所述报文传输方向;
第二传输模块,设置为利用调整后的报文传输方向,在所述第二节点与所述第一节点之间进行报文传输。
可选地,所述第二确定模块包括以下至少之一:
第三检测单元,设置为检测到所述第二节点和所述第一节点之间的链路发生故障;
第四检测单元,设置为检测到所述第二节点和所述第一节点之间的节点发生故障;
第二接收单元,设置为接收到所述第一节点发送的调整指令,其中,所述调整指令用于指示所述第二节点调整与所述第一节点之间的报文传输方向。
可选地,所述第二调整模块包括:第二调整单元,设置为调整所述第二节点在所述第二节点的第一方向和所述第二节点的第二方向上的报文传输,其中,所述第一方向为东向和西向中的一个方向,所述第二方向为东向和西向中的另一个方向。
可选地,所述第二节点在确定需要调整所述报文传输方向之前,所述第二节点通过所述第二节点的所述第二方向上的第四工作通道与所述第一节点进行报文传输,当所述第二节点检测到所述第二节点和所述第一节点之间的链路发生故障,和/或,所述第二节点检测到所述第二节点和所述第一节点之间的节点发生故障时,所述第二调整单元包括:
第二调整子单元,设置为在发送报文时,向所述第四工作通道和所述第二节点的所述第一方向上的第三保护通道发送报文;和/或,在接收报文时,对待通过所述第四工作通道和所述第二节点的所述第二方向上的第四保护通道接收的报文进行如下处理:在接收由光数据单元ODUK解析得到的报文之前,丢弃该报文;所述第二节点对通过所述第二节点的所述第一方向上的第 三工作通道和所述第二节点的所述第一方向上的第三保护通道接收的报文进行如下处理:在接收到由所述ODUK解析得到的报文后,对该报文进行标签处理。
可选地,所述装置还包括:第四处理模块,设置为在所述第二节点调整所述第二节点在所述第二节点的第一方向和所述第二节点的第二方向上的报文传输之后,且确定与所述第一节点之间的报文传输方向恢复之后,通过如下方式与所述第一节点之间进行报文传输:
在发送报文时,通过所述第四工作通道和所述第三保护通道发送报文;和/或,在接收报文时,对待通过所述第四工作通道和所述第三工作通道接收的报文进行如下处理:在接收由所述ODUK解析得到的报文后,对该报文进行标签处理;对待通过所述第四保护通道和所述第三保护通道接收的报文进行如下处理:在接收由所述ODUK解析得到的报文之前,丢弃该报文;在确定所述第一节点恢复正常状态后,进入正常状态;或者,
接收到所述第一节点发送的用于指示所述第一节点与所述第二节点之间的报文传输方向已经恢复的指示消息;根据所述指示消息进入正常状态;其中,所述正常状态为:节点具备通过节点在所述节点的所述第一方向上的保护通道和所述节点的所述第二方向上的保护通道将接收的由所述ODUK解析得到的报文分别透传出去的能力。
可选地,所述第二节点在确定需要调整所述报文传输方向之前,所述第二节点通过所述第二节点的所述第二方向上的第四工作通道与所述第一节点进行报文传输,当所述第二节点接收到所述第一节点发送的调整指令时,所述第二调整单元包括:
接收子单元,设置为接收所述第一节点在进入第一报文传输状态后发送的所述调整指令,其中,所述第一节点进入的所述第一报文传输状态为:在发送报文时,通过所述第一节点的所述第一方向上的第一工作通道和所述第一节点的所述第二方向上的第二保护通道发送报文;和/或,在接收报文时,对待通过所述第一工作通道和所述第一节点的所述第二方向上的第二工作通道接收的报文进行如下处理:在接收由光数据单元ODUK解析得到的报文后,对该报文进行标签处理;对待通过所述第一节点的所述第一方向上的第一保 护通道和所述第二保护通道接收的报文进行如下处理:在接收由所述ODUK解析得到的报文之前,丢弃该报文;
第三处理子单元,设置为根据所述调整指令进入如下的第二报文传输状态:在发送报文时,所述第二节点向所述第二节点的所述第一方向上的第三工作通道和所述第二节点的所述第二方向上的第四保护通道发送报文;和/或,在接收报文时,所述第二节点对待通过所述第三工作通道和所述第二节点的所述第一方向上的第三保护通道接收的报文进行如下处理:在接收由所述ODUK解析得到的报文之前,丢弃该报文;所述第二节点对通过所述第二节点的所述第二方向上的第四工作通道和所述第二节点的所述第二方向上的第四保护通道接收的报文进行如下处理:在接收到由所述ODUK解析得到的报文后,对该报文进行标签处理。
可选地,所述装置还包括:
接收模块,设置为在调整所述第二节点在所述第二节点的第一方向和所述第二节点的第二方向上的报文传输之后,接收所述第一节点发送的第一指示消息;
第五处理模块,设置为根据所述第一指示消息进入正常状态;
发送模块,设置为向所述第一节点发送第二指示消息,其中,所述第二指示消息用于指示所述第一节点进入正常状态;
其中,所述正常状态为:节点具备通过节点在所述节点的所述第一方向上的保护通道和所述节点的所述第二方向上的保护通道将接收的由所述ODUK解析得到的报文分别透传出去的能力。
通过本发明实施例,采用光分组传送网POTN中的第一节点确定需要调整与第二节点之间的报文传输方向;所述第一节点调整所述报文传输方向;所述第一节点利用调整后的报文传输方向与所述第二节点之间进行报文传输。解决了相关技术中存在的POTN共享环网保护的配置工作量大、带宽控制计算复杂以及需要占用过多的链路带宽的问题,进而达到了降低POTN共享环网保护的配置工作量、带宽控制计算复杂度以及占用的链路带宽的效果。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:
图1是根据本发明实施例的第一种报文传输方法的流程图;
图2是根据本发明实施例的第二种报文传输方法的流程图;
图3是根据本发明实施例的无倒换场景下ODUK环网业务路径示意图;
图4是根据本发明实施例的跨段之间都是环桥接倒换的业务路径示意图;
图5是根据本发明实施例的跨段之间一边环桥接倒换,一边环桥接业务路径的示意图;
图6是根据本发明实施例的跨段之间一边环桥接,一边正常的业务路径的示意图;
图7是根据本发明实施例的节点失效情况下的业务路径示意图;
图8是根据本发明实施例的第一种报文传输装置的结构框图;
图9是根据本发明实施例的第一种报文传输装置中第一确定模块82的结构框图;
图10是根据本发明实施例的第一种报文传输装置中第一调整模块84的结构框图;
图11是根据本发明实施例的第一种报文传输装置中第一调整单元102的结构框图一;
图12是根据本发明实施例的第一种报文传输装置的可选结构框图一;
图13是根据本发明实施例的第一种报文传输装置中第一调整单元102的结构框图二;
图14是根据本发明实施例的第一种报文传输装置的可选结构框图二;
图15是根据本发明实施例的第二种报文传输装置的结构框图;
图16是根据本发明实施例的第二种报文传输装置中第二确定模块152的结构框图;
图17是根据本发明实施例的第二种报文传输装置中第二调整模块154的结构框图;
图18是根据本发明实施例的第二种报文传输装置中第二调整单元172的结构框图一;
图19是根据本发明实施例的第二种报文传输装置的可选结构框图一;
图20是根据本发明实施例的第二种报文传输装置中第二调整单元172的结构框图二;
图21是根据本发明实施例的第二种报文传输装置的可选结构框图二。
本发明的实施方式
下文中将参考附图并结合实施例来详细说明本申请。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
需要说明的是,本发明实施例的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
在本实施例中提供了一种报文传输方法,图1是根据本发明实施例的第一种报文传输方法的流程图,如图1所示,该流程包括如下步骤:
步骤S102,光分组传送网POTN中的第一节点确定需要调整与第二节点之间的报文传输方向;
步骤S104,上述第一节点调整报文传输方向;
步骤S106,上述第一节点利用调整后的报文传输方向与第二节点之间进行报文传输。
通过上述步骤,POTN中的第一节点可以在确定无法利用原有的传输路径向第二节点传输报文的场景下(该场景可以为多种类型,例如,第一节点与第二节点之间的链路故障,或者,第一节点与第二节点之间的节点故障, 或者为其他情况),调整报文传输方向,以实现与第二节点之间的报文传输。该实施例中的上述操作利用POTN中的原有隧道即可实现,无需额外配置过多的环网隧道,从而可以有效降低POTN共享环网保护的配置工作量、带宽控制计算复杂度以及占用的链路带宽,解决了相关技术中存在的POTN共享环网保护的配置工作量大、带宽控制计算复杂以及需要占用过多的链路带宽的问题,进而达到了降低POTN共享环网保护的配置工作量、带宽控制计算复杂度以及占用的链路带宽的效果。
在一个可选的实施例中,POTN中的上述第一节点确定需要调整与第二节点之间的报文传输方向包括以下至少之一:第一节点检测到第一节点和第二节点之间的链路发生故障;第一节点检测到第一节点和第二节点之间的节点发生故障;第一节点接收到用于进行与第二节点之间的报文传输倒换的倒换命令。当然,上述的几种应用场景仅是示例,还可以应用于其它的场景中,例如,设置一个特定的时间点,当到达该时间点后便需要调整与第二节点之间的报文传输方向,并且,还可以在经过了一个特定的时间段后,将报文传输方向调整为原来的传输方向。
在一个可选的实施例中,上述第一节点调整报文传输方向包括:第一节点调整第一节点在第一节点的第一方向和第一节点的第二方向上的报文传输,其中,该第一方向为东向和西向中的一个方向,第二方向为另一个方向。即,当第一方向为东向时,第二方向为西向;当第一方向为西向时,第二方向为东向。
在一个可选的实施例中,上述第一节点在确定需要调整报文传输方向之前,该第一节点通过第一节点的第一方向上的第一工作通道与第二节点进行报文传输,当第一节点检测到第一节点和第二节点之间的链路发生故障和/或,第一节点检测到第一节点和第二节点之间的节点发生故障时,该第一节点可以进入环桥接倒换状态,在该环桥接倒换状态下,该第一节点调整第一节点在第一节点的第一方向和第一节点的第二方向上的报文传输可以包括:在发送报文时,第一节点向第一工作通道和第一节点的第二方向上的第二保护通道发送报文;和/或,在接收报文时,该第一节点对待通过第一工作通道和第一节点的第一方向上的第一保护通道接收的报文进行如下处理:在接收 由光数据单元(ODUK)解析得到的报文之前,丢弃该报文;该第一节点对通过第一节点的第二方向上的第二工作通道和第一节点的第二方向上的第二保护通道接收的报文进行如下处理:在接收到由ODUK解析得到的报文后,对该报文进行标签处理。
当第一节点和第二节点之间的故障恢复后,先检测到故障恢复的一个节点可以撤销倒换进入环桥接状态,等另一个节点由环桥接倒换状态进入正常状态后,该节点再撤销环桥接状态进入正常状态,下面对该倒换操作进行描述:在一个可选的实施例中,上述第一节点在调整第一节点在第一节点的第一方向和第一节点的第二方向上的报文传输之后,该方法还包括:
第一节点确定与第二节点之间的报文传输方向恢复之后,通过如下方式与第二节点之间进行报文传输:当第一节点为先检测到故障恢复的节点时,在发送报文时,通过第一工作通道和第二保护通道发送报文;和/或,在接收报文时,对待通过上述第一工作通道和第二工作通道接收的报文进行如下处理:在接收由ODUK解析得到的报文后,对该报文进行标签处理;对待通过上述第一保护通道和第二保护通道接收的报文进行如下处理:在接收由ODUK解析得到的报文之前,丢弃该报文;在确定第二节点恢复正常状态后,进入正常状态;
或者,在第二节点为先检测到故障恢复的节点时,上述第一节点接收到第二节点发送的用于指示第一节点与第二节点之间的报文传输方向已经恢复的指示消息;根据上述指示消息进入正常状态;其中,该正常状态为:节点具备通过节点在节点的第一方向上的保护通道和节点的第二方向上的保护通道将接收的由ODUK解析得到的报文分别透传出去的能力。
在一个可选的实施例中,上述第一节点在确定需要调整报文传输方向之前,该第一节点通过第一节点的第一方向上的第一工作通道与第二节点进行报文传输,当该第一节点接收到用于进行与第二节点之间的报文传输倒换的倒换命令时,该第一节点可以进入环桥接状态,然后可以通知(例如,通过APS命令进行通知)第二节点进入环桥接倒换状态,等确定第二节点进入环桥接倒换状态后,第一节点再进入桥接倒换状态。
下面对该操作进行说明:该第一节点调整所述第一节点在第一节点的第 一方向和第一节点的第二方向上的报文传输包括:第一节点进入如下的第一报文传输状态:在发送报文时,通过第一工作通道和第一节点的第二方向上的第二保护通道发送报文;和/或,在接收报文时,对待通过述第一工作通道和第一节点的第二方向上的第二工作通道接收的报文进行如下处理:在接收由光数据单元ODUK解析得到的报文后,对该报文进行标签处理;对待通过第一节点的第一方向上的第一保护通道和第二保护通道接收的报文进行如下处理:在接收由ODUK解析得到的报文之前,丢弃该报文;第一节点在进入第一报文传输状态后,指示第二节点进入如下的第二报文传输状态:在发送报文时,该第二节点向第二节点的第一方向上的第三工作通道和第二节点的第二方向上的第四保护通道发送报文;和/或,在接收报文时,该第二节点对待通过第三工作通道和第二节点的第一方向上的第三保护通道接收的报文进行如下处理:在接收由ODUK解析得到的报文之前,丢弃该报文;第二节点对通过第二节点的第二方向上的第四工作通道和第二节点的第二方向上的第四保护通道接收的报文进行如下处理:在接收到由ODUK解析得到的报文后,对该报文进行标签处理;第一节点在确定第二节点进入第二报文传输状态后,该第一节点进入如下的第三报文传输状态:在发送报文时,上述第一节点向第一工作通道和第二保护通道发送报文;和/或,在接收报文时,第一节点对待通过第一工作通道和第一保护通道接收的报文进行如下处理:在接收由光数据单元ODUK解析得到的报文之前,丢弃该报文;上述第一节点对通过第二工作通道和第二保护通道接收的报文进行如下处理:在接收到由ODUK解析得到的报文后,对该报文进行标签处理(标签处理可以包括标签剥离和/或标签交换处理等)。
在一个可选的实施例中,当上述的倒换命令被撤销时,第一节点可以先进入环桥接状态,然后通知第二节点进入正常状态,当确定第二节点进入正常状态后,第一节点再进入正常状态。下面对该操作进行说明:上述第一节点调整第一节点在第一节点的第一方向和第一节点的第二方向上的报文传输之后,还包括:
第一节点在确定上述倒换命令已被撤销后,第一节点进入第一报文传输状态;上述第一节点在进入第一报文传输状态后,指示第二节点进入正常状 态;上述第一节点在确定第二节点进入正常状态后,该第一节点进入正常状态;其中,该正常状态为:节点具备通过节点在节点的第一方向上的保护通道和节点的第二方向上的保护通道将接收的由ODUK解析得到的报文分别透传出去的能力。
在上述的图1及与图1相关的各实施例中,主要是从第一节点侧进行描述的,下面从第二节点侧进行描述。
图2是根据本发明实施例的第二种报文传输方法的流程图,如图2所示,该流程包括如下步骤:
步骤S202,光分组传送网POTN中的第二节点确定需要调整与第一节点之间的报文传输方向;
步骤S204,上述第二节点调整报文传输方向;
步骤S206,上述第二节点利用调整后的报文传输方向与第一节点之间进行报文传输。
通过上述步骤,POTN中的第二节点可以在确定无法利用原有的传输路径与第一节点传输报文的场景下(该场景可以为多种类型,例如,第一节点与第二节点之间的链路故障,或者,第一节点与第二节点之间的节点故障,或者为其他情况),调整报文传输方向,以实现与第一节点之间的报文传输。该实施例中的上述操作利用POTN中的原有隧道即可实现,无需额外配置过多的环网隧道,从而可以有效降低POTN共享环网保护的配置工作量、带宽控制计算复杂度以及占用的链路带宽,解决了相关技术中存在的POTN共享环网保护的配置工作量大、带宽控制计算复杂以及需要占用过多的链路带宽的问题,进而达到了降低POTN共享环网保护的配置工作量、带宽控制计算复杂度以及占用的链路带宽的效果。
在一个可选的实施例中,上述POTN中的第二节点确定需要调整与第一节点之间的报文传输方向包括以下至少之一:该第二节点检测到第二节点和第一节点之间的链路发生故障;该第二节点检测到第二节点和第一节点之间的节点发生故障;该第二节点接收到第一节点发送的调整指令,其中,该调整指令用于指示第二节点调整与第一节点之间的报文传输方向。其中,第一 节点发送调整指令的前提可以为多种,例如,第一节点接收到了倒换命令。当然,上述的几种应用场景仅是示例,还可以应用于其它的场景中,例如,第二节点接收到上述倒换命令,或者,预先设置了一个特定的时间点,当到达该时间点后便需要调整与第一节点之间的报文传输方向,并且,还可以在经过了一个特定的时间段后,将报文传输方向调整为原来的传输方向。
在一个可选的实施例中,上述第二节点调整报文传输方向包括:第二节点调整第二节点在第二节点的第一方向和第二节点的第二方向上的报文传输,其中,该第一方向为东向和西向中的一个方向,该第二方向为另一个方向。即,当第一方向为东向时,第二方向为西向;当第一方向为西向时,第二方向为东向。
在一个可选的实施例中,上述第二节点在确定需要调整报文传输方向之前,第二节点通过第二节点的第二方向上的第四工作通道与第一节点进行报文传输,当第二节点检测到第二节点和第一节点之间的链路发生故障,和/或,第二节点检测到第二节点和第一节点之间的节点发生故障时,该第二节点可以进入环桥接倒换状态,在该环桥接倒换状态下,第二节点调整第二节点在第二节点的第一方向和第二节点的第二方向上的报文传输包括:在发送报文时,第二节点向第四工作通道和第二节点的第一方向上的第三保护通道发送报文;和/或,在接收报文时,第二节点对待通过第四工作通道和第二节点的第二方向上的第四保护通道接收的报文进行如下处理:在接收由光数据单元ODUK解析得到的报文之前,丢弃该报文;第二节点对通过第二节点的第一方向上的第三工作通道和第二节点的第一方向上的第三保护通道接收的报文进行如下处理:在接收到由ODUK解析得到的报文后,对该报文进行标签处理。
当第一节点和第二节点之间的故障恢复后,先检测到故障恢复的一个节点可以撤销倒换进入环桥接状态,等另一个节点由环桥接倒换状态进入正常状态后,该节点再撤销环桥接状态进入正常状态,下面对该倒换操作进行描述:在第二节点调整第二节点在第二节点的第一方向和第二节点的第二方向上的报文传输之后,所述方法还包括:
当第二节点为先检测到故障恢复的节点时,第二节点确定与第一节点之 间的报文传输方向恢复之后,通过如下方式与第一节点之间进行报文传输:在发送报文时,通过所述第四工作通道和所述第三保护通道发送报文;和/或,在接收报文时,对待通过所述第四工作通道和第三工作通道接收的报文进行如下处理:在接收由ODUK解析得到的报文后,对该报文进行标签处理;对待通过第四保护通道和第三保护通道接收的报文进行如下处理:在接收由ODUK解析得到的报文之前,丢弃该报文;在确定第一节点恢复正常状态后,进入正常状态;或者,当第一节点为先检测到故障恢复的节点时,第二节点接收到第一节点发送的用于指示第一节点与第二节点之间的报文传输方向已经恢复的指示消息;根据指示消息进入正常状态;其中,该正常状态为:节点具备通过节点在节点的第一方向上的保护通道和节点的第二方向上的保护通道将接收的由ODUK解析得到的报文分别透传出去的能力。
在一个可选的实施例中,上述第二节点在确定需要调整报文传输方向之前,第二节点通过第二节点的第二方向上的第四工作通道与第一节点进行报文传输,当该第二节点接收到第一节点发送的调整指令时,第二节点进入环桥接倒换状态,下面对该操作进行说明:第二节点调整第二节点在第二节点的第一方向和第二节点的第二方向上的报文传输包括:接收第一节点在进入第一报文传输状态后发送的调整指令,其中,该第一节点进入的第一报文传输状态为:在发送报文时,通过第一节点的第一方向上的第一工作通道和第一节点的第二方向上的第二保护通道发送报文;和/或,在接收报文时,对待通过第一工作通道和第一节点的第二方向上的第二工作通道接收的报文进行如下处理:在接收由光数据单元ODUK解析得到的报文后,对该报文进行标签处理;对待通过第一节点的第一方向上的第一保护通道和第二保护通道接收的报文进行如下处理:在接收由ODUK解析得到的报文之前,丢弃该报文;第二节点根据上述调整指令进入如下的第二报文传输状态:在发送报文时,第二节点向第二节点的第一方向上的第三工作通道和第二节点的第二方向上的第四保护通道发送报文;和/或,在接收报文时,第二节点对待通过第三工作通道和第二节点的第一方向上的第三保护通道接收的报文进行如下处理:在接收由ODUK解析得到的报文之前,丢弃该报文;第二节点对通过第二节点的第二方向上的第四工作通道和第二节点的第二方向上的第四保护通道接收的报文进行如下处理:在接收到由ODUK解析得到的报文后,对该报文进 行标签处理(标签处理可以包括标签剥离和/或标签交换处理等)。
在一个可选的实施例中,当上述的倒换命令被撤销时,第一节点可以先进入环桥接状态,然后通知第二节点进入正常状态,当确定第二节点进入正常状态后,第一节点再进入正常状态。下面对第二节点上的操作进行说明:第二节点调整第二节点在第二节点的第一方向和第二节点的第二方向上的报文传输之后,还包括:第二节点接收第一节点发送的第一指示消息;该第二节点根据第一指示消息进入正常状态;该第二节点向第一节点发送第二指示消息,其中,该第二指示消息用于指示第一节点进入正常状态;其中,该正常状态为:节点具备通过节点在节点的第一方向上的保护通道和节点的第二方向上的保护通道将接收的由ODUK解析得到的报文分别透传出去的能力。
在上述的图2及与图2相关的各实施例中,主要从第二节点侧进行描述的。
下面结合第一节点和第二节点,对整个系统进行说明。在下述实施例中,以将ODUK时隙通道映射成一个虚拟端口(可以简称为虚端口或端口)为例进行说明:
在本发明实施例中还提供了一种POTN共享环网保护的方案,可以应用于配置分布式业务的环形组网,通过占用两个不同的ODUK通道实现对所有站点间多条分布式业务的保护。
本发明实施例中所涉及的POTN共享环网保护的方案包括如下技术:
节点上可以将ODUK时隙通道映射一个虚拟端口到PTN侧,让PTN侧的业务采用MPLS-TP技术封装成MPLS报文后,直接从这个虚拟端口出去,也就是进入了OTN的一个时隙通道,进行通用成帧规程(Generic Framing Procedure,简称为GFP)封装。ODUK时隙中有开销(overhead,简称为OH),用以传递环网的APS报文,APS协议借用G.873.2实现。
保护配置在OTN映射到PTN这一侧的虚拟端口上,不同的隧道可以进入同一个ODUK通道,倒换也只是虚拟端口之间的切换,也就是ODUK时隙通道之间的切换,已经完全看不到隧道的处理。
下面对POTN的虚拟端口上实现的终结、禁入、穿通操作进行说明:
禁入,是指从ODUK中解析出来的MPLS报文到达PTN侧的这个虚拟端口时丢弃;
终结,是指需要从ODUK中解析出MPLS报文,然后接下来进行PTN侧MPLS报文的处理,例如标签剥离或者标签交换处理;
穿通,是直接将从虚拟端口解析出的MPLS报文原封不动的穿通到对端的虚拟端口发送出去,即报文在PTN侧不做任何处理。
POTN共享环网的倒换动作,是映射到了PTN侧的虚端口的倒换动作,包括如下3个方面:
环桥接:发送方向工作和保护虚端口同时发送的动作,即双发;收方向保护的虚端口都要禁入,工作的虚端口都终结。例如东向桥接时,发送时,需要同时向东向的工作端口和西向的保护端口发送;东向和西向的保护端口都要禁入,东向和西向的工作端口都需要终结。
环桥接倒换:发送方向工作和保护虚端口同时发送的动作;收方向,桥接倒换这个方向工作虚端口和保护虚端口都禁入,对端方向工作虚端口和保护虚端口需要终结。例如东向桥接倒换,发送时,需要同时向东向的工作端口和西向的保护端口发送;收方向,东向工作和保护虚端口都需要禁入,西向工作和保护虚端口需要终结。
穿通:将从虚端口解析得到的MPLS报文原封不动的穿通到对端的虚端口发送出去,正常情况下,保护通道业务是穿通状态,工作通道不会出现穿通状态。这样,保护通道上不用配置隧道。
本发明实施例中的POTN共享环网保护的方法可以包括以下步骤:
第一步:在每个节点上选择四个ODUK时隙通道,分别建立向PTN侧映射的虚端口;
第二步:将每个节点上这四个端口配置成环网保护组,其中两个为东向工作、保护端口,另外两个为西向工作、保护端口;
第三步:上环点节点,配置隧道直接从某工作端口出去;
第四步:穿通点节点,配置隧道从某方面的工作端口进来,从另一个方向的工作端口穿通出去;
第五步:下环点节点,配置隧道从某虚拟端口进来终结;
第六步:在各个节点上启用环网保护组的APS协议,同时包括配置等待时间WTR等;
第七步:在检测到某一个方向故障时,环网保护两端都进入环桥接倒换状态,当故障恢复时,先检测到故障消失的一端(即,先检测到故障消失的节点)撤销倒换进入环桥接状态,等对端由环网桥接倒换转化成正常状态后,本端撤销环桥接进入正常;
第八步:在某节点上某方向下倒换人工命令时,本端进入环桥接状态,等对端收到APS命令对端进入环桥接倒换后,对端会发APS报文让本端进入桥接倒换;
第九步:撤销倒换人工命令时,本端先进入环桥接,等对端收到APS命令对端撤销环桥接倒换进入正常状态后,对端会发APS报文让本端进入正常状态。
下面结合参考附图并结合实施例来详细说明本申请。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
图3是根据本发明实施例的无倒换场景下ODUK环网业务路径示意图,如图3所示,具体配置步骤如下:
第一步:在A,B,C,D这四个节点上分别选择四个ODUK时隙通道,分别建立向PTN侧映射的虚端口。在本实施例中这种虚拟端口取名叫GFP_F端口。东向是一条物理链路,例如一对物理光纤;西向也是一条物理链路。其中,A节点可以对应于上述的第一节点,B节点可以对应于上述的第二节点。
第二步:将每个节点上这四个GFP_F端口配置成环网保护组,其中两个为东向工作、保护端口,另外两个为西向工作、保护端口。
第三步:配置这些共享环网的其他属性,例如WTR时间(默认为5分钟,或者其他时间),HOLD OFF时间(默认为0,或者其他时间)等。
第四步:在D节点上,配置工作隧道从环网的东向的工作端口出去。
第五步:在A节点上,配置工作隧道从环网的西向的工作端口进来,从东向的工作端口穿通出去,这条隧道的入、出标签须配置一致。
第六步:在D节点上,配置隧道从西向的工作端口进来终结。
第七步:C节点是可选节点,如果存在,只需要配置前三步即可。
第八步:E节点可以是用户端侧边缘CE设备,也可以是其他网络侧边缘PE设备。如果是CE设备,那么D节点上进来的是用户网络接口(User Network Interface,简称为UNI)侧报文,或者E节点配置只是本地交互业务,那么D节点上进来的也是UNI侧报文,那么D节点需要配置业务,然后进入工作隧道;如果从E节点出去的是MPLS报文,那么在D节点配置的工作隧道是P节点交换类型隧道。
经过前八步,已经建立起了POTN共享环网保护组网配置。在具体实例中,在A,B,C,D这四个节点上需要对链路进行检测,当某一条链路出现告警时,如图4所示,图4是根据本发明实施例的跨段之间都是环桥接倒换的业务路径示意图,A,B节点会检测到ODUK中开销中的告警,然后A,B节点都会进入环桥接倒换状态。下面来描述告警触发倒换和告警消失回切的流程。以E->D->A->B方向的业务流为例:
第一步:A,B节点之间链路出现告警,例如A东向故障,西向正常,A,B节点进入环桥接倒换状态。如图3所示。A节点会双发,一个方向流继续往东向工作发,另外一个方向流往西向的保护发。
第二步:西向的保护发的流到达D节点东向,D节点正常情况下,保护GFP_P端口是穿通状态,报文会直接穿通到西向保护的GFP_P端口。C节点的处理和D节点一样,报文到达了B节点的东向。
第三步:B节点由于西向SF,东向上的保护GFP_F端口会变成终结状态,将报文终结解析出得到MPLS报文,然后再剥离MPLS报文标签,最终从B节点出去。
第四步:A,B节点之间故障消失,例如A节点先检测到故障消失,那么A节点的东向会进入环桥接状态,B节点还是环桥接倒换状态,如图5所示,图5是根据本发明实施例的跨段之间一边环桥接倒换,一边环桥接业务路径的示意图,从E往B方向的业务流和之前两端环桥接倒换时一致。只是从B往E方向的业务流,在A节点的西向保护上会做禁入。
第五步:B环网撤销环桥接倒换状态,A还是环桥接状态,如图6所示,图6是根据本发明实施例的跨段之间一边环桥接,一边正常的业务路径的示意图,此时E->B的报文,在A节点还是双发,但是达到B节点的只有从东向工作的流过来了,反向保护的流最终会在A节点的东向禁入而丢弃。
第六步:A节点收到B节点撤销环桥接倒换的APS报文后进入正常状态,此时A节点也从环桥接状态恢复正常。
上面的这六个步骤是故障倒换及恢复引起的业务流流向变化。在人工命令倒换的情况下,例如在A节点东向下发人工倒换命令。那么会经过如下几个步骤:
第一步:A节点东向会变成环桥接状态,其他点目前都是正常状态。此时业务流的流向如图4所示。
第二步:B节点收到APS命令之后,西向会变成环桥接倒换命令。此时业务的流向如图5所示。
第三步:B节点变成环桥接倒换之后,发送APS命令给A节点,A节点会变成环网桥接倒换,此时业务流会变成入图4所示。
第四步:在A节点撤销人工倒换命令。A节点会变成环桥接状态,B节点还是环桥接倒换状态,此时业务流如图5所示。
第五步:在B节点收到APS命令之后,变成正常状态,此时A节点还是环桥接状态,此时业务流如图6所示。
第六步:最后A点也撤销环桥接状态。此时业务流如图3所示。
上面的这六个步骤是人工倒换命令和撤销人工倒换命令情况下的实施过程。下面介绍节点失效的情况下以及恢复的情况下的步骤,以A网元失效及恢复,以E->D->A->B方向的业务流为例,如图7所示,图7是根据本发明实施例的节点失效情况下的业务路径示意图,包括如下步骤:
第一步:A节点失效,包括异常复位或者电源故障导致节点掉电情况,D点东向会检测到故障,东向会发生环桥接倒换;B点的西向会检测到故障,同时也会发生环桥接倒换。
第二步:D节点由于东向发生环桥接倒换,D节点会双发,一个方向流 继续往东向工作发,另外一个方向流往西向的保护发。
第三步:从D节点西向的保护流达到C节点,C节点保护通道是穿通的,直接业务报文穿通从C节点的东向发往B节点。
第四步:B节点由于西向环桥接倒换,东向上的保护GFP_F端口会变成终结状态,将报文终结解析得到得到MPLS报文,然后再剥离MPLS报文标签,最终从B节点出去。
第五步:在A节点上电恢复的时候,由于A节点和D节点以及B节点相连,相当于有两条链路故障恢复。分开来看,在每条链路故障恢复时,先检测到故障消失的一端进入环桥接,等对端正常之后再撤销环桥接进入正常状态。这个处理流程和前面故障恢复的流程一样,就不再赘述了。
显然,每一个节点都可以是一个计算装置,每一个计算装置都可以通过物理链路连接,物理链路可以用于业务报文传递。每个节点都可以存在故障检测装置,分别检测东、西向的链路状态,然后传递给决策模块进行倒换决策,然后通过设置转发芯片控制业务保护转发。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是较佳的实施方式。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。
在本实施例中还提供了一种报文传输装置,该装置用于实现上述实施例及可选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图8是根据本发明实施例的第一种报文传输装置的结构框图,该装置可 以应用于光分组传送网POTN中的第一节点中,如图8所示,该装置包括第一确定模块82、第一调整模块84和第一传输模块86,下面对该装置进行说明。
第一确定模块82,设置为确定需要调整与第二节点之间的报文传输方向;第一调整模块84,连接至上述第一确定模块82,设置为调整上述报文传输方向;第一传输模块86,连接至上述第一调整模块84,设置为利用调整后的报文传输方向,在第一节点与第二节点之间进行报文传输。
图9是根据本发明实施例的第一种报文传输装置中第一确定模块82的结构框图,如图9所示,该第一确定模块82包括以下单元至少之一:
第一检测单元92,设置为检测到第一节点和所述第二节点之间的链路发生故障;第二检测单元94,设置为检测到第一节点和第二节点之间的节点发生故障;第一接收单元96,设置为接收到用于进行与第二节点之间的报文传输倒换的倒换命令。
图10是根据本发明实施例的第一种报文传输装置中第一调整模块84的结构框图,如图10所示,该第一调整模块84包括第一调整单元102,下面对该单元进行说明。
第一调整单元102,设置为调整第一节点在第一节点的第一方向和第一节点的第二方向上的报文传输,其中,该第一方向为东向和西向中的一个方向,第二方向为东向和西向中的另一个方向。
在一个可选的实施例中,上述第一节点在确定需要调整报文传输方向之前,第一节点通过第一节点的第一方向上的第一工作通道与第二节点进行报文传输,当该第一节点检测到第一节点和第二节点之间的链路发生故障,和/或,第一节点检测到第一节点和第二节点之间的节点发生故障时,该第一调整单元102可以包括第一调整子单元112,如图11所示,图11是根据本发明实施例的第一种报文传输装置中第一调整单元102的结构框图一,下面对该第一调整子单元112进行说明:
第一调整子单元112,设置为在发送报文时,向第一工作通道和第一节点的第二方向上的第二保护通道发送报文;和/或,在接收报文时,对待通过 第一工作通道和第一节点的第一方向上的第一保护通道接收的报文进行如下处理:在接收由光数据单元(ODUK)解析得到的报文之前,丢弃该报文;第一节点对通过第一节点的所述第二方向上的第二工作通道和所述第一节点的所述第二方向上的第二保护通道接收的报文进行如下处理:在接收到由ODUK解析得到的报文后,对该报文进行标签处理。
图12是根据本发明实施例的第一种报文传输装置的可选结构框图一,如图12所示,该装置除包括图8所示的所有模块外,还包括第一处理模块122,下面对该装置进行说明。
第一处理模块122,连接至上述第一调整模块84,设置为在调整第一节点在第一节点的第一方向和第一节点的第二方向上的报文传输之后,且确定与第二节点之间的报文传输方向恢复之后,通过如下方式与第二节点之间进行报文传输:在发送报文时,通过第一工作通道和第二保护通道发送报文;和/或,在接收报文时,对待通过第一工作通道和第二工作通道接收的报文进行如下处理:在接收由ODUK解析得到的报文后,对该报文进行标签处理;对待通过第一保护通道和第二保护通道接收的报文进行如下处理:在接收由ODUK解析得到的报文之前,丢弃该报文;在确定第二节点恢复正常状态后,进入正常状态;或者,接收到第二节点发送的用于指示所述第一节点与所述第二节点之间的报文传输方向已经恢复的指示消息;根据指示消息进入正常状态;其中,该正常状态为:节点具备通过节点在节点的第一方向上的保护通道和节点的第二方向上的保护通道将接收的由ODUK解析得到的报文分别透传出去的能力。
图13是根据本发明实施例的第一种报文传输装置中第一调整单元102的结构框图二,在一个可选的实施例中,上述第一节点在确定需要调整报文传输方向之前,第一节点通过第一节点的第一方向上的第一工作通道与第二节点进行报文传输,当上述第一节点接收到用于进行与第二节点之间的报文传输倒换的倒换命令时,该第一调整单元102包括:第一处理子单元132、指示子单元134和第二处理子单元136,下面对该第一调整单元102进行说明。
第一处理子单元132,设置为进入如下的第一报文传输状态:在发送报文时,通过第一工作通道和第一节点的第二方向上的第二保护通道发送报文; 和/或,在接收报文时,对待通过第一工作通道和第一节点的第二方向上的第二工作通道接收的报文进行如下处理:在接收由光数据单元ODUK解析得到的报文后,对该报文进行标签处理;对待通过第一节点的第一方向上的第一保护通道和第二保护通道接收的报文进行如下处理:在接收由ODUK解析得到的报文之前,丢弃该报文;
指示子单元134,连接至上述第一处理子单元132,设置为在进入第一报文传输状态后,指示第二节点进入如下的第二报文传输状态:在发送报文时,第二节点向第二节点的第一方向上的第三工作通道和第二节点的第二方向上的第四保护通道发送报文;和/或,在接收报文时,第二节点对待通过第三工作通道和第二节点的第一方向上的第三保护通道接收的报文进行如下处理:在接收由ODUK解析得到的报文之前,丢弃该报文;第二节点对通过第二节点的第二方向上的第四工作通道和第二节点的第二方向上的第四保护通道接收的报文进行如下处理:在接收到由ODUK解析得到的报文后,对该报文进行标签处理;
第二处理子单元136,连接至上述指示子单元134,设置为在确定第二节点进入第二报文传输状态后,第一节点进入如下的第三报文传输状态:在发送报文时,第一节点向第一工作通道和第二保护通道发送报文;和/或,在接收报文时,第一节点对待通过第一工作通道和第一保护通道接收的报文进行如下处理:在接收由光数据单元ODUK解析得到的报文之前,丢弃该报文;第一节点对通过第二工作通道和第二保护通道接收的报文进行如下处理:在接收到由ODUK解析得到的报文后,对该报文进行标签处理。
图14是根据本发明实施例的第一种报文传输装置的可选结构框图二,如图14所示,该装置除包括图8所示的所有模块外,还包括第二处理模块142、指示模块144和第三处理模块146,下面对该装置进行说明。
第二处理模块142,连接至上述第一调整模块84,设置为在调整第一节点在第一节点的第一方向和第一节点的第二方向上的报文传输之后,且确定倒换命令已被撤销后,进入第一报文传输状态;
指示模块144,连接至上述第二处理模块142,设置为在进入第一报文传输状态后,指示第二节点进入正常状态;
第三处理模块146,连接至上述指示模块144,设置为在确定第二节点进入正常状态后,进入正常状态;其中,该正常状态为:节点具备通过节点在节点的第一方向上的保护通道和节点的第二方向上的保护通道将接收的由ODUK解析得到的报文分别透传出去的能力。
图15是根据本发明实施例的第二种报文传输装置的结构框图,该装置可以应用于光分组传送网POTN中的第二节点中,如图15所示,该装置包括第二确定模块152、第二调整模块154和第二传输模块156,下面对该装置进行说明。
第二确定模块152,设置为确定需要调整与第一节点之间的报文传输方向;第二调整模块154,连接至上述第二确定模块152,设置为调整报文传输方向;第二传输模块156,连接至上述第二调整模块154,设置为利用调整后的报文传输方向,在所述第二节点与第一节点之间进行报文传输。
图16是根据本发明实施例的第二种报文传输装置中第二确定模块152的结构框图,如图16所示,该模块包括以下单元至少之一:
第三检测单元162,设置为检测到第二节点和第一节点之间的链路发生故障;第四检测单元164,设置为检测到第二节点和第一节点之间的节点发生故障;第二接收单元166,设置为接收到第一节点发送的调整指令,其中,该调整指令用于指示第二节点调整与第一节点之间的报文传输方向。
图17是根据本发明实施例的第二种报文传输装置中第二调整模块154的结构框图,如图17所示,该模块包括第二调整单元172,下面对该单元进行说明。
第二调整单元172,设置为调整第二节点在第二节点的第一方向和第二节点的第二方向上的报文传输,其中,该第一方向为东向和西向中的一个方向,第二方向为另一个方向。
图18是根据本发明实施例的第二种报文传输装置中第二调整单元172的结构框图一,在一个可选的实施例中,上述第二节点在确定需要调整报文传输方向之前,该第二节点通过第二节点的第二方向上的第四工作通道与第一节点进行报文传输,当该第二节点检测到第二节点和第一节点之间的链路发 生故障,和/或,第二节点检测到第二节点和第一节点之间的节点发生故障时,该第二调整单元172包括第二调整子单元182,下面对该第二调整子单元182进行说明。
第二调整子单元182,设置为在发送报文时,向第四工作通道和第二节点的第一方向上的第三保护通道发送报文;和/或,在接收报文时,对待通过第四工作通道和第二节点的第二方向上的第四保护通道接收的报文进行如下处理:在接收由光数据单元(ODUK)解析得到的报文之前,丢弃该报文;第二节点对通过第二节点的第一方向上的第三工作通道和第二节点的第一方向上的第三保护通道接收的报文进行如下处理:在接收到由ODUK解析得到的报文后,对该报文进行标签处理。
图19是根据本发明实施例的第二种报文传输装置的可选结构框图一,如图19所示,该装置除包括图15所示的所有模块外,还包括第四处理模块192,下面对该装置进行说明。
第四处理模块192,连接至上述第二调整模块154,设置为在上述第二节点调整第二节点在第二节点的第一方向和第二节点的第二方向上的报文传输之后,且确定与第一节点之间的报文传输方向恢复之后,通过如下方式与第一节点之间进行报文传输:在发送报文时,通过第四工作通道和第三保护通道发送报文;和/或,在接收报文时,对待通过第四工作通道和第三工作通道接收的报文进行如下处理:在接收由ODUK解析得到的报文后,对该报文进行标签处理;对待通过上述第四保护通道和第三保护通道接收的报文进行如下处理:在接收由ODUK解析得到的报文之前,丢弃该报文;在确定上述第一节点恢复正常状态后,进入正常状态;或者,接收到第一节点发送的用于指示第一节点与第二节点之间的报文传输方向已经恢复的指示消息;根据该指示消息进入正常状态;其中,该正常状态为:节点具备通过节点在节点的第一方向上的保护通道和节点的第二方向上的保护通道将接收的由ODUK解析得到的报文分别透传出去的能力。
图20是根据本发明实施例的第二种报文传输装置中第二调整单元172的结构框图二,在一个可选的实施例中,上述第二节点在确定需要调整报文传输方向之前,该第二节点通过第二节点的第二方向上的第四工作通道与第一 节点进行报文传输,当第二节点接收到第一节点发送的调整指令时,该第二调整单元172包括接收子单元202和第三处理子单元204,下面对各子单元进行说明。
接收子单元202,设置为接收第一节点在进入第一报文传输状态后发送的调整指令,其中,该第一节点进入的第一报文传输状态为:在发送报文时,通过第一节点的第一方向上的第一工作通道和第一节点的第二方向上的第二保护通道发送报文;和/或,在接收报文时,对待通过上述第一工作通道和第一节点的第二方向上的第二工作通道接收的报文进行如下处理:在接收由光数据单元ODUK解析得到的报文后,对该报文进行标签处理;对待通过上述第一节点的第一方向上的第一保护通道和第二保护通道接收的报文进行如下处理:在接收由ODUK解析得到的报文之前,丢弃该报文;
第三处理子单元204,连接至上述接收子单元202,设置为根据上述调整指令进入如下的第二报文传输状态:在发送报文时,第二节点向第二节点的第一方向上的第三工作通道和第二节点的第二方向上的第四保护通道发送报文;和/或,在接收报文时,第二节点对待通过第三工作通道和第二节点的第一方向上的第三保护通道接收的报文进行如下处理:在接收由ODUK解析得到的报文之前,丢弃该报文;第二节点对通过第二节点的第二方向上的第四工作通道和第二节点的第二方向上的第四保护通道接收的报文进行如下处理:在接收到由ODUK解析得到的报文后,对该报文进行标签处理。
图21是根据本发明实施例的第二种报文传输装置的可选结构框图二,如图21所示,该装置除包括图15所示的所有模块外,还包括接收模块212、第五处理模块214和发送模块216,下面对该装置进行说明。
接收模块212,连接至上述第二调整模块154,设置为在调整第二节点在第二节点的第一方向和第二节点的第二方向上的报文传输之后,接收上述第一节点发送的第一指示消息;第五处理模块214,连接至上述接收模块212,设置为根据上述第一指示消息进入正常状态;发送模块216,连接至上述第五处理模块214,设置为向第一节点发送第二指示消息,其中,该第二指示消息用于指示第一节点进入正常状态;其中,该正常状态为:节点具备通过节点在节点的第一方向上的保护通道和节点的第二方向上的保护通道将接收 的由ODUK解析得到的报文分别透传出去的能力。
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:
S11,光分组传送网POTN中的第一节点确定需要调整与第二节点之间的报文传输方向;
S12,上述第一节点调整报文传输方向;
S13,上述第一节点利用调整后的报文传输方向,在所述第一节点与第二节点之间进行报文传输。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:
S21,光分组传送网POTN中的第二节点确定需要调整与第一节点之间的报文传输方向;
S22,上述第二节点调整报文传输方向;
S23,上述第二节点利用调整后的报文传输方向,在所述第二节点与第一节点之间进行报文传输。
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行上述各方法实施例中的步骤。
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。
通过采用本发明实施例中的方法和装置,能够实现POTN网络中共享环 网保护,解决POTN网络中存在节点失效时导致穿通本节点的LSP不能被环网保护问题,同时不需要配置环网的保护隧道和配置段以及段层OAM,配置简单,提高了维护效率,减少了OAM带宽的开销等。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
工业实用性
本申请提供了一种报文传输方法及装置,其中,该方法包括:光分组传送网POTN中的第一节点确定需要调整与第二节点之间的报文传输方向;上述第一节点调整报文传输方向;上述第一节点利用调整后的报文传输方向,在所述第一节点与第二节点之间进行报文传输。本申请可解决相关技术中存在的POTN共享环网保护的配置工作量大、带宽控制计算复杂以及需要占用过多的链路带宽的问题,进而达到了降低POTN共享环网保护的配置工作量、带宽控制计算复杂度以及占用的链路带宽的效果。

Claims (28)

  1. 一种报文传输方法,该方法包括:
    光分组传送网POTN中的第一节点确定需要调整与第二节点之间的报文传输方向;
    所述第一节点调整所述报文传输方向;
    所述第一节点利用调整后的所述报文传输方向,在所述第一节点与所述第二节点之间进行报文传输。
  2. 根据权利要求1所述的方法,其中,所述POTN中的所述第一节点确定需要调整与所述第二节点之间的报文传输方向,包括以下至少之一:
    所述第一节点检测到所述第一节点和所述第二节点之间的链路发生故障;
    所述第一节点检测到所述第一节点和所述第二节点之间的节点发生故障;
    所述第一节点接收到用于进行与所述第二节点之间的报文传输倒换的倒换命令。
  3. 根据权利要求2所述的方法,其中,所述第一节点调整所述报文传输方向包括:
    所述第一节点调整所述第一节点在所述第一节点的第一方向和所述第一节点的第二方向上的报文传输,其中,所述第一方向为东向和西向中的一个方向,所述第二方向为东向和西向中的另一个方向。
  4. 根据权利要求3所述的方法,其中,所述第一节点在确定需要调整所述报文传输方向之前,所述第一节点通过所述第一节点的所述第一方向上的第一工作通道与所述第二节点进行报文传输,当所述第一节点检测到所述第一节点和所述第二节点之间的链路发生故障,和/或,所述第一节点检测到所述第一节点和所述第二节点之间的节点发生故障时,
    所述第一节点调整所述第一节点在所述第一节点的第一方向和所述第一节点的第二方向上的报文传输,包括:
    在发送报文时,所述第一节点向所述第一工作通道和所述第一节点的所述第二方向上的第二保护通道发送报文;和/或,
    在接收报文时,所述第一节点对待通过所述第一工作通道和所述第一节点的所述第一方向上的第一保护通道接收的报文进行如下处理:在接收由光数据单元ODUK解析得到的报文之前,丢弃该报文;所述第一节点对通过所述第一节点的所述第二方向上的第二工作通道和所述第一节点的所述第二方向上的第二保护通道接收的报文进行如下处理:在接收到由所述ODUK解析得到的报文后,对该报文进行标签处理。
  5. 根据权利要求4所述的方法,所述第一节点调整所述第一节点在所述第一节点的第一方向和所述第一节点的第二方向上的报文传输之后,所述方法还包括:
    所述第一节点确定与所述第二节点之间的报文传输方向恢复之后,通过如下方式与所述第二节点之间进行报文传输:在发送报文时,通过所述第一工作通道和所述第二保护通道发送报文;和/或,在接收报文时,对待通过所述第一工作通道和所述第二工作通道接收的报文进行如下处理:在接收由所述ODUK解析得到的报文后,对该报文进行标签处理;对待通过所述第一保护通道和所述第二保护通道接收的报文进行如下处理:在接收由所述ODUK解析得到的报文之前,丢弃该报文;在确定所述第二节点恢复正常状态后,进入正常状态;
    或者,
    所述第一节点接收到所述第二节点发送的用于指示所述第一节点与所述第二节点之间的报文传输方向已经恢复的指示消息;根据所述指示消息进入正常状态;
    其中,所述正常状态为:节点具备通过节点在所述节点的所述第一方向上的保护通道和所述节点的所述第二方向上的保护通道将接收的由所述ODUK解析得到的报文分别透传出去的能力。
  6. 根据权利要求3所述的方法,其中,所述第一节点在确定需要调整所述报文传输方向之前,所述第一节点通过所述第一节点的所述第一方向上的 第一工作通道与所述第二节点进行报文传输,当所述第一节点接收到用于进行与所述第二节点之间的报文传输倒换的倒换命令时,所述第一节点调整所述第一节点在所述第一节点的第一方向和所述第一节点的第二方向上的报文传输,包括:
    所述第一节点进入如下的第一报文传输状态:在发送报文时,通过所述第一工作通道和所述第一节点的所述第二方向上的第二保护通道发送报文;和/或,在接收报文时,对待通过所述第一工作通道和所述第一节点的所述第二方向上的第二工作通道接收的报文进行如下处理:在接收由光数据单元ODUK解析得到的报文后,对该报文进行标签处理;对待通过所述第一节点的所述第一方向上的第一保护通道和所述第二保护通道接收的报文进行如下处理:在接收由所述ODUK解析得到的报文之前,丢弃该报文;
    所述第一节点在进入所述第一报文传输状态后,指示所述第二节点进入如下的第二报文传输状态:在发送报文时,所述第二节点向所述第二节点的所述第一方向上的第三工作通道和所述第二节点的所述第二方向上的第四保护通道发送报文;和/或,在接收报文时,所述第二节点对待通过所述第三工作通道和所述第二节点的所述第一方向上的第三保护通道接收的报文进行如下处理:在接收由所述ODUK解析得到的报文之前,丢弃该报文;所述第二节点对通过所述第二节点的所述第二方向上的第四工作通道和所述第二节点的所述第二方向上的第四保护通道接收的报文进行如下处理:在接收到由所述ODUK解析得到的报文后,对该报文进行标签处理;
    所述第一节点在确定所述第二节点进入所述第二报文传输状态后,所述第一节点进入如下的第三报文传输状态:在发送报文时,所述第一节点向所述第一工作通道和所述第二保护通道发送报文;和/或,在接收报文时,所述第一节点对待通过所述第一工作通道和所述第一保护通道接收的报文进行如下处理:在接收由光数据单元ODUK解析得到的报文之前,丢弃该报文;所述第一节点对通过所述第二工作通道和所述第二保护通道接收的报文进行如下处理:在接收到由所述ODUK解析得到的报文后,对该报文进行标签处理。
  7. 根据权利要求6所述的方法,所述第一节点调整所述第一节点在所述第一节点的第一方向和所述第一节点的第二方向上的报文传输之后,该方法 还包括:
    所述第一节点在确定所述倒换命令已被撤销后,所述第一节点进入所述第一报文传输状态;
    所述第一节点在进入所述第一报文传输状态后,指示所述第二节点进入正常状态;
    所述第一节点在确定所述第二节点进入正常状态后,所述第一节点进入正常状态;
    其中,所述正常状态为:节点具备通过节点在所述节点的所述第一方向上的保护通道和所述节点的所述第二方向上的保护通道,将接收的由所述ODUK解析得到的报文分别透传出去的能力。
  8. 一种报文传输方法,该方法包括:
    光分组传送网POTN中的第二节点确定需要调整与第一节点之间的报文传输方向;
    所述第二节点调整所述报文传输方向;
    所述第二节点利用调整后的报文传输方向,在所述第二节点与所述第一节点之间进行报文传输。
  9. 根据权利要求8所述的方法,其中,所述POTN中的所述第二节点确定需要调整与所述第一节点之间的报文传输方向包括以下至少之一:
    所述第二节点检测到所述第二节点和所述第一节点之间的链路发生故障;
    所述第二节点检测到所述第二节点和所述第一节点之间的节点发生故障;
    所述第二节点接收到所述第一节点发送的调整指令,其中,所述调整指令用于指示所述第二节点调整与所述第一节点之间的报文传输方向。
  10. 根据权利要求9所述的方法,其中,所述第二节点调整所述报文传输方向包括:
    所述第二节点调整所述第二节点在所述第二节点的第一方向和所述第二 节点的第二方向上的报文传输,其中,所述第一方向为东向和西向中的一个方向,所述第二方向为东向和西向中的另一个方向。
  11. 根据权利要求10所述的方法,其中,所述第二节点在确定需要调整所述报文传输方向之前,所述第二节点通过所述第二节点的所述第二方向上的第四工作通道与所述第一节点进行报文传输,当所述第二节点检测到所述第二节点和所述第一节点之间的链路发生故障和/或,所述第二节点检测到所述第二节点和所述第一节点之间的节点发生故障时,所述第二节点调整所述第二节点在所述第二节点的第一方向和所述第二节点的第二方向上的报文传输包括:
    在发送报文时,所述第二节点向所述第四工作通道和所述第二节点的所述第一方向上的第三保护通道发送报文;和/或,
    在接收报文时,所述第二节点对待通过所述第四工作通道和所述第二节点的所述第二方向上的第四保护通道接收的报文进行如下处理:在接收由光数据单元ODUK解析得到的报文之前,丢弃该报文;所述第二节点对通过所述第二节点的所述第一方向上的第三工作通道和所述第二节点的所述第一方向上的第三保护通道接收的报文进行如下处理:在接收到由所述ODUK解析得到的报文后,对该报文进行标签处理。
  12. 根据权利要求11所述的方法,在所述第二节点调整所述第二节点在所述第二节点的第一方向和所述第二节点的第二方向上的报文传输之后,所述方法还包括:
    所述第二节点确定与所述第一节点之间的报文传输方向恢复之后,通过如下方式与所述第一节点之间进行报文传输:在发送报文时,通过所述第四工作通道和所述第三保护通道发送报文;和/或,在接收报文时,对待通过所述第四工作通道和所述第三工作通道接收的报文进行如下处理:在接收由所述ODUK解析得到的报文后,对该报文进行标签处理;对待通过所述第四保护通道和所述第三保护通道接收的报文进行如下处理:在接收由所述ODUK解析得到的报文之前,丢弃该报文;在确定所述第一节点恢复正常状态后,进入正常状态;
    或者,
    所述第二节点接收到所述第一节点发送的用于指示所述第一节点与所述第二节点之间的报文传输方向已经恢复的指示消息;根据所述指示消息进入正常状态;
    其中,所述正常状态为:节点具备通过节点在所述节点的所述第一方向上的保护通道和所述节点的所述第二方向上的保护通道将接收的由所述ODUK解析得到的报文分别透传出去的能力。
  13. 根据权利要求10所述的方法,其中,所述第二节点在确定需要调整所述报文传输方向之前,所述第二节点通过所述第二节点的所述第二方向上的第四工作通道与所述第一节点进行报文传输,当所述第二节点接收到所述第一节点发送的调整指令时,所述第二节点调整所述第二节点在所述第二节点的第一方向和所述第二节点的第二方向上的报文传输,包括:
    接收所述第一节点在进入第一报文传输状态后发送的所述调整指令,其中,所述第一节点进入的所述第一报文传输状态为:在发送报文时,通过所述第一节点的所述第一方向上的第一工作通道和所述第一节点的所述第二方向上的第二保护通道发送报文;和/或,在接收报文时,对待通过所述第一工作通道和所述第一节点的所述第二方向上的第二工作通道接收的报文进行如下处理:在接收由光数据单元ODUK解析得到的报文后,对该报文进行标签处理;对待通过所述第一节点的所述第一方向上的第一保护通道和所述第二保护通道接收的报文进行如下处理:在接收由所述ODUK解析得到的报文之前,丢弃该报文;
    所述第二节点根据所述调整指令进入如下的第二报文传输状态:在发送报文时,所述第二节点向所述第二节点的所述第一方向上的第三工作通道和所述第二节点的所述第二方向上的第四保护通道发送报文;和/或,在接收报文时,所述第二节点对待通过所述第三工作通道和所述第二节点的所述第一方向上的第三保护通道接收的报文进行如下处理:在接收由所述ODUK解析得到的报文之前,丢弃该报文;所述第二节点对通过所述第二节点的所述第二方向上的第四工作通道和所述第二节点的所述第二方向上的第四保护通道接收的报文进行如下处理:在接收到由所述ODUK解析得到的报文后,对该报文进行标签处理。
  14. 根据权利要求13所述的方法,所述第二节点调整所述第二节点在所述第二节点的第一方向和所述第二节点的第二方向上的报文传输之后,该方法还包括:
    所述第二节点接收所述第一节点发送的第一指示消息;
    所述第二节点根据所述第一指示消息进入正常状态;
    所述第二节点向所述第一节点发送第二指示消息,其中,所述第二指示消息用于指示所述第一节点进入正常状态;
    其中,所述正常状态为:节点具备通过节点在所述节点的所述第一方向上的保护通道和所述节点的所述第二方向上的保护通道,将接收的由所述ODUK解析得到的报文分别透传出去的能力。
  15. 一种报文传输装置,该装置应用于光分组传送网POTN中的第一节点中,该装置包括:
    第一确定模块,设置为确定需要调整与第二节点之间的报文传输方向;
    第一调整模块,设置为调整所述报文传输方向;
    第一传输模块,设置为利用调整后的报文传输方向,在所述第一节点与所述第二节点之间进行报文传输。
  16. 根据权利要求15所述的装置,其中,所述第一确定模块包括以下至少之一:
    第一检测单元,设置为检测到所述第一节点和所述第二节点之间的链路发生故障;
    第二检测单元,设置为检测到所述第一节点和所述第二节点之间的节点发生故障;
    第一接收单元,设置为接收到用于进行与所述第二节点之间的报文传输倒换的倒换命令。
  17. 根据权利要求16所述的装置,其中,所述第一调整模块包括:
    第一调整单元,设置为调整所述第一节点在所述第一节点的第一方向和所述第一节点的第二方向上的报文传输,其中,所述第一方向为东向和西向 中的一个方向,所述第二方向为东向和西向中的另一个方向。
  18. 根据权利要求17所述的装置,其中,所述第一节点在确定需要调整所述报文传输方向之前,所述第一节点通过所述第一节点的所述第一方向上的第一工作通道与所述第二节点进行报文传输,当所述第一节点检测到所述第一节点和所述第二节点之间的链路发生故障,和/或,所述第一节点检测到所述第一节点和所述第二节点之间的节点发生故障时,所述第一调整单元包括:
    第一调整子单元,设置为在发送报文时,向所述第一工作通道和所述第一节点的所述第二方向上的第二保护通道发送报文;和/或,
    在接收报文时,对待通过所述第一工作通道和所述第一节点的所述第一方向上的第一保护通道接收的报文进行如下处理:在接收由光数据单元ODUK解析得到的报文之前,丢弃该报文;所述第一节点对通过所述第一节点的所述第二方向上的第二工作通道和所述第一节点的所述第二方向上的第二保护通道接收的报文进行如下处理:在接收到由所述ODUK解析得到的报文后,对该报文进行标签处理。
  19. 根据权利要求18所述的装置,所述装置还包括:
    第一处理模块,设置为在调整所述第一节点在所述第一节点的第一方向和所述第一节点的第二方向上的报文传输之后,且确定与所述第二节点之间的报文传输方向恢复之后,通过如下方式与所述第二节点之间进行报文传输:在发送报文时,通过所述第一工作通道和所述第二保护通道发送报文;和/或,在接收报文时,对待通过所述第一工作通道和所述第二工作通道接收的报文进行如下处理:在接收由所述ODUK解析得到的报文后,对该报文进行标签处理;对待通过所述第一保护通道和所述第二保护通道接收的报文进行如下处理:在接收由所述ODUK解析得到的报文之前,丢弃该报文;在确定所述第二节点恢复正常状态后,进入正常状态;
    或者,
    接收到所述第二节点发送的用于指示所述第一节点与所述第二节点之间的报文传输方向已经恢复的指示消息;根据所述指示消息进入正常状态;
    其中,所述正常状态为:节点具备通过节点在所述节点的所述第一方向上的保护通道和所述节点的所述第二方向上的保护通道将接收的由所述ODUK解析得到的报文分别透传出去的能力。
  20. 根据权利要求17所述的装置,其中,所述第一节点在确定需要调整所述报文传输方向之前,所述第一节点通过所述第一节点的所述第一方向上的第一工作通道与所述第二节点进行报文传输,当所述第一节点接收到用于进行与所述第二节点之间的报文传输倒换的倒换命令时,所述第一调整单元,包括:
    第一处理子单元,设置为所述第一节点进入如下的第一报文传输状态:在发送报文时,通过所述第一工作通道和所述第一节点的所述第二方向上的第二保护通道发送报文;和/或,在接收报文时,对待通过所述第一工作通道和所述第一节点的所述第二方向上的第二工作通道接收的报文进行如下处理:在接收由光数据单元ODUK解析得到的报文后,对该报文进行标签处理;对待通过所述第一节点的所述第一方向上的第一保护通道和所述第二保护通道接收的报文进行如下处理:在接收由所述ODUK解析得到的报文之前,丢弃该报文;
    指示子单元,设置为所述第一节点在进入所述第一报文传输状态后,指示所述第二节点进入如下的第二报文传输状态:在发送报文时,所述第二节点向所述第二节点的所述第一方向上的第三工作通道和所述第二节点的所述第二方向上的第四保护通道发送报文;和/或,在接收报文时,所述第二节点对待通过所述第三工作通道和所述第二节点的所述第一方向上的第三保护通道接收的报文进行如下处理:在接收由所述ODUK解析得到的报文之前,丢弃该报文;所述第二节点对通过所述第二节点的所述第二方向上的第四工作通道和所述第二节点的所述第二方向上的第四保护通道接收的报文进行如下处理:在接收到由所述ODUK解析得到的报文后,对该报文进行标签处理;
    第二处理子单元,设置为所述第一节点在确定所述第二节点进入所述第二报文传输状态后,所述第一节点进入如下的第三报文传输状态:在发送报文时,所述第一节点向所述第一工作通道和所述第二保护通道发送报文;和/或,在接收报文时,所述第一节点对待通过所述第一工作通道和所述第一保 护通道接收的报文进行如下处理:在接收由光数据单元ODUK解析得到的报文之前,丢弃该报文;所述第一节点对通过所述第二工作通道和所述第二保护通道接收的报文进行如下处理:在接收到由所述ODUK解析得到的报文后,对该报文进行标签处理。
  21. 根据权利要求20所述的装置,所述装置还包括:
    第二处理模块,设置为在调整所述第一节点在所述第一节点的第一方向和所述第一节点的第二方向上的报文传输之后,且确定所述倒换命令已被撤销后,进入所述第一报文传输状态;
    指示模块,设置为在所述第一节点进入所述第一报文传输状态后,指示所述第二节点进入正常状态;
    第三处理模块,设置为在确定所述第二节点进入正常状态后,进入正常状态;
    其中,所述正常状态为:节点具备通过节点在所述节点的所述第一方向上的保护通道和所述节点的所述第二方向上的保护通道将接收的由所述ODUK解析得到的报文分别透传出去的能力。
  22. 一种报文传输装置,该装置应用于光分组传送网POTN中的第二节点中,该装置包括:
    第二确定模块,设置为确定需要调整与第一节点之间的报文传输方向;
    第二调整模块,设置为调整所述报文传输方向;
    第二传输模块,设置为利用调整后的报文传输方向,在所述第二节点与所述第一节点之间进行报文传输。
  23. 根据权利要求22所述的装置,其中,所述第二确定模块包括以下至少之一:
    第三检测单元,设置为检测到所述第二节点和所述第一节点之间的链路发生故障;
    第四检测单元,设置为检测到所述第二节点和所述第一节点之间的节点发生故障;
    第二接收单元,设置为接收到所述第一节点发送的调整指令,其中,所述调整指令用于指示所述第二节点调整与所述第一节点之间的报文传输方向。
  24. 根据权利要求23所述的装置,其中,所述第二调整模块包括:
    第二调整单元,设置为调整所述第二节点在所述第二节点的第一方向和所述第二节点的第二方向上的报文传输,其中,所述第一方向为东向和西向中的一个方向,所述第二方向为东向和西向中的另一个方向。
  25. 根据权利要求24所述的装置,其中,所述第二节点在确定需要调整所述报文传输方向之前,所述第二节点通过所述第二节点的所述第二方向上的第四工作通道与所述第一节点进行报文传输,当所述第二节点检测到所述第二节点和所述第一节点之间的链路发生故障,和/或,所述第二节点检测到所述第二节点和所述第一节点之间的节点发生故障时,所述第二调整单元包括:
    第二调整子单元,设置为在发送报文时,向所述第四工作通道和所述第二节点的所述第一方向上的第三保护通道发送报文;和/或,在接收报文时,对待通过所述第四工作通道和所述第二节点的所述第二方向上的第四保护通道接收的报文进行如下处理:在接收由光数据单元ODUK解析得到的报文之前,丢弃该报文;所述第二节点对通过所述第二节点的所述第一方向上的第三工作通道和所述第二节点的所述第一方向上的第三保护通道接收的报文进行如下处理:在接收到由所述ODUK解析得到的报文后,对该报文进行标签处理。
  26. 根据权利要求25所述的装置,所述装置还包括:
    第四处理模块,设置为在所述第二节点调整所述第二节点在所述第二节点的第一方向和所述第二节点的第二方向上的报文传输之后,且确定与所述第一节点之间的报文传输方向恢复之后,通过如下方式与所述第一节点之间进行报文传输:
    在发送报文时,通过所述第四工作通道和所述第三保护通道发送报文;和/或,在接收报文时,对待通过所述第四工作通道和所述第三工作通道接收 的报文进行如下处理:在接收由所述ODUK解析得到的报文后,对该报文进行标签处理;对待通过所述第四保护通道和所述第三保护通道接收的报文进行如下处理:在接收由所述ODUK解析得到的报文之前,丢弃该报文;在确定所述第一节点恢复正常状态后,进入正常状态;
    或者,
    接收到所述第一节点发送的用于指示所述第一节点与所述第二节点之间的报文传输方向已经恢复的指示消息;根据所述指示消息进入正常状态;
    其中,所述正常状态为:节点具备通过节点在所述节点的所述第一方向上的保护通道和所述节点的所述第二方向上的保护通道将接收的由所述ODUK解析得到的报文分别透传出去的能力。
  27. 根据权利要求24所述的装置,其中,所述第二节点在确定需要调整所述报文传输方向之前,所述第二节点通过所述第二节点的所述第二方向上的第四工作通道与所述第一节点进行报文传输,当所述第二节点接收到所述第一节点发送的调整指令时,所述第二调整单元包括:
    接收子单元,设置为接收所述第一节点在进入第一报文传输状态后发送的所述调整指令,其中,所述第一节点进入的所述第一报文传输状态为:在发送报文时,通过所述第一节点的所述第一方向上的第一工作通道和所述第一节点的所述第二方向上的第二保护通道发送报文;和/或,在接收报文时,对待通过所述第一工作通道和所述第一节点的所述第二方向上的第二工作通道接收的报文进行如下处理:在接收由光数据单元ODUK解析得到的报文后,对该报文进行标签处理;对待通过所述第一节点的所述第一方向上的第一保护通道和所述第二保护通道接收的报文进行如下处理:在接收由所述ODUK解析得到的报文之前,丢弃该报文;
    第三处理子单元,设置为根据所述调整指令进入如下的第二报文传输状态:在发送报文时,所述第二节点向所述第二节点的所述第一方向上的第三工作通道和所述第二节点的所述第二方向上的第四保护通道发送报文;和/或,在接收报文时,所述第二节点对待通过所述第三工作通道和所述第二节点的所述第一方向上的第三保护通道接收的报文进行如下处理:在接收由所述ODUK解析得到的报文之前,丢弃该报文;所述第二节点对通过所述第二 节点的所述第二方向上的第四工作通道和所述第二节点的所述第二方向上的第四保护通道接收的报文进行如下处理:在接收到由所述ODUK解析得到的报文后,对该报文进行标签处理。
  28. 根据权利要求27所述的装置,所述装置还包括:
    接收模块,设置为在调整所述第二节点在所述第二节点的第一方向和所述第二节点的第二方向上的报文传输之后,接收所述第一节点发送的第一指示消息;
    第五处理模块,设置为根据所述第一指示消息进入正常状态;
    发送模块,设置为向所述第一节点发送第二指示消息,其中,所述第二指示消息用于指示所述第一节点进入正常状态;
    其中,所述正常状态为:节点具备通过节点在所述节点的所述第一方向上的保护通道和所述节点的所述第二方向上的保护通道将接收的由所述ODUK解析得到的报文分别透传出去的能力。
PCT/CN2016/093615 2016-01-04 2016-08-05 报文传输方法及装置 WO2017118008A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610005843.XA CN106941436B (zh) 2016-01-04 2016-01-04 报文传输方法及装置
CN201610005843.X 2016-01-04

Publications (1)

Publication Number Publication Date
WO2017118008A1 true WO2017118008A1 (zh) 2017-07-13

Family

ID=59273242

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/093615 WO2017118008A1 (zh) 2016-01-04 2016-08-05 报文传输方法及装置

Country Status (2)

Country Link
CN (1) CN106941436B (zh)
WO (1) WO2017118008A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113162834A (zh) * 2020-01-07 2021-07-23 华为技术有限公司 数据传输方法、设备及系统

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101877665A (zh) * 2009-04-29 2010-11-03 华为技术有限公司 环网保护方法、网络节点及环网络
CN102014011A (zh) * 2009-09-04 2011-04-13 中兴通讯股份有限公司 环网保护方法与系统
CN102025437A (zh) * 2009-09-22 2011-04-20 中国移动通信集团公司 保护倒换的方法、系统及设备
CN102571460A (zh) * 2012-03-09 2012-07-11 中兴通讯股份有限公司 单纤故障切换方法及装置
CN103179013A (zh) * 2011-12-21 2013-06-26 中兴通讯股份有限公司 一种环网保护的实现方法及系统
US20150365739A1 (en) * 2014-06-13 2015-12-17 Ciena Corporation Systems and methods for detecting and propagating resizability information of oduflex connections

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101877665A (zh) * 2009-04-29 2010-11-03 华为技术有限公司 环网保护方法、网络节点及环网络
CN102014011A (zh) * 2009-09-04 2011-04-13 中兴通讯股份有限公司 环网保护方法与系统
CN102025437A (zh) * 2009-09-22 2011-04-20 中国移动通信集团公司 保护倒换的方法、系统及设备
CN103179013A (zh) * 2011-12-21 2013-06-26 中兴通讯股份有限公司 一种环网保护的实现方法及系统
CN102571460A (zh) * 2012-03-09 2012-07-11 中兴通讯股份有限公司 单纤故障切换方法及装置
US20150365739A1 (en) * 2014-06-13 2015-12-17 Ciena Corporation Systems and methods for detecting and propagating resizability information of oduflex connections

Also Published As

Publication number Publication date
CN106941436B (zh) 2020-06-02
CN106941436A (zh) 2017-07-11

Similar Documents

Publication Publication Date Title
US9769067B2 (en) Multiprotocol label switching traffic engineering tunnel establishing method and device
US8988982B2 (en) Method and apparatus for protection switching in point-to-multipoint network
US7961602B2 (en) Method and device using a backup communication path to transmit excess traffic
US9755957B2 (en) Pseudowire control channel for signaling events
EP3654664B1 (en) Method for interconnected ring protection, computer-readable storage medium and computer program product
CN104980372A (zh) 中继系统以及交换机装置
CN101610535B (zh) 多链路直连场景下保证bfd会话稳定性的方法、系统及装置
US20070253327A1 (en) System and method of multi-nodal APS control protocol signalling
EP2254289B1 (en) Method, device, and system for establishing label switching path in fast rerouting switching
US6848062B1 (en) Mesh protection service in a communications network
CN102480368B (zh) 一种聚合链路的保护方法及系统
CN102820990A (zh) 业务保护的切换方法及装置
WO2012079418A1 (zh) 一种相交相切环网保护方法及系统
CN111327527B (zh) 流量转发方法、系统、sdn控制器及计算机可读存储介质
CN102209001A (zh) 以太网线性保护方法和装置
CN102882779A (zh) Vrrp通告链路保护方法及系统
EP2573977A1 (en) Subnet protection method and device for transport multi-protocol label switching (tmpls) network
WO2017118008A1 (zh) 报文传输方法及装置
JP5440713B2 (ja) 伝送装置および伝送システム並びに障害通知方法
WO2018121485A1 (zh) 业务切换方法、装置及业务切换系统
WO2016061992A1 (zh) 业务传输方法及装置
CN103795625A (zh) 多协议标签交换网络的快速重路由实现方法及装置
CN102195848A (zh) 一种实现组播业务流保护的方法、装置及系统
CN107528759B (zh) 业务处理方法、业务出环节点及环网
CN107800601B (zh) 环网倒换的保护方法、装置及系统

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

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

Country of ref document: EP

Kind code of ref document: A1