CN101873192B - Method and device for transmitting constant-rate data stream - Google Patents

Method and device for transmitting constant-rate data stream Download PDF

Info

Publication number
CN101873192B
CN101873192B CN200910135540.XA CN200910135540A CN101873192B CN 101873192 B CN101873192 B CN 101873192B CN 200910135540 A CN200910135540 A CN 200910135540A CN 101873192 B CN101873192 B CN 101873192B
Authority
CN
China
Prior art keywords
data stream
constant
rate data
rate
receiving velocity
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN200910135540.XA
Other languages
Chinese (zh)
Other versions
CN101873192A (en
Inventor
李昆
周建林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN200910135540.XA priority Critical patent/CN101873192B/en
Publication of CN101873192A publication Critical patent/CN101873192A/en
Application granted granted Critical
Publication of CN101873192B publication Critical patent/CN101873192B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

The embodiment of the invention discloses a method and a device for transmitting a constant-rate data stream, relates to the communication field and aims at solving the problem that the rate of a destination end for outputting a constant-rate data stream is inconsistent with the input rate of a source end. In a technical scheme provided by the invention, the method comprises the following steps of: recovering an effective constant-rate data stream from a received data frame; acquiring the receiving rate of the effective constant-rate data stream; and adjusting the transmitting rate of the effective constant-rate data stream based on the receiving rate of the effective constant-rate data stream to equalize the transmitting rate and the receiving rate. The technical scheme of the embodiment of the invention can be used for transmitting the constant-rate data stream.

Description

Send the method and apparatus of constant-rate data stream
Technical field
The present invention relates to the communications field, relate in particular to a kind of method and apparatus that sends constant-rate data stream
Background technology
Multi-service transmission network is a kind of multi-service transmitting network network framework of adjusting based on dynamic bandwidth, supports point-to-point, point-to-multipoint service connection.Node in multi-service transmission network is divided into two kinds of N node and S nodes, and N node is common decentralized service access node, and S node is except possessing the function of N node, or and the node that docks of upper layer network.In the time transmitting fixed-bandwidth business (as TDM, SDH/SONET, private line service) in network, this network is a kind of peer switch network, can be from the upper and lower fixed-bandwidth business of any one node.Wherein existing for example, process by multi-service transmission network transmission constant-rate data stream (: tdm traffic) comprises:
S1, source adopts GEM (GPON Encapsulation Mode:GPON encapsulation mode) packaged type or GFP (Generic Framing Procedure: Generic Framing Procedure) mode, utilize elongated Frame to encapsulate TDM (Time Division Multiple, time division multiplexing) data flow.In the time that the read-out speed of TDM buffer memory and writing rate have frequency deviation, the length of data changes with this skew, the effective byte number of tdm data in PLI (Payload Length Indicator, payload length indication) territory indication notebook data frame in data frame head.
S2, source is sent to egress by Frame by multi-service transmission network.
S3, egress solves tdm traffic from Frame and puts into buffer memory, by the output of local clock control tdm traffic, and by judge data volume in buffer memory number adjust output frequency, if find in buffer memory that data volume continues to increase, and heightens output frequency; If data volume continuous decrease in discovery buffer memory, reduces output frequency, guarantee that data can not lose.
Realizing in process of the present invention, inventor finds that in existing technology, at least there are the following problems:
The load mode of constant traffic and Dynamic Bandwidth Allocation DBA (DynamicBandwidth Assignment) technology in multi-service transmission network, the time length variations inhomogeneous, effective payload of Frame that causes egress to receive is large, causes the speed of data flow and the speed of source input traffic of egress output inconsistent.Concrete reason is as described below:
On the one hand, due to tdm traffic and multi-service transmission network asynchronous, tdm traffic need to could transmit through Frame encapsulation in multi-service transmission network, because read-out speed and the writing rate of TDM buffer memory have frequency deviation, in the time that Frame adopts fixing payload length encapsulation, to cause the transmission rate difference of Frame, cause the inhomogeneities of egress receiving velocity; When Frame adopts the fixing Frame speed that sends, source adopts byte encapsulation, and changing minimum is 1 byte, causes in Frame that egress receives the effectively length variations scope of payload to be at least 1 byte.
On the other hand, DBA technology, in improving bandwidth availability ratio, makes the time slot of Frame in GTC unfixing, and this difference may approach the frame period of a multi-service transmission network, has increased the inhomogeneities of the egress Frame time of advent.
Summary of the invention
Embodiments of the invention provide a kind of method and apparatus that sends constant-rate data stream, and it can guaranteeing the output speed of egress, and the input rate of source is consistent and implementation method is simple.
For achieving the above object, embodiments of the invention adopt following technical scheme:
A method that sends constant-rate data stream, comprising:
From the Frame receiving, recover effective constant-rate data stream;
Obtain the receiving velocity of described effective constant-rate data stream;
According to the receiving velocity of described effective constant-rate data stream, adjust the transmission rate of described effective constant-rate data stream, so that transmission rate is equated with receiving velocity.
A device that sends constant-rate data stream, comprising:
Recover module, for recovering effective constant-rate data stream from the Frame receiving;
Acquisition module, for obtaining the receiving velocity of effective constant-rate data stream of described recovery module recovery;
Adjusting module, for the receiving velocity of effective constant-rate data stream of obtaining according to described acquisition module, adjusts the transmission rate of described effective constant-rate data stream, so that transmission rate is equated with receiving velocity.
The method and apparatus of the transmission constant-rate data stream that the embodiment of the present invention provides, by obtaining the receiving velocity of constant-rate data stream, according to the situation of change of described receiving velocity, adjust local transmission rate, local transmission rate is equated with receiving velocity, thereby make local output speed consistent with the input rate of source, reach the cache-time that shortens constant-rate data stream, reduce the object of the transmission delay of constant-rate data stream.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The flow chart of the method for the transmission constant-rate data stream that Fig. 1 provides for the embodiment of the present invention;
The source that Fig. 2 a provides for the embodiment of the present invention one sends the flow chart of the method for constant-rate data stream;
The egress that Fig. 2 b provides for the embodiment of the present invention one sends the flow chart of the method for constant-rate data stream;
Fig. 3 is the form of Frame in the embodiment of the present invention one;
The source that Fig. 4 a provides for the embodiment of the present invention two sends the flow chart of the method for constant-rate data stream;
The egress that Fig. 4 b provides for the embodiment of the present invention two sends the flow chart of the method for constant-rate data stream;
Fig. 5 is the form of Frame in the embodiment of the present invention two;
The device schematic diagram of the transmission constant-rate data stream that Fig. 6 provides for the embodiment of the present invention;
Fig. 7 is the structural representation of acquisition module in Fig. 6;
Fig. 8 is the structural representation of adjusting module in Fig. 6.
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 clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Based on the embodiment in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
As shown in Figure 1, the embodiment of the present invention provides a kind of method that sends constant-rate data stream, comprising:
S101, from receive Frame recover effective constant-rate data stream;
S102, obtain the receiving velocity of described effective constant-rate data stream;
S103, according to the receiving velocity of described effective constant-rate data stream, adjust the transmission rate of described effective constant-rate data stream, so that transmission rate is equated with receiving velocity.
The method of the transmission constant-rate data stream that the embodiment of the present invention provides, by obtaining the receiving velocity of constant-rate data stream, according to the situation of change of described receiving velocity, adjust local transmission rate, local transmission rate is equated with receiving velocity, thereby make local output speed consistent with source input rate, reach the cache-time that shortens constant-rate data stream, reduce the object of the transmission delay of constant-rate data stream.
For making the advantage of technical solution of the present invention clearer, below in conjunction with drawings and Examples, the present invention is elaborated.
Embodiment mono-
The E1 data flow that transmits 2.048Mbit/S ± 50ppm take source to egress is example, illustrates that the detailed process of transmission constant-rate data stream is as follows:
The process of source input constant-rate data stream, as shown in Figure 2 a:
Constant-rate data stream is packaged into Frame by S201, source;
Wherein constant-rate data stream is encapsulated in Frame take bit as the minimum unit that encapsulates, and the length range of payload is fixed.
Concrete, source, take bit as the minimum unit that encapsulates, can be 1 bit, can be also more bits.On the one hand, choosing of minimum encapsulation unit is relevant with the length of reference clock, the length of reference clock is longer, be encapsulated in Frame the length range of payload larger at every turn, therefore, suitably increase the demand that minimum encapsulation unit also can meet egress, shorten the excursion of the length of payload in the Frame that egress receives.Wherein, constant-rate data stream describes as an example of E1 example:
When source is take 1 bit as minimum encapsulation unit, carry out the encapsulation process of Frame during take 125us as reference clock, the length range that can control payload in each Frame is 255 to 257 bits;
When source take 250us as reference clock, take 2 bits when minimum encapsulation unit carries out the encapsulation process of Frame, the length range that can control payload in each Frame is 510 to 514 bits;
In above-mentioned two kinds of mode control Frames, the effect of the length range of payload is equivalent substantially.
On the other hand, choosing of minimum encapsulation unit is relevant with the transmission rate of constant traffic, for example: in the time transmitting the data flow of 622M bit/s or above two-forty, can be take 2 bits as minimum encapsulation unit.
The form of Frame as shown in Figure 3, comprise (the Payload Length Indicator by PLI, payload length indication), port-mark Port ID, PTI (Payload Type Indicator, payload type indication), frame head and the length of 5 bytes of HEC (Header Error Correction, head is wrong to be controlled) composition is the payload section of 32 bytes.
The present embodiment carries out the encapsulation of Frame take 1 bit as the minimum unit that encapsulates, in the process of encapsulation, constant-rate data stream difference, the payload length of corresponding data frame is also different, wherein determines that the length of payload can be determined according to following formula (1):
The nominal rate * reference clock of the length=constant traffic of payload in Frame; Formula (1)
Wherein " * " is multiplication.
S202, source are sent to egress by multi-service transmission network by described Frame.
The process of egress output constant-rate data stream, as shown in Figure 2 b:
S203, egress receiving data frames;
S204, egress decapsulation constant-rate data stream from the Frame receiving;
Wherein egress is take reference clock as time reference from Frame decapsulation E1 data flow, and in definite moment, described E1 data flow put into buffer memory, described E1 data flow carried out to frame alignment.
Concrete, in fiducial time t, egress is decapsulation E1 data flow from the Frame receiving, and a moment in next fiducial time.The E1 data flow of decapsulation is put into buffer memory.For example, the E1 data flow of decapsulation in 0~t time is put into buffer memory in the t+a moment; The E1 data flow of decapsulation in t~2t time is put into buffer memory in the 2t+a moment; The like; In (N-1) t~Nt time, the E1 data flow of decapsulation is put into buffer memory in the N*t+a moment, and wherein N is natural number.
Wherein, while adding E1 data flow to buffer memory in definite moment, also comprise:
The address space of constant-rate data stream described in record buffer memory.
Concrete, for the address in spatial cache arranges continuous address pointer, in the time that the E1 of decapsulation data flow is put into buffer memory, the initial address of record buffer memory E1 data flow; After buffer memory finishes, the end address of record buffer memory E1 data flow, and obtain respectively above-mentioned two address pointers that address is corresponding.According to above-mentioned two address pointers, determine the address sum that buffer memory E1 data flow is required.
S205, egress are obtained the receiving velocity of the constant-rate data stream of described decapsulation;
Concrete, according to the bit number of the required address sum of E1 data flow and the storage of each address, obtain the data volume of buffer memory in the fiducial time, i.e. the quantities received of E1 data flow in the fiducial time.The method of wherein calculating quantities received can be referring to formula (2)
The bit number formula (2) of quantities received=address sum * each address storage
Wherein " * " is multiplication.
By the way, can obtain the quantities received of constant-rate data stream at least one fiducial time, thereby determine the receiving velocity of constant-rate data stream in described at least one fiducial time.
S206, egress according to described in the receiving velocity that obtains, adjust the transmission rate of the constant-rate data stream of described decapsulation.
Wherein said fixed intervals are at least one fiducial time.
Concrete, receiving velocity in current time interval was compared with the receiving velocity in a upper time interval: if receiving velocity equated with receiving velocity in the upper time interval in current time interval, represent that the speed of source transmission E1 data flow equals the speed of egress transmission E1 data flow, does not adjust the transmission rate of the constant-rate data stream of described decapsulation;
If receiving velocity is greater than receiving velocity in the time interval in current time interval, represent that the speed of source transmission E1 data flow is greater than the speed of egress transmission E1 data flow, heightens the transmission rate of the constant-rate data stream of described decapsulation;
If receiving velocity is greater than receiving velocity in the time interval in current time interval, represent that the speed of source transmission E1 data flow is less than the speed of egress transmission E1 data flow, reduces the transmission rate of the constant-rate data stream of described decapsulation.
The method of the transmission constant-rate data stream that the embodiment of the present invention provides, by obtaining the receiving velocity of constant-rate data stream, according to the situation of change of described receiving velocity, adjust local transmission rate, local transmission rate is equated with receiving velocity, thereby make local output speed consistent with source input rate, reach the cache-time that shortens constant-rate data stream, reduce the object of the transmission delay of constant-rate data stream.Take bit as the minimum unit that encapsulates sends constant-rate data stream, guarantee that the length range of the effective payload in Frame is fixed, shorten the excursion of the length of effective payload of the Frame of egress reception; Take fiducial time as time reference, the constant-rate data stream of decapsulation is carried out to frame alignment, eliminated the Frame inhomogeneous impact on the egress output stream time of advent, reduced the delay of egress transmission constant-rate data stream.Transmission mechanism in existing multi-service transmitting network and frame structure are not made to any modification, be convenient to system upgrade and maintenance, reduced system maintenance cost.In the multi-service transmission network of supporting Packet Service, transmit constant-rate data stream, expanded the range of application of multi-service transmitting network, reduced the operation cost of network.
Embodiment bis-
In multi-service transmission network, the E1 data flow that transmits 2.048Mbit/S ± 50ppm take source to egress is example, illustrates that the specific operation process of transmission constant-rate data stream is as follows:
The detailed process of source input constant-rate data stream, as shown in Fig. 4 a:
S401, source are obtained the control information of constant-rate data stream, and described control information and constant-rate data stream are packaged into Frame;
Wherein said control information comprises the speed difference of the interior input rate of constant-rate data stream of each reference clock cycle or the nominal rate of this input rate and this constant-rate data stream;
Wherein constant-rate data stream is encapsulated in Frame take bit as minimum encapsulation unit, this Frame carry the rate information of the input rate that calculates or speed difference and effectively the length range of payload fix.
The form of Frame as shown in Figure 5, comprise (the Payload Length Indicator by PLI, payload length indication), port-mark Port ID, PTI (Payload Type Indicator, payload type indication), frame head and the encapsulation payload of 5 bytes of HEC (Header Error Correction, head is wrong to be controlled) composition.Wherein, the payload section length of corresponding E1 is 33 bytes, comprise the Ext territory of expansion (Extend) 1 byte, adjust the rate information of data and data flow for transfer rate, Ext territory comprises speed adjustment data D, rate information S and fixing filler NC (No Carry); This payload length also comprises that length is the payload Payload of 32 bytes, for encapsulating constant-rate data stream.
The present embodiment carries out the encapsulation of Frame take 1 bit as the minimum unit that encapsulates, in the process of encapsulation, and the payload length difference of the Frame of the data flow of different constant rate of speeds, determining of payload length can be determined according to following formula (3):
The nominal rate * reference clock of the payload length=1 byte+constant traffic of the Frame of constant-rate data stream; Formula (3)
Wherein, "+" for adding computing, " * " is multiplication.
In above-mentioned formula, 1 byte of the payload length of the Frame of constant-rate data stream is adjusted the rate information of data and data flow for transfer rate.
The payload length of definite PL need meet phy clock in multi-service transmission network can carry the constant-rate data stream of input in the time of maximum frequency deviation, describes as an example of E1 example:
Maximum frequency deviation ± 50ppm of E1, the maximum frequency deviation ± 32ppm of phy clock, in each clock reference, the maximum of data flow is changed to 1bit, can represent the input rate of E1 data flow and the difference of nominal rate with S=± 1.When multi-service transmission is during at-32ppm, PL=33, the maximum input rate that can carry when S=1 is: (256+1) bit* (1/125us) * (1-32ppm) ≈ 2.0559Mbit/S, this speed is greater than 3000ppm with respect to the frequency difference of the nominal rate 2.048Mbit/S of E1, can meet the requirement of E1 maximum frequency deviation ± 50ppm, so the maximum changing range of known S value is ± 1, and PL length can meet the demands simultaneously.
In S401, because the maximum frequency deviation of E1 data flow is 50ppm, therefore, in clock reference, effectively the variation maximum of payload is changed to 1bit, can represent by S value, and the maximum changing range of S value is ± 1.A corresponding Frame of clock reference cycle, the amount of bits of input E1 data flow in source statistics TS, and compare with 256 bits of E1 under nominal rate, in the time that statistical magnitude is greater than 256, S value is+1; In the time that statistical magnitude equals 256, S value is 0, and in the time that statistical magnitude is less than 256, S value is-1.In the process of encapsulation, source is take bit as the minimum unit encapsulation of data frame that encapsulates, in the time that the input rate of constant-rate data stream input source is greater than nominal rate, the speed of Frame encapsulation is adjusted the valid data that bit/speed adjusted position is constant-rate data stream, in the time that the input rate of constant-rate data stream input source equals nominal rate, it is invalid data that the speed of Frame encapsulation is adjusted bit/speed adjusted position, in the time that the input rate of constant-rate data stream input source is less than nominal rate, the setting bit that the speed of Frame encapsulation is adjusted bit/speed adjusted position and constant-rate data stream is that invalid data (is+1 and 0 o'clock at S, the data of this setting bit are valid data), in the present embodiment, set the position of bit can be redefined for encapsulation constant traffic last 1 byte last 1 bit or better position (when source is during take 2 bits or more bit as minimum encapsulation unit, the quantity that the amount of bits of desired location and speed are adjusted bit/speed adjusted position can adjust accordingly).In the present embodiment, source is fixed between 255 bit to 257 bits take 1 bit as the length range of the minimum effective payload that encapsulates unit encapsulation of data frame, Frame, compare with existing take byte as minimum encapsulation unit, shortened in the Frame that egress receives the effectively excursion of the length of payload.
In the process of encapsulation, rate information S value in Ext is very important according to the output of stream at egress paired domination number, therefore, transmit for guaranteeing that S value is correct, the rate information that 1 byte (byte of information in encapsulation Ext territory) of the payload length of Frame can be carried 3 described constant-rate data streams carries out majority vote for egress.For example:
In Ext territory, define 6bit and transmit S value, every 2bit transmits a S value, for example: 01 represents that S=+1,10 represents that S=-1,00 and 11 represents S=0, and 3 S values of a Frame portability transmit, and egress adopts the method for majority vote to determine S value.Also can transmit by the method the plus-minus mark of S value, in the time that egress is done majority vote, add mark when effective when at least 2, represent S=+1; Subtract mark when effective when at least 2, represent S=-1; When adding and subtracting mark when all invalid, represent S=0.
The length range of the Frame of the encapsulation E1 data flow in the present embodiment is 255 to 257 bits, wherein, in the case of meet in Frame the length range of effective payload fixing, after above-mentioned formula (3) calculates payload length, the payload length that can also according to circumstances this be calculated improves or reduces several bytes, or adopt different payload length according to odd-numbered frame and even frame, final payload length shows by the PLI of data frame head.For example: payload length is got 34 bytes, 2 bytes are wherein adjusted data for transfer rate information (can directly transmit the input rate value of data flow input source) and speed, and fill with padding data.
S402, source are sent to egress by multi-service transmission network by described Frame.
The detailed process of egress output constant-rate data stream, as shown in Figure 4 b:
S403, egress receiving data frames;
S404, according to the control information of described payload section, recover effective constant-rate data stream from described payload section;
Wherein said control information comprises the speed difference of the interior input rate of constant-rate data stream of each reference clock cycle or the nominal rate of this input rate and this constant-rate data stream;
According to the control information of described payload section, determine effective constant-rate data stream in described Frame; Can determine this rate information according to the method for majority vote;
In the time that this rate information represents that the input rate of this constant-rate data stream input source is greater than nominal rate, in definite moment, speed is adjusted to data and put into buffer memory; Or
In the time that this rate information represents that the input rate of this constant-rate data stream input source is less than nominal rate, determining that the moment abandons the data of setting bit of constant-rate data stream of putting into buffer memory (wherein, also comprising the data that abandon speed and adjust bit/speed adjusted position).Wherein, be that last 1 bit of last 1 byte of encapsulation constant traffic is corresponding with the position of the setting bit in S302, in egress, will put into last 1 bit dropping of last 1 byte of constant-rate data stream of buffer memory.Wherein, align constant-rate data stream is put into buffer memory by frame, can in buffer memory, find exactly this desired location, according to the rate information of decapsulation, the information of this position is processed.
Egress is by obtaining the receiving velocity of described constant-rate data stream, and the process of transmission rate of adjusting described constant-rate data stream is similar to embodiment, repeats no more herein.
The method of the transmission constant-rate data stream that the embodiment of the present invention provides, by obtaining the receiving velocity of constant-rate data stream, according to the situation of change of described receiving velocity, adjust local transmission rate, local transmission rate is equated with receiving velocity, thereby make local output speed consistent with source input rate, reach the cache-time that shortens constant-rate data stream, reduce the object of the transmission delay of constant-rate data stream.Take bit as the minimum unit that encapsulates sends constant-rate data stream, guarantee that the length range of the effective payload in Frame is fixed, shorten the excursion of the length of effective payload of the Frame of egress reception; Rate information and data flow are transferred to egress simultaneously, have reduced the time delay of data flow; Take fiducial time as time reference, the constant-rate data stream of decapsulation is carried out to frame alignment, eliminated the Frame inhomogeneous impact on the egress output stream time of advent, reduced the delay of egress transmission constant-rate data stream.Transmission mechanism in existing multi-service transmitting network and frame structure are not made to any modification, be convenient to system upgrade and maintenance, reduced system maintenance cost.In the multi-service transmission network of supporting Packet Service, transmit constant-rate data stream, expanded the range of application of multi-service transmitting network, reduced the operation cost of network.
Embodiment tri-
The method of the transmission constant-rate data stream that another embodiment of the present invention provides, detailed process is as follows:
In above-described embodiment, constant-rate data stream describes as an example of E1 example, due to payload length corresponding to the constant traffic of different rates, the calculating of payload length can be with reference to above-mentioned formula (1), and payload length need meet multi-service transmitting physical clock can carry this data flow in the time of maximum frequency deviation.It is as shown in table 1 that the constant rate of speed customer data of other speed flows PL payload length under reference clock TS=125us:
Table 1:
Data stream type Nominal digit rate Nominal length PL payload length
T1 1.544Mbit/s±50bit/s 193bit 194bit
E1 2.048Mbit/s±50ppm 256bit 257bit
E3 34.368Mbit/s±688bit/s 4296bit 4297bit
DS3/T3 44.736Mbit/s±895bit/s 5592bit 5593bit
E4 139.264Mbit/s±2089bit/s 17408bit 17409bit
STM-1 regenerator 155.52Mbit/s±3111bit/s 19440bit 19441bit
...... ...... ...... ......
For example: transmit the constant rate of speed customer data stream that transmits 155.52Mbit/S by multi-service, wherein PL payload length is 1+155.520M/8000=2431 byte, and concrete transmitting procedure, with embodiment mono-, repeats no more.
In the embodiment of the present invention, source calculates after customer data stream, can be by adaptive method, automatically adapt to the high-quality transmission of the constant traffic of multiple speed grade; For example: system arranges the default value/default value of the payload length of this constant-rate data stream in the time of initialization according to the nominal rate of various constant-rate data streams, in the time that source calculates the input rate value of arbitrary constant-rate data stream, search with this input rate and be worth immediate nominal rate, and further search the payload length that this nominal rate is corresponding, adopt payload length to encapsulate the constant-rate data stream receiving.In the time transmitting the data flow of two-forty when (622M bit/s or more than), under the prerequisite of meeting customer need, source encapsulation of data frame can suitably be adjusted the minimum unit that encapsulates, for example: take 2 bits or more bits as minimum encapsulation unit, fix to control in Frame the effectively length range of payload; Expand the scope of application of multi-service transmission.
The method of the transmission constant-rate data stream that the embodiment of the present invention provides, by obtaining the receiving velocity of constant-rate data stream, according to the situation of change of described receiving velocity, adjust local transmission rate, local transmission rate is equated with receiving velocity, thereby make local output speed consistent with source input rate, reach the cache-time that shortens constant-rate data stream, reduce the object of the transmission delay of constant-rate data stream.Take bit as the minimum unit that encapsulates sends constant-rate data stream, guarantee that the length range of the effective payload in Frame is fixed, shorten the excursion of the length of effective payload of the Frame of egress reception; Take fiducial time as time reference, the constant-rate data stream of decapsulation is carried out to frame alignment, eliminated the Frame inhomogeneous impact on the egress output stream time of advent, reduced the delay of egress transmission constant-rate data stream.Transmission mechanism in existing multi-service transmitting network and frame structure are not made to any modification, be convenient to system upgrade and maintenance, reduced system maintenance cost.In the multi-service transmission network of supporting Packet Service, transmit constant-rate data stream, expanded the range of application of multi-service transmitting network, reduced the operation cost of network.
As shown in Figure 6, the embodiment of the present invention provides a kind of device that sends constant-rate data stream, comprising:
Recover module 601, for recovering effective constant-rate data stream from the Frame receiving;
Acquisition module 602, for obtaining the receiving velocity of effective constant-rate data stream of described recovery module recovery;
Adjusting module 603, for the receiving velocity of effective constant-rate data stream of obtaining according to described acquisition module, adjusts the transmission rate of described effective constant-rate data stream, so that transmission rate is equated with receiving velocity.
Optionally, described recovery module 601 is also when comprising effective constant-rate data stream control information in the payload section of Frame, according to the control information of described effective constant-rate data stream, determine the data volume of effective constant traffic in payload section, and according to determining amount of data, recover effective constant-rate data stream from described payload section.
Optionally, as shown in Figure 7, described acquisition module 602 may further include:
Quantities received obtains submodule 6021, for obtaining the quantities received of effective constant-rate data stream in Fixed Time Interval;
Receiving velocity obtains submodule 6022, for according to the quantities received of described Fixed Time Interval, obtains the receiving velocity of described effective constant-rate data amount.
Optionally, as shown in Figure 8, described adjusting module 603 may further include:
Comparison sub-module 6031, for comparing the receiving velocity in current time interval and the receiving velocity in a upper time interval;
Adjust submodule 6032, for according to the comparative result of described comparison module, adjust the transmission rate of described effective constant-rate data stream in current time interval.
Further alternative, described adjustment submodule 6032 specifically for: in current time interval receiving velocity with in a time interval receiving velocity equate, do not adjust the transmission rate of described effective constant-rate data stream; In current time interval, receiving velocity is greater than receiving velocity in the time interval, heightens the transmission rate of described effective constant-rate data stream; Otherwise, reduce the transmission rate of described effective constant-rate data stream.
The device of the transmission constant-rate data stream that the embodiment of the present invention provides, by obtaining the receiving velocity of constant-rate data stream, according to the situation of change of described receiving velocity, adjust local transmission rate, local transmission rate is equated with receiving velocity, thereby make local output speed consistent with source input rate, reach the cache-time that shortens constant-rate data stream, reduce the object of the transmission delay of constant-rate data stream.Take bit as the minimum unit that encapsulates sends constant-rate data stream, guarantee that the length range of the effective payload in Frame is fixed, shorten the excursion of the length of effective payload of the Frame of egress reception; Take fiducial time as time reference, the constant-rate data stream of decapsulation is carried out to frame alignment, eliminated the Frame inhomogeneous impact on the egress output stream time of advent, reduced the delay of egress transmission constant-rate data stream.Transmission mechanism in existing multi-service transmitting network and frame structure are not made to any modification, be convenient to system upgrade and maintenance, reduced system maintenance cost.In the multi-service transmission network of supporting Packet Service, transmit constant-rate data stream, expanded the range of application of multi-service transmitting network, reduced the operation cost of network.
One of ordinary skill in the art will appreciate that realizing all or part of step that above-described embodiment method carries is can carry out the hardware that instruction is relevant by program to complete, described program can be stored in a kind of computer-readable recording medium, this program, in the time carrying out, comprises step of embodiment of the method one or a combination set of.
In addition, the each functional unit in each embodiment of the present invention can be integrated in a processing module, can be also that the independent physics of unit exists, and also can be integrated in a module two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and also can adopt the form of software function module to realize.If described integrated module realizes and during as production marketing independently or use, also can be stored in a computer read/write memory medium using the form of software function module.
The above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, any be familiar with those skilled in the art the present invention disclose technical scope in; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (10)

1. a method that sends constant-rate data stream, is characterized in that, comprising:
From the Frame receiving, recover effective constant-rate data stream; Wherein, describedly from the Frame receiving, recover effective constant-rate data stream and comprise: take reference clock as time reference from Frame decapsulation E1 data flow, and in definite moment, described E1 data flow is put into buffer memory;
Obtain the receiving velocity of described effective constant-rate data stream, the described receiving velocity that obtains described effective constant-rate data stream comprises: while adding E1 data flow to buffer memory in definite moment, the address space of constant-rate data stream described in record buffer memory, and obtain the required address sum of E1 data flow described in buffer memory, according to the bit number of the required address sum of described E1 data flow and the storage of each address, obtain the quantities received of E1 data flow in the fiducial time, and obtain the quantities received of constant-rate data stream at least one fiducial time, and determine the receiving velocity of constant-rate data stream in described at least one fiducial time,
According to the receiving velocity of described effective constant-rate data stream, adjust the transmission rate of described effective constant-rate data stream, so that transmission rate is equated with receiving velocity.
2. the method for transmission constant-rate data stream according to claim 1, is characterized in that, in the time that the payload section of Frame comprises the control information of effective constant-rate data stream, described from receive Frame recover effective constant-rate data stream, comprising:
According to the control information of described effective constant-rate data stream, determine the data volume of effective constant traffic in payload section, and according to determining amount of data, recover effective constant-rate data stream from described payload section.
3. the method for transmission constant-rate data stream according to claim 1 and 2, is characterized in that, described in obtain the receiving velocity of described effective constant-rate data stream, comprising:
Obtain the quantities received of effective constant-rate data stream in Fixed Time Interval;
According to the quantities received of described Fixed Time Interval, obtain the receiving velocity of described effective constant-rate data amount.
4. the method for transmission constant-rate data stream according to claim 3, is characterized in that, described according to described effective constant-rate data stream, adjusts the transmission rate of described effective constant-rate data stream, comprising:
Receiving velocity in current time interval and the receiving velocity in a upper time interval are compared;
According to comparative result, adjust the transmission rate of described effective constant-rate data stream in current time interval.
5. the method for transmission constant-rate data stream according to claim 4, is characterized in that, described according to comparative result, adjusts the transmission rate of described effective constant-rate data stream in current time interval, comprising:
If receiving velocity equated with receiving velocity in the upper time interval in current time interval, do not adjust the transmission rate of described effective constant-rate data stream; If receiving velocity is greater than receiving velocity in the time interval in current time interval, heighten the transmission rate of described effective constant-rate data stream; Otherwise, reduce the transmission rate of described effective constant-rate data stream.
6. a device that sends constant-rate data stream, is characterized in that, comprising:
Recover module, for recovering effective constant-rate data stream from the Frame receiving; Described recovery module specifically for, take reference clock as time reference from Frame decapsulation E1 data flow, and in definite moment, described E1 data flow is put into buffer memory;
Acquisition module, for obtaining the receiving velocity of effective constant-rate data stream of described recovery module recovery; Described acquisition module specifically for, while adding E1 data flow to buffer memory in definite moment, the address space of constant-rate data stream described in record buffer memory, and obtain the required address sum of E1 data flow described in buffer memory, according to the bit number of the required address sum of described E1 data flow and the storage of each address, obtain the quantities received of E1 data flow in the fiducial time, and obtain the quantities received of constant-rate data stream at least one fiducial time, and determine the receiving velocity of constant-rate data stream in described at least one fiducial time;
Adjusting module, for the receiving velocity of effective constant-rate data stream of obtaining according to described acquisition module, adjusts the transmission rate of described effective constant-rate data stream, so that transmission rate is equated with receiving velocity.
7. the device of transmission constant-rate data stream according to claim 6, it is characterized in that, in the time that the payload section of Frame comprises the control information of effective constant-rate data stream, described recovery module is used for according to the control information of described effective constant-rate data stream, determine the data volume of effective constant traffic in payload section, and according to determining amount of data, recover effective constant-rate data stream from described payload section.
8. according to the device of the transmission constant-rate data stream described in claim 6 or 7, it is characterized in that, described acquisition module, comprising:
Quantities received obtains submodule, for obtaining the quantities received of effective constant-rate data stream in Fixed Time Interval;
Receiving velocity obtains submodule, for according to the quantities received of described Fixed Time Interval, obtains the receiving velocity of described effective constant-rate data amount.
9. the device of transmission constant-rate data stream according to claim 8, is characterized in that, described adjusting module, comprising:
Comparison sub-module, for comparing the receiving velocity in current time interval and the receiving velocity in a upper time interval;
Adjust submodule, for according to the comparative result of described comparison module, adjust the transmission rate of described effective constant-rate data stream in current time interval.
10. the device of transmission constant-rate data stream according to claim 9, it is characterized in that, described adjustment submodule specifically for: in current time interval receiving velocity with in a time interval receiving velocity equate, do not adjust the transmission rate of described effective constant-rate data stream; In current time interval, receiving velocity is greater than receiving velocity in the time interval, heightens the transmission rate of described effective constant-rate data stream; Otherwise, reduce the transmission rate of described effective constant-rate data stream.
CN200910135540.XA 2009-04-21 2009-04-21 Method and device for transmitting constant-rate data stream Active CN101873192B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910135540.XA CN101873192B (en) 2009-04-21 2009-04-21 Method and device for transmitting constant-rate data stream

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910135540.XA CN101873192B (en) 2009-04-21 2009-04-21 Method and device for transmitting constant-rate data stream

Publications (2)

Publication Number Publication Date
CN101873192A CN101873192A (en) 2010-10-27
CN101873192B true CN101873192B (en) 2014-05-21

Family

ID=42997872

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910135540.XA Active CN101873192B (en) 2009-04-21 2009-04-21 Method and device for transmitting constant-rate data stream

Country Status (1)

Country Link
CN (1) CN101873192B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101173382B1 (en) 2010-10-29 2012-08-10 삼성에스디에스 주식회사 Method and Apparatus for Transmitting Data
CN106788877B (en) * 2015-11-24 2020-03-10 中国移动通信集团浙江有限公司 Data service uplink rate adjusting method, terminal and wireless network controller
CN106911545B (en) * 2017-01-23 2020-04-24 北京东土军悦科技有限公司 Method and device for transmitting ST _ BUS data through Ethernet
CN106911432A (en) * 2017-03-29 2017-06-30 武汉米风通信技术有限公司 Broadcasting and TV frequency spectrum ultra-narrow band Internet of Things communication channel rate adaptive approach and device
CN108738080B (en) * 2017-04-20 2020-06-26 华为技术有限公司 Data transmission method and device
CN108737997B (en) * 2017-04-21 2020-11-27 展讯通信(上海)有限公司 Method, equipment and system for adjusting data packet transmission rate
CN110290072B (en) * 2018-03-19 2021-06-08 华为技术有限公司 Flow control method, flow control device, network equipment and storage medium
CN112134809B (en) * 2020-09-16 2024-04-23 山东云海国创云计算装备产业创新中心有限公司 Flow control method, device, equipment and readable storage medium
CN115277589B (en) * 2022-06-30 2023-08-29 北京比特大陆科技有限公司 Control data sending method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1192617A (en) * 1996-12-30 1998-09-09 西门子电信网络公司 Method and system for handling telecommunications data traffic
CN1691550A (en) * 2004-04-21 2005-11-02 华为技术有限公司 Service protection device in optical communication network and method thereof

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8683535B2 (en) * 2004-03-26 2014-03-25 Broadcom Corporation Fast channel change
CN100403822C (en) * 2005-06-30 2008-07-16 华为技术有限公司 Adaptive rate consulting device and method
US20070110027A1 (en) * 2005-11-15 2007-05-17 Mediatek Incorporation Systems and methods for processing packet streams

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1192617A (en) * 1996-12-30 1998-09-09 西门子电信网络公司 Method and system for handling telecommunications data traffic
CN1691550A (en) * 2004-04-21 2005-11-02 华为技术有限公司 Service protection device in optical communication network and method thereof

Also Published As

Publication number Publication date
CN101873192A (en) 2010-10-27

Similar Documents

Publication Publication Date Title
CN101873192B (en) Method and device for transmitting constant-rate data stream
CN101674498B (en) Method, equipment and system for transmitting constant-rate data stream
CN102026045B (en) Method, device and system for transmitting and receiving data frames
CN102439923B (en) Device and method for transporting Universal service transport transitional encoding
WO2019128934A1 (en) Service transmitting and receiving method and device in optical transport network
CN101313507B (en) Method and apparatus for transmitting service of synchronous digital system in passive optical network
CN102056031B (en) Method and device for transmitting multi-channel service
US7986713B2 (en) Data byte load based network byte-timeslot allocation
US8195049B1 (en) Transporting asynchronous ODUk signals over a synchronous interface
CN103688499A (en) Optical channel data unit ODU service transmission device and method thereof
CN101919186A (en) Telecom multiplexer for variable rate composite bit stream
CN102055727B (en) Data encapsulation method, encapsulation equipment and branch unit in multi-service transport network
CN101552931B (en) System and method for realizing encapsulation mode frame recombination of gigabit passive optical network
CN101674145B (en) Data transmission method and apparatus thereof
CN101753527B (en) Method, system and device for transmitting bandwidth distribution information in transport network
JP5853788B2 (en) Transmission apparatus, transmission method, and transmission band changing method
EP1936849B1 (en) Method for mapping and demapping data information over the members of a concatenated group
CN101933262A (en) Radio transmitting device and radio transmitting method
CN101039157B (en) Microwave frame adapting apparatus and method
US7558260B2 (en) Byte-timeslot-synchronous, dynamically switched multi-source-node data transport bus system
CN103384178A (en) ODU frame-like mapping method and device
CN1486000A (en) Phase adjusting apparatus, phase adjusting method for use therein, and program for phase adjusting method
CN102439883B (en) Method, system and device for transmitting synchronous digital hierarchy signals by microwave
US7724781B1 (en) Receive virtual concatenation processor
CN102510355B (en) Method for realizing flexible expenditure data increase and decrease in PTN system

Legal Events

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