Summary of the invention
The object of the present invention is to provide processing method and transmitting terminal before a kind of IP message sends, greatly improve the speed that Radio Link carries out transmitted in both directions simultaneously.
For solving the problems of the technologies described above, embodiments of the present invention provide the processing method before a kind of IP message sends, and comprise following steps:
For the IP message with same services quality Q oS that generates, transmitting terminal with the IP message transmissions to the data link layer, in the following manner the IP message is processed:
The IP message is divided into specific type message and non-specific type message two classes, and wherein, the specific type message is for affecting the message of transmitted in both directions speed;
If downloading rate is more than or equal to uploading rate, then in the specific type message, insert non-specific type message, wherein, insert a non-specific type message every N specific type message, N is the natural number greater than 1, will in the specific type message, insert message behind the non-specific type message as the IP message transmissions after processing to data link layer;
If downloading rate is less than uploading rate, then in non-specific type message, insert the specific type message, wherein, insert a specific type message every M non-specific type message, M is the natural number greater than 1, will in non-specific type message, insert message behind the specific type message as the IP message transmissions after processing to data link layer;
For the IP message with different QoS that generates, transmitting terminal in the IP message transmissions that will have different QoS to the data link layer, the priority represented according to the QoS of each IP message sorts, the IP message that priority is high comes before the low IP message of priority, with the IP message after the ordering as the IP message transmissions after processing to data link layer.
Embodiments of the present invention also provide a kind of transmitting terminal, comprise:
Judge module is used for judging whether the IP message that generates is the IP message with same services quality Q oS;
Sort module is used for judging that at judge module the IP message that generates when having the IP message of identical QoS, is divided into specific type message and non-specific type message two classes with the IP message that wherein, the specific type message is the message that affects transmitted in both directions speed;
Insert module, be used for according to the sorted message of sort module, in downloading rate during more than or equal to uploading rate big or small, in the specific type message, insert non-specific type message and output, wherein, insert a non-specific type message every N specific type message, N is the natural number greater than 1, in downloading rate during less than uploading rate, in non-specific type message, insert specific type message and output, wherein, insert a specific type message every M non-specific type message, M is the natural number greater than 1;
Order module, the IP message that is used for judging generation at judge module be not when having the IP message of identical QoS, and the priority represented according to the QoS of each IP message sorts, and the IP message that priority is high comes before the low IP message of priority;
Transport module is used for the message of insert module output or the message after the order module ordering are transferred to data link layer.
Embodiments of the present invention also provide the processing method before a kind of IP message sends, and comprise following steps:
For the IP message with same services quality Q oS that generates, transmitting terminal with the IP message transmissions to the data link layer, in the following manner the IP message is processed:
The IP message is divided into specific type message and non-specific type message two classes, and wherein, the specific type message is for affecting the message of transmitted in both directions speed;
If downloading rate is more than or equal to uploading rate, then in the specific type message, insert non-specific type message, wherein, insert a non-specific type message every N specific type message, N is the natural number greater than 1, will in the specific type message, insert message behind the non-specific type message as the IP message transmissions after processing to data link layer;
If downloading rate is less than uploading rate, then in non-specific type message, insert the specific type message, wherein, insert a specific type message every M non-specific type message, M is the natural number greater than 1, will in non-specific type message, insert message behind the specific type message as the IP message transmissions after processing to data link layer.
Embodiments of the present invention also provide the processing method before a kind of IP message sends, for the IP message with different QoS that generates, transmitting terminal in the IP message transmissions that will have different QoS to the data link layer, the priority represented according to the QoS of each IP message sorts, the IP message that priority is high comes before the low IP message of priority, with the IP message after the ordering as the IP message transmissions after processing to data link layer.
Embodiment of the present invention compared with prior art, the main distinction and effect thereof are:
Have in the situation of identical QoS at the IP message that generates, transmitting terminal in the IP message transmissions that will generate to the data link layer, the IP message is divided into specific type message and non-specific type message two classes (the specific type message is for affecting the message of transmitted in both directions speed), and according to the size of downloading rate and uploading rate, in a plurality of specific type messages, insert non-specific type message, perhaps a plurality of specific type messages that in non-specific type message, insert, with the message transmissions after inserting to data link layer.Have in the situation of different QoS at the IP message that generates, transmitting terminal, sorts according to the represented priority of the QoS of each IP message first to the data link layer in the IP message transmissions that will generate, with the IP message transmissions after the ordering to data link layer.Because according to QoS identical two kinds of situations whether, the IP message that generates was processed before transferring to data link layer respectively, at QoS not simultaneously, according to qos parameter the order of IP message is adjusted, can be embodied precedence information so that transfer to the IP message of data link layer; When QoS was identical, those affected the message of transmitted in both directions speed prioritised transmission.Therefore with respect to the priority time that directly generates according to the IP message in the prior art, with the scheme of IP message transmissions to data link layer, can those affect the message of transmitted in both directions speed so that data link layer also can embody qos parameter or prioritised transmission to the transmission of IP message, therefore can greatly improve the speed that Radio Link carries out transmitted in both directions simultaneously.
Further, the value of N is the ratio minimum value between the two of the first thresholding, downloading rate and uploading rate, and wherein, the first thresholding is the maximum threshold of the ratio of default downloading rate and uploading rate; The value of M is the ratio minimum value between the two of the second thresholding, uploading rate and downloading rate, and wherein, the second thresholding is the maximum threshold of the ratio of default uploading rate and downloading rate.For the value of M, N has provided specific implementation, and be proven, in the specific type message, insert in this way non-specific type message, or in non-specific type message, insert the specific type message, can improve better the speed that Radio Link carries out transmitted in both directions simultaneously, so that carry out simultaneously that the transmission rate of bidirectional data transfers reaches or near theoretical value.
Further, for the IP message with different QoS that generates, after sorting according to the represented priority of the QoS of each IP message, also need to be transferred to the high IP message of priority the probability of data link layer, the probability that is transferred to described data link layer less than the low IP message of priority is principle, IP message after the ordering is carried out second time ordering, transmitting terminal with the IP message transmissions after the IP message after for the second time ordering is as processing to data link layer.Because the only ordering by once carrying out according to the represented priority of QoS fully, may so that the time data that prolong within a very long time, can not get transmission, therefore enter the lower sortord of probability of data link layer by the IP message of high priority, carry out second time ordering, can effectively solve the long data of time delay and may within a very long time, can not get the problem transmitted.
Further, after transmitting terminal carried out the processing of IP message at the data aggregate layer, the IP message transmissions after will processing again was to data link layer.Since also be in the prior art by the data aggregate layer with the IP message transmissions that generates to data link layer, therefore carry out the processing of IP message by the data aggregate layer, can be fully and prior art compatibility mutually.
Embodiment
In the following description, in order to make the reader understand the application better many ins and outs have been proposed.But, persons of ordinary skill in the art may appreciate that even without these ins and outs with based on many variations and the modification of following each execution mode, also can realize each claim of the application technical scheme required for protection.
For making the purpose, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing embodiments of the present invention are described in further detail.
Core of the present invention is, transmitting terminal to the data link layer, carries out suitable adjustment on the order to upper strata IP message according to certain rule in the IP message transmissions that will generate.Have in the situation of the identical QoS of IP message at the IP message that generates so that can prioritised transmission those affect the message of transmitted in both directions speed; In the situation that the IP message has different QoS, the IP message that transfers to data link layer can embody precedence information.Whether the IP message that generates has identical QoS, be as can be known in transmitting terminal according to existing protocol, so how the present invention no longer knows to transmitting terminal whether the IP message of generation has identical QoS and give unnecessary details.
First embodiment of the invention relates to the processing method before a kind of IP message sends.In the present embodiment, the IP message of data generator generation has identical QoS.The IP message handling process of present embodiment as shown in Figure 1.
In step 110, data generator generates the IP message with identical QoS, and this step is same as the prior art, does not repeat them here.
Then, in step 120, data generator is submitted to the data aggregate layer with the IP message that generates successively by the sequencing of time, and this step is same as the prior art, does not repeat them here.For convenience of description, in the present embodiment, the IP message with identical QoS that the data generator generates is made following numbering:
d1_1,d1_2,d1_3,d1_4,d1_5,d1_6,d1_7,d1_8,d1_9,d1_10,d1_11,d1_12...d1_t
Then, in step 130, the data aggregate layer is divided into specific type message and non-specific type message two classes with the IP message, and wherein, the specific type message is for affecting the message of transmitted in both directions speed.In the present embodiment, describe take the message that affects transmitted in both directions speed as TCP ACK (transmission control protocol TCP acknowledgment) message.Data aggregate layer in the present embodiment can be packet data convergence protocol (the Packet Data Convergence Protocol among the 3G, be called for short " PDCP "), it also can be Sub-Network Dependent Convergence Protocol (SubNetwork Dependent ConvergenceProtocol is called for short " SN DCP ") among the GSM etc.
Specifically, as shown in Figure 2, adopt data to screen mechanism, the IP message is divided into TCP ACK message and 2 streams of non-TCP ACK message.Such as d1_5, d1_6, d1_7, d1_8, d1_9, d1_10, d1_11, d1_12 are TCP ACK message; D1_1, d1_2, d1_3, d1_4, d1_13, d1_14 ... d1_t is non-TCP ACK message.It will be understood by those skilled in the art that the two quantity number of TCP ACK message and non-TCP ACK message is than near the ratio of downloading rate and uploading rate.And, can be that the ratio of downloading rate and uploading rate arranges a maximum threshold (being called the first thresholding) in advance; For the ratio of uploading rate and downloading rate arranges a maximum threshold (being called the second thresholding).
Then, in step 140, judge that whether downloading rate is more than or equal to uploading rate.If downloading rate more than or equal to uploading rate, then enters step 150; If downloading rate less than uploading rate, then enters step 160.
If downloading rate more than or equal to uploading rate, then in step 150, is inserted non-specific type message in the specific type message, wherein, insert a non-specific type message every N specific type message, N is the natural number greater than 1.
Specifically, get ratio (the ratio round numbers part) minimum value between the two of the first thresholding, actual download speed and uploading rate as N, i.e. N=min[the first thresholding, downloading rate/uploading rate].For convenience of description, in this step N is assumed to 4.Then, in TCP ACK stream, insert a non-TCP ACK message every 4 messages, so that data flow becomes:
d1_1,d1_5,d1_6,d1_7,d1_8,d1_2,d1_9,d1_10,d1_11,d1_12,d1_3,d1_4...
In this step, first non-TCP ACK message has been inserted in before front 4 messages in the TCP ACK stream, certainly, in actual applications, also first non-TCP ACK message can be inserted in after front 4 messages in the TCPACK stream.And, owing to behind all TCP ACK messages, also having the non-TCP ACK message that does not insert, therefore remaining non-TCP ACK message is inserted at last.
In addition, be appreciated that N also can change slightly according to the minimum value of the ratio of the first thresholding, actual download speed and uploading rate, as add one or subtract first-class in minimum value.
If downloading rate less than uploading rate, then in step 160, is inserted the specific type message in non-specific type message, wherein, insert a specific type message every M non-specific type message, M is the natural number greater than 1.
Specifically, get ratio (the ratio round numbers part) minimum value between the two of the second thresholding, actual uploading rate and downloading rate as M, i.e. M=[the second thresholding, uploading rate/downloading rate].For convenience of description, in this step M is assumed to 2.Then, in non-TCP ACK stream, insert a TCP ACK message every 2 messages, so that data flow becomes:
d1_1,d1_2,d1_5,d1_3,d1_4,d1_6,d1_13,d1_14,d1_7,d1_15,d1_16,d1_8,d1_9,d1_10,d1_11,d1_12,...
Owing to behind all non-TCP ACK messages, also having the TCP ACK message that does not insert, therefore remaining TCP ACK message being inserted at last.
In addition, be appreciated that M also can change slightly according to the minimum value of the ratio of the second thresholding, actual uploading rate and downloading rate, as add one or subtract first-class in minimum value.
Then, in step 170, the IP message after processing is transferred to data link layer in order.Specifically, if after step 150, enter into step 170, then in step 170, will in TCP ACK message, insert message behind the non-TCP ACK message as the IP message transmissions after processing to data link layer.If after step 160, enter into step 170, then in step 170, will in non-TCP ACK message, insert message behind the TCP ACK message as the IP message transmissions after processing to data link layer.Since also be in the prior art by the data aggregate layer with the IP message transmissions that generates to data link layer, therefore carry out the processing of IP message by the data aggregate layer, can be fully and prior art compatibility mutually.
Be not difficult to find, present embodiment is when QoS is identical, preferential with those message transmissions that affect transmitted in both directions speed to data link layer, therefore data link layer is when sending the IP message, also can prioritised transmission those affect the message of transmitted in both directions speed, with respect to the priority time that directly generates according to the IP message in the prior art, with the scheme of IP message transmissions to data link layer, can greatly improve the speed that Radio Link carries out transmitted in both directions simultaneously, so that carry out simultaneously that the transmission rate of bidirectional data transfers reaches or near theoretical value.
Need to prove, because the ACK message is the message that typically affects transmitted in both directions speed, so present embodiment describes as an example of the ACK message example, but in actual applications, also can with other as message as the message that affects transmitted in both directions speed.
Second embodiment of the invention relates to the processing method before a kind of IP message sends.In the present embodiment, the IP message of data generator generation has different QoS.The IP message handling process of present embodiment as shown in Figure 3.
In step 310, data generator generates the IP message with different QoS according to different application, and this step is same as the prior art, does not repeat them here.For convenience of description, in the present embodiment, the IP message of QoS that has separately that the data generator generates is made following numbering:
First IP message flow d1_1, d1_2..., d1_t represents;
Second IP message flow d2_1, d2_2..., d2_t represents;
N IP message flow dn_1, dn_2..., dn_t represents.
Wherein all the delay requirement than previous message flow is high for the delay requirement of a rear IP message flow, and namely all the priority than previous message flow is high for the priority of a rear IP message flow.
Then, in step 320, data generator is submitted to data aggregate layer (such as the PDCP layer among the 3G or the SNDCP among the GSM) with the IP message that generates successively by the sequencing of time, and this step is same as the prior art, does not repeat them here.Such as in the present embodiment, the IP message flow that generates by the sequencing of time is:
d1_1,d1_2,d1_3,d1_4,d1_5,d2_1,d2_2,d2_3,dn_1,dn_2....
Then, in step 330, the data aggregate layer sorts according to the represented priority of the QoS of each IP message, and the IP message that priority is high comes before the low IP message of priority.Specifically, as shown in Figure 4, the data aggregate layer will read the QoS in every a slice IP message of receiving, according to the priority shown in it, carry out sorting operation, make the IP message of priority high (being that time delay is short) come front than the message of its priority low (the instant prolongation), with current sequencer procedure referred to as for the first time ordering.As follows through the IP stream that obtains after for the first time ordering:
dn_1,dn_2,d2_1,d2_2,d2_3,d1_1,d1_2,d1_3,d1_4,d1_5...
Then, in step 340, be transferred to the probability of data link layer with the high IP message of priority, the probability that is transferred to data link layer less than the low IP message of priority is principle, and the IP message after the ordering is carried out the ordering second time.
Specifically, within a very long time, can not get transmission for fear of the low data of delay requirement, after data are through for the first time ordering, introduce an ordering factor k, be 2 such as k, namely along with the increase of IP message time delay, the probability that the IP message is submitted to data link layer becomes than 1/2 of the message of the low one-level of its time delay.That is to say an IP message transmissions is arranged extremely according to link layer in certain IP stream, flowing than this IP just has 2 IP message transmissions to according to link layer in the IP flow process of hanging down one-level, 4 IP message transmissions are just arranged extremely according to link layer during the IP of low one-level flows again.For the case in the present embodiment, as follows through the IP stream that obtains after two minor sorts:
dn_1,d2_1,d2_2,d1_1,d1_2,d1_3,d1_4,dn_2,d2_3,d1_5...
Then, in step 350, the data aggregate layer of transmitting terminal will transfer to data link layer as the IP message after processing in order through the IP message after for the second time ordering.Since also be in the prior art by the data aggregate layer with the IP message transmissions that generates to data link layer, therefore carry out the processing of IP message by the data aggregate layer, can be fully and prior art compatibility mutually.
Be not difficult to find, present embodiment is adjusted the order of IP message according to qos parameter at QoS not simultaneously, can embody precedence information so that transfer to the IP message of data link layer.Therefore with respect to the priority time that directly generates according to the IP message in the prior art, with the scheme of IP message transmissions to data link layer, can be so that data link layer also can embody qos parameter to the transmission of IP message, thus the speed that Radio Link carries out transmitted in both directions simultaneously greatly improved.
And, because the only ordering by once carrying out according to the represented priority of QoS fully, may so that the time data that prolong within a very long time, can not get transmission, therefore enter the lower sortord of probability of data link layer by the IP message of high priority, carry out second time ordering, can effectively solve the long data of time delay and may within a very long time, can not get the problem transmitted.But, it will be understood by those skilled in the art that and also can only carry out in actual applications the ordering first time, and do not carry out the ordering second time, equally also can realize improving the purpose that Radio Link carries out the speed of transmitted in both directions simultaneously.
Each method execution mode of the present invention all can be realized in modes such as software, hardware, firmwares.No matter the present invention realizes with software, hardware or firmware mode, instruction code can be stored in the memory of computer-accessible of any type (for example permanent or revisable, volatibility or non-volatile, solid-state or non-solid-state, fixing or removable medium etc.).Equally, memory can for example be programmable logic array (Programmable Array Logic, be called for short " PAL "), random access memory (Random Access Memory, be called for short " RAM "), programmable read only memory (Programmable Read Only Memory, be called for short " PROM "), read-only memory (Read-Only Memory, be called for short " ROM "), Electrically Erasable Read Only Memory (Electrically Erasable Programmable ROM, be called for short " EEPROM "), disk, CD, digital versatile disc (Digital Versatile Disc is called for short " DVD ") etc.
Third embodiment of the invention relates to a kind of transmitting terminal.Specifically as shown in Figure 5, this transmitting terminal comprises:
Judge module is used for judging whether the IP message that generates is the IP message with same services quality Q oS.
Sort module, the IP message that is used for judging generation at judge module is divided into specific type message and non-specific type message two classes with the IP message, wherein when having the IP message of identical QoS, the specific type message is for affecting the message of transmitted in both directions speed, such as TCP ACK message.
Insert module, be used for according to the sorted message of sort module, in downloading rate during more than or equal to uploading rate big or small, in the specific type message, insert non-specific type message and output, wherein, insert a non-specific type message every N specific type message, N is the natural number greater than 1, in downloading rate during less than uploading rate, in non-specific type message, insert specific type message and output, wherein, insert a specific type message every M non-specific type message, M is the natural number greater than 1.Specifically, the value of N is the ratio minimum value between the two of the first thresholding, downloading rate and uploading rate, and wherein, the first thresholding is the maximum threshold of the ratio of default downloading rate and uploading rate.The value of M is the ratio minimum value between the two of the second thresholding, uploading rate and downloading rate, and wherein, the second thresholding is the maximum threshold of the ratio of default uploading rate and downloading rate.Certainly, the ratio of downloading rate and uploading rate, or the equal round numbers part of the ratio of uploading rate and downloading rate.
Order module, the IP message that is used for judging generation at judge module be not when having the IP message of identical QoS, and the priority represented according to the QoS of each IP message sorts, and the IP message that priority is high comes before the low IP message of priority.
Transport module is used for the message of insert module output or the message after the order module ordering are transferred to data link layer.
It is worth mentioning that, order module can also be after sorting according to the represented priority of the QoS of each IP message, be transferred to the probability of data link layer with the high IP message of priority, the probability that is transferred to data link layer less than the low IP message of priority is principle, and the IP message after the ordering is carried out the ordering second time.At this moment, the message after transport module sorts the message of insert module output or order module for the second time transfers to data link layer.
In the present embodiment, judge module, sort module, insert module, order module and transport module all are positioned at the data aggregate layer of transmitting terminal.
Be not difficult to find, present embodiment is the equipment execution mode of the first execution mode and the second execution mode, can with the first execution mode (or the second execution mode) enforcement of working in coordination.The correlation technique details of mentioning in the first execution mode (or second execution mode) is still effective in the present embodiment, in order to reduce repetition, repeats no more here.Correspondingly, the correlation technique details of mentioning in the present embodiment also can be applicable in the first or second execution mode.
Need to prove, each unit of mentioning in this equipment execution mode all is logical block, physically, a logical block can be a physical location, it also can be the part of a physical location, can also realize with the combination of a plurality of physical locations, the physics realization mode of these logical blocks itself is not most important, and the combination of the function that these logical blocks realize is the key that just solves technical problem proposed by the invention.In addition, for outstanding innovation part of the present invention, above-mentioned each the equipment execution mode of the present invention will not introduced not too close unit with solving technical problem relation proposed by the invention, and this does not show that there is not other unit in the said equipment execution mode.
Although pass through with reference to some of the preferred embodiment of the invention, the present invention is illustrated and describes, but those of ordinary skill in the art should be understood that and can do various changes to it in the form and details, and without departing from the spirit and scope of the present invention.