A kind of transmission rate fast and smooth handoff method and system thereof for mobile device
Technical field
The present invention relates to a kind of data transmission technology of mobile device, specifically, relate to a kind of transmission rate fast and smooth handoff method and system thereof for mobile device.
Background technology
In recent years, along with popularizing of mobile Internet application, the mobility support of mobile device is also become and become more and more important.When mobile device need to move to different positions, between mobile device and wireless access end equipment, need to carry out rate consulation, and do not need to carry out any manual configuration still can keep communication, this process is called as " switching ".Because customer location changes diversity with uncertain, may there is larger difference in the maximum data transfer rate that each position is supported.For example, after shift in position, if the maximum data transfer rate that channel is supported increases, and the message transmission rate of consulting between physical device is not switched to corresponding maximum data transfer rate in time, will occur so time delay, can cause bandwidth waste; If the maximum data transfer rate of channel support reduces, and the message transmission rate of consulting between physical device is not switched to corresponding maximum data transfer rate in time, can cause packet loss to increase.How, in device location change procedure, keeping is the problem of needing solution badly with level and smooth switching fast.
Summary of the invention
The object of the present invention is to provide a kind of transmission rate fast and smooth handoff method for mobile device, solve in prior art, exist change the problem that packet loss increases while causing transfer of data because of position of mobile equipment.
To achieve these goals, the technical solution used in the present invention is as follows:
A transmission rate fast and smooth handoff method for mobile device, comprises the following steps:
(1) system initialization, wireless access end equipment and mobile device connect, and start transfer of data, record initial data transfer speed;
(2) real time inspection current data transmission rate;
(3) judge that whether current data transmission rate is identical with the initial data transfer speed of record, if identical, carry out next step, otherwise execution step (5);
(4) determine whether and reach timer setting-up time, if reached, carry out next step, otherwise, go to step (2);
(5) wireless access end equipment is enabled presetting mechanism, according to signal strength signal intensity specified data transmission standard, message transmission rate is progressively adjusted;
(6) upgrade the message transmission rate after adjusting, and go to step (2), until transfer of data completes.
Further, as follows according to the concrete grammar of signal strength signal intensity specified data transmission standard in described step (5):
If be less than or equal to-77dbm of signal strength signal intensity, adopts 802.11 standards to carry out transfer of data;
If be greater than-77dbm of signal strength signal intensity, is less than or equal to-73dbm, adopt 802.11b standard to carry out transfer of data;
If be greater than-73dbm of signal strength signal intensity, is less than or equal to-65dbm, adopt 802.11g standard to carry out transfer of data;
If be greater than-65dbm of signal strength signal intensity, adopts 802.11n standard to carry out transfer of data.
Again further, the concrete grammar of in described step (5), message transmission rate progressively being adjusted is as follows:
(5.1) packet loss of statistics current data transmission;
(5.2) judge whether packet loss is less than the threshold value of setting, if so, execution step (5.3), otherwise execution step (5.4);
(5.3) judge whether current message transmission rate reaches the maximum data transfer rate under current standard,
If so, current message transmission rate is adjusted to the minimum data transmission rate under other standards; Otherwise, within the scope of the message transmission rate by current message transmission rate under current standard, progressively up adjust;
(5.4) current message transmission rate is set to the minimum data transmission rate under current standard.
Further, in described step (5.4), minimum data transmission rate is respectively:
Minimum data transmission rate under 802.11b standard is 5Mbps;
Minimum data transmission rate under 802.11g standard is 6Mbps;
Minimum data transmission rate under 802.11n standard is 6.5 Mbps.
Take above-mentioned changing method as basis, the present invention also provides transmission rate fast and smooth handoff system for corresponding mobile device, comprise for negotiation data transmission rate and record the initialization module of initial data transfer speed, trigger the trigger module of speed switching condition, specified data is transmitted the presetting module of standard, and progressively adjusts the speed adjusting module of current data transmission rate.
Further, described trigger module comprises timing submodule and the rate variation submodule being connected with described initialization module respectively.
Compared with prior art, the present invention has following beneficial effect:
(1) with traditional rate switching method comparison, the present invention enables presetting mechanism, according to signal strength signal intensity, carrys out specified data transmission rate scope, thereby improves the speed that speed is switched.Meanwhile, adopt fine tuning mechanism, if packet loss higher than the threshold value of setting, the minimum data transmission rate of take under current standard is preliminary adjustment value, otherwise message transmission rate is progressively up increased, to realize taking over seamlessly of message transmission rate.
(2) if the maximum data transfer rate that channel is supported increases, the message transmission rate of consulting between physical device can be switched to corresponding maximum data transfer rate fast, thereby has improved to a certain extent the utilance of channel.
(3) if the maximum data transfer rate of channel support reduces, the message transmission rate of consulting between physical device can be switched to corresponding minimum data transmission rate fast, thereby has effectively reduced packet loss, makes user obtain better network and experiences.
(4) the present invention switches from traditional message transmission rate that not only method is completely different, and principle is not identical yet, fundamentally changed the regulative mode of message transmission rate between mobile device, for Radio Transmission Technology, opened up a new mentality of designing, there is very great industry and be worth and society research meaning.
Accompanying drawing explanation
Fig. 1 is overall flow schematic diagram of the present invention.
Fig. 2 is the schematic flow sheet that medium-rate of the present invention is progressively adjusted.
Embodiment
Below in conjunction with drawings and Examples, the invention will be further described, and embodiments of the present invention include but not limited to the following example.
Embodiment
As depicted in figs. 1 and 2, transmission rate fast and smooth handoff method for mobile device provided by the invention, be mainly used in mobile device adjusts smoothly when occurrence positions changes, maximize and reduce that message transmission rate is subject to change in signal strength and the impact that causes, avoid data packet loss to increase, guarantee normally carrying out of transfer of data.
The transfer of data between a radio reception device and a mobile device of take below in home environment describes as example.Test by experiment known, before not adding the present invention, along with the distance between mobile device and radio reception device strengthens, wireless signal strength between the two can die down gradually, message transmission rate is after continuous packet loss, diminish gradually, finally, because of the too weak disconnecting that causes of signal strength signal intensity, transfer of data stops.And in the process that distance between mobile device and radio reception device diminishes, its speed of the transfer of data that both have set up is also difficult to become large, substantially keep the message transmission rate starting most to carry out transfer of data.That is: in existing technology, once setting up transfer of data between mobile device and radio reception device is connected, its message transmission rate is just substantially fixing, even if shorten the distance between mobile device and radio reception device below, signal strength signal intensity is increased, its message transmission rate can not continue to increase with the increase of signal strength signal intensity yet, and in this case, the utilance of channel just can only waste.
After adding the present invention, once setting up transfer of data with radio reception device, mobile device is connected, start to transmit data, first initialization module just records initial message transmission rate, simultaneously, in data transmission procedure, check in real time current message transmission rate, and judge that by rate variation submodule whether current message transmission rate is identical with initial message transmission rate, if identical, illustrate that the distance between mobile device and radio reception device does not significantly change, signal strength signal intensity is obviously decay or enhancing not, now, by timing submodule, judge whether to reach timer setting-up time.When reaching timer setting-up time, start to enable presetting mechanism, current message transmission rate is adjusted; If current message transmission rate is not identical with initial message transmission rate, illustrate that significant change has appearred in the distance between mobile device and radio reception device, there is obvious decay or enhancing in signal strength signal intensity, now directly enable presetting mechanism, current message transmission rate is adjusted, to avoid packet loss to strengthen, affect transfer of data.
When speed is adjusted, first according to current signal strength signal intensity, determine the transfer of data standard adopting, in the present embodiment, be set as follows: if be less than or equal to-77dbm of signal strength signal intensity adopts 802.11 standards to carry out transfer of data; If be greater than-77dbm of signal strength signal intensity, is less than or equal to-73dbm, adopt 802.11b standard to carry out transfer of data; If be greater than-73dbm of signal strength signal intensity, is less than or equal to-65dbm, adopt 802.11g standard to carry out transfer of data; If be greater than-65dbm of signal strength signal intensity, adopts 802.11n standard to carry out transfer of data.After specified data transmission standard, the packet loss of statistics current data transmission, judges whether current packet loss reaches the threshold values of default.If packet loss does not reach the threshold values of setting, current message transmission rate is set to the minimum data transmission rate under current standard, by reducing message transmission rate, reduce packet loss, guarantee normally carrying out of transfer of data, in the present embodiment, set: the minimum data transmission rate under 802.11b standard is 5Mbps; Minimum data transmission rate under 802.11g standard is 6Mbps; Minimum data transmission rate under 802.11n standard is 6.5 Mbps.If packet loss reaches the threshold values of setting, adopt following adjustment mode: first judge whether current message transmission rate reaches the maximum data transfer rate under current standard, if, illustrate that current standard has been not suitable for the transfer of data under present case, now current message transmission rate is adjusted to the minimum data transmission rate under other standards, changes transfer of data standard; Otherwise, within the scope of the message transmission rate of current standard, current message transmission rate is progressively adjusted upward, progressively strengthen message transmission rate, to increase data throughout, improve the utilance of channel.
Take above-mentioned changing method as basis, and switched system provided by the invention mainly comprises: initialization module, trigger module, presetting module and speed adjusting module.Wherein, initialization module is mainly used in wireless access end equipment and mobile device carries out rate consulation, and records initial data transfer speed.Trigger module comprises regularly submodule and rate variation submodule, regularly submodule is for arranging the speed switching time of wireless access end equipment, and judging whether current time meets speed switching condition, rate variation submodule is whether comparison current data transmission rate is consistent with the initial data transfer speed of record.Presetting module is for coming specified data transmission standard, the i.e. scope of specified data transmission rate according to signal strength signal intensity.Speed adjusting module is according to current packet loss, current message transmission rate is adjusted: if packet loss is less than the threshold value of setting, message transmission rate is progressively upwards increased, otherwise message transmission rate is set to the minimum data transmission rate of current standard.
By above-mentioned software and hardware combining, in the time of can there is change in signal strength between mobile device and radio reception device, rapidly message transmission rate is switched smoothly, to guarantee in time current message transmission rate and current network environments match, avoid on the one hand the excessive transfer of data that affects of data packet loss, improve in time on the other hand channel utilization, avoid channel resource waste.
Above-described embodiment is only the preferred embodiments of the present invention, and not limiting the scope of the invention, adopts design principle of the present invention in every case, and carries out non-creativeness work on this basis and the variation made, within all should belonging to protection scope of the present invention.