Embodiment
The embodiment of the invention provides a kind of method and apparatus of data cell conversion/parsing and the system of data unit transmission.The embodiment of the invention can improve the efficiency of transmission of data cell, satisfies the different demands of different business, improves user experience.
Followingly the invention provides detailed embodiment.
Seeing also Fig. 1 is the method for converting data cell figure that the embodiment of the invention provides.
Need be in network during another user communication as the user, the application layer program generates user data SDU, and transport layer enters following step after receiving professional SDU from application layer:
Step 101 is classified SDU according to type of service;
Whether the SDU characteristics of every class business and business datum flow and business datum need to retransmit, and have difference according to different business.Generally speaking, can whether whether all even business datum need to retransmit according to the service data unit length variations size of business, business datum flow, the SDU of business can be divided into two big classes; Professional SDU length variations is little, the business datum flow even and business datum does not need to retransmit, and then such professional SDU is divided into the SDU of first kind business; Professional SDU length variations is big, the business datum flow is inhomogeneous and business datum need retransmit the SDU that such professional SDU then is divided into the second class business.
Such as ip voice bearer service (VOIP, Voice on IP), the SDU length variations of VOIP business is little, and the business datum flow is even, and does not need to retransmit, so the SDU of VOIP business is divided into the SDU of first kind business; The SDU length variations of affirmation mode business (AM, Acknowledge mode) is big, and the business datum flow is inhomogeneous, and needs to retransmit, so the SDU of AM business is divided into the SDU of the second class business.
The rule of above-mentioned classification can be preset in the transmit leg equipment, after transport layer receives SDU from the upper strata, according to the classifying rules that presets SDU is classified.
Step 102 is with the data division of sorted SDU generation PDU;
After SDU is classified, a SDU is divided into several little data cells or several SDU cascades are generated a big data cell, the data division of a data cell that these are little or a big data cell composition PDU.After forming the data division of PDU, execution in step 103 further generates complete PDU.
Step 103 for data division adds head construction, generates PDU;
In embodiments of the present invention, for the data division of the SDU that derives from first kind business adds head construction based on frame, for the data division of the SDU that derives from the second class business adds head construction based on byte.
The embodiment of the invention is the example explanation with the head construction of Radio Link control (RLC, Radio Link Control) agreement PDU.Below be based on the RLC PDU head construction of frame:
RLC?PDU?Header={RBID,RLC?SN,Start?flag,End?flag,list?of{Extensionflag,Length?Indicator}}
Wherein, list of represents to have a plurality of Extension flag and Length Indicator field, and each field implication sees Table one:
Table one
Field |
Implication |
RLC?PDU?Header |
RLC PDU head |
RBID |
The radio bearer sign |
RLC?SN |
This PDU of sequence identification is in the position of whole service PDU |
Start?Flag |
Whether first byte of sign PDU is first byte of a SDU |
End?Flag |
Whether last byte of sign PDU is last byte of a SDU |
Extension flag |
Expression immediately following this field back be Length Indicator field, or the beginning of SDU data.1 expression is that the back is a Length Indicator field, and 0 expression is the beginning of SDU data |
Length Indicator |
The length of PDU |
Below be based on the RLC PDU head construction of byte:
RLC?PDU?Header={RBID,Type,P,RLC?SN,Start?flag,End?flag,listof{Extension?flag,Length?Indicator}}
Wherein, list of represents a plurality of Extension flag and Length Indicator field, and each field implication sees Table two:
Table two
Field |
Implication |
RLC PDU Header |
RLC PDU head |
RBID |
The radio bearer sign |
TYPE |
Indicate that this PDU is data PDU or control PDU |
P |
Request recipient condition report feedback |
RLC SN |
The position of PDU in professional PDU, this position is with the byte offset quantitative character |
Start Flag |
Whether first byte of sign PDU is first byte of a SDU |
End Flag |
Whether last byte of sign PDU is last byte of a SDU |
Extension flag |
E represent immediately following the E back be Length Indicator field, or the beginning of SDU data.1 expression is LI, and 0 expression is the beginning of SDU data |
Length Indicator |
The length of PDU |
Need to prove that RLC SN is with the byte offset quantitative character in based on the head construction of byte, specifically, the SN of each PDU is with the start byte of these PDU loaded service data sign.
Wherein the PDU sequence number length in the head construction can calculate or service data transmission rate, propagation delay time and service data unit bag length calculate with service data transmission rate and propagation delay time.
Transmission rate as the VOIP business is per second 50 frames, is 300ms if allow propagation delay time, so PDU sequence number length=log (50 * the 0.3)/log2=4bits of VOIP business; 50 is per second 50 frames in this computing formula, the 0.3rd, and propagation delay time 300ms, 2 expression binary systems.
And for example: the transmission rate of AM business is 100Mbps, is 50ms if allow propagation delay time, is unit if the general minimum SDU of regulation wraps long 40byte, so PDU sequence number length=log ((100/40) * 10
6* 0.05)/log2=17bits; 100 is transmission rate 100Mbps in this formula, the 40th, and the long 40byte of general minimum SDU bag, the 0.05th, propagation delay time 50ms, 2 expression binary systems.
So far, transmit leg equipment has generated PDU with SDU, and PDU finally arrives receiver equipment in transmission over networks, after receiver equipment is received PDU, PDU need be resolved and generate SDU, thereby realize the communication between the network different user.
The method figure that the data cell that seeing also Fig. 2 and be the embodiment of the invention provides is resolved.
Receiver equipment enters following steps after receiving the PDU of transmit leg equipment transmission:
Step 201 is classified the protocol Data Unit unit according to type of service;
All concrete service identification can be arranged in the head construction of PDU, be the radio bearer sign as the RBID field of carrying in the RLC PDU head construction, and RBID identifies the concrete type of service that this PDU is a wireless bearer service.Preset every kind of concrete professional assortment in the receiver equipment, the assortment that presets is corresponding with concrete classification with service identification; After receiver equipment is received PDU, use the service identification that carries in this PDU head construction to inquire about the assortment that presets, this PDU is categorized as professional PDU of the first kind or the professional PDU of second class.
The principle of classification of the assortment that presets is that if such professional SDU length variations is little, the business datum flow is even and business datum does not need to retransmit, then such professional PDU corresponds to the PDU of first kind business; If such professional SDU length variations is big, the business datum flow is inhomogeneous and business datum needs to retransmit, then such professional PDU corresponds to the PDU of the second class business.
Step 202 is resolved PDU, generates professional SDU;
When the protocol Data Unit that receives is the protocol Data Unit of first kind business, directly PDU is removed the transmission head, generate professional SDU.
When the protocol Data Unit that receives is the protocol Data Unit of the second class business, resolves sorted protocol Data Unit and realize by following steps:
See also Fig. 3 and be the process of analysis figure of the PDU of the second class business that the embodiment of the invention provides.
Step 2021 checks that sequence number that PDU carries is whether in the receive window scope;
During receiving business datum, recipient's receive window size is unalterable, and the size of receive window need be pre-configured before business connects foundation.
The size of receive window is by accepting state variable, best expectation state variable and the control of maximum acceptable received state variable.The accepting state variable when the SN of the PDU that receives equals this variate-value, upgrades this accepting state variable by the SN decision of the next PDU of last PDU that has received according to the order of sequence; The best expectation state variable is the SN of the next PDU of the PDU of the highest SN that received; Maximum acceptable received state variable is the SN of the PDU of first side's of being received refusal.
The position of this protocol Data Unit in business datum all can be arranged in the head construction of protocol Data Unit, in table one and table two, RLC SN is arranged in the head construction of RLC PDU.
When sequence number that protocol Data Unit carries is in the receive window scope, execution in step 2022; The sequence number that carries when protocol Data Unit directly abandons this protocol Data Unit during not in the receive window scope.
Step 2022 checks whether PDU is out of order;
Arrange by sequence number when checking that the sequence number that carries in the PDU head construction checks that the PDU that receives whether; If the PDU that receives arranges according to sequence number, direct execution in step 2026 is when checking that sequence number that PDU carries is not when arranging according to sequence number, execution in step 2023.
The out of order PDU that step 2023, buffer memory receive, and start timer;
If in the timer official hour, receive out of order PDU, execution in step 2025; In the timer official hour, do not receive out of order PDU, execution in step 2024;
Step 2024 is sent the notice that retransmits unreceived out of order PDU;
Receiver equipment sends the notice that retransmits unreceived out of order PDU to transmit leg equipment, and after receiving all out of order PDU, execution in step 2025 sorts out of order PDU again, and execution in step 2026 then.Receiver equipment is according to the sequence number that carries in the PDU head construction, and the sequence number range that the user this time sends all PDU that SDU generates judges whether out of order PDU receives.
Step 2025 is with out of order PDU ordering;
After receiving all out of order PDU, after out of order PDU sorted, execution in step 2026 was resolved PDU;
Step 2026, parsing protocol data unit.
The transmission head construction that parsing protocol data unit promptly removes in the protocol Data Unit obtains data division.
The protocol Data Unit of the second class business generates service data unit with data division after resolving, and finishes user data and is sent to the process of another equipment from an equipment, realizes the communication between the user in the network.
Need to prove, can check earlier whether the PDU that receives is out of order in the resolving of the professional PDU of above-mentioned second class, checking that PDU is not out of order or out of order after rearrangement, reexamine sequence number that PDU carries whether in the receive window scope, after the receive window scope, resolve this PDU checking sequence number that this PDU carries.
More than two embodiment data cell of having described user data respectively the flow process that the data cell that is beneficial to transmission and the data cell that will be beneficial to transmission generate the data cell of user data, the following apparatus embodiments that realizes two flow processs that provides are provided to.
See also Fig. 4 and be the equipment drawing of the data cell conversion that the embodiment of the invention provides.
As shown in the figure, the equipment of data cell conversion comprises:
Sort module 310 is used for service data unit is classified according to type of service;
Data division generation module 320 is used for the data division with the sorted service data unit generation of described sort module protocol Data Unit;
Add module 330, be used to the data division of described protocol Data Unit to add affiliated head construction of classifying, generate protocol Data Unit.
Following principle of classification and the sorted result that sort module is provided:
Whether whether all even business datum needs to retransmit described classification of transaction module that service data unit is classified according to the service data unit length variations size of business, business datum flow;
If the service data unit length variations of described business is little, the business datum flow is even and business datum does not need to retransmit, then described service data unit is divided into the service data unit of first kind business;
The described service data unit of described sort module classification be the second class business service data sheet if the service data unit length variations of described business is big, the business datum flow is inhomogeneous and business datum needs to retransmit, then described service data unit is divided into the service data unit of the second class business.
When the described service data unit of described sort module classification was first kind business service data cell, the data division that described interpolation module is described protocol Data Unit added the head construction based on frame; During unit, the data division that described interpolation module is described protocol Data Unit adds the head construction based on byte.
According to the flow process of data cell conversion method embodiment of the present invention, data cell conversion equipment of the present invention also comprises: sequence number length computation module 340;
Described sequence number length computation unit 340 is used for the classification according to described sort module, calculates and obtain the length of sequence number in the protocol data unit head bilge construction respectively for the service data unit of different service types;
When described interpolation module 330 was added the head construction of affiliated classification at the data division that is described protocol Data Unit, the sequence number length of calculating according to described sequence number length computation module was to add sequence number in the described head construction.
Correspondingly, the equipment of data cell conversion has been arranged,, also needed the equipment of resolution data unit in order to realize the communication between the user in the network.
Seeing also Fig. 5 is the data cell analyzing device figure that the embodiment of the invention provides.
As shown in the figure: the data cell analyzing device comprises:
Protocol data sort module 410 is used for protocol Data Unit is classified by type of service;
Parsing module 420 is used for sorted protocol Data Unit is resolved by affiliated type of service, generates service data unit.
The principle of classification and the classification results of protocol data taxon are as follows:
The assortment that the service identification inquiry of carrying in the protocol data taxon use agreement data cell is preset, protocol Data Unit is divided into the first kind service protocol data cell or the second class service protocol data cell, the protocol Data Unit of differentiated service type is provided for described resolution unit;
The principle of classification of the described assortment that presets is: if the service data unit length variations of described business is little, the business datum flow is even and business datum does not need to retransmit, then the protocol Data Unit of described business corresponds to the protocol Data Unit of first kind business;
If the service data unit length variations of described business is big, the business datum flow is inhomogeneous, and business datum needs to retransmit, and then the protocol Data Unit branch of described business corresponds to the protocol Data Unit of the second class business.
When the protocol Data Unit of described protocol data sort module classification was the second class service protocol data cell, described data cell analyzing device also comprised: sequence number range is checked module 430 and out of order inspection module 440;
When the protocol Data Unit of described protocol data sort module classification was the second class service protocol data cell, sequence number range was checked module 430, was used to check that sequence number that described protocol Data Unit carries is whether in the receive window scope;
Out of order inspection module 440 is used to check whether described protocol Data Unit is out of order;
Described parsing module 420 checks that in described sequence number range sequence number that the described protocol Data Unit of module check carries is in the receive window scope, after the described protocol Data Unit of described out of order inspection module check is not out of order, resolve described protocol Data Unit, generate professional service data unit.
When sequence number range checks that sequence number that the described protocol Data Unit of module check carries is not in the receive window scope, abandon described protocol Data Unit.
When the described protocol Data Unit of out of order inspection module check was out of order, described data cell analyzing device also comprised: cache module 450, timer 460, retransmission module 470 and order module 480;
When sequence number that described protocol Data Unit carries in the receiver window scope, and the described protocol Data Unit of out of order inspection module check is when out of order, cache module 450 is used for the out of order protocol Data Unit that buffer memory receives;
Timer 460 is used for carrying out timing to receiving out of order protocol Data Unit process;
Retransmission module 470 is used for when timer expired, sends the notice of the described out of order protocol Data Unit that re-transmission do not receive;
Order module 480 is used for the protocol Data Unit ordering of the described cache module buffer memory that will receive in the stipulated time at timer;
Described parsing module 420 is resolved the protocol Data Unit of described order module ordering, generates service data unit.
The above-mentioned embodiment of data cell conversion equipment provided by the invention and the embodiment of data cell analyzing device of describing respectively; In the communications field, realize the communication between the different user, need a plurality of equipment to participate in the following system embodiment that the invention provides data unit transmission simultaneously.The system of data unit transmission comprises transmit leg equipment and receiver equipment, and transmit leg equipment possesses the function and the structure of data cell conversion equipment, and same receiver equipment possesses the function and the structure of data cell analyzing device.
See also Fig. 6 and be the system diagram of the data unit transmission that the embodiment of the invention provides.
As shown in the figure: the system of data unit transmission comprises:
Transmit leg equipment 300 is used for service data unit is generated protocol Data Unit according to type of service classification back, and sends described protocol Data Unit; And
Receiver equipment 400 is used to receive described protocol Data Unit, and resolves described protocol Data Unit according to type of service, generates service data unit.
According to the concrete function of transmit leg equipment, that the refinement of transmit leg device structure is as follows:
Sort module 310 is used for service data unit is classified according to type of service;
Data division generation module 320 is used for the data division with the sorted service data unit generation of described sort module protocol Data Unit;
Add module 330, be used to the data division of described protocol Data Unit to add head construction, generate protocol Data Unit; And
Sending module 350 is used to send described protocol Data Unit.
Equally, according to the concrete function of receiver equipment, that the structure refinement of receiver equipment is as follows:
Receiver module 490 is used to receive described protocol Data Unit;
Protocol data sort module 410 is used for described protocol Data Unit is classified by type of service; And
Parsing module 420 is used to resolve described sorted protocol Data Unit, generates service data unit.
The system of transfer of data finishes the transmission of data in the network, realizes the communication between the different user.
Because whether whether all even business datum needs re-transmission that service data unit is classified by type of service according to professional service data unit length variations size, business datum flow in the embodiment of the invention, according to business characteristic data cell is classified, thereby realize according to business characteristic being that different Service Data Units adds suitable head construction, the exploitativeness of enhanced scheme.
Further, because being provided as the data division of described protocol Data Unit, the embodiment of the invention adds in the head construction, use the sequence number length in service data transmission rate and the propagation delay time calculating head construction, the sequence number of regular length in the relative prior art, the embodiment of the invention provides different kinds of business that different sequence number length is arranged, reduce sequence number length unnecessary expenditures in some service protocol data cell head constructions, improve the efficient of transmission.
More than the system of a kind of method for converting data cell provided by the present invention, equipment and data unit transmission is described in detail, used specific case herein principle of the present invention and execution mode are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and thought thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.