WO2010043128A1 - Method and device for transmitting and receiving mapping overheads - Google Patents

Method and device for transmitting and receiving mapping overheads Download PDF

Info

Publication number
WO2010043128A1
WO2010043128A1 PCT/CN2009/072776 CN2009072776W WO2010043128A1 WO 2010043128 A1 WO2010043128 A1 WO 2010043128A1 CN 2009072776 W CN2009072776 W CN 2009072776W WO 2010043128 A1 WO2010043128 A1 WO 2010043128A1
Authority
WO
WIPO (PCT)
Prior art keywords
value
frame period
customer data
data bytes
transmission frame
Prior art date
Application number
PCT/CN2009/072776
Other languages
French (fr)
Chinese (zh)
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 WO2010043128A1 publication Critical patent/WO2010043128A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/16Time-division multiplex systems in which the time allocation to individual channels within a transmission cycle is variable, e.g. to accommodate varying complexity of signals, to vary number of channels transmitted
    • H04J3/1605Fixed allocated frame structures
    • H04J3/1652Optical Transport Network [OTN]

Definitions

  • the present invention relates to the field of optical transmission networks, and in particular, to a method and apparatus for transmitting and receiving mapping overhead in an adaptive constant bit rate service.
  • the Digital Wrapper defines an optical network frame format. As shown in Figure 1, each frame is divided into 4 rows and 4080 columns. Header 16 is the overhead area, tail 256 is the FEC (Forward Error Correction) check area, and the middle 3808 is the payload area for placing customer data. 1 to 7 of the first row area is placed overhead frame alignment byte, 8 to 14 is placed an optical channel transport unit (the OTUk) Overhead bytes; 2 ⁇ 4 1 ⁇ I 4 lines as the optical channel data unit ( ODUk ) Overhead Byte; The 15th and 16th columns of the 1st to 4th rows place the Optical Channel Payload Unit (OPUk) overhead bytes.
  • OTUk optical channel transport unit
  • ODUk optical channel data unit
  • ODUk optical channel data unit
  • a unified optical network frame format is provided for 0PUk/0PUk-Xv, and a new Cbyte field is defined, which illustrates that the transmission mode of Cn is adjusted by Cn in steps of 1 and is transmitted in three frames. Large number of judgments.
  • the variation range of Cn is between Cn(min) and Cn(max).
  • it is the 0PUK frame format, in which the 1st to 3rd rows of the 16th column are used to place Cbyte bytes to indicate the number of customer data bytes Cn transmitted in a 0TN frame period.
  • a total of 3808 x 4 15232 bytes in the payload area, a total of 14 bits of length is required for indication, where Cbyte is allocated 3 bytes of space, which is sufficient to indicate the number of bytes of the client data.
  • Cbyte is allocated 3 bytes of space, which is sufficient to indicate the number of bytes of the client data.
  • each Cbyte is allocated 3 bytes of space, and X Cbyte bytes are transmitted in each frame, and X virtual concatenations are sold (VC0H).
  • the client data is stored in the data buffer (FIFO), and a Cn value is initialized, indicating that Cn customer data is to be read from F I F0 and placed in the optical network frame for transmission.
  • FIFO data buffer
  • the data in the FIFO will gradually decrease, which will trigger the subtraction operation.
  • the D bits in all Cbyte bytes will be inverted, the Cn value will be decremented by 1, and one less will be read from the FIFO.
  • Bytes of customer data If the client clock is faster than the system clock, the data in the FIFO will gradually increase, which will trigger the addition operation.
  • the I bit in all Cbyte bytes will be inverted, the Cn value will be increased by 1, and one more will be read from the FIFO. Bytes of customer data.
  • the new client flag (NCF) in the Cbyte byte will change from "01" to "10", and the last 22 bits in the Cbyte byte will indicate a new one. Cn value.
  • the step size is adjusted to 1.
  • the OPUk can provide a frequency offset compensation capability of plus or minus 65 ppm, and the OPUk- ⁇ can only provide a frequency offset compensation capability of one of the positive and negative 65 ppm X points. Therefore, adjusting with a step size of 1 does not provide the same adjustment capability for OPUk and OPUk- ⁇ .
  • the adjustment step size of Cn is limited to 1, not only the adjustment process is slow, but also can not provide the same adjustment capability for OPUk/OPUk-Xv; if it is necessary to transmit a changed Cn value, at least 4 frames are needed. In order to complete the adjustment, one frame transmission increase/decrease indication, and three frames transmit the changed Cn value. At the same time, it is necessary to cache the change of the amount of customer data during 4 frames, which increases the capacity of the cache.
  • the embodiments of the present invention can provide the same adjustment capability to OPUk and OPUk- ⁇ , and reliably transmit Cn and support flexible adjustment of Cn.
  • Embodiments of the present invention employ the following technical solutions:
  • a method for transmitting mapping overhead in an adaptive constant bit rate service comprising:
  • the above change value is placed into the optical channel payload unit overhead area; Generate an optical network frame and send it.
  • a method for receiving mapping overhead in an adaptive constant bit rate service comprising:
  • An apparatus for transmitting mapping overhead in an adaptive constant bit rate service comprising:
  • a change value obtaining module configured to acquire a change value of the number of customer data bytes received by the current transmission frame period relative to the reference value
  • mapping overhead insertion module configured to: put the foregoing change value into an optical channel payload unit overhead area; and generate a module, configured to generate an optical network frame and send the same.
  • An apparatus for receiving mapping overhead in an adaptive constant bit rate service comprising:
  • a parsing module configured to parse an optical network frame
  • a change value obtaining module configured to obtain, according to the parsing result of the optical network frame, a change value of the number of customer data bytes in the current frame period relative to the reference value
  • a quantity obtaining module configured to obtain, according to the change value and the reference value, the number of customer data bytes transmitted by the current frame.
  • the embodiment of the present invention solves the problem that the same adjustment capability cannot be provided for OPUk and OPUk-Xv by providing a method for transmitting the change value of the number of bytes of the client data in the 0TN frame of the adaptive constant bit rate (CBR) service. Slow question. By passing multiple customer data byte quantity changes in the 0TN frame, the receiving end makes a large number decision, and the correct number of customer data bytes is obtained, thereby improving the reliability of data transmission. By transmitting the above variation values in the 0TN frame, OPUk and OPUk-Xv are provided with the same adjustment capability, and any adjustment of the number of customer data bytes in a certain range can be completed.
  • CBR adaptive constant bit rate
  • FIG. 1 is a block diagram structure diagram defined in a digital encapsulation technique
  • 2 is a structural diagram of a frame format for transmitting Cbyte bytes in an optical network frame in the prior art
  • FIG. 3 is a structural diagram of a frame format for transmitting Cbyte bytes when two or more optical network frames are virtual concatenated in the prior art
  • FIG. 5 is a flowchart of a method for transmitting a mapping overhead according to Embodiment 1 of the present invention
  • FIG. 6 is a structural diagram of a Cbyte format defined in Embodiment 1 of the present invention.
  • FIG. 7 is a flowchart of a method for receiving a mapping overhead according to Embodiment 1 of the present invention.
  • FIG. 8 is a block diagram of an apparatus for transmitting mapping overhead according to Embodiment 1 of the present invention.
  • FIG. 9 is a block diagram of an apparatus for receiving a mapping overhead according to Embodiment 1 of the present invention.
  • FIG. 10 is a flowchart of a method for transmitting a mapping overhead according to Embodiment 2 of the present invention.
  • FIG. 11 is a structural diagram of a Cbyte format defined in Embodiment 2 of the present invention.
  • FIG. 12 is a schematic diagram of a Cbyte generation state according to Embodiment 2 of the present invention.
  • FIG. 13 is a flowchart of a method for receiving a mapping overhead according to Embodiment 2 of the present invention.
  • FIG. 14 is a block diagram of an apparatus for transmitting mapping overhead according to Embodiment 2 of the present invention.
  • FIG. 15 is a block diagram of an apparatus for receiving a mapping overhead according to Embodiment 2 of the present invention.
  • the embodiments of the present invention can provide the same adjustment capability to OPUk and OPUk-Xv, and reliably transmit Cn and support flexible adjustment of Cn.
  • the embodiment of the invention provides a method and device for transmitting and receiving mapping overhead in an adaptive CBR service.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • the method for sending mapping overhead includes:
  • the current transmission frame period and the number of customer data bytes received in the previous transmission frame period are obtained, and the number of customer data bytes received in the previous transmission frame period is used as a reference value.
  • the client data can be obtained by buffering the received customer data by performing the client clock in a 0TN frame period. Counting, obtaining the current transmission frame period and the number of customer data bytes received in the previous transmission frame period, taking the number of customer data bytes received in the previous transmission frame period as a reference value, and acquiring the current transmission frame period. The change in the number of customer data bytes relative to the reference value.
  • the client signal is placed in the payload area of the frame.
  • the number of bytes Cn of the client data in a 0 frame period can be obtained by counting the client clock in a 0 frame period.
  • the current transmission frame period and the number of customer data bytes received in the previous transmission frame period can be obtained according to the change in the number of client data bytes in the cache, and the client received in the previous transmission frame period
  • the number of data bytes is used as a reference value to obtain the change value of the number of customer data bytes received in the current transmission frame period with respect to the reference value.
  • the number of bytes in the current frame period is compared with the number of bytes in the previous frame period to obtain a change in the number of customer data bytes received in the current transmission frame period relative to the reference value.
  • Record the number of customer data bytes Cn ( cur ) in the current 0TN frame period and the number of customer data bytes Cn ( pre ) in the previous 0TN frame period, according to ⁇ Cn Cn ( cur ) - Cn ( pre )
  • the variation range of Cn can be calculated according to the system clock of 0TN, the customer clock, and the frequencies of both. If the ⁇ Cn transmitted in the optical network frame exceeds the variation range of Cn, then Cn ( pre ) Leave it unchanged and set A Cn to 0.
  • the 15th and 16th columns of the 1st to 4th rows are the optical channel payload unit (OPUk) overhead area.
  • the OPUk overhead area includes a PSI-Payload S compture Ident if ier and a Cbyte byte indicating the number of client signal bytes Cn transmitted in a 0TN frame period.
  • the OPUk also includes a virtual concatenation overhead (VC0H).
  • a Cby te format is defined in the embodiment of the present invention.
  • the Cbyte consists of a new client flag, a flip indicator bit, and a message transfer bit.
  • the new client flag is used to indicate whether a new client signal or a normal client signal is transmitted.
  • the flip indicator bit is used to indicate whether the number of client signal bytes transmitted by the current frame is reduced or increased compared to the previous frame.
  • ⁇ Cn is the value of the number of customer data bytes received in the current transmission frame period relative to the reference value. As shown in Figure 6.
  • the Cbyte is a space of a total of 24 bits occupying three bytes.
  • Cbyte enters the AI S (Alarm Indication S igna l) alarm state to indicate this abnormal condition. If the client signal is received normally, then Cbyte exits the AIS alarm state and generates a Cbyte byte according to the above rules 1 ⁇ 4.
  • the adjustment step size of Cn is no longer limited to 1, and OPUk and OPUk-Xv have the same adjustment capability.
  • the method for receiving mapping overhead includes:
  • the receiving end parses the optical network frame sent by the sending end.
  • the 3rd to 9th bits in the Cbyte byte are the flip indication bits, and the last 15 bits represent an A Cn value every 5 bits.
  • the Cn value or ⁇ Cn value of the current frame can be derived from the overhead bytes of the optical network frame.
  • the ADJ bit flip in the Cbyte is detected, more than one I bit of the three I bits is inverted, and if more than one A Cn of the three A Cn transmitted are equal, it indicates that the Cn of the next frame is added, and the next The frame Cn value is the current Cn value plus A Cn. If the Cn value is within the normal range, then A legal Cn value that stores the Cn value.
  • the variation range of Cn can be calculated according to the system clock of 0TN, the client clock, and the frequencies of the two. If the Cn calculated according to the A Cn transmitted in the optical network frame is outside the variation range, Then it indicates that the transmitted A Cn has an error, the Cn value is illegal, and the Cn value is no longer stored.
  • the ADJ bit flip in the Cbyte is detected, more than one D bit of the three D bits is inverted, and more than one A Cn of the three A Cn transmitted is equal, indicating that the Cn of the next frame is subtracted, and the next The frame Cn value is the current Cn value minus A Cn. If the Cn value is within the normal range, it is a legal Cn value, and the Cn value is stored.
  • the receiving end can obtain the Cn value from the received optical network frame, and obtain the byte number value of the client signal transmitted in one optical network frame.
  • the data of the payload area of the optical network frame is restored according to the ⁇ -algorithm to the client signal data stored in the current frame, and the client signal clock is smoothly recovered, and the client signal is transmitted. If a Cn loss condition occurs, the data and clock are recovered according to the most recently received normal Cn value.
  • the embodiment of the present invention solves the problem that the same adjustment capability cannot be provided for OPUk and OPUk-Xv, and the adjustment speed is slow, by providing a method for transmitting the change value of the number of bytes of the client data in the 0TN frame of the adaptive CBR service.
  • the receiving end By transmitting multiple customer data byte number changes in the 0TN frame, the receiving end makes a large number decision, and the correct number of customer data bytes is obtained, thereby improving the reliability of data transmission.
  • the same adjustment capability is provided for OPUk and OPUk-Xv, and any adjustment of the number of customer data bytes in a certain range can be completed.
  • An embodiment of the present invention provides an apparatus for transmitting a mapping overhead. As shown in FIG. 8, the apparatus for transmitting mapping overhead includes:
  • the change value obtaining module 801 is configured to obtain a change value of the number of customer data bytes received by the current transmission frame period with respect to the reference value.
  • the change value obtaining module 801 includes:
  • the buffer unit 804 is configured to obtain the current transmission frame period and the number of customer data bytes received in the previous transmission frame period, and use the number of customer data bytes received in the previous transmission frame period as a reference value.
  • the buffer unit 804 can specifically count the received client data, count the client clock in a 0TN frame period, and obtain the current transmission frame period and the number of customer data bytes received in the previous transmission frame period, and transmit the previous one.
  • the number of customer data bytes received in the frame period is used as a reference value.
  • the client signal is placed in the payload area of the frame.
  • the number of bytes Cn of the client data in a 0TN frame period can be obtained.
  • the comparing unit 805 is configured to compare the number of bytes in the current frame period with the number of bytes in the previous frame period to obtain a change value of the number of customer data bytes received in the current transmission frame period with respect to the reference value.
  • the mapping overhead insertion module 802 is configured to place the change value into the optical channel payload unit overhead area.
  • the 15th and 16th columns of the 1st to 4th rows are the optical channel payload unit (OPUk) overhead area.
  • the PPU-Payload Structure Identifier is included in the OPUk overhead area.
  • a Cbyte byte used to indicate the number of client signal bytes Cn transmitted in a 0TN frame period.
  • the OPUk also includes a virtual concatenation overhead (VC0H).
  • a Cby t e format is defined in the embodiment of the present invention.
  • the Cbyte consists of a new client flag, a flip indicator bit, and a message transfer bit.
  • the new client flag is used to indicate whether a new client signal or a normal client signal is transmitted.
  • the flip indicator bit is used to indicate whether the number of client signal bytes transmitted by the current frame is reduced or increased compared to the previous frame, and the information transfer bit is used for transmission.
  • ⁇ Cn value where ⁇ Cn is the value of the number of customer data bytes received in the current transmission frame period relative to the reference value. As shown in Figure 6.
  • the Cbyte occupies a total of three bytes with a total of 24 bits of space.
  • CC is set to "10" and the next 22 bits are used to indicate the new Cn value.
  • Cbyte enters the AIS alarm state to indicate this abnormal condition. If the client signal is received normally, Cbyte exits the AIS alarm state and generates Cbyte bytes according to the above rules 1 ⁇ 4.
  • the generating module 803 is configured to generate an optical network frame and send the same.
  • the apparatus for receiving mapping overhead includes:
  • the parsing module 901 is configured to parse the optical network frame sent by the sending end.
  • the change value obtaining module 902 is configured to obtain, according to the parsing result of the optical network frame, a change value of the number of customer data bytes in the current frame period relative to the reference value.
  • the 3rd to 9th bits in the Cbyte byte are the flip indication bits, and the last 15 bits represent an ACn value every 5 bits.
  • the Cn value or ⁇ Cn value of the current frame can be derived from the overhead bytes of the optical network frame.
  • the quantity obtaining module 903 is configured to obtain the number of customer data bytes transmitted by the current frame according to the change value and the reference value.
  • the quantity acquisition module 903 includes:
  • the storage unit 904 is configured to: place the received client received in the last transmission frame period The number of data bytes, which is used as a reference value.
  • the change value A Cn of the current frame relative to the number of client signal bytes of the previous frame can be obtained according to the last 15 bits of the Cbyte, the last transmission frame period.
  • the number of customer data bytes received in is the reference value.
  • the calculating unit 905 is configured to subtract/add the change value to the number of customer data bytes received in the previous transmission frame period to obtain the number of customer data bytes transmitted by the current frame.
  • the ADJ bit flip in the Cbyte is detected, more than one I bit of the three I bits is inverted, and if more than one A Cn of the three A Cn transmitted are equal, it indicates that the Cn of the next frame is added, and the next The frame Cn value is the current Cn value plus A Cn. If the Cn value is within the normal range, it is a legal Cn value, and the Cn value is stored.
  • the variation range of Cn can be calculated according to the system clock of 0TN, the client clock, and the frequencies of the two. If the Cn calculated according to the A Cn transmitted in the optical network frame is outside the variation range, Then it indicates that the transmitted A Cn has an error, the Cn value is illegal, and the Cn value is no longer stored.
  • the ADJ bit flip in the Cbyte is detected, more than one D bit of the three D bits is inverted, and more than one A Cn of the three A Cn transmitted is equal, indicating that the Cn of the next frame is subtracted, and the next The frame Cn value is the current Cn value minus A Cn. If the Cn value is within the normal range, it is a legal Cn value, and the Cn value is stored.
  • the receiving end can obtain the Cn value from the received optical network frame, and obtain the byte quantity value of the client signal transmitted in one optical network frame.
  • the data of the optical network frame payload area is restored according to the ⁇ -algorithm to the client signal data stored in the current frame. Smoothly restore the customer signal clock and send the customer signal out. If a Cn loss condition occurs, the data and clock are recovered according to the most recently received normal Cn value.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the embodiment of the invention provides a method for transmitting mapping overhead.
  • the method for sending mapping overhead includes:
  • the client data can be counted in a frame period, and the number of bytes of the client data in the current 0TN frame period is obtained, and the received frame period is received according to the client clock and the local clock.
  • the client signal is placed in the payload area of the frame.
  • the customer clock is recovered from the customer signal via the phase locked loop according to the input customer signal, and the customer data is stored in F I F0.
  • the Cn value acquisition unit calculates the minimum value Cn (min) of Cn based on the customer signal clock and the local system clock, and transmits Cn (min) to the ⁇ Cn acquisition module with Cn (min) as a reference value.
  • the Cn value acquisition unit Because the client signal is asynchronous to the system clock, the amount of data in F I F0 changes. When the number of bytes in F I F0 changes, the Cn value acquisition unit generates different Cn values depending on the number of bytes in the FIFO.
  • the ⁇ Cn acquisition module calculates ⁇ Cn based on the Cn value obtained by the Cn acquisition unit:
  • the change value is placed into an optical channel payload unit overhead area.
  • the 15th and 16th columns of the 1st to 4th rows are the optical channel payload unit (OPUk) overhead area.
  • the OPUk overhead area includes a PSI-Payload Structure Identifier and a Cbyte byte indicating the number of client signal bytes Cn transmitted in a 0TN frame period.
  • the OPUk also includes a virtual concatenation overhead (VC0H).
  • a Cbyte format is defined in the embodiment of the present invention.
  • the Cbyte consists of a new customer logo and information transfer bits.
  • the new client flag is used to indicate whether a new client signal or a normal client signal is transmitted, and the information transfer bit is used to transmit an ACn value, wherein the ACn value is a change value of the number of customer data bytes received in the current transmission frame period relative to the reference value.
  • the Cbyte occupies a total of three bytes of a total of 24 bits of space.
  • the first four bits "CC" are new customer flags that indicate new customer signals or normal customer signals.
  • the CC bit is increased from two bits to four bits with respect to the first embodiment, and the increase of the CC bit is advantageous for enhancing the reliability of the Cbyte byte transmission.
  • the 5th and 6th bits are temporarily reserved.
  • the last 18 bits represent an ACn value every 6 bits.
  • the calculated ACn is placed in Cbyte bytes for transmission, and three identical ACn values are transmitted in one frame.
  • the receiving end can make a large number decision to determine the correct ACn value.
  • the Cbyte generation state machine can be used to determine the current Cn minimum value Cn (min). Determine the new service, or send the change value ACn of Cn to adjust the determined service.
  • the Cbyte generation state opportunity generates the corresponding Cbyte byte and places it into the optical network frame for transmission.
  • FIG 12 it is a schematic diagram of the Cbyte generation state.
  • the Cbyte generation state machine determines whether a new client signal is present or not based on the Cn minimum value fed by the Cn acquisition unit. If it is detected that the minimum value of Cn changes, then the service changes, new services appear, the Cbyte generation state machine is in the new client signal (NCF) state, and the Cn minimum value Cn (min) is placed in the generated Cbyte byte.
  • the new customer flag CC "1001"
  • the last 20 bits of the Cbyte carry the new Cn minimum Cn(min). In order to ensure the correct transmission of the Cn minimum value Cn ( min ), it is necessary to transmit multiple identical Cn ( min ).
  • the Cbyte generation state machine jumps to the control (CTRL) state, and the transmission control frame indicates that the change value ACn of Cn is transmitted from the next frame.
  • CTRL control
  • the Cbyte generation state machine After the control frame is transmitted, if the client signal is normal and no new client signal is generated, the Cbyte generation state machine enters the adjustment (ADJ) state and starts transmitting the change value ⁇ Cn of Cn.
  • the last 18 bits carry three identical ACn values, and each ACn value occupies 6 bits.
  • the Cbyte generation state machine enters the alarm (AIS) state, indicating an abnormal condition.
  • AIS alarm
  • the Cbyte byte is inserted into the Cbyte area of the 0PUK overhead.
  • the control signal is read based on the Cn minimum value Cn (min) transmitted in the control frame, and Cn (min) customer data is read.
  • the control signal is read according to the Cn change value ACn transmitted in the adjustment frame, and ACn customer data is read.
  • the read client data is mapped to the payload area in the 0TN frame.
  • the method for receiving mapping overhead includes:
  • the receiving end parses the optical network frame sent by the sending end. 1302: Acquire, according to the parsing result of the optical network frame, a change value of the number of customer data bytes in the current frame period relative to the reference value.
  • the frame is judged to be a control frame, indicating that ACn is carried in the next frame, and the next frame in the current frame
  • the number of bytes in the payload area is still Cn (min).
  • the frame is judged to be a control frame, indicating that ACn is carried in the next frame, and the word of the payload area is represented in the next frame of the current frame.
  • the number of sections is still Cn (min).
  • the ACn value is used to calculate the current Cn value:
  • the last obtained Cn value is within the normal range, then it indicates that the Cn value is correct, and the Cn value is stored.
  • the customer data and the client clock are recovered using the Cn value in the next frame of the current frame.
  • the data of the 0PUK payload area is restored according to the ⁇ _ algorithm to the client signal data of the Cn value stored in the current frame, and the client clock is smoothly recovered, and the client signal is sent out.
  • the embodiment of the present invention solves the problem that the same adjustment capability cannot be provided for OPUk and OPUk-Xv, and the adjustment speed is slow, by providing a method for transmitting the change value of the number of bytes of the client data in the 0TN frame of the adaptive CBR service.
  • the receiving end By transmitting multiple customer data byte number changes in the 0TN frame, the receiving end makes a large number decision, and the correct number of customer data bytes is obtained, thereby improving the reliability of data transmission.
  • the same adjustment capability is provided for OPUk and OPUk-Xv, and any adjustment of the number of customer data bytes in a certain range can be completed.
  • the embodiment of the invention further provides an apparatus for transmitting mapping overhead.
  • the apparatus for transmitting mapping overhead includes a change value acquisition module 1401, a mapping overhead insertion module 1402, and a generation module 1403.
  • the change value obtaining module 1401 is configured to obtain a change value of the number of customer data bytes received by the current transmission frame period with respect to the reference value.
  • the change value acquisition module 1401 includes a cache unit 1404 and a comparison unit 1405.
  • the buffer unit 1404 is configured to obtain a minimum value of the number of client data bytes received in the current transmission frame period and the number of customer data bytes received in the transmission frame period, and use the minimum value as a reference value.
  • the buffer unit 1404 can specifically count the received client data, count the client clock in a transmission frame period, and obtain the number of client data bytes received in the current transmission frame period and the client data bytes received in the transmission frame period.
  • the minimum value of the quantity which is used as the reference value.
  • the client signal is placed in the payload area of the frame.
  • the quantity acquisition unit calculates the minimum value Cn (min) of Cn according to the customer signal clock and the local system clock, and transmits Cn (mi n) to the change value acquisition module, and takes Cn (min) as a reference value.
  • the quantity acquisition unit Because the client signal is asynchronous to the system clock, the amount of data in F I F0 changes. When the number of bytes in F I F0 changes, the quantity acquisition unit generates a different Cn depending on the number of bytes in the FIFO. The quantity acquisition unit can also obtain the number of customer data bytes Cn of the current transmission frame period by counting the client clock in one transmission frame period.
  • the comparing unit 1405 is configured to compare the number of bytes in the current frame period with the minimum value of the number of customer data bytes received in the transmission frame period, to obtain the relative number of customer data bytes received in the current transmission frame period. The value of the change in the reference value.
  • the change value acquisition module calculates ⁇ Cn based on the Cn value obtained by the quantity acquisition unit:
  • the Cn value will change within a certain range, which can be generated by the Cn calculation formula corresponding to the service, or can be generated by the configuration. If the value of A Cn exceeds the range of Cn, the Cn adjustment is discarded and A Cn is set to 0.
  • the mapping overhead insertion module 1402 is configured to place the change value into the optical channel payload unit overhead area.
  • the 15th and 16th columns of the 1st to 4th rows are the optical channel payload unit (OPUk) overhead area.
  • the overhead area in the OPUk includes a PSI-Payload S compture Ident if ier and a Cbyte byte indicating the number of client signal bytes Cn transmitted in a 0TN frame period.
  • the OPUk also includes a virtual concatenation overhead (VC0H).
  • a Cbyte format is defined in the embodiment of the present invention.
  • the Cbyte consists of a new customer flag and information transfer bits.
  • the new client flag is used to indicate whether a new client signal or a normal client signal is transmitted.
  • the message transfer bit is used to transmit the A Cn value, where the A Cn value is the number of customer data bytes received in the current transmission frame period relative to the reference value. Change value.
  • the Cbyte occupies a total of 24 bits of space of three bytes.
  • the first four bits "CC" are new customer flags that indicate new customer signals or normal customer signals.
  • CC bit relative to the embodiment As one bit is increased from two bits to four bits, the increase in CC bits is advantageous for enhancing the reliability of Cbyte byte transmission.
  • the 5th and 6th bits are temporarily reserved.
  • the last 18 bits represent an ACn value every 6 bits.
  • the calculated ACn is placed in Cbyte bytes for transmission, and three identical ACn values are transmitted in one frame.
  • the receiving end can make a large number decision to determine the correct ACn value.
  • the Cbyte generation state machine can be used to determine whether the current Cn minimum value Cn (min) is used to determine a new service or to send a change value of Cn. ACn adjusts the determined service.
  • the Cbyte generation state opportunity generates the corresponding Cbyte bytes and places them into the optical network frame for transmission.
  • FIG 12 it is a schematic diagram of the Cbyte generation state.
  • the Cbyte generation state machine determines whether a new client signal is present or not based on the Cn minimum value fed by the Cn acquisition unit. If it is detected that the minimum value of Cn changes, then the service changes, new services appear, the Cbyte generation state machine is in the new client signal (NCF) state, and the Cn minimum value Cn (min) is placed in the generated Cbyte byte.
  • the new customer flag CC "1001"
  • the last 20 bits of Cbyte carry the new Cn minimum Cn( min ). In order to ensure the correct transmission of the Cn minimum value Cn ( min ), it is necessary to transmit multiple identical Cn ( min ).
  • the Cbyte generation state machine jumps to the control (CTRL) state, and the transmission control frame indicates that the change value ACn of Cn is transmitted from the next frame.
  • CTRL control
  • the Cbyte generation state machine After the control frame is transmitted, if the client signal is normal and no new client signal is generated, the Cbyte generation state machine enters the adjustment (ADJ) state and starts transmitting the change value ⁇ Cn of Cn.
  • the last 18 bits carry 3 identical ACn values, each ACn value Take up 6 bits.
  • the Cbyte generation state machine enters the alarm (AIS) state, indicating an abnormal condition.
  • AIS alarm
  • the Cbyte byte is inserted into the Cbyte area of the 0PUK overhead.
  • the control signal is read based on the Cn minimum value Cn (min) transmitted in the control frame, and Cn (min) customer data is read.
  • the control signal is read according to the Cn change value ACn transmitted in the adjustment frame, and ACn customer data is read.
  • the read client data is mapped to the payload area in the 0TN frame.
  • the generating module 1403 is configured to generate an optical network frame and send the same.
  • An embodiment of the present invention further provides an apparatus for receiving a mapping overhead.
  • the apparatus for receiving mapping overhead includes a parsing module 1501, a change value obtaining module 1502, and a quantity obtaining module 1503:
  • the parsing module 1501 is configured to parse the optical network frame.
  • the change value obtaining module 1502 is configured to obtain, according to the parsing result of the optical network frame, a change value of the number of customer data bytes in the current frame period relative to the reference value.
  • the frame is judged to be a control frame, indicating that ACn is carried in the next frame, and the next frame in the current frame
  • the number of bytes in the payload area is still Cn (min).
  • the quantity obtaining module 1503 is configured to obtain the number of customer data bytes transmitted by the current frame according to the change value and the reference value.
  • the quantity acquisition module 1503 includes a storage unit 1504 and a calculation unit 1505.
  • the storage unit 1504 is configured to set a minimum value of the number of customer data bytes received in the acquired transmission frame period, and use the minimum value as a reference value.
  • the calculating unit 1505 is configured to add the minimum value of the number of customer data bytes received in the transmission frame period to the change value to obtain the number of customer data bytes transmitted by the current frame.
  • the frame is judged to be a control frame, indicating that ACn is carried in the next frame, and the word of the payload area is represented in the next frame of the current frame.
  • the number of sections is still Cn (min).
  • the ACn value is used to calculate the current Cn value:
  • the customer data and the client clock are recovered using the Cn value in the next frame of the current frame.
  • the data of the 0PUK payload area is restored according to the ⁇ _ algorithm to the client signal data of the Cn value stored in the current frame, and the client clock is smoothly recovered to transmit the client signal.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Time-Division Multiplex Systems (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)
  • Communication Control (AREA)

Abstract

A method and a device for transmitting and receiving mapping overhead in an adaptive constant bit rate service are provided, in the field of optical transmission networks. They address the problem that the prior art can not provide the same adjustment ability for OPUk and OPUk-Xv and adjustment speed is slow. A method and a device for transmitting and receiving mapping overhead provide the same adjustment ability for OPUk and for OPUk-Xv, and perform arbitrary adjustment of the byte number value of user data within a definite range, through transmitting the variation value of the user data byte number in the OTN frame, conducting majority voting at the receiving end to obtain an accurate user data byte number, and performing flexible mapping adjustments. The technical solutions provided by the embodiments of this invention are suited for use in optical transmission network systems.

Description

发送和接收映射开销的方法、 装置  Method and device for transmitting and receiving mapping overhead
技术领域 Technical field
本发明涉及光传输网络领域, 尤其涉及一种在自适应恒定比特率业务中 发送和接收映射开销的方法、 装置。  The present invention relates to the field of optical transmission networks, and in particular, to a method and apparatus for transmitting and receiving mapping overhead in an adaptive constant bit rate service.
背景技术 Background technique
数字包封技术(Digital Wrapper )定义了一种光网络帧格式, 如图 1所 示,将每帧划分为 4行 4080列。头部 16列为开销区,尾部 256列为 FEC (Forward Error Correction, 前向纠错)校验区, 中间 3808 列为净荷区, 用来放置客 户数据。 开销区的第一行的第 1 ~ 7列放置帧定位字节, 第 8 ~ 14列放置光信 道传输单元( OTUk )开销字节; 第 2 ~ 4行 1 ~ I4列为光信道数据单元( ODUk ) 开销字节; 第 1 ~4行的第 15、 16列放置光信道净荷单元(OPUk)开销字节。 当 X ( X^2 ) 个的 0TN帧虚级联时, 0PUk-Xv ( X个虚级联的 OPUk ) 中新增虚 级联开销 (VC0H)。 The Digital Wrapper defines an optical network frame format. As shown in Figure 1, each frame is divided into 4 rows and 4080 columns. Header 16 is the overhead area, tail 256 is the FEC (Forward Error Correction) check area, and the middle 3808 is the payload area for placing customer data. 1 to 7 of the first row area is placed overhead frame alignment byte, 8 to 14 is placed an optical channel transport unit (the OTUk) Overhead bytes; 2 ~ 4 1 ~ I 4 lines as the optical channel data unit ( ODUk ) Overhead Byte; The 15th and 16th columns of the 1st to 4th rows place the Optical Channel Payload Unit (OPUk) overhead bytes. When X (X^2) 0TN frames are virtual concatenated, a new virtual concatenation overhead (VC0H) is added to 0PUk-Xv (X virtual concatenated OPUks).
在自适应 CBR (Constants Bit Rate 恒定比特率)业务的映射方法中, 如何传送客户信号在 0TN帧周期内传送的字节数量 Cn已经成为影响可靠性方 面的重要因素。  In the mapping method of adaptive CBR (Constants Bit Rate) service, how to transmit the number of bytes Cn transmitted by the client signal in the 0TN frame period has become an important factor affecting the reliability.
在现有技术中, 为 0PUk/0PUk-Xv提供了统一的光网络帧格式, 定义了新 的 Cbyte字段, 说明了 Cn的传输方式一以步长为 1进行 Cn的调整并以三帧 传输做大数判决。 Cn的变化范围在 Cn(min)和 Cn(max)之间。 如图 2所示, 为 0PUK帧格式,其中第 16列的 1 ~ 3行用来放置 Cbyte字节,用来指示一个 0TN 帧周期中传送的客户数据字节数量 Cn。 在净荷区空间一共有 3808 x 4=15232 个字节, 一共需要 14比特的长度进行指示, 这里为 Cbyte分配 3个字节的空 间, 足以指示客户数据的字节数量。 如图 3所示, 为 OPUk-Χν帧格式, 为每 个 Cbyte分配 3个字节的空间, 在每帧中传送 X个 Cbyte字节, X个虚级联开 销 (VC0H)。  In the prior art, a unified optical network frame format is provided for 0PUk/0PUk-Xv, and a new Cbyte field is defined, which illustrates that the transmission mode of Cn is adjusted by Cn in steps of 1 and is transmitted in three frames. Large number of judgments. The variation range of Cn is between Cn(min) and Cn(max). As shown in Figure 2, it is the 0PUK frame format, in which the 1st to 3rd rows of the 16th column are used to place Cbyte bytes to indicate the number of customer data bytes Cn transmitted in a 0TN frame period. A total of 3808 x 4 = 15232 bytes in the payload area, a total of 14 bits of length is required for indication, where Cbyte is allocated 3 bytes of space, which is sufficient to indicate the number of bytes of the client data. As shown in Figure 3, for the OPUk-Χν frame format, each Cbyte is allocated 3 bytes of space, and X Cbyte bytes are transmitted in each frame, and X virtual concatenations are sold (VC0H).
如果需要传输多个不同的 Cn,至少需要连续传输 3个相同的 Cn才能改变 Cn的值,传输新的 Cn。收端对 3帧做大数判决以决定正确的 Cn值。其中 Cbyte 的定义如图 4所示。 If you need to transfer multiple different Cn, you need to transfer at least 3 identical Cn continuously to change. The value of Cn, transmitting a new Cn. The receiving end makes a large decision on 3 frames to determine the correct Cn value. The definition of Cbyte is shown in Figure 4.
在光网络帧的发送端, 客户数据存储在数据緩存器(FIFO ) 中, 并初始 化一个 Cn值,表示要从 F I F0读取 Cn个客户数据中放在光网络帧中进行传输。  At the transmitting end of the optical network frame, the client data is stored in the data buffer (FIFO), and a Cn value is initialized, indicating that Cn customer data is to be read from F I F0 and placed in the optical network frame for transmission.
如果客户时钟相对系统时钟变慢, 那么 FIFO中的数据将会逐渐减少, 这 将触发减操作, 所有的 Cbyte字节中的 D比特翻转, Cn值将减 1 , 将从 FIFO 中少读取一个字节的客户数据。 如果客户时钟相对系统时钟变快, 那么 FIFO 中的数据将会逐渐增多, 这将触发加操作, 所有的 Cbyte字节中的 I 比特翻 转, Cn值将加 1 , 将从 FIFO中多读取一个字节的客户数据。  If the client clock slows down relative to the system clock, the data in the FIFO will gradually decrease, which will trigger the subtraction operation. The D bits in all Cbyte bytes will be inverted, the Cn value will be decremented by 1, and one less will be read from the FIFO. Bytes of customer data. If the client clock is faster than the system clock, the data in the FIFO will gradually increase, which will trigger the addition operation. The I bit in all Cbyte bytes will be inverted, the Cn value will be increased by 1, and one more will be read from the FIFO. Bytes of customer data.
如果检测到新的客户信号, 则 Cbyte字节中的新客户标志 ( New Cl ient Flag , NCF )将从 "01" 变为 "10" , 同时 Cbyte字节中的后 22个比特将指示 一个新的 Cn值。  If a new client signal is detected, the new client flag (NCF) in the Cbyte byte will change from "01" to "10", and the last 22 bits in the Cbyte byte will indicate a new one. Cn value.
现有技术中以步长为 1进行调整, 对于 OPUk能提供正负 65ppm的频偏补 偿能力, 而对于 OPUk-Χν只能提供正负 65ppm的 X分之一的频偏补偿能力。 因此以步长为 1进行调整并不能为 OPUk和 OPUk-Χν提供相同的调整能力。  In the prior art, the step size is adjusted to 1. The OPUk can provide a frequency offset compensation capability of plus or minus 65 ppm, and the OPUk-Χν can only provide a frequency offset compensation capability of one of the positive and negative 65 ppm X points. Therefore, adjusting with a step size of 1 does not provide the same adjustment capability for OPUk and OPUk-Χν.
这样在现有技术中, Cn 的调整步长限制为 1 , 不仅调整过程緩慢, 而且 不能够为 OPUk/OPUk-Xv提供相同的调整能力;如果需要传输一个改变后的 Cn 值, 至少需要 4帧才能完成调整, 一帧传输增 /减指示, 3帧传输改变后的 Cn 值。 同时需要在 4帧期间緩存客户数据量的改变, 增大了緩存的容量。  Thus, in the prior art, the adjustment step size of Cn is limited to 1, not only the adjustment process is slow, but also can not provide the same adjustment capability for OPUk/OPUk-Xv; if it is necessary to transmit a changed Cn value, at least 4 frames are needed. In order to complete the adjustment, one frame transmission increase/decrease indication, and three frames transmit the changed Cn value. At the same time, it is necessary to cache the change of the amount of customer data during 4 frames, which increases the capacity of the cache.
发明内容 Summary of the invention
本发明实施例能够给 OPUk和 OPUk-Χν提供相同的调整能力, 同时可靠的 传输 Cn并支持 Cn的灵活调整。 本发明的实施例采用以下技术方案:  The embodiments of the present invention can provide the same adjustment capability to OPUk and OPUk-Χν, and reliably transmit Cn and support flexible adjustment of Cn. Embodiments of the present invention employ the following technical solutions:
一种在自适应恒定比特率业务中发送映射开销的方法, 包括:  A method for transmitting mapping overhead in an adaptive constant bit rate service, comprising:
获取当前传送帧周期所接收的客户数据字节数量相对于参考值的变化 值;  Obtaining a change value of the number of customer data bytes received in the current transmission frame period with respect to the reference value;
将上述变化值放置到光信道净荷单元开销区; 生成光网络帧并进行发送。 The above change value is placed into the optical channel payload unit overhead area; Generate an optical network frame and send it.
一种在自适应恒定比特率业务中接收映射开销的方法, 包括:  A method for receiving mapping overhead in an adaptive constant bit rate service, comprising:
解析光网络帧;  Parsing the optical network frame;
根据对上述光网络帧的解析结果, 获取当前帧周期内的客户数据字节数 量相对于参考值的变化值;  Obtaining a change value of the number of customer data bytes in the current frame period relative to the reference value according to the parsing result of the optical network frame;
根据上述变化值和上述参考值获取当前帧所传送的客户数据字节数量。 一种在自适应恒定比特率业务中发送映射开销的装置, 包括:  Obtaining the number of customer data bytes transmitted by the current frame according to the above change value and the above reference value. An apparatus for transmitting mapping overhead in an adaptive constant bit rate service, comprising:
变化值获取模块, 用于获取当前传送帧周期所接收的客户数据字节数量 相对于参考值的变化值;  a change value obtaining module, configured to acquire a change value of the number of customer data bytes received by the current transmission frame period relative to the reference value;
映射开销插入模块, 用于将上述变化值放置到光信道净荷单元开销区; 生成模块, 用于生成光网络帧并进行发送。  And a mapping overhead insertion module, configured to: put the foregoing change value into an optical channel payload unit overhead area; and generate a module, configured to generate an optical network frame and send the same.
一种在自适应恒定比特率业务中接收映射开销的装置, 包括:  An apparatus for receiving mapping overhead in an adaptive constant bit rate service, comprising:
解析模块, 用于解析光网络帧;  a parsing module, configured to parse an optical network frame;
变化值获取模块, 用于根据对上述光网络帧的解析结果, 获取当前帧周 期内的客户数据字节数量相对于参考值的变化值;  a change value obtaining module, configured to obtain, according to the parsing result of the optical network frame, a change value of the number of customer data bytes in the current frame period relative to the reference value;
数量获取模块, 用于根据上述变化值和上述参考值获取当前帧所传送的 客户数据字节数量。  And a quantity obtaining module, configured to obtain, according to the change value and the reference value, the number of customer data bytes transmitted by the current frame.
本发明实施例通过提供一种在自适应恒定比特率( CBR )业务的 0TN帧中 传递客户数据字节数量变化值的方法, 解决了不能为 OPUk和 OPUk-Xv提供相 同的调整能力, 调整速度慢的问题。 通过在 0TN 帧中传递多个客户数据字节 数量变化值, 接收端进行大数判决, 得出正确的客户数据字节数量, 提高数 据传输的可靠性。 通过在 0TN帧中传递上述变化值, 为 OPUk和 OPUk-Xv提供 了相同的调整能力, 并且可以完成一定范围内客户数据字节数量值的任意调 整。  The embodiment of the present invention solves the problem that the same adjustment capability cannot be provided for OPUk and OPUk-Xv by providing a method for transmitting the change value of the number of bytes of the client data in the 0TN frame of the adaptive constant bit rate (CBR) service. Slow question. By passing multiple customer data byte quantity changes in the 0TN frame, the receiving end makes a large number decision, and the correct number of customer data bytes is obtained, thereby improving the reliability of data transmission. By transmitting the above variation values in the 0TN frame, OPUk and OPUk-Xv are provided with the same adjustment capability, and any adjustment of the number of customer data bytes in a certain range can be completed.
附图说明 DRAWINGS
图 1为数字包封技术中定义的帧格式结构图; 图 2为现有技术中在光网络帧中传递 Cbyte字节的帧格式结构图; 图 3为现有技术中两个以上光网络帧虚级联时传递 Cbyte字节的帧格式 结构图; 1 is a block diagram structure diagram defined in a digital encapsulation technique; 2 is a structural diagram of a frame format for transmitting Cbyte bytes in an optical network frame in the prior art; FIG. 3 is a structural diagram of a frame format for transmitting Cbyte bytes when two or more optical network frames are virtual concatenated in the prior art;
图 4为现有技术中定义的 Cbyte字节结构图;  4 is a Cbyte byte structure diagram defined in the prior art;
图 5为本发明实施例一中传送映射开销的方法流程图;  FIG. 5 is a flowchart of a method for transmitting a mapping overhead according to Embodiment 1 of the present invention;
图 6为本发明实施例一中定义的 Cbyte格式结构图;  6 is a structural diagram of a Cbyte format defined in Embodiment 1 of the present invention;
图 7为本发明实施例一中接收映射开销的方法流程图;  FIG. 7 is a flowchart of a method for receiving a mapping overhead according to Embodiment 1 of the present invention;
图 8为本发明实施例一中传送映射开销的装置框图;  8 is a block diagram of an apparatus for transmitting mapping overhead according to Embodiment 1 of the present invention;
图 9为本发明实施例一中接收映射开销的装置框图;  9 is a block diagram of an apparatus for receiving a mapping overhead according to Embodiment 1 of the present invention;
图 10为本发明实施例二中传送映射开销的方法流程图;  FIG. 10 is a flowchart of a method for transmitting a mapping overhead according to Embodiment 2 of the present invention;
图 11为本发明实施例二中定义的 Cbyte格式结构图;  11 is a structural diagram of a Cbyte format defined in Embodiment 2 of the present invention;
图 12为本发明实施例二中所述 Cbyte生成状态示意图;  FIG. 12 is a schematic diagram of a Cbyte generation state according to Embodiment 2 of the present invention;
图 1 3为本发明实施例二中接收映射开销的方法流程图;  FIG. 13 is a flowchart of a method for receiving a mapping overhead according to Embodiment 2 of the present invention;
图 14为本发明实施例二中传送映射开销的装置框图;  14 is a block diagram of an apparatus for transmitting mapping overhead according to Embodiment 2 of the present invention;
图 15为本发明实施例二中接收映射开销的装置框图。  FIG. 15 is a block diagram of an apparatus for receiving a mapping overhead according to Embodiment 2 of the present invention.
具体实施方式 detailed description
本发明实施例能够给 OPUk和 OPUk-Xv提供相同的调整能力, 同时可靠的 传输 Cn并支持 Cn的灵活调整。 本发明实施例提出一种在自适应 CBR业务中 发送、 接收映射开销的方法、 装置。  The embodiments of the present invention can provide the same adjustment capability to OPUk and OPUk-Xv, and reliably transmit Cn and support flexible adjustment of Cn. The embodiment of the invention provides a method and device for transmitting and receiving mapping overhead in an adaptive CBR service.
实施例一:  Embodiment 1:
如图 5所示, 该发送映射开销的方法包括:  As shown in FIG. 5, the method for sending mapping overhead includes:
501、 获取当前传送帧周期所接收的客户数据字节数量相对于参考值的变 化值。  501. Obtain a change value of the number of customer data bytes received in the current transmission frame period with respect to a reference value.
获取当前传送帧周期以及上一个传送帧周期中所接收的客户数据字节数 量, 将上一个传送帧周期中所接收的客户数据字节数量作为参考值。 具体地, 可以通过緩存接收到的客户数据, 通过在一个 0TN 帧周期内对客户时钟进行 计数, 获取当前传送帧周期以及上一个传送帧周期中所接收的客户数据字节 数量, 将上一个传送帧周期中所接收的客户数据字节数量作为参考值, 获取 当前传送帧周期所接收的客户数据字节数量相对于参考值的变化值。 在 0ΤΝ 帧中, 客户信号放置在帧中的净荷区, 在发送端, 通过在一个 0ΤΝ 帧周期内 对客户时钟进行计数, 就可以得到客户数据在一个 0ΤΝ 帧周期内的字节数量 Cn。 除通过时钟计数外, 还可以根据緩存中客户数据字节数量的改变获取当 前传送帧周期以及上一个传送帧周期中所接收的客户数据字节数量, 将上一 个传送帧周期中所接收的客户数据字节数量作为参考值, 获取当前传送帧周 期所接收的客户数据字节数量相对于参考值的变化值。 The current transmission frame period and the number of customer data bytes received in the previous transmission frame period are obtained, and the number of customer data bytes received in the previous transmission frame period is used as a reference value. Specifically, the client data can be obtained by buffering the received customer data by performing the client clock in a 0TN frame period. Counting, obtaining the current transmission frame period and the number of customer data bytes received in the previous transmission frame period, taking the number of customer data bytes received in the previous transmission frame period as a reference value, and acquiring the current transmission frame period. The change in the number of customer data bytes relative to the reference value. In the 0ΤΝ frame, the client signal is placed in the payload area of the frame. At the transmitting end, the number of bytes Cn of the client data in a 0 frame period can be obtained by counting the client clock in a 0 frame period. In addition to counting by the clock, the current transmission frame period and the number of customer data bytes received in the previous transmission frame period can be obtained according to the change in the number of client data bytes in the cache, and the client received in the previous transmission frame period The number of data bytes is used as a reference value to obtain the change value of the number of customer data bytes received in the current transmission frame period with respect to the reference value.
对当前帧周期内的所述字节数量与上一个帧周期内的所述字节数量进行 比较, 得到当前传送帧周期内所接收的客户数据字节数量相对于参考值的变 化值。 分别记录当前 0TN 帧周期内的客户数据字节数量 Cn ( cur )和上一个 0TN帧周期内的客户数据字节数量 Cn ( pre ),根据 Δ Cn= Cn ( cur ) - Cn ( pre ), 求出当前帧周期内所接收的客户数据字节数量相对于前一帧的变化值 Δ Cn。 在不同的业务类型中, 根据 0TN 的系统时钟、 客户时钟以及两者的频率可以 计算得出 Cn的变化范围,如果光网络帧中传送的 Δ Cn超出了 Cn的变化范围, 那么 Cn ( pre )保持不变, 将 A Cn置为 0。  The number of bytes in the current frame period is compared with the number of bytes in the previous frame period to obtain a change in the number of customer data bytes received in the current transmission frame period relative to the reference value. Record the number of customer data bytes Cn ( cur ) in the current 0TN frame period and the number of customer data bytes Cn ( pre ) in the previous 0TN frame period, according to Δ Cn = Cn ( cur ) - Cn ( pre ) The change value Δ Cn of the number of customer data bytes received in the current frame period relative to the previous frame. In different service types, the variation range of Cn can be calculated according to the system clock of 0TN, the customer clock, and the frequencies of both. If the Δ Cn transmitted in the optical network frame exceeds the variation range of Cn, then Cn ( pre ) Leave it unchanged and set A Cn to 0.
502、 将该变化值放置到光信道净荷单元开销区。  502. Place the change value into an optical channel payload unit overhead area.
在 0TN帧中, 第 1 ~ 4行的第 15、 16列为光信道净荷单元( OPUk )开销 区。 OPUk开销区中包括净荷结构标识 ( PSI-Payload S tructure Ident if ier ) 和用来指示一个 0TN帧周期中传送的客户信号字节数量 Cn的 Cbyte字节。 当 两个以上帧进行虚级联时, OPUk中还包括虚级联开销 ( VC0H )。  In the 0TN frame, the 15th and 16th columns of the 1st to 4th rows are the optical channel payload unit (OPUk) overhead area. The OPUk overhead area includes a PSI-Payload S tructure Ident if ier and a Cbyte byte indicating the number of client signal bytes Cn transmitted in a 0TN frame period. When two or more frames are virtual concatenated, the OPUk also includes a virtual concatenation overhead (VC0H).
为了在光网络帧中传递 Δ Cn值,本发明实施例中定义了一种 Cby t e格式。 该 Cbyte由新客户标志、 翻转指示比特和信息传递比特组成。 新客户标志用 来指示传送的是新的客户信号还是正常客户信号, 翻转指示比特用来指示当 前帧所传送的客户信号字节数量相比较上一帧是减少还是增加, 信息传递比 特用来传送 Δ Cn值, 其中 Δ Cn值为当前传送帧周期所接收的客户数据字节数 量相对于参考值的变化值。 如图 6所示。 该 Cbyte—共占用三个字节共 24比 特的空间。 前两个比特 "CC" 是新客户标志, 指示新的客户信号或是正常客 户信号; 当 CC= "01" 时, 表示该帧传送的是 ACn值, 第 3到 9个比特放置 翻转指示比特, 包括一个 "ADJ" 比特、 3个 " 比特和 3个 "D" 比特, 后 15个比特每 5个比特携带一个 Cn的变化值 ACn; 当 CC= "10" 时, 表示该帧 传输的是 Cn值, 后 22个比特携带一个新的 Cn值。 In order to transmit the Δ Cn value in the optical network frame, a Cby te format is defined in the embodiment of the present invention. The Cbyte consists of a new client flag, a flip indicator bit, and a message transfer bit. The new client flag is used to indicate whether a new client signal or a normal client signal is transmitted. The flip indicator bit is used to indicate whether the number of client signal bytes transmitted by the current frame is reduced or increased compared to the previous frame. Specifically used to transmit the Δ Cn value, where Δ Cn is the value of the number of customer data bytes received in the current transmission frame period relative to the reference value. As shown in Figure 6. The Cbyte is a space of a total of 24 bits occupying three bytes. The first two bits "CC" are new customer flags indicating a new client signal or a normal client signal; when CC = "01", it indicates that the frame transmits ACn values, and the third to nine bits place flip indication bits. , including an "ADJ" bit, 3 "bits and 3 "D" bits, the last 15 bits carry a Cn change value ACn every 5 bits; when CC = "10", it means that the frame is transmitted The Cn value, the last 22 bits carry a new Cn value.
当 CC= "01" 时,若 "ADJ" 比特翻转且 " 比特翻转, 则为 Cn加操作, 剩余 15比特每 5个比特携带一个 Cn变化值 ACn, 表示下一帧的客户信号字 节数量为当前帧的客户信号字节数量加上 ACn; 若 "ADJ" 比特翻转且 "D" 比特翻转, 则为 Cn减操作, 剩余 15比特每 5个比特携带一个 Cn变化值 ACn, 表示下一帧的客户信号字节数量为当前帧的客户信号字节数量减去 ACn。  When CC = "01", if the "ADJ" bit is inverted and "bit flips, then Cn is added. The remaining 15 bits carry a Cn change value ACn every 5 bits, indicating that the number of client signal bytes in the next frame is The number of client signal bytes of the current frame plus ACn; if the "ADJ" bit is inverted and the "D" bit is inverted, it is Cn minus operation, and the remaining 15 bits carry a Cn change value ACn every 5 bits, indicating the next frame The number of client signal bytes is the number of client signal bytes for the current frame minus ACn.
当 CC= "01" 时, 则表明为新的客户信号 Cn,剩余的 22比特携带 Cn值, 表示当前帧传送的客户信号字节数量。  When CC = "01", it indicates a new client signal Cn, and the remaining 22 bits carry a Cn value indicating the number of client signal bytes transmitted in the current frame.
得出当前帧周期内的客户字节数量相对于前一帧的客户字节数量的变化 值 ACn之后, 需要根据 Cn值和 ACn值生成相应的 Cbyte字节, 将 Cbyte字 节下插到 OPUk开销的 Cbyte区域中。  After obtaining the change value ACn of the number of client bytes in the current frame period relative to the number of client bytes in the previous frame, it is necessary to generate a corresponding Cbyte byte according to the Cn value and the ACn value, and insert the Cbyte byte into the OPUk overhead. In the Cbyte area.
Cbyte字节的生成规则如下:  The rules for generating Cbyte bytes are as follows:
1、 当 ACn=0时, 即当前帧的 Cn值相对于上一帧的 Cn值没有变化, 这时 CC设置为 "01", 后面 22比特均为 0。  1. When ACn=0, that is, the Cn value of the current frame does not change with respect to the Cn value of the previous frame. At this time, CC is set to "01", and the latter 22 bits are all 0.
2、 当 ACn>0时, 即当前帧的 Cn值相对于上一帧的 Cn值增加了, 当前帧 的 Cbyte中的 CC设置为 "01", ADJ比特和 3个 I比翻转表示 Cn要进行加操 作, 下一帧 Cn值是当前的 Cn值加 ACn。  2. When ACn>0, that is, the Cn value of the current frame is increased relative to the Cn value of the previous frame, the CC in the Cbyte of the current frame is set to "01", and the ADJ bit and the three I ratios are inverted to indicate that Cn is to be performed. Add operation, the next frame Cn value is the current Cn value plus ACn.
3、 当 ACn<0时, 即当前帧的 Cn值相对于上一帧的 Cn值减少了, 当前帧 的 Cbyte中的 CC设置为 "01", ADJ比特和 D比特翻转表示 Cn要进行减操作, 下一帧 Cn值是当前的 Cn值减 ACn。 4、 如果当检测到新客户信号时, 产生新的 Cn值, 这时 CC设置为 "10" , 后面 22比特都用来表示新的 Cn值。 3. When ACn<0, that is, the Cn value of the current frame is reduced relative to the Cn value of the previous frame, the CC in the Cbyte of the current frame is set to "01", and the ADJ bit and the D bit are inverted to indicate that Cn is to be subtracted. The next frame Cn value is the current Cn value minus ACn. 4. If a new Cn value is generated when a new client signal is detected, then CC is set to "10" and the next 22 bits are used to indicate the new Cn value.
5、 当客户信号出现异常时, Cbyte进入 AI S ( Alarm Indi cat ion S igna l ) 告警状态, 指示这种异常情况。 如果客户信号接收正常, 那么 Cbyte退出 AIS 告警状态, 按照上述规则 1 ~ 4生成 Cbyte字节。  5. When the customer signal is abnormal, Cbyte enters the AI S (Alarm Indication S igna l) alarm state to indicate this abnormal condition. If the client signal is received normally, then Cbyte exits the AIS alarm state and generates a Cbyte byte according to the above rules 1 ~ 4.
503、 生成光网络帧并进行发送。 由于在该光网络帧中传送的是 Cn 的变 化值 Δ Cn, 这样 Cn的调整步长不再限制为 1 , 并且 OPUk和 OPUk-Xv具有相同 的调整能力。  503. Generate an optical network frame and send it. Since the variation value Δ Cn of Cn is transmitted in the optical network frame, the adjustment step size of Cn is no longer limited to 1, and OPUk and OPUk-Xv have the same adjustment capability.
如图 7所示, 该接收映射开销的方法包括:  As shown in FIG. 7, the method for receiving mapping overhead includes:
701、 解析光网络帧。  701. Analyze an optical network frame.
接收端解析发送端发送来的光网络帧。  The receiving end parses the optical network frame sent by the sending end.
702、 根据对所述光网络帧的解析结果, 获取当前帧周期内的客户数据字 节数量相对于参考值的变化值。  702. Obtain a change value of the number of client data bytes in the current frame period relative to the reference value according to the parsing result of the optical network frame.
接收端解析光网络帧, 如果 Cbyte 字节中前两个比特 CC = "10" , 那么 Cbyte字节中后 22比特指示的就是当前帧的 Cn值。  The receiving end parses the optical network frame. If the first two bits in the Cbyte byte CC = "10", then the last 22 bits in the Cbyte byte indicate the Cn value of the current frame.
如果 Cbyte字节中前两个比特 CC = "01" , 那么 Cbyte字节中第 3到第 9 个比特为翻转指示比特, 后 15个比特每 5个比特表示一个 A Cn值。  If the first two bits in the Cbyte byte CC = "01", then the 3rd to 9th bits in the Cbyte byte are the flip indication bits, and the last 15 bits represent an A Cn value every 5 bits.
依靠这一规则, 就可以从光网络帧的开销字节中得出当前帧的 Cn值或 Δ Cn值。  By relying on this rule, the Cn value or Δ Cn value of the current frame can be derived from the overhead bytes of the optical network frame.
703、 根据该变化值和参考值获取当前帧传送的客户数据字节数量。  703. Acquire, according to the change value and the reference value, the number of client data bytes transmitted by the current frame.
当 Cbyte字节中前两个比特 CC = "01" 时, 根据 Cbyte的后 15个比特就 可以得出当前帧相对于上一帧客户信号字节数量的改变值 A Cn, 上一个传送 帧周期中所接收的客户数据字节数量为参考值。  When the first two bits of the Cbyte byte CC = "01", according to the last 15 bits of the Cbyte, the change value A Cn of the current frame relative to the number of client signal bytes of the previous frame can be obtained, the last transmission frame period The number of customer data bytes received in is the reference value.
如果检测到 Cbyte中的 ADJ比特翻转, 3个 I比特中的大于一个 I比特翻 转, 且传输的 3个 A Cn中大于一个 A Cn相等时, 表明下一帧的 Cn进行了加 操作, 下一帧 Cn值为当前 Cn值加上 A Cn。 如果该 Cn值在正常范围内, 则为 合法的 Cn值, 存储该 Cn值。 在不同的业务类型中, 根据 0TN的系统时钟、 客户时钟以及两者的频率可以计算得出 Cn的变化范围, 如果根据光网络帧中 传送的 A Cn计算得出的 Cn位于这个变化范围以外, 那么就说明传送的 A Cn 出现了差错, 该 Cn值是非法的, 不再存储该 Cn值。 If the ADJ bit flip in the Cbyte is detected, more than one I bit of the three I bits is inverted, and if more than one A Cn of the three A Cn transmitted are equal, it indicates that the Cn of the next frame is added, and the next The frame Cn value is the current Cn value plus A Cn. If the Cn value is within the normal range, then A legal Cn value that stores the Cn value. In different service types, the variation range of Cn can be calculated according to the system clock of 0TN, the client clock, and the frequencies of the two. If the Cn calculated according to the A Cn transmitted in the optical network frame is outside the variation range, Then it indicates that the transmitted A Cn has an error, the Cn value is illegal, and the Cn value is no longer stored.
如果检测到 Cbyte中的 ADJ比特翻转, 3个 D比特中的大于一个 D比特翻 转, 且传输的 3个 A Cn中大于一个 A Cn相等时, 表明下一帧的 Cn进行了减 操作, 下一帧 Cn值为当前 Cn值减去 A Cn。 如果该 Cn值在正常范围内, 则为 合法的 Cn值, 存储该 Cn值。  If the ADJ bit flip in the Cbyte is detected, more than one D bit of the three D bits is inverted, and more than one A Cn of the three A Cn transmitted is equal, indicating that the Cn of the next frame is subtracted, and the next The frame Cn value is the current Cn value minus A Cn. If the Cn value is within the normal range, it is a legal Cn value, and the Cn value is stored.
如果连续 3帧检测到 Cbyte处于 AI S告警状态, 那么接收端也进入 AI S 告警状态;如果连续 2帧以上检测到 Cby t e字节中的 Δ Cn或 Cn超出正常范围, 那么判断接收端进入 Cn丟失状态; 如果连续 2帧以上检测到 Cbyte字节中 CC=10" , 那么判断接收端进入 Cn丟失状态; 如果检测到单个的 CC= "10" , 或 者 CC= "01 " 并且 A Cn处于正常范围之内, 那么判断接收端接收正常, 接收 该 Cn值或 Δ Cn值, 并存储该 Cn值。  If the Cbyte is detected in the AIS alarm state for 3 consecutive frames, the receiving end also enters the AIS alarm state; if more than 2 frames detect that ΔCn or Cn in the Cby te byte is out of the normal range, then the receiving end enters Cn. Lost state; if CC=10" in Cbyte bytes is detected for more than 2 consecutive frames, then the receiver is judged to enter the Cn lost state; if a single CC = "10" is detected, or CC = "01" and A Cn is normal Within the range, then it is judged that the receiving end receives the normal, receives the Cn value or the ΔCn value, and stores the Cn value.
通过上述过程接收端就可以从接收到的光网络帧中得到 Cn值, 得到一个 光网络帧中传送的客户信号的字节数量值。 利用该 Cn值在当前帧的下一帧, 将光网络帧净荷区的数据根据∑ - 算法还原出当前帧存储的客户信号数据, 平滑恢复客户信号时钟, 将客户信号发送出去。 如果发生 Cn丟失情况, 则按 照最近收到的正常 Cn值恢复数据和时钟。  Through the above process, the receiving end can obtain the Cn value from the received optical network frame, and obtain the byte number value of the client signal transmitted in one optical network frame. Using the Cn value in the next frame of the current frame, the data of the payload area of the optical network frame is restored according to the ∑-algorithm to the client signal data stored in the current frame, and the client signal clock is smoothly recovered, and the client signal is transmitted. If a Cn loss condition occurs, the data and clock are recovered according to the most recently received normal Cn value.
本发明实施例通过提供一种在自适应 CBR业务的 0TN帧中传递客户数据 字节数量变化值的方法,解决了不能为 OPUk和 OPUk-Xv提供相同的调整能力, 调整速度慢的问题。 通过在 0TN帧中传递多个客户数据字节数量变化值, 接 收端进行大数判决, 得出正确的客户数据字节数量, 提高数据传输的可靠性。 通过在 0TN帧中传递上述变化值,为 OPUk和 OPUk-Xv提供了相同的调整能力, 并且可以完成一定范围内客户数据字节数量值的任意调整。  The embodiment of the present invention solves the problem that the same adjustment capability cannot be provided for OPUk and OPUk-Xv, and the adjustment speed is slow, by providing a method for transmitting the change value of the number of bytes of the client data in the 0TN frame of the adaptive CBR service. By transmitting multiple customer data byte number changes in the 0TN frame, the receiving end makes a large number decision, and the correct number of customer data bytes is obtained, thereby improving the reliability of data transmission. By transmitting the above change values in the 0TN frame, the same adjustment capability is provided for OPUk and OPUk-Xv, and any adjustment of the number of customer data bytes in a certain range can be completed.
本发明实施例提供了一种发送映射开销的装置。 如图 8所示, 该发送映射开销的装置包括: An embodiment of the present invention provides an apparatus for transmitting a mapping overhead. As shown in FIG. 8, the apparatus for transmitting mapping overhead includes:
变化值获取模块 801,用于获取当前传送帧周期所接收的客户数据字节数 量相对于参考值的变化值。  The change value obtaining module 801 is configured to obtain a change value of the number of customer data bytes received by the current transmission frame period with respect to the reference value.
该变化值获取模块 801包括:  The change value obtaining module 801 includes:
緩存单元 804,用于获取当前传送帧周期以及上一个传送帧周期中所接收 的客户数据字节数量, 将上一个传送帧周期中所接收的客户数据字节数量作 为参考值。  The buffer unit 804 is configured to obtain the current transmission frame period and the number of customer data bytes received in the previous transmission frame period, and use the number of customer data bytes received in the previous transmission frame period as a reference value.
緩存单元 804具体可以通过緩存接收到的客户数据, 在一个 0TN帧周期 内对客户时钟进行计数, 获取当前传送帧周期以及上一个传送帧周期中所接 收的客户数据字节数量, 将上一个传送帧周期中所接收的客户数据字节数量 作为参考值。  The buffer unit 804 can specifically count the received client data, count the client clock in a 0TN frame period, and obtain the current transmission frame period and the number of customer data bytes received in the previous transmission frame period, and transmit the previous one. The number of customer data bytes received in the frame period is used as a reference value.
在 0TN帧中, 客户信号放置在帧中的净荷区, 在发送端, 通过在一个 0TN 帧周期内对客户时钟进行计数, 就可以得到客户数据在一个 0TN 帧周期内的 字节数量 Cn。  In the 0TN frame, the client signal is placed in the payload area of the frame. At the transmitting end, by counting the client clock in a 0TN frame period, the number of bytes Cn of the client data in a 0TN frame period can be obtained.
比较单元 805 用于对当前帧周期内的字节数量与上一个帧周期内的字节 数量进行比较, 得到当前传送帧周期中所接收的客户数据字节数量相对于参 考值的变化值。  The comparing unit 805 is configured to compare the number of bytes in the current frame period with the number of bytes in the previous frame period to obtain a change value of the number of customer data bytes received in the current transmission frame period with respect to the reference value.
分别记录当前 0TN帧周期内的客户数据字节数量 Cn (cur)和上一个 0TN 帧周期内的客户数据字节数量 Cn (pre), 根据 ACn= Cn (cur) - Cn (pre), 就可以获取到当前帧周期内的客户数据字节数量相对于前一帧的客户数据字 节数量的变化值 ACn。 在不同的业务类型中, 根据 0TN 的系统时钟、 客户时 钟以及两者的频率可以计算得出 Cn的变化范围, 如果光网络帧中传送的 ACn 超出了 Cn的变化范围, 那么 Cn (pre)保持不变, 将 ACn置为 0。  Record the number of customer data bytes Cn (cur) in the current 0TN frame period and the number of customer data bytes Cn (pre) in the previous 0TN frame period, according to ACn= Cn (cur) - Cn (pre) Obtain a change value ACn of the number of customer data bytes in the current frame period relative to the number of client data bytes in the previous frame. In different service types, the variation range of Cn can be calculated according to the system clock of 0TN, the customer clock, and the frequency of both. If the ACn transmitted in the optical network frame exceeds the variation range of Cn, then Cn (pre) remains. No change, set ACn to 0.
映射开销插入模块 802, 用于将该变化值放置到光信道净荷单元开销区。 在 0TN帧中, 第 1 ~ 4行的第 15、 16列为光信道净荷单元( OPUk )开销 区。 OPUk开销区中包括净荷结构标识 ( PSI-Payload Structure Identifier ) 和用来指示一个 0TN帧周期中传送的客户信号字节数量 Cn的 Cbyte字节。 当 两个以上帧进行虚级联时, OPUk中还包括虚级联开销 ( VC0H )。 The mapping overhead insertion module 802 is configured to place the change value into the optical channel payload unit overhead area. In the 0TN frame, the 15th and 16th columns of the 1st to 4th rows are the optical channel payload unit (OPUk) overhead area. The PPU-Payload Structure Identifier is included in the OPUk overhead area. And a Cbyte byte used to indicate the number of client signal bytes Cn transmitted in a 0TN frame period. When more than two frames are virtual concatenated, the OPUk also includes a virtual concatenation overhead (VC0H).
为了在光网络帧中传递 Δ Cn值,本发明实施例中定义了一种 Cby t e格式。 该 Cbyte由新客户标志、 翻转指示比特和信息传递比特组成。 新客户标志用 来指示传送的是新的客户信号还是正常客户信号, 翻转指示比特用来指示当 前帧所传送的客户信号字节数量相比较上一帧是减少还是增加, 信息传递比 特用来传送 Δ Cn值, 其中 Δ Cn值为当前传送帧周期所接收的客户数据字节数 量相对于参考值的变化值。 如图 6所示。 该 Cbyte—共占用三个字节共 24比 特的空间。 前两个比特 "CC" 是新客户标志, 指示新的客户信号或是正常客 户信号; 当 CC= "01" 时, 表示该帧传送的是 ACn值, 第 3到 9个比特放置 翻转指示比特, 包括一个 ADJ" 比特、 3个 "I" 比特和 3个 "D" 比特, 后 15 个比特每 5个比特携带一个 Cn的变化值 ACn; 当 CC= "10" 时, 表示该帧传 输的是 Cn值, 后 22个比特携带一个新的 Cn值。  In order to pass the Δ Cn value in the optical network frame, a Cby t e format is defined in the embodiment of the present invention. The Cbyte consists of a new client flag, a flip indicator bit, and a message transfer bit. The new client flag is used to indicate whether a new client signal or a normal client signal is transmitted. The flip indicator bit is used to indicate whether the number of client signal bytes transmitted by the current frame is reduced or increased compared to the previous frame, and the information transfer bit is used for transmission. Δ Cn value, where Δ Cn is the value of the number of customer data bytes received in the current transmission frame period relative to the reference value. As shown in Figure 6. The Cbyte—occupies a total of three bytes with a total of 24 bits of space. The first two bits "CC" are new customer flags indicating a new client signal or a normal client signal; when CC = "01", it indicates that the frame transmits ACn values, and the third to nine bits place flip indication bits. , including one ADJ "bit, three "I" bits and three "D" bits, the last 15 bits carry a Cn change value ACn every 5 bits; when CC = "10", it indicates the frame transmission It is the Cn value, and the last 22 bits carry a new Cn value.
当 CC= "01" 时,若 "ADJ" 比特翻转且 " 比特翻转, 则为 Cn加操作, 剩余 15比特每 5个比特携带一个 Cn变化值 ACn, 表示下一帧的客户信号字 节数量为当前帧的客户信号字节数量加上 ACn; 若 "ADJ" 比特翻转且 "D" 比特翻转, 则为 Cn减操作, 剩余 15比特每 5个比特携带一个 Cn变化值 ACn, 表示下一帧的客户信号字节数量为当前帧的客户信号字节数量减去 ACn。  When CC = "01", if the "ADJ" bit is inverted and "bit flips, then Cn is added. The remaining 15 bits carry a Cn change value ACn every 5 bits, indicating that the number of client signal bytes in the next frame is The number of client signal bytes of the current frame plus ACn; if the "ADJ" bit is inverted and the "D" bit is inverted, it is Cn minus operation, and the remaining 15 bits carry a Cn change value ACn every 5 bits, indicating the next frame The number of client signal bytes is the number of client signal bytes for the current frame minus ACn.
当 CC= "01" 时, 则表明为新的客户信号 Cn,剩余的 22比特携带 Cn值, 表示当前帧传送的客户信号字节数量。  When CC = "01", it indicates a new client signal Cn, and the remaining 22 bits carry a Cn value indicating the number of client signal bytes transmitted in the current frame.
得出当前帧周期内的客户字节数量相对于前一帧的客户字节数量的变化 值 ACn之后, 需要根据 Cn值和 ACn值生成相应的 Cbyte字节, 将 Cbyte字 节下插到 OPUk开销的 Cbyte区域中。  After obtaining the change value ACn of the number of client bytes in the current frame period relative to the number of client bytes in the previous frame, it is necessary to generate a corresponding Cbyte byte according to the Cn value and the ACn value, and insert the Cbyte byte into the OPUk overhead. In the Cbyte area.
Cbyte字节的生成规则如下:  The rules for generating Cbyte bytes are as follows:
1、 当 ACn=0时, 即当前帧的 Cn值相对于上一帧的 Cn值没有变化, 这时 CC设置为 "01", 后面 22比特均为 0。 2、 当 ACn>0时, 即当前帧的 Cn值相对于上一帧的 Cn值增加了, 当前帧 的 Cbyte中的 CC设置为 "01", ADJ比特和 3个 I比翻转表示 Cn要进行加操 作, 下一帧 Cn值是当前的 Cn值加。 1. When ACn=0, that is, the Cn value of the current frame does not change with respect to the Cn value of the previous frame. At this time, CC is set to "01", and the latter 22 bits are all 0. 2. When ACn>0, that is, the Cn value of the current frame is increased relative to the Cn value of the previous frame, the CC in the Cbyte of the current frame is set to "01", and the ADJ bit and the three I ratios are inverted to indicate that Cn is to be performed. Add operation, the next frame Cn value is the current Cn value plus.
3、 当 ACn<0时, 即当前帧的 Cn值相对于上一帧的 Cn值减少了, 当前帧 的 Cbyte中的 CC设置为 "01", ADJ比特和 D比特翻转表示 Cn要进行减操作, 下一帧 Cn值是当前的 Cn值减 ACn。  3. When ACn<0, that is, the Cn value of the current frame is reduced relative to the Cn value of the previous frame, the CC in the Cbyte of the current frame is set to "01", and the ADJ bit and the D bit are inverted to indicate that Cn is to be subtracted. The next frame Cn value is the current Cn value minus ACn.
4、 如果当检测到新客户信号时, 产生新的 Cn值, 这时 CC设置为 "10", 后面 22比特都用来表示新的 Cn值。  4. If a new Cn value is generated when a new client signal is detected, then CC is set to "10" and the next 22 bits are used to indicate the new Cn value.
5、 当客户信号出现异常时, Cbyte进入 AIS告警状态, 指示这种异常情 况。如果客户信号接收正常,那么 Cbyte退出 AIS告警状态,按照上述规则 1 ~ 4生成 Cbyte字节。  5. When the client signal is abnormal, Cbyte enters the AIS alarm state to indicate this abnormal condition. If the client signal is received normally, Cbyte exits the AIS alarm state and generates Cbyte bytes according to the above rules 1 ~ 4.
生成模块 803, 用于生成光网络帧并进行发送。  The generating module 803 is configured to generate an optical network frame and send the same.
如图 9所示, 该接收映射开销的装置包括:  As shown in FIG. 9, the apparatus for receiving mapping overhead includes:
解析模块 901, 用于解析发送端发送来的光网络帧。  The parsing module 901 is configured to parse the optical network frame sent by the sending end.
变化值获取模块 902, 用于根据对所述光网络帧的解析结果, 获取当前帧 周期内的客户数据字节数量相对于参考值的变化值。  The change value obtaining module 902 is configured to obtain, according to the parsing result of the optical network frame, a change value of the number of customer data bytes in the current frame period relative to the reference value.
接收端解析收到的光网络帧, 如果 Cbyte字节中前两个比特 CC= "10", 那么 Cbyte字节中后 22比特就指示的是当前帧的 Cn值。  The receiving end parses the received optical network frame. If the first two bits in the Cbyte byte CC = "10", then the last 22 bits in the Cbyte byte indicate the Cn value of the current frame.
如果 Cbyte字节中前两个比特 CC= "01", 那么 Cbyte字节中第 3到第 9 个比特为翻转指示比特, 后 15个比特每 5个比特表示一个 ACn值。  If the first two bits in the Cbyte byte CC = "01", then the 3rd to 9th bits in the Cbyte byte are the flip indication bits, and the last 15 bits represent an ACn value every 5 bits.
依靠这一规则, 就可以从光网络帧的开销字节中得出当前帧的 Cn值或 Δ Cn值。  By relying on this rule, the Cn value or Δ Cn value of the current frame can be derived from the overhead bytes of the optical network frame.
数量获取模块 903,用于根据所述变化值和所述参考值获取当前帧所传送 的客户数据字节数量。  The quantity obtaining module 903 is configured to obtain the number of customer data bytes transmitted by the current frame according to the change value and the reference value.
数量获取模块 903包括:  The quantity acquisition module 903 includes:
存储单元 904,用于用于放置所获取的上一个传送帧周期中所接收的客户 数据字节数量, 将该字节数量作为参考值。 The storage unit 904 is configured to: place the received client received in the last transmission frame period The number of data bytes, which is used as a reference value.
当 Cbyte字节中前两个比特 CC = "01 " 时, 根据 Cbyte的后 15个比特就 可以得出当前帧相对于上一帧客户信号字节数量的改变值 A Cn , 上一个传送 帧周期中所接收的客户数据字节数量为参考值。  When the first two bits of the Cbyte byte CC = "01", the change value A Cn of the current frame relative to the number of client signal bytes of the previous frame can be obtained according to the last 15 bits of the Cbyte, the last transmission frame period. The number of customer data bytes received in is the reference value.
计算单元 905,用于将上一个传送帧周期中所接收的客户数据字节数量减 去 /加上所述变化值, 得到当前帧所传送的客户数据字节数量。  The calculating unit 905 is configured to subtract/add the change value to the number of customer data bytes received in the previous transmission frame period to obtain the number of customer data bytes transmitted by the current frame.
如果检测到 Cbyte中的 ADJ比特翻转, 3个 I比特中的大于一个 I比特翻 转, 且传输的 3个 A Cn中大于一个 A Cn相等时, 表明下一帧的 Cn进行了加 操作, 下一帧 Cn值为当前 Cn值加上 A Cn。 如果该 Cn值在正常范围内, 则为 合法的 Cn值, 存储该 Cn值。 在不同的业务类型中, 根据 0TN的系统时钟、 客户时钟以及两者的频率可以计算得出 Cn的变化范围, 如果根据光网络帧中 传送的 A Cn计算得出的 Cn位于这个变化范围以外, 那么就说明传送的 A Cn 出现了差错, 该 Cn值是非法的, 不再存储该 Cn值。  If the ADJ bit flip in the Cbyte is detected, more than one I bit of the three I bits is inverted, and if more than one A Cn of the three A Cn transmitted are equal, it indicates that the Cn of the next frame is added, and the next The frame Cn value is the current Cn value plus A Cn. If the Cn value is within the normal range, it is a legal Cn value, and the Cn value is stored. In different service types, the variation range of Cn can be calculated according to the system clock of 0TN, the client clock, and the frequencies of the two. If the Cn calculated according to the A Cn transmitted in the optical network frame is outside the variation range, Then it indicates that the transmitted A Cn has an error, the Cn value is illegal, and the Cn value is no longer stored.
如果检测到 Cbyte中的 ADJ比特翻转, 3个 D比特中的大于一个 D比特翻 转, 且传输的 3个 A Cn中大于一个 A Cn相等时, 表明下一帧的 Cn进行了减 操作, 下一帧 Cn值为当前 Cn值减去 A Cn。 如果该 Cn值在正常范围内, 则为 合法的 Cn值, 存储该 Cn值。  If the ADJ bit flip in the Cbyte is detected, more than one D bit of the three D bits is inverted, and more than one A Cn of the three A Cn transmitted is equal, indicating that the Cn of the next frame is subtracted, and the next The frame Cn value is the current Cn value minus A Cn. If the Cn value is within the normal range, it is a legal Cn value, and the Cn value is stored.
如果连续 3帧检测到 Cbyte处于 AI S告警状态, 那么接收端也进入 AI S 告警状态;如果连续 2帧以上检测到 Cby t e字节中的 Δ Cn或 Cn超出正常范围, 那么判断接收端进入 Cn丟失状态; 如果连续 2帧以上检测到 Cbyte字节中 CC=10" , 那么判断接收端进入 Cn丟失状态; 如果检测到单个的 CC= "10" , 或 者 CC= "01 " 并且 A Cn处于正常范围之内, 那么判断接收端接收正常, 接收 该 Cn值或 Δ Cn值, 并存储该 Cn值。  If the Cbyte is detected in the AIS alarm state for 3 consecutive frames, the receiving end also enters the AIS alarm state; if more than 2 frames detect that ΔCn or Cn in the Cby te byte is out of the normal range, then the receiving end enters Cn. Lost state; if CC=10" in Cbyte bytes is detected for more than 2 consecutive frames, then the receiver is judged to enter the Cn lost state; if a single CC = "10" is detected, or CC = "01" and A Cn is normal Within the range, then it is judged that the receiving end receives the normal, receives the Cn value or the ΔCn value, and stores the Cn value.
通过上述过程接收端就可以从接收到的光网络帧中得到 Cn值, 得到一个 光网络帧中传送的客户信号的字节数量值。 利用该 Cn值在当前帧的下一帧, 将光网络帧净荷区的数据根据∑ - 算法还原出当前帧存储的客户信号数据, 平滑恢复客户信号时钟, 将客户信号发送出去。 如果发生 Cn丟失情况, 则按 照最近收到的正常 Cn值恢复数据和时钟 Through the above process, the receiving end can obtain the Cn value from the received optical network frame, and obtain the byte quantity value of the client signal transmitted in one optical network frame. Using the Cn value in the next frame of the current frame, the data of the optical network frame payload area is restored according to the ∑-algorithm to the client signal data stored in the current frame. Smoothly restore the customer signal clock and send the customer signal out. If a Cn loss condition occurs, the data and clock are recovered according to the most recently received normal Cn value.
实施例二:  Embodiment 2:
本发明实施例提供了一种发送映射开销的方法。  The embodiment of the invention provides a method for transmitting mapping overhead.
如图 10所示, 该发送映射开销的方法包括:  As shown in FIG. 10, the method for sending mapping overhead includes:
1001、 获取当前传送帧周期所接收的客户数据字节数量相对于参考值的 变化值。 步骤包括:  1001. Acquire a change value of the number of customer data bytes received in the current transmission frame period with respect to a reference value. The steps include:
10011、 获取客户数据在当前 0TN帧周期内的字节数量, 根据客户时钟和 本地时钟获取传送帧周期所接收的客户数据字节数量的最小值, 将该最小值 作为参考值。  10011. Obtain a quantity of bytes of the client data in the current 0TN frame period, and obtain a minimum value of the number of customer data bytes received in the transmission frame period according to the client clock and the local clock, and use the minimum value as a reference value.
本步骤具体可以通过緩存接收到的客户数据, 在一个帧周期内对客户时 钟进行计数, 获取客户数据在当前 0TN 帧周期内的字节数量, 根据客户时钟 和本地时钟获取传送帧周期所接收的客户数据字节数量的最小值, 将该最小 值作为参考值。  In this step, the client data can be counted in a frame period, and the number of bytes of the client data in the current 0TN frame period is obtained, and the received frame period is received according to the client clock and the local clock. The minimum value of the number of customer data bytes, which is used as a reference value.
在 0TN帧中, 客户信号放置在帧中的净荷区。  In the 0TN frame, the client signal is placed in the payload area of the frame.
在发送端, 根据输入的客户信号, 通过锁相环从客户信号中恢复客户时 钟, 并将客户数据存入 F I F0。 Cn值获取单元根据客户信号时钟和本地系统时 钟计算出 Cn的最小值 Cn (min) ,并将 Cn (min)传送到 Δ Cn获取模块,将 Cn (min) 作为参考值。  At the transmitting end, the customer clock is recovered from the customer signal via the phase locked loop according to the input customer signal, and the customer data is stored in F I F0. The Cn value acquisition unit calculates the minimum value Cn (min) of Cn based on the customer signal clock and the local system clock, and transmits Cn (min) to the Δ Cn acquisition module with Cn (min) as a reference value.
因为客户信号与系统时钟是异步的, F I F0中的数据量会发生变化。当 F I F0 中的字节数量变化时,根据 FIFO中字节数量的变化, Cn值获取单元会生成不 同的 Cn值。  Because the client signal is asynchronous to the system clock, the amount of data in F I F0 changes. When the number of bytes in F I F0 changes, the Cn value acquisition unit generates different Cn values depending on the number of bytes in the FIFO.
对当前帧周期内的所述字节数量与所述字节数量的最小值进行比较, 得 到当前传送帧周期内所接收的客户数据字节数量相对于参考值的变化值。 Δ Cn获取模块根据 Cn获取单元得到的 Cn值计算 Δ Cn:  Comparing the number of bytes in the current frame period with the minimum value of the number of bytes, a value of the number of customer data bytes received in the current transmission frame period relative to the reference value is obtained. The Δ Cn acquisition module calculates Δ Cn based on the Cn value obtained by the Cn acquisition unit:
△ Cn = Cn _ Cn (min) 正常状态下 Cn值将在一定范围内变化, 该变化范围可由业务对应的 Cn 计算公式产生, 也可由配置产生。 若 ACn的值超过了 Cn的变化范围, 则放弃 此次 Cn调整, 将 ACn置为 0。 △ Cn = Cn _ Cn (min) Under normal conditions, the Cn value will change within a certain range, which can be generated by the Cn calculation formula corresponding to the service, or can be generated by the configuration. If the value of ACn exceeds the range of variation of Cn, the Cn adjustment is discarded and ACn is set to zero.
1002、 将该变化值放置到光信道净荷单元开销区。  1002. The change value is placed into an optical channel payload unit overhead area.
在 0TN帧中, 第 1 ~ 4行的第 15、 16列为光信道净荷单元( OPUk )开销 区。 OPUk开销区中包括净荷结构标识 ( PSI-Payload Structure Identifier ) 和用来指示一个 0TN帧周期中传送的客户信号字节数量 Cn的 Cbyte字节。 当 两个以上帧进行虚级联时, OPUk中还包括虚级联开销 ( VC0H )。  In the 0TN frame, the 15th and 16th columns of the 1st to 4th rows are the optical channel payload unit (OPUk) overhead area. The OPUk overhead area includes a PSI-Payload Structure Identifier and a Cbyte byte indicating the number of client signal bytes Cn transmitted in a 0TN frame period. When two or more frames are virtual concatenated, the OPUk also includes a virtual concatenation overhead (VC0H).
为了在光网络帧中传递 Δ Cn值,本发明实施例中定义了一种 Cbyte格式。 该 Cbyte 由新客户标志和信息传递比特组成。 新客户标志用来指示传送的是 新的客户信号还是正常客户信号, 信息传递比特用来传送 ACn值, 其中 ACn 值为当前传送帧周期所接收的客户数据字节数量相对于参考值的变化值。 如 图 11所示, 该 Cbyte—共占用三个字节共 24比特的空间。 前四个比特 "CC" 是新客户标志, 指示新的客户信号或是正常客户信号。 CC 比特相对于实施例 一由两个比特增加到四个比特, CC比特的增多有利于增强 Cbyte字节传输的 可靠性。 第 5、 6个比特暂时保留。 后 18个比特每 6个比特表示一个 ACn值。  In order to pass the Δ Cn value in the optical network frame, a Cbyte format is defined in the embodiment of the present invention. The Cbyte consists of a new customer logo and information transfer bits. The new client flag is used to indicate whether a new client signal or a normal client signal is transmitted, and the information transfer bit is used to transmit an ACn value, wherein the ACn value is a change value of the number of customer data bytes received in the current transmission frame period relative to the reference value. . As shown in Figure 11, the Cbyte—occupies a total of three bytes of a total of 24 bits of space. The first four bits "CC" are new customer flags that indicate new customer signals or normal customer signals. The CC bit is increased from two bits to four bits with respect to the first embodiment, and the increase of the CC bit is advantageous for enhancing the reliability of the Cbyte byte transmission. The 5th and 6th bits are temporarily reserved. The last 18 bits represent an ACn value every 6 bits.
当 CC= "0110" 时, 如果后面 20个比特全部进行翻转, 表示此帧只是一 个指示帧, 不传递 Cn值, 从下一帧开始传送 ACn值, 下一帧的 Cn值仍然维 持当前的 Cn值。 当 CC= "0110" 时, 如果后面的比特没有全部进行翻转, 那 么第 5、 6个比特保留,剩下 18个比特每 6个比特携带一个 Cn的变化值 ACn, △ Cn的指示范围为 0~63, 下一帧的 Cn值为当前的 Cn (min)加上 ACn。 当 CC= "1001" 时, 表示该帧传输的是一个新的 Cn 最小值 Cn ( min ), 剩下的 20比特全部用来表示该 Cn ( min )。  When CC= "0110", if all the next 20 bits are flipped, it means that this frame is only an indication frame, and the Cn value is not transmitted. The ACn value is transmitted from the next frame, and the Cn value of the next frame still maintains the current Cn. value. When CC = "0110", if all the following bits are not inverted, the 5th and 6th bits are reserved, and the remaining 18 bits carry a Cn change value ACn every 6 bits, and the indication range of △ Cn is 0. ~63, The Cn value of the next frame is the current Cn (min) plus ACn. When CC = "1001", it means that the frame transmits a new Cn minimum value Cn ( min ), and the remaining 20 bits are all used to represent the Cn ( min ).
计算出的 ACn放置在 Cbyte字节中传输, 在一帧中传输 3个相同的 ACn 值。 接收端可以进行大数判决, 以决定正确的 ACn值。  The calculated ACn is placed in Cbyte bytes for transmission, and three identical ACn values are transmitted in one frame. The receiving end can make a large number decision to determine the correct ACn value.
可以采用 Cbyte生成状态机来决定当前是发送 Cn最小值 Cn (min)用来 确定新的业务, 还是发送 Cn的变化值 ACn对已确定的业务进行调整。 Cbyte 生成状态机会生成相应的 Cbyte字节, 放入光网络帧中进行传输。 The Cbyte generation state machine can be used to determine the current Cn minimum value Cn (min). Determine the new service, or send the change value ACn of Cn to adjust the determined service. The Cbyte generation state opportunity generates the corresponding Cbyte byte and places it into the optical network frame for transmission.
如图 12所示,是 Cbyte生成状态示意图。 Cbyte生成状态机根据 Cn获取 单元送入的 Cn最小值决定当前是否有新的客户信号出现。 如果检测到 Cn最 小值发生变化, 那么说明业务发生变化, 有新业务出现, Cbyte生成状态机处 于新客户信号(NCF)状态, 生成的 Cbyte字节中将放置 Cn最小值 Cn (min)。 新客户标志 CC= "1001", Cbyte的后 20个比特携带新的 Cn最小值 Cn(min)。 为了保证 Cn最小值 Cn ( min )的传输正确性, 需要传输多个相同的 Cn ( min )。  As shown in Figure 12, it is a schematic diagram of the Cbyte generation state. The Cbyte generation state machine determines whether a new client signal is present or not based on the Cn minimum value fed by the Cn acquisition unit. If it is detected that the minimum value of Cn changes, then the service changes, new services appear, the Cbyte generation state machine is in the new client signal (NCF) state, and the Cn minimum value Cn (min) is placed in the generated Cbyte byte. The new customer flag CC = "1001", the last 20 bits of the Cbyte carry the new Cn minimum Cn(min). In order to ensure the correct transmission of the Cn minimum value Cn ( min ), it is necessary to transmit multiple identical Cn ( min ).
如果检测到 Cn 最小值没有发生变化, 则 Cbyte 生成状态机跳转到控制 (CTRL)状态, 发送控制帧表示从下一帧开始传送 Cn的变化值 ACn。 此时新 客户标志 CC= "0110", 后面 20比特全部翻转。  If it is detected that the minimum value of Cn has not changed, the Cbyte generation state machine jumps to the control (CTRL) state, and the transmission control frame indicates that the change value ACn of Cn is transmitted from the next frame. At this point, the new customer flag CC= "0110", the next 20 bits are all flipped.
发送控制帧之后如果客户信号正常, 并且没有新客户信号产生, 那么 Cbyte生成状态机进入调整(ADJ)状态, 开始传送 Cn的变化值 Δ Cn。 在 Cn 调整帧中, CC= "0110", 后 18位比特携带 3个相同的 ACn值, 每个 ACn值 占用 6个比特。  After the control frame is transmitted, if the client signal is normal and no new client signal is generated, the Cbyte generation state machine enters the adjustment (ADJ) state and starts transmitting the change value Δ Cn of Cn. In the Cn adjustment frame, CC = "0110", the last 18 bits carry three identical ACn values, and each ACn value occupies 6 bits.
如果客户信号接收出现异常, 那么 Cbyte生成状态机进入告警(AIS)状 态, 指示出现异常情况。  If the customer signal reception is abnormal, the Cbyte generation state machine enters the alarm (AIS) state, indicating an abnormal condition.
生成相应的 Cbyte字节之后, 将该 Cbyte字节下插到 0PUK开销的 Cbyte 区域中。 在控制帧的下一帧, 根据控制帧中传送的 Cn最小值 Cn (min)读取 控制信号, 读出 Cn (min)个客户数据。 在调整帧的下一帧, 根据调整帧中传 送的 Cn变化值 ACn读取控制信号, 读出 ACn个客户数据。 将读出的客户数 据映射到 0TN帧中的净荷区。  After generating the corresponding Cbyte byte, the Cbyte byte is inserted into the Cbyte area of the 0PUK overhead. In the next frame of the control frame, the control signal is read based on the Cn minimum value Cn (min) transmitted in the control frame, and Cn (min) customer data is read. In the next frame of the adjustment frame, the control signal is read according to the Cn change value ACn transmitted in the adjustment frame, and ACn customer data is read. The read client data is mapped to the payload area in the 0TN frame.
1003、 生成光网络帧并进行发送。  1003. Generate an optical network frame and send it.
如图 13所示, 该接收映射开销的方法包括:  As shown in FIG. 13, the method for receiving mapping overhead includes:
1301、 解析光网络帧。  1301. Analyze an optical network frame.
接收端解析发送端发送过来的光网络帧。 1302、 根据对所述光网络帧的解析结果, 获取当前帧周期内的客户数据 字节数量相对于参考值的变化值。 The receiving end parses the optical network frame sent by the sending end. 1302: Acquire, according to the parsing result of the optical network frame, a change value of the number of customer data bytes in the current frame period relative to the reference value.
接收端解析该光网络帧, 如果接收到的光网络帧的 Cbyte 字节中 CC = "1001", 那么判断为新业务指示 Cbyte, 后 20 比特携带的是 Cn最小值 Cn (min)。 如果连续多帧接收到相同的 Cn (min), 并且 Cn (min) 的值在正常 的范围之内, 那么 Cn = Cn (min)。 以后的业务就以该 Cn (min) 为基石出进行 调整, 直至出现新业务。  The receiving end parses the optical network frame. If CC = "1001" in the Cbyte byte of the received optical network frame, it is determined that the new service indicates Cbyte, and the last 20 bits carries the Cn minimum value Cn (min). If consecutive multiple frames receive the same Cn (min) and the value of Cn (min) is within the normal range, then Cn = Cn (min). Future business will be adjusted based on the Cn (min) until new business emerges.
如果接收到的 Cbyte字节中 CC= "0110", 并且后 20比特中的多数进行 了翻转, 那么判断该帧为控制帧, 表示下一帧中携带的是 ACn, 在当前帧的 下一帧净荷区的字节数量仍然为 Cn (min)。  If CC= "0110" in the received Cbyte byte, and the majority of the last 20 bits are flipped, then the frame is judged to be a control frame, indicating that ACn is carried in the next frame, and the next frame in the current frame The number of bytes in the payload area is still Cn (min).
在控制帧之后接收到的是调整帧, CC= "0110", 从中可以得到 Cn 的变 化值 ACn, 其中 Cn (min)作为参考值。  After receiving the control frame, the adjustment frame is received, CC = "0110", from which the change value ACn of Cn can be obtained, where Cn (min) is used as the reference value.
1303、 根据所述变化值和所述参考值获取当前帧所传送的客户数据字节 数量。  1303. Obtain, according to the change value and the reference value, a quantity of client data bytes transmitted by the current frame.
当 CC= "1001" 时, 后 20比特携带的是 Cn最小值 Cn (min)。 如果连 续多帧接收到相同的 Cn (min), 并且 Cn (min) 的值在正常的范围之内, 那 么 Cn = Cn ( min )。  When CC = "1001", the last 20 bits carry the Cn minimum value Cn (min). If consecutive multiframes receive the same Cn (min) and the value of Cn (min) is within the normal range, then Cn = Cn ( min ).
当 CC= "0110" 时, 并且后 20比特中的多数进行了翻转, 那么判断该 帧为控制帧, 表示下一帧中携带的是 ACn, 在当前帧的下一帧表示净荷区的 字节数量仍然为 Cn (min)。  When CC = "0110", and most of the last 20 bits are flipped, then the frame is judged to be a control frame, indicating that ACn is carried in the next frame, and the word of the payload area is represented in the next frame of the current frame. The number of sections is still Cn (min).
在控制帧之后接收到的是调整帧, CC= "0110", 从中可以得到 Cn 的变 化值 ACn。 通过采用大数判决决定一个正确的 ACn值, 利用 ACn值计算当前 的 Cn值:  After receiving the control frame, the adjustment frame is received, CC = "0110", from which the change value ACn of Cn can be obtained. By using a large number decision to determine a correct ACn value, the ACn value is used to calculate the current Cn value:
Cn = Cn ( min ) +△ Cn  Cn = Cn ( min ) +△ Cn
如果最后得到的 Cn值在正常的范围内, 那么表示该 Cn值是正确的, 存 储该 Cn值。 在当前帧的下一帧利用 Cn值恢复客户数据和客户时钟。 将 0PUK净荷区 的数据根据∑_ 算法还原出当前帧存储的 Cn数值的客户信号数据, 平滑恢 复客户时钟, 将客户信号发送出去。 If the last obtained Cn value is within the normal range, then it indicates that the Cn value is correct, and the Cn value is stored. The customer data and the client clock are recovered using the Cn value in the next frame of the current frame. The data of the 0PUK payload area is restored according to the ∑_ algorithm to the client signal data of the Cn value stored in the current frame, and the client clock is smoothly recovered, and the client signal is sent out.
如果发生 Cn ( mi n )、 A Cn丟失的情况, 按照最近接收到的正常 Cn值恢 复客户数据和客户时钟。  If Cn ( mi n ) or A Cn is lost, the customer data and the customer clock are restored according to the most recently received normal Cn value.
本发明实施例通过提供一种在自适应 CBR业务的 0TN帧中传递客户数据 字节数量变化值的方法,解决了不能为 OPUk和 OPUk-Xv提供相同的调整能力, 调整速度慢的问题。 通过在 0TN帧中传递多个客户数据字节数量变化值, 接 收端进行大数判决, 得出正确的客户数据字节数量, 提高数据传输的可靠性。 通过在 0TN帧中传递上述变化值,为 OPUk和 OPUk-Xv提供了相同的调整能力, 并且可以完成一定范围内客户数据字节数量值的任意调整。  The embodiment of the present invention solves the problem that the same adjustment capability cannot be provided for OPUk and OPUk-Xv, and the adjustment speed is slow, by providing a method for transmitting the change value of the number of bytes of the client data in the 0TN frame of the adaptive CBR service. By transmitting multiple customer data byte number changes in the 0TN frame, the receiving end makes a large number decision, and the correct number of customer data bytes is obtained, thereby improving the reliability of data transmission. By transmitting the above change values in the 0TN frame, the same adjustment capability is provided for OPUk and OPUk-Xv, and any adjustment of the number of customer data bytes in a certain range can be completed.
本发明实施例还提供了一种发送映射开销的装置。  The embodiment of the invention further provides an apparatus for transmitting mapping overhead.
如图 14所示, 该发送映射开销的装置包括变化值获取模块 1401、 映射开 销插入模块 1402和生成模块 1403。  As shown in FIG. 14, the apparatus for transmitting mapping overhead includes a change value acquisition module 1401, a mapping overhead insertion module 1402, and a generation module 1403.
其中, 变化值获取模块 1401用于获取当前传送帧周期所接收的客户数据 字节数量相对于参考值的变化值。  The change value obtaining module 1401 is configured to obtain a change value of the number of customer data bytes received by the current transmission frame period with respect to the reference value.
该变化值获取模块 1401包括緩存单元 1404和比较单元 1405。  The change value acquisition module 1401 includes a cache unit 1404 and a comparison unit 1405.
其中, 緩存单元 1404 , 用于获取当前传送帧周期中所接收的客户数据字 节数量以及传送帧周期所接收的客户数据字节数量的最小值, 将该最小值作 为参考值。  The buffer unit 1404 is configured to obtain a minimum value of the number of client data bytes received in the current transmission frame period and the number of customer data bytes received in the transmission frame period, and use the minimum value as a reference value.
緩存单元 1404具体可以通过緩存接收到的客户数据, 在一个传送帧周期 内对客户时钟进行计数, 获取当前传送帧周期中所接收的客户数据字节数量 以及传送帧周期所接收的客户数据字节数量的最小值, 将该最小值作为参考 值。  The buffer unit 1404 can specifically count the received client data, count the client clock in a transmission frame period, and obtain the number of client data bytes received in the current transmission frame period and the client data bytes received in the transmission frame period. The minimum value of the quantity, which is used as the reference value.
在 0TN帧中, 客户信号放置在帧中的净荷区。  In the 0TN frame, the client signal is placed in the payload area of the frame.
在发送端, 根据输入的客户信号, 通过锁相环从客户信号中恢复客户时 钟, 并将客户数据存入 FIFO。 数量获取单元根据客户信号时钟和本地系统时 钟计算出 Cn 的最小值 Cn (min) , 并将 Cn (mi n)传送到变化值获取模块, 将 Cn (min) 作为参考值。 At the transmitting end, according to the input customer signal, when the customer is recovered from the customer signal through the phase locked loop Clock, and store customer data in FIFO. The quantity acquisition unit calculates the minimum value Cn (min) of Cn according to the customer signal clock and the local system clock, and transmits Cn (mi n) to the change value acquisition module, and takes Cn (min) as a reference value.
因为客户信号与系统时钟是异步的, F I F0中的数据量会发生变化。当 F I F0 中的字节数量变化时, 根据 FIFO中字节数量的变化, 数量获取单元会生成不 同的 Cn。 数量获取单元还可以通过在一个传送帧周期内对客户时钟进行计数 获取当前传送帧周期的客户数据字节数量 Cn。  Because the client signal is asynchronous to the system clock, the amount of data in F I F0 changes. When the number of bytes in F I F0 changes, the quantity acquisition unit generates a different Cn depending on the number of bytes in the FIFO. The quantity acquisition unit can also obtain the number of customer data bytes Cn of the current transmission frame period by counting the client clock in one transmission frame period.
比较单元 1405用于对当前帧周期内的所述字节数量与传送帧周期内所接 收的客户数据字节数量的最小值进行比较, 得到当前传送帧周期中所接收的 客户数据字节数量相对于参考值的变化值。  The comparing unit 1405 is configured to compare the number of bytes in the current frame period with the minimum value of the number of customer data bytes received in the transmission frame period, to obtain the relative number of customer data bytes received in the current transmission frame period. The value of the change in the reference value.
变化值获取模块根据数量获取单元得到的 Cn值计算 Δ Cn:  The change value acquisition module calculates Δ Cn based on the Cn value obtained by the quantity acquisition unit:
△ Cn = Cn _ Cn (min)  △ Cn = Cn _ Cn (min)
正常状态下 Cn值将在一定范围内变化, 该变化范围可由业务对应的 Cn 计算公式产生, 也可由配置产生。 若 A Cn的值超过了 Cn的变化范围, 则放弃 此次 Cn调整, 将 A Cn置为 0。  In the normal state, the Cn value will change within a certain range, which can be generated by the Cn calculation formula corresponding to the service, or can be generated by the configuration. If the value of A Cn exceeds the range of Cn, the Cn adjustment is discarded and A Cn is set to 0.
映射开销插入模块 1402 ,用于将该变化值放置到光信道净荷单元开销区。 在 0TN帧中, 第 1 ~ 4行的第 15、 16列为光信道净荷单元( OPUk )开销 区。 OPUk中开销区包括净荷结构标识 ( PSI-Payload S tructure Ident if ier ) 和用来指示一个 0TN帧周期中传送的客户信号字节数量 Cn的 Cbyte字节。 当 两个以上帧进行虚级联时, OPUk中还包括虚级联开销 ( VC0H )。  The mapping overhead insertion module 1402 is configured to place the change value into the optical channel payload unit overhead area. In the 0TN frame, the 15th and 16th columns of the 1st to 4th rows are the optical channel payload unit (OPUk) overhead area. The overhead area in the OPUk includes a PSI-Payload S tructure Ident if ier and a Cbyte byte indicating the number of client signal bytes Cn transmitted in a 0TN frame period. When two or more frames are virtual concatenated, the OPUk also includes a virtual concatenation overhead (VC0H).
为了在光网络帧中传递 Δ Cn值,本发明实施例中定义了一种 Cbyte格式。 该 Cbyte 由新客户标志和信息传递比特组成。 新客户标志用来指示传送的是 新的客户信号还是正常客户信号, 信息传递比特用来传送 A Cn值, 其中 A Cn 值为当前传送帧周期所接收的客户数据字节数量相对于参考值的变化值。 如 图 11所示, 该 Cbyte—共占用三个字节共 24比特的空间。 前四个比特 "CC" 是新客户标志, 指示新的客户信号或是正常客户信号。 CC 比特相对于实施例 一由两个比特增加到四个比特, CC比特的增多有利于增强 Cbyte字节传输的 可靠性。 第 5、 6个比特暂时保留。 后 18个比特每 6个比特表示一个 ACn值。 In order to transmit the Δ Cn value in the optical network frame, a Cbyte format is defined in the embodiment of the present invention. The Cbyte consists of a new customer flag and information transfer bits. The new client flag is used to indicate whether a new client signal or a normal client signal is transmitted. The message transfer bit is used to transmit the A Cn value, where the A Cn value is the number of customer data bytes received in the current transmission frame period relative to the reference value. Change value. As shown in FIG. 11, the Cbyte occupies a total of 24 bits of space of three bytes. The first four bits "CC" are new customer flags that indicate new customer signals or normal customer signals. CC bit relative to the embodiment As one bit is increased from two bits to four bits, the increase in CC bits is advantageous for enhancing the reliability of Cbyte byte transmission. The 5th and 6th bits are temporarily reserved. The last 18 bits represent an ACn value every 6 bits.
当 CC= "0110" 时, 如果后面 20个比特全部进行翻转, 表示此帧只是一 个指示帧, 不传递 Cn值, 从下一帧开始传送 ACn值, 下一帧的 Cn值仍然维 持当前的 Cn值。 当 CC= "0110" 时, 如果后面的比特没有全部进行翻转, 那 么第 5、 6个比特保留,剩下 18个比特每 6个比特携带一个 Cn的变化值 ACn, 指示范围为 0~ 63,下一帧的 Cn值为当前的(¾( 1^1 )加上 (1。当 CC = "1001" 时, 表示该帧传输的是一个新的 Cn最小值 Cn (min), 剩下的 20比特全部用 来表示该 Cn ( min )。  When CC= "0110", if all the next 20 bits are flipped, it means that this frame is only an indication frame, and the Cn value is not transmitted. The ACn value is transmitted from the next frame, and the Cn value of the next frame still maintains the current Cn. value. When CC = "0110", if all the following bits are not inverted, the 5th and 6th bits are reserved, and the remaining 18 bits carry a Cn change value ACn every 6 bits, and the indication range is 0~63. The Cn value of the next frame is the current (3⁄4( 1^1 ) plus (1. When CC = "1001", it means that the frame transmits a new Cn minimum value Cn (min), and the remaining 20 The bits are all used to represent the Cn (min).
计算出的 ACn放置在 Cbyte字节中传输, 在一帧中传输 3个相同的 ACn 值。 接收端可以进行大数判决, 以决定正确的 ACn值。  The calculated ACn is placed in Cbyte bytes for transmission, and three identical ACn values are transmitted in one frame. The receiving end can make a large number decision to determine the correct ACn value.
可以采用 Cbyte生成状态机来决定当前是发送 Cn最小值 Cn (min)用来 确定新的业务, 还是发送 Cn的变化值 ACn对已确定的业务进行调整。 Cbyte 生成状态机会生成相应的 Cbyte字节, 放入光网络帧中进行传输。  The Cbyte generation state machine can be used to determine whether the current Cn minimum value Cn (min) is used to determine a new service or to send a change value of Cn. ACn adjusts the determined service. The Cbyte generation state opportunity generates the corresponding Cbyte bytes and places them into the optical network frame for transmission.
如图 12所示,是 Cbyte生成状态示意图。 Cbyte生成状态机根据 Cn获取 单元送入的 Cn最小值决定当前是否有新的客户信号出现。 如果检测到 Cn最 小值发生变化, 那么说明业务发生变化, 有新业务出现, Cbyte生成状态机处 于新客户信号(NCF)状态, 生成的 Cbyte字节中将放置 Cn最小值 Cn (min)。 新客户标志 CC= "1001", Cbyte的后 20个比特携带新的 Cn最小值 Cn( min )。 为了保证 Cn最小值 Cn ( min )的传输正确性, 需要传输多个相同的 Cn ( min )。  As shown in Figure 12, it is a schematic diagram of the Cbyte generation state. The Cbyte generation state machine determines whether a new client signal is present or not based on the Cn minimum value fed by the Cn acquisition unit. If it is detected that the minimum value of Cn changes, then the service changes, new services appear, the Cbyte generation state machine is in the new client signal (NCF) state, and the Cn minimum value Cn (min) is placed in the generated Cbyte byte. The new customer flag CC = "1001", the last 20 bits of Cbyte carry the new Cn minimum Cn( min ). In order to ensure the correct transmission of the Cn minimum value Cn ( min ), it is necessary to transmit multiple identical Cn ( min ).
如果检测到 Cn 最小值没有发生变化, 则 Cbyte 生成状态机跳转到控制 (CTRL)状态, 发送控制帧表示从下一帧开始传送 Cn的变化值 ACn。 此时新 客户标志 CC= "0110", 后面 20比特全部翻转。  If it is detected that the minimum value of Cn has not changed, the Cbyte generation state machine jumps to the control (CTRL) state, and the transmission control frame indicates that the change value ACn of Cn is transmitted from the next frame. At this point, the new customer flag CC= "0110", the next 20 bits are all flipped.
发送控制帧之后如果客户信号正常, 并且没有新客户信号产生, 那么 Cbyte生成状态机进入调整(ADJ)状态, 开始传送 Cn的变化值 Δ Cn。 在 Cn 调整帧中, CC= "0110", 后 18位比特携带 3个相同的 ACn值, 每个 ACn值 占用 6个比特。 After the control frame is transmitted, if the client signal is normal and no new client signal is generated, the Cbyte generation state machine enters the adjustment (ADJ) state and starts transmitting the change value Δ Cn of Cn. In the Cn adjustment frame, CC = "0110", the last 18 bits carry 3 identical ACn values, each ACn value Take up 6 bits.
如果客户信号接收出现异常, 那么 Cbyte生成状态机进入告警(AIS)状 态, 指示出现异常情况。  If the customer signal reception is abnormal, the Cbyte generation state machine enters the alarm (AIS) state, indicating an abnormal condition.
生成相应的 Cbyte字节之后, 将该 Cbyte字节下插到 0PUK开销的 Cbyte 区域中。 在控制帧的下一帧, 根据控制帧中传送的 Cn最小值 Cn (min)读取 控制信号, 读出 Cn (min)个客户数据。 在调整帧的下一帧, 根据调整帧中传 送的 Cn变化值 ACn读取控制信号, 读出 ACn个客户数据。 将读出的客户数 据映射到 0TN帧中的净荷区。  After generating the corresponding Cbyte byte, the Cbyte byte is inserted into the Cbyte area of the 0PUK overhead. In the next frame of the control frame, the control signal is read based on the Cn minimum value Cn (min) transmitted in the control frame, and Cn (min) customer data is read. In the next frame of the adjustment frame, the control signal is read according to the Cn change value ACn transmitted in the adjustment frame, and ACn customer data is read. The read client data is mapped to the payload area in the 0TN frame.
生成模块 1403, 用于生成光网络帧并进行发送。  The generating module 1403 is configured to generate an optical network frame and send the same.
本发明实施例还提供了一种接收映射开销的装置。  An embodiment of the present invention further provides an apparatus for receiving a mapping overhead.
如图 15所示, 该接收映射开销的装置包括解析模块 1501、 变化值获取模 块 1502和数量获取模块 1503:  As shown in FIG. 15, the apparatus for receiving mapping overhead includes a parsing module 1501, a change value obtaining module 1502, and a quantity obtaining module 1503:
其中, 解析模块 1501, 用于解析光网络帧。  The parsing module 1501 is configured to parse the optical network frame.
解析发送端发送过来的光网络帧。  Parse the optical network frame sent by the sender.
变化值获取模块 1502, 用于根据对所述光网络帧的解析结果, 获取当前 帧周期内的客户数据字节数量相对于参考值的变化值。  The change value obtaining module 1502 is configured to obtain, according to the parsing result of the optical network frame, a change value of the number of customer data bytes in the current frame period relative to the reference value.
接收端解析该光网络帧, 如果接收到的光网络帧的 Cbyte 字节中 CC = "1001", 那么判断为新业务指示 Cbyte, 后 20 比特携带的是 Cn最小值 Cn (min)。 如果连续多帧接收到相同的 Cn (min), 并且 Cn (min) 的值在正常 的范围之内, 那么 Cn = Cn (min)。 以后的业务就以该 Cn (min) 为基石出进行 调整, 直至出现新业务。  The receiving end parses the optical network frame. If CC = "1001" in the Cbyte byte of the received optical network frame, it is determined that the new service indicates Cbyte, and the last 20 bits carries the Cn minimum value Cn (min). If consecutive multiple frames receive the same Cn (min) and the value of Cn (min) is within the normal range, then Cn = Cn (min). Future business will be adjusted based on the Cn (min) until new business emerges.
如果接收到的 Cbyte字节中 CC= "0110", 并且后 20比特中的多数进行 了翻转, 那么判断该帧为控制帧, 表示下一帧中携带的是 ACn, 在当前帧的 下一帧净荷区的字节数量仍然为 Cn (min)。  If CC= "0110" in the received Cbyte byte, and the majority of the last 20 bits are flipped, then the frame is judged to be a control frame, indicating that ACn is carried in the next frame, and the next frame in the current frame The number of bytes in the payload area is still Cn (min).
在控制帧之后接收到的是调整帧, CC= "0110", 从中可以得到 Cn 的变 化值 ACn, 其中 Cn (min)作为参考值。 数量获取模块 1503用于根据所述变化值和所述参考值获取当前帧所传送 的客户数据字节数量。 What is received after the control frame is the adjustment frame, CC = "0110", from which the change value ACn of Cn can be obtained, where Cn (min) is used as the reference value. The quantity obtaining module 1503 is configured to obtain the number of customer data bytes transmitted by the current frame according to the change value and the reference value.
数量获取模块 1503包括存储单元 1504和计算单元 1505。  The quantity acquisition module 1503 includes a storage unit 1504 and a calculation unit 1505.
其中, 存储单元 1504用于放置所获取的传送帧周期内所接收的客户数据 字节数量的最小值, 将该最小值作为参考值。  The storage unit 1504 is configured to set a minimum value of the number of customer data bytes received in the acquired transmission frame period, and use the minimum value as a reference value.
计算单元 1505用于将传送帧周期内所接收的客户数据字节数量的最小值 加上所述变化值, 得到当前帧所传送的客户数据字节数量。  The calculating unit 1505 is configured to add the minimum value of the number of customer data bytes received in the transmission frame period to the change value to obtain the number of customer data bytes transmitted by the current frame.
当 CC= "1001" 时, 后 20比特携带的是 Cn最小值 Cn (min)。 如果连 续多帧接收到相同的 Cn (min), 并且 Cn (min) 的值在正常的范围之内, 那 么 Cn = Cn ( min )。  When CC = "1001", the last 20 bits carry the Cn minimum value Cn (min). If consecutive multiframes receive the same Cn (min) and the value of Cn (min) is within the normal range, then Cn = Cn ( min ).
当 CC= "0110" 时, 并且后 20比特中的多数进行了翻转, 那么判断该 帧为控制帧, 表示下一帧中携带的是 ACn, 在当前帧的下一帧表示净荷区的 字节数量仍然为 Cn (min)。  When CC = "0110", and most of the last 20 bits are flipped, then the frame is judged to be a control frame, indicating that ACn is carried in the next frame, and the word of the payload area is represented in the next frame of the current frame. The number of sections is still Cn (min).
在控制帧之后接收到的是调整帧, CC= "0110", 从中可以得到 Cn 的变 化值 ACn。 通过采用大数判决决定一个正确的 ACn值, 利用 ACn值计算当前 的 Cn值:  After receiving the control frame, the adjustment frame is received, CC = "0110", from which the change value ACn of Cn can be obtained. By using a large number decision to determine a correct ACn value, the ACn value is used to calculate the current Cn value:
Cn = Cn ( min ) +△ Cn  Cn = Cn ( min ) +△ Cn
如果最后得到的 Cn值在正常的范围内, 那么表示该 Cn值是正确的, 存 储该 Cn值。  If the last obtained Cn value is within the normal range, then the Cn value is correct and the Cn value is stored.
在当前帧的下一帧利用 Cn值恢复客户数据和客户时钟。 将 0PUK净荷区 的数据根据∑_ 算法还原出当前帧存储的 Cn数值的客户信号数据, 平滑恢 复客户时钟, 将客户信号发送出去。  The customer data and the client clock are recovered using the Cn value in the next frame of the current frame. The data of the 0PUK payload area is restored according to the ∑_ algorithm to the client signal data of the Cn value stored in the current frame, and the client clock is smoothly recovered to transmit the client signal.
如果发生 Cn (min), ACn丟失的情况, 按照最近接收到的正常 Cn值恢 复客户数据和客户时钟。  If Cn (min) occurs and ACn is lost, the customer data and the customer clock are restored according to the most recently received normal Cn value.
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护 范围应以所述权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto, and any person skilled in the art can easily within the technical scope disclosed by the present invention. Any changes or substitutions are contemplated as being within the scope of the invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.

Claims

权利 要求 书 Claim
1、 一种在自适应恒定比特率业务中发送映射开销的方法, 其特征在于, 包 括:  A method for transmitting mapping overhead in an adaptive constant bit rate service, comprising:
获取当前传送帧周期所接收的客户数据字节数量相对于参考值的变化值; 将所述变化值放置到光信道净荷单元开销区;  Obtaining a change value of the number of customer data bytes received by the current transmission frame period with respect to the reference value; and placing the change value into the optical channel payload unit overhead area;
生成光网络帧并进行发送。  Generate an optical network frame and send it.
2、 根据权利要求 1所述的发送映射开销的方法, 其特征在于, 所述获取当 前传送帧周期所接收的客户数据字节数量相对于参考值的变化值包括:  The method for transmitting a mapping overhead according to claim 1, wherein the obtaining the value of the number of customer data bytes received in the current transmission frame period relative to the reference value comprises:
获取当前传送帧周期以及上一个传送帧周期中所接收的客户数据字节数 量, 将上一个传送帧周期中所接收的客户数据字节数量作为参考值;  Obtaining the current transmission frame period and the number of customer data bytes received in the previous transmission frame period, and using the number of customer data bytes received in the previous transmission frame period as a reference value;
对当前传送帧周期内的所述字节数量与上一个传送帧周期内的所述字节数 量进行比较, 得到当前传送帧周期中所传送的客户数据字节数量相对于参考值 的变化值。  The number of bytes in the current transmission frame period is compared with the number of bytes in the previous transmission frame period to obtain a change value of the number of client data bytes transmitted in the current transmission frame period with respect to the reference value.
3、 根据权利要求 1所述的发送映射开销的方法, 其特征在于, 所述获取当 前传送帧周期所接收的客户数据字节数量相对于参考值的变化值包括:  The method for transmitting a mapping overhead according to claim 1, wherein the obtaining the value of the number of customer data bytes received in the current transmission frame period relative to the reference value comprises:
获取当前传送帧周期中所接收的客户数据字节数量;  Obtaining the number of customer data bytes received in the current transmission frame period;
根据客户时钟和本地时钟获取传送帧周期所接收的客户数据字节数量最小 值, 将该最小值作为参考值;  Obtaining a minimum value of the number of customer data bytes received in the transmission frame period according to the customer clock and the local clock, and using the minimum value as a reference value;
对当前传送帧周期内的所述字节数量与所述最小值进行比较, 得到当前传 送帧周期中所传送的客户数据字节数量相对于参考值的变化值。  The number of bytes in the current transmission frame period is compared with the minimum value to obtain a change value of the number of customer data bytes transmitted in the current transmission frame period with respect to the reference value.
4、 一种在自适应恒定比特率业务中接收映射开销的方法, 其特征在于, 包 括:  4. A method for receiving mapping overhead in an adaptive constant bit rate service, the method comprising:
解析光网络帧;  Parsing the optical network frame;
根据对所述光网络帧的解析结果, 获取当前传送帧周期内的客户数据字节 数量相对于参考值的变化值;  Obtaining a change value of the number of client data bytes in the current transmission frame period relative to the reference value according to the parsing result of the optical network frame;
根据所述变化值和所述参考值获取当前传送帧周期所传送的客户数据字节 数量。 Obtaining a client data byte transmitted by the current transmission frame period according to the change value and the reference value Quantity.
5、 根据权利要求 4所述的接收映射开销的方法, 其特征在于, 所述根据所 述变化值和所述参考值获取当前传送帧周期所传送的客户数据字节数量包括: 获取上一个传送帧周期中所接收的客户数据字节数量, 将该字节数量作为 参考值;  The method for receiving a mapping overhead according to claim 4, wherein the obtaining the number of client data bytes transmitted by the current transmission frame period according to the change value and the reference value comprises: acquiring a previous transmission The number of customer data bytes received in the frame period, the number of bytes is used as a reference value;
将上一个传送帧周期中所接收的客户数据字节数量减去 /加上所述变化值, 得到当前传送帧周期所传送的客户数据字节数量。  The number of customer data bytes transmitted in the current transmission frame period is obtained by subtracting/adding the change value to the number of customer data bytes received in the previous transmission frame period.
6、 根据权利要求 4所述的接收映射开销的方法, 其特征在于, 所述根据所 述变化值和所述参考值获取当前帧所传送的客户数据字节数量包括:  The method for receiving a mapping overhead according to claim 4, wherein the obtaining the number of client data bytes transmitted by the current frame according to the change value and the reference value comprises:
根据客户时钟和本地时钟获取传送帧周期所接收的客户数据字节数量的最 小值, 将该最小值作为参考值;  Obtain a minimum value of the number of customer data bytes received in the transmission frame period according to the client clock and the local clock, and use the minimum value as a reference value;
将所述最小值加上所述变化值, 得到当前帧所传送的客户数据字节数量。 The minimum value is added to the change value to obtain the number of customer data bytes transmitted by the current frame.
7、 一种在自适应恒定比特率业务中发送映射开销的装置, 其特征在于, 包 括: 7. Apparatus for transmitting mapping overhead in an adaptive constant bit rate service, comprising:
变化值获取模块, 用于获取当前传送帧周期所接收的客户数据字节数量相 对于参考值的变化值;  a change value obtaining module, configured to acquire a change value of the number of customer data bytes received by the current transmission frame period relative to the reference value;
映射开销插入模块, 用于将所述变化值放置到光信道净荷单元开销区; 生成模块, 用于生成光网络帧并进行发送。  And a mapping overhead insertion module, configured to: put the change value into an optical channel payload unit overhead area; and generate a module, configured to generate an optical network frame and send the same.
8、 根据权利要求 7所述的发送映射开销的装置, 其特征在于, 所述变化值 获取装置包括:  The apparatus for transmitting a mapping overhead according to claim 7, wherein the change value obtaining means comprises:
緩存单元, 用于获取当前传送帧周期以及上一个传送帧周期中所接收的客 户数据字节数量, 将上一个传送帧周期中所接收的客户数据字节数量作为参考 值, 或者获取当前传送帧周期中所接收的客户数据字节数量以及传送帧周期所 接收的客户数据字节数量的最小值, 将该最小值作为参考值;  a buffer unit, configured to obtain a current transmission frame period and a number of customer data bytes received in a previous transmission frame period, use the number of customer data bytes received in the previous transmission frame period as a reference value, or obtain a current transmission frame. The minimum number of customer data bytes received in the cycle and the minimum number of customer data bytes received during the transmission frame period, and the minimum value is used as a reference value;
比较单元, 用于对当前传送帧周期内的所述字节数量与上一个传送帧周期 内的所述字节数量进行比较, 或者对当前传送帧周期内的所述字节数量与传送 帧周期内所接收的客户数据字节数量的最小值进行比较, 得到当前传送帧周期 中所接收的客户数据字节数量相对于参考值的变化值。 a comparing unit, configured to compare the number of bytes in a current transmission frame period with the number of bytes in a previous transmission frame period, or to transmit the number of bytes in a current transmission frame period The minimum value of the number of customer data bytes received during the frame period is compared to obtain a change value of the number of customer data bytes received in the current transmission frame period with respect to the reference value.
9、 一种在自适应恒定比特率业务中接收映射开销的装置, 其特征在于, 包 括:  9. An apparatus for receiving mapping overhead in an adaptive constant bit rate service, the method comprising:
解析模块, 用于解析光网络帧;  a parsing module, configured to parse an optical network frame;
变化值获取模块, 用于根据对所述光网络帧的解析结果, 获取当前帧周期 内的客户数据字节数量相对于参考值的变化值;  a change value obtaining module, configured to obtain, according to a parsing result of the optical network frame, a change value of a quantity of customer data bytes in a current frame period with respect to a reference value;
数量获取模块, 用于根据所述变化值和所述参考值获取当前帧所传送的客 户数据字节数量。  And a quantity obtaining module, configured to obtain, according to the change value and the reference value, a quantity of customer data bytes transmitted by the current frame.
1 0、 根据权利要求 9 所述的接收映射开销的装置, 其特征在于, 所述数量 获取模块包括:  The apparatus for receiving a mapping overhead according to claim 9, wherein the quantity obtaining module comprises:
存储单元, 用于放置所获取的上一个传送帧周期中所接收的客户数据字节 数量, 将该字节数量作为参考值, 或者放置所获取的传送帧周期内所接收的客 户数据字节数量的最小值, 将该最小值作为参考值;  a storage unit, configured to place the number of customer data bytes received in the last transmission frame period obtained, use the number of bytes as a reference value, or place the number of customer data bytes received in the obtained transmission frame period The minimum value, which is the reference value;
计算单元, 用于将上一个传送帧周期中所接收的客户数据字节数量减去 /加 上所述变化值, 得到当前帧所传送的客户数据字节数量; 或者将传送帧周期内 所接收的客户数据字节数量的最小值加上所述变化值, 得到当前帧所传送的客 户数据字节数量。  a calculating unit, configured to subtract/add the value of the number of customer data bytes received in the last transmission frame period to obtain the number of customer data bytes transmitted by the current frame; or receive the received data frame period The minimum value of the number of customer data bytes plus the change value is the number of customer data bytes transmitted by the current frame.
PCT/CN2009/072776 2008-10-14 2009-07-15 Method and device for transmitting and receiving mapping overheads WO2010043128A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200810169586.9 2008-10-14
CN200810169586.9A CN101729188B (en) 2008-10-14 2008-10-14 Send and receive the method for mapping cost, device

Publications (1)

Publication Number Publication Date
WO2010043128A1 true WO2010043128A1 (en) 2010-04-22

Family

ID=42106217

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/072776 WO2010043128A1 (en) 2008-10-14 2009-07-15 Method and device for transmitting and receiving mapping overheads

Country Status (2)

Country Link
CN (1) CN101729188B (en)
WO (1) WO2010043128A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102186127B (en) * 2011-05-09 2015-05-20 中兴通讯股份有限公司 Data mapping method and system of optical channel transport unit (OTUk)
CN106941388B (en) * 2016-01-04 2019-11-29 南京中兴软件有限责任公司 The determination method and device of channel status

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1274217A (en) * 1999-05-14 2000-11-22 朗迅科技公司 Method of effciently automatic repeating requirements using variable length sequence numbers
CN1901536A (en) * 2005-07-18 2007-01-24 华为技术有限公司 Processing method for communication system transmitting and receiving data using general frame forming rule
CN101155006A (en) * 2006-09-30 2008-04-02 华为技术有限公司 Method and apparatus for fixed velocity service transmission

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100373847C (en) * 2004-12-14 2008-03-05 华为技术有限公司 Method for transmitting low-speed service signal in OTN
CN100589365C (en) * 2007-09-14 2010-02-10 中兴通讯股份有限公司 Method for time slot partition and overhead processing of optical payload unit in light transmission network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1274217A (en) * 1999-05-14 2000-11-22 朗迅科技公司 Method of effciently automatic repeating requirements using variable length sequence numbers
CN1901536A (en) * 2005-07-18 2007-01-24 华为技术有限公司 Processing method for communication system transmitting and receiving data using general frame forming rule
CN101155006A (en) * 2006-09-30 2008-04-02 华为技术有限公司 Method and apparatus for fixed velocity service transmission

Also Published As

Publication number Publication date
CN101729188A (en) 2010-06-09
CN101729188B (en) 2016-10-05

Similar Documents

Publication Publication Date Title
US11316802B2 (en) Time transfer systems and methods over a stream of Ethernet blocks
CN108880686B (en) Single-chip ONU (optical network Unit) of FPGA (field programmable Gate array) transceiver for multi-application PON (Passive optical network)
US8638683B2 (en) Frame signal generating method and frame signal generating device
US20090154475A1 (en) Transport of aggregated client packets
US20090263131A1 (en) Method and system for transmitting ethernet data in an optical transport network
CN113508543A (en) Method for adapting a constant bit rate client signal into a path layer of a telecommunication signal
WO2008154860A1 (en) Client signal transport method and apparatus in optical transport network
US20200091932A1 (en) Bit block stream bit error detection method and device
EP2254276A1 (en) Method for signalling of data transmission path properties to a non-OAM observent client
WO2013079255A1 (en) Method and related network element providing delay measurement in an optical transport network
US20090103565A1 (en) Data transmission system, transmitter, and data transmission control method
WO2020088674A1 (en) Service sending method and apparatus, service receiving method and apparatus, and system and storage medium
US8644347B2 (en) Transporting optical data units in an optical transport network
WO2022001124A1 (en) Transmission method, detection method and apparatus, acquisition method, network device and system
JP5690938B2 (en) Method and apparatus for transmitting traffic in a communication network
WO2010043128A1 (en) Method and device for transmitting and receiving mapping overheads
WO2020253403A1 (en) Overhead monitoring method and apparatus, and computer readable storage medium
WO2012068847A1 (en) Method and apparatus for recovering clock of optical transport network using reference clock
US20030185212A1 (en) Circuit emulation service
JP2004221952A (en) Transmission method and transmitter
JP2011114380A (en) Communication system, transmitter, receiver, communication device, transmission line quality estimating method, and program
JP2009130923A (en) Packet communication system
CN101510818A (en) Detection method, device and system for optical fiber link
JP2769012B2 (en) Cell missing error delivery detection and correction method
ITMI951607A1 (en) DEVICE AND METHOD FOR IMPLEMENTING ATM ADAPTATION LEVEL PROTOCOL FUNCTIONS (AAL) IN A NETWORK

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

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

Country of ref document: EP

Kind code of ref document: A1