Optical transmission unit frame generates method and apparatus and transmits the clock grade method and apparatus
Technical field
The present invention relates to optical transport network (OTN; Optical Transport Network) frame generates the information transmission technique that reaches based on frame in; Relate in particular to the generation method and apparatus of optical transmission unit in a kind of optical transport network (OTU, Optical Transport Unit) frame and utilize the OTU frame to transmit the method and apparatus of clock quality class information.
Background technology
In the communication network, unified signal source of clock is to guarantee that the clock frequency of all switching nodes and phase place all are controlled in the predetermined range of tolerable variance, make whole digital streams of each switching node realize that correct and effective ground exchanges and reaches the purpose of Network Synchronization.If clock signal is inconsistent, will cause data in buffer, to produce overflowing of information bit and get sky, cause the slip damage of digital stream, cause data to make mistakes.It is thus clear that the clock source is the most basic assurance of data transmit-receive, its importance is self-evident in transmission network.
Along with the development of optical communication technique, transmission rate increases rapidly, and transmission range is more and more longer, so the status of optical communication technique in the wire transmission network is more and more outstanding.In transmission rate 10G and the transmission equipment more than the 10G, generally adopted OTN.But different with synchronous digital hierarchy (SDH, Synchronous Digital Hierarchy) is, does not define the credit rating of clock among the OTN, and when SDH is professional when docking with OTN, the clock quality grade can't be transmitted.And after the network element in OTN receives the OTN business; Though can recover the professional clock of OTN; But can't confirm the clock quality grade that OTN is professional, this is unfavorable for the clock selecting of OTN network element, the transmission of clock quality grade and the protection recovery of clock etc. very much.For example: OTN network element B follows the tracks of the clock of OTN network element A, OTN network element A transmit carry be used for clock synchronized information Frame to OTN network element B, OTN network element B extracts said clock information and is elected to be the clock source of oneself; And as OTN network element B during to OTN network element A transferring data frames; Owing to do not carry the clock quality class information of clock in the Frame; OTN network element A can be elected to be the clock source with the clock that OTN network element B transmits, thereby causes the appearance of clock loop, and this will certainly cause the damage of losing of mass data.
Summary of the invention
In view of this, main purpose of the present invention is to provide the generation method and apparatus of the optical transmission unit frame in a kind of optical transport network, under the situation that does not change frame structure, inserts the clock quality class information, has made full use of the expense of OTU frame.
Another main purpose of the present invention is to provide a kind of method and apparatus that utilizes aforementioned optical transmission unit frame to transmit the clock quality class information; For the OTN network node provides the clock information of clear and definite credit rating, make each network node in the OTN network make things convenient for clock selecting and protection to recover.
For achieving the above object, technical scheme of the present invention is achieved in that
The generation method of optical transmission unit frame in a kind of optical transport network may further comprise the steps:
The clock and the credit rating information thereof in A, extraction optical transport network internal clock source;
B, be that said optical transmission unit frame to be generated is confirmed clock according to clock that extracts in the steps A and credit rating information thereof;
C, be inserted in the reserve bytes of said optical transmission unit frame to be generated after the corresponding credit rating of confirming among the step B of clock encoded.
Wherein, Confirm that for optical transmission unit frame to be generated clock is specially described in the step B: judge that the current data mapped mode is synchronization map or asynchronous mapping; If synchronization map, the synchronous base clock that then optical transport network is received is confirmed as the clock of optical transmission unit frame to be generated; If asynchronous transfer mode is then confirmed all available clocks in the said optical transport network, and wherein the highest grade of clock quality clock and that priority is the highest is confirmed as the clock of optical transmission unit frame to be generated.
Wherein, said reserve bytes is first row the 13 row of optical transmission unit frame and/or the byte of the 14 row.
Wherein, step C is specially: to the clock quality grade confirmed by ITU-T G.781 the coded system in the standard encode, the clock quality grade behind the coding is inserted in the byte of optical transmission unit frame to be generated first row the 13 row or the 14 row.
A kind of method of utilizing aforementioned optical transmission unit frame to transmit the clock quality class information may further comprise the steps:
A1, transmitting terminal send said optical transmission unit frame;
Clock quality class information is wherein resolved and extracted to B1, receiving terminal after receiving optical transmission unit frame.
A kind of device that utilizes aforementioned optical transmission unit frame to transmit the clock quality class information comprises:
Transmitting element is used to send said optical transmission unit frame;
Receive resolution unit, be used for receiving and resolving said optical transmission unit frame, to extract clock quality class information wherein.
The generating apparatus of optical transmission unit frame in a kind of optical transport network, it comprises:
Clock and credit rating information extraction unit thereof are used for extracting the clock and the credit rating information thereof of optical transport network;
Clock is confirmed the unit, is used for confirming clock at the clock information that extracts for optical transmission unit frame to be generated;
Clock quality grade encoder is used for the credit rating that the clock of confirming is corresponding and encodes; And
The optical transmission unit frame maker is used for the credit rating behind the coding is inserted into the reserve bytes of optical transmission unit frame to be generated and generates optical transmission unit frame.
Wherein, said clock confirms that the unit comprises:
Data map pattern discrimination module is used to judge that the current data mapped mode is synchronization map or asynchronous mapping;
The clock determination module, being used for according to different data map patterns is that optical transmission unit frame to be generated is confirmed corresponding clock.
The present invention carries the OTU frame of clock quality class information and generate, thereby has made full use of the data transmission resources of OTU frame through in the idle bytes of existing OTU frame first row, inserting corresponding clock credit rating information.In addition, the credit rating information of clock is transmitted, not only realized the complete intercommunication on clock of SDH network and OTN network through the transmission of OTU frame.And, owing to carried the clock quality grade in the OTN business, made things convenient for the clock selecting of each node in the OTN network, guaranteed the accuracy that data are recovered.Especially under the situation of asynchronous mapping, utilize the clock quality grade in the OTU frame that receives, can realize clock synchronization easily.In addition, receive and cooperate the clock switch algorithm after the clock quality grade, also can flexibility and reliability ground realize that the clock protection switches, improved network quality and the network protection function of OTN like this.
Description of drawings
Fig. 1 forms structural representation for the generating apparatus of OTU frame of the present invention;
Fig. 2 is the flow chart of the generation method of OTU frame of the present invention;
Fig. 3 forms structural representation for the device that the present invention utilizes the OTU frame to transmit the clock quality class information;
Fig. 4 transmits the flow chart of clock quality class information for the present invention utilizes the OTU frame.
Embodiment
Describe the present invention below in conjunction with accompanying drawing.
Fig. 1 forms structural representation for the generating apparatus of OTU frame of the present invention; As shown in Figure 1, the generating apparatus of OTU frame of the present invention comprises that clock and credit rating information extraction unit 10 thereof, clock confirm unit 11, clock quality grade encoder 12 and optical transmission unit frame maker 13.Wherein, clock and credit rating information extraction unit 10 thereof are used to extract clock and credit rating thereof; Clock confirms that unit 11 is used to OTU frame to be generated and confirms the clock quality grade; Clock quality grade encoder 12 is used for the clock quality grade is encoded; Optical transmission unit frame maker 13 is used to generate the OTU frame.
When the data map of OTN in self generates the OTU frame, clock and the credit rating information thereof at first extracted among these OTN by clock and credit rating information extraction unit 10 thereof.These clocks and credit rating information thereof include business clock and credit rating information and the OTN clock internal and the credit rating information thereof etc. of clock that the comprehensive timing system of Synchronization Network building (BITS, Building Integrated Timing System) provides and credit rating information thereof, transmitter side.Clock and credit rating information extraction unit 10 thereof read the clock information that BITS transmits, and the fixed overhead that transmits in passage or the BITS business through the clock quality class information that BITS provides obtains the clock quality class information.
When transmitter side had data to send to OTN, clock and credit rating information thereof that clock and credit rating information extraction unit thereof 10 extracted in the data were if transmitter side when to be SDH professional, reads out clock and credit rating information thereof from the S1 expense of SDH; If when transmitter side right and wrong SDH was professional, clock and credit rating information extraction unit 10 thereof read out clock and credit rating information thereof in the data according to concrete business; If extract the credit rating less than business clock, the credit rating that the clock of extraction then is set is that synchronizing quality is not known (QL-STU).The clock quality grade that the present invention adopts can be referring to associated description in the G.781 standard of International Telecommunications Union's telecommunication standards group (ITU-T).
Clock confirms that unit 11 is definite clock and the credit rating information of inserting thereof of current OTU frame to be mapped according to clock and credit rating information extraction unit 10 thereof.12 pairs of clocks of clock quality grade encoder confirm in the unit 11 that clock and the corresponding credit rating of this clock confirmed encode, and the mode of coding is referring to ITU-T clock and the credit rating coded system thereof in the standard G.781.It should be understood by one skilled in the art that ITU-T G.781 standard be known text, the present invention repeat no more wherein clock and credit rating coded system thereof.Clock and credit rating information thereof after optical transmission unit frame maker 13 is encoded clock quality grade encoder 12 are inserted in the reserve bytes of OTU frame to be generated, thereby generate the OTU frame.According to the regulation of ITU-T standard to the OTU frame structure; The byte that the 13 row and the 14 are listed as in OTU frame first row is a reserve bytes, so the clock quality grade (4bit) of optical transmission unit frame maker 13 after will encoding is inserted in described two reserve bytes.For example: but the clock quality grade after regulation will be encoded is inserted into preceding 4 in OTU frame first row the 13 row byte; Like this; After network element receives the parsing of OTU frame in OTN, read preceding 4 the credit rating information that are clock in the OTU frame in first row the 13 row byte.
As shown in Figure 1, clock confirms that unit 11 includes data map pattern discrimination module 110 and clock determination module 111.Wherein, data map pattern discrimination module 110 is used to judge that the pattern that current data is mapped as the OTU frame is synchronization map or asynchronous mapping; It is that OTU frame to be generated is confirmed corresponding clock that clock determination module 111 is used for according to mapped mode.If it is synchronization map that data map pattern discrimination module 110 is judged current mapped mode; Then clock determination module 111 is in the OTN clock source of clock and 10 acquisitions of credit rating information extraction unit thereof; The synchronous base clock that carries in the synchronous service data that OTN is received is confirmed as the clock of OTU frame to be generated, and the credit rating of this clock is promptly confirmed as the clock quality grade that desire is inserted in the OTU frame to be generated.If it is asynchronous mapping that data map pattern discrimination module 110 is judged current mapped mode; Then clock determination module 111 confirms that according to clock and credit rating information extraction unit 10 definite clock source informations thereof all can be used as the clock of OTU frame clock among the OTN; Confirm the credit rating and the priority of these available clocks simultaneously; And will be wherein the highest grade of clock quality clock and that priority is also the highest confirm as the clock of OTU frame to be generated, the credit rating that this clock is corresponding is promptly confirmed as the clock quality grade of being taken in the OTU frame to be generated.Here, the clock source among the OTN comprises ground clock in clock and the OTN of the clock that BITS provides, professional transmitter side.The priority of clock is generally by default, and the standard of setting can be referring to the clock priority standard in the SDH system.
Need to prove; When carrying out the transmission of OTU frame in the OTN between network element; For avoiding the appearance of clock loop, when the synchronous OTN network element of following the tracks of to quilt when the synchronous OTN network element of following the tracks of sent the OTU frame, the clock quality class information that inserts in the OTU frame reserve bytes was not for being used as synchronous (QL-DNU).
Fig. 2 is the flow chart of the generation method of OTU frame of the present invention, and as shown in Figure 2, this method may further comprise the steps:
Step 201: when desire generates the OTU frame, the clock and the credit rating information thereof of OTN extraction self internal clock source.These clocks and credit rating information thereof comprise business clock and credit rating information and the OTN clock internal and the credit rating information thereof etc. of clock that BITS provides and credit rating information thereof, transmitter side.
Step 202: judge the data map pattern of current OTU frame, if synchronization mapping mode then gets into step 203, if the asynchronous mapping pattern gets into step 204.
Step 203: the synchronous base clock that carries in the synchronous service data that OTN is received is confirmed as the clock of optical transmission unit frame to be generated; The credit rating of this clock is promptly confirmed as the clock quality grade that desire is inserted in the OTU frame to be generated, execution in step 205.
Step 204: confirm that at first all can be used as the clock of OTU frame clock among the OTN; Confirm the credit rating and the priority of these available clocks simultaneously; And will be wherein the highest grade of clock quality clock and that priority is also the highest confirm as the clock of OTU frame to be generated, the credit rating of this clock is promptly confirmed as the credit rating of being taken in the OTU frame to be generated.
Step 205: clock and credit rating information thereof to confirming in the step 203,204 are encoded, and adopt G.781 clock and the credit rating coded system thereof in the standard of ITU-T.
Step 206: clock and credit rating thereof behind the coding in the step 205 are inserted into the reserve bytes in the OTU frame to be generated, promptly are inserted in the byte of OTU frame first row the 13 row or the 14 row.
Fig. 3 forms structural representation for the device that the present invention utilizes the OTU frame to transmit the clock quality class information; As shown in Figure 3; The device that the present invention transmits the clock quality class information includes OTU frame transmitting element 31 and OTU frame reception resolution unit 32; Wherein, OTU frame transmitting element 31 is used to send the OTU frame that generates by Fig. 1, the said method of Fig. 2, is inserted with the clock quality class information in the byte of first row the 13 row or the 14 row in this OTU frame; The OTU frame receives resolution unit 32 and is used for receiving and resolving the OTU frame, extracts the clock quality class information that the OTU frame carries.It should be understood by one skilled in the art that above-mentioned OTU frame transmitting element 31, OTU frame receive resolution unit 32 and can be realized by existing transceiver one among the OTN.
Fig. 4 transmits the flow chart of clock quality class information for the present invention utilizes the OTU frame, and is as shown in Figure 4, and the present invention transmits the clock quality class information and is based on that the aforementioned OTU frame that is inserted with the clock quality class information carries out, and may further comprise the steps:
Step 401: after the OTU frame that is inserted with the clock quality class information generates, by the transmitting terminal transmission.
Step 402: receiving terminal is resolved it after receiving the OTU frame, and clock quality class information is wherein extracted in the relevant position in the byte of OTU frame first row the 13 row or the 14 row.
Owing to can carry out the transmission of clock quality class information through the OTU frame, make things convenient for OTN to realize clock synchronization.In conjunction with the clock switch algorithm, OTN can realize flexibly, reliably that clock protection switches, and has improved professional network quality and the network protection function of OTN.
The above is merely preferred embodiment of the present invention, is not to be used to limit protection scope of the present invention.