Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
A part of embodiment of the present invention, rather than whole embodiments.
Therefore, the detailed description of embodiments of the invention below to providing in the accompanying drawings is not intended to limit claimed
The scope of the present invention, but be merely representative of the present invention selected embodiment.Based on the embodiment in the present invention, this area is common
The every other embodiment that technical staff is obtained under the premise of creative work is not made, belongs to the model that the present invention is protected
Enclose.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi
It is defined in individual accompanying drawing, then it further need not be defined and explained in subsequent accompanying drawing.
Fig. 1 is refer to, Fig. 1 is the block diagram for the network system 10 that present pre-ferred embodiments are provided.The network
System 10 includes the multiple AP300 for being in communication with each other the vehicle-mounted WDS100 of connection and being arranged at by road.
In the present embodiment, AP (AccessPoint, WAP) is for client to provide network by wireless medium
Access service.WDS (Wireless Distribution System, wireless distribution system) is also referred to as wireless bridge, is to pass through
Wireless mode carries out a kind of method of network extension to distributed system.WDS can allow between wireless aps or wireless router
By wirelessly being bridged (relaying), and have no effect on during bridge joint wireless device coverage effect.
Fig. 2 is refer to, Fig. 2 is the block diagram for the vehicle-mounted WDS100 that present pre-ferred embodiments are provided.It is described vehicle-mounted
WDS100 includes memory 110, processor 120, mixed-media network modules mixed-media 130, roaming timer 140 and netsurfing switching device 200.
The memory 110, processor 120 and mixed-media network modules mixed-media 130 are directly or indirectly electrically connected with each other, with reality
The transmission or interaction of existing data.For example, these elements can be realized by one or more communication bus or signal wire each other
It is electrically connected with.The netsurfing that is stored with memory 110 switching device 200, the netsurfing switching device 200 is included at least
One can be stored in the software function module in the memory 110, the place in the form of software or firmware (firmware)
Reason device 120 is stored in software program and module in memory 110 by operation, so as to perform various function application and number
According to processing.
Wherein, the memory 110 may be, but not limited to, random access memory (Random Access
Memory, RAM), read-only storage (Read Only Memory, ROM), programmable read only memory (Programmable
Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only
Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only
Memory, EEPROM) etc..Wherein, memory 110 be used for storage program, the processor 120 after execute instruction is received,
Perform described program.Further, the software program and module in above-mentioned memory 110 may also include operating system, and it can
Including the various component softwares for management system task (such as memory management, storage device control, power management) and/or
Driving, and can be in communication with each other with various hardware or component software, so as to provide the running environment of other software component.
The processor 120 can be a kind of IC chip, the disposal ability with signal.Above-mentioned processor
120 can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit
(Network Processor, NP) etc..It can also be digital signal processor (DSP), application specific integrated circuit (ASIC), scene
Programmable gate array (FPGA) or other PLDs, discrete gate or transistor logic, discrete hardware group
Part.It can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor can be with
It is microprocessor or the processor can also be any conventional processor etc..
Mixed-media network modules mixed-media 130 is used for the communication set up by network between the external equipments such as the vehicle-mounted WDS100 and AP300
Connection, realizes the transmitting-receiving transmission operation of network signal and data.
Timer 140 is roamed, for carrying out notice of giving the correct time at interval of the default time of giving the correct time, the vehicle-mounted WDS100 is notified
Carry out roaming detection.
It is appreciated that the structure described in Fig. 2 be only signal, vehicle-mounted WDS100 may also include it is more more than shown in Fig. 2 or
Less component, or with the configuration different from shown in Fig. 2.Each component shown in Fig. 2 can using hardware, software or its
Combination is realized.
First embodiment
In highway wireless networking, roadside access wireless device AP300 can be using the outdoor high-power nothing of two-sided orientation
Line equipment, can be at interval of two kilometers of arrangements, one AP300.Vehicle-mounted WDS100 (wireless bridge) accesses wireless device with roadside
AP300 associate, make automobile at full throttle 150 kilometers/hour speed traveling during realize data back.In order to realize
Automobile still carries out fast roaming under such high-speed cruising with roadside AP300, and ensures link communication quality, and the present invention is a kind of
Netsurfing switching method.
This programme remains in handoff procedure to receive by realizing being switched fast for roaming with network virtual technology
The data that former AP300 is issued, realize that vehicle-mounted WDS100 uploads the zero propagation of business datum message, zero packet loss.
This programme uses network virtual technology, by the physical network device of a reality, fictionalizes multiple virtual networks and sets
It is standby, and different MAC Address are respectively adopted in multiple virtual network devices.Same client is solved with identical MAC
When different AP300 are accessed in location, transmission data carry out the problems of MAC address learning when passing through the network switch.
In this programme, each AP300 fictionalizes at least two wireless service LAN (such as, essid1, essid2
Deng), the same real physical network device of at least two wireless service LANs correspondence.Vehicle-mounted WDS100 fictionalizes at least two
Individual wireless client (such as, client1, client2 etc.), the same real Physical Network of at least two wireless clients correspondence
Network equipment.For AP300, AP300 it is seen that result after virtual, i.e. AP300 can from different MAC
At least two wireless clients of location set up communication connection.However, in actual physical layer, the transmission of message passes through with receiving
Actual physical network device is carried out, i.e., at least two wireless clients of communication connection are set up with AP300 really by virtual
Go out the attended operation that the physical network device of at least two wireless client is carried out.Use same physical network device
The wireless power size of virtual network device transmitting is the same.(essid1 that i.e. same AP300 is fictionalized and essid2 is sent out
Penetrate that watt level is identical, the essid1 that vehicle-mounted WDS100 is received is equal with essid2 signal intensity size).
Refer to Fig. 3, Fig. 3 be the netsurfing switching method that present pre-ferred embodiments are provided step flow chart it
One.The netsurfing switching method is applied to the vehicle-mounted WDS100 of multiple AP300 communication connections with being arranged at by road.Under
Idiographic flow in face of netsurfing switching method is described in detail.
Step S120, the beacon frame that the neighbouring multiple AP300 of vehicle-mounted WDS100 real-time receptions are sent will meet matching and require
Multiple AP300 be added to candidate's AP contingency tables, and multiple AP300 in candidate's AP contingency tables are ranked up.
In the present embodiment, in vehicle traveling process, when vehicle-mounted WDS100 carries out normal work, go back around real-time reception
The beacon frame that neighbouring AP300 is sent, will meet in AP300 addition candidate's AP contingency tables that matching is required, and reported according to receiving
Signal intensity when literary is ranked up to multiple AP300 in candidate's AP contingency tables.The vehicle-mounted WDS100 can be according to fixed in advance
The computation rule of justice is calculated the signal intensity of multiple AP300 in candidate's AP contingency tables, obtains being averaged for each AP300
Signal intensity, is ranked up according to AP300 average signal strength.
In the present embodiment, the beacon frame refers to Beacon frames, and Beacon frames are that AP300 is sent according to some cycles
Type be Beacon management frame, be the presence for informing the device A P300 around AP300 and AP300 ability.
Step S130, it is vehicle-mounted when notice is given the correct time in vehicle-mounted WDS100 140 pairs of roaming detection progress of roaming timer
WDS100 is detected to the signal intensity of the current associated AP of auxiliary link 300, and is entered when detecting and meeting roaming handover condition
Row AP300 switches.
Refer to Fig. 4, Fig. 4 be the netsurfing switching method that present pre-ferred embodiments are provided step flow chart it
Two.Methods described also includes:Step S110, vehicle-mounted WDS100 carry out initial configuration.
It refer to the flow signal of step S110 sub-step in Fig. 5, Fig. 4 that Fig. 5 provides for present pre-ferred embodiments
Figure, the step S110 can include sub-step S111, sub-step S112 and sub-step S113.
Sub-step S111, vehicle-mounted WDS100 carry out virtualization configuration in advance, construct at least two virtual clients.
In the present embodiment, at least two same real physical network devices of correspondence that vehicle-mounted WDS100 is fictionalized.
Sub-step S112, vehicle-mounted WDS100 configure candidate's AP contingency tables, set up initial connection.
In the present embodiment, start after vehicle-mounted WDS100, vehicle-mounted WDS100 searches for wireless service LAN, receive neighbouring
The beacon frame that multiple AP300 are sent, is that each virtual client sets up corresponding candidate AP contingency tables, the vehicle-mounted WDS100 will
The multiple AP300 for meeting matching requirement are added in the corresponding candidate AP contingency tables of virtual client.The vehicle-mounted WDS100 roots
Multiple AP300 signal intensity is detected according to the beacon frame of reception, according to the size of signal intensity in the candidate AP contingency tables
Multiple AP300 be ranked up, it is and the AP300 of virtual client and sequence first is (that is, in described candidate AP contingency tables average
Signal intensity most strong AP300) set up initial connection.The vehicle-mounted WDS100 starts roaming timer 140, so that the roaming
The interval of the timer 140 default time of giving the correct time gives the correct time notice to roaming detection progress.
In the present embodiment, virtual client correspondence one wireless service LAN of connection, for example, client1 pairs
Essid1, client2 correspondence connections essid2 etc. should be connected.It is described to meet the wireless service local that matching requires to refer to matching
Net is corresponding with the virtual client.For example, essid1 correspondences China Telecom sub-network 1, essid2 correspondences China electricity
Believe sub-network 2, then vehicle-mounted WDS100 associates the corresponding AP300 of essid1 for the meeting matching candidate AP for being added to client1
Table, the corresponding AP300 of essid2 for meeting matching is added to client2 candidate's AP contingency tables.
In the present embodiment, the default time of giving the correct time that roaming timer 140 interval is given the correct time can enter according to the actual requirements
Row setting.For example, the distance between two AP300 are 2 kilometers, running car speed is 120-150 kilometers/hour, for reality
The effect of existing fast roaming, can roam timer 140 for 100 milliseconds, that is, at interval of 100 by the default set of time that gives the correct time
Millisecond carries out once roaming detection and given the correct time notice.
In the present embodiment, when setting up initial connection, at least two virtual clients may be closed with same AP300
Connection.
Sub-step S113, vehicle-mounted WDS100 configure main and auxiliary link.
In the present embodiment, vehicle-mounted WDS100 binds (bonding) technologies by least two of virtual construct by two layers
Wireless client is bundled in same binding interface, and (Radio Link is used as data communication using main and auxiliary link mode
Use, another link is standby as roaming switch).
In the present embodiment, vehicle-mounted WDS100, can be according to link definition rule settings primary link after initial connection is set up
And auxiliary link.Wherein, primary link is used to be responsible for network service and data transfer (such as, upload, downloading data information etc.), auxiliary chain
Road is used to be responsible for roaming switch.Also, auxiliary link can't cause shadow when carrying out roaming switch to the data communication of primary link
Ring.Wherein, link refers to that virtual client and AP300 wireless service LAN are successfully established connection.
In the present embodiment, the link definition rule includes rule of firsting impressions are strongest, you can be associated to using first with AP300
The wireless client of work(is as primary link, and the wireless client being then successfully associated is used as auxiliary link.In addition, it is vehicle-mounted
WDS100 can also specify primary link and auxiliary link according to the actual requirements.
Description below according to above-mentioned steps S110 describes in detail to the step S130 in Fig. 3.
In the present embodiment, roaming switch only occurs in auxiliary link, and will not be to master during auxiliary link progress roaming switch
The data communication of link is impacted.For example, auxiliary link is from AP1Roaming switch is AP2When, primary link still with AP1Carry out communication link
Connect, AP can be received1The data message that issues simultaneously carries out data message passback.
In the present embodiment, the step S130 is the operation carried out for auxiliary link.Before step S130 is performed, institute
Stating vehicle-mounted WDS100 can judge main and auxiliary link, supplemented by the judgement during link, perform step S130.
It refer to the flow signal of step S130 sub-step in Fig. 6, Fig. 3 that Fig. 6 provides for present pre-ferred embodiments
Figure, the step S130 can include sub-step S131, sub-step S132 and sub-step S133.
Sub-step S131, the vehicle-mounted WDS100 detect whether the signal intensity of the auxiliary current associated AP 300 of link is less than one
Roaming switch thresholding.
If not, the operation of roaming switch will not be carried out.
In this way, i.e., when the signal intensity of the current associated AP 300 of auxiliary link is less than the roaming switch thresholding, sub-step is performed
S132。
Sequence first in sub-step S132, candidate's AP contingency tables of the vehicle-mounted WDS100 detections auxiliary link
Whether the difference of the signal intensity of AP300 signal intensity and current associated AP 300 is more than a preset difference value.
If not, the operation of roaming switch will not be carried out.
In this way, i.e., in candidate's AP contingency tables of described auxiliary link sequence first AP300 signal intensity with currently associating
The difference of AP300 signal intensity performs sub-step S133 more than a preset difference value.
In the present embodiment, the vehicle-mounted WDS100 by candidate's AP contingency tables sequence first AP300 signal intensity
The signal intensity for subtracting current associated AP 300 obtains a signal strength difference, and the signal strength difference and preset difference value are entered
Row is compared, if the signal strength difference is more than the preset difference value, performs sub-step S133.
In the present embodiment, the preset difference value can be set according to the actual requirements, and the preset difference value is set to just
Value.For example, the preset difference value is set into 5, it is assumed that the AP300 of sequence first signal intensity is 36 in candidate's AP contingency tables,
The signal intensity of current associated AP 300 is 30, then the AP300 and the signal strength difference of current associated AP 300 of sequence first are
6, more than the preset difference value, it can enter to perform sub-step S133.
Sub-step S133, the vehicle-mounted WDS100, which disconnect the virtual client of auxiliary link with the AP300 currently associated, to be connected
Connect, and the virtual client is connected with the AP300 foundation of sequence first in the candidate AP contingency tables, to complete AP300
The operation of switching.
In the present embodiment, only the situation of two Rule of judgment of above-mentioned sub-step S131 and sub-step S132 is being met
Under, it can just carry out the operation of roaming switch.Thus, it is ensured that the communication quality after AP300 roaming switchs.
In the present embodiment, above-mentioned roaming switch thresholding (RSSI) is equal to the difference that signal intensity subtracts bottom of making an uproar, and bottom of making an uproar is
React the index of signal annoyance level in wireless environment.Because signal intensity and bottom of making an uproar are negative value, made an uproar bottom in signal intensity ratio
When big, just can guarantee that and receive more clearly signal of communication, thus, the roaming switch thresholding be on the occasion of.
Referring once again to Fig. 4, methods described also includes:Step S140.
Step S140, vehicle-mounted WDS100 carry out main and auxiliary link switching operation.
It refer to the flow signal of step S140 sub-step in Fig. 7, Fig. 4 that Fig. 7 provides for present pre-ferred embodiments
Figure, the step S140 can include sub-step S141 and sub-step S142.
Sub-step S141, vehicle-mounted WDS100 are examined according to preset time to the signal intensity of current primary link and auxiliary link
Survey.
In the present embodiment, the preset time can be set according to the actual requirements.
Sub-step S142, when signal intensity of the signal intensity less than current auxiliary link for detecting current primary link, and
When the signal strength difference of current auxiliary link and current primary link is not less than a preset strength difference, vehicle-mounted WDS100 will currently be led
Link supplemented by link switching, current auxiliary link switching is primary link, is operated with completing main and auxiliary link switching.
In the present embodiment, preset strength difference can be set according to the actual requirements.For example, the preset strength is poor
Value is set to 10, it is assumed that the signal intensity of current primary link is 30, and the signal intensity of current auxiliary link is 50, then current auxiliary link with
The signal strength difference of current primary link is 20, more than the preset strength difference 10, can carry out the operation of main and auxiliary link switching.
Second embodiment
It refer to Fig. 8, the functional block diagram for the netsurfing switching device 200 that Fig. 8 provides for invention preferred embodiment.
The netsurfing switching device 200 is applied to the vehicle-mounted WDS100 of multiple AP300 communication connections with being arranged at by road, institute
Stating device includes:Receive order module 220 and roaming detection module 230.
The reception order module 220, the beacon frame that the multiple AP300s neighbouring for real-time reception are sent will satisfaction
Candidate's AP contingency tables are added to desired multiple AP300, and multiple AP300 in candidate's AP contingency tables are ranked up.
In the present embodiment, the order module 220 that receives is used to perform the step S120 in Fig. 3, is received on described
The specific descriptions of order module 220 are referred to step S120 description.
The roaming detection module 230, gives the correct time for 140 pairs of roaming detections of roaming timer as vehicle-mounted WDS100
During notice, the signal intensity of associated AP 300 current to auxiliary link is detected, and is entered when detecting and meeting roaming handover condition
Row AP300 switches.
In the present embodiment, the roaming detection module 230 is used to perform the step S130 in Fig. 3, on the roaming
The specific descriptions of detection module 230 are referred to step S130 description.
Referring once again to Fig. 8, described device also includes:Initial configuration module 210 and main and auxiliary link switching module 240.
The initial configuration module 210, for carrying out initial configuration.
In the present embodiment, the initial configuration module 210 is used to perform the step S110 in Fig. 4, on described first
The specific descriptions of beginningization configuration module 210 are referred to step S110 description.
The main and auxiliary link switching module 240, for carrying out main and auxiliary link switching operation.
In the present embodiment, the main and auxiliary link switching module 240 is used to perform the step S140 in Fig. 4, on described
The specific descriptions of main and auxiliary link switching module 240 are referred to step S140 description.
In summary, the present invention provides a kind of netsurfing switching method and device, and the netsurfing switching method should
For the vehicle-mounted WDS of multiple AP communication connections with being arranged at by road, methods described includes:Vehicle-mounted WDS real-time receptions are neighbouring
The beacon frames that send of multiple AP, will meet and match desired multiple AP and be added to candidate's AP contingency tables, and candidate AP is associated
Multiple AP in table are ranked up.When vehicle-mounted WDS roaming timer gives the correct time notice to roaming detection progress, vehicle-mounted WDS pairs
The signal intensity of the auxiliary current associated AP of link is detected, and carries out AP switchings when detecting and meeting roaming handover condition.
Hereby it is achieved that AP roaming be switched fast, and ensure switching after communication quality, while realize WDS upload
The zero propagation of business datum message, zero packet loss.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.