CN105578524A - Terminal device and packet processing method - Google Patents
Terminal device and packet processing method Download PDFInfo
- Publication number
- CN105578524A CN105578524A CN201410519195.0A CN201410519195A CN105578524A CN 105578524 A CN105578524 A CN 105578524A CN 201410519195 A CN201410519195 A CN 201410519195A CN 105578524 A CN105578524 A CN 105578524A
- Authority
- CN
- China
- Prior art keywords
- msdu
- package
- threshold value
- time interval
- delivery time
- 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.)
- Granted
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
A packet processing method comprises the following steps: setting a first default value of the transmission time interval and a second default value of the data maximum for A-MSDU packets; receiving a TCP packet from a wireless access point; aggregating produced TCPACK frames to establish an A-MSDU packet; if the current data transmission speed is smaller than or equal to a first threshold and an A-MSDU packet sent to the wireless access point is timed out for three consecutive times, reducing the transmission time interval by a first preset value, and recalculating the data maximum based on the adjusted transmission time interval; and if the current data transmission speed is larger than or equal to a second threshold and the established A-MSDU packet achieves the data maximum for three consecutive times, increasing the data maximum by a second preset value. The invention further discloses a terminal device. The transmission time interval and the data maximum of an A-MSDU packet can be adjusted dynamically.
Description
Technical field
The present invention relates to a kind of data processing technique, especially relate to a kind of terminal equipment and method for processing packet.
Background technology
A-MSDU(Aggregate-MACServiceDataUnit, assembles MSDU) technology is that multiple MSDU is aggregated into a larger load by certain mode.Such as, when terminal equipment receives TCP(TransmissionControlProtocol from WAP (wireless access point), transmission control protocol) after package, the multiple TCPACK(that can produce confirm) frame is gathered into an A-MSDU package, then this A-MSDU package is sent to WAP (wireless access point), thus minimizing response times, improve transmitting efficiency.
But, delivery time interval (Timeout) and the data maximums (PacketSize) of current A-MSDU package are generally fixing, and network environment is complicated and changeable, if can not adjust A-MSDU package according to the change of network environment, data throughout can be affected or cause data delay.Such as, when user watches real-time television on the terminal device, assembling A-MSDU package may time-out, causes video data to postpone, thus can not displaying video glibly, affects Consumer's Experience.And when carrying out data in enormous quantities download on the terminal device, need to assemble TCPACK frame continually and send A-MSDU package, data throughout during download may be affected.
Summary of the invention
In view of above content, be necessary to provide a kind of terminal equipment, can the delivery time interval of dynamic conditioning A-MSDU package and data maximums.
In view of above content, there is a need to provide a kind of method for processing packet, can the delivery time interval of dynamic conditioning A-MSDU package and data maximums.
Described terminal equipment comprises: arrange module, for the second default value of the first default value and data maximums that arrange the delivery time interval of A-MSDU package, and the first threshold value of data transmission bauds and the second threshold value, wherein said first threshold value is less than described second threshold value; Described module is set also for arranging the first preset value for adjusting described delivery time interval and being used for adjusting the second preset value of described data maximums; Receiver module, for receiving TCP package from WAP (wireless access point); Set up module, for assembling the TCPACK frame produced for the TCP package received, to set up A-MSDU package; Judge module, for more current data transmission bauds and described first threshold value and the second threshold value; Adjusting module, if be less than or equal to described first threshold value for current data transmission bauds, and recur several times time-out to the A-MSDU package that described WAP (wireless access point) sends, described first preset value is reduced at interval of described delivery time, and recalculates described data maximums according to the delivery time interval after adjustment; And if described adjusting module is also more than or equal to described second threshold value for current data transmission bauds, and the continuous several times of A-MSDU package set up reach described data maximums, and described data maximums is increased described second preset value.
Described method for processing packet comprises step: arrange first default value at the delivery time interval of A-MSDU package and the second default value of data maximums, and the first threshold value of data transmission bauds and the second threshold value, wherein said first threshold value is less than described second threshold value; Arrange and be used for adjusting first preset value at described delivery time interval and being used for adjusting the second preset value of described data maximums; TCP package is received from WAP (wireless access point); Assemble the TCPACK frame produced for the TCP package received, to set up A-MSDU package; More current data transmission bauds and described first threshold value and the second threshold value; If current data transmission bauds is less than or equal to described first threshold value, and recur several times time-out to the A-MSDU package that described WAP (wireless access point) sends, described first preset value is reduced at interval of described delivery time, and recalculates described data maximums according to the delivery time interval after adjustment; And if current data transmission bauds is more than or equal to described second threshold value, and the continuous several times of A-MSDU package set up reach described data maximums, and described data maximums is increased described second preset value.
Compared to prior art, described terminal equipment and method for processing packet, can according to current network load state, the delivery time interval of adjustment A-MSDU package and data maximums, thus ensure all to send A-MSDU package with suitable throughput and time delay to WAP (wireless access point) under different offered load states.
Accompanying drawing explanation
Fig. 1 is the functional block diagram of terminal equipment preferred embodiment of the present invention.
Fig. 2 is the flow chart of method for processing packet preferred embodiment of the present invention.
Main element symbol description
Terminal equipment | 2 |
WAP (wireless access point) | 4 |
Packet processing systems | 10 |
Memory | 20 |
Processor | 30 |
Module is set | 100 |
Receiver module | 200 |
Set up module | 300 |
Judge module | 400 |
Adjusting module | 500 |
Sending module | 600 |
Following embodiment will further illustrate the present invention in conjunction with above-mentioned accompanying drawing.
Embodiment
Consulting shown in Fig. 1, is the functional block diagram of terminal equipment 2 of the present invention preferred embodiment.Described terminal equipment 2 comprises packet processing systems 10, memory 20 and processor 30.In the present embodiment, described terminal equipment 2 can be the computer of wireless network card is housed or has the smart mobile phone etc. of WiFi function, is wirelessly connected to WAP (wireless access point) 4, by WAP (wireless access point) 4 accessing WLAN.
Described packet processing systems 10 is for according to current network load state (data transmission bauds), the delivery time interval of adjustment A-MSDU package and data maximums, make terminal equipment 2 all send A-MSDU package with suitable throughput and time delay to WAP (wireless access point) 4 under different offered load states.
Described packet processing systems 10 comprise module 100, receiver module 200 be set, set up 300, judge module 400, adjusting module 500 and sending module 600.Described module is configured to be performed by one or more processor (the present embodiment is processor 30), to complete the present invention.Module alleged by the present invention has been the computer program code segments of a specific function.Memory 20 is for storing the data such as the program code of packet processing systems 10.
Described second default value of module 100 for the first default value and data maximums that arrange the delivery time interval of A-MSDU package is set, and the first threshold value of data transmission bauds and the second threshold value, wherein the first threshold value is less than the second threshold value.In the present embodiment, described first threshold value is 5Mbps(MBPS), the second threshold value is 40Mbps.Arrange module 100 parameters arranged above is kept in memory 20.
Described module 100 is set also for the first preset value of arranging for adjusting delivery time interval be used for adjusting the second preset value of data maximums.
Described receiver module 200 is for receiving TCP package from WAP (wireless access point) 4.
Described module 300 of setting up for assembling the TCPACK frame produced for the TCP package received, to set up A-MSDU package.In the present embodiment, set up module 300, according to described delivery time interval and data maximums, several TCPACK frames are gathered into an A-MSDU package.Such as, the delivery time is spaced apart 15ms(millisecond), every 2 ~ 3ms produces a TCPACK frame, sets up module 300 and 6 TCPACK frames are gathered into an A-MSDU package.
Described judge module 400 is for more current data transmission bauds and the first set threshold value and the second threshold value.
Described judge module 400, also for when current data transmission bauds is less than or equal to the first threshold value, judges whether the A-MSDU package sent to WAP (wireless access point) 4 recurs three time-out.
The first preset value, for when recurring three times and being overtime, is reduced by delivery time interval by described adjusting module 500, and recalculates data maximums according to the delivery time interval after adjustment.In the present embodiment, described first preset value is the time of a transmission MTU (MTU).
Such as, play in real-time television process at terminal equipment 2, data transmission bauds is 5Mbps, MTU is 1500bytes(byte), TCPACK frame is 80bytes, and first default value at delivery time interval is 15ms, and the second default value of data maximums is 1600bytes.Judge module 400 judges that current data transmission bauds equals the first threshold value, if the A-MSDU package sent to WAP (wireless access point) 4 recurs three time-out, then the first preset value (1500bytes/5Mbps=2.3ms) is reduced in delivery time interval by adjusting module 500, namely the delivery time after adjustment is spaced apart 15ms-2.3ms=12.7ms, and is 80* (12.7/2.3)=400bytes according to the data maximums that the delivery time interval after this adjustment recalculates.
Described judge module 400, also for when current data transmission bauds is more than or equal to the second threshold value, judges that the A-MSDU package set up reaches data maximums whether continuous three times.
Described adjusting module 500 also for when set up A-MSDU package continuous reach data maximums three times time, the data maximums of A-MSDU package is increased by the second preset value.In the present embodiment, described second preset value is the size of a TCPACK frame.
Such as, terminal equipment 2 carry out data in enormous quantities download time, data transmission bauds is 40Mbps, MTU be 1500bytes, TCPACK frame is 80bytes, and first default value at delivery time interval is 15ms, and the second default value of data maximums is 1600bytes.Judge module 400 judges that current data transmission bauds equals the second threshold value, if the A-MSDU package set up reaches data maximums continuous three times, then data maximums is increased the second preset value (80bytes) by adjusting module 500, and the data maximums namely after adjustment is 1600bytes+80bytes=1680bytes.
Delivery time interval and data maximums also for when current data transmission bauds is greater than the first threshold value and is less than the second threshold value, are set to described first default value and the second default value by described adjusting module 500 respectively.That is, if once adjust delivery time interval and data maximums before this, then delivery time interval and data maximums can be reverted to default value when current data transmission bauds is greater than the first threshold value and is less than the second threshold value.Such as, when current data transmission bauds is greater than the first threshold value and is less than the second threshold value, the data maximums 1680bytes after the delivery time interval 12.7ms after above-mentioned adjustment, adjustment all will revert to default value 15ms, 1600bytes.
The A-MSDU package of this foundation is sent to WAP (wireless access point) 4 for determining whether according to current delivery time interval and data maximums by described sending module 600.In the present embodiment, when the size that the time of distance last transmission A-MSDU package reaches the A-MSDU package of current delivery time interval or foundation reaches current data maximums, the A-MSDU package of this foundation is sent to WAP (wireless access point) 4 by sending module 600.
Consulting shown in Fig. 2, is the flow chart of method for processing packet preferred embodiment of the present invention.Described method for processing packet is applied in terminal equipment 2, is realized by the program code stored in processor 30 execute store 20.Described Internet phone-calling Proxy Method can according to current network load state (data transmission bauds), the delivery time interval of adjustment A-MSDU package and data maximums.
Step S10, arranges first default value at the delivery time interval of A-MSDU package and the second default value of data maximums, and the first threshold value of data transmission bauds and the second threshold value, and wherein the first threshold value is less than the second threshold value.The parameters more than arranged is kept in memory 20.
Step S12, arranges the first preset value being used for adjusting delivery time interval and the second preset value being used for adjusting data maximums.
Step S14, receives TCP package from WAP (wireless access point) 4.
Step S16, assembles the TCPACK frame produced for the TCP package received, to set up A-MSDU package.In the present embodiment, according to described delivery time interval and data maximums, several TCPACK frames are gathered into an A-MSDU package.
Step S18, more current data transmission bauds and the first set threshold value and the second threshold value.If current data transmission bauds is less than or equal to the first threshold value, then perform step S20-S22.If current data transmission bauds is more than or equal to the second threshold value, then perform step S24-S26.If current data transmission bauds is greater than the first threshold value and be less than the second threshold value, then perform step S28.
Step S20, judges whether the A-MSDU package sent to WAP (wireless access point) 4 recurs three time-out.If recur three time-out, then perform step S22.If do not recur three time-out, then perform step S30.
Step S22, reduces by the first preset value by delivery time interval, and recalculates data maximums according to the delivery time interval after adjustment, then performs step S30.In the present embodiment, described first preset value is the time of a transmission MTU (MTU).
Step S24, judges that the A-MSDU package set up reaches data maximums whether continuous three times.If continuous three times reach data maximums, then perform step S26.If not continuous three times reach data maximums, then perform step S30.
Step S26, increases by the second preset value by the data maximums of A-MSDU package, then performs step S30.In the present embodiment, described second preset value is the size of a TCPACK frame.
Step S28, is set to described first default value and the second default value respectively by delivery time interval and data maximums, then performs step S30.That is, if once adjust delivery time interval and data maximums before this, then delivery time interval and data maximums can be reverted to default value when current data transmission bauds is greater than the first threshold value and is less than the second threshold value.
Step S30, determines whether the A-MSDU package of this foundation to send to WAP (wireless access point) 4 according to current delivery time interval and data maximums.In the present embodiment, when the size that the time of distance last transmission A-MSDU package reaches the A-MSDU package of current delivery time interval or foundation reaches current data maximums, the A-MSDU package of this foundation is sent to WAP (wireless access point) 4.
Above embodiment is only in order to illustrate technical scheme of the present invention and unrestricted, although with reference to preferred embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that, can modify to technical scheme of the present invention or equivalent replacement, and not depart from the spirit and scope of technical solution of the present invention.
Claims (10)
1. a method for processing packet, is characterized in that, the method comprising the steps of:
First default value at delivery time interval and the second default value of data maximums of assembling MSDU (A-MSDU) package are set, and the first threshold value of data transmission bauds and the second threshold value, wherein said first threshold value is less than described second threshold value;
Arrange and be used for adjusting first preset value at described delivery time interval and being used for adjusting the second preset value of described data maximums;
Transmission control protocol (TCP) package is received from WAP (wireless access point);
Assemble confirmation (TCPACK) frame produced for the TCP package received, to set up A-MSDU package;
More current data transmission bauds and described first threshold value and the second threshold value;
If current data transmission bauds is less than or equal to described first threshold value, and recur several times time-out to the A-MSDU package that described WAP (wireless access point) sends, described first preset value is reduced at interval of described delivery time, and recalculates described data maximums according to the delivery time interval after adjustment; And
If current data transmission bauds is more than or equal to described second threshold value, and the continuous several times of A-MSDU package set up reach described data maximums, and described data maximums is increased described second preset value.
2. method for processing packet as claimed in claim 1, it is characterized in that, the method also comprises step:
If current data transmission bauds is greater than described first threshold value and be less than described second threshold value, described delivery time interval and data maximums are set to described first default value and the second default value respectively.
3. method for processing packet as claimed in claim 1, it is characterized in that, the method also comprises step:
Determine whether the A-MSDU package of described foundation to send to described WAP (wireless access point) according to current delivery time interval and data maximums, wherein when the size that the time of distance last transmission A-MSDU package reaches the A-MSDU package of current delivery time interval or described foundation reaches current data maximums, the A-MSDU package of described foundation is sent to described WAP (wireless access point).
4. method for processing packet as claimed in claim 1, it is characterized in that, described first preset value is the time of a transmission MTU.
5. method for processing packet as claimed in claim 1, it is characterized in that, described second preset value is the size of a TCPACK frame.
6. a terminal equipment, described terminal equipment is wirelessly connected to WAP (wireless access point), it is characterized in that, described terminal equipment comprises:
Module is set, for arranging first default value at delivery time interval and the second default value of data maximums of assembling MSDU (A-MSDU) package, and the first threshold value of data transmission bauds and the second threshold value, wherein said first threshold value is less than described second threshold value;
Described module is set also for arranging the first preset value for adjusting described delivery time interval and being used for adjusting the second preset value of described data maximums;
Receiver module, for receiving transmission control protocol (TCP) package from described WAP (wireless access point);
Set up module, for assembling confirmation (TCPACK) frame produced for the TCP package received, to set up A-MSDU package;
Judge module, for more current data transmission bauds and described first threshold value and the second threshold value;
Adjusting module, if be less than or equal to described first threshold value for current data transmission bauds, and recur several times time-out to the A-MSDU package that described WAP (wireless access point) sends, described first preset value is reduced at interval of described delivery time, and recalculates described data maximums according to the delivery time interval after adjustment; And
If described adjusting module is also more than or equal to described second threshold value for current data transmission bauds, and the continuous several times of A-MSDU package set up reach described data maximums, and described data maximums is increased described second preset value.
7. terminal equipment as claimed in claim 6, is characterized in that:
If described adjusting module is also greater than described first threshold value for current data transmission bauds and is less than described second threshold value, described delivery time interval and data maximums are set to described first default value and the second default value respectively.
8. terminal equipment as claimed in claim 6, it is characterized in that, described terminal equipment also comprises:
Sending module, for determining whether according to current delivery time interval and data maximums, the A-MSDU package of described foundation is sent to described WAP (wireless access point), wherein when the size that the time of distance last transmission A-MSDU package reaches the A-MSDU package of current delivery time interval or described foundation reaches current data maximums, the A-MSDU package of described foundation is sent to described WAP (wireless access point).
9. terminal equipment as claimed in claim 6, it is characterized in that, described first preset value is the time of a transmission MTU.
10. terminal equipment as claimed in claim 6, it is characterized in that, described second preset value is the size of a TCPACK frame.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410519195.0A CN105578524B (en) | 2014-10-07 | 2014-10-07 | Terminal device and method for processing packet |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410519195.0A CN105578524B (en) | 2014-10-07 | 2014-10-07 | Terminal device and method for processing packet |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105578524A true CN105578524A (en) | 2016-05-11 |
CN105578524B CN105578524B (en) | 2019-01-25 |
Family
ID=55888070
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410519195.0A Expired - Fee Related CN105578524B (en) | 2014-10-07 | 2014-10-07 | Terminal device and method for processing packet |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105578524B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1540948A (en) * | 2003-04-21 | 2004-10-27 | ���µ�����ҵ��ʽ���� | Data receiving and reproducing appts., method and processing program |
CN1543159A (en) * | 2003-05-03 | 2004-11-03 | ���ǵ�����ʽ���� | Wireless-compatible MAC frame transmitting/receiving method and apparatus |
US20070053354A1 (en) * | 2005-08-18 | 2007-03-08 | Interdigital Technology Corporation | Method and system for securing wireless transmission of an aggregated frame |
CN101253745A (en) * | 2005-07-18 | 2008-08-27 | 博通以色列研发公司 | Method and system for transparent TCP offload |
CN101803316A (en) * | 2007-09-26 | 2010-08-11 | 国际商业机器公司 | Method, system, and computer program product for adaptive congestion control on virtual lanes for data center Ethernet architecture |
CN102387066A (en) * | 2010-08-30 | 2012-03-21 | 索尼公司 | Packet transmission control device, packet transmission control method, and program |
CN102724706A (en) * | 2012-06-19 | 2012-10-10 | 天津大学 | Two-stage frame aggregation method |
US8498305B1 (en) * | 2006-01-25 | 2013-07-30 | Marvell International Ltd. | Packet aggregation |
CN103313304A (en) * | 2012-03-13 | 2013-09-18 | 华为技术有限公司 | Aggregation method and device of A-MSDU as well as data reception method and device |
CN103348647A (en) * | 2011-02-07 | 2013-10-09 | 生活服务质量有限公司 | Mechanisms to improve the transmission control protocol performance in wireless networks |
-
2014
- 2014-10-07 CN CN201410519195.0A patent/CN105578524B/en not_active Expired - Fee Related
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1540948A (en) * | 2003-04-21 | 2004-10-27 | ���µ�����ҵ��ʽ���� | Data receiving and reproducing appts., method and processing program |
CN1543159A (en) * | 2003-05-03 | 2004-11-03 | ���ǵ�����ʽ���� | Wireless-compatible MAC frame transmitting/receiving method and apparatus |
CN101253745A (en) * | 2005-07-18 | 2008-08-27 | 博通以色列研发公司 | Method and system for transparent TCP offload |
US20070053354A1 (en) * | 2005-08-18 | 2007-03-08 | Interdigital Technology Corporation | Method and system for securing wireless transmission of an aggregated frame |
US8498305B1 (en) * | 2006-01-25 | 2013-07-30 | Marvell International Ltd. | Packet aggregation |
CN101803316A (en) * | 2007-09-26 | 2010-08-11 | 国际商业机器公司 | Method, system, and computer program product for adaptive congestion control on virtual lanes for data center Ethernet architecture |
CN102387066A (en) * | 2010-08-30 | 2012-03-21 | 索尼公司 | Packet transmission control device, packet transmission control method, and program |
CN103348647A (en) * | 2011-02-07 | 2013-10-09 | 生活服务质量有限公司 | Mechanisms to improve the transmission control protocol performance in wireless networks |
CN103313304A (en) * | 2012-03-13 | 2013-09-18 | 华为技术有限公司 | Aggregation method and device of A-MSDU as well as data reception method and device |
CN102724706A (en) * | 2012-06-19 | 2012-10-10 | 天津大学 | Two-stage frame aggregation method |
Also Published As
Publication number | Publication date |
---|---|
CN105578524B (en) | 2019-01-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9979665B2 (en) | Reducing buffer usage for TCP proxy session based on delayed acknowledgement | |
CN110417650B (en) | Multilink data distribution method and device and electronic equipment | |
CN101990243B (en) | Transmission rate control method and communication device | |
EP3780542B1 (en) | Data transmission method and device | |
CN105847168B (en) | data transmission method, network server, user terminal and system | |
EP1701506B1 (en) | Method and system for transmission control protocol (TCP) traffic smoothing | |
US10660112B2 (en) | Transmission rate regulation method | |
US11140082B2 (en) | Data transmission method and device | |
CN102104908A (en) | Data transmission control method and equipment | |
CN102355324B (en) | Frame aggregation control method, device and system | |
CN108075988A (en) | Data transmission method and device | |
US11695629B2 (en) | Method and apparatus for configuring a network parameter | |
CN105763474A (en) | Data transmission method and device | |
CN102256314A (en) | Method for adjusting service coding rate and communication node | |
CN105392023A (en) | Video live broadcasting method and device in network jitter environment | |
CN103001727A (en) | Method and system for controlling data transmission of radio network | |
JP2012503411A (en) | Method and apparatus in communication system | |
CN105517047A (en) | Base station traffic shaping method and system | |
CN105991476A (en) | Voice data time-delay processing method and device | |
WO2024001763A1 (en) | Data transmission processing method and device, storage medium, and electronic device | |
CN112887416A (en) | Frequency adjustment method and device for sending keep-alive packets | |
CN117014379A (en) | Code rate control method, device, electronic equipment and storage medium | |
US9526086B1 (en) | Application data rate limiting in a wireless communication device | |
CN105578524A (en) | Terminal device and packet processing method | |
CN101945448B (en) | Service quality control method and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20180503 Address after: 201613 No. 1925 Nan Le Road, Songjiang export processing zone, Shanghai Applicant after: Ambit Microsystems (Shanghai) Ltd. Address before: 201613 Shanghai Songjiang District Songjiang Export Processing Zone South Le road 1925 Applicant before: Ambit Microsystems (Shanghai) Ltd. Applicant before: HON HAI PRECISION INDUSTRY Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190125 |