The method of transmitting and receiving data effectively in supporting the mobile radio communication of ICP/IP protocol
Technical field
The present invention relates to a kind of portable terminal, particularly relate to a kind of support TCP/IP portable terminal that can effectively transmit data.
Background technology
After second generation communication, have up till now a lot of services provider for multiple mobile communication service is provided hard thought to the user.To utilize basic Internet service in order providing, to introduce the portable terminal of supporting TCP/IP at this.But existing portable terminal exists as built on stilts problem.
Following with reference to the problem points of description of drawings to the portable terminal of support TCP/IP.
Fig. 1 is the pie graph of the existing TCP head of expression portion.
As shown in the figure, the head of the Transmission Control Protocol that existing portable terminal uses is defined as RFC793, is used for being fit to wired internet basically.This existing Transmission Control Protocol is an IP network, promptly is made up of well-regulated structure in order to satisfy the interchangeability between each server in the Internet.That is, constitute by territory for the big or small sequence number of 65536 ports, 32 bits that send and receive.Below specify.
1. source port number (Source port number (16)): the portal number of transmit leg;
2. destination port number (Destination port number (16)): recipient's portal number;
3. sequence number (Sequence number (32)): the sequence number that receives packets of information;
4. response sequence number (Acknowldedge sequence number (32)): the sequence number of confirmation of receipt packets of information;
5. head length (Header length (4)): the length of TCP head;
6. keep (Reserved (6)): reservation;
7. indicate (Flag (6)): the characteristic defined label of packets of information;
8. window size (Window size (16)): receivable window (buffer) size;
9. verification and (Checksum (16)): for control wrong check and correction with (checksum);
10. urgent indicating device (Urgent pointer (16)): the deviation of the urgent packets of information that transmits when using the URG mark in the mark.
The TCP head of as above being arranged comprises that each information element is made up of 20 bytes, all comprises above-mentioned listed head and transmits to other terminal all packets of information that transmit from an end.
But, perhaps do not need as above jumbo head in the mobile communications network.That is, be considerable, by the assignable portal number of above-mentioned portal number than the type service that the service provider provided of mobile communications network.And, and can compare by the number of above-mentioned sequence number appointment, it is also few to send the data volume that receives through mobile communications network.
Thereupon, aforesaid existing Transmission Control Protocol structure exists in and can cause considerable built on stilts problem in the mobile communications network.
Summary of the invention
The object of the present invention is to provide a kind of in supporting the mobile communications network of TCP/IP in order effectively to transmit the method and the portable terminal thereof of data.
In order to solve above-mentioned purpose, according to mobile communication terminal of the present invention, it comprises following several sections: send acceptance division; Buffer; Memory; But the processor of the TCP head (header) that interpretation is dwindled, said TCP head of dwindling comprise transmit port number that dwindles and the receiving port number that dwindles; TCP header information mapping table, the said mapping of TCP header information mapping table portal number that does not dwindle and the portal number that dwindles.In addition, also comprise following several steps for the transfer approach of the present invention that solves above-mentioned purpose: the step of the TCP head utility command that acceptance is dwindled; The step of the TCP head portion that dwindles according to mentioned order setting (setting); Utilize above-mentioned mounted head to transmit the step of data.And, also comprise the steps: to receive the step of data for the method for reseptance of the present invention that solves above-mentioned purpose; When the TCP head in the data of above-mentioned reception is the TCP head of dwindling, discern the step of above-mentioned TCP header information of dwindling.
In addition, in order to solve the transferring device of the present invention of above-mentioned purpose, it also comprises following several sections: send acceptance division; Buffer; Memory; But the processor of the TCP head (header) that interpretation is dwindled, said TCP head of dwindling comprise transmit port number that dwindles and the receiving port number that dwindles; TCP header information mapping table, the said mapping of TCP header information mapping table portal number that does not dwindle and the portal number that dwindles.And in order to solve the of the present invention middle shifting method of above-mentioned purpose, it also comprises following several steps: the step that receives the data of wanting transfer; The step of identification TCP header information; TCP head through dwindling judges whether the step with the data relay of above-mentioned reception; Above-mentioned judged result is when dwindling the transfer of TCP head, and the step of dwindling the TCP head is installed, and said TCP head of dwindling comprises transmit port number that dwindles and the receiving port number that dwindles; Utilize the step that the TCP head transmits data of dwindling of above-mentioned installation.
Description of drawings
Fig. 1 is the pie graph of the existing TCP head of expression portion;
Fig. 2 is the pie graph of the TCP head portion that representes to dwindle according to the embodiment of the invention;
Fig. 3 is according to the mapping table between the TCP head portion that dwindles of the embodiment of the invention and existing TCP head portion;
Fig. 4 is the concise and to the point figure that representes data flow according to the embodiment of the invention through the TCP head of dwindling;
Fig. 5 is the portable terminal that expresses support for the TCP head of dwindling according to the embodiment of the invention;
Fig. 6 expresses support for the transponder in the mobile communications network of the TCP head of dwindling according to the embodiment of the invention;
Fig. 7 representes TCP head transducer according to the embodiment of the invention;
Fig. 8 is the detailed pie graph according to the TCP head transducer of the embodiment of the invention;
Fig. 9 is illustrated in the valid data transfer approach of supporting in the TCP/IP mobile communications network according to the embodiment of the invention;
Figure 10 is illustrated in the valid data method of reseptance of supporting in the TCP/IP mobile communications network according to the embodiment of the invention;
Figure 11 is illustrated in shifting method in the valid data of supporting in the TCP/IP mobile communications network according to the embodiment of the invention.
The main symbol description of accompanying drawing:
500: portable terminal 501: send acceptance division
502: buffer 503: processor
504: input part 505: efferent
506: memory 507:TCP head switching controller
508:TCP header information mapping table
600: transponder 601: send acceptance division
602: buffer 603: processor
604:TCP head switching controller 605:TCP header information mapping table
606: memory
800:TCP head transducer
801:TCP head switching controller
802:TCP header information mapping table
803: memory
804: input part
805: efferent
Followingly specify according to embodiments of the invention with reference to accompanying drawing.
Fig. 2 is the pie graph of the TCP head portion that representes to dwindle according to the embodiment of the invention.
As shown in Figure 2, be to have total 11.2 byte lengths according to the characteristic of TCP head of the present invention portion.Below specify according to TCP head of the present invention.As shown in the figure, according to the formation of TCP head of the present invention portion be:
1. source port number (Source port number): the portal number of the transmit leg that constitutes by 8 bits;
2. destination port number (Destination port number): the recipient's who constitutes by 8 bits portal number;
3. sequence number (Sequence number): the sequence number of the reception packets of information that constitutes by 16 bits;
4. response sequence number (Acknowldedge sequence number): the confirmation of receipt sequence number that constitutes by 16 bits;
5. head length (Header length): the length of the TCP head that constitutes by 4 bits;
6. keep (Reserved): do not use;
7. sign (Flag): the characteristic defined label of the packets of information that constitutes by 6 bits;
8. window size (Window size): receivable window (buffer) size that constitutes by 8 bits;
Verification with (Checksum): by 16 bits constitute for control wrong check and correction with (checksum);
10. urgent indicating device (Urgent pointer): the URG mark that constitutes by 8 bits;
TCP head according to the present invention is compared with existing TCP head, as following.
[form 1]
The header information key element |
The bit size of existing TCP head |
Bit size according to TCP head of the present invention |
Source?Port?Number |
?16 |
?8 |
Destination?Port?Number |
?16 |
?8 |
Sequence?Number |
?32 |
?16 |
Acknowldege?Seq.Number |
?32 |
?16 |
Header?Length |
?4 |
?4 |
Reserved |
?6 |
?0 |
Flag |
?6 |
?6 |
Window?Size |
?16 |
?8 |
Checksum |
?16 |
?16 |
Urgent?Pointer |
?16 |
?8 |
SUM |
20 bytes |
11.2 byte |
Constitute according to TCP head of the present invention portion as stated and make above-mentioned TCP head built on stilts minimum, make that the built on stilts maximization with minimum utilizes Radio Resource in user's transmitting and receiving data.At this moment; Sequence number replaces as existing 32 bit lengths and use 16 bit lengths, because of between terminal and transponder than short path (jump of minority (hop)), thereby do not have the confusion of sequential; The repetition sequential of terminal room is below 122 segments, so normal transmitting and receiving data.Therefore normal transmitting and receiving data.Therefore, even whether normally also will be careful transmitting and receiving data through as above step.
And general TCP/IP head is compressed and sends reception through the header decompression will algorithm, also can be compressed and be transmitted according to compression algorithm according to the situation to the TCP head of its motion of the present invention.Detailed content for compression algorithm can cause indeterminate main idea of the present invention, does not therefore describe at this.
Fig. 3 is according to the TCP header information mapping table between the TCP head portion that dwindles of the embodiment of the invention and existing TCP head portion.
As shown in the figure, during above-mentioned TCP header information mapping table TCP head of dwindling used according to the invention as shown in Figure 2, be for existing TCP header information mapping.If existing tcp port number is that the tcp port number that dwindled in 21 o'clock is No. 1, if the tcp port number that existing TCP number dwindled when being No. 25 is No. 3.So portal number all is suitable in transmitting terminal slogan and receiving port number.
In addition, though do not illustrate among the figure, and above-mentioned TCP header information mapping table also can be represented the confirmation of receipt sequence number (Acknowldedge Sequence Number) that above-mentioned portal number is outer.
Fig. 4 is the concise and to the point figure that representes data flow according to the embodiment of the invention through the TCP head of dwindling.
With reference to Fig. 4, can know that according to the present invention the TCP head that the portable terminal utilization is dwindled transmits data, transponder is changed above-mentioned TCP head of dwindling and transmit with existing TCP head.This is explained in more detail which kind of TCP head portable terminal decision then according to the present invention uses, and according to above-mentioned decision the TCP head can be set.At this moment, above-mentioned decision can utilize the IP address to decide according to embodiments of the invention.That is, can whether use according to the IP head of dwindling that another specification of the IP subnet mask or the inventor is put down in writing and decide.
In addition, when the TCP head in the data that receive in the transponder of receiving terminal is the head of dwindling, can determine whether this is changed with the TCP head.That is, above-mentioned transponder utilizes the IP head of putting down in writing in IP subnet mask or another specification according to the above-mentioned inventor of dwindling whether to use to determine.That is, as shown in the figure, when needing to use existing TCP head to be sent to the Internet, the TCP head that will dwindle is carried out transfer after converting existing TCP head into.So series of processing steps can be exchanged into existing high-speed procedure, is the item that will state the party at this.
In addition, be made up of existing TCP head when the Internet is sent to mobile terminal data, transponder receives its data transaction and becomes aforesaid TCP head of dwindling and send portable terminal to.
In addition, when the data that above-mentioned transponder will receive from the Internet are sent to portable terminal, can directly be sent to portable terminal without aforesaid TCP head conversion.So under the situation, generally use the phone of portable terminal to connect the network service, the device of its corresponding TCP/IP stratum is the PC that connects of the phone of transponder whether just.In such cases, do not need the head switch process.
Fig. 5 is the portable terminal that expresses support for the TCP head of dwindling according to the embodiment of the invention.
As shown in the figure according to portable terminal 500 of the present invention, its characteristic comprises following several sections: but the processor 503 of the TCP head that interpretation is dwindled; TCP header information mapping table 508.This is just explained in more detail as follows portable terminal 500 according to the present invention also comprises: send acceptance division 501; Buffer 502; But the processor 503 of the TCP head that interpretation is dwindled; Input part 504; Efferent 505; TCP header information mapping table 508.
At this moment, above-mentioned TCP head of dwindling comprises transmit port number that dwindles and the receiving port number that dwindles.Above-mentioned TCP header information mapping table 508 can shine upon portal number that does not dwindle and the portal number that dwindles.And above-mentioned TCP head of dwindling comprises that again the sequence number (Sequence Number) that dwindles is for being prone to.And above-mentioned TCP head of dwindling comprises that also the reception response sequence number (Acknowldedge Number) that dwindles is for being prone to.And above-mentioned TCP head of dwindling comprises the head length portion (Header length) that dwindles, window size (Window size) portion that dwindles again, the emergency sign (Urgent pointer) of dwindling is for being prone to.
In addition, above-mentioned portable terminal 500 can also comprise TCP header information switching controller 507 according to embodiments of the invention.The effect of above-mentioned TCP header information switching controller 507 be make existing TCP head and according between TCP of the present invention mutually the conversion.
Aforesaid above-mentioned TCP header information mapping table 508 or above-mentioned TCP head switching controller 507 can be to be saved in the storage part 506 according to above-mentioned processor 503 performed programs.At this moment, above-mentioned storage part 506 can be a memory.In addition, above-mentioned TCP header information mapping table 508 or above-mentioned TCP head switching controller 507 can be made up of ASIC (application-specific integrated circuit (ASIC)).
More than, portable terminal according to the present invention is illustrated.Below explanation is according to transferring device of the present invention.
Fig. 6 expresses support for the transponder in the mobile communications network of the TCP head of dwindling according to the embodiment of the invention.
As shown in the figure, according to transferring device of the present invention, its characteristic comprises like the lower part: but the processor 603 of the TCP head that interpretation is dwindled; TCP header information mapping table 605.This is explained in more detail transferring device 600 according to the present invention comprises: send acceptance division 601; Buffer 602; The processor 603 of decipherable TCP head of dwindling; TCP header information mapping table 605.In addition, above-mentioned transferring device 600 also can comprise TCP head switching controller 604 according to embodiments of the invention.At this moment, therefore identical on above-mentioned TCP header information mapping table 605 and above-mentioned TCP head switching controller 604 and the foregoing portable terminal do not describe at this in detail.This above-mentioned TCP header information mapping table 605 or above-mentioned TCP head switching controller 604 can be according to above-mentioned processor 603 executable programs, and are kept in the storage part 606.At this moment, above-mentioned storage part 606 can be a memory.In addition, above-mentioned TCP header information mapping table 605 or above-mentioned TCP head switching controller 604 can be made up of ASIC (application-specific integrated circuit (ASIC)).
Fig. 7 representes TCP head transducer according to the embodiment of the invention.
As shown in the figure, can the TCP head of existing 20 bytes be converted into the TCP head of dwindling according to TCP head transducer of the present invention.This is carried out detailed explanation with reference to Fig. 8.
Fig. 8 is the detailed pie graph according to the TCP head transducer of the embodiment of the invention.
With reference to Fig. 8, TCP head transducer 800 is arranged, its characteristic comprises like the lower part: TCP header information switching controller 801; TCP header information mapping table 802.This moment, above-mentioned switching controller 801 can be the processor that is made up of ASIC (application-specific integrated circuit (ASIC)), and above-mentioned TCP header information mapping table 802 can be kept in the storage part 803.In addition according to the embodiment of the invention; The controller 800 that comprises above-mentioned TCP header information switching controller 801 and TCP header information mapping table 802 can be code or the binary data that is made up of program, can be kept in the memory in portable terminal or the communicator.
More than, the present invention is illustrated portable terminal, transferring device, controller.Below data transceiving method according to the present invention is described.
Fig. 9 is illustrated in the valid data transfer approach of supporting in the TCP/IP mobile communications network according to the embodiment of the invention.
As shown in the figurely at first judge whether to use the TCP head (seeing step S901) of dwindling.When above-mentioned judged result is " being ", behind tcp port number mapping table (seeing step S902), the TCP head (seeing step S903) of dwindling is set.But, when above-mentioned judged result is " denying ", existing TCP head (seeing step S904) is set.Then, with the head of above-mentioned setting add to (see step S905) in the segment after, carry out next step operation (seeing step S906).At this moment, above-mentioned judgement (seeing step S901) can also utilize following steps to judge: utilize the IP subnet mask of IP address calculate or another specification of the inventor in the utilization the put down in writing IP head of dwindling whether use.
Aforesaid program of the present invention can be omitted a part, be careful in the set step also can comprising other step.
Figure 10 is illustrated in the valid data method of reseptance of supporting in the TCP/IP mobile communications network according to the embodiment of the invention.As shown in the figure, at first receive data (seeing step S1001) after, judge whether the TCP head in the data of above-mentioned reception is the TCP head (seeing step S1002) of dwindling.At this moment, when above-mentioned judged result is " being ", go encapsulation (deeapsulating) the TCP head (seeing step S1003) of dwindling after, judge TCP header information (seeing step S1006) with reference to tcp port number mapping table (seeing step S1004).But,, still, judge TCP header information (seeing step S1006) in the past according to after going encapsulation (decapsulating) TCP head (seeing step S1005) if when above-mentioned judged result is (denying).Then carry out next step operation (seeing step S1007).
Aforesaid program of the present invention can be omitted a part, be careful in the set step also can comprising other step.
Figure 11 is illustrated in shifting method in the valid data of supporting in the TCP/IP mobile communications network according to the embodiment of the invention.
As shown in the figure, at first receive data (seeing step S1101) after, judge the TCP head (seeing step S1102) that the TCP head in the data of above-mentioned reception is dwindled whether the time.At this moment, when above-mentioned judged result is " being ", the TCP head (seeing step S1103) of going encapsulation (decapsulating) to dwindle.With reference to behind the tcp port number mapping table (seeing step S1104), judge TCP header information (seeing step S1106) then.But,, still, judge TCP header information (seeing step S1106) in the past according to after going encapsulation (decapsulating) TCP head (seeing step S1105) if when above-mentioned judged result is " denying ".Judge whether that then with data relay be the TCP (seeing step S1107) that dwindles.At this moment, above-mentioned judgement (seeing step S1107) behind tcp port number mapping table (seeing step S1108), is provided with the TCP head (seeing step S1109) of dwindling when the result is " being ".But above-mentioned judgement (seeing step S1107) is when the result is " denying ", still according to TCP head (seeing step S1110) was set in the past.Carry out next step operation (seeing step S1111) and interim data then.
Aforesaid program of the present invention can be omitted a part, be careful in the set step also can comprising other step.
Aforesaid method of the present invention is to embody by software, hardware or by their combination.For example; (for example can be saved in storage medium according to the method for the invention; Portable terminal internal storage, flash memory, hard disk, other or the like) in, can embody by code or order according to the software program that processor (for example, portable terminal internal microprocessor) is carried out.
The as above of the present invention useful embodiment of explanation, but scope of the present invention is not limited to aforesaid specific embodiment, so the present invention can change in a variety of forms, revises or change in the scope that thought of the present invention and claim are put down in writing.
There is following effect according to the present invention, in supporting the mobile communications network of TCP/IP, can reduces and different making somebody a mere figurehead in the past.Therefore the Radio Resource utilization can maximize.