CN106571890A - Rate adaptation method and device - Google Patents

Rate adaptation method and device Download PDF

Info

Publication number
CN106571890A
CN106571890A CN201510658886.3A CN201510658886A CN106571890A CN 106571890 A CN106571890 A CN 106571890A CN 201510658886 A CN201510658886 A CN 201510658886A CN 106571890 A CN106571890 A CN 106571890A
Authority
CN
China
Prior art keywords
frame
fifo
gfp
idle
speed governing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201510658886.3A
Other languages
Chinese (zh)
Inventor
吕华磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sanechips Technology Co Ltd
Shenzhen ZTE Microelectronics Technology Co Ltd
Original Assignee
Shenzhen ZTE Microelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen ZTE Microelectronics Technology Co Ltd filed Critical Shenzhen ZTE Microelectronics Technology Co Ltd
Priority to CN201510658886.3A priority Critical patent/CN106571890A/en
Priority to PCT/CN2016/097617 priority patent/WO2017063457A1/en
Publication of CN106571890A publication Critical patent/CN106571890A/en
Withdrawn legal-status Critical Current

Links

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

Landscapes

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

Abstract

The embodiment of the invention discloses a rate adaptation method comprising steps of: determining the number of idle frames to be inserted into each of N GFP frames is a first value; determining whether it is the first time to read a speed regulation FIFO buffer; when it is determined that it is the first time to read the speed regulation FIFO buffer, the level line of the speed regulation FIFO buffer is greater than or equal to a preset readable threshold, and an GFP frame interval indication signal is valid, starting to read the speed regulation FIFO buffer; when it is determined that it is not the first time to read the speed regulation FIFO buffer, the GFP frame interval indication signal is valid and the number of currently inserted idle frames is smaller than the first value, inserting the idle frames until the number of the inserted idle frames is greater than or equal to the first value, and continue to read the next GFP frame of the speed regulation FIFO buffer. The embodiment of the present invention also discloses a rate adaptation device.

Description

A kind of rate adaption method and device
Technical field
The present invention relates to optical transport network field, more particularly to a kind of rate adaption method and device.
Background technology
At present, there are different business in telecommunication network, conveying function of these business to network, such as band It is wide, postpone, shake etc., propose very high performance requirement, therefore, by the intrinsic speed of business, shake and Delay information and effective business datum encapsulate together the technology of transmission and arise at the historic moment, i.e. Generic Framing Procedure (GFP, Generic Framing Procedure).
Transparent GFP transmits the data block of regular length as a kind of link layer standard, be it is a kind of it is advanced, Simply, flexible service rate adaptation, mapping techniques.GFP adopt with asynchronous transfer mode (ATM, Asynchronous Transfer Mode) similar frame demarcation mode is counted, can be with transparent by industry by it Business encapsulation, effectively transmits, beneficial to multi-operator device interoperability in existing transmission network.GFP has There is the characteristics of versatility, simplicity and motility.Its appearance allows multiple business to use general one Set frame forming tech is mapped in physical channel and transmits, and it is unified, efficient that this causes the network platform to more they tend to.
Frame structure after being encapsulated by GFP needs to be mapped to optical transfer network (OTN, Optical Transport Network in frame structure), and the speed of OTN is the speed of several fixations, thus when service rate and When there is rate variance between the OTN speed that needs are mapped to, need to carry out rate adaptation.Prior art Rate adaption method is exactly the water for using a First Input First Output (FIFO, First Input First Output) Bit line carries out inserting idle frame to be adapted to, and idle frame can be referred to as IDLE, due to FIFO waterlines It is uncontrollable, the IDLE inserted between each two gfp frame will be uneven, so as to introduce gfp frame Shake, when solving GFP sides and solving business, business just occurs shake, so as to affect whole OTN The performance of system.
Data in prior art after GFP encapsulation units, write the FIFO of GFP Rate Adapter Units In, the FIFO of GFP speed adjustment units is read out using GFP speed controls, when GFP speed adjustment units The waterline of FIFO is less than thresholding, and when currently gfp frame runs through, IDLE is until GFP speed governing for insertion The waterline of the FIFO of unit is reached on thresholding, can just read the next one of the FIFO of GFP speed adjustment units Gfp frame.In this implementation, tremble because the business datum that physical solution numeral layer unit is brought is present Dynamic, it is uneven that this may result in the IDLE inserted during GFP speed governing.For example, as shown in figure 1, burst field It is all continuous that scape is the gfp frame of continuous N frames, causes to be without free time, sky between N number of gfp frame It is not busy to be all inserted in after N number of gfp frame.
The content of the invention
To solve above-mentioned technical problem, the embodiment of the present invention provides a kind of rate adaption method and device, solves Problem of non-uniform is spaced between the frame of the Generic Framing Procedure GFP-T of transparent encapsulating, system stability is improve Property.
The technical scheme is that what is be achieved in that:
The embodiment of the present invention provides a kind of rate adaption method, and the rate adaption method includes:
Determine that the number that insert idle frame in N number of Generic Framing Procedure gfp frame per frame is the first numerical value;
Determine whether to read speed governing First Input First Output FIFO for first time;
When it is determined that being to read speed governing FIFO for the first time, the waterline of the speed governing FIFO is readable more than or equal to default Thresholding, and gfp frame interval indicative signal it is effective when, proceed by reading speed governing FIFO;
When it is determined that be not to read speed governing FIFO for the first time, the gfp frame interval indicative signal effectively, and currently When the number of the idle frame of insertion is less than first numerical value, idle frame is inserted, until the free time inserted The number of frame is more than or equal to the next gfp frame for after first numerical value, continuing to read the speed governing FIFO.
Further, the number that insert idle frame per frame in the N number of gfp frame of the determination is the first numerical value Before, including:
The number for determining the idle frame for needing to insert in Preset Time is second value, and by the second value In being stored in idle number FIFO of storage, the Preset Time is the transmission time of N number of gfp frame, wherein, N is natural number more than 1, N;
By the second value idle frame be assigned to N number of gfp frame in the Preset Time each two frame it Between.
It is further, described to determine that the number that insert idle frame in N number of gfp frame per frame is the first numerical value, Including:
Determine that the number per the frame idle frame to be inserted is the first numerical value according to the second value and the N.
Further, the number for determining the idle frame for needing to insert in Preset Time is second value, is wrapped Include:
The number for obtaining Service control speed breach in the Preset Time is third value, obtains described default The number of GFP speed controls breach is the 4th numerical value in time;
The second value is determined according to the third value and the 4th numerical value.
Further, the rate adaption method also includes:
When the waterline of idle number FIFO of the storage is more than pre-determined threshold, and it is described N number of to start reading During the first frame of gfp frame, start to read storage free time FIFO.
Further, the gfp frame interval indicative signal effectively includes reading speed governing FIFO output datas It is long that umber of beats is counted as a gfp frame.
A kind of rate adaptation device of embodiment of the present invention offer, the rate adaptation device, including:It is determined that single Unit, speed adjustment unit, wherein,
The determining unit, for determining N number of Generic Framing Procedure gfp frame in insert idle frame per frame Number is the first numerical value;It is also used to determine whether to read First Input First Output speed governing FIFO for first time;
The speed adjustment unit, for being to read speed governing FIFO, the water level of the speed governing FIFO for the first time when determination When line is effective more than or equal to default readable thresholding, and gfp frame interval indicative signal, reading speed governing is proceeded by FIFO;
The speed adjustment unit, is additionally operable to when determining it is not to read speed governing FIFO for the first time, and the gfp frame is spaced Effectively, and the number of the idle frame being currently inserted into is when being less than first numerical value, inserts idle frame for indication signal, Until the number of the idle frame for inserting is more than or equal to after first numerical value, continue to read the speed governing FIFO Next gfp frame.
Further, the rate adaptation device also includes:Memory element, allocation unit,
The determining unit, for determining that the number of the idle frame for needing to insert in Preset Time is second value;
The memory element, it is described for the second value to be stored in idle number FIFO of storage Preset Time is the transmission time of N number of gfp frame, wherein, N is natural number more than 1, N;
The allocation unit, it is N number of in the Preset Time for the second value idle frame to be assigned to Between each two frame of gfp frame.
Further, the determining unit, will insert for being determined according to the second value and the N per frame The number of the idle frame for entering is the first numerical value.
Further, the determining unit, for obtaining Service control speed breach in the Preset Time Number is third value, and the number for obtaining GFP speed control breach in the Preset Time is the 4th numerical value; The second value is determined according to the third value and the 4th numerical value.
Further, the speed adjustment unit, for being more than when the waterline of idle number FIFO of the storage Pre-determined threshold, and when starting to read the first frame of N number of gfp frame, start to read storage free time FIFO.
Further, the gfp frame interval indicative signal effectively includes reading speed governing FIFO output datas It is long that umber of beats is counted as a gfp frame.
A kind of rate adaption method and device are embodiments provided, rate adaptation device determines N number of The number that insert idle frame in gfp frame per frame is the first numerical value;Determine whether to read speed governing FIFO for first time; When it is determined that be to read speed governing FIFO for the first time, the waterline of the speed governing FIFO more than or equal to presetting readable thresholding, And gfp frame interval indicative signal it is effective when, proceed by reading speed governing FIFO;When it is determined that not being for the first time Read speed governing FIFO, the gfp frame interval indicative signal is effective, and the number of the idle frame being currently inserted into is little When first numerical value, idle frame is inserted, until the number of the idle frame inserted is more than or equal to described After first numerical value, continue the next gfp frame for reading the speed governing FIFO.Embodiments provide Rate adaption method and device, it is right respectively by the number that insert idle frame in the N number of gfp frame of determination per frame Insertion idle frame is carried out per frame, between the frame for solving GFP-T problem of non-uniform is spaced, reached GFPT The uniform effects of IDLE are inserted after speed governing, the realization for saving recovery service rate when GFPT is decapsulated is answered Miscellaneous degree, improves overall system performance.
Description of the drawings
Fig. 1 is the design sketch of the GFP rate adaptations of prior art;
The apparatus structure schematic diagram that Fig. 2 maps for the client traffic of prior art to OTN networkings;
Fig. 3 is the apparatus structure schematic diagram that client traffic provided in an embodiment of the present invention maps to OTN networkings;
Fig. 4 is rate adaptation device schematic diagram one provided in an embodiment of the present invention;
Fig. 5 is rate adaptation device schematic diagram two provided in an embodiment of the present invention;
Fig. 6 is rate adaption method schematic flow sheet one provided in an embodiment of the present invention;
Fig. 7 is the design sketch of rate adaptation provided in an embodiment of the present invention;
Fig. 8 is rate adaption method schematic flow sheet two provided in an embodiment of the present invention;
Fig. 9 is rate adaptation device structural representation one provided in an embodiment of the present invention;
Figure 10 is rate adaptation device structural representation two provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly Chu, it is fully described by.
Rate adaption method and device are provided in order to be better understood from the embodiment of the present invention, first, to existing skill The client traffic of art to the device of OTN network mappings is illustrated, as shown in Fig. 2 the device includes:String Row device, physical solution numeral layer processing unit, 64B/65B codings, GFP encapsulation units, GFP rate adaptations Unit and map unit.
Wherein, serializer, for the serial data parallel output that will be received.
Physical solution numeral layer processing unit, for being processed according to client traffic type.For example, visitor is worked as Family business is 8B10B business, and the parallel data for receiving first is carried out byte of sync, then changes 10B Into 8B data, while output control code or numeric data code are indicated;When client traffic is not 8B10B business, Directly transparent transmission physical solution numeral layer processing unit, exports and is all considered numeric data code, without control code.
64B/65B is encoded, and the data processing for physical solution numeral layer processing unit to be exported is superblock, If the data of output are control codes, need to carry out 64B/65B codings;If the data of output are data Code, then need not change.8 byte datas and 8 control code numeric data codes after by coding indicate composition One 64B/65B data block.This 65B is carried out into CRC-16 calculating, is obtained after 2B check codes and 65B Data just constitute a superblock, referring specifically to agreement G.7041.
GFP encapsulation units, for multiple superblocks to be constituted into a gfp frame.First to seal according in GFP The superblock number of dress, whether Centralized Control System (FCS, Focus Control System) enable, Band extension header is carried out the length for obtaining after CRC-16 calculating with regard to group determining gfp frame payload length Into the core head of 4B;Whether enabled according to FCS, band extension header, client signal type etc. to be determining Payload type domain, by payload type domain redundancy check (CRC, Cyclic Redundancy Check) is circulated, Specifically, payload type domain is carried out obtaining the tHEC of 2B after CRC-16 calculating;Only advise in general purpose discipline Line style extension header 2B is determined or without extension header, if line style extension header, after carrying out CRC-16 calculating Obtain the eHEC of 2B;Then N number of superblock is encapsulated;Finally, according to whether FCS enables filling 4B FCS domains, obtain a complete gfp frame.
The client traffic of above-mentioned prior art to the operation principle of the device of OTN network mappings specifically can be found in G.7041, the embodiment of the present invention will not be described here agreement.
Client traffic provided in an embodiment of the present invention to OTN network mappings device, as shown in figure 3, including: Serializer, Physical Coding Sublayer processing unit, 64B/65B codings, GFP encapsulation units, GFP speed are fitted With unit and map unit.
Wherein, serializer, Physical Coding Sublayer processing unit, 64B/65B coding, GFP encapsulation units and Map unit is identical with the operation principle of prior art in Fig. 1.
Client traffic provided in an embodiment of the present invention to OTN network mappings device, as shown in figure 3, using The Service control speed breach of physical solution numeral layer unit output being controlled, because Service control speed lacks Mouth is uniform, there is no shake, therefore, it can carry out speed governing by Service control speed breach, that is, enter Row rate adaptation;Directly can also export from serializer, the transparent transmission in physical solution numeral layer unit.
Specifically, serializer carries out the serial data for receiving after serioparallel exchange, sends into physical solution numeral layer Unit carries out 8B/10B decodings, distinguishes control code and numeric data code;64B/65B coding modules are by 8 8B Data are converted into 1 64B/65B according to control code and numeric data code;GFP encapsulation units are by 8 64B/65B One superblock of composition, multiple superblocks constitute the payload of a gfp frame, then add coker in mind, payload Head and FCS check fields just constitute a gfp frame;Data after GFP encapsulation are sent to GFP rate adaptations Carry out giving map unit after speed governing process in unit and be mapped in OTN networks.
Rate adaptation device provided in an embodiment of the present invention just for transparent Generic Framing Procedure (GFPT, General framing protocol transparent mode) package-side, i.e. upstream side, illustrate, GFPT Decapsulation side, i.e. downlink side are not illustrated.
The GFP speed that the device of rate adaptation provided in an embodiment of the present invention can be understood as in above-mentioned Fig. 3 is fitted With unit, as shown in figure 4, the device of the rate adaptation can include:
Time control unit, using the transmission time of N number of gfp frame Preset Time is defined as.Due to GFP The fixation of the customer data length encapsulated in frame, using the customer data length in N frame gfp frames as pre- If the time.
Idle number determining unit, for calculating the number of idle frame in Preset Time, according in Preset Time The number of the number of Service control speed breach and GFP control breach is determined, and both differences are exactly N Free time sum in frame gfp frame.
Mean allocation free cells, for the idle frame that idle frame number determining unit determines to be evenly distributed to In Preset Time between each two gfp frame.
Speed governing FIFO message count units, for the gfp frame number for exporting, idle frame umber of beats and GFP Frame data umber of beats etc. is counted.
Speed governing FIFO reads logic control element, according to the control information that speed governing FIFO message counts unit is produced Carry out reading speed governing FIFO controls.
Business datum input block, as speed governing FIFO logic control is write.
Speed governing FIFO, for storing gfp frame.
Further, as shown in figure 5, to the further thin of rate adaptation device provided in an embodiment of the present invention The device of change is specifically, further thin by idle number determining unit and speed governing FIFO message count units Change.
Wherein, idle number determining unit can include reading logical block, the sky of idle number FIFO of storage Not busy number computing unit and idle number FIFO of storage.
The idle number computing unit, for calculating the number of idle frame in Preset Time, according to it is default when The number of the number of interior Service control speed breach and GFP control breach is determined, and both differences are just It is the free time sum in N frame gfp frames.
Storage free time number FIFO, the IDLE for storing every N frames is total.Because business datum lacks Mouth has shake, and when a gfp frame is exported, after inserting corresponding IDLE, next gfp frame does not also have It is ready to, may result in and be inserted into IDLE after a gfp frame output part, so as to, cause error, So, need idle number FIFO of storage to absorb the shake when shaking excessive, i.e., next gfp frame is also It is not ready for, continues into corresponding IDLE, until the next gfp frame of output.
The reading logical block of storage free time number FIFO, for determining currently stored idle number FIFO Waterline whether reach pre-determined threshold, if the waterline of currently stored idle number FIFO is greater than being equal to Pre-determined threshold, and speed governing FIFO is when starting to read the first frame of N number of gfp frame, proceeds by reading storage Idle FIFO, that is, proceed by the idle frame read in storage free time FIFO.Storage free time number FIFO Reading logical block gfp frame counting number unit and speed governing FIFO exported by speed governing FIFO read to enable and come true It is fixed.
Gfp frame interval indicates generation unit, for determining gfp frame interval indicative signal, according to gfp frame Interval indicative signal can determine and insert at what time idle frame.Gfp frame interval indicates that generation unit passes through Speed governing FIFO output data umber of beats computing units and speed governing FIFO read enable to determine.
Speed governing FIFO output data umber of beats counting units, the umber of beats of the data for exporting to speed governing FIFO enters Row count, when count value reach a gfp frame it is long when, illustrate that now a complete gfp frame is defeated Go out, may be inserted into IDLE frames.And speed governing FIFO outputs gfp frame counting unit adds 1, as speed governing FIFO Clear 0 when output gfp frame counting unit is N-1, because being that every N frames calculate an IDLE value, it is stored in Data in idle number FIFO are corresponding be every N frames IDLE it is total.
Embodiment one
The embodiment of the present invention provides a kind of rate adaption method, as shown in fig. 6, the rate adaption method can To include:
Step 101, determining in N number of Generic Framing Procedure gfp frame to insert the number of idle frame per frame for the One numerical value.
Specifically, the executive agent of rate adaption method provided in an embodiment of the present invention is rate adaptation device, The rate adaptation device determines that the number that insert idle frame in N number of Generic Framing Procedure gfp frame per frame is First numerical value.
Specifically, the idle frame IDLE sums for reading from idle number FIFO of storage are N number of gfp frames Total IDLE numbers be A, it is remaining if the value of A/N is C by IDLE numbers A divided by N, i.e. A/N Number is B, if B is 0, then be exactly value C of A/N per the frame IDLE to be inserted;If B is not 0, it is C and distribution remainder D sums per the IDLE values to be inserted of frame, distribution remainder D is uniformly to divide B In being fitted on N number of gfp frame, remainder B can not be for delivery in next N number of gfp frame.
Exemplary, as shown in fig. 7, during such as N=8, D's is specifically allocated as follows:
If B is 1, the D of the 4th frame is 1, and the D of remaining frame is 0;
If B is 2, the D of the 3rd frame and the 6th frame is 1, and remaining is 0;
If B is 3, the 2nd frame, the D of the 4th frame and the 6th frame is 1, and remaining is 0;
If B is 1 for the D of the 4, the 1st frame, the 3rd frame, the 5th frame and the 7th frame, remaining is 0;
If B is 0 for the D of the 5, the 2nd frame, the 4th frame and the 6th frame, remaining is 1;
If B is 0 for the D of the 6, the 3rd frame and the 6th frame, remaining is 1;
If B is 0 for the D of the 7, the 4th frame, remaining is 1.
Step 102, determine whether for first time read speed governing FIFO.
Specifically, rate adaptation device determines whether to read speed governing FIFO for first time.
Step 103, when it is determined that be to read speed governing FIFO for the first time, the waterline of the speed governing FIFO more than etc. When default readable thresholding, and gfp frame interval indicative signal are effective, reading speed governing FIFO is proceeded by.
Specifically, rate adaptation device is defined as reading speed governing FIFO for the first time, determines the water level of speed governing FIFO Whether line when the waterline of speed governing FIFO be more than or equal to presets readable thresholding more than or equal to readable thresholding is preset, And gfp frame interval indicative signal it is effective when, proceed by reading speed governing FIFO, that is, proceed by second Read speed governing FIFO.
Specifically, read to enable signal with speed governing FIFO output datas umber of beats counting to determine using speed governing FIFO Gfp frame interval indicative signal.When read speed governing FIFO output data umber of beats be counted as a gfp frame it is long when, Effectively, gfp frame interval indicates the gfp frame interval indicative signal when reading speed governing FIFO next time Invalidating signal.
Wherein, when read speed governing FIFO output data umber of beats be counted as a gfp frame it is long when, the GFP Frame period indication signal effectively, that is, exports a complete gfp frame, can just carry out insertion idle frame, prevents It is not a complete gfp frame only to export, and during insertion idle frame mistake is produced.
Step 104, when it is determined that be not to read speed governing FIFO for the first time, the gfp frame interval indicative signal effectively, And the number of the idle frame being currently inserted into be less than first numerical value when, insert idle frame, until insert institute The number of idle frame is stated more than or equal to after first numerical value, continues the next GFP of the reading speed governing FIFO Frame.
Specifically, it is not to read speed governing FIFO for the first time that rate adaptation device determines, and it is possible to determine now When gfp frame interval indicative signal is effective, at the same need judge currently already inserted into IDLE numbers be less than Every frame of above-mentioned determination will insert the first numerical value of the number of idle frame, and expression now needs to insert IDLE, so After insert IDLE, until the IDLE that inserts is more than or equal to after the first numerical value, followed by resuming studies speed governing FIFO's Next gfp frame, otherwise continues into IDLE until the IDLE numbers inserted are more than the first numerical value.
Rate adaption method provided in an embodiment of the present invention, by insert sky per frame in the N number of gfp frame of determination The number of not busy frame carries out insertion idle frame to every frame respectively, and uneven asking is spaced between the frame for solving GFP-T Topic, has reached and insert after GFPT speed governing the uniform effects of IDLE, saves when GFPT is decapsulated and recovers The implementation complexity of service rate, improves overall system performance.
Embodiment two
The embodiment of the present invention provides a kind of rate adaption method, as shown in figure 8, the rate adaption method can To include:
Step 201, the number for determining the idle frame for needing to insert in Preset Time are second value, and by institute State second value to be stored in idle number FIFO of storage, the second value idle frame is assigned to into institute State between each two frame of N number of gfp frame in Preset Time, the Preset Time is the biography of N number of gfp frame The defeated time, wherein, N is natural number more than 1, N.
Specifically, the executive agent of rate adaption method provided in an embodiment of the present invention is rate adaptation device, The rate adaptation device determines that the number of the idle frame for needing to insert in Preset Time is second value, and will The second value is stored in idle number FIFO of storage.
Specifically, rate adaptation device obtains the number of Service control speed breach in the Preset Time for the Three numerical value, the number for obtaining GFP speed control breach in the Preset Time is the 4th numerical value;And according to institute State third value and the 4th numerical value determines the second value.
It should be noted that due to the speed of OTN network supports only have it is several, therefore, client traffic speed Several speed for configuring a GFP speed control, i.e. OTN network supports are needed when being mapped to OTN networks, And GFP speed controls must be greater than client traffic speed and just business can be mapped in OTN networks, This speed difference is accomplished by the extra IDLE of insertion and has reached GFP speed controls in business datum.
Specifically, physical solution numeral layer unit outgoing traffic speed control breach and business datum breach, wherein, Service control speed breach is uniform speed, represents the transfer rate of business datum;Business datum breach Jing Cross the process of physical solution numeral layer unit and be transferred to 64B/65B codings, because business datum is in physical solution numeral layer In the processing procedure of unit, there is the process such as postpone or cache in data, therefore the transmission of business datum can be produced The certain speed shake of life, is not a kind of uniform speed.
Wherein, because the frame length after GFPT encapsulation is fixed length, whether enabled according to FCS, whether There is the superblock number to be encapsulated in extension header, GFP to determine a frame gfp frame length.In order to calculate IDLE it is as far as possible uniform, using the transmission time of the N number of gfp frame of fixation as a Preset Time, calculate Go out the number of GFP speed controls breach in the Preset Time, by the number of the GFP speed controls breach Deduct the number of N frame gfp frame length, it may be determined that the IDLE to be inserted is total in N frame gfp frames, i.e., First numerical value, then, first numerical value is stored in idle number FIFO of storage.
Further, as shown in figure 5, storing idle number by FIFO, because business datum breach is deposited In shake, when a gfp frame is exported, after inserting corresponding IDLE, next gfp frame is also without standard Get ready, to may result in and be inserted into IDLE after a gfp frame output part, so as to, cause error, so, Idle number FIFO of storage is needed to absorb the shake when shaking excessive, i.e., next gfp frame is also without standard Get ready, continue into corresponding IDLE, until the next gfp frame of output.
Further, as shown in figure 5, passing through speed governing FIFO output data umber of beats counting units, to speed governing The umber of beats of data of FIFO outputs is counted, when count value reach a gfp frame it is long when, illustrate now One complete gfp frame has been exported, and may be inserted into IDLE frames.And speed governing FIFO exports gfp frame Counting unit adds 1, when speed governing FIFO output gfp frame counting units are N-1 clear 0, because being every N Frame calculates an IDLE value, and it is the IDLE of every N frames that the data being stored in idle number FIFO are corresponding Sum.
Step 202, it is more than pre-determined threshold when the waterline of idle number FIFO of the storage, and starts to read During the first frame of N number of gfp frame, start to read storage free time FIFO.
Specifically, as shown in figure 5, the reading logical block of idle number FIFO of the storage of rate adaptation device Whether the waterline for determining currently stored idle number FIFO reaches pre-determined threshold, if currently stored idle The waterline of number FIFO is greater than being equal to pre-determined threshold, and speed governing FIFO starts to read N number of gfp frame During the first frame, reading storage free time FIFO is proceeded by, that is, in proceeding by reading storage free time FIFO Idle frame.
Step 203, determining in N number of Generic Framing Procedure gfp frame to insert the number of idle frame per frame for the One numerical value.
Specifically, the rate adaptation device is determined in N number of Generic Framing Procedure gfp frame will insert sky per frame The number of not busy frame is the first numerical value.The idle frame IDLE sums read from idle number FIFO of storage are N Total IDLE numbers of individual gfp frame are A, by IDLE numbers A divided by N, i.e. A/N, if the value of A/N For C, remainder is B, if B is 0, then be exactly value C of A/N per the frame IDLE to be inserted;Such as Fruit B is not 0, is C and distribution remainder D sums per the IDLE values to be inserted of frame, distribute remainder D be by B is evenly distributed in N number of gfp frame, and remainder B can not be for delivery in next N number of gfp frame.
Exemplary, as shown in fig. 7, during such as N=8, D's is specifically allocated as follows:
If B is 1, the D of the 4th frame is 1, and the D of remaining frame is 0;
If B is 2, the D of the 3rd frame and the 6th frame is 1, and remaining is 0;
If B is 3, the 2nd frame, the D of the 4th frame and the 6th frame is 1, and remaining is 0;
If B is 1 for the D of the 4, the 1st frame, the 3rd frame, the 5th frame and the 7th frame, remaining is 0;
If B is 0 for the D of the 5, the 2nd frame, the 4th frame and the 6th frame, remaining is 1;
If B is 0 for the D of the 6, the 3rd frame and the 6th frame, remaining is 1;
If B is 0 for the D of the 7, the 4th frame, remaining is 1.
Step 204, determine whether for first time read speed governing FIFO.
Specifically, rate adaptation device determines whether to read speed governing FIFO for first time.
Step 204, when it is determined that be to read speed governing FIFO for the first time, the waterline of the speed governing FIFO more than etc. When default readable thresholding, and gfp frame interval indicative signal are effective, reading speed governing FIFO is proceeded by.
Specifically, rate adaptation device is defined as reading speed governing FIFO for the first time, determines the water level of speed governing FIFO Whether line when the waterline of speed governing FIFO be more than or equal to presets readable thresholding more than or equal to readable thresholding is preset, And gfp frame interval indicative signal it is effective when, proceed by reading speed governing FIFO, that is, proceed by second Read speed governing FIFO.
Specifically, as shown in figure 5, reading to enable signal with the bat of speed governing FIFO output datas using speed governing FIFO Counting number is determining gfp frame interval indicative signal.One is counted as when speed governing FIFO output data umber of beats is read When individual gfp frame is long, the gfp frame interval indicative signal effectively, when reading speed governing FIFO next time Gfp frame interval indicative signal is invalid.
Wherein, when read speed governing FIFO output data umber of beats be counted as a gfp frame it is long when, the GFP Frame period indication signal effectively, that is, exports a complete gfp frame, can just carry out insertion idle frame, prevents It is not a complete gfp frame only to export, and during insertion idle frame mistake is produced.
Step 206, when it is determined that be not to read speed governing FIFO for the first time, the gfp frame interval indicative signal effectively, And the number of the idle frame being currently inserted into be less than first numerical value when, insert idle frame, until insert institute The number of idle frame is stated more than or equal to after first numerical value, continues the next GFP of the reading speed governing FIFO Frame.
Specifically, it is not to read speed governing FIFO for the first time that rate adaptation device determines, and it is possible to determine now When gfp frame interval indicative signal is effective, at the same need judge currently already inserted into IDLE numbers be less than Every frame of above-mentioned determination will insert the first numerical value of the number of idle frame, and expression now needs to insert IDLE, so After insert IDLE, until the IDLE that inserts is more than or equal to after the first numerical value, followed by resuming studies speed governing FIFO's Next gfp frame, otherwise continues into IDLE until the IDLE numbers inserted are more than the first numerical value.
Rate adaption method provided in an embodiment of the present invention, by insert sky per frame in the N number of gfp frame of determination The number of not busy frame carries out insertion idle frame to every frame respectively, and uneven asking is spaced between the frame for solving GFP-T Topic, has reached and insert after GFPT speed governing the uniform effects of IDLE, saves when GFPT is decapsulated and recovers The implementation complexity of service rate, improves overall system performance.
Embodiment three
The embodiment of the present invention provides a kind of rate adaptation device 1, as shown in figure 9, the rate adaptation device 1 Including:Determining unit 10, speed adjustment unit 11, wherein,
The determining unit 10, for determining N number of Generic Framing Procedure gfp frame in insert the free time per frame The number of frame is the first numerical value;It is also used to determine whether to read speed governing FIFO for first time;
The speed adjustment unit 11, it is described for being to read speed governing First Input First Output FIFO for the first time when determination When the waterline of speed governing FIFO is effective more than or equal to default readable thresholding, and gfp frame interval indicative signal, Proceed by reading speed governing FIFO;
The speed adjustment unit 11, is additionally operable to when determination is not to read speed governing FIFO for the first time, between the gfp frame Every indication signal effectively, and when the number of the idle frame being currently inserted into is less than first numerical value, insertion is idle Frame, until the number of the idle frame for inserting is more than or equal to after first numerical value, continues to read the speed governing The next gfp frame of FIFO.
Further, as shown in Figure 10, the rate adaptation device also includes:Memory element 12, distribution Unit 13,
The determining unit 10, for determining the number of the idle frame for needing to insert in Preset Time for the second number Value;
The memory element 12, for the second value to be stored in idle number FIFO of storage, institute The transmission time that Preset Time is N number of gfp frame is stated, wherein, N is natural number more than 1, N;
The allocation unit 13, for the second value idle frame to be assigned to into N in the Preset Time Between each two frame of individual gfp frame.
Further, the determining unit 10, will per frame for being determined according to the second value and the N The number of the idle frame of insertion is the first numerical value.
Further, the determining unit 10, for obtaining Service control speed breach in the Preset Time Number be third value, the number for obtaining GFP speed control breach in the Preset Time is the 4th numerical value; The second value is determined according to the third value and the 4th numerical value.
Further, the speed adjustment unit 11, the waterline for working as idle number FIFO of the storage is big In pre-determined threshold, and when starting to read the first frame of N number of gfp frame, start to read storage free time FIFO.
Further, the gfp frame interval indicative signal effectively includes:Read speed governing FIFO output numbers It is long a gfp frame to be counted as according to umber of beats.
Specifically, the understanding of rate adaptation device provided in an embodiment of the present invention may be referred to embodiment one and reality The explanation of the rate adaption method of example two is applied, the present embodiment will not be described here.
Rate adaptation device provided in an embodiment of the present invention, by insert sky per frame in the N number of gfp frame of determination The number of not busy frame carries out insertion idle frame to every frame respectively, and uneven asking is spaced between the frame for solving GFP-T Topic, has reached and insert after GFPT speed governing the uniform effects of IDLE, saves when GFPT is decapsulated and recovers The implementation complexity of service rate, improves overall system performance.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or meter Calculation machine program product.Therefore, the present invention can using hardware embodiment, software implementation or with reference to software and The form of the embodiment of hardware aspect.And, the present invention can be adopted and wherein include calculating at one or more Computer-usable storage medium (including but not limited to disk memory and the optical storage of machine usable program code Device etc.) on implement computer program form.
The present invention is with reference to method according to embodiments of the present invention, equipment (system) and computer program Flow chart and/or block diagram describing.It should be understood that can be by computer program instructions flowchart and/or side The knot of each flow process and/or square frame and flow chart and/or the flow process in block diagram and/or square frame in block diagram Close.Can provide these computer program instructions to general purpose computer, special-purpose computer, Embedded Processor or The processor of other programmable data processing devices is producing a machine so that by computer or other can The instruction of the computing device of programming data processing equipment is produced for realizing in one flow process or multiple of flow chart The device of the function of specifying in one square frame of flow process and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices In the computer-readable memory for working in a specific way so that in being stored in the computer-readable memory Instruction produces the manufacture for including command device, and the command device is realized in one flow process of flow chart or multiple streams The function of specifying in one square frame of journey and/or block diagram or multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing devices, made Obtain and series of operation steps performed on computer or other programmable devices to produce computer implemented process, So as to the instruction performed on computer or other programmable devices is provided for realizing in one flow process of flow chart Or specify in one square frame of multiple flow processs and/or block diagram or multiple square frames function the step of.
The above, only presently preferred embodiments of the present invention is not intended to limit the protection model of the present invention Enclose.

Claims (12)

1. a kind of rate adaption method, it is characterised in that the rate adaption method includes:
Determine that the number that insert idle frame in N number of Generic Framing Procedure gfp frame per frame is the first numerical value;
Determine whether to read speed governing First Input First Output FIFO for first time;
When it is determined that being to read speed governing FIFO for the first time, the waterline of the speed governing FIFO is readable more than or equal to default Thresholding, and gfp frame interval indicative signal it is effective when, proceed by reading speed governing FIFO;
When it is determined that be not to read speed governing FIFO for the first time, the gfp frame interval indicative signal effectively, and currently When the number of the idle frame of insertion is less than first numerical value, idle frame is inserted, until the free time inserted The number of frame is more than or equal to the next gfp frame for after first numerical value, continuing to read the speed governing FIFO.
2. rate adaption method according to claim 1, it is characterised in that it is described determine it is N number of In gfp frame per frame to insert idle frame number be the first numerical value before, including:
The number for determining the idle frame for needing to insert in Preset Time is second value, and by the second value In being stored in idle number FIFO of storage, the Preset Time is the transmission time of N number of gfp frame, wherein, N is natural number more than 1, N;
By the second value idle frame be assigned to N number of gfp frame in the Preset Time each two frame it Between.
3. rate adaption method according to claim 2, it is characterised in that the N number of GFP of the determination The number that insert idle frame in frame per frame is the first numerical value, including:
Determine that the number per the frame idle frame to be inserted is the first numerical value according to the second value and the N.
4. rate adaption method according to claim 2, it is characterised in that the determination Preset Time The number of the interior idle frame for needing to insert is second value, including:
The number for obtaining Service control speed breach in the Preset Time is third value, obtains described default The number of GFP speed controls breach is the 4th numerical value in time;
The second value is determined according to the third value and the 4th numerical value.
5. the rate adaption method according to claim 3 or 4, it is characterised in that the rate adaptation Method also includes:
When the waterline of idle number FIFO of the storage is more than pre-determined threshold, and it is described N number of to start reading During the first frame of gfp frame, start to read storage free time FIFO.
6. rate adaption method according to claim 5, it is characterised in that the gfp frame interval Indication signal effectively includes reading speed governing FIFO output data umber of beats, and to be counted as a gfp frame long.
7. a kind of rate adaptation device, it is characterised in that the rate adaptation device, including:Determining unit, Speed adjustment unit, wherein,
The determining unit, for determining N number of Generic Framing Procedure gfp frame in insert idle frame per frame Number is the first numerical value;It is also used to determine whether to read First Input First Output speed governing FIFO for first time;
The speed adjustment unit, for being to read speed governing FIFO, the water level of the speed governing FIFO for the first time when determination When line is effective more than or equal to default readable thresholding, and gfp frame interval indicative signal, reading speed governing is proceeded by FIFO;
The speed adjustment unit, is additionally operable to when determining it is not to read speed governing FIFO for the first time, and the gfp frame is spaced Effectively, and the number of the idle frame being currently inserted into is when being less than first numerical value, inserts idle frame for indication signal, Until the number of the idle frame for inserting is more than or equal to after first numerical value, continue to read the speed governing FIFO Next gfp frame.
8. rate adaptation device according to claim 7, it is characterised in that the rate adaptation device Also include:Memory element, allocation unit,
The determining unit, for determining that the number of the idle frame for needing to insert in Preset Time is second value;
The memory element, it is described for the second value to be stored in idle number FIFO of storage Preset Time is the transmission time of N number of gfp frame, wherein, N is natural number more than 1, N;
The allocation unit, it is N number of in the Preset Time for the second value idle frame to be assigned to Between each two frame of gfp frame.
9. rate adaptation device according to claim 8, it is characterised in that the determining unit, uses In determining that the number per the frame idle frame to be inserted is the first numerical value according to the second value and the N.
10. rate adaptation device according to claim 8, it is characterised in that the determining unit, Number for obtaining Service control speed breach in the Preset Time is third value, obtains described default The number of GFP speed controls breach is the 4th numerical value in time;It is true according to the third value and the 4th numerical value The fixed second value.
11. rate adaptation devices according to claim 9 or 10, it is characterised in that the speed governing list Unit, for being more than pre-determined threshold when the waterline of idle number FIFO of the storage, and starts to read the N During the first frame of individual gfp frame, start to read storage free time FIFO.
12. rate adaptation devices according to claim 11, it is characterised in that between the gfp frame Effectively include reading speed governing FIFO output data umber of beats that to be counted as a gfp frame long every indication signal.
CN201510658886.3A 2015-10-12 2015-10-12 Rate adaptation method and device Withdrawn CN106571890A (en)

Priority Applications (2)

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

Applications Claiming Priority (1)

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

Publications (1)

Publication Number Publication Date
CN106571890A true CN106571890A (en) 2017-04-19

Family

ID=58508211

Family Applications (1)

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

Country Status (2)

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

Cited By (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
CN113993010A (en) * 2021-10-11 2022-01-28 芯河半导体科技(无锡)有限公司 Efficient Xepon olt downlink transmission control method
CN115562617A (en) * 2022-11-30 2023-01-03 苏州浪潮智能科技有限公司 Depth setting method and system of FIFO memory and electronic equipment
WO2024061124A1 (en) * 2022-09-20 2024-03-28 深圳市中兴微电子技术有限公司 Data processing method and apparatus, electronic device, and readable storage medium

Families Citing this family (1)

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

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030058888A1 (en) * 2001-09-26 2003-03-27 Nec Corporation Multiplex transmission system and multiplex transmitter
CN1848809A (en) * 2005-01-28 2006-10-18 国际商业机器公司 Data mapping device, method 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
CN101695144A (en) * 2009-10-10 2010-04-14 中兴通讯股份有限公司 Method supporting multi-service access and output and system thereof
US20120327786A1 (en) * 2011-06-23 2012-12-27 Exar Corporation Method for mapping generic client signals into a generic framing procedure (gfp) path

Family Cites Families (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
CN101674218B (en) * 2008-09-09 2012-07-25 华为技术有限公司 Method and device for intercommunicating optical transport networks
CN101656588A (en) * 2009-09-21 2010-02-24 中兴通讯股份有限公司 Method and system for transmitting data
CN101674145B (en) * 2009-10-21 2013-07-03 中兴通讯股份有限公司 Data transmission method and apparatus thereof
US9800509B2 (en) * 2014-02-20 2017-10-24 Uvic Industry Partnerships Inc. System and method for efficient transport of large data files

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030058888A1 (en) * 2001-09-26 2003-03-27 Nec Corporation Multiplex transmission system and multiplex transmitter
CN1848809A (en) * 2005-01-28 2006-10-18 国际商业机器公司 Data mapping device, method 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
CN101695144A (en) * 2009-10-10 2010-04-14 中兴通讯股份有限公司 Method supporting multi-service access and output and system thereof
US20120327786A1 (en) * 2011-06-23 2012-12-27 Exar Corporation Method for mapping generic client signals into a generic framing procedure (gfp) path

Cited By (6)

* 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
CN113993010A (en) * 2021-10-11 2022-01-28 芯河半导体科技(无锡)有限公司 Efficient Xepon olt downlink transmission control method
WO2024061124A1 (en) * 2022-09-20 2024-03-28 深圳市中兴微电子技术有限公司 Data processing method and apparatus, electronic device, and readable storage medium
CN115562617A (en) * 2022-11-30 2023-01-03 苏州浪潮智能科技有限公司 Depth setting method and system of FIFO memory and electronic equipment
CN115562617B (en) * 2022-11-30 2023-03-03 苏州浪潮智能科技有限公司 Depth setting method and system of FIFO memory and electronic equipment

Also Published As

Publication number Publication date
WO2017063457A1 (en) 2017-04-20

Similar Documents

Publication Publication Date Title
CN106571890A (en) Rate adaptation method and device
JP6488058B2 (en) Data transmission method, transmitter, and receiver
JP6539755B2 (en) Data processing method, communication device, and communication system
CN100589365C (en) Method for time slot partition and overhead processing of optical payload unit in light transmission network
CN102026045B (en) Method, device and system for transmitting and receiving data frames
JP5607802B2 (en) Method and apparatus for client signal mapping and demapping
WO2019128934A1 (en) Service transmitting and receiving method and device in optical transport network
CN111092686A (en) Data transmission method, device, terminal equipment and storage medium
CN107566925B (en) Data transmission method and device
CN108092739B (en) Service transmission method and device
CN108631908A (en) The method and device restored using the method for FlexE carrying signal frames, FlexE signal frames
CN109995434A (en) A kind of data transmission method, communication equipment and storage medium
CN108989286A (en) Packaging method, de-encapsulation method and the device of general data stream
CN106411773A (en) Traffic shaping method and system in video transmission based on token bucket
CN101656588A (en) Method and system for transmitting data
CN103716115B (en) Time-multiplexed FEC coding methods and device
CN101610430A (en) A kind of method and apparatus of realizing the ODUk cross scheduling
CN106921641A (en) The method and apparatus of transmitting message
CN107465629A (en) Method for limiting speed and device
CN109981496A (en) OMCI framing device and framing method for XGPON OLT
CN113542934A (en) Service processing method, device, network equipment and storage medium
CN103560982B (en) Bag apparatus and method is cut for what Interlaken enhancement mode was dispatched
CN109698728A (en) Interconnection method, the service of connection devices and the storage medium of Interlaken interface and FlexE IMP
CN110474692A (en) A kind of optical communication equipment, optical communication system, data transmission method and storage medium
JP2020519100A (en) Method, apparatus and system for transmitting traffic in flex ethernet protocol

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20170419