A kind of method that realizes that WLAN rail communication system is switched fast
Technical field
The invention belongs to wireless communication technology field, relate to the quick method of switching of a kind of WLAN of realization rail communication system.
Background technology
In existing vehicle-ground wireless communication system, mainly be the wired network on ground and the narrowband wireless communication technology between the car ground, train during shortage realizes travelling and the means of ground control centre wireless broadband communication, so that some functions of comprehensive monitoring system can't realize between car ground, such as uploading in real time (belonging to the CCTV system) of video monitoring image in the compartment, multimedia PIS on-vehicle information passes down in real time, the vehicle in travelling, passenger's status information transmission.
WLAN refers to a series of wireless local area network technologies take the IEEE802.11 protocol suite as representative, and it is with large capacity, and high bandwidth, the advantages such as technical equipment maturation obtain to use widely.Track traffic namely adopts WLAN as transmission technology, the quick switching problem in the solution high-speed mobile between train and trackside WLAN access point.As shown in Figure 1,802.11 WLAN mainly are comprised of following element:
1, wireless stations (Stations, STA): STA is the equipment with radio network interface, can support to move freely, and supports high broadband.
2, WLAN access point (Access Point, AP): AP is the switch for wireless network, is the access point of portable terminal STA and WLAN.
3, basic service set (Basic Service Set, BSS): under the BSS pattern, have at least an AP to manage all STA as the management equipment of network, provide access and transmission service to STA.BSS is the elementary cell that local area network (LAN) consists of, and also can be understood as the scope of an integral body, and the STA in this scope can keep communication, but the STA that exceeds this scope just can not with BSS in STA communicate.
4, extended service set (Extend Servece Set, ESS): for the coverage of extended wireless lan, increase the mobility of terminal, a plurality of BSS can constitute jointly extended service set.
5, independent basic service set (Independent Basic Service Set, IBBS): the BBS of a minimum can comprise two work stations, does not only converse by other medium by local area network (LAN), also is the Ad-hoc adhoc mode.
6, dissemination system (Distribution System, DS): DS is the connection that realizes BSS by the wireless connections between AP.
In the Rail Transit System based on WLAN, the handoff procedure of STA and AP mainly is divided into three phases, as shown in Figure 2:
1, sweep phase: before using any network, at first must find out the existence of network.In WLAN (wireless local area network), STA must have identifying before adding network.Scan exactly in the zone at place identification existing network process.As the STA on the train during away from current AP, signal strength signal intensity and the SNR of current AP worsen, and the SNR of new AP when the SNR of new and old AP or signal strength signal intensity satisfy certain thresholding, namely begins sweep phase in uphill process.Common scan mode has: active scan and drive sweep.
(1) active scan: the user is furnished with a channel list in advance, and claim frame is sought in the channel broadcasting of STA in channel list.AP receives and seeks after the claim frame, responds and seeks response frame, as shown in Figure 3.If STA does not receive the response frame of seeking of this channel in channel Best-case Response Time (MinChennelTime), then can scan next channel; Seek response frame if STA receives, then can receive channel maximum response time (MaxChennelTime) always, stop to receive and seek response frame, scan next channel.After channel all scanned, STA can select the strongest AP of signal to carry out association.Present general equipment all adopts the active scan mode.
(2) drive sweep: drive sweep refers to that STA comes discovering network by intercepting the regular beacon frame that sends of AP.The user is furnished with the channel list for scanning in advance, monitors beacon at each channel.Drive sweep requires AP periodically to send beacon frame.But this scan mode real-time is relatively poor, when the user need to save electric weight, can use drive sweep.
2, authentication phase: STA of 802.11 authentication requestings sends frame and determines first before the sign of oneself.Authentication mechanism comprises two kinds, shared system authentication and shared key authentication.Only have by just entering the association/re-association stage after the authentication.
3, the association/re-association stage: in case after authentication finished, STA just can carry out association (perhaps carrying out the series of fortified passes with new access point joins) with AP, weighs in order to obtain complete access to netwoks.Connection process in series of fortified passes is similar with association process, AP and STA alternately on as broad as long.When STA transfers to another AP from the coverage of certain AP, will carry out the series of fortified passes connection.
In the three phases that switches, the time delay of sweep phase accounts for time of about 90% of whole handoff procedure, and with the present employing method of full scan channel initiatively, handoff procedure is greatly to needing the time more than the 200ms to finish, under the track traffic environment, such handover delay is concerning the overwhelming majority's business, all be unacceptable, particularly in the video monitoring system that bandwidth and transfer of data are had relatively high expectations, can cause image transmitting discontinuous and the problem such as mosaic occurs, be to reduce now handoff delay to realize the main method switched fast so start with to reduce sweep time at sweep phase.
Summary of the invention
Technical problem to be solved by this invention is: provide a kind of WLAN of realization rail communication system the quick method of switching, the method has reduced all handover delays of all channels generations of full scan of each switching greatly.
For solving the problems of the technologies described above, the present invention adopts following technical scheme.
A kind of method that realizes that WLAN rail communication system is switched fast may further comprise the steps:
Step 1 arranges buffer memory in vehicle-mounted STA;
Step 2 before the launch train, is pressed two directions of advance order static configuration trains AP information on the way of train in the buffer memory of the vehicle-mounted STA of train, form the AP information list of both direction;
When step 3, train are moved first, by the AP information list of a direction of static configuration scanning, judge the direction of advance of train;
Step 4, determine the direction of advance of train after, scan next adjacent AP place channel according to the AP information list of direction of advance, if scanning result is consistent with static configuration, then switch to fast the adjacent AP of the described next one; If inconsistent, then carry out the scanning of all channel or selective channel, and upgrade the AP information list of described direction of advance according to scanning result.
As a preferred embodiment of the present invention, each described AP information list include AP the channel frequency or/and MAC Address or/and authentication information.
As another kind of preferred version of the present invention, in the step 3, the method of judging current of traffic is: the AP of two different directions that will be adjacent from initial AP is made as two different frequencies, when train starts, scan described two different frequencies, determine the traffic direction of train according to the difference of frequency; Wherein initial AP is train when moving first, the trackside AP of vehicle-mounted first connection of STA.
As another preferred version of the present invention, in the step 3, the method of judging current of traffic is: if the AP of two different directions adjacent with initial AP is at same frequency, then determine the AP of different directions according to MAC Address different in the described AP information list, and then the traffic direction of definite train; Wherein initial AP is train when moving first, the trackside AP of vehicle-mounted first connection of STA.
As another preferred version of the present invention, in the step 4, in the train moving process, vehicle-mounted STA scans according to the channel frequency of next adjacent AP in the AP information list of direction of advance, if scanning result is consistent with static configuration, then switch to fast the adjacent AP of the described next one; If inconsistent, then carry out the scanning of all channel or selective channel, and upgrade the AP information list of described direction of advance according to scanning result.
Beneficial effect of the present invention is: the present invention adopts the channel learning method according to the channel of static configuration scanning appointment, only when producing fault, some AP carries out full scan, all handover delays of all channels generations of full scan of each switching have greatly been reduced, and can be by setting the fixedly frequency of all AP, carry out selective channel scanning, further reduced handoff delay.
Description of drawings
Fig. 1 is the structural representation of WLAN (WLAN);
Fig. 2 is the schematic diagram of the three phases that experiences in the handoff procedure of STA and AP;
Fig. 3 is the schematic diagram of active scan in the handoff procedure of STA and AP;
Fig. 4 is WLAN rail communication system of systems structural representation;
Fig. 5 is the quick method flow diagram that switches of realization WLAN rail communication system of the present invention.
Embodiment
The present invention is applied in the WLAN technology in the track traffic, in switching, adopt the channel learning art, before train starts, each AP information list static configuration is advanced wireless stations (Stations, STA) buffer area, simultaneously in the train moving process by the channel frequency of cached configuration scanning institute through WLAN access point (Access Point, AP), if do not scan through the information of AP, then upgrade the AP information list, make it in switching for the second time, greatly reduce time delay.
Below in conjunction with accompanying drawing the specific embodiment of the present invention is described in further detail.
Embodiment one
WLAN rail communication system of systems structure comprises ground application system, trackside system and onboard system as shown in Figure 4; Described ground application system comprises service centre, and a plurality of trackside system is served in its unified management.Described trackside system mainly comprises the trackside server and along the AP of track spaced set.Described onboard system mainly comprises onboard servers and is separately positioned on the STA of headstock and the tailstock.Train is in running, and vehicle-mounted STA communicates by letter with trackside AP, and then on-vehicle information and terrestrial information are carried out alternately.
Present embodiment provides a kind of WLAN of realization rail communication system the quick method of switching, and the flow process of the method may further comprise the steps as shown in Figure 5:
A kind of method that realizes that WLAN rail communication system is switched fast may further comprise the steps:
Step 1 arranges buffer memory in vehicle-mounted STA; Described buffer memory is in order to store the information of each AP on the way, such as MAC Address, channel, authentication information etc.
Step 2, before the launch train, in the buffer memory of the vehicle-mounted STA of train, press two directions of advance order static configuration trains AP information on the way of train, form the AP information list of both direction, each AP information list includes the channel frequency of each AP or/and MAC Address or/and authentication information etc., wherein authentication information be mainly used in the AP connection procedure in some authentication operations.
Because track traffic is according to line operation, thus train be known through the information of AP, so the AP dot information that the method that can adopt static configuration will be on the way before launch train advances the buffer memory of vehicle-mounted STA by two direction of advance arranged in order of train.
When step 3, train are moved first, by the AP information list of a direction of static configuration scanning, judge the direction of advance of train.
In the middle of train moves first, (be initial AP and the 3rd AP place channel by static configuration scanning two AP place channels adjacent with AP at first, wherein initial AP is train when moving first, the trackside AP of vehicle-mounted first connection of STA), judge the train direction of advance according to scanning result.Judgment mode has following two kinds:
Mode 1: the AP of two different directions that will be adjacent from initial AP is made as two different frequencies, when train starts, at these two frequency point scannings, can determine the traffic direction of train according to the difference of frequency.Because speed was not high when train had just started, are acceptables so scan the handover delay of two frequencies.
Mode 2: if the AP of two different directions adjacent with initial AP at same frequency, then can determine according to MAC Address different in the AP information list AP of different directions, and then the traffic direction of definite train.
Step 4, determine the direction of advance of train after, scan next adjacent AP place channel according to the AP information list of direction of advance, if scanning result is consistent with static configuration, then switch to fast the adjacent AP of the described next one; If inconsistent, then carry out all channel scanning, and upgrade the AP information list of described direction of advance according to scanning result, in next time train operation, switch by the tabulation after upgrading.Not need to carry out all channel scanning under normal circumstances, unless just when some AP produces fault, need to carry out all channel scanning.In the train moving process, vehicle-mounted STA scans according to the channel frequency of next adjacent AP in the AP information list of direction of advance, if scanning result is consistent with static configuration, then switches to fast the adjacent AP of the described next one; If inconsistent, then carry out the scanning of all channel or selective channel, and upgrade the AP information list of described direction of advance according to scanning result.Described all channel comprises the channel frequency of whole AP in the AP information list.
The present invention adopts the channel learning method according to the channel of static configuration scanning appointment, only when producing fault, some AP carries out full scan, all handover delays of all channels generations of full scan of each switching have greatly been reduced, and can be by setting the fixedly frequency of all AP, carry out selective channel scanning, further reduced handoff delay.
Description of the invention and application are illustrative, are not to want with scope restriction of the present invention in the above-described embodiments.Here the distortion of disclosed embodiment and change is possible, and the various parts of the replacement of embodiment and equivalence are known for those those of ordinary skill in the art.Those skilled in the art are noted that in the situation that does not break away from spirit of the present invention or substantive characteristics, and the present invention can be with other forms, structure, layout, ratio, and realize with other elements, material and parts.