WO2017063457A1 - Rate adaptation method and apparatus, and computer storage medium - Google Patents

Rate adaptation method and apparatus, and computer storage medium Download PDF

Info

Publication number
WO2017063457A1
WO2017063457A1 PCT/CN2016/097617 CN2016097617W WO2017063457A1 WO 2017063457 A1 WO2017063457 A1 WO 2017063457A1 CN 2016097617 W CN2016097617 W CN 2016097617W WO 2017063457 A1 WO2017063457 A1 WO 2017063457A1
Authority
WO
WIPO (PCT)
Prior art keywords
gfp
frames
value
idle
fifo
Prior art date
Application number
PCT/CN2016/097617
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 WO2017063457A1 publication Critical patent/WO2017063457A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0067Rate matching

Definitions

  • the present invention relates to the field of optical transmission networks, and in particular, to a rate adaptation method and apparatus, and a computer storage medium.
  • GFP Generic Framing Procedure
  • transparent GFP transmits fixed-length data blocks. It is an advanced, simple, and flexible service rate adaptation and mapping technology. GFP adopts a frame delimiting method similar to the Asynchronous Transfer Mode (ATM). It can transparently encapsulate services and transmit them effectively in existing transmission networks, which facilitates interconnection and interoperability of multiple operators. GFP is characterized by versatility, simplicity and flexibility. Its emergence enables multiple services to be mapped to physical channels using a common set of framing techniques, which makes the network platform more uniform and efficient.
  • ATM Asynchronous Transfer Mode
  • the frame structure after GFP encapsulation needs to be mapped into the frame structure of the Optical Transport Network (OTN), and the rate of the OTN is several fixed rates, so there exists between the service rate and the OTN rate that needs to be mapped.
  • Rate rate adaptation is required when the rate is skewed.
  • the prior art rate adaptation method uses a water bit line of a first input first out queue (FIFO) to insert an idle frame for adaptation.
  • the idle frame can be simply referred to as IDLE, because the FIFO water level line is uncontrollable.
  • IDLE inserted between every two GFP frames will be uneven, which introduces the jitter of the GFP frame.
  • the service is There will be jitter, which will affect the performance of the entire OTN system.
  • the data after the GFP encapsulation unit is written into the FIFO of the GFP rate adaptation unit, and the FIFO of the GFP speed control unit is read using the GFP control rate, when the water level line of the FIFO of the GFP speed control unit is lower than the threshold.
  • IDLE is inserted until the water level line of the FIFO of the GFP speed control unit reaches the threshold, and the next GFP frame of the FIFO of the GFP speed control unit is read.
  • the burst scenario is that consecutive GFP frames of consecutive N frames are consecutive, resulting in no idle between N GFP frames, and all idles are inserted after N GFP frames.
  • an embodiment of the present invention provides a rate adaptation method and apparatus, and a computer storage medium, which solves the problem of uneven spacing between frames of a transparent framing universal framing procedure GFP-T, and improves system stability. Sex.
  • the embodiment of the invention provides a rate adaptation method, where the rate adaptation method includes:
  • Determining the number of idle frames to be inserted into each frame of the N general framing procedure GFP frames is a first value
  • the water level line of the speed control FIFO is greater than or equal to a preset readability threshold, and the GFP frame interval indication signal is valid, starting to read the speed control FIFO;
  • the idle frame is inserted until the inserted idle frames are After the number is greater than or equal to the first value, the reading of the next GFP frame of the throttle FIFO continues.
  • an idle frame is inserted in each frame of the determined N GFP frames. Before the number is the first value, including:
  • the determining the number of idle frames to be inserted into each of the N GFP frames is a first value, including:
  • Determining, according to the second value and the N, the number of idle frames to be inserted per frame is a first value.
  • the determining the number of idle frames to be inserted in the preset time is a second value, including:
  • the number of the service control rate gaps in the preset time is the third value, and the number of the GFP control rate gaps in the preset time is the fourth value;
  • the second value is determined based on the third value and the fourth value.
  • the rate adaptation method further includes:
  • the GFP frame interval indication signal is effective to include reading to the speed control FIFO output data beat count as one GFP frame length.
  • the embodiment of the present invention provides a rate adaptation device, where the rate adaptation device includes: a determining unit and a speed adjusting unit, where
  • the determining unit is configured to determine that the number of idle frames to be inserted in each frame of the N common framing procedure GFP frames is a first value; and is further configured to determine whether it is the first read first in first out queue speed control FIFO;
  • the speed control unit is configured to: when it is determined that the speed control FIFO is read for the first time, the water level line of the speed control FIFO is greater than or equal to a preset readability threshold, and the GFP frame interval indication signal is valid, start reading speed adjustment FIFO
  • the speed control unit is further configured to insert an idle frame when the GFP frame interval indication signal is valid, and the number of currently inserted idle frames is less than the first value, when it is determined that the VT frame interval indication signal is not the first time. Until the number of inserted idle frames is greater than or equal to the first value, the reading of the next GFP frame of the throttle FIFO continues.
  • the rate adaptation apparatus further includes: a storage unit, an allocation unit,
  • the determining unit is configured to determine that the number of idle frames that need to be inserted in the preset time is a second value
  • the storage unit is configured to store the second value in a storage idle number FIFO, where the preset time is a transmission time of N GFP frames, where N is greater than 1, and N is a natural number;
  • the allocating unit is configured to allocate the second number of idle frames to every two frames of N GFP frames in the preset time.
  • the determining unit is configured to determine, according to the second value and the N, the number of idle frames to be inserted per frame as a first value.
  • the determining unit is configured to obtain the number of the service control rate gaps in the preset time period as a third value, and obtain the number of the GFP control rate gaps in the preset time period. a fourth value; determining the second value based on the third value and the fourth value.
  • the speed control unit is configured to start reading when the water bit line storing the idle number FIFO is greater than a preset threshold and starting to read the first frame of the N GFP frames Take the storage idle FIFO.
  • the GFP frame interval indication signal is effective to include reading to the speed control FIFO output data beat count as one GFP frame length.
  • the embodiment of the present invention provides a computer storage medium.
  • the computer storage medium provided by the embodiment of the present invention stores a computer program, and the computer program is used to execute the foregoing rate adaptation method.
  • the embodiment of the present invention provides a rate adaptation method and apparatus, and a computer storage medium.
  • the rate adaptation apparatus determines that the number of idle frames to be inserted in each frame of the N GFP frames is the first value; determining whether it is the first read.
  • Speed control FIFO when it is determined that the speed FIFO is read for the first time, the water level line of the speed control FIFO is greater than or equal to a preset readability threshold, and when the GFP frame interval indication signal is valid, the reading speed control FIFO is started; Instead of reading the throttle FIFO for the first time, the GFP frame interval indication signal is valid, and when the number of currently inserted idle frames is less than the first value, the idle frame is inserted until the number of inserted idle frames is greater than After being equal to the first value, continue reading the next GFP frame of the throttle FIFO.
  • the rate adaptation method and apparatus solve the problem that the interval between the frames of the GFP-T is not determined by determining the number of idle frames to be inserted in each frame of the N GFP frames.
  • the uniform problem achieves the effect of inserting IDLE evenly after GFPT speed regulation, which saves the implementation complexity of recovering the service rate during GFPT decapsulation and improves the overall system performance.
  • FIG. 2 is a schematic structural diagram of a device for mapping a client service to an OTN network in the prior art
  • FIG. 3 is a schematic structural diagram of an apparatus for mapping a client service to an OTN network according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram 1 of a rate adaptation apparatus according to an embodiment of the present invention.
  • FIG. 5 is a second schematic diagram of a rate adaptation apparatus according to an embodiment of the present invention.
  • FIG. 6 is a schematic flowchart 1 of a rate adaptation method according to an embodiment of the present disclosure.
  • FIG. 7 is an effect diagram of rate adaptation according to an embodiment of the present invention.
  • FIG. 8 is a second schematic flowchart of a rate adaptation method according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram 1 of a rate adaptation apparatus according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram 2 of a rate adaptation apparatus according to an embodiment of the present invention.
  • the apparatus includes: a serializer, and a physical decoding sublayer processing. Unit, 64B/65B encoding, GFP encapsulation unit, GFP rate adaptation unit, and mapping unit.
  • the serializer is configured to output the received serial data in parallel.
  • the physical decoding sub-layer processing unit is configured to process according to the type of customer service. For example, when the client service is an 8B10B service, the received parallel data is first byte-synchronized, then 10B is converted into 8B data, and the control code or data code indication is outputted; when the client service is not the 8B10B service, the physical decoding is directly transmitted.
  • the sub-layer processing unit the output is all considered to be a data code, and there is no control code.
  • the 64B/65B code is configured to process the data output by the physical decoding sublayer processing unit into a super block. If the output data is a control code, 64B/65B encoding is required; if the output data is a data code, no conversion is needed. .
  • the 8-byte data after encoding and the 8-bit control code data code are indicated to form a 64B/65B data block.
  • the 65B is subjected to CRC-16 calculation, and after obtaining the 2B check code and the 65B data, a super block is formed. For details, refer to the protocol G.7041.
  • a GFP encapsulation unit configured to group a plurality of super blocks into one GFP frame.
  • FCS Focus Control System
  • the extension header is used to determine the GFP frame payload length, and the obtained length is calculated by CRC-16.
  • CRC-16 cyclic redundancy check
  • the device for mapping customer service to OTN network includes: serializer, physical coding sublayer processing unit, 64B/65B encoding, GFP encapsulating unit, GFP rate adaptation unit, and mapping unit.
  • the serializer the physical coding sublayer processing unit, the 64B/65B encoding, the GFP encapsulating unit, and the mapping unit have the same working principle as the prior art in FIG.
  • the apparatus for mapping the customer service to the OTN network uses the service control rate gap output by the physical decoding sublayer unit to perform control, because the service control rate gap is uniform and there is no jitter. Therefore, the speed can be adjusted by the service control rate gap, that is, the rate adaptation; or can be directly transmitted from the serializer and transparently transmitted in the physical decoding sub-layer unit.
  • the serializer serially converts the received serial data into a physical decoding sub-layer unit for 8B/10B decoding to distinguish the control code and the data code; the 64B/65B encoding module will have 8 8B data.
  • the control code and data code it is converted into a 64B/65B;
  • the GFP encapsulation unit combines 8 64B/65B into one super block, and multiple super blocks form the payload of a GFP frame, and then add the upper core header, the payload head and
  • the FCS check field forms a GFP frame;
  • the GFP encapsulated data is sent to the GFP rate adaptation unit for speed control processing and then sent to the mapping unit for mapping to the OTN network.
  • the rate adaptation apparatus is described only on the encapsulation side of the transparent general framing protocol transparent mode (GFPT), that is, on the uplink side, and the GFPT decapsulation side, that is, the downlink side is not described.
  • GFPT transparent general framing protocol transparent mode
  • the rate adaptation apparatus provided by the embodiment of the present invention may be understood as the GFP rate adaptation unit in FIG. 3 above. As shown in FIG. 4, the rate adaptation apparatus may include:
  • the time control unit determines the transmission time using the N GFP frames as the preset time. Since the length of the client data encapsulated in the GFP frame is fixed, the length of the client data in the N frame GFP frame is used as the preset time.
  • the idle number determining unit is configured to calculate the number of idle frames in the preset time, and determine the number of service control rate gaps and the number of GFP control gaps in the preset time, and the difference between the two is N frame GFP. The total number of idles in the frame.
  • the idle cells are equally allocated, and are configured to allocate the idle frames determined by the idle frame number determining unit to be averaged between every two GFP frames in a preset time.
  • the speed control FIFO information counting unit is configured to count the number of output GFP frames, the number of idle frame beats, and the number of GFP frame data beats.
  • the speed control FIFO reads the logic control unit, and performs read speed regulation FIFO control according to the control information generated by the speed regulation FIFO information counting unit.
  • the business data input unit is used as the write logic control of the speed control FIFO.
  • Speed FIFO configured to store GFP frames.
  • the apparatus for further refining the rate adaptation apparatus according to the embodiment of the present invention further specifically refines the number of idle determination units and the speed adjustment FIFO information counting unit. .
  • the idle number determining unit may include a read logical unit storing an idle number FIFO, an idle number calculating unit, and a storage idle number FIFO.
  • the idle number calculation unit is configured to calculate the number of idle frames in a preset time, and determine the number of service control rate gaps and the number of GFP control gaps in a preset time, and the difference between the two is N.
  • the storage idle number FIFO is configured to store the total number of IDLEs per N frames. Due to business There is jitter in the data gap. When a GFP frame is output and the corresponding IDLE is inserted, the next GFP frame is not ready yet, and the IDLE is inserted after the GFP frame is outputted. This causes an error, so when the jitter occurs. When large, it is necessary to store the idle number FIFO to absorb the jitter, that is, the next GFP frame is not ready yet, and the corresponding IDLE is continued to be inserted until the next GFP frame is output.
  • the read logic unit storing the idle number FIFO is configured to determine whether the water level line of the current idle number FIFO reaches a preset threshold, and if the water level line of the current idle number FIFO is greater than or equal to a preset threshold, and the speed adjustment
  • the FIFO starts reading the first frame of the N GFP frames, it begins to read and store the free FIFO, that is, starts reading the idle frame in the free FIFO.
  • the read logic unit storing the idle number FIFO is determined by the speed regulation FIFO output GFP frame number counting unit and the speed regulation FIFO read enable.
  • the GFP frame interval indication generating unit is configured to determine a GFP frame interval indication signal, and according to the GFP frame interval indication signal, it can be determined when the idle frame is inserted.
  • the GFP frame interval indication generation unit is determined by the speed regulation FIFO output data beat calculation unit and the speed regulation FIFO read enable.
  • the speed control FIFO output data beat count unit is configured to count the number of beats of the data output by the speed control FIFO. When the count value reaches a GFP frame length, it indicates that a complete GFP frame has been output at this time, and the IDLE frame can be inserted. . And the speed FIFO output GFP frame counting unit is increased by 1, and is cleared when the speed FIFO output GFP frame counting unit is N-1, because the IDLE value is calculated once every N frames, and the data stored in the idle number FIFO corresponds to Is the total number of IDLEs per N frames.
  • the embodiment of the present invention provides a rate adaptation method.
  • the rate adaptation method may include:
  • Step 101 Determine the number of idle frames to be inserted into each frame of the N general framing procedure GFP frames as a first value.
  • the execution body of the rate adaptation method provided by the embodiment of the present invention is a rate adaptation device.
  • the rate adaptation device determines that the number of idle frames to be inserted per frame in the N general framing procedure GFP frames is a first value.
  • the total number of idle frames IDLE read from the stored idle number FIFO is the total number of IDLEs of the N GFP frames is A, and the number of IDLEs A is divided by N, that is, A/N, if the value of A/N For C, the remainder is B. If B is 0, then the IDLE to be inserted per frame is the value C of A/N; if B is not 0, the IDLE value to be inserted per frame is the sum of C and the allocation remainder D, and the allocation is The remainder D is to evenly distribute B into N GFP frames, and the remainder B cannot be passed to the next N GFP frames.
  • the first frame, the third frame, the fifth frame and the seventh frame have a D of 1, and the rest are 0;
  • Step 102 Determine whether it is the first time to read the speed control FIFO.
  • the rate adaptation device determines whether it is the first time to read the speed control FIFO.
  • Step 103 When it is determined that the speed control FIFO is read for the first time, the water level line of the speed control FIFO is greater than or equal to a preset readability threshold, and the GFP frame interval indication signal is valid, the reading of the speed control FIFO is started.
  • the rate adaptation device determines to read the speed control FIFO for the first time, and determines whether the water level line of the speed control FIFO is greater than or equal to a preset readability threshold, when the water level line of the speed control FIFO is greater than or equal to a preset readability threshold, and GFP When the frame interval indication signal is valid, the read speed FIFO is started, that is, the second read speed FIFO is started.
  • the GFP frame interval indication signal is determined. When it is read that the speed FIFO output data beat count is one GFP frame length, the GFP frame interval indication signal is valid until the GFP frame interval indication signal is invalid until the next time the speed control FIFO is read.
  • the GFP frame interval indication signal is valid, that is, outputting a complete GFP frame, the insertion of the idle frame can be performed, preventing the output from being a complete GFP frame, an error is generated when an idle frame is inserted.
  • Step 104 When it is determined that the VT frame interval indication signal is not valid for the first time, and the GFP frame interval indication signal is valid, and the number of currently inserted idle frames is less than the first value, the idle frame is inserted until the inserted idle After the number of frames is greater than or equal to the first value, the next GFP frame of the throttle FIFO is continuously read.
  • the rate adaptation device determines that the speed adjustment FIFO is not read for the first time, and may determine that the GFP frame interval indication signal is valid at this time, and simultaneously determine that the number of IDLEs that have been inserted is smaller than the above determined frame to be inserted.
  • the first value of the number of idle frames indicates that IDLE needs to be inserted at this time, and then IDLE is inserted until the inserted IDLE is greater than or equal to the first value, and then the next GFP frame of the speed control FIFO is continued, otherwise the IDLE continues to be inserted until The number of inserted IDLEs is greater than the first value.
  • the rate adaptation method provided by the embodiment of the present invention solves the problem of uneven spacing between frames of GFP-T by determining the number of idle frames to be inserted in each frame of the N GFP frames.
  • the effect of inserting IDLE uniformity after GFPT speed regulation is achieved, which saves the implementation complexity of recovering the service rate during GFPT decapsulation and improves the overall system performance.
  • the embodiment of the present invention provides a rate adaptation method.
  • the rate adaptation method may include:
  • Step 201 Determine the number of idle frames to be inserted in the preset time as a second value, and store the second value in the stored idle number FIFO, and allocate the second number of idle frames.
  • the preset time is the transmission time of N GFP frames between each two frames of the N GFP frames in the preset time, where N is greater than 1, and N is a natural number.
  • the execution body of the rate adaptation method provided by the embodiment of the present invention is a rate adaptation device, where the rate adaptation device determines that the number of idle frames that need to be inserted within a preset time is a second value, and the The second value is stored in the FIFO count FIFO.
  • the rate adaptation device obtains the number of the service control rate gaps in the preset time as a third value, and obtains the number of the GFP control rate gaps in the preset time as a fourth value;
  • the third value and the fourth value determine the second value.
  • the GFP control rate needs to be configured when the customer service rate is mapped to the OTN network, that is, several rates supported by the OTN network, and the GFP control rate must be greater than the customer service.
  • the rate can map the traffic to the OTN network. This rate difference requires the insertion of additional IDLEs into the service data that have reached the GFP control rate.
  • the physical decoding sub-layer unit outputs a service control rate gap and a service data gap, where the service control rate gap is a uniform rate, indicating a transmission rate of the service data; the service data gap is processed and transmitted to the 64B/ by the physical decoding sub-layer unit.
  • 65B coding because the service data is processed in the process of physically decoding the sub-layer unit, the data is delayed or cached, so the transmission of the service data will generate a certain rate jitter, not a uniform rate.
  • the frame length after the GFPT encapsulation is a fixed length, and the length of one frame of the GFP frame is determined according to whether the FCS is enabled, whether there is an extension header, and the number of super blocks to be encapsulated in the GFP.
  • the transmission time of the fixed N GFP frames is used as a preset time, and the number of GFP control rate gaps in the preset time is calculated, and the number of the GFP control rate gaps is subtracted.
  • the number of N frames of GFP frame length can determine the total number of IDLEs to be inserted in the N frame GFP frame, that is, the first value, and then store the first value in the storage idle number FIFO.
  • the number of idles is stored in the FIFO. Since there is jitter in the service data gap, when a GFP frame is output and the corresponding IDLE is inserted, the next GFP frame is not ready yet. This will cause IDLE to be inserted after a part of the GFP frame output, thus causing an error. Therefore, when the jitter is too large, it is necessary to store the free number of FIFOs to absorb the jitter, that is, the next GFP frame is not ready yet, and the corresponding IDLE is continuously inserted. Until the next GFP frame is output.
  • the data beat number counting unit is outputted through the speed control FIFO, and the number of beats of the data output by the speed control FIFO is counted.
  • the count value reaches a GFP frame length, the description is made.
  • an IDLE frame can be inserted.
  • the speed FIFO output GFP frame counting unit is increased by 1, and is cleared when the speed FIFO output GFP frame counting unit is N-1, because the IDLE value is calculated once every N frames, and the data stored in the idle number FIFO corresponds to Is the total number of IDLEs per N frames.
  • Step 202 When the water bit line storing the idle number FIFO is greater than a preset threshold, and starting to read the first frame of the N GFP frames, start to read the storage idle FIFO.
  • the read logic unit of the rate adaptation device storing the idle number FIFO determines whether the water bit line of the current idle number FIFO reaches a preset threshold, and if the current water level line of the idle number FIFO is When the preset threshold is greater than or equal to the preset threshold, and the throttle FIFO starts to read the first frame of the N GFP frames, the read storage idle FIFO is started, that is, the idle frame in the read idle FIFO is started to be read.
  • Step 203 Determine the number of idle frames to be inserted into each frame of the N general framing procedure GFP frames as a first value.
  • the rate adaptation apparatus determines that the number of idle frames to be inserted in each frame of the N general framing procedure GFP frames is a first value.
  • the total number of idle frames IDLE read from the number of stored idle FIFOs is the total number of IDLEs of N GFP frames is A, and the number of IDLEs A is divided by N, that is, A/N. If the value of A/N is C, The remainder is B. If B is 0, then the IDLE to be inserted per frame is A/N value C; if B is not 0, the IDLE value to be inserted per frame is the sum of C and the allocation remainder D, and the allocation remainder D is to evenly distribute B into N GFP frames, and the remainder B cannot be transmitted to In the next N GFP frames.
  • the first frame, the third frame, the fifth frame and the seventh frame have a D of 1, and the rest are 0;
  • Step 204 Determine whether it is the first time to read the speed control FIFO.
  • the rate adaptation device determines whether it is the first time to read the speed control FIFO.
  • Step 204 When it is determined that the speed control FIFO is read for the first time, the water level line of the speed control FIFO is greater than or equal to a preset readability threshold, and the GFP frame interval indication signal is valid, the reading of the speed control FIFO is started.
  • the rate adaptation device determines to read the speed control FIFO for the first time, and determines whether the water level line of the speed control FIFO is greater than or equal to a preset readability threshold, when the water level line of the speed control FIFO is greater than or equal to a preset readability threshold, and GFP When the frame interval indication signal is valid, the read speed FIFO is started, that is, the second read speed FIFO is started.
  • the GFP frame interval indication signal is determined by using the throttle FIFO read enable signal and the throttle FIFO output data beat count.
  • the GFP frame interval indication signal is valid until the GFP frame interval indication signal is invalid until the next time the speed control FIFO is read.
  • the GFP frame interval indication signal is valid, that is, a complete GFP frame is output, and the idle frame can be inserted to prevent the output from being a complete GFP frame, and an error is generated when the idle frame is inserted.
  • Step 206 When it is determined that the VT frame interval indication signal is not valid for the first time, and the GFP frame interval indication signal is valid, and the number of currently inserted idle frames is less than the first value, the idle frame is inserted until the inserted idle After the number of frames is greater than or equal to the first value, the next GFP frame of the throttle FIFO is continuously read.
  • the rate adaptation device determines that the speed adjustment FIFO is not read for the first time, and may determine that the GFP frame interval indication signal is valid at this time, and simultaneously determine that the number of IDLEs that have been inserted is smaller than the above determined frame to be inserted.
  • the first value of the number of idle frames indicates that IDLE needs to be inserted at this time, and then IDLE is inserted until the inserted IDLE is greater than or equal to the first value, and then the next GFP frame of the speed control FIFO is continued, otherwise the IDLE continues to be inserted until The number of inserted IDLEs is greater than the first value.
  • the rate adaptation method provided by the embodiment of the present invention solves the problem of uneven spacing between frames of GFP-T by determining the number of idle frames to be inserted in each frame of the N GFP frames.
  • the effect of inserting IDLE uniformity after GFPT speed regulation is achieved, which saves the implementation complexity of recovering the service rate during GFPT decapsulation and improves the overall system performance.
  • the embodiment of the present invention provides a rate adaptation device 1 .
  • the rate adaptation device 1 includes: a determining unit 10 and a speed adjusting unit 11 .
  • the determining unit 10 is configured to determine that the number of idle frames to be inserted in each frame of the N common framing procedure GFP frames is a first value; and is further configured to determine whether it is the first read speed FIFO;
  • the speed control unit 11 is configured to: when it is determined to be the first read speed first in first out queue FIFO, the water level line of the speed control FIFO is greater than or equal to a preset read threshold, and the GFP frame interval indication signal is valid, start Perform a read speed FIFO;
  • the speed control unit 11 is further configured to: when it is determined that it is not the first time to read the speed control FIFO, the GFP When the frame interval indication signal is valid, and the number of currently inserted idle frames is less than the first value, the idle frame is inserted, and after the number of the inserted idle frames is greater than or equal to the first value, the reading continues. The next GFP frame of the throttle FIFO.
  • the rate adaptation apparatus further includes: a storage unit 12, an allocation unit 13,
  • the determining unit 10 is configured to determine that the number of idle frames that need to be inserted in the preset time is a second value
  • the storage unit 12 is configured to store the second value in a storage idle number FIFO, where the preset time is a transmission time of N GFP frames, where N is greater than 1, and N is a natural number;
  • the allocating unit 13 is configured to allocate the second number of idle frames to every two frames of N GFP frames in the preset time.
  • the determining unit 10 is configured to determine, according to the second value and the N, the number of idle frames to be inserted per frame as a first value.
  • the determining unit 10 is configured to obtain the number of the service control rate gaps in the preset time period as a third value, and obtain the number of the GFP control rate gaps in the preset time period. a fourth value; determining the second value based on the third value and the fourth value.
  • the speed control unit 11 is configured to start when the water bit line storing the idle number FIFO is greater than a preset threshold and start reading the first frame of the N GFP frames. Read the storage free FIFO.
  • the GFP frame interval indication signal is effective to: read the speed FIFO output data beat count to a GFP frame length.
  • the rate adaptation apparatus solves the problem of uneven spacing between frames of GFP-T by determining the number of idle frames to be inserted in each frame of the N GFP frames.
  • the effect of inserting IDLE uniformity after GFPT speed regulation is achieved, which saves the implementation complexity of recovering the service rate during GFPT decapsulation and improves the overall system performance.
  • each unit in the rate adaptation device may be implemented by a central processing unit (CPU) or a microprocessor (Micro Processor Unit, MPU) located in the rate adaptation device. ), or a digital signal processor (DSP), or a Field Programmable Gate Array (FPGA).
  • CPU central processing unit
  • MPU Micro Processor Unit
  • DSP digital signal processor
  • FPGA Field Programmable Gate Array
  • the apparatus for tracking the service signaling may also be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a separate product.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
  • a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
  • program codes such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
  • an embodiment of the present invention further provides a computer storage medium, wherein a computer program is stored, and the computer program is used to execute the rate adaptation method of the embodiment of the present invention.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • the technical solution of the embodiment of the present invention by inserting an idle frame into each frame by determining the number of idle frames to be inserted in each frame of the N GFP frames, the problem of uneven spacing between frames of the GFP-T is solved, and the problem is achieved. After the GFPT is adjusted, the IDLE uniform effect is inserted, which saves the implementation complexity of recovering the service rate during GFPT decapsulation and improves the overall system performance.

Landscapes

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

Abstract

Disclosed is a rate adaptation method. The method comprises: determining the number of idle frames to be inserted in each of N GFP frames, as a first value; determining whether the rate adjustment FIFO is read for a first time; when it is determined that the rate adjustment FIFO is read for the first time, the waterline of the rate adjustment FIFO is greater than or equal to a preset readable threshold and a GFP frame interval indication signal is effective, starting to read the rate adjustment FIFO; and when it is determined that the rate adjustment FIFO is not read for the first time, the GFP frame interval indication signal is effective and the number of currently-inserted idle frames is smaller than the first value, inserting idle frames, and until the number of the inserted idle frames is greater than or equal to the first value, continuing to read a next GFP frame of the rate adjustment FIFO. Also disclosed are a rate adaptation apparatus and a computer storage medium.

Description

一种速率适配方法和装置、计算机存储介质Rate adaptation method and device, computer storage medium 技术领域Technical field
本发明涉及光传输网络领域,尤其涉及一种速率适配方法和装置、计算机存储介质。The present invention relates to the field of optical transmission networks, and in particular, to a rate adaptation method and apparatus, and a computer storage medium.
背景技术Background technique
目前,在通信网路中有不同的业务,这些业务对网络的传送性能,例如带宽、延迟、抖动等,提出很高的性能要求,因此,将业务固有的速率、抖动和延迟信息和有效的业务数据一起封装传送的技术应运而生,即通用成帧规程(GFP,Generic Framing Procedure)。At present, there are different services in the communication network, and these services impose high performance requirements on the transmission performance of the network, such as bandwidth, delay, jitter, etc., therefore, the inherent rate, jitter and delay information of the service and the effective The technology of encapsulating and transmitting business data comes into being, namely the Generic Framing Procedure (GFP).
透明GFP作为一种链路层标准,传送固定长度的数据块,是一种先进的、简单的、灵活的业务速率适配、映射技术。GFP采用与异步传输模式(ATM,Asynchronous Transfer Mode)计数相似的帧定界方式,通过它可以透明的将业务封装,在现有传输网络中有效的传输,利于多运营商设备互联互通。GFP具有通用性、简单性和灵活性的特点。它的出现使得多种业务可以使用通用的一套成帧技术映射到物理通道中传输,这使得网络平台更趋于统一、高效。As a link layer standard, transparent GFP transmits fixed-length data blocks. It is an advanced, simple, and flexible service rate adaptation and mapping technology. GFP adopts a frame delimiting method similar to the Asynchronous Transfer Mode (ATM). It can transparently encapsulate services and transmit them effectively in existing transmission networks, which facilitates interconnection and interoperability of multiple operators. GFP is characterized by versatility, simplicity and flexibility. Its emergence enables multiple services to be mapped to physical channels using a common set of framing techniques, which makes the network platform more uniform and efficient.
通过GFP封装之后的帧结构需要映射到光传送网(OTN,Optical Transport Network)的帧结构中,而OTN的速率是几种固定的速率,因此当业务速率和需要映射到的OTN速率之间存在速率偏差时,需要进行速率适配。现有技术的速率适配方法就是使用一个先入先出队列(FIFO,First Input First Output)的水位线进行***空闲帧来进行适配,空闲帧可以简称为IDLE,由于FIFO水位线是不可控的,每两个GFP帧之间***的IDLE就会不均匀,从而引入了GFP帧的抖动,在解GFP侧解出业务时,业务就 会出现抖动,从而,会影响整个OTN***的性能。The frame structure after GFP encapsulation needs to be mapped into the frame structure of the Optical Transport Network (OTN), and the rate of the OTN is several fixed rates, so there exists between the service rate and the OTN rate that needs to be mapped. Rate rate adaptation is required when the rate is skewed. The prior art rate adaptation method uses a water bit line of a first input first out queue (FIFO) to insert an idle frame for adaptation. The idle frame can be simply referred to as IDLE, because the FIFO water level line is uncontrollable. The IDLE inserted between every two GFP frames will be uneven, which introduces the jitter of the GFP frame. When the solution is solved on the GFP side, the service is There will be jitter, which will affect the performance of the entire OTN system.
现有技术中在GFP封装单元之后的数据,写入GFP速率适配单元的FIFO中,使用GFP控制速率进行读取GFP调速单元的FIFO,当GFP调速单元的FIFO的水位线低于门限,且当前GFP帧已读完时,***IDLE直到GFP调速单元的FIFO的水位线达到门限之上,才会读GFP调速单元的FIFO的下一个GFP帧。在这种实现方式中,由于物理解码子层单元送过来的业务数据存在抖动,这就会导致GFP调速时***的IDLE不均匀。例如,如图1所示,突发场景是连续N帧的GFP帧都是连续的,造成N个GFP帧之间是没有空闲的,空闲全部插在N个GFP帧之后。In the prior art, the data after the GFP encapsulation unit is written into the FIFO of the GFP rate adaptation unit, and the FIFO of the GFP speed control unit is read using the GFP control rate, when the water level line of the FIFO of the GFP speed control unit is lower than the threshold. And, when the current GFP frame has been read, IDLE is inserted until the water level line of the FIFO of the GFP speed control unit reaches the threshold, and the next GFP frame of the FIFO of the GFP speed control unit is read. In this implementation manner, since the service data sent by the physical decoding sublayer unit has jitter, this may result in uneven IDLE insertion during GFP speed regulation. For example, as shown in FIG. 1, the burst scenario is that consecutive GFP frames of consecutive N frames are consecutive, resulting in no idle between N GFP frames, and all idles are inserted after N GFP frames.
发明内容Summary of the invention
为解决上述技术问题,本发明实施例提供一种速率适配方法和装置、计算机存储介质,解决了透明包封的通用成帧规程GFP-T的帧之间间隔不均匀问题,提高了***稳定性。To solve the above technical problem, an embodiment of the present invention provides a rate adaptation method and apparatus, and a computer storage medium, which solves the problem of uneven spacing between frames of a transparent framing universal framing procedure GFP-T, and improves system stability. Sex.
本发明的技术方案是这样实现的:The technical solution of the present invention is implemented as follows:
本发明实施例提供一种速率适配方法,所述速率适配方法包括:The embodiment of the invention provides a rate adaptation method, where the rate adaptation method includes:
确定N个通用成帧规程GFP帧中每帧要***空闲帧的个数为第一数值;Determining the number of idle frames to be inserted into each frame of the N general framing procedure GFP frames is a first value;
确定是否为第一次读调速先入先出队列FIFO;Determine whether it is the first time to read the speed-first-in first-out queue FIFO;
当确定是第一次读调速FIFO,所述调速FIFO的水位线大于等于预设可读门限,且GFP帧间隔指示信号有效时,开始进行读取调速FIFO;When it is determined that the speed control FIFO is read for the first time, the water level line of the speed control FIFO is greater than or equal to a preset readability threshold, and the GFP frame interval indication signal is valid, starting to read the speed control FIFO;
当确定不是第一次读调速FIFO,所述GFP帧间隔指示信号有效,且当前***的空闲帧的个数小于所述第一数值时,***空闲帧,直到***的所述空闲帧的个数大于等于所述第一数值后,继续读所述调速FIFO的下一个GFP帧。When it is determined that the VT frame interval indication signal is not valid for the first time, and the number of currently inserted idle frames is less than the first value, the idle frame is inserted until the inserted idle frames are After the number is greater than or equal to the first value, the reading of the next GFP frame of the throttle FIFO continues.
在本发明一实施方式中,在所述确定N个GFP帧中每帧要***空闲帧 的个数为第一数值之前,包括:In an embodiment of the present invention, an idle frame is inserted in each frame of the determined N GFP frames. Before the number is the first value, including:
确定预设时间内需要***的空闲帧的个数为第二数值,并将所述第二数值存储在存储空闲个数FIFO中,所述预设时间为N个GFP帧的传输时间,其中,N大于1,N为自然数;Determining, by the second time, that the number of idle frames to be inserted in the preset time is a second value, and storing the second value in the FIFO number of the idle number, wherein the preset time is a transmission time of the N GFP frames, where N is greater than 1, and N is a natural number;
将所述第二数值个空闲帧分配到所述预设时间内N个GFP帧的每两个帧之间。And distributing the second number of idle frames to between every two frames of N GFP frames in the preset time.
在本发明一实施方式中,所述确定N个GFP帧中每帧要***空闲帧的个数为第一数值,包括:In an embodiment of the present invention, the determining the number of idle frames to be inserted into each of the N GFP frames is a first value, including:
根据所述第二数值和所述N确定每帧要***的空闲帧的个数为第一数值。Determining, according to the second value and the N, the number of idle frames to be inserted per frame is a first value.
在本发明一实施方式中,所述确定预设时间内需要***的空闲帧的个数为第二数值,包括:In an embodiment of the present invention, the determining the number of idle frames to be inserted in the preset time is a second value, including:
获取所述预设时间内业务控制速率缺口的个数为第三数值,获取所述预设时间内GFP控制速率缺口的个数为第四数值;The number of the service control rate gaps in the preset time is the third value, and the number of the GFP control rate gaps in the preset time is the fourth value;
根据所述第三数值和第四数值确定所述第二数值。The second value is determined based on the third value and the fourth value.
在本发明一实施方式中,所述速率适配方法还包括:In an embodiment of the invention, the rate adaptation method further includes:
当所述存储空闲个数FIFO的水位线大于预设门限,且开始读取所述N个GFP帧的第一帧时,开始读取存储空闲FIFO。When the water bit line storing the idle number FIFO is greater than a preset threshold and starting to read the first frame of the N GFP frames, the reading of the storage idle FIFO is started.
在本发明一实施方式中,所述GFP帧间隔指示信号有效包括读取到调速FIFO输出数据拍数计数为一个GFP帧长。In an embodiment of the invention, the GFP frame interval indication signal is effective to include reading to the speed control FIFO output data beat count as one GFP frame length.
本发明实施例提供一种速率适配装置,所述速率适配装置,包括:确定单元、调速单元,其中,The embodiment of the present invention provides a rate adaptation device, where the rate adaptation device includes: a determining unit and a speed adjusting unit, where
所述确定单元,配置为确定N个通用成帧规程GFP帧中每帧要***空闲帧的个数为第一数值;还配置为确定是否为第一次读先入先出队列调速FIFO; The determining unit is configured to determine that the number of idle frames to be inserted in each frame of the N common framing procedure GFP frames is a first value; and is further configured to determine whether it is the first read first in first out queue speed control FIFO;
所述调速单元,配置为当确定是第一次读调速FIFO,所述调速FIFO的水位线大于等于预设可读门限,且GFP帧间隔指示信号有效时,开始进行读取调速FIFO;The speed control unit is configured to: when it is determined that the speed control FIFO is read for the first time, the water level line of the speed control FIFO is greater than or equal to a preset readability threshold, and the GFP frame interval indication signal is valid, start reading speed adjustment FIFO
所述调速单元,还配置为当确定不是第一次读调速FIFO,所述GFP帧间隔指示信号有效,且当前***的空闲帧的个数小于所述第一数值时,***空闲帧,直到***的所述空闲帧的个数大于等于所述第一数值后,继续读所述调速FIFO的下一个GFP帧。The speed control unit is further configured to insert an idle frame when the GFP frame interval indication signal is valid, and the number of currently inserted idle frames is less than the first value, when it is determined that the VT frame interval indication signal is not the first time. Until the number of inserted idle frames is greater than or equal to the first value, the reading of the next GFP frame of the throttle FIFO continues.
在本发明一实施方式中,所述速率适配装置还包括:存储单元,分配单元,In an embodiment of the present invention, the rate adaptation apparatus further includes: a storage unit, an allocation unit,
所述确定单元,配置为确定预设时间内需要***的空闲帧的个数为第二数值;The determining unit is configured to determine that the number of idle frames that need to be inserted in the preset time is a second value;
所述存储单元,配置为将所述第二数值存储在存储空闲个数FIFO中,所述预设时间为N个GFP帧的传输时间,其中,N大于1,N为自然数;The storage unit is configured to store the second value in a storage idle number FIFO, where the preset time is a transmission time of N GFP frames, where N is greater than 1, and N is a natural number;
所述分配单元,配置为将所述第二数值个空闲帧分配到所述预设时间内N个GFP帧的每两个帧之间。The allocating unit is configured to allocate the second number of idle frames to every two frames of N GFP frames in the preset time.
在本发明一实施方式中,所述确定单元,配置为根据所述第二数值和所述N确定每帧要***的空闲帧的个数为第一数值。In an embodiment of the invention, the determining unit is configured to determine, according to the second value and the N, the number of idle frames to be inserted per frame as a first value.
在本发明一实施方式中,所述确定单元,配置为获取所述预设时间内业务控制速率缺口的个数为第三数值,获取所述预设时间内GFP控制速率缺口的个数为第四数值;根据所述第三数值和第四数值确定所述第二数值。In an embodiment of the present invention, the determining unit is configured to obtain the number of the service control rate gaps in the preset time period as a third value, and obtain the number of the GFP control rate gaps in the preset time period. a fourth value; determining the second value based on the third value and the fourth value.
在本发明一实施方式中,所述调速单元,配置为当所述存储空闲个数FIFO的水位线大于预设门限,且开始读取所述N个GFP帧的第一帧时,开始读取存储空闲FIFO。In an embodiment of the present invention, the speed control unit is configured to start reading when the water bit line storing the idle number FIFO is greater than a preset threshold and starting to read the first frame of the N GFP frames Take the storage idle FIFO.
在本发明一实施方式中,所述GFP帧间隔指示信号有效包括读取到调速FIFO输出数据拍数计数为一个GFP帧长。 In an embodiment of the invention, the GFP frame interval indication signal is effective to include reading to the speed control FIFO output data beat count as one GFP frame length.
本发明实施例提供一种计算机存储介质,本发明实施例提供的计算机存储介质存储有计算机程序,该计算机程序用于执行上述速率适配方法。The embodiment of the present invention provides a computer storage medium. The computer storage medium provided by the embodiment of the present invention stores a computer program, and the computer program is used to execute the foregoing rate adaptation method.
本发明实施例提供了一种速率适配方法和装置、计算机存储介质,速率适配装置确定N个GFP帧中每帧要***空闲帧的个数为第一数值;确定是否为第一次读调速FIFO;当确定是第一次读调速FIFO,所述调速FIFO的水位线大于等于预设可读门限,且GFP帧间隔指示信号有效时,开始进行读取调速FIFO;当确定不是第一次读调速FIFO,所述GFP帧间隔指示信号有效,且当前***的空闲帧的个数小于所述第一数值时,***空闲帧,直到***的所述空闲帧的个数大于等于所述第一数值后,继续读所述调速FIFO的下一个GFP帧。本发明实施例提供了的速率适配方法和装置,通过确定N个GFP帧中每帧要***空闲帧的个数分别对每帧进行***空闲帧,解决了GFP-T的帧之间间隔不均匀问题,达到了GFPT调速后***IDLE均匀的效果,节省了GFPT解封装时恢复业务速率的实现复杂度,提高了整体***性能。The embodiment of the present invention provides a rate adaptation method and apparatus, and a computer storage medium. The rate adaptation apparatus determines that the number of idle frames to be inserted in each frame of the N GFP frames is the first value; determining whether it is the first read. Speed control FIFO; when it is determined that the speed FIFO is read for the first time, the water level line of the speed control FIFO is greater than or equal to a preset readability threshold, and when the GFP frame interval indication signal is valid, the reading speed control FIFO is started; Instead of reading the throttle FIFO for the first time, the GFP frame interval indication signal is valid, and when the number of currently inserted idle frames is less than the first value, the idle frame is inserted until the number of inserted idle frames is greater than After being equal to the first value, continue reading the next GFP frame of the throttle FIFO. The rate adaptation method and apparatus provided by the embodiments of the present invention solve the problem that the interval between the frames of the GFP-T is not determined by determining the number of idle frames to be inserted in each frame of the N GFP frames. The uniform problem achieves the effect of inserting IDLE evenly after GFPT speed regulation, which saves the implementation complexity of recovering the service rate during GFPT decapsulation and improves the overall system performance.
附图说明DRAWINGS
图1为现有技术的GFP速率适配的效果图;1 is an effect diagram of a prior art GFP rate adaptation;
图2为现有技术的客户业务到OTN网路映射的装置结构示意图;2 is a schematic structural diagram of a device for mapping a client service to an OTN network in the prior art;
图3为本发明实施例提供的客户业务到OTN网路映射的装置结构示意图;3 is a schematic structural diagram of an apparatus for mapping a client service to an OTN network according to an embodiment of the present invention;
图4为本发明实施例提供的速率适配装置示意图一;4 is a schematic diagram 1 of a rate adaptation apparatus according to an embodiment of the present invention;
图5为本发明实施例提供的速率适配装置示意图二;FIG. 5 is a second schematic diagram of a rate adaptation apparatus according to an embodiment of the present invention;
图6为本发明实施例提供的速率适配方法流程示意图一;FIG. 6 is a schematic flowchart 1 of a rate adaptation method according to an embodiment of the present disclosure;
图7为本发明实施例提供的速率适配的效果图;FIG. 7 is an effect diagram of rate adaptation according to an embodiment of the present invention;
图8为本发明实施例提供的速率适配方法流程示意图二;FIG. 8 is a second schematic flowchart of a rate adaptation method according to an embodiment of the present disclosure;
图9为本发明实施例提供的速率适配装置结构示意图一; FIG. 9 is a schematic structural diagram 1 of a rate adaptation apparatus according to an embodiment of the present disclosure;
图10为本发明实施例提供的速率适配装置结构示意图二。FIG. 10 is a schematic structural diagram 2 of a rate adaptation apparatus according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present invention will be clearly and completely described in the following with reference to the accompanying drawings.
为了更好的理解本发明实施例提供速率适配方法和装置,首先,对客户业务到OTN网络映射的装置进行说明,如图2所示,该装置包括:串行器、物理解码子层处理单元、64B/65B编码、GFP封装单元、GFP速率适配单元和映射单元。In order to better understand the method and apparatus for rate adaptation according to an embodiment of the present invention, first, an apparatus for mapping a client service to an OTN network is described. As shown in FIG. 2, the apparatus includes: a serializer, and a physical decoding sublayer processing. Unit, 64B/65B encoding, GFP encapsulation unit, GFP rate adaptation unit, and mapping unit.
其中,串行器,配置为将接收到的串行数据并行输出。The serializer is configured to output the received serial data in parallel.
物理解码子层处理单元,配置为根据客户业务类型来进行处理。例如,当客户业务是8B10B业务,将接收到的并行数据先进行字节同步,然后将10B转换成8B数据,同时输出控制码或者数据码指示;当客户业务不是8B10B业务,直接透传物理解码子层处理单元,输出全部认为是数据码,没有控制码。The physical decoding sub-layer processing unit is configured to process according to the type of customer service. For example, when the client service is an 8B10B service, the received parallel data is first byte-synchronized, then 10B is converted into 8B data, and the control code or data code indication is outputted; when the client service is not the 8B10B service, the physical decoding is directly transmitted. The sub-layer processing unit, the output is all considered to be a data code, and there is no control code.
64B/65B编码,配置为将物理解码子层处理单元输出的数据处理为超级块,如果输出的数据是控制码,则需要进行64B/65B编码;如果输出的数据是数据码,则不需要转换。将编码之后的8个字节数据和8位控制码数据码指示组成一个64B/65B数据块。将这65B进行CRC-16计算,得到2B校验码之后和65B数据就组成一个超级块,具体参见协议G.7041。The 64B/65B code is configured to process the data output by the physical decoding sublayer processing unit into a super block. If the output data is a control code, 64B/65B encoding is required; if the output data is a data code, no conversion is needed. . The 8-byte data after encoding and the 8-bit control code data code are indicated to form a 64B/65B data block. The 65B is subjected to CRC-16 calculation, and after obtaining the 2B check code and the 65B data, a super block is formed. For details, refer to the protocol G.7041.
GFP封装单元,配置为将多个超级块组成一个GFP帧。先根据GFP中要封装的超级块个数,集中式控制***(FCS,Focus Control System)是否使能、是否带扩展头来确定GFP帧净荷长度,将得到的长度进行CRC-16计算后就组成4B的核心头;根据FCS是否使能、是否带扩展头、客户信号类型等来确定净荷类型域,将净荷类型域进行循环冗余校验(CRC,Cyclic Redundancy Check),具体的,将净荷类型域进行CRC-16计算后得到2B的 tHEC;通用规程中只规定了线型扩展头2B或者不带扩展头,如果是线型扩展头,进行CRC-16计算后得到2B的eHEC;然后封装N个超级块;最后,根据FCS是否使能来填充4B的FCS域,得到一个完整的GFP帧。A GFP encapsulation unit configured to group a plurality of super blocks into one GFP frame. First, according to the number of super blocks to be encapsulated in the GFP, whether the centralized control system (FCS, Focus Control System) is enabled, whether or not the extension header is used to determine the GFP frame payload length, and the obtained length is calculated by CRC-16. Forming the core header of 4B; determining the payload type field according to whether the FCS is enabled, whether it has an extension header, a client signal type, etc., and performing a cyclic redundancy check (CRC) on the payload type domain, specifically, After the CRC-16 calculation is performed on the payload type field, 2B is obtained. tHEC; only the line type extension header 2B or no extension header is specified in the general procedure. If it is a line type extension header, the 2H eHEC is obtained after the CRC-16 calculation; then N super blocks are encapsulated; finally, according to whether the FCS is made Can fill the 4B FCS domain to get a complete GFP frame.
上述现有技术的客户业务到OTN网络映射的装置的工作原理具体可参见协议G.7041,本发明实施例在此不再赘述。For the working principle of the above-mentioned device for the customer service to the OTN network mapping, refer to the protocol G.7041, which is not described herein again.
本发明实施例提供的客户业务到OTN网络映射的装置,如图3所示,包括:串行器、物理编码子层处理单元、64B/65B编码、GFP封装单元、GFP速率适配单元和映射单元。The device for mapping customer service to OTN network provided by the embodiment of the present invention, as shown in FIG. 3, includes: serializer, physical coding sublayer processing unit, 64B/65B encoding, GFP encapsulating unit, GFP rate adaptation unit, and mapping unit.
其中,串行器、物理编码子层处理单元、64B/65B编码、GFP封装单元和映射单元与图1中现有技术的工作原理相同。Among them, the serializer, the physical coding sublayer processing unit, the 64B/65B encoding, the GFP encapsulating unit, and the mapping unit have the same working principle as the prior art in FIG.
本发明实施例提供的客户业务到OTN网络映射的装置,如图3所示,使用物理解码子层单元输出的业务控制速率缺口来进行控制,由于业务控制速率缺口是均匀的,不存在抖动,因此,可以通过业务控制速率缺口进行调速,即进行速率适配;也可以直接从串行器输出,在物理解码子层单元中透传。The apparatus for mapping the customer service to the OTN network provided by the embodiment of the present invention, as shown in FIG. 3, uses the service control rate gap output by the physical decoding sublayer unit to perform control, because the service control rate gap is uniform and there is no jitter. Therefore, the speed can be adjusted by the service control rate gap, that is, the rate adaptation; or can be directly transmitted from the serializer and transparently transmitted in the physical decoding sub-layer unit.
具体的,串行器将接收到的串行数据进行串并转换后,送入物理解码子层单元进行8B/10B解码,区分出控制码和数据码;64B/65B编码模块将8个8B数据根据控制码和数据码转换成1个64B/65B;GFP封装单元将8个64B/65B组成一个超级块,多个超级块组成一个GFP帧的净荷,再添加上核心头,净荷头和FCS校验字段就组成一个GFP帧;GFP封装后的数据送到GFP速率适配单元中进行调速处理后送给映射单元映射到OTN网络中。Specifically, the serializer serially converts the received serial data into a physical decoding sub-layer unit for 8B/10B decoding to distinguish the control code and the data code; the 64B/65B encoding module will have 8 8B data. According to the control code and data code, it is converted into a 64B/65B; the GFP encapsulation unit combines 8 64B/65B into one super block, and multiple super blocks form the payload of a GFP frame, and then add the upper core header, the payload head and The FCS check field forms a GFP frame; the GFP encapsulated data is sent to the GFP rate adaptation unit for speed control processing and then sent to the mapping unit for mapping to the OTN network.
本发明实施例提供的速率适配装置只针对透明的通用成帧规程(GFPT,General framing protocol transparent mode)封装侧,即上行侧,进行说明,GFPT解封装侧,即下行侧不进行说明。 The rate adaptation apparatus according to the embodiment of the present invention is described only on the encapsulation side of the transparent general framing protocol transparent mode (GFPT), that is, on the uplink side, and the GFPT decapsulation side, that is, the downlink side is not described.
本发明实施例提供的速率适配的装置可以理解为上述图3中的GFP速率适配单元,如图4所示,所述速率适配的装置可以包括:The rate adaptation apparatus provided by the embodiment of the present invention may be understood as the GFP rate adaptation unit in FIG. 3 above. As shown in FIG. 4, the rate adaptation apparatus may include:
时间控制单元,使用N个GFP帧的传输时间确定为预设时间。由于GFP帧中封装的客户数据长度的固定的,使用N帧GFP帧中的客户数据长度作为预设时间。The time control unit determines the transmission time using the N GFP frames as the preset time. Since the length of the client data encapsulated in the GFP frame is fixed, the length of the client data in the N frame GFP frame is used as the preset time.
空闲个数确定单元,配置为计算预设时间内空闲帧的个数,根据预设时间内业务控制速率缺口的个数和GFP控制缺口的个数进行确定,两者的差值就是N帧GFP帧中的空闲总数。The idle number determining unit is configured to calculate the number of idle frames in the preset time, and determine the number of service control rate gaps and the number of GFP control gaps in the preset time, and the difference between the two is N frame GFP. The total number of idles in the frame.
平均分配空闲单元,配置为将空闲帧个数确定单元确定的空闲帧平均分配到预设时间内每两个GFP帧之间。The idle cells are equally allocated, and are configured to allocate the idle frames determined by the idle frame number determining unit to be averaged between every two GFP frames in a preset time.
调速FIFO信息计数单元,配置为对输出的GFP帧个数、空闲帧拍数和GFP帧数据拍数等进行计数。The speed control FIFO information counting unit is configured to count the number of output GFP frames, the number of idle frame beats, and the number of GFP frame data beats.
调速FIFO读逻辑控制单元,根据调速FIFO信息计数单元产生的控制信息进行读调速FIFO控制。The speed control FIFO reads the logic control unit, and performs read speed regulation FIFO control according to the control information generated by the speed regulation FIFO information counting unit.
业务数据输入单元,作为调速FIFO的写逻辑控制。The business data input unit is used as the write logic control of the speed control FIFO.
调速FIFO,配置为存储GFP帧。Speed FIFO, configured to store GFP frames.
在本发明一实施方式中,如图5所示,对本发明实施例提供的速率适配装置的进一步细化的装置,具体的,将空闲个数确定单元和调速FIFO信息计数单元进一步细化。In an embodiment of the present invention, as shown in FIG. 5, the apparatus for further refining the rate adaptation apparatus according to the embodiment of the present invention further specifically refines the number of idle determination units and the speed adjustment FIFO information counting unit. .
其中,空闲个数确定单元可以包括存储空闲个数FIFO的读逻辑单元、空闲个数计算单元和存储空闲个数FIFO。The idle number determining unit may include a read logical unit storing an idle number FIFO, an idle number calculating unit, and a storage idle number FIFO.
所述空闲个数计算单元,配置为计算预设时间内空闲帧的个数,根据预设时间内业务控制速率缺口的个数和GFP控制缺口的个数进行确定,两者的差值就是N帧GFP帧中的空闲总数。The idle number calculation unit is configured to calculate the number of idle frames in a preset time, and determine the number of service control rate gaps and the number of GFP control gaps in a preset time, and the difference between the two is N. The total number of idles in a frame GFP frame.
所述存储空闲个数FIFO,配置为存储每N帧的IDLE总数。由于业务 数据缺口存在着抖动,当输出一个GFP帧,***对应的IDLE后,下一个GFP帧还没有准备好,就会导致GFP帧输出一部分后就***了IDLE,从而,导致出错,所以,当抖动过大时需要存储空闲个数FIFO吸收该抖动,即下一个GFP帧还没有准备好,继续***对应的IDLE,直到输出下一个GFP帧。The storage idle number FIFO is configured to store the total number of IDLEs per N frames. Due to business There is jitter in the data gap. When a GFP frame is output and the corresponding IDLE is inserted, the next GFP frame is not ready yet, and the IDLE is inserted after the GFP frame is outputted. This causes an error, so when the jitter occurs. When large, it is necessary to store the idle number FIFO to absorb the jitter, that is, the next GFP frame is not ready yet, and the corresponding IDLE is continued to be inserted until the next GFP frame is output.
所述存储空闲个数FIFO的读逻辑单元,配置为确定当前存储空闲个数FIFO的水位线是否达到预设门限,若当前存储空闲个数FIFO的水位线是大于等于预设门限,且调速FIFO开始读取N个GFP帧的第一帧时,开始进行读取存储空闲FIFO,即开始进行读取存储空闲FIFO中的空闲帧。所述存储空闲个数FIFO的读逻辑单元通过调速FIFO输出GFP帧数计数单元和调速FIFO读使能来确定。The read logic unit storing the idle number FIFO is configured to determine whether the water level line of the current idle number FIFO reaches a preset threshold, and if the water level line of the current idle number FIFO is greater than or equal to a preset threshold, and the speed adjustment When the FIFO starts reading the first frame of the N GFP frames, it begins to read and store the free FIFO, that is, starts reading the idle frame in the free FIFO. The read logic unit storing the idle number FIFO is determined by the speed regulation FIFO output GFP frame number counting unit and the speed regulation FIFO read enable.
GFP帧间隔指示产生单元,配置为确定GFP帧间隔指示信号,根据GFP帧间隔指示信号可以确定在什么时间***空闲帧。GFP帧间隔指示产生单元通过调速FIFO输出数据拍数计算单元和调速FIFO读使能来确定。The GFP frame interval indication generating unit is configured to determine a GFP frame interval indication signal, and according to the GFP frame interval indication signal, it can be determined when the idle frame is inserted. The GFP frame interval indication generation unit is determined by the speed regulation FIFO output data beat calculation unit and the speed regulation FIFO read enable.
调速FIFO输出数据拍数计数单元,配置为对调速FIFO输出的数据的拍数进行计数,当计数值达到一个GFP帧长时,说明此时一个完整的GFP帧已经输出,可以***IDLE帧。并且调速FIFO输出GFP帧计数单元加1,当调速FIFO输出GFP帧计数单元为N-1时清0,因为是每N帧计算一次IDLE值,存储在空闲个数FIFO中的数据对应的是每N帧的IDLE总数。The speed control FIFO output data beat count unit is configured to count the number of beats of the data output by the speed control FIFO. When the count value reaches a GFP frame length, it indicates that a complete GFP frame has been output at this time, and the IDLE frame can be inserted. . And the speed FIFO output GFP frame counting unit is increased by 1, and is cleared when the speed FIFO output GFP frame counting unit is N-1, because the IDLE value is calculated once every N frames, and the data stored in the idle number FIFO corresponds to Is the total number of IDLEs per N frames.
实施例一Embodiment 1
本发明实施例提供一种速率适配方法,如图6所示,所述速率适配方法可以包括:The embodiment of the present invention provides a rate adaptation method. As shown in FIG. 6, the rate adaptation method may include:
步骤101、确定N个通用成帧规程GFP帧中每帧要***空闲帧的个数为第一数值。Step 101: Determine the number of idle frames to be inserted into each frame of the N general framing procedure GFP frames as a first value.
具体的,本发明实施例提供的速率适配方法的执行主体为速率适配装 置,所述速率适配装置确定N个通用成帧规程GFP帧中每帧要***空闲帧的个数为第一数值。Specifically, the execution body of the rate adaptation method provided by the embodiment of the present invention is a rate adaptation device. The rate adaptation device determines that the number of idle frames to be inserted per frame in the N general framing procedure GFP frames is a first value.
具体的,从存储空闲个数FIFO中读出的空闲帧IDLE总数是N个GFP帧的总IDLE个数为A,将IDLE个数A除以N,即A/N,若A/N的值为C,余数为B,如果B是0,那么每帧要***的IDLE就是A/N的值C;如果B不为0,每帧要***的IDLE值是C与分配余数D之和,分配余数D为将B均匀分配到N个GFP帧中,余数B不可以传递到下一个N个GFP帧中。Specifically, the total number of idle frames IDLE read from the stored idle number FIFO is the total number of IDLEs of the N GFP frames is A, and the number of IDLEs A is divided by N, that is, A/N, if the value of A/N For C, the remainder is B. If B is 0, then the IDLE to be inserted per frame is the value C of A/N; if B is not 0, the IDLE value to be inserted per frame is the sum of C and the allocation remainder D, and the allocation is The remainder D is to evenly distribute B into N GFP frames, and the remainder B cannot be passed to the next N GFP frames.
示例性的,如图7所示,例如N=8时,D的具体分配如下:Exemplarily, as shown in FIG. 7, for example, when N=8, the specific allocation of D is as follows:
如果B是1,第4帧的D为1,其余帧的D为0;If B is 1, D of frame 4 is 1, and D of the remaining frames is 0;
如果B是2,第3帧和第6帧的D为1,其余为0;If B is 2, D of frame 3 and frame 6 is 1, and the rest is 0;
如果B是3,第2帧,第4帧和第6帧的D为1,其余为0;If B is 3, the second frame, the fourth frame and the sixth frame D is 1 and the rest is 0;
如果B为4,第1帧,第3帧,第5帧和第7帧的D为1,其余为0;If B is 4, the first frame, the third frame, the fifth frame and the seventh frame have a D of 1, and the rest are 0;
如果B为5,第2帧,第4帧和第6帧的D为0,其余为1;If B is 5, the second frame, the fourth frame and the sixth frame D is 0, and the rest is 1;
如果B为6,第3帧和第6帧的D为0,其余为1;If B is 6, D of frame 3 and frame 6 is 0, and the rest is 1.
如果B为7,第4帧的D为0,其余为1。If B is 7, D of frame 4 is 0, and the rest is 1.
步骤102、确定是否为第一次读调速FIFO。Step 102: Determine whether it is the first time to read the speed control FIFO.
具体的,速率适配装置确定是否为第一次读调速FIFO。Specifically, the rate adaptation device determines whether it is the first time to read the speed control FIFO.
步骤103、当确定是第一次读调速FIFO,所述调速FIFO的水位线大于等于预设可读门限,且GFP帧间隔指示信号有效时,开始进行读取调速FIFO。Step 103: When it is determined that the speed control FIFO is read for the first time, the water level line of the speed control FIFO is greater than or equal to a preset readability threshold, and the GFP frame interval indication signal is valid, the reading of the speed control FIFO is started.
具体的,速率适配装置确定为第一次读调速FIFO,确定调速FIFO的水位线是否大于等于预设可读门限,当调速FIFO的水位线大于等于预设可读门限,且GFP帧间隔指示信号有效时,开始进行读取调速FIFO,即开始进行第二次读取调速FIFO。Specifically, the rate adaptation device determines to read the speed control FIFO for the first time, and determines whether the water level line of the speed control FIFO is greater than or equal to a preset readability threshold, when the water level line of the speed control FIFO is greater than or equal to a preset readability threshold, and GFP When the frame interval indication signal is valid, the read speed FIFO is started, that is, the second read speed FIFO is started.
具体的,使用调速FIFO读使能信号与调速FIFO输出数据拍数计数来 确定GFP帧间隔指示信号。当读到调速FIFO输出数据拍数计数为一个GFP帧长时,所述GFP帧间隔指示信号有效,直到下一次读取调速FIFO时GFP帧间隔指示信号无效。Specifically, using the speed control FIFO read enable signal and the speed control FIFO output data beat count The GFP frame interval indication signal is determined. When it is read that the speed FIFO output data beat count is one GFP frame length, the GFP frame interval indication signal is valid until the GFP frame interval indication signal is invalid until the next time the speed control FIFO is read.
其中,当读到调速FIFO输出数据拍数计数为一个GFP帧长时,所述GFP帧间隔指示信号有效,即输出一个完整的GFP帧,才可以进行***空闲帧,防止输出不是一个完整的GFP帧,***空闲帧时产生错误。Wherein, when reading the speed FIFO output data beat count is a GFP frame length, the GFP frame interval indication signal is valid, that is, outputting a complete GFP frame, the insertion of the idle frame can be performed, preventing the output from being a complete GFP frame, an error is generated when an idle frame is inserted.
步骤104、当确定不是第一次读调速FIFO,所述GFP帧间隔指示信号有效,且当前***的空闲帧的个数小于所述第一数值时,***空闲帧,直到***的所述空闲帧的个数大于等于所述第一数值后,继续读所述调速FIFO的下一个GFP帧。Step 104: When it is determined that the VT frame interval indication signal is not valid for the first time, and the GFP frame interval indication signal is valid, and the number of currently inserted idle frames is less than the first value, the idle frame is inserted until the inserted idle After the number of frames is greater than or equal to the first value, the next GFP frame of the throttle FIFO is continuously read.
具体的,速率适配装置确定不是第一次读调速FIFO,并且,可以确定此时GFP帧间隔指示信号有效时,同时需要判断当前已经***的IDLE个数是小于上述确定的每帧要***空闲帧的个数的第一数值,表示此时需要***IDLE,然后***IDLE,直到***的IDLE大于等于第一数值后,再继续读调速FIFO的下一个GFP帧,否则继续***IDLE直到所***的IDLE个数大于第一数值。Specifically, the rate adaptation device determines that the speed adjustment FIFO is not read for the first time, and may determine that the GFP frame interval indication signal is valid at this time, and simultaneously determine that the number of IDLEs that have been inserted is smaller than the above determined frame to be inserted. The first value of the number of idle frames indicates that IDLE needs to be inserted at this time, and then IDLE is inserted until the inserted IDLE is greater than or equal to the first value, and then the next GFP frame of the speed control FIFO is continued, otherwise the IDLE continues to be inserted until The number of inserted IDLEs is greater than the first value.
本发明实施例提供的速率适配方法,通过确定N个GFP帧中每帧要***空闲帧的个数分别对每帧进行***空闲帧,解决了GFP-T的帧之间间隔不均匀问题,达到了GFPT调速后***IDLE均匀的效果,节省了GFPT解封装时恢复业务速率的实现复杂度,提高了整体***性能。The rate adaptation method provided by the embodiment of the present invention solves the problem of uneven spacing between frames of GFP-T by determining the number of idle frames to be inserted in each frame of the N GFP frames. The effect of inserting IDLE uniformity after GFPT speed regulation is achieved, which saves the implementation complexity of recovering the service rate during GFPT decapsulation and improves the overall system performance.
实施例二Embodiment 2
本发明实施例提供一种速率适配方法,如图8所示,所述速率适配方法可以包括:The embodiment of the present invention provides a rate adaptation method. As shown in FIG. 8, the rate adaptation method may include:
步骤201、确定预设时间内需要***的空闲帧的个数为第二数值,并将所述第二数值存储在存储空闲个数FIFO中,将所述第二数值个空闲帧分配 到所述预设时间内N个GFP帧的每两个帧之间,所述预设时间为N个GFP帧的传输时间,其中,N大于1,N为自然数。Step 201: Determine the number of idle frames to be inserted in the preset time as a second value, and store the second value in the stored idle number FIFO, and allocate the second number of idle frames. The preset time is the transmission time of N GFP frames between each two frames of the N GFP frames in the preset time, where N is greater than 1, and N is a natural number.
具体的,本发明实施例提供的速率适配方法的执行主体为速率适配装置,所述速率适配装置确定预设时间内需要***的空闲帧的个数为第二数值,并将所述第二数值存储在存储空闲个数FIFO中。Specifically, the execution body of the rate adaptation method provided by the embodiment of the present invention is a rate adaptation device, where the rate adaptation device determines that the number of idle frames that need to be inserted within a preset time is a second value, and the The second value is stored in the FIFO count FIFO.
具体的,速率适配装置获取所述预设时间内业务控制速率缺口的个数为第三数值,获取所述预设时间内GFP控制速率缺口的个数为第四数值;并根据所述第三数值和第四数值确定所述第二数值。Specifically, the rate adaptation device obtains the number of the service control rate gaps in the preset time as a third value, and obtains the number of the GFP control rate gaps in the preset time as a fourth value; The third value and the fourth value determine the second value.
需要说明的是,由于OTN网络支持的速率只有几种,因此,客户业务速率映射到OTN网络时需要配置一个GFP控制速率,即OTN网络支持的几种速率,且GFP控制速率必须要大于客户业务速率才可以将业务映射到OTN网络中,这个速率差就需要***额外的IDLE到业务数据中已达到GFP控制速率。It should be noted that, since the rate supported by the OTN network is only a few, the GFP control rate needs to be configured when the customer service rate is mapped to the OTN network, that is, several rates supported by the OTN network, and the GFP control rate must be greater than the customer service. The rate can map the traffic to the OTN network. This rate difference requires the insertion of additional IDLEs into the service data that have reached the GFP control rate.
具体的,物理解码子层单元输出业务控制速率缺口和业务数据缺口,其中,业务控制速率缺口是均匀的速率,表示业务数据的传输速率;业务数据缺口经过物理解码子层单元处理传输给64B/65B编码,由于业务数据在物理解码子层单元的处理过程中,数据存在延迟或者缓存等处理,因此业务数据的传输会产生一定的速率抖动,不是一种均匀的速率。Specifically, the physical decoding sub-layer unit outputs a service control rate gap and a service data gap, where the service control rate gap is a uniform rate, indicating a transmission rate of the service data; the service data gap is processed and transmitted to the 64B/ by the physical decoding sub-layer unit. 65B coding, because the service data is processed in the process of physically decoding the sub-layer unit, the data is delayed or cached, so the transmission of the service data will generate a certain rate jitter, not a uniform rate.
其中,由于GFPT封装后的帧长是固定的长度,根据FCS是否使能、是否有扩展头、GFP中要封装的超级块个数来确定一帧GFP帧长度。为了计算出来的IDLE尽量均匀,采用固定N个GFP帧的传输时间作为一个预设时间,计算出该预设时间内GFP控制速率缺口的个数,将所述GFP控制速率缺口的个数减去N帧GFP帧长的个数,可以确定N帧GFP帧中要***的IDLE总数,即第一数值,然后,将所述第一数值存入存储空闲个数FIFO中。 The frame length after the GFPT encapsulation is a fixed length, and the length of one frame of the GFP frame is determined according to whether the FCS is enabled, whether there is an extension header, and the number of super blocks to be encapsulated in the GFP. In order to calculate the IDLE as uniform as possible, the transmission time of the fixed N GFP frames is used as a preset time, and the number of GFP control rate gaps in the preset time is calculated, and the number of the GFP control rate gaps is subtracted. The number of N frames of GFP frame length can determine the total number of IDLEs to be inserted in the N frame GFP frame, that is, the first value, and then store the first value in the storage idle number FIFO.
在本发明一实施方式中,如图5所示,通过FIFO存储空闲个数,由于业务数据缺口存在着抖动,当输出一个GFP帧,***对应的IDLE后,下一个GFP帧还没有准备好,就会导致GFP帧输出一部分后就***了IDLE,从而,导致出错,所以,当抖动过大时需要存储空闲个数FIFO吸收该抖动,即下一个GFP帧还没有准备好,继续***对应的IDLE,直到输出下一个GFP帧。In an embodiment of the present invention, as shown in FIG. 5, the number of idles is stored in the FIFO. Since there is jitter in the service data gap, when a GFP frame is output and the corresponding IDLE is inserted, the next GFP frame is not ready yet. This will cause IDLE to be inserted after a part of the GFP frame output, thus causing an error. Therefore, when the jitter is too large, it is necessary to store the free number of FIFOs to absorb the jitter, that is, the next GFP frame is not ready yet, and the corresponding IDLE is continuously inserted. Until the next GFP frame is output.
在本发明一实施方式中,如图5所示,通过调速FIFO输出数据拍数计数单元,对调速FIFO输出的数据的拍数进行计数,当计数值达到一个GFP帧长时,说明此时一个完整的GFP帧已经输出,可以***IDLE帧。并且调速FIFO输出GFP帧计数单元加1,当调速FIFO输出GFP帧计数单元为N-1时清0,因为是每N帧计算一次IDLE值,存储在空闲个数FIFO中的数据对应的是每N帧的IDLE总数。In an embodiment of the present invention, as shown in FIG. 5, the data beat number counting unit is outputted through the speed control FIFO, and the number of beats of the data output by the speed control FIFO is counted. When the count value reaches a GFP frame length, the description is made. When a complete GFP frame has been output, an IDLE frame can be inserted. And the speed FIFO output GFP frame counting unit is increased by 1, and is cleared when the speed FIFO output GFP frame counting unit is N-1, because the IDLE value is calculated once every N frames, and the data stored in the idle number FIFO corresponds to Is the total number of IDLEs per N frames.
步骤202、当所述存储空闲个数FIFO的水位线大于预设门限,且开始读取所述N个GFP帧的第一帧时,开始读取存储空闲FIFO。Step 202: When the water bit line storing the idle number FIFO is greater than a preset threshold, and starting to read the first frame of the N GFP frames, start to read the storage idle FIFO.
具体的,如图5所示,速率适配装置的存储空闲个数FIFO的读逻辑单元确定当前存储空闲个数FIFO的水位线是否达到预设门限,若当前存储空闲个数FIFO的水位线是大于等于预设门限,且调速FIFO开始读取N个GFP帧的第一帧时,开始进行读取存储空闲FIFO,即开始进行读取存储空闲FIFO中的空闲帧。Specifically, as shown in FIG. 5, the read logic unit of the rate adaptation device storing the idle number FIFO determines whether the water bit line of the current idle number FIFO reaches a preset threshold, and if the current water level line of the idle number FIFO is When the preset threshold is greater than or equal to the preset threshold, and the throttle FIFO starts to read the first frame of the N GFP frames, the read storage idle FIFO is started, that is, the idle frame in the read idle FIFO is started to be read.
步骤203、确定N个通用成帧规程GFP帧中每帧要***空闲帧的个数为第一数值。Step 203: Determine the number of idle frames to be inserted into each frame of the N general framing procedure GFP frames as a first value.
具体的,所述速率适配装置确定N个通用成帧规程GFP帧中每帧要***空闲帧的个数为第一数值。从存储空闲个数FIFO中读出的空闲帧IDLE总数是N个GFP帧的总IDLE个数为A,将IDLE个数A除以N,即A/N,若A/N的值为C,余数为B,如果B是0,那么每帧要***的IDLE就是 A/N的值C;如果B不为0,每帧要***的IDLE值是C与分配余数D之和,分配余数D为将B均匀分配到N个GFP帧中,余数B不可以传递到下一个N个GFP帧中。Specifically, the rate adaptation apparatus determines that the number of idle frames to be inserted in each frame of the N general framing procedure GFP frames is a first value. The total number of idle frames IDLE read from the number of stored idle FIFOs is the total number of IDLEs of N GFP frames is A, and the number of IDLEs A is divided by N, that is, A/N. If the value of A/N is C, The remainder is B. If B is 0, then the IDLE to be inserted per frame is A/N value C; if B is not 0, the IDLE value to be inserted per frame is the sum of C and the allocation remainder D, and the allocation remainder D is to evenly distribute B into N GFP frames, and the remainder B cannot be transmitted to In the next N GFP frames.
示例性的,如图7所示,例如N=8时,D的具体分配如下:Exemplarily, as shown in FIG. 7, for example, when N=8, the specific allocation of D is as follows:
如果B是1,第4帧的D为1,其余帧的D为0;If B is 1, D of frame 4 is 1, and D of the remaining frames is 0;
如果B是2,第3帧和第6帧的D为1,其余为0;If B is 2, D of frame 3 and frame 6 is 1, and the rest is 0;
如果B是3,第2帧,第4帧和第6帧的D为1,其余为0;If B is 3, the second frame, the fourth frame and the sixth frame D is 1 and the rest is 0;
如果B为4,第1帧,第3帧,第5帧和第7帧的D为1,其余为0;If B is 4, the first frame, the third frame, the fifth frame and the seventh frame have a D of 1, and the rest are 0;
如果B为5,第2帧,第4帧和第6帧的D为0,其余为1;If B is 5, the second frame, the fourth frame and the sixth frame D is 0, and the rest is 1;
如果B为6,第3帧和第6帧的D为0,其余为1;If B is 6, D of frame 3 and frame 6 is 0, and the rest is 1.
如果B为7,第4帧的D为0,其余为1。If B is 7, D of frame 4 is 0, and the rest is 1.
步骤204、确定是否为第一次读调速FIFO。Step 204: Determine whether it is the first time to read the speed control FIFO.
具体的,速率适配装置确定是否为第一次读调速FIFO。Specifically, the rate adaptation device determines whether it is the first time to read the speed control FIFO.
步骤204、当确定是第一次读调速FIFO,所述调速FIFO的水位线大于等于预设可读门限,且GFP帧间隔指示信号有效时,开始进行读取调速FIFO。Step 204: When it is determined that the speed control FIFO is read for the first time, the water level line of the speed control FIFO is greater than or equal to a preset readability threshold, and the GFP frame interval indication signal is valid, the reading of the speed control FIFO is started.
具体的,速率适配装置确定为第一次读调速FIFO,确定调速FIFO的水位线是否大于等于预设可读门限,当调速FIFO的水位线大于等于预设可读门限,且GFP帧间隔指示信号有效时,开始进行读取调速FIFO,即开始进行第二次读取调速FIFO。Specifically, the rate adaptation device determines to read the speed control FIFO for the first time, and determines whether the water level line of the speed control FIFO is greater than or equal to a preset readability threshold, when the water level line of the speed control FIFO is greater than or equal to a preset readability threshold, and GFP When the frame interval indication signal is valid, the read speed FIFO is started, that is, the second read speed FIFO is started.
具体的,如图5所示,使用调速FIFO读使能信号与调速FIFO输出数据拍数计数来确定GFP帧间隔指示信号。当读到调速FIFO输出数据拍数计数为一个GFP帧长时,所述GFP帧间隔指示信号有效,直到下一次读取调速FIFO时GFP帧间隔指示信号无效。Specifically, as shown in FIG. 5, the GFP frame interval indication signal is determined by using the throttle FIFO read enable signal and the throttle FIFO output data beat count. When it is read that the speed FIFO output data beat count is one GFP frame length, the GFP frame interval indication signal is valid until the GFP frame interval indication signal is invalid until the next time the speed control FIFO is read.
其中,当读到调速FIFO输出数据拍数计数为一个GFP帧长时,所述 GFP帧间隔指示信号有效,即输出一个完整的GFP帧,才可以进行***空闲帧,防止输出不是一个完整的GFP帧,***空闲帧时产生错误。Wherein, when the speed FIFO output data beat count is read as a GFP frame length, The GFP frame interval indication signal is valid, that is, a complete GFP frame is output, and the idle frame can be inserted to prevent the output from being a complete GFP frame, and an error is generated when the idle frame is inserted.
步骤206、当确定不是第一次读调速FIFO,所述GFP帧间隔指示信号有效,且当前***的空闲帧的个数小于所述第一数值时,***空闲帧,直到***的所述空闲帧的个数大于等于所述第一数值后,继续读所述调速FIFO的下一个GFP帧。Step 206: When it is determined that the VT frame interval indication signal is not valid for the first time, and the GFP frame interval indication signal is valid, and the number of currently inserted idle frames is less than the first value, the idle frame is inserted until the inserted idle After the number of frames is greater than or equal to the first value, the next GFP frame of the throttle FIFO is continuously read.
具体的,速率适配装置确定不是第一次读调速FIFO,并且,可以确定此时GFP帧间隔指示信号有效时,同时需要判断当前已经***的IDLE个数是小于上述确定的每帧要***空闲帧的个数的第一数值,表示此时需要***IDLE,然后***IDLE,直到***的IDLE大于等于第一数值后,再继续读调速FIFO的下一个GFP帧,否则继续***IDLE直到所***的IDLE个数大于第一数值。Specifically, the rate adaptation device determines that the speed adjustment FIFO is not read for the first time, and may determine that the GFP frame interval indication signal is valid at this time, and simultaneously determine that the number of IDLEs that have been inserted is smaller than the above determined frame to be inserted. The first value of the number of idle frames indicates that IDLE needs to be inserted at this time, and then IDLE is inserted until the inserted IDLE is greater than or equal to the first value, and then the next GFP frame of the speed control FIFO is continued, otherwise the IDLE continues to be inserted until The number of inserted IDLEs is greater than the first value.
本发明实施例提供的速率适配方法,通过确定N个GFP帧中每帧要***空闲帧的个数分别对每帧进行***空闲帧,解决了GFP-T的帧之间间隔不均匀问题,达到了GFPT调速后***IDLE均匀的效果,节省了GFPT解封装时恢复业务速率的实现复杂度,提高了整体***性能。The rate adaptation method provided by the embodiment of the present invention solves the problem of uneven spacing between frames of GFP-T by determining the number of idle frames to be inserted in each frame of the N GFP frames. The effect of inserting IDLE uniformity after GFPT speed regulation is achieved, which saves the implementation complexity of recovering the service rate during GFPT decapsulation and improves the overall system performance.
实施例三Embodiment 3
本发明实施例提供一种速率适配装置1,如图9所示,所述速率适配装置1包括:确定单元10、调速单元11,其中,The embodiment of the present invention provides a rate adaptation device 1 . As shown in FIG. 9 , the rate adaptation device 1 includes: a determining unit 10 and a speed adjusting unit 11 .
所述确定单元10,配置为确定N个通用成帧规程GFP帧中每帧要***空闲帧的个数为第一数值;还配置为确定是否为第一次读调速FIFO;The determining unit 10 is configured to determine that the number of idle frames to be inserted in each frame of the N common framing procedure GFP frames is a first value; and is further configured to determine whether it is the first read speed FIFO;
所述调速单元11,配置为当确定是第一次读调速先入先出队列FIFO,所述调速FIFO的水位线大于等于预设可读门限,且GFP帧间隔指示信号有效时,开始进行读取调速FIFO;The speed control unit 11 is configured to: when it is determined to be the first read speed first in first out queue FIFO, the water level line of the speed control FIFO is greater than or equal to a preset read threshold, and the GFP frame interval indication signal is valid, start Perform a read speed FIFO;
所述调速单元11,还配置为当确定不是第一次读调速FIFO,所述GFP 帧间隔指示信号有效,且当前***的空闲帧的个数小于所述第一数值时,***空闲帧,直到***的所述空闲帧的个数大于等于所述第一数值后,继续读所述调速FIFO的下一个GFP帧。The speed control unit 11 is further configured to: when it is determined that it is not the first time to read the speed control FIFO, the GFP When the frame interval indication signal is valid, and the number of currently inserted idle frames is less than the first value, the idle frame is inserted, and after the number of the inserted idle frames is greater than or equal to the first value, the reading continues. The next GFP frame of the throttle FIFO.
在本发明一实施方式中,如图10所示,所述速率适配装置还包括:存储单元12,分配单元13,In an embodiment of the present invention, as shown in FIG. 10, the rate adaptation apparatus further includes: a storage unit 12, an allocation unit 13,
所述确定单元10,配置为确定预设时间内需要***的空闲帧的个数为第二数值;The determining unit 10 is configured to determine that the number of idle frames that need to be inserted in the preset time is a second value;
所述存储单元12,配置为将所述第二数值存储在存储空闲个数FIFO中,所述预设时间为N个GFP帧的传输时间,其中,N大于1,N为自然数;The storage unit 12 is configured to store the second value in a storage idle number FIFO, where the preset time is a transmission time of N GFP frames, where N is greater than 1, and N is a natural number;
所述分配单元13,配置为将所述第二数值个空闲帧分配到所述预设时间内N个GFP帧的每两个帧之间。The allocating unit 13 is configured to allocate the second number of idle frames to every two frames of N GFP frames in the preset time.
在本发明一实施方式中,所述确定单元10,配置为根据所述第二数值和所述N确定每帧要***的空闲帧的个数为第一数值。In an embodiment of the present invention, the determining unit 10 is configured to determine, according to the second value and the N, the number of idle frames to be inserted per frame as a first value.
在本发明一实施方式中,所述确定单元10,配置为获取所述预设时间内业务控制速率缺口的个数为第三数值,获取所述预设时间内GFP控制速率缺口的个数为第四数值;根据所述第三数值和第四数值确定所述第二数值。In an embodiment of the present invention, the determining unit 10 is configured to obtain the number of the service control rate gaps in the preset time period as a third value, and obtain the number of the GFP control rate gaps in the preset time period. a fourth value; determining the second value based on the third value and the fourth value.
在本发明一实施方式中,所述调速单元11,配置为当所述存储空闲个数FIFO的水位线大于预设门限,且开始读取所述N个GFP帧的第一帧时,开始读取存储空闲FIFO。In an embodiment of the present invention, the speed control unit 11 is configured to start when the water bit line storing the idle number FIFO is greater than a preset threshold and start reading the first frame of the N GFP frames. Read the storage free FIFO.
在本发明一实施方式中,所述GFP帧间隔指示信号有效包括:读取到调速FIFO输出数据拍数计数为一个GFP帧长。In an embodiment of the invention, the GFP frame interval indication signal is effective to: read the speed FIFO output data beat count to a GFP frame length.
具体的,本发明实施例提供的速率适配装置的理解可以参考实施例一和实施例二的速率适配方法的说明,本实施例在此不再赘述。 For a detailed description of the rate adaptation apparatus provided by the embodiment of the present invention, reference may be made to the description of the rate adaptation method in the first embodiment and the second embodiment, and details are not described herein again.
本发明实施例提供的速率适配装置,通过确定N个GFP帧中每帧要***空闲帧的个数分别对每帧进行***空闲帧,解决了GFP-T的帧之间间隔不均匀问题,达到了GFPT调速后***IDLE均匀的效果,节省了GFPT解封装时恢复业务速率的实现复杂度,提高了整体***性能。The rate adaptation apparatus provided by the embodiment of the present invention solves the problem of uneven spacing between frames of GFP-T by determining the number of idle frames to be inserted in each frame of the N GFP frames. The effect of inserting IDLE uniformity after GFPT speed regulation is achieved, which saves the implementation complexity of recovering the service rate during GFPT decapsulation and improves the overall system performance.
在实际应用中,所述速率适配装置中的各个单元所实现的功能,均可由位于速率适配装置中的中央处理器(Central Processing Unit,CPU)、或微处理器(Micro Processor Unit,MPU)、或数字信号处理器(Digital Signal Processor,DSP)、或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。In practical applications, the functions implemented by each unit in the rate adaptation device may be implemented by a central processing unit (CPU) or a microprocessor (Micro Processor Unit, MPU) located in the rate adaptation device. ), or a digital signal processor (DSP), or a Field Programmable Gate Array (FPGA).
本发明实施例上述业务信令跟踪的装置如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。这样,本发明实施例不限制于任何特定的硬件和软件结合。The apparatus for tracking the service signaling according to the embodiment of the present invention may also be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a separate product. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions. A computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention. The foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
相应地,本发明实施例还提供一种计算机存储介质,其中存储有计算机程序,该计算机程序用于执行本发明实施例的速率适配方法。Correspondingly, an embodiment of the present invention further provides a computer storage medium, wherein a computer program is stored, and the computer program is used to execute the rate adaptation method of the embodiment of the present invention.
本领域内的技术人员应明白,本发明的实施例可提供为方法、***、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。 Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(***)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.
工业实用性Industrial applicability
本发明实施例的技术方案中,通过确定N个GFP帧中每帧要***空闲帧的个数分别对每帧进行***空闲帧,解决了GFP-T的帧之间间隔不均匀问题,达到了GFPT调速后***IDLE均匀的效果,节省了GFPT解封装时恢复业务速率的实现复杂度,提高了整体***性能。 In the technical solution of the embodiment of the present invention, by inserting an idle frame into each frame by determining the number of idle frames to be inserted in each frame of the N GFP frames, the problem of uneven spacing between frames of the GFP-T is solved, and the problem is achieved. After the GFPT is adjusted, the IDLE uniform effect is inserted, which saves the implementation complexity of recovering the service rate during GFPT decapsulation and improves the overall system performance.

Claims (13)

  1. 一种速率适配方法,所述速率适配方法包括:A rate adaptation method, the rate adaptation method comprising:
    确定N个通用成帧规程GFP帧中每帧要***空闲帧的个数为第一数值;Determining the number of idle frames to be inserted into each frame of the N general framing procedure GFP frames is a first value;
    确定是否为第一次读调速先入先出队列FIFO;Determine whether it is the first time to read the speed-first-in first-out queue FIFO;
    当确定是第一次读调速FIFO,所述调速FIFO的水位线大于等于预设可读门限,且GFP帧间隔指示信号有效时,开始进行读取调速FIFO;When it is determined that the speed control FIFO is read for the first time, the water level line of the speed control FIFO is greater than or equal to a preset readability threshold, and the GFP frame interval indication signal is valid, starting to read the speed control FIFO;
    当确定不是第一次读调速FIFO,所述GFP帧间隔指示信号有效,且当前***的空闲帧的个数小于所述第一数值时,***空闲帧,直到***的所述空闲帧的个数大于等于所述第一数值后,继续读所述调速FIFO的下一个GFP帧。When it is determined that the VT frame interval indication signal is not valid for the first time, and the number of currently inserted idle frames is less than the first value, the idle frame is inserted until the inserted idle frames are After the number is greater than or equal to the first value, the reading of the next GFP frame of the throttle FIFO continues.
  2. 根据权利要求1所述的速率适配方法,其中,在所述确定N个GFP帧中每帧要***空闲帧的个数为第一数值之前,包括:The rate adaptation method according to claim 1, wherein before the number of idle frames to be inserted in each of the determined N GFP frames is the first value, the method includes:
    确定预设时间内需要***的空闲帧的个数为第二数值,并将所述第二数值存储在存储空闲个数FIFO中,所述预设时间为N个GFP帧的传输时间,其中,N大于1,N为自然数;Determining, by the second time, that the number of idle frames to be inserted in the preset time is a second value, and storing the second value in the FIFO number of the idle number, wherein the preset time is a transmission time of the N GFP frames, where N is greater than 1, and N is a natural number;
    将所述第二数值个空闲帧分配到所述预设时间内N个GFP帧的每两个帧之间。And distributing the second number of idle frames to between every two frames of N GFP frames in the preset time.
  3. 根据权利要求2所述的速率适配方法,其中,所述确定N个GFP帧中每帧要***空闲帧的个数为第一数值,包括:The rate adaptation method according to claim 2, wherein the determining the number of idle frames to be inserted into each of the N GFP frames is a first value, including:
    根据所述第二数值和所述N确定每帧要***的空闲帧的个数为第一数值。Determining, according to the second value and the N, the number of idle frames to be inserted per frame is a first value.
  4. 根据权利要求2所述的速率适配方法,其中,所述确定预设时间内需要***的空闲帧的个数为第二数值,包括:The rate adaptation method according to claim 2, wherein the determining the number of idle frames to be inserted in the preset time is a second value, including:
    获取所述预设时间内业务控制速率缺口的个数为第三数值,获取所述 预设时间内GFP控制速率缺口的个数为第四数值;Obtaining, by the third time, the number of service control rate gaps in the preset time, obtaining the The number of GFP control rate gaps in the preset time is the fourth value;
    根据所述第三数值和第四数值确定所述第二数值。The second value is determined based on the third value and the fourth value.
  5. 根据权利要求3或4所述的速率适配方法,其中,所述速率适配方法还包括:The rate adaptation method according to claim 3 or 4, wherein the rate adaptation method further comprises:
    当所述存储空闲个数FIFO的水位线大于预设门限,且开始读取所述N个GFP帧的第一帧时,开始读取存储空闲FIFO。When the water bit line storing the idle number FIFO is greater than a preset threshold and starting to read the first frame of the N GFP frames, the reading of the storage idle FIFO is started.
  6. 根据权利要求5所述的速率适配方法,其中,所述GFP帧间隔指示信号有效包括读取到调速FIFO输出数据拍数计数为一个GFP帧长。The rate adaptation method according to claim 5, wherein the GFP frame interval indication signal is effective to include reading to the throttle FIFO output data beat count as one GFP frame length.
  7. 一种速率适配装置,所述速率适配装置,包括:确定单元、调速单元,其中,A rate adaptation device, comprising: a determining unit, a speed adjusting unit, wherein
    所述确定单元,配置为确定N个通用成帧规程GFP帧中每帧要***空闲帧的个数为第一数值;还配置为确定是否为第一次读先入先出队列调速FIFO;The determining unit is configured to determine that the number of idle frames to be inserted in each frame of the N common framing procedure GFP frames is a first value; and is further configured to determine whether it is the first read first in first out queue speed control FIFO;
    所述调速单元,配置为当确定是第一次读调速FIFO,所述调速FIFO的水位线大于等于预设可读门限,且GFP帧间隔指示信号有效时,开始进行读取调速FIFO;The speed control unit is configured to: when it is determined that the speed control FIFO is read for the first time, the water level line of the speed control FIFO is greater than or equal to a preset readability threshold, and the GFP frame interval indication signal is valid, start reading speed adjustment FIFO
    所述调速单元,还配置为当确定不是第一次读调速FIFO,所述GFP帧间隔指示信号有效,且当前***的空闲帧的个数小于所述第一数值时,***空闲帧,直到***的所述空闲帧的个数大于等于所述第一数值后,继续读所述调速FIFO的下一个GFP帧。The speed control unit is further configured to insert an idle frame when the GFP frame interval indication signal is valid, and the number of currently inserted idle frames is less than the first value, when it is determined that the VT frame interval indication signal is not the first time. Until the number of inserted idle frames is greater than or equal to the first value, the reading of the next GFP frame of the throttle FIFO continues.
  8. 根据权利要求7所述的速率适配装置,其中,所述速率适配装置还包括:存储单元,分配单元,The rate adaptation device according to claim 7, wherein the rate adaptation device further comprises: a storage unit, an allocation unit,
    所述确定单元,配置为确定预设时间内需要***的空闲帧的个数为第二数值;The determining unit is configured to determine that the number of idle frames that need to be inserted in the preset time is a second value;
    所述存储单元,配置为将所述第二数值存储在存储空闲个数FIFO中, 所述预设时间为N个GFP帧的传输时间,其中,N大于1,N为自然数;The storage unit is configured to store the second value in a storage idle number FIFO, The preset time is a transmission time of N GFP frames, where N is greater than 1, and N is a natural number;
    所述分配单元,配置为将所述第二数值个空闲帧分配到所述预设时间内N个GFP帧的每两个帧之间。The allocating unit is configured to allocate the second number of idle frames to every two frames of N GFP frames in the preset time.
  9. 根据权利要求8所述的速率适配装置,其中,所述确定单元,配置为根据所述第二数值和所述N确定每帧要***的空闲帧的个数为第一数值。The rate adaptation apparatus according to claim 8, wherein the determining unit is configured to determine, according to the second value and the N, the number of idle frames to be inserted per frame as a first value.
  10. 根据权利要求8所述的速率适配装置,其中,所述确定单元,配置为获取所述预设时间内业务控制速率缺口的个数为第三数值,获取所述预设时间内GFP控制速率缺口的个数为第四数值;根据所述第三数值和第四数值确定所述第二数值。The rate adaptation device according to claim 8, wherein the determining unit is configured to obtain the number of the service control rate gaps in the preset time as a third value, and obtain the GFP control rate in the preset time. The number of notches is a fourth value; the second value is determined according to the third value and the fourth value.
  11. 根据权利要求9或10所述的速率适配装置,其中,所述调速单元,配置为当所述存储空闲个数FIFO的水位线大于预设门限,且开始读取所述N个GFP帧的第一帧时,开始读取存储空闲FIFO。The rate adaptation device according to claim 9 or 10, wherein the speed control unit is configured to start reading the N GFP frames when the water bit line storing the idle number FIFO is greater than a preset threshold When the first frame is started, the read storage FIFO is started.
  12. 根据权利要求11所述的速率适配装置,其中,所述GFP帧间隔指示信号有效包括读取到调速FIFO输出数据拍数计数为一个GFP帧长。The rate adaptation apparatus according to claim 11, wherein said GFP frame interval indication signal is effective to include reading to the throttle FIFO output data beat count as one GFP frame length.
  13. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令配置为执行权利要求1-6任一项所述的速率适配方法。 A computer storage medium having stored therein computer executable instructions configured to perform the rate adaptation method of any of claims 1-6.
PCT/CN2016/097617 2015-10-12 2016-08-31 Rate adaptation method and apparatus, and computer storage medium WO2017063457A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510658886.3A CN106571890A (en) 2015-10-12 2015-10-12 Rate adaptation method and device
CN201510658886.3 2015-10-12

Publications (1)

Publication Number Publication Date
WO2017063457A1 true WO2017063457A1 (en) 2017-04-20

Family

ID=58508211

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/097617 WO2017063457A1 (en) 2015-10-12 2016-08-31 Rate adaptation method and apparatus, and computer storage medium

Country Status (2)

Country Link
CN (1) CN106571890A (en)
WO (1) WO2017063457A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114024652A (en) * 2021-10-30 2022-02-08 江苏信而泰智能装备有限公司 Speed regulation method for simulating constant stream and burst stream and network tester

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109088856A (en) * 2018-07-12 2018-12-25 中国航空工业集团公司洛阳电光设备研究所 Vibration control method, the device of Video transmission system based on ARINC818 agreement
CN111105744A (en) * 2019-12-31 2020-05-05 上海易维视科技有限公司 Embedded display port implementation method and system based on programmable logic
CN113993010B (en) * 2021-10-11 2023-07-21 芯河半导体科技(无锡)有限公司 Efficient Xepon olt downlink transmission control method
CN117792564A (en) * 2022-09-20 2024-03-29 深圳市中兴微电子技术有限公司 Data processing method, device electronic equipment and readable storage medium
CN115562617B (en) * 2022-11-30 2023-03-03 苏州浪潮智能科技有限公司 Depth setting method and system of FIFO memory and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217334A (en) * 2004-08-11 2008-07-09 华为技术有限公司 A method and the corresponding device of low bit rate service signal in optical transport network transmission
CN101656588A (en) * 2009-09-21 2010-02-24 中兴通讯股份有限公司 Method and system for transmitting data
CN101674218A (en) * 2008-09-09 2010-03-17 华为技术有限公司 Method and device for intercommunicating optical transport networks
CN101674145A (en) * 2009-10-21 2010-03-17 中兴通讯股份有限公司 Data transmission method and apparatus thereof
US20150236957A1 (en) * 2014-02-20 2015-08-20 Uvic Industry Partnerships Inc. System and method for efficient transport of large data files

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3522247B2 (en) * 2001-09-26 2004-04-26 日本電気株式会社 Multiple transfer system and apparatus
US7505409B2 (en) * 2005-01-28 2009-03-17 International Business Machines Corporation Data mapping device, method, and article of manufacture for adjusting a transmission rate of ISC words
CN101635668A (en) * 2008-07-22 2010-01-27 ***通信集团吉林有限公司 Method and system for transmitting and controlling ethernet data
CN101695144B (en) * 2009-10-10 2015-08-12 中兴通讯股份有限公司 A kind of method and system supporting multi service access and transmission
US20120327786A1 (en) * 2011-06-23 2012-12-27 Exar Corporation Method for mapping generic client signals into a generic framing procedure (gfp) path

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217334A (en) * 2004-08-11 2008-07-09 华为技术有限公司 A method and the corresponding device of low bit rate service signal in optical transport network transmission
CN101674218A (en) * 2008-09-09 2010-03-17 华为技术有限公司 Method and device for intercommunicating optical transport networks
CN101656588A (en) * 2009-09-21 2010-02-24 中兴通讯股份有限公司 Method and system for transmitting data
CN101674145A (en) * 2009-10-21 2010-03-17 中兴通讯股份有限公司 Data transmission method and apparatus thereof
US20150236957A1 (en) * 2014-02-20 2015-08-20 Uvic Industry Partnerships Inc. System and method for efficient transport of large data files

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114024652A (en) * 2021-10-30 2022-02-08 江苏信而泰智能装备有限公司 Speed regulation method for simulating constant stream and burst stream and network tester
CN114024652B (en) * 2021-10-30 2023-11-28 江苏信而泰智能装备有限公司 Speed regulation method for simulating constant flow and burst flow and network tester

Also Published As

Publication number Publication date
CN106571890A (en) 2017-04-19

Similar Documents

Publication Publication Date Title
WO2017063457A1 (en) Rate adaptation method and apparatus, and computer storage medium
US10462471B2 (en) Data processing method, communications device, and communications system
EP3319254B1 (en) Method for data transmission, transmitter and receiver
WO2016183830A1 (en) Passive optical network framing method, device and system
WO2016037474A1 (en) Framing method and device
CN108092739B (en) Service transmission method and device
US11082739B2 (en) Data flow control method and apparatus
CN109981496B (en) OMCI framing device and method for XGPON OLT
WO2020147661A1 (en) Signal transmission method and apparatus, network device and computer-readable storage medium
US11245470B2 (en) Method, device, and system for transmitting data
CN105573922B (en) Method and device for realizing data format conversion
WO2022062946A1 (en) Data coding method, data decoding method, and communication device
WO2020253403A1 (en) Overhead monitoring method and apparatus, and computer readable storage medium
CN113364736A (en) Method and apparatus for transmitting data in flexible Ethernet
CN103634229B (en) A kind of Inter-chip communication method and control device
WO2018068497A1 (en) Method, device, computer storage medium for mapping optical channel data unit frames
CN110012367B (en) OMCI framing device and method for GPON OLT
CN105630825B (en) Data conversion method and device
JP5808261B2 (en) Frame transmission system
WO2010130137A1 (en) Method and apparatus for processing message
WO2021218721A1 (en) Service processing method and apparatus
WO2021078093A1 (en) Data sending method and apparatus, data receiving method and apparatus, communication node, and storage medium
US9258147B2 (en) Multi-frame data processing apparatus and method using frame disassembly
EP3694125B1 (en) Bit block processing method, and node
JP2021533691A (en) Methods and equipment for processing service bitstreams

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

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

Country of ref document: EP

Kind code of ref document: A1