CN102035718B - Method, device and system for protection switching of packet transport network - Google Patents

Method, device and system for protection switching of packet transport network Download PDF

Info

Publication number
CN102035718B
CN102035718B CN2009100933101A CN200910093310A CN102035718B CN 102035718 B CN102035718 B CN 102035718B CN 2009100933101 A CN2009100933101 A CN 2009100933101A CN 200910093310 A CN200910093310 A CN 200910093310A CN 102035718 B CN102035718 B CN 102035718B
Authority
CN
China
Prior art keywords
packet
error rate
transport network
physical layer
port error
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2009100933101A
Other languages
Chinese (zh)
Other versions
CN102035718A (en
Inventor
王磊
韩毅
李晗
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
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 China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN2009100933101A priority Critical patent/CN102035718B/en
Publication of CN102035718A publication Critical patent/CN102035718A/en
Application granted granted Critical
Publication of CN102035718B publication Critical patent/CN102035718B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses a method for protection switching of a packet transport network, comprising the following steps: receiving a data packet from the packet transport network at a node inlet port, detecting whether the data packet is wrong or not according to the physical-layer information of the data packet, and acquiring port error rate of a link according to the detected result; and comparing the relation of the acquired port error rate and a preset port error rate threshold, if the port error rate is larger than the preset port error rate threshold, triggering protection switching. By utilizing the embodiment of the invention, the condition of degradation of performance in the network can be effectively detected, and the survivability of the network is improved. Similarly, the embodiment of the invention discloses a device and system applying the method.

Description

A kind of methods, devices and systems of protection switching of packet transport network
Technical field
The present invention relates to communication technical field, relate in particular to a kind of methods, devices and systems of protection switching of packet transport network.
Background technology
Development along with communication network, the type of service that mobile network and fixed network are carried is all by take the circuit speech business as main to changing as main take the packetized data business, PTN (Packet TransportNetwork, Packet Transport Network) has become the focus that people pay close attention to.PTN is for adopting MPLS-TP (MultiProtocol Label Switching-Transport Profile, multi protocol label exchanges-the transmission aspect) and PBT (Provider Backbone Transport, provider backbone transmission) etc. what technology realized has towards the network that connects attributes of network, support many grades QoS (Quality of Service, service quality), the grouping characteristics such as flexibility, extensibility, label forwarding and statistic multiplexing, and transmission characteristics such as OAM, reliability, synchronization timing and webmaster end to end.PTN logically is divided into PW (Pseudo Wire, pseudo-line) layer, LSP (Label Switched Path, label switched path) layer and section layer (Section), wherein, can adopt the multiple physical layers medium transmission such as Ethernet at the section layer.
Protection in the communication network refers to recover by automatically switching to redundant resource the ability of protected business under failure condition; in traditional SDH (Synchronous Digital Hierarchy, SDH (Synchronous Digital Hierarchy)) network, defined perfect protection mechanism.In order to provide in PTN and protective capability like traditional SDH network class, standardization body of international telecommunication union telecommunication has proposed 1+1 and the 1:1 protection mechanism based on APS (AutomaticProtection Switching, APS) agreement.As shown in Figure 1, be APS application scenarios schematic diagram, wherein, A-B-E is working LSP, and A-C-D-E is protection LSP.The state of the state of the real-time testing LSP of APS and protection LSP, when the state of working LSP changed, APS starting protection Switchover mechanism switched to protection LSP with business.
The physical layer that comprises present path failure detection method detects and protocol layer detects, wherein, and in physical layer, because the light signal that the hardware faults such as fibercuts and node power down cause is lost interruption, to be identified with LoS (Loss of Signal, dropout) defective, and trigger APS and switch; At protocol layer, the OAM of PTN (Operation Administration and Maintenance, Operations, Administration and Maintenance) in the agreement, also defined by CC (Continuity Check, continuity verification) and carried out fault detect and trigger the mechanism that APS switches.The CC mechanism of LSP OAM is to realize by the CC message that is inserted between detecting in the service message.As shown in Figure 2, be the CC schematic diagram of mechanism, transmitting terminal periodically (3.33ms~1s is configurable) sends the CC message, receiving terminal periodically receives the CC message, when continuous 3 cycles of receiving terminal do not receive the CC message, think that then working LSP breaks down, trigger APS and switch.Be minimum when the transmission cycle of configuration CC message, namely during 3.33ms, be 10ms (3.33ms/ cycle * 3 cycle) detection time of lsp failure, and service outage duration is less than 50ms.Above-mentioned CC mechanism is to determine the connectedness of LSP by the connectedness that detects the CC message, generally only have under situation that the path interrupts fully appears causing because of hardware faults such as fibercuts, node power down in LSP, receiving terminal just can not receive the CC message and trigger APS and switch in continuous 3 cycles.
The inventor finds that there is following defective at least in prior art in realizing process of the present invention:
At present, can be under the hardware faults such as fibercuts, node power down cause situation that working LSP interrupts fully based on the protection mechanism of APS agreement, guarantee that PTN protects to switch.Yet; when descend owing to the optical fiber link transmission quality, the network node such as the transmission equipment luminous power is excessively low, connector loose contact and circuit reason cause that the Internet Transmission quality is abominable; and then can't satisfy the transmission performance requirements such as professional time delay, shake, error code/packet loss; and cause PTN circuit transmission quality to descend; during the situations such as, optical attenuation deteriorated such as link and a small amount of error code of appearance; owing to do not cause successional CC message dropping; existing protection mechanism can't detect the situation of above-mentioned performance degradation, also can't switch by trigger protection.
Summary of the invention
The embodiment of the invention provides a kind of methods, devices and systems of protection switching of packet transport network, effectively detects the situation that there is performance degradation in network, has improved survivability.
The embodiment of the invention provides a kind of method of protection switching of packet transport network, may further comprise the steps:
Receiving packet from Packet Transport Network at the node inbound port, whether be wrong bag, and obtain the port error rate of link according to described testing result if detecting described packet according to the physical layer information of described packet; Wherein, whether described physical layer information according to packet detects packet is wrong bag, specifically comprise: described packet is carried out decapsulation, obtain the general physical layer frame of Packet Transport Network, the general physical layer frame of described Packet Transport Network comprises physical layer frame head, Packet Transport Network payload PTN Payload and check field; By checking algorithm described physical layer frame head and PTN Payload are calculated, and whether more described result of calculation is identical with described check field, if described result of calculation is identical with described check field, judges that then described packet is not wrong bag; If described result of calculation is different from described check field, judge that then described packet is wrong bag;
The relation of the more described port error rate of obtaining and default port error rate thresholding, when the described port error rate during greater than described default port error rate thresholding, trigger protection is switched.
Preferably, describedly obtain the port error rate of link according to testing result, specifically comprise:
In the setting-up time section, add up packet sum and wrong bag number that described node inbound port receives;
According to described packet sum and the described wrong port error rate that number obtains link of wrapping.
Preferably, when the described port error rate during greater than described default port error rate thresholding, also comprise:
Send to downstream node error code announcement indication, with the described downstream node of the advisory of described Packet Transport Network performance degradation.
The embodiment of the invention also provides a kind of device of protection switching of packet transport network, comprising:
Receiver module is used at the packet of node inbound port reception from Packet Transport Network;
Detection module is connected with described receiver module, is used for physical layer information according to described packet and detects whether the packet that described receiver module receives is wrong bag; Concrete being used for carried out decapsulation to described packet, obtains the general physical layer frame of Packet Transport Network, and the general physical layer frame of described Packet Transport Network comprises physical layer frame head, PTN Payload and check field; By checking algorithm described physical layer frame head and PTN Payload are calculated, and whether more described result of calculation is identical with described check field, when described result of calculation is identical with described check field, judges that described packet is not wrong bag; In described result of calculation and described check field not simultaneously, do not judge that described packet is wrong bag;
Acquisition module is connected with described detection module, is used for obtaining according to the testing result of described detection module the port error rate of link;
Comparison module is connected with described acquisition module, is used for the relation of more described acquisition module the port error rate of obtaining and the port error rate thresholding of presetting;
Protection module is connected with described comparison module, is used for when described comparison module is judged the described port error rate greater than described default port error rate thresholding, and trigger protection is switched.
Preferably, described acquisition module, is added up packet sum and wrong bag number that described node inbound port receives at concrete being used in the setting-up time section; According to described packet sum and the described wrong port error rate that number obtains link of wrapping.
Preferably, when the described port error rate during greater than described default port error rate thresholding,
Described protection module also is used for sending to downstream node error code announcement indication, with the described downstream node of the advisory of described Packet Transport Network performance degradation.
The embodiment of the invention also provides a kind of system of protection switching of packet transport network, comprises transmitting terminal and receiving terminal,
Described transmitting terminal is used for sending packet to described receiving terminal;
Described receiving terminal be used for to receive the packet from described transmitting terminal, and whether be wrong bag, and obtain the port error rate of link according to described testing result if detecting described packet according to the physical layer information of described packet; The relation of the more described port error rate of obtaining and default port error rate thresholding, when the described port error rate during greater than described default port error rate thresholding, trigger protection is switched; Also be used for described packet is carried out decapsulation, obtain the general physical layer frame of Packet Transport Network, the general physical layer frame of described Packet Transport Network comprises physical layer frame head, PTN Payload and check field; By checking algorithm described physical layer frame head and PTN Payload are calculated, and whether more described result of calculation is identical with described check field, when described result of calculation is identical with described check field, judges that described packet is not wrong bag; In described result of calculation and described check field not simultaneously, do not judge that described packet is wrong bag.
Preferably, described transmitting terminal also is used for the general physical frame of Packet Transport Network is encapsulated, and obtains corresponding packet.
Compared with prior art; the embodiment of the invention has the following advantages: the embodiment of the invention utilizes check field to detect error code; obtain the port error rate of link; and with this port error rate and the comparison of predefined error rate thresholding; determine according to comparative result whether trigger protection is switched; improve the network performance monitoring precision, can effectively detect the situation that there is performance degradation in network, improved survivability.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in the embodiment of the invention or the description of the Prior Art, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is APS application scenarios schematic diagram;
Fig. 2 is the CC schematic diagram of mechanism;
Fig. 3 is the method flow diagram of a kind of protection switching of packet transport network in the embodiment of the invention;
Fig. 4 is the protection switching of packet transport network schematic diagram in the embodiment of the invention application scenarios;
Fig. 5 is the protection switching of packet transport network flow chart in the embodiment of the invention application scenarios;
Fig. 6 is the general physical layer frame form of Packet Transport Network schematic diagram;
Fig. 7 is IEEE 802.3 mac frame form schematic diagrames;
Fig. 8 is the apparatus structure schematic diagram of a kind of protection switching of packet transport network in the embodiment of the invention;
Fig. 9 is the system configuration schematic diagram of a kind of protection switching of packet transport network in the embodiment of the invention.
Embodiment
In the technical scheme that the embodiment of the invention provides; its core concept is for descending for the deteriorated Packet Transport Network transmission quality that causes of network performance; deteriorated such as link; the situation of optical attenuation and a small amount of error code of appearance; a kind of method of protection switching of packet transport network is proposed; at the packet of node inbound port reception from Packet Transport Network; whether be the port error rate that wrong bag obtains link by detecting this packet; and the magnitude relationship of the port error rate of relatively obtaining and default port error rate thresholding; when the port error rate during greater than default port error rate thresholding, trigger protection is switched.
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme of the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
As shown in Figure 3, the method flow diagram for a kind of protection switching of packet transport network in the embodiment of the invention may further comprise the steps:
Step 301 receives packet from Packet Transport Network at the node inbound port, and whether be wrong bag, and obtain the port error rate of link according to testing result if detecting this packet according to the physical layer information of this packet.
Particularly, obtain the port error rate of link according to testing result, specifically comprise: in the setting-up time section, add up packet sum and wrong bag number that described node inbound port receives; According to described packet sum and the described wrong port error rate that number obtains link of wrapping.
Whether the physical layer information detection packet according to packet is wrong bag, specifically comprise: described packet is carried out decapsulation, obtain the general physical layer frame of Packet Transport Network, the general physical layer frame of this Packet Transport Network comprises physical layer frame head, PTN Payload (Packet Transport Network payload) and check field; By checking algorithm physical layer frame head and PTN Payload are calculated, and relatively whether this result of calculation is identical with check field, if result of calculation is identical with check field, judges that then packet is not wrong bag; If result of calculation is different from check field, judge that then packet is wrong bag.
When the section layer of Packet Transport Network adopts the ethernet physical layer medium to transmit, above-mentioned check field can adopt IEEE (Institute of Electrical and Electronics Engineers, IEEE) 802.3 MAC (Media Access Control, media interviews control) FCS (FrameCheck Sequence, Frame Check Sequence) of frame.
Step 302, the relation of the port error rate of relatively obtaining and default port error rate thresholding, when the port error rate during greater than default port error rate thresholding, execution in step 303; When the port error rate is not more than default port error rate thresholding, execution in step 301.
Step 303, trigger protection is switched.
As shown in Figure 4; be the protection switching of packet transport network schematic diagram in the embodiment of the invention application scenarios; comprise node A, Node B and node C; wherein; node A sends packet to Node B; after Node B receives this packet, this packet is carried out decapsulation and Reseal, and with the Packet Generation behind the Reseal to node C.
Below in conjunction with above-mentioned application scenarios the method for the application cache server in the embodiment of the invention and database synchronization is carried out detailed, concrete description.
As shown in Figure 5, the protection switching of packet transport network flow chart in the embodiment of the invention application scenarios specifically may further comprise the steps:
Step 501, node A encapsulates the general physical frame of Packet Transport Network, obtains corresponding packet, and sends this packet to receiving terminal.
Step 502, Node B receives the packet from node A, and this packet is carried out decapsulation, obtains the general physical layer frame of Packet Transport Network.
Particularly, the general physical layer frame of Packet Transport Network comprises physical layer frame head, PTN Payload and check field, as shown in Figure 6, and the various physical layer media that use when being applicable to adopt the Packet Transport Network delivery section layer of MPLS-TP.Wherein, the physical layer frame head includes the fields such as destination address and source address; The check field that is used for Error detection is positioned at the last of the general physical layer frame form of Packet Transport Network, is calculated by checking algorithm by physical layer frame head and PTN Payload territory.In the Packet Transport Network each is jumped all again decapsulation and is encapsulated above-mentioned general physical layer frame, therefore, can utilize the check field of above-mentioned general physical layer frame, detects wrong bag at the node inbound port, and the mistake bag number of statistics inbound port reception.
When the section layer of Packet Transport Network adopted the ethernet physical layer medium to transmit, check field can adopt the FCS of IEEE 802.3 mac frames.As shown in Figure 7, be IEEE 802.3 mac frame form schematic diagrames, comprise lead code, SFD (Start-of-Frame Delimiter, starting-frame delimiter), destination address, source address, length, data and FCS, wherein, being used for of lead code makes receiving terminal carry out synchronously and carry out the preparation of receiving data frames, comprises the binary one of 7 bytes, the code at " 0 " interval, and namely 1010...10 is totally 56; SFD is that length is 10101011 binary sequences of 1 byte, represents the actual beginning of a frame, so that receiving terminal is to first location of actual frame; Destination address represents that frame prepares to mail to the address of point of destination, and totally 6 bytes can be single access (representing single station), multiple access (representing one group of station) or full address (representing all stations on the local area network (LAN)); Source address represents to send the address at this frame station, totally 6 bytes; Length is totally 2 bytes, the byte number of expression data; FCS is the verification sequence of 4 byte longs.Transmitting terminal is according to the destination address in the above-mentioned mac frame, source address, length and data process CRC (Cyclical RedundancyCheck, CRC) algorithm calculates FCS, receiving terminal carries out identical calculating with the destination address, source address, length and the data that receive, inconsistent with the FCS that receives such as result of calculation, then show error code has occured.
Step 503, Node B is calculated physical layer frame head and PTN Payload by checking algorithm, and relatively whether this result of calculation is identical with check field, if result of calculation is identical with check field, then execution in step 504; If result of calculation is not identical with check field, then show error of transmission has occured execution in step 505.
Step 504, Node B judge that packet is not wrong bag.
Step 505, Node B judge that packet is wrong bag.
Step 506, Node B are in the setting-up time section, and the packet that statistics node inbound port receives is total to wrap number with mistake, obtains the port error rate of link according to this packet sum and this mistake bag number.
Particularly, in the setting-up time section, can add up packet sum M and wrong bag number N that the inbound port of the receiving node (such as the Node B among Fig. 4) of link (such as the node A among Fig. 4 to the link of Node B) receives, then N/M is the port error rate of above-mentioned link.
The magnitude relationship of the port error rate that step 507, Node B are relatively obtained and default port error rate thresholding when the port error rate during greater than default port error rate thresholding, illustrates that there is the performance degradation problem in the relevant link of LSP, and then execution in step 508; When the port error rate was not more than default port error rate thresholding, then execution in step 506.
Step 508, Node B triggers APS, and C sends error code announcement indication to downstream node, with the advisory downstream node C of Packet Transport Network performance degradation.
Need to prove that embodiment of the invention method can be adjusted each step order according to actual needs.
The embodiment of the invention utilizes check field to detect error code; obtain the port error rate of link; and with this port error rate and the comparison of predefined error rate thresholding; determine according to comparative result whether trigger protection is switched; improved the network performance monitoring precision; can effectively detect the situation that there is performance degradation in network, improve survivability.
The embodiment of the invention provides method and the plurality of application scenes of protection switching of packet transport network in the above-described embodiment, and correspondingly, the embodiment of the invention also provides device and the system of the method for using above-mentioned protection switching of packet transport network.
As shown in Figure 8, the apparatus structure schematic diagram for a kind of protection switching of packet transport network in the embodiment of the invention comprises:
Receiver module 810 is used at the packet of node inbound port reception from Packet Transport Network.
Detection module 820 is connected with receiver module 810, and whether the packet that receives for the physical layer information detection receiver module 810 according to packet is wrong bag.
Above-mentioned detection module 820, concrete being used for carried out decapsulation to described packet, obtains the general physical layer frame of Packet Transport Network, and the general physical layer frame of described Packet Transport Network comprises physical layer frame head, PTN Payload and check field; By checking algorithm described physical layer frame head and PTN Payload are calculated, and whether more described result of calculation is identical with described check field, when described result of calculation is identical with described check field, judges that described packet is not wrong bag; In described result of calculation and described check field not simultaneously, do not judge that described packet is wrong bag.
The various physical layer media that use when the general physical layer frame of above-mentioned Packet Transport Network is applicable to adopt the Packet Transport Network delivery section layer of MPLS-TP.Wherein, the physical layer frame head includes the fields such as destination address and source address; The check field that is used for Error detection is positioned at the last of the general physical layer frame form of Packet Transport Network, is calculated by checking algorithm by physical layer frame head and PTN Payload territory.In the Packet Transport Network each is jumped all again decapsulation and is encapsulated above-mentioned general physical layer frame, therefore, can utilize the check field of above-mentioned general physical layer frame, detects wrong bag at the node inbound port, and the mistake bag number of statistics inbound port reception.
When the section layer of Packet Transport Network adopted the ethernet physical layer medium to transmit, check field can adopt the FCS of IEEE 802.3 mac frames.IEEE 802.3 mac frames comprise lead code, SFD, destination address, source address, length, data and FCS, wherein, being used for of lead code makes receiving terminal carry out synchronously and carry out the preparation of receiving data frames, comprise the binary one of 7 bytes, the code at " 0 " interval, namely 1010...10 is totally 56; SFD is that length is 10101011 binary sequences of 1 byte, represents the actual beginning of a frame, so that receiving terminal is to first location of actual frame; Destination address represents that frame prepares to mail to the address of point of destination, and totally 6 bytes can be single access (representing single station), multiple access (representing one group of station) or full address (representing all stations on the local area network (LAN)); Source address represents to send the address at this frame station, totally 6 bytes; Length is totally 2 bytes, the byte number of expression data; FCS is the verification sequence of 4 byte longs.Transmitting terminal calculates FCS according to the destination address in the above-mentioned mac frame, source address, length and data through the CRC algorithm, receiving terminal carries out identical calculating with the destination address, source address, length and the data that receive, inconsistent with the FCS that receives such as result of calculation, then show error code has occured.
Acquisition module 830 is connected with detection module 820, is used for obtaining according to the testing result of detection module 820 the port error rate of link.
Above-mentioned acquisition module 830, is added up packet sum and wrong bag number that described node inbound port receives at concrete being used in the setting-up time section; According to described packet sum and the described wrong port error rate that number obtains link of wrapping.
Comparison module 840 is connected with acquisition module 830, is used for the relatively relation of the acquisition module 830 port error rate of obtaining and the port error rate thresholding of presetting.
Protection module 850 is connected with comparison module 840, is used for when comparison module 840 is judged the port error rates greater than default port error rate thresholding, and trigger protection is switched.
When the described port error rate during greater than described default port error rate thresholding, above-mentioned protection module 850 also is used for sending to downstream node error code announcement indication, with the described downstream node of the advisory of described Packet Transport Network performance degradation.
The embodiment of the invention utilizes check field to detect error code; obtain the port error rate of link; and with this port error rate and the comparison of predefined error rate thresholding; determine according to comparative result whether trigger protection is switched; improved the network performance monitoring precision; can effectively detect the situation that there is performance degradation in network, improve survivability.
As shown in Figure 9, be the system configuration schematic diagram of a kind of protection switching of packet transport network in the embodiment of the invention, comprise transmitting terminal 910 and receiving terminal 920, wherein,
Transmitting terminal 910 is used for sending packet to receiving terminal 920.
Above-mentioned transmitting terminal 910 also is used for the general physical frame of Packet Transport Network is encapsulated, and obtains corresponding packet.
Receiving terminal 920 be used for to receive the packet from transmitting terminal 910, and whether be wrong bag, and obtain the port error rate of link according to described testing result if detecting described packet according to the physical layer information of described packet; The relation of the more described port error rate of obtaining and default port error rate thresholding, when the described port error rate during greater than described default port error rate thresholding, trigger protection is switched.
Particularly, above-mentioned receiving terminal 920 is used for packet is carried out decapsulation, obtains the general physical layer frame of Packet Transport Network corresponding to this packet, and the general physical layer frame of described Packet Transport Network comprises physical layer frame head, PTNPayload and check field; By checking algorithm described physical layer frame head and PTN Payload are calculated, and whether more described result of calculation is identical with described check field, when described result of calculation is identical with described check field, judges that described packet is not wrong bag; In described result of calculation and described check field not simultaneously, do not judge that described packet is wrong bag.
The various physical layer media that use when the general physical layer frame of above-mentioned Packet Transport Network is applicable to adopt the Packet Transport Network delivery section layer of MPLS-TP.Wherein, the physical layer frame head includes the fields such as destination address and source address; The check field that is used for Error detection is positioned at the last of the general physical layer frame form of Packet Transport Network, is calculated by checking algorithm by physical layer frame head and PTN Payload territory.In the Packet Transport Network each is jumped all again decapsulation and is encapsulated above-mentioned general physical layer frame, therefore, can utilize the check field of above-mentioned general physical layer frame, detects wrong bag at the node inbound port, and the mistake bag number of statistics inbound port reception.
When the section layer of Packet Transport Network adopted the ethernet physical layer medium to transmit, check field can adopt the FCS of IEEE 802.3 mac frames.IEEE 802.3 mac frames comprise lead code, SFD, destination address, source address, length, data and FCS, wherein, being used for of lead code makes receiving terminal carry out synchronously and carry out the preparation of receiving data frames, comprise the binary one of 7 bytes, the code at " 0 " interval, namely 1010...10 is totally 56; SFD is that length is 10101011 binary sequences of 1 byte, represents the actual beginning of a frame, so that receiving terminal is to first location of actual frame; Destination address represents that frame prepares to mail to the address of point of destination, and totally 6 bytes can be single access (representing single station), multiple access (representing one group of station) or full address (representing all stations on the local area network (LAN)); Source address represents to send the address at this frame station, totally 6 bytes; Length is totally 2 bytes, the byte number of expression data; FCS is the verification sequence of 4 byte longs.Transmitting terminal calculates FCS according to the destination address in the above-mentioned mac frame, source address, length and data through the CRC algorithm, receiving terminal carries out identical calculating with the destination address, source address, length and the data that receive, inconsistent with the FCS that receives such as result of calculation, then show error code has occured.
Subsequently, receiving terminal 920 is added up packet sum and wrong bag number that described node inbound port receives in the setting-up time section; According to described packet sum and the described wrong port error rate that number obtains link of wrapping.
Above-mentioned receiving terminal 920 also is used for sending to downstream node error code announcement indication, with the described downstream node of the advisory of described Packet Transport Network performance degradation.
The embodiment of the invention utilizes check field to detect error code; obtain the port error rate of link; and with this port error rate and the comparison of predefined error rate thresholding; determine according to comparative result whether trigger protection is switched; improved the network performance monitoring precision; can effectively detect the situation that there is performance degradation in network, improve survivability.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but the former is better execution mode in a lot of situation.Based on such understanding, the part that the technical scheme of the embodiment of the invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in the storage medium, comprise that some instructions are with so that a station terminal equipment (can be mobile phone, personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
The above only is preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from embodiment of the invention principle; can also make some improvements and modifications, these improvements and modifications also should be looked protection scope of the present invention.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of above-described embodiment can be integrated in one, and also can separate deployment; A module can be merged into, also a plurality of submodules can be further split into.
The invention described above embodiment sequence number does not represent the quality of embodiment just to description.
More than disclosed only be several specific embodiment of the present invention, still, the present invention is not limited thereto, the changes that any person skilled in the art can think of all should fall into protection scope of the present invention.

Claims (8)

1. the method for a protection switching of packet transport network is characterized in that, may further comprise the steps:
Receiving packet from Packet Transport Network at the node inbound port, whether be wrong bag, and obtain the port error rate of link according to described testing result if detecting described packet according to the physical layer information of described packet; Wherein, whether described physical layer information according to packet detects packet is wrong bag, specifically comprise: described packet is carried out decapsulation, obtain the general physical layer frame of Packet Transport Network, the general physical layer frame of described Packet Transport Network comprises physical layer frame head, Packet Transport Network payload PTN Payload and check field; By checking algorithm described physical layer frame head and PTN Payload are calculated, and whether more described result of calculation is identical with described check field, if described result of calculation is identical with described check field, judges that then described packet is not wrong bag; If described result of calculation is different from described check field, judge that then described packet is wrong bag;
The relation of the more described port error rate of obtaining and default port error rate thresholding, when the described port error rate during greater than described default port error rate thresholding, trigger protection is switched.
2. the method for claim 1 is characterized in that, describedly obtains the port error rate of link according to testing result, specifically comprises:
In the setting-up time section, add up packet sum and wrong bag number that described node inbound port receives;
With the ratio of described wrong bag number and described packet sum, as the port error rate of described link.
3. the method for claim 1 is characterized in that, when the described port error rate during greater than described default port error rate thresholding, also comprises:
Send to downstream node error code announcement indication, with the described downstream node of the advisory of described Packet Transport Network performance degradation.
4. the device of a protection switching of packet transport network is characterized in that, comprising:
Receiver module is used at the packet of node inbound port reception from Packet Transport Network;
Detection module is connected with described receiver module, is used for physical layer information according to described packet and detects whether the packet that described receiver module receives is wrong bag; Concrete being used for carried out decapsulation to described packet, obtains the general physical layer frame of Packet Transport Network, and the general physical layer frame of described Packet Transport Network comprises physical layer frame head, PTN Payload and check field; By checking algorithm described physical layer frame head and PTNPayload are calculated, and whether more described result of calculation is identical with described check field, when described result of calculation is identical with described check field, judges that described packet is not wrong bag; In described result of calculation and described check field not simultaneously, do not judge that described packet is wrong bag;
Acquisition module is connected with described detection module, is used for obtaining according to the testing result of described detection module the port error rate of link;
Comparison module is connected with described acquisition module, is used for the relation of more described acquisition module the port error rate of obtaining and the port error rate thresholding of presetting;
Protection module is connected with described comparison module, is used for when described comparison module is judged the described port error rate greater than described default port error rate thresholding, and trigger protection is switched.
5. device as claimed in claim 4 is characterized in that,
Described acquisition module, is added up packet sum and wrong bag number that described node inbound port receives at concrete being used in the setting-up time section; With the ratio of described wrong bag number and described packet sum, as the port error rate of described link.
6. device as claimed in claim 4 is characterized in that, when the described port error rate during greater than described default port error rate thresholding,
Described protection module also is used for sending to downstream node error code announcement indication, with the described downstream node of the advisory of described Packet Transport Network performance degradation.
7. the system of a protection switching of packet transport network comprises transmitting terminal and receiving terminal, it is characterized in that,
Described transmitting terminal is used for sending packet to described receiving terminal;
Described receiving terminal be used for to receive the packet from described transmitting terminal, and whether be wrong bag, and obtain the port error rate of link according to described testing result if detecting described packet according to the physical layer information of described packet; The relation of the more described port error rate of obtaining and default port error rate thresholding, when the described port error rate during greater than described default port error rate thresholding, trigger protection is switched; Also be used for described packet is carried out decapsulation, obtain the general physical layer frame of Packet Transport Network, the general physical layer frame of described Packet Transport Network comprises physical layer frame head, PTN Payload and check field; By checking algorithm described physical layer frame head and PTN Payload are calculated, and whether more described result of calculation is identical with described check field, when described result of calculation is identical with described check field, judges that described packet is not wrong bag; In described result of calculation and described check field not simultaneously, do not judge that described packet is wrong bag.
8. system as claimed in claim 7 is characterized in that,
Described transmitting terminal also is used for the general physical frame of Packet Transport Network is encapsulated, and obtains corresponding packet.
CN2009100933101A 2009-09-27 2009-09-27 Method, device and system for protection switching of packet transport network Active CN102035718B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100933101A CN102035718B (en) 2009-09-27 2009-09-27 Method, device and system for protection switching of packet transport network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100933101A CN102035718B (en) 2009-09-27 2009-09-27 Method, device and system for protection switching of packet transport network

Publications (2)

Publication Number Publication Date
CN102035718A CN102035718A (en) 2011-04-27
CN102035718B true CN102035718B (en) 2013-10-30

Family

ID=43888076

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100933101A Active CN102035718B (en) 2009-09-27 2009-09-27 Method, device and system for protection switching of packet transport network

Country Status (1)

Country Link
CN (1) CN102035718B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102868665B (en) * 2011-07-05 2016-07-27 华为软件技术有限公司 The method of data transmission and device
WO2015003299A1 (en) 2013-07-08 2015-01-15 华为技术有限公司 Bit error rate detecting method and network device
CN105281931B (en) * 2014-06-18 2019-11-29 南京中兴新软件有限责任公司 Bit error detection method, the apparatus and system of POTN
CN105227388B (en) * 2014-06-20 2018-11-20 中国电信股份有限公司 The method and system of bearing bed link monitoring
CN105591772A (en) * 2014-10-22 2016-05-18 中国移动通信集团公司 Data transmission method and apparatus
CN105897451B (en) * 2015-01-26 2019-12-06 中国移动通信集团内蒙古有限公司 OTN dispatching system and fault processing method
CN106856453A (en) * 2015-12-09 2017-06-16 中国电信股份有限公司 Route switching method and system and routing device
CN106961412B (en) * 2016-01-11 2020-04-24 中国移动通信集团公司 Message conversion method, device and system
CN107342809B (en) * 2016-05-03 2020-11-06 中国移动通信集团四川有限公司 Service performance monitoring and fault positioning method and device
CN107888345B (en) * 2016-09-29 2022-02-18 中兴通讯股份有限公司 Information transmission method and equipment
CN109547279B (en) * 2017-09-22 2023-04-07 中兴通讯股份有限公司 Method and system for processing signal degradation fault
CN110011819B (en) * 2018-01-04 2022-04-19 中兴通讯股份有限公司 Method, device, equipment and system for generating SD (secure digital) alarm information
CN112039771A (en) * 2019-06-03 2020-12-04 华为技术有限公司 Processing method and device based on link error code
CN110995479B (en) * 2019-11-21 2022-08-02 四川九洲空管科技有限责任公司 Method for improving fault tolerance of non-homologous clock GTX communication link

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1400774A (en) * 2002-08-22 2003-03-05 陈鸣 Interconnection network end-to-end performance monitoring method and its system
CN1533081A (en) * 2003-01-31 2004-09-29 �����˹-��̩�����޼����Ϲ�˾ Method and device for monitoring data packet safety transmission
CN101420722A (en) * 2007-10-22 2009-04-29 中兴通讯股份有限公司 Method for implementing switch control of PHS phone

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1400774A (en) * 2002-08-22 2003-03-05 陈鸣 Interconnection network end-to-end performance monitoring method and its system
CN1533081A (en) * 2003-01-31 2004-09-29 �����˹-��̩�����޼����Ϲ�˾ Method and device for monitoring data packet safety transmission
CN101420722A (en) * 2007-10-22 2009-04-29 中兴通讯股份有限公司 Method for implementing switch control of PHS phone

Also Published As

Publication number Publication date
CN102035718A (en) 2011-04-27

Similar Documents

Publication Publication Date Title
CN102035718B (en) Method, device and system for protection switching of packet transport network
JP4573663B2 (en) Data relay device, data relay method, data transmission / reception device, and data communication system
CN100382517C (en) Network QoS test method and system
CN101682459B (en) Response to OTUK-BDI for ITN interfaces to restore bidirectional communications
US8837936B2 (en) Method and system for dynamic selection of transport path with lowest latency
CN102006218B (en) Tunnel protection method and device
JP6603816B2 (en) Method and apparatus for transmitting frame data between near-end device and far-end device
CN102215127A (en) Signal degrade processing method, device and node equipment
WO2015192518A1 (en) Error detection method, apparatus and system for potn
CN101340346A (en) Ring control method and apparatus of Ethernet looped network system
US9007228B2 (en) Transmission system using dying gasp
US20210273826A1 (en) Communication method and communications apparatus
CN102025437B (en) Method, system and device for protection switching
US7974187B2 (en) Data transmission
CN101997747B (en) Method and device for announcing fault LSP information
JP5113124B2 (en) Fault monitoring system in packet network
EP2661015A1 (en) Method and system for detecting signal degrade (sd) alarm
WO2008095390A1 (en) An equipment for detecting the line fault of the pseudo wire emulation and a method thereof
CN102843260B (en) Channel protection method of looped network system with IP RAN (Internet Protocol-Radio Access Network) forward compatible with MSTP (Multi-Service Transport Platform)
CN102804651B (en) Connected by pseudo-line during network interruption and keep time division multiplexing
CN104270264A (en) Protection system and method for connecting STM-1 in PTN device to link
CN101453352B (en) Path failure detection method and apparatus
CN105656668B (en) Ether business transmitting method and device
CN103516540B (en) A kind of looped network protection switching device and method
JP2005268889A (en) Transmission path switching system and operating method of the transmission path switching system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant