CN107666696A - The switching method and terminal of a kind of wireless network - Google Patents
The switching method and terminal of a kind of wireless network Download PDFInfo
- Publication number
- CN107666696A CN107666696A CN201610604545.2A CN201610604545A CN107666696A CN 107666696 A CN107666696 A CN 107666696A CN 201610604545 A CN201610604545 A CN 201610604545A CN 107666696 A CN107666696 A CN 107666696A
- Authority
- CN
- China
- Prior art keywords
- terminal
- wireless network
- address
- connection
- business datum
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/14—Reselecting a network or an air interface
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/16—Performing reselection for specific purposes
- H04W36/18—Performing reselection for specific purposes for allowing seamless reselection, e.g. soft reselection
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides a kind of switching method of wireless network and terminal, wherein, the switching method of wireless network includes:When detect that terminal established using the first physical address and the first wireless network first is connected up to switching condition, it is attached using the second physical address and the second wireless network of the terminal;After the terminal and the second wireless network successful connection, the first connection between the terminal and first wireless network is disconnected.Scheme provided by the invention passes through after terminal and second wireless network establish connection, the connection with the first wireless network is disconnected again, when realizing terminal and being switched between AP access points, keep network connection not interrupt, complete the purpose of seamless switching, improve Consumer's Experience.
Description
Technical field
The present invention relates to communication technical field, the switching method and terminal of a kind of wireless network are particularly related to.
Background technology
Increasingly extensive today is applied in Wi-Fi (wireless network), many business of terminal are complete by Wi-Fi connection
Into, and unconventional cellular (honeycomb) network.Due to the mobility of increasing terminal, and AP (WAP)
The limitation of coverage, switchings of the terminal Wi-Fi between different AP, reform into the situation that user needs to face often.
And switchings of traditional terminal Wi-Fi between AP, be it is current be connected up to switching condition when, while surrounding is present
During changeable new AP2, the connection with current AP1 is first disconnected, then initiates the connection request to AP2, completes authentication, IP address obtains
The a series of actions such as take, re-establish network connection;If endlessly preserving the AP2 of authentication information in current environment, will directly break
Open AP1, the Network for causing user interrupt (Wi-Fi terminals can calculate the quality of current Wifi connections, scan and record around
AP lists;When being currently connected up to threshold value, can be disconnected from current network, and to having stored authentication information, signal strips
The preferable AP of part initiates connection, is authenticated, IP address application distribution, so as to complete new establishment of connection;Or pass through user
AP is manually selected, inputs authentication information, authentication, IP address application distribution etc. is completed, establishes new connection).
The network connection " space " of certain time length can be produced among this, this can bring certain influence (to bring on user's use
Network interruption on certain time).Such as the Wifi calling (wireless calling) increasingly risen at present, in Wifi calling
In communication process, if running into Wi-Fi is switched to new AP2 from the AP1 currently connected, the connection with current AP1 is first disconnected, then
Initiate the connection to AP2.Among this when postpone a meeting or conference dropped calls occur.
In addition to Wifi calling converse, other applications high to delay requirement, such as game, instant messaging, Wi-Fi exist
When being switched between AP, it can all cause the of short duration disconnection of network, Consumer's Experience is poor.
For such case, prior art provides a kind of scheme, the public affairs applied to public arenas such as airport, markets
Focus deployment altogether:When user is moving in the range of setting, can also there is the switching between AP, or referred to as Wi-Fi overflows
Trip;It is such a to switch for a user, as not perceiving, in terms of user level, and the seamless switching on definite meaning.
But such a scene needs special AP deployment.It is actual although user such as in different floors, has accessed different physics AP
On, there is unified AC (wireless access control) server on these AP upper strata, DHCP (DynamicHost setting agreement) server,
And authentication server;That is the AP of these physically " independences ", in fact and dependent.
For the AP switchings under this scene, it is necessary to which special technology is disposed, it is not suitable between common independent AP.
From the foregoing, it will be observed that when Wi-Fi terminals switch between AP access points in the prior art the problem of network connection interruption
It is not well solved.
The content of the invention
It is an object of the invention to provide a kind of switching method of wireless network and terminal, solves Wi-Fi in the prior art
When terminal switches between AP access points the problem of network connection interruption.
In order to solve the above-mentioned technical problem, the embodiment of the present invention provides a kind of switching method of wireless network, including:
Detecting that terminal established using the first physical address and the first wireless network first is connected up to switching condition
When, it is attached using the second physical address and the second wireless network of the terminal;
After the terminal and the second wireless network successful connection, the terminal and first wireless network are disconnected
Between first connection.
Optionally, it is described detect terminal using the first physical address with the first wireless network is established first is connected and reaches
During to switching condition, the step of being attached using the second physical address of the terminal with second wireless network, is included:
Obtain the current quality of connection of first connection and currently available radio network information;
When the current quality of connection is less than threshold value, according to the available radio network information, the terminal is utilized
The second physical address be attached with second wireless network.
Optionally, it is described according to the available radio network information, utilize the second physical address of the terminal and
The step of two wireless networks are attached includes:
Judge in the available radio network information with the presence or absence of the radio network information of existing authentication information;
It is attached according to judged result using the second physical address of the terminal with corresponding second wireless network.
Optionally, it is described according to second physical address of the judged result using the terminal and corresponding second wireless network
The step of being attached includes:
When the radio network information of existing authentication information in the available radio network information be present, the end is utilized
Second physical address at end initiates to connect to second wireless network corresponding with the radio network information;Or
When the radio network information of existing authentication information being not present in the available radio network information, user is obtained
Link order, sent out according to user's link order using the second physical address of the terminal to corresponding second wireless network
Play connection.
Optionally, it is described according to second physical address of the judged result using the terminal and corresponding second wireless network
The step of being attached also includes:
If the terminal and the second wireless network connection failure, the judgement available wireless network is returned
The step of in information with the presence or absence of the radio network information of existing authentication information.
Optionally, when the radio network information of existing authentication information being not present in the available radio network information,
The switching method also includes:
When abandoning instruction of user is being got, first directly disconnected between the terminal and first wireless network connects
Connect.
Optionally, it is described after the terminal and the second wireless network successful connection, disconnect the terminal with it is described
First between first wireless network includes the step of connection:
After the terminal and the second wireless network successful connection, by the current network traffic of the terminal migrate to
In connection with the second wireless network;
After the completion of Data Migration, the first connection between the terminal and first wireless network is disconnected.
Optionally, the current network traffic by the terminal is migrated to the connection with the second wireless network
Step includes:
Business datum in both the buffers and nonevent business datum are migrated wireless to the terminal and described second
In the connection of network.
Optionally, company business datum in both the buffers migrated to the terminal and the second wireless network
The step of connecting includes:
Whether the source IP address for judging business datum is IP address that the first wireless network distributes to this terminal, or is the
The gateway address of the access point of one wireless network;And
Whether the purpose IP address of business datum is IP address that the first wireless network distributes to this terminal, or is first
The gateway address of the access point of wireless network;
The migration operation according to corresponding to performing judged result.
Optionally, it is described to include according to corresponding to performing judged result the step of migration operation:
If the source IP address of business datum is the IP address that the first wireless network distributes to the terminal, by the business
The source IP address of data is changed to the IP address that second wireless network distributes to the terminal, by the source physics of the business datum
Address is changed to the second physical address;And/or
If the source IP address of business datum is the gateway address of the access point of the first wireless network, by the business datum
Source IP address be changed to second wireless network access point gateway address, the source physical address of the business datum is changed
For the second physical address;And/or
If the purpose IP address of business datum is the IP address that the first wireless network distributes to the terminal, by the industry
The purpose IP address of business data is changed to the IP address that second wireless network distributes to the terminal, by the mesh of the business datum
Physical address be changed to the second physical address;And/or
If the purpose IP address of business datum is the gateway address of the access point of the first wireless network, by the business number
According to purpose IP address be changed to second wireless network access point gateway address, by the purpose of the business datum physically
Location is changed to the second physical address;
Amended business datum is migrated;
Otherwise, directly business datum is migrated.
Present invention also offers a kind of terminal, including:
Link block, for detect terminal using the first physical address with the first wireless network is established first is connected
When reaching switching condition, it is attached using the second physical address and the second wireless network of the terminal;
First disconnects module, for after the terminal and the second wireless network successful connection, disconnecting the terminal
First between first wireless network is connected.
The above-mentioned technical proposal of the present invention has the beneficial effect that:
In such scheme, the switching method of the wireless network by after terminal and second wireless network establish connection,
The connection with the first wireless network is disconnected again, when realizing terminal and being switched between AP access points, is kept in network connection not
Purpose that is disconnected, completing seamless switching, improves Consumer's Experience.
Brief description of the drawings
Fig. 1 is the switching method schematic flow sheet of the wireless network of the embodiment of the present invention one;
Fig. 2 is the switching method concrete application schematic flow sheet of the wireless network of the embodiment of the present invention one;
Fig. 3 is that the business datum of the embodiment of the present invention one migrates schematic flow sheet;
Fig. 4 is the terminal structure schematic diagram of the embodiment of the present invention two.
Embodiment
To make the technical problem to be solved in the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing and tool
Body embodiment is described in detail.
Network connection interruption asks when the present invention switches over for Wi-Fi terminals in existing technology between AP access points
Topic, there is provided a variety of solutions, it is specific as follows:
Embodiment one
As shown in figure 1, the switching method for the wireless network that the embodiment of the present invention one provides includes:
Step 11:Cut detecting that terminal is connected up to using the first physical address with the first wireless network is established first
When changing condition, it is attached using the second physical address and the second wireless network of the terminal;
Step 12:After the terminal and the second wireless network successful connection, the terminal and described first are disconnected
The first connection between wireless network.
The switching method for the wireless network that the embodiment of the present invention one provides in terminal and second wireless network by building
After vertical connection, then the connection with the first wireless network is disconnected, when realizing terminal and being switched between AP access points, keep network
The purpose of seamless switching is not interrupted, completed in connection, improves Consumer's Experience.
Wherein, it is described to detect that terminal is connected up to using the first physical address and the first wireless network is established first
During switching condition, the step of being attached using the second physical address of the terminal with second wireless network, is included:Obtain institute
State the current quality of connection of the first connection and currently available radio network information;It is less than threshold value in the current quality of connection
When, according to the available radio network information, connected using the second physical address and the second wireless network of the terminal
Connect.
It is, the first connection it is of poor quality when, prepare to be attached with other preferable wireless networks of quality.
Specifically, it is described according to the available radio network information, utilize the second physical address of the terminal and
The step of two wireless networks are attached includes:Judge in the available radio network information with the presence or absence of existing authentication information
Radio network information;Carried out according to judged result using the second physical address of the terminal with corresponding second wireless network
Connection.
More specifically, it is described according to second physical address of the judged result using the terminal and corresponding second wireless network
The step of network is attached includes:The radio network information of existing authentication information in the available radio network information be present
When, initiate to connect to second wireless network corresponding with the radio network information using the second physical address of the terminal;
Or when the radio network information of existing authentication information being not present in the available radio network information, obtain user and connect
Instruction is connect, is initiated according to user's link order using the second physical address of the terminal to corresponding second wireless network
Connection.
Situation in view of establishing new connection failure, it is described that the end is utilized according to judged result in the embodiment of the present invention
The step of second physical address at end is attached with corresponding second wireless network also includes:If the terminal and described second
Wireless network connection failure, then return in the judgement available radio network information with the presence or absence of existing authentication information
The step of radio network information.
For more hommization, the wireless network for having authentication information is not present in the available radio network information
During information, the switching method also includes:When abandoning instruction of user is being got, is directly disconnecting the terminal and described first
The first connection between wireless network.
It is described after the terminal and the second wireless network successful connection in view of practical situations, disconnect institute
The step of stating the between terminal and first wireless network first connection includes:Connect in the terminal and the second wireless network
After being connected into work(, the current network traffic of the terminal is migrated to the connection with the second wireless network;In Data Migration
After the completion of, disconnect the first connection between the terminal and first wireless network.
Due to being related to three class data, the first kind is the business datum being sent completely, and the second class is treated in buffer area
The business datum of transmission, the 3rd class are nonevent data;In switching, primary sources have been completed, without extra process,
Only the second class and the 3rd class need to migrate, therefore in the embodiment of the present invention, the current network traffic by the terminal migrates
Extremely include with the step in the connection of the second wireless network:By business datum in both the buffers and nonevent business number
According to migrating to the connection of the terminal and the second wireless network.
For secondary sources, it is described business datum in both the buffers is migrated it is wireless to the terminal and described second
Step in the connection of network includes:Whether the source IP address for judging business datum is that the first wireless network distributes to this terminal
IP address, or the gateway address of the access point for the first wireless network;And whether the purpose IP address of business datum is
One wireless network distributes to the IP address of this terminal, or the gateway address of the access point for the first wireless network;According to judgement
As a result migration operation corresponding to performing.
Described herein as, whether the source IP address for judging business datum is IP that the first wireless network distributes to this terminal
Location, or the gateway address of the access point for the first wireless network;And whether the purpose IP address of business datum is the first nothing
Gauze network distributes to the IP address of this terminal, or judges small point for four of gateway address of the access point of the first wireless network
The specific execution sequence of branch is unlimited.
Specifically, described include according to corresponding to performing judged result the step of migration operation:If the source IP of business datum
Address is the IP address that the first wireless network distributes to the terminal, then the source IP address of the business datum is changed into second
Wireless network distributes to the IP address of the terminal, and the source physical address of the business datum is changed into the second physical address;
And/or
If the source IP address of business datum is the gateway address of the access point of the first wireless network, by the business datum
Source IP address be changed to second wireless network access point gateway address, the source physical address of the business datum is changed
For the second physical address;And/or
If the purpose IP address of business datum is the IP address that the first wireless network distributes to the terminal, by the industry
The purpose IP address of business data is changed to the IP address that second wireless network distributes to the terminal, by the mesh of the business datum
Physical address be changed to the second physical address;And/or
If the purpose IP address of business datum is the gateway address of the access point of the first wireless network, by the business number
According to purpose IP address be changed to second wireless network access point gateway address, by the purpose of the business datum physically
Location is changed to the second physical address;
Amended business datum is migrated;Otherwise, directly business datum is migrated.
From the foregoing, it will be observed that scheme provided in an embodiment of the present invention is solved as user using terminal Wi-Fi, cut from AP1 to AP2
When changing, the problem of of short duration disconnection can occur for network connection.In this programme, according to corresponding condition, terminal Wi-Fi first keep with
Original AP1 connection is continuous, and after new connection is established, all-network related service is moved in new connection, then disconnect with it is former
There is AP1 connection so that switchings of the terminal Wi-Fi between AP seamless can be completed, and ensure Consumer's Experience.
The switching method of the wireless network provided below the embodiment of the present invention one is further described.
In short, the embodiments of the invention provide a kind of method of Wi-Fi switchings, accessed for Wi-Fi terminals in AP
When being switched between point, keep network connection not interrupt, complete seamless switching, improve Consumer's Experience.
First, the above-mentioned physical address (MAC Address, for defining the position of the network equipment) being related to is introduced, MAC Address is
Determined by network interface card.
Although generally each network interface card only has a physical MAC address, can be completed on upper strata to virtual mac address
Construction (being realized using existing method) so that a physical network card, two MAC Address are externally presented.Two MAC
Regardless of primary and secondary between location, when being mainly used in switching between AP, in the case where original connection does not turn off, the MAC of free time is used
Address, initiate the connection to new AP.After the completion of connection, network switch on original AP is all moved in new connection
Afterwards, then by original connection disconnect, discharge idle MAC Address;So as to reach the purpose of " first connect and disconnect afterwards ", ensure that network connects
Connect, transmit and do not interrupt.Kept simultaneously in the of short duration duration of connection in two MAC Address, because an only physical network card, therefore
Processing of the physical network card data transfer two MAC Address, using the mode that is including but not limited to such as time-multiplexed.
As shown in Fig. 2 the switching method of wireless network specifically includes:
Step 21:Terminal uses MAC address (MAC1), passes through Wi-Fi connection to AP1
Terminal is by Wi-Fi connection to AP1, and the connection can be that user initiates manually or terminal is according to AP
Record list automatically initiates.
Step 22:Terminal detects current quality of connection, and detection records the available AP lists in current environment
Terminal keeps the monitoring of current Wi-Fi connection situation, and detection and the record of surrounding AP information.
Step 23:Judge whether current connection reaches switching condition;If so, step 24 is gone to, if it is not, going to step 22.
Step 24:Judge whether there is the AP2 of existing authentication information in current AP lists
Judge in current AP lists, if there is the AP of terminal saved authentication information, if so, step 25 is gone to, if
It is no, go to step 29;
Step 25:Terminal uses space MAC Address (MAC2), initiates to connect to AP2
It is preferred that the AP2 having in authentication information initiates access.
Step 26:Judge whether terminal is completed by idle MAC Address and AP2 connection;If so, into step 27, if
It is no, into step 24;
Judge whether terminal completes the connection with AP2.If successful connection, going to step 27, if it is not, going to step 24.
Step 27:Terminal moves to current all-network related service in new connection.
Step 28:Terminal disconnects the AP1 by MAC1 connections, into step 213;
It is, disconnect the connection with AP1.
Step 29:User is prompted, selects new AP to access
Ejection prompting, prompts user to select new AP focuses.
Step 210:Judge whether user confirms to be selected, if so, into step 211, if it is not, into step 28;
Judge that user selects.If user confirms, 211 are gone to, if user negates, goes to step 28.
Step 211:Selected according to user, initiate to connect to AP3
Operated according to user, using the MAC Address of free time, initiate the access to AP3.
Step 212:Judge whether terminal is established with AP3 to connect, if so, step 27 is gone to, if it is not, going to step 24.
Step 213:MAC1 is in idle condition.
The state that terminal reverts to a MAC free time, a MAC works.
Corresponding, the embodiment of the present invention additionally provides a kind of device of terminal Wi-Fi connection, including:
Control unit, for issuing the instructions such as connection, disconnection, switching;
Network connection unit, for when the conditions are met, reception control unit instruction, being connected to specified AP networks;
Switching units, for when the conditions are met, reception control unit instruction, being disconnected from the AP currently connected;
Measuring unit, for measuring the quality of current AP connections, the signal intensity including but not limited to currently connected, receive
Signal intensity instruction RSSI, signal to noise ratio etc.;
Detection unit, for detecting and recording Current ambient AP information.The detection is completed by AP beacon beacon frames,
Obtain AP title, channel, MAC Address, signal intensity, band support, supporting rate etc. information;
Memory cell, the surrounding AP detected for storing detection unit information and corresponding authentication information (if
Have), and these AP information are arranged according to certain priority (integrated value of signal quality, signal to noise ratio and signal intensity)
Row;
Data processing unit, when starting switching for processing terminal, cache in mobile phone buffer buffer, destination address
For AP1 data.
Switch unit, for the instruction of reception control unit, data processing unit processing related data is called, terminal is worked as
Preceding all network related services based on AP1, are switched in the new connection having built up from AP1 connections.
From the foregoing, it will be observed that before switching occurs, terminal has two connections.One is original AP1 connections, completes terminal
All Networks carried out by the connection, such as wifi calling voice calls, instant messaging etc..In switch unit
When receiving the switching command of control unit, now data are divided into three classes.One kind is to be sent to internet via AP1
Internet destination addresses, to have completed data;Second class is has completed in the buffer areas of terminal, partial data, just
Wait from terminal transmission to AP1, then the destination address on internet is sent to by AP1;3rd class is the number having not occurred
According to.
In switching, primary sources have been completed, without extra process (without migration);3rd class data are not sent out also
It is raw, after to be switched, communication (Direct Transfer) directly can be completed by the WAN-side address of new WLAN IP address and AP2, will not
Operational sustainability is had an impact;Secondary sources, in terminal buffers area, now the source IP address of data has extended this as
AP1 distributes to the WLAN address ips 1 of terminal, and these data are sent by AP2 again after handover.This can cause switching
Afterwards, the data-source IP address in caching turns into invalid address or wrong address.Therefore it is (right to need to handle this kind of data
Step 27) is answered, it is specific as follows:
As shown in figure 3, including:
Step 31:Lock cache area pending data
When switching beginning, lock cache area pending data region.
Step 32:Buffer area data whether to be handled are judged, if so, into step 33, if it is not, terminating flow;
Judge whether the data of processing also in need.If so, going to step 33, if nothing, terminate.
Step 33:Take out the first data
Take out a pending data.
Step 34:Judge whether source IP is original IP address for connecting and obtaining, if so, into step 35, if it is not, entering step
Rapid 36;
Whether the source IP address for judging the data is original IP address for connecting and distributing to terminal.If so, 35 are gone to step,
If it is not, the data go to step 36 without processing.
Step 35:Source IP is replaced by the IP of new connection acquisition, source MAC field is replaced with into MAC2;
Will the data-source IP address be changed to the new IP address that AP2 distributes to terminal, by the data source MAC field
It is changed to MAC2.
Step 36:Judge source IP whether the gateway address for being original AP1.If so, 37 are gone to step, if it is not, going to step 38.
Step 37:Source IP is replaced by new AP2 gateway address, source MAC field is replaced with to AP2 MAC Address;
The source IP address of data is changed to new AP2 gateway address, the source MAC of data is changed to new AP2
MAC Address.
Step 38:Judge whether data purpose IP address is original IP address for connecting and obtaining;If so, 39 are gone to step, if
It is no, go to step 310;
Judge whether data purpose IP address is original IP address for connecting and distributing to terminal;If so, 39 are gone to step, if
It is no, go to step 310.
Step 39:Data purpose IP is changed to the IP of new connection acquisition, purpose MAC is replaced with into MAC2;
Data purpose IP is changed to newly to connect the IP address for distributing to terminal, target MAC (Media Access Control) address field is changed to
New MAC2.
Step 310:Judge purpose IP address whether the gateway address for being original AP1;If so, 311 are gone to step, if it is not, turning
Step 312.
Step 311:Data purpose IP is changed to new AP2 gateway address, target MAC (Media Access Control) address field is changed to newly
AP2 MAC Address.
Step 312:Data are sent from buffer area, return to step 32.
It is described herein as, be related to the four times judgements in step 34,36,38 and 310 in above-mentioned flow, its be sequentially each not by
Limitation, be only to give one of which order in the embodiment of the present invention.
In summary, scheme provided in an embodiment of the present invention is to maintain on the basis of one physical radio network interface card of terminal, is led to
Virtual mac address is crossed, completes seamless switching of the terminal between AP.If terminal is equipped with two physical radio network interface cards in itself, can save
The slightly process of virtual mac address, the processing after directly applying, completes the seamless switching between AP.
Embodiment two
As shown in figure 4, the terminal that the embodiment of the present invention two provides, including:
Link block 41, for detecting terminal using the first physical address and the first company of the first wireless network foundation
When accessing switching condition, it is attached using the second physical address and the second wireless network of the terminal;
First disconnects module 42, for after the terminal and the second wireless network successful connection, disconnecting the end
The first connection between end and first wireless network.
The terminal that the embodiment of the present invention two provides is by after terminal and second wireless network establish connection, then disconnects
With the connection of the first wireless network, when realizing terminal and being switched between AP access points, network connection is kept not interrupt, complete
The purpose of seamless switching, improves Consumer's Experience.
Wherein, the link block includes:Acquisition submodule, for obtain it is described first connection current quality of connection and
Currently available radio network information;Connect submodule, for when the current quality of connection is less than threshold value, according to it is described can
Radio network information, it is attached using the second physical address and the second wireless network of the terminal.
Specifically, the connection submodule includes:Judging unit, it is in the available radio network information for judging
The no radio network information that existing authentication information be present;Connection unit, for utilizing the second of the terminal according to judged result
Physical address is attached with corresponding second wireless network.
More specifically, the connection unit includes:First processing subelement, in the available radio network information
It is middle existing authentication information be present radio network information when, using the terminal the second physical address to the wireless network
Second wireless network corresponding to information initiates connection;Or second processing subelement, for believing in the available wireless network
When the radio network information of existing authentication information being not present in breath, user's link order is obtained, according to user's link order
Initiate to connect to corresponding second wireless network using the second physical address of the terminal.
Situation in view of establishing new connection failure, in the embodiment of the present invention, the connection unit also includes:It is single to return to son
Member, if for the terminal and the second wireless network connection failure, return to the judging unit.
For more hommization, the wireless network for having authentication information is not present in the available radio network information
During information, the terminal also includes:Second disconnects module, for getting when abandoning instruction of user, directly described in disconnection
The first connection between terminal and first wireless network.
In view of practical situations, the first disconnection module includes:Submodule is migrated, in the terminal and institute
After stating second wireless network successful connection, the current network traffic of the terminal is migrated to the company with the second wireless network
Connect;Submodule is disconnected, is connected for after the completion of Data Migration, disconnecting first between the terminal and first wireless network
Connect.
Due to being related to three class data, the first kind is the business datum being sent completely, and the second class is treated in buffer area
The business datum of transmission, the 3rd class are nonevent data;In switching, primary sources have been completed, without extra process,
Only the second class and the 3rd class need to migrate, therefore in the embodiment of the present invention, the migration submodule includes:Migration units, it is used for
Business datum in both the buffers and nonevent business datum are migrated to the company to the terminal and the second wireless network
Connect.
For secondary sources, the migration units include:Judgment sub-unit, for judging the source IP address of business datum
Whether it is IP address that the first wireless network distributes to this terminal, or the gateway address of the access point for the first wireless network;
And whether the purpose IP address of business datum is IP address that the first wireless network distributes to this terminal, or it is the first nothing
The gateway address of the access point of gauze network;Subelement is performed, for migration operation corresponding to being performed according to judged result.
Specifically, the execution subelement is specifically used for:If the source IP address of business datum distributes for the first wireless network
To the IP address of the terminal, then the source IP address of the business datum is changed to second wireless network and distributes to the terminal
IP address, the source physical address of the business datum is changed to the second physical address;And/or
If the source IP address of business datum is the gateway address of the access point of the first wireless network, by the business datum
Source IP address be changed to second wireless network access point gateway address, the source physical address of the business datum is changed
For the second physical address;And/or
If the purpose IP address of business datum is the IP address that the first wireless network distributes to the terminal, by the industry
The purpose IP address of business data is changed to the IP address that second wireless network distributes to the terminal, by the mesh of the business datum
Physical address be changed to the second physical address;And/or
If the purpose IP address of business datum is the gateway address of the access point of the first wireless network, by the business number
According to purpose IP address be changed to second wireless network access point gateway address, by the purpose of the business datum physically
Location is changed to the second physical address;
Amended business datum is migrated;Otherwise, directly business datum is migrated.
From the foregoing, it will be observed that scheme provided in an embodiment of the present invention is solved as user using terminal Wi-Fi, cut from AP1 to AP2
When changing, the problem of of short duration disconnection can occur for network connection.In this programme, according to corresponding condition, terminal Wi-Fi first keep with
Original AP1 connection is continuous, and after new connection is established, all-network related service is moved in new connection, then disconnect with it is former
There is AP1 connection so that switchings of the terminal Wi-Fi between AP seamless can be completed, and ensure Consumer's Experience.
Wherein, the described of the switching method of above-mentioned wireless network realizes embodiment suitable for the embodiment of the terminal,
Also identical technique effect can be reached.
It should be noted that this many functional part described in this description is all referred to as module/submodule, so as to more
Add the independence for especially emphasizing its implementation.
In the embodiment of the present invention, module/submodule can be realized with software, so as to by various types of computing devices.
For example, the executable code module of a mark can include the one or more physics or logic of computer instruction
Block, for example, it can be built as object, process or function.Nevertheless, the executable code of institute's mark module need not
It is physically located together, but the different instructions being stored in different positions can be included, is combined when in these command logics
When together, it forms module and realizes the regulation purpose of the module.
In fact, executable code module can be the either many bar instructions of individual instructions, and can even be distributed
On multiple different code segments, it is distributed among distinct program, and is distributed across multiple memory devices.Similarly, grasp
Making data can be identified in module, and can be realized according to any appropriate form and be organized in any appropriate class
In the data structure of type.The operation data can be collected as individual data collection, or can be distributed on diverse location
(being included in different storage device), and only can be present at least in part as electronic signal in system or network.
When module can be realized using software, it is contemplated that the level of existing hardware technique, it is possible to implemented in software
Module, in the case where not considering cost, those skilled in the art can build corresponding to hardware circuit come realize correspondingly
Function, the hardware circuit includes conventional ultra-large integrated (VLSI) circuit or gate array and such as logic core
The existing semiconductor of piece, transistor etc either other discrete elements.Module can also use programmable hardware device, such as
Field programmable gate array, programmable logic array, programmable logic device etc. are realized.
Above-described is the preferred embodiment of the present invention, it should be pointed out that is come for the ordinary person of the art
Say, under the premise of principle of the present invention is not departed from, some improvements and modifications can also be made, these improvements and modifications should also regard
For protection scope of the present invention.
Claims (11)
- A kind of 1. switching method of wireless network, it is characterised in that including:When detect that terminal established using the first physical address and the first wireless network first is connected up to switching condition, profit It is attached with the second physical address of the terminal with second wireless network;After the terminal and the second wireless network successful connection, disconnect between the terminal and first wireless network First connection.
- 2. switching method according to claim 1, it is characterised in that described to detect that terminal utilizes the first physical address When first established with the first wireless network is connected up to switching condition, the second physical address and the second nothing of the terminal are utilized The step of gauze network is attached includes:Obtain the current quality of connection of first connection and currently available radio network information;When the current quality of connection is less than threshold value, according to the available radio network information, the of the terminal is utilized Two physical address are attached with second wireless network.
- 3. switching method according to claim 2, it is characterised in that it is described according to the available radio network information, The step of being attached using the second physical address of the terminal with second wireless network is included:Judge in the available radio network information with the presence or absence of the radio network information of existing authentication information;It is attached according to judged result using the second physical address of the terminal with corresponding second wireless network.
- 4. switching method according to claim 3, it is characterised in that it is described according to judged result using the terminal the The step of two physical address are attached with corresponding second wireless network includes:When the radio network information of existing authentication information in the available radio network information be present, the terminal is utilized Second physical address initiates to connect to second wireless network corresponding with the radio network information;OrWhen the radio network information of existing authentication information being not present in the available radio network information, user's connection is obtained Instruction, initiate to connect to corresponding second wireless network using the second physical address of the terminal according to user's link order Connect.
- 5. switching method according to claim 4, it is characterised in that it is described according to judged result using the terminal the The step of two physical address are attached with corresponding second wireless network also includes:If the terminal and the second wireless network connection failure, the judgement available radio network information is returned In with the presence or absence of existing authentication information radio network information the step of.
- 6. switching method according to claim 4, it is characterised in that be not present in the available radio network information During the radio network information of existing authentication information, the switching method also includes:When abandoning instruction of user is being got, is directly disconnecting the first connection between the terminal and first wireless network.
- 7. switching method according to claim 1, it is characterised in that described in the terminal and the second wireless network After successful connection, disconnect between the terminal and first wireless network first connection the step of include:After the terminal and the second wireless network successful connection, by the current network traffic of the terminal migrate to institute State in the connection of second wireless network;After the completion of Data Migration, the first connection between the terminal and first wireless network is disconnected.
- 8. switching method according to claim 7, it is characterised in that the current network traffic by the terminal migrates Extremely include with the step in the connection of the second wireless network:Business datum in both the buffers and nonevent business datum are migrated to the terminal and the second wireless network Connection on.
- 9. switching method according to claim 8, it is characterised in that it is described by business datum in both the buffers migrate to The terminal includes with the step in the connection of the second wireless network:Whether the source IP address for judging business datum is IP address that the first wireless network distributes to this terminal, or is the first nothing The gateway address of the access point of gauze network;AndWhether the purpose IP address of business datum is IP address that the first wireless network distributes to this terminal, or wireless for first The gateway address of the access point of network;The migration operation according to corresponding to performing judged result.
- 10. switching method according to claim 9, it is characterised in that the migration according to corresponding to performing judged result The step of operation, includes:If the source IP address of business datum is the IP address that the first wireless network distributes to the terminal, by the business datum Source IP address be changed to the IP address that second wireless network distributes to the terminal, by the source physical address of the business datum It is changed to the second physical address;And/orIf the source IP address of business datum is the gateway address of the access point of the first wireless network, by the source of the business datum IP address is changed to the gateway address of the access point of second wireless network, and the source physical address of the business datum is changed into Two physical address;And/orIf the purpose IP address of business datum is the IP address that the first wireless network distributes to the terminal, by the business number According to purpose IP address be changed to the IP address that second wireless network distributes to the terminal, by the purpose thing of the business datum Reason address is changed to the second physical address;And/orIf the purpose IP address of business datum is the gateway address of the access point of the first wireless network, by the business datum Purpose IP address is changed to the gateway address of the access point of second wireless network, by the purpose physical address of the business datum more It is changed to the second physical address;Amended business datum is migrated;Otherwise, directly business datum is migrated.
- A kind of 11. terminal, it is characterised in that including:Link block, for detecting that terminal is connected up to using the first physical address and the first wireless network is established first During switching condition, it is attached using the second physical address and the second wireless network of the terminal;First disconnects module, for after the terminal and the second wireless network successful connection, disconnecting the terminal and institute State the first connection between the first wireless network.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610604545.2A CN107666696A (en) | 2016-07-27 | 2016-07-27 | The switching method and terminal of a kind of wireless network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610604545.2A CN107666696A (en) | 2016-07-27 | 2016-07-27 | The switching method and terminal of a kind of wireless network |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107666696A true CN107666696A (en) | 2018-02-06 |
Family
ID=61115417
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610604545.2A Pending CN107666696A (en) | 2016-07-27 | 2016-07-27 | The switching method and terminal of a kind of wireless network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107666696A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110312286A (en) * | 2018-03-27 | 2019-10-08 | 华为技术有限公司 | Method for switching network, communication device and communication equipment |
CN112738857A (en) * | 2020-12-30 | 2021-04-30 | 维沃移动通信有限公司 | Network switching method and device, electronic equipment and readable storage medium |
CN114390617A (en) * | 2021-12-28 | 2022-04-22 | 山东有人物联网股份有限公司 | WLAN network switching method, device, equipment and readable storage medium |
CN114885390A (en) * | 2022-06-02 | 2022-08-09 | 普联技术有限公司 | Wireless roaming method, device, electronic equipment and readable storage medium |
CN116506908A (en) * | 2023-06-28 | 2023-07-28 | 广州天奕技术股份有限公司 | Wireless network hotspot access method, device, equipment and readable storage medium |
Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1735051A (en) * | 2004-08-12 | 2006-02-15 | 华为技术有限公司 | Wireless switching device and its method |
US20070002796A1 (en) * | 2005-06-16 | 2007-01-04 | Qualcomm Incorporated | Handoffs in a meshed wireless system |
US20080192698A1 (en) * | 2007-02-12 | 2008-08-14 | Seon-Soo Rue | Wireless LAN network, and mobile station, base station and method of controlling handoff in wireless LAN network |
CN101631371A (en) * | 2009-08-27 | 2010-01-20 | 上海交通大学 | Zero delay switching method of wireless access points |
CN101668322A (en) * | 2009-09-17 | 2010-03-10 | 深圳华为通信技术有限公司 | Network switching method of terminal and terminal equipment |
CN102209354A (en) * | 2010-03-31 | 2011-10-05 | 中兴智能交通(无锡)有限公司 | Switching method, system and wireless network card for vehicle-mounted communication |
CN102209366A (en) * | 2010-03-31 | 2011-10-05 | 中兴智能交通(无锡)有限公司 | Vehicle-mounted communication method and system |
CN102395167A (en) * | 2011-11-09 | 2012-03-28 | 广州杰赛科技股份有限公司 | Method for switching among wireless Mesh network fields |
CN102572973A (en) * | 2012-02-02 | 2012-07-11 | 中兴通讯股份有限公司 | Information processing method for network switching of user equipment (UE) and base station |
CN102802224A (en) * | 2012-08-27 | 2012-11-28 | 东莞宇龙通信科技有限公司 | Terminal and terminal network switching method |
CN103262612A (en) * | 2010-10-27 | 2013-08-21 | 高通股份有限公司 | Data reprocessing in radio protocol layers |
CN104010292A (en) * | 2014-06-16 | 2014-08-27 | 武汉大学 | VoWLAN roaming method based on AP assistance |
CN104602308A (en) * | 2013-10-30 | 2015-05-06 | 国际商业机器公司 | Method and system for switching terminals among multiple wireless access points (AP) |
CN105228227A (en) * | 2014-11-24 | 2016-01-06 | 东莞市步步高通信软件有限公司 | The method choosing network of mobile terminal and mobile terminal |
CN105262652A (en) * | 2015-09-09 | 2016-01-20 | 九阳股份有限公司 | Network configuration method for network household appliance |
CN105263154A (en) * | 2015-09-17 | 2016-01-20 | 广东欧珀移动通信有限公司 | Method and system of Wi-Fi equipment for switching wireless access point |
CN105430695A (en) * | 2015-11-30 | 2016-03-23 | 中国联合网络通信集团有限公司 | AP switching method |
-
2016
- 2016-07-27 CN CN201610604545.2A patent/CN107666696A/en active Pending
Patent Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1735051A (en) * | 2004-08-12 | 2006-02-15 | 华为技术有限公司 | Wireless switching device and its method |
US20070002796A1 (en) * | 2005-06-16 | 2007-01-04 | Qualcomm Incorporated | Handoffs in a meshed wireless system |
US20080192698A1 (en) * | 2007-02-12 | 2008-08-14 | Seon-Soo Rue | Wireless LAN network, and mobile station, base station and method of controlling handoff in wireless LAN network |
CN101631371A (en) * | 2009-08-27 | 2010-01-20 | 上海交通大学 | Zero delay switching method of wireless access points |
CN101668322A (en) * | 2009-09-17 | 2010-03-10 | 深圳华为通信技术有限公司 | Network switching method of terminal and terminal equipment |
CN102209354A (en) * | 2010-03-31 | 2011-10-05 | 中兴智能交通(无锡)有限公司 | Switching method, system and wireless network card for vehicle-mounted communication |
CN102209366A (en) * | 2010-03-31 | 2011-10-05 | 中兴智能交通(无锡)有限公司 | Vehicle-mounted communication method and system |
CN103262612A (en) * | 2010-10-27 | 2013-08-21 | 高通股份有限公司 | Data reprocessing in radio protocol layers |
CN102395167A (en) * | 2011-11-09 | 2012-03-28 | 广州杰赛科技股份有限公司 | Method for switching among wireless Mesh network fields |
CN102572973A (en) * | 2012-02-02 | 2012-07-11 | 中兴通讯股份有限公司 | Information processing method for network switching of user equipment (UE) and base station |
CN102802224A (en) * | 2012-08-27 | 2012-11-28 | 东莞宇龙通信科技有限公司 | Terminal and terminal network switching method |
CN104602308A (en) * | 2013-10-30 | 2015-05-06 | 国际商业机器公司 | Method and system for switching terminals among multiple wireless access points (AP) |
CN104010292A (en) * | 2014-06-16 | 2014-08-27 | 武汉大学 | VoWLAN roaming method based on AP assistance |
CN105228227A (en) * | 2014-11-24 | 2016-01-06 | 东莞市步步高通信软件有限公司 | The method choosing network of mobile terminal and mobile terminal |
CN105262652A (en) * | 2015-09-09 | 2016-01-20 | 九阳股份有限公司 | Network configuration method for network household appliance |
CN105263154A (en) * | 2015-09-17 | 2016-01-20 | 广东欧珀移动通信有限公司 | Method and system of Wi-Fi equipment for switching wireless access point |
CN105430695A (en) * | 2015-11-30 | 2016-03-23 | 中国联合网络通信集团有限公司 | AP switching method |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110312286A (en) * | 2018-03-27 | 2019-10-08 | 华为技术有限公司 | Method for switching network, communication device and communication equipment |
CN110312286B (en) * | 2018-03-27 | 2020-12-22 | 华为技术有限公司 | Network switching method, communication device and communication equipment |
US11310699B2 (en) | 2018-03-27 | 2022-04-19 | Huawei Technologies Co., Ltd. | Network switching method, communications apparatus, and communications device |
CN112738857A (en) * | 2020-12-30 | 2021-04-30 | 维沃移动通信有限公司 | Network switching method and device, electronic equipment and readable storage medium |
CN114390617A (en) * | 2021-12-28 | 2022-04-22 | 山东有人物联网股份有限公司 | WLAN network switching method, device, equipment and readable storage medium |
CN114390617B (en) * | 2021-12-28 | 2023-12-22 | 山东有人物联网股份有限公司 | WLAN network switching method, device, equipment and readable storage medium |
CN114885390A (en) * | 2022-06-02 | 2022-08-09 | 普联技术有限公司 | Wireless roaming method, device, electronic equipment and readable storage medium |
CN116506908A (en) * | 2023-06-28 | 2023-07-28 | 广州天奕技术股份有限公司 | Wireless network hotspot access method, device, equipment and readable storage medium |
CN116506908B (en) * | 2023-06-28 | 2023-08-22 | 广州天奕技术股份有限公司 | Wireless network hotspot access method, device, equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102571071B1 (en) | Processing method, terminal and network element | |
CN107666696A (en) | The switching method and terminal of a kind of wireless network | |
JP2021185690A (en) | Session management method, system and terminal | |
KR101324235B1 (en) | Radio communication system and radio communication method | |
CN107734573A (en) | Switching method, base station and communication system | |
WO2017004902A1 (en) | Wireless hotspot switching method, mobile terminal and storage medium | |
CN103220815B (en) | A kind of inter-base station interface connection method for building up and device | |
KR102057403B1 (en) | Method and apparatus for detecting adjacent cells in cell reselection | |
CA2664671C (en) | Mobile communication system and communication control method | |
WO2020010871A1 (en) | Handover method and system for mobile network | |
US20190306774A1 (en) | Wireless Local Area Network Access Point Handover Method and Terminal | |
CN108738022B (en) | Mobile management method and system for wireless communication network | |
CN109548174A (en) | A kind of method and network node of coupling management | |
CN110324388A (en) | Redirection method and device | |
EP2800448A1 (en) | Method and device for achieving multi-cell service on base station equipment | |
WO2024109617A1 (en) | Communication method and apparatus, electronic device and readable storage medium | |
US8180390B2 (en) | Mobile communication terminal, mobile communication managing apparatus, mobile communication system, computer readable medium for mobile communication and mobile communication method | |
CN103313332B (en) | Android system moves equipment and the method realizing rete mirabile switching based on BP thereof | |
CN113472474A (en) | Information transmission method, user terminal and access network element | |
CN111263406A (en) | Load balancing method and system based on virtual access point | |
CN101208910B (en) | Apparatus and method for performing fast handover | |
JP2023537807A (en) | Takeover method, apparatus and system in multiple connection network | |
CN114449486B (en) | Method and device for roaming edge computing service | |
CN103718608B (en) | Switching method and relevant apparatus between a kind of base station | |
CN110572860A (en) | Method for selecting access network, core network device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180206 |
|
WD01 | Invention patent application deemed withdrawn after publication |