CN114885390B - Wireless roaming method, device, electronic equipment and readable storage medium - Google Patents
Wireless roaming method, device, electronic equipment and readable storage medium Download PDFInfo
- Publication number
- CN114885390B CN114885390B CN202210623180.3A CN202210623180A CN114885390B CN 114885390 B CN114885390 B CN 114885390B CN 202210623180 A CN202210623180 A CN 202210623180A CN 114885390 B CN114885390 B CN 114885390B
- Authority
- CN
- China
- Prior art keywords
- access point
- virtual client
- data link
- electronic device
- data
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 96
- 238000004891 communication Methods 0.000 claims abstract description 34
- 238000004590 computer program Methods 0.000 claims description 19
- 230000005540 biological transmission Effects 0.000 claims description 7
- 238000005538 encapsulation Methods 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 4
- 230000003993 interaction Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000000523 sample Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/08—Reselecting an access point
-
- 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
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present application relates to the field of wireless roaming, and in particular, to a wireless roaming method, device, electronic apparatus, and readable storage medium. The method comprises the following steps: determining a data link between a second virtual client and a second access point when the first virtual client performs data communication with the first access point; and according to the data link between the second virtual client and the second access point, the electronic equipment performs data communication with the second access point. When the first virtual client side and the first access point carry out data communication, the data link between the second virtual client side and the second access point is determined, the electronic equipment and the second access point carry out data communication, the data link between the electronic equipment and the second access point is not determined after the electronic equipment and the first access point are disconnected, roaming time is reduced, and Internet surfing experience of a user is improved.
Description
Technical Field
The present application relates to the field of wireless roaming, and in particular, to a wireless roaming method, apparatus, electronic device, and readable storage medium.
Background
The existing wireless device roaming method comprises the following steps: 1. the client device disconnects from the first Access Point (AP 1), 2 the client device switches channels, 3 the client device re-connects to the second Access Point AP2 wirelessly.
The above wireless roaming method requires a long time, the time spent for disconnecting the client device from the first access point in step 1 is about 11 ms, the time spent for switching channels by the client device in step 2 is about 11 ms, and the time spent for reconnecting the wireless connection of the client device to the second access point in step 3 is about 33 ms, which total about 55 ms roaming time, and seriously affects the user's internet surfing experience.
Disclosure of Invention
The embodiment of the application provides a wireless roaming method, a wireless roaming device, electronic equipment and a readable storage medium, which can reduce roaming time and improve Internet surfing experience of users.
In a first aspect, an embodiment of the present application provides a wireless roaming method, which is applied to an electronic device, where the electronic device includes a first virtual client and a second virtual client, and the method includes:
Determining a data link between the second virtual client and a second access point when the first virtual client performs data communication with the first access point;
and according to the data link between the second virtual client and the second access point, the electronic equipment performs data communication with the second access point.
In a possible implementation manner of the first aspect, the determining a data link between the second virtual client and the second access point includes:
Establishing a data link between the second virtual client and a target access point, wherein the target access point is an access point which is not associated with the electronic equipment;
And determining the data link between the second virtual client and the second access point according to the data link between the second virtual client and the target access point, wherein the second access point is one of the target access points.
The establishing the data link between the second virtual client and the target access point includes:
encapsulating the associated message of the second virtual client and the target access point to obtain an encapsulated message;
and transmitting the encapsulation message through the data links of the first virtual client and the first access point and the data transmission network of the first access point and the target access point, and establishing the data links of the second virtual client and the target access point.
Wherein when the channel when the electronic device communicates with the first access point is the same as the channel when the electronic device communicates with the second access point, the electronic device communicates with the second access point according to the data link between the second virtual client and the second access point, including:
enabling a data link of the second virtual client with the second access point;
After enabling the data link of the second virtual client and the second access point, disabling the data link of the first virtual client and the first access point.
When the channel when the electronic device communicates with the first access point is different from the channel when the electronic device communicates with the second access point, according to the data link between the second virtual client and the second access point, the electronic device communicates with the second access point, including:
Disabling a data link of the first virtual client with the first access point;
after disabling the data link of the first virtual client and the first access point, enabling the data link of the second virtual client and the second access point.
Wherein the method further comprises:
Before a data link between the second virtual client and the second access point is started, a first data message sent by the electronic equipment is obtained, and the first data message is stored;
And after enabling the data link between the second virtual client and the second access point, sending the first data message to the second access point.
Wherein the method further comprises:
before a data link between the second virtual client and the second access point is started, a second data message is stored through the second access point, wherein the second data message is a data message sent to the electronic equipment by the first access point;
and after enabling the data link between the second virtual client and the second access point, receiving the second data message sent by the second access point.
In a second aspect, an embodiment of the present application provides a wireless roaming apparatus, which is applied to an electronic device, where the electronic device includes a first virtual client and a second virtual client, and the apparatus includes:
A determining module, configured to determine, when the first virtual client performs data communication with the first access point, a data link between the second virtual client and the second access point;
And the switching module is used for carrying out data communication with the second access point according to the data link between the second virtual client and the second access point.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the wireless roaming method according to any one of the first aspects when executing the computer program.
In a fourth aspect, an embodiment of the present application provides a computer readable storage medium storing a computer program which, when executed by a processor, implements the wireless roaming method according to any one of the first aspects.
Compared with the prior art, the embodiment of the application has the beneficial effects that: determining a data link between a second virtual client and a second access point when the first virtual client performs data communication with the first access point; and according to the data link between the second virtual client and the second access point, the electronic equipment performs data communication with the second access point. When the first virtual client side and the first access point carry out data communication, the data link between the second virtual client side and the second access point is determined, the electronic equipment and the second access point carry out data communication, the data link between the electronic equipment and the second access point is not determined after the electronic equipment and the first access point are disconnected, roaming time is reduced, and Internet surfing experience of a user is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments or the description of the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of an application scenario of a wireless roaming method according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a wireless roaming method according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of a method for determining a data link between a second virtual client and a second access point according to an embodiment of the present application;
Fig. 4 is a schematic flow chart of a method for establishing a data link between a second virtual client and a target access point according to an embodiment of the present application;
FIG. 5 is a schematic flow chart of a method for data communication between an electronic device and a second access point according to an embodiment of the present application;
FIG. 6 is a schematic flow chart diagram of a method for data communication between an electronic device and a second access point according to an embodiment of the present application;
FIG. 7 is a schematic flow chart of a method for ensuring data is not lost during roaming according to an embodiment of the present application;
FIG. 8 is a schematic flow chart of another method for ensuring data is not lost during roaming according to an embodiment of the present application;
Fig. 9 is a schematic structural diagram of a wireless roaming device according to an embodiment of the present application;
Fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail, and in other instances, specific details of the technology in the various embodiments may be referenced to each other and specific systems not described in one embodiment may be referenced to other embodiments.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Reference in the specification to "an embodiment of the application" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in other embodiments," "in an embodiment of the application," "other embodiments of the application," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more, but not all, embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
Furthermore, in the description of the present specification and the appended claims, the terms "first," "second," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
The existing wireless device roaming method comprises the following steps: 1. the client device disconnects from the first access point (AP 1), 2 the client device switches channels, 3 the client device re-connects to the second access point AP2 wirelessly.
The above wireless roaming method requires a long time, the time spent for disconnecting the client device from the first access point in step 1 is about 11 ms, the time spent for switching channels by the client device in step 2 is about 11 ms, and the time spent for reconnecting the wireless connection of the client device to the second access point in step 3 is about 33 ms, which total about 55 ms roaming time, and seriously affects the user's internet surfing experience.
In order to solve the above-mentioned defect, the inventive concept of the present application is:
When the client device and the first access point perform data communication, a data link between the client device and the second access point is pre-established, the data link between the client device and the second access point is pre-established at a proper time, the data communication between the client device and the second access point is realized by using the pre-established data link between the client device and the second access point, the data link between the client device and the second access point is not required to be established after the client device and the first access point are disconnected, roaming time is reduced, and the Internet surfing experience of a user is improved.
In order to illustrate the technical scheme of the application, the following description is made by specific examples.
Referring to fig. 1, fig. 1 is a schematic diagram of an application scenario of a wireless roaming method according to an embodiment of the present application, and for convenience of explanation, only a portion relevant to the present application is shown. The application scene comprises: access point and electronic device 300.
The access point, i.e. the wireless access point, is an access point of a wireless network, commonly called "hot spot", and is equivalent to a bridge connecting a wired network and a wireless network, and is mainly used for connecting each wireless network electronic device 300 together, and then accessing the wireless network into an ethernet network, thereby achieving the purpose of wireless coverage of the network. One access point 200 may connect 255 electronic devices 300 at maximum. The access point of the embodiment of the present application includes a first access point 201 and a second access point 202.
The electronic device 300 includes, but is not limited to, a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), etc., and the embodiment of the present application does not limit the specific type of the electronic device.
When the electronic device 300 performs data communication with the first access point 201, the first access point 201 is used for realizing the internet surfing function, when the electronic device 300 finds that the second access point 202 supports wireless association-free, a data link with the second access point 202 is pre-established, and the electronic device 300 is started to perform data communication with the data link of the second access point 202 at a proper time, so that wireless roaming is completed.
The wireless association-free mode of the embodiment of the application refers to a roaming mode that the electronic equipment establishes a data link with the access point in advance without carrying out data communication.
In the embodiment of the present application, the electronic device may pre-establish the data link of the electronic device 300 at the second access point 202 by performing authentication interaction, association interaction, and four-way handshake interaction with the second access point to perform key agreement.
In an embodiment of the present application, an electronic device 300 is configured to implement the roaming method of the present application, and referring to fig. 2, fig. 2 is a schematic flowchart of a wireless roaming method according to an embodiment of the present application. The subject of the method of fig. 2 may be the electronic device 300 of fig. 1. As shown in fig. 2, the method includes: s201 to S202.
S201, when the electronic device performs data communication with the first access point through the first virtual client, determining a data link between the second virtual client and the second access point.
Specifically, in the embodiment of the present application, the first virtual client and the second virtual client are virtual clients configured by the electronic device, where the virtual clients are used to implement the same functions as the electronic device. In the embodiment of the application, the electronic device configures the virtual clients with the same frequency, and in other embodiments, the electronic device can configure a plurality of virtual clients with the same frequency, each virtual client is used for associating one access point, and the embodiment of the application does not limit the number of the virtual clients.
In the embodiment of the application, the electronic equipment is configured with a plurality of virtual clients with the same frequency, so that the situation that data packets are lost when the electronic equipment roams in the same frequency band by utilizing the plurality of virtual clients is avoided, and the time delay is reduced.
In the embodiment of the application, when the electronic device performs data communication with the first access point at the first virtual client, the electronic device is connected with the wireless network through a data link established with the first access point. In an embodiment of the present application, referring to fig. 3, fig. 3 is a schematic flowchart of a method for determining a data link between a second virtual client and a second access point according to an embodiment of the present application. The subject of the method of fig. 3 may be the electronic device 300 of fig. 1. As shown in fig. 3, the method includes: s301 to S302.
S301, the electronic equipment establishes a data link between the second virtual client and the target access point.
Specifically, the target access point is an access point that is not associated with the electronic device. The number of the target access points is not limited in the embodiment of the application.
In the embodiment of the application, when the electronic equipment performs data communication with the first access point through the first virtual client, a data link between the electronic equipment and the target access point is established in advance through the second virtual client.
Illustratively, when only a single target access point exists in the network, a data link with the single target access point is previously established by the second virtual client.
When there are multiple target access points in the network, for example: target access point 1, target access point 2, and target access point 3, at which point the electronic device configures a plurality of virtual clients, such as: the electronic device may establish a data link with the target access point 1 through the virtual client 1, establish a data link with the target access point 2 through the virtual client 2, and establish a data link with the target access point 3 through the virtual client 3. Of course, the virtual client 1 may also establish a data link with either the target access point 2 or 3, and embodiments of the present application are not limited to establishing a data link with a particular virtual client with a particular target access point.
In the embodiment of the present application, referring to fig. 4, fig. 4 is a schematic flowchart of a method for establishing a data link between a second virtual client and a target access point according to an embodiment of the present application. The subject of the method of fig. 4 may be the electronic device 300 of fig. 1. As shown in fig. 4, the method includes: s401 to S402.
S401, the electronic equipment encapsulates the association message of the second virtual client and the target access point to obtain an encapsulated message.
Specifically, in the embodiment of the present application, the association message between the second virtual client and the target access point is encapsulated by a private protocol, where the association message includes: probe request message Rsp, identity authentication message Auth, association request message Assoc Req, key message EAPOL-Key, etc.
S402, the electronic equipment transmits the encapsulation message through the data link between the first virtual client and the first access point and the data transmission network between the first access point and the target access point, and establishes the data link between the second virtual client and the target access point.
Specifically, in the embodiment of the present application, the data transmission network between the first access point and the target access point, that is, the backbone network for transmitting data between the access point and the target access point, is a large-sized transmission network, which is used for connecting with a small-sized transmission network and transmitting data.
In the embodiment of the application, the electronic equipment sends the encapsulation message to the target access point through the data links of the first virtual client and the first access point and the backbone networks of the first access point and the target access point, the target access point receives the encapsulation message, sends the feedback message agreeing to be associated to the electronic equipment through the backbone networks of the first access point and the target access point and the data links of the first virtual client and the first access point, and completes message interaction, thus establishing the data links of the second virtual client and the target access point.
S302, the electronic equipment determines the data link between the second virtual client and the second access point according to the data link between the second virtual client and the target access point.
Specifically, the second access point is one of the target access points.
In the embodiment of the application, the data link between the second virtual client and the second access point can be determined according to the parameters of the data link between the second virtual client and the target access point. Wherein the parameters of the data link include: data quality of data links, throughput of number of links, reliability of data links, signal strength, etc.
In the embodiment of the present application, the data link between the second virtual client and the second access point may be determined according to any one of the parameters of the data link.
For example, when the target access point is single, the data link between the second virtual client and the target access point is determined to be the data link between the second virtual client and the second access point when the signal strength between the electronic device and the target access point is greater than the signal strength between the electronic device and the first access point.
For example, when the number of target access points is plural, when the signal strength of the electronic device and one of the plurality of target access points is greater than the signal strength of the electronic device and the first access point, the data link between the second virtual client and the one of the plurality of target access points is determined to be the data link between the second virtual client and the second access point.
S202, the electronic equipment performs data communication with the second access point according to the data link between the second virtual client and the second access point.
Specifically, in order to reduce the roaming switching time, when a channel when the electronic device communicates with the first access point is the same as a channel when the electronic device communicates with the second access point, according to a data link between the second virtual client and the second access point, a method for performing data communication between the electronic device and the second access point is shown in fig. 5, and fig. 5 is a schematic flowchart of a method for performing data communication between the electronic device and the second access point provided in the embodiment of the present application. The subject of the method of fig. 5 may be the electronic device 300 of fig. 1. As shown in fig. 5, the method includes: s501 to S502.
S501, the electronic device enables a data link between the second virtual client and the second access point.
Specifically, in order to reduce roaming time, the embodiment of the application limits the sequence of enabling the data link between the second virtual client and the second access point and disabling the data link between the first virtual client and the first access point for the electronic device.
In the embodiment of the application, the data link between the second virtual client and the second access point is started first, and then the data link between the first virtual client and the first access point is stopped.
For example, please refer to table 1, in which the roaming method according to the embodiment of the present application and the time delay of the received message when the existing roaming method roams are listed in table 1.
In table 1, the co-channel represents a channel when the electronic device communicates with the first access point, and is the same as a channel when the electronic device communicates with the second access point, and when the channels are the same, the present application enables the data link between the second virtual client and the second access point, and then disables the data link between the first virtual client and the first access point. When roaming is carried out, the time delay of receiving the message is in the range of 0 to 4ms, and in the existing roaming method, when channels are the same, the time delay of receiving the message is in the range of 42 to 53ms, so that the time delay of receiving the message by the roaming method of the embodiment of the application is far less than the time delay of receiving the message by the existing roaming method, therefore, the roaming time consumption of the roaming method of the embodiment of the application is far less than the roaming time consumption of the existing roaming method, and the Internet surfing experience of users is improved.
TABLE 1
S502, the electronic device disables the data link between the first virtual client and the first access point after enabling the data link between the second virtual client and the second access point.
In order to reduce excessive time consumption for channel switching, when a channel when an electronic device communicates with a first access point is different from a channel when the electronic device communicates with a second access point, according to a data link between a second virtual client and the second access point, a method for data communication between the electronic device and the second access point is shown in fig. 6, and fig. 6 is a schematic flowchart of a method for data communication between the electronic device and the second access point according to an embodiment of the present application. The subject of the execution of the method in fig. 6 may be the electronic device 300 in fig. 1. As shown in fig. 6, the method includes: s601 to S603.
S601, the electronic equipment disables a data link between a first virtual client and a first access point.
Specifically, in the embodiment of the present application, in order to reduce excessive time consumption for channel switching, the data link between the first virtual client and the first access point is first disabled, and then the data link between the second virtual client and the second access point is enabled.
For example, please refer to table 1, in table 1, different channels represent channels when the electronic device communicates with the first access point, and are different from channels when the electronic device communicates with the second access point, and when the channels are different from each other, the data link between the first virtual client and the first access point is first deactivated, and after the channels when the electronic device communicates with the first access point are switched to signals between the electronic device and the second access point, the data link between the second virtual client and the second access point is activated. When roaming is carried out, the time delay of the received message is in the range of 9 to 14ms, and when the channels are different in the existing roaming method, the time delay of the received message is in the range of 53 to 67ms, so that the time delay of the received message in the roaming method of the embodiment of the application is far less than the time delay of the received message in the existing roaming method, the time consumption of switching channels in the roaming method of the embodiment of the application is far less than the time consumption of the existing roaming method, and the time consumption of roaming in the roaming method of the embodiment of the application is far less than the time consumption of roaming in the existing roaming method, and the Internet surfing experience of users is improved.
S602, after the electronic device disables the data link between the first virtual client and the first access point, switching the channel when the electronic device communicates with the first access point to the channel between the electronic device and the second access point.
S603, enabling a data link between the second virtual client and the second access point.
In order to ensure that data is not lost in the roaming process and the internet experience of a user is improved, the following method is adopted, and referring to fig. 7, fig. 7 is a schematic flow chart of the method for ensuring that data is not lost in the roaming process, which is provided by the embodiment of the application. The subject of the execution of the method in fig. 7 may be the electronic device 300 in fig. 1. As shown in fig. 7, the method includes: s701 to S702.
S701, before the electronic equipment starts a data link between the second virtual client and the second access point, acquiring a first data message sent by the electronic equipment, and storing the first data message.
Specifically, after determining the data link between the second virtual client and the second access point, the electronic device acquires a data packet sent by the electronic device before enabling the data link between the second virtual client and the second access point, where the electronic device sends a packet, which may also be referred to as an uplink packet, to the second access point.
In order to ensure that data is not lost in the roaming process, the embodiment of the application stores the uplink message in the electronic equipment.
S702, the electronic device sends a first data message to the second access point after enabling the data link between the second virtual client and the second access point.
For example, referring to table 1, after the method of fig. 7 is adopted, when the roaming method of the embodiment of the present application sends an uplink packet, there is no phenomenon of losing a data packet, and compared with the existing roaming method, when the uplink packet is sent, there are two phenomena of occasional packet loss and inevitable packet loss, so as to improve the internet experience of the user.
Referring to fig. 8, fig. 8 is a schematic flow chart of another method for guaranteeing data not to be lost in roaming according to an embodiment of the present application. The subject of the execution of the method in fig. 8 may be the electronic device 300 in fig. 1. As shown in fig. 8, the method includes: s801 to S802.
S801, the electronic device stores a second data message through a second access point before enabling a data link between the second virtual client and the second access point.
Specifically, after determining the data link between the second virtual module and the second access point, the electronic device stores, through the second access point, a second data packet, which is a data packet sent by the first access point to the electronic device, before enabling the data link between the second virtual client and the second access point and the data link between the second virtual client and the second access point, where the second data packet may also be referred to as a downlink packet.
S802, after enabling a data link between the second virtual client and the second access point, the electronic device receives a second data message sent by the second access point.
For example, referring to table 1, after the method of fig. 8 is adopted, the roaming method in the embodiment of the present application does not have the phenomenon of losing the data packet when sending the downlink message, and compared with the existing roaming method, when sending the downlink message, the roaming method can occasionally have the phenomenon of losing the data packet and the phenomenon of inevitably losing the data packet, thereby improving the internet experience of the user.
In summary, in the technical scheme of the application, when a first virtual client is associated with a first access point, a data link between a second virtual client and the second access point is determined; and according to the data link between the second virtual client and the second access point, the electronic equipment performs data communication with the second access point. When the first virtual client is associated with the first access point, the data link between the second virtual client and the second access point is determined, and the data link between the electronic equipment and the second access point is determined without disconnecting the electronic equipment from the first access point, so that roaming time is reduced, and the Internet surfing experience of a user is improved.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a wireless roaming device provided in an embodiment of the present application, which is applied to an electronic apparatus, wherein the electronic apparatus includes a first virtual client and a second virtual client, and the device includes:
A determining module 91, configured to determine, when the first virtual client performs data communication with the first access point, a data link between the second virtual client and the second access point.
And the switching module 92 is configured to perform data communication with the second access point according to the data link between the second virtual client and the second access point.
The determining module 91 is further configured to establish a data link between the second virtual client and a target access point, where the target access point is an access point not associated with the electronic device;
and determining the data link between the second virtual client and the second access point according to the data link between the second virtual client and the target access point, wherein the second access point is one of the target access points.
The determining module 91 is further configured to encapsulate the association message between the second virtual client and the target access point, to obtain an encapsulated message;
And transmitting the encapsulation message through the data links of the first virtual client and the first access point and the data transmission network of the first access point and the target access point, and establishing the data link of the second virtual client and the target access point.
Wherein, when the channel when the electronic device communicates with the first access point is the same as the channel when the electronic device communicates with the second access point, the switching module 92 is further configured to enable the data link between the second virtual client and the second access point;
the data link of the first virtual client and the first access point is disabled after the data link of the second virtual client and the second access point is enabled.
Wherein, when the channel when the electronic device communicates with the first access point is different from the channel when the electronic device communicates with the second access point, the switching module 92 is further configured to deactivate the data link between the first virtual client and the first access point;
after disabling the data link of the first virtual client with the first access point, enabling the data link of the second virtual client with the second access point.
The apparatus further includes a first storage module 93, configured to obtain a first data packet sent by the electronic device and store the first data packet before enabling the data link between the second virtual client and the second access point;
and after enabling the data link between the second virtual client and the second access point, sending the first data message to the second access point.
The apparatus further includes a second storing module 94, configured to store, by the second access point, a second data packet before enabling the data link between the second virtual client and the second access point, where the second data packet is a data packet sent by the first access point to the electronic device;
and after the data link between the second virtual client and the second access point is started, receiving a second data message sent by the second access point.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
As shown in fig. 10, the embodiment of the present application further provides an electronic device 200, including a memory 21, a processor 22, and a computer program 23 stored in the memory 21 and executable on the processor 22, where the processor 22 implements the wireless roaming method of the above embodiments when executing the computer program 23.
The Processor 22 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 21 may be an internal storage unit of the electronic device 200. The memory 21 may also be an external storage device of the electronic device 200, such as a plug-in hard disk, a smart memory card (SMARTMEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD) or the like, which are provided on the electronic device 200. Further, the memory 21 may also include both an internal storage unit and an external storage device of the electronic device 200. The memory 21 is used to store computer programs and other programs and data required by the electronic device 200. The memory 21 may also be used to temporarily store data that has been output or is to be output.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the wireless roaming method of each embodiment is realized when the computer program is executed by a processor.
The embodiments of the present application provide a computer program product which, when run on a mobile terminal, causes the mobile terminal to perform the wireless roaming method of the above embodiments.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above-described embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and the computer program may implement the steps of the method embodiments described above when executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, executable files or in some intermediate form, etc. The computer readable storage medium may include at least: any entity or device capable of carrying computer program code to a camera device/electronic apparatus, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (random access memory, RAM), an electrical carrier signal, a telecommunications signal, and a software distribution medium. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer-readable storage media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment of the present application.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.
Claims (8)
1. A wireless roaming method, applied to an electronic device, the electronic device including a first virtual client and a second virtual client, the method comprising:
Determining a data link between the second virtual client and the second access point when the first virtual client performs data communication with the first access point, including: establishing a data link between the second virtual client and a target access point, wherein the target access point is an access point which is not associated with the electronic equipment; determining a data link between the second virtual client and the second access point according to the data link between the second virtual client and the target access point, wherein the second access point is one of the target access points;
According to the data link between the second virtual client and the second access point, the electronic equipment performs data communication with the second access point; the first virtual client and the second virtual client are in the same frequency band;
When the channel when the electronic device communicates with the first access point is different from the channel when the electronic device communicates with the second access point, the electronic device communicates with the second access point according to the data link between the second virtual client and the second access point, including:
Disabling a data link of the first virtual client with the first access point;
After disabling the data link between the first virtual client and the first access point, switching the channel when the electronic device communicates with the first access point to the channel between the electronic device and the second access point;
and enabling a data link between the second virtual client and the second access point.
2. The method of claim 1, wherein the establishing the data link of the second virtual client with the target access point comprises:
encapsulating the associated message of the second virtual client and the target access point to obtain an encapsulated message;
and transmitting the encapsulation message through the data links of the first virtual client and the first access point and the data transmission network of the first access point and the target access point, and establishing the data links of the second virtual client and the target access point.
3. The method of claim 1, wherein the communicating with the second access point by the electronic device according to the data link of the second virtual client with the second access point when the channel when the electronic device communicates with the first access point is the same as the channel when the electronic device communicates with the second access point comprises:
enabling a data link of the second virtual client with the second access point;
After enabling the data link of the second virtual client and the second access point, disabling the data link of the first virtual client and the first access point.
4. A method according to claim 1 or 3, characterized in that the method further comprises:
Before a data link between the second virtual client and the second access point is started, a first data message sent by the electronic equipment is obtained, and the first data message is stored;
And after enabling the data link between the second virtual client and the second access point, sending the first data message to the second access point.
5. A method according to claim 1 or 3, characterized in that the method further comprises:
before a data link between the second virtual client and the second access point is started, a second data message is stored through the second access point, wherein the second data message is a data message sent to the electronic equipment by the first access point;
and after enabling the data link between the second virtual client and the second access point, receiving the second data message sent by the second access point.
6. A wireless roaming apparatus for use with an electronic device, the electronic device including a first virtual client and a second virtual client, the apparatus comprising:
a determining module, configured to determine, when the first virtual client performs data communication with the first access point, a data link between the second virtual client and the second access point; the determining module is further configured to establish a data link between the second virtual client and a target access point, where the target access point is an access point not associated with the electronic device; determining a data link between the second virtual client and a second access point according to the data link between the second virtual client and the target access point, wherein the second access point is one of the target access points;
The switching module is used for carrying out data communication with the second access point according to the data link between the second virtual client and the second access point; the first virtual client and the second virtual client are in the same frequency band;
When the channel when the electronic equipment is communicated with the first access point is different from the channel when the electronic equipment is communicated with the second access point, the switching module is also used for disabling the data link between the first virtual client and the first access point;
after disabling the data link of the first virtual client with the first access point, enabling the data link of the second virtual client with the second access point.
7. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the wireless roaming method of any of claims 1 to 5 when the computer program is executed.
8. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the wireless roaming method according to any of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210623180.3A CN114885390B (en) | 2022-06-02 | 2022-06-02 | Wireless roaming method, device, electronic equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210623180.3A CN114885390B (en) | 2022-06-02 | 2022-06-02 | Wireless roaming method, device, electronic equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114885390A CN114885390A (en) | 2022-08-09 |
CN114885390B true CN114885390B (en) | 2024-07-19 |
Family
ID=82680173
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210623180.3A Active CN114885390B (en) | 2022-06-02 | 2022-06-02 | Wireless roaming method, device, electronic equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114885390B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110290563A (en) * | 2019-05-28 | 2019-09-27 | 菜鸟智能物流控股有限公司 | Wireless access switching method, device and system and electronic equipment |
CN110602704A (en) * | 2019-09-19 | 2019-12-20 | 深圳市瑞科慧联科技有限公司 | Non-sensing roaming system and method |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7668140B2 (en) * | 2005-05-11 | 2010-02-23 | Alcatel-Lucent Usa Inc. | Roaming between wireless access point |
US8687609B2 (en) * | 2009-11-04 | 2014-04-01 | Cisco Technology, Inc. | Managing router advertisement messages to support roaming of wireless mobile client devices |
US9655038B2 (en) * | 2014-10-28 | 2017-05-16 | Aruba Networks, Inc. | Efficient roaming of mobile clients |
CN104955069B (en) * | 2015-07-28 | 2019-07-19 | 北京邮电大学 | A kind of different channel deployment wlan system and its seamless handover method based on SDN |
CN107666696A (en) * | 2016-07-27 | 2018-02-06 | 中兴通讯股份有限公司 | The switching method and terminal of a kind of wireless network |
CN107071840B (en) * | 2017-06-20 | 2019-12-03 | 成都西加云杉科技有限公司 | Netsurfing switching method and device |
CN108235395B (en) * | 2018-01-10 | 2021-05-18 | 重庆邮电大学 | Method for realizing cross-channel roaming switching of wireless terminal in WLAN |
US11349936B2 (en) * | 2020-05-28 | 2022-05-31 | Citrix Systems, Inc. | System and related methods providing channel switching between appliances |
CN114125968B (en) * | 2021-11-19 | 2024-03-29 | 深圳市联平半导体有限公司 | Method and device for switching wireless access points of wireless terminal |
-
2022
- 2022-06-02 CN CN202210623180.3A patent/CN114885390B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110290563A (en) * | 2019-05-28 | 2019-09-27 | 菜鸟智能物流控股有限公司 | Wireless access switching method, device and system and electronic equipment |
CN110602704A (en) * | 2019-09-19 | 2019-12-20 | 深圳市瑞科慧联科技有限公司 | Non-sensing roaming system and method |
Also Published As
Publication number | Publication date |
---|---|
CN114885390A (en) | 2022-08-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11310266B2 (en) | Mobile communication method, apparatus, and device | |
CN109076079B (en) | Method, apparatus and computer readable medium for enhanced non-access stratum security | |
EP2815598B1 (en) | Security solution for integrating a wifi radio interface in lte access network | |
US11026274B2 (en) | Session connection establishment method and system, and related device | |
CN106793090B (en) | The selection method and system of D2D direct communication resources | |
RU2483475C2 (en) | Methods, apparatus and program products providing cryptographic separation for multiple handovers | |
CN106134231B (en) | Key generation method, equipment and system | |
CN103379590B (en) | Data transmission method and device | |
US9769721B2 (en) | Channel switching method, apparatus, and device | |
US9060277B2 (en) | Mobile communication devices, wireless access points, and wireless local area network (WLAN) authentication methods thereof | |
EP1878202A2 (en) | Exchange of key material | |
WO2016144487A1 (en) | Quick connection between customized softap and sta | |
WO2020056433A2 (en) | SECURE COMMUNICATION OF RADIO RESOURCE CONTROL (RRC) REQUEST OVER SIGNAL RADIO BEARER ZERO (SRBo) | |
US10785814B2 (en) | Method, device and system for sending participating service provider identity | |
CN112019489B (en) | Verification method and device | |
WO2019157756A1 (en) | Signal transmission method and device | |
CN106028323B (en) | network access method, terminal and access point | |
CN114885390B (en) | Wireless roaming method, device, electronic equipment and readable storage medium | |
EP3499834A1 (en) | Key negotiation method and apparatus | |
US11722894B2 (en) | Methods and devices for multi-link device (MLD) address discovery in a wireless network | |
RU2730601C1 (en) | Communication method, network element of safety assurance unit and terminal | |
US9560526B2 (en) | Method and apparatus for single sign-on in a mobile communication system | |
CN115942305A (en) | Session establishment method and related device | |
JP2023520387A (en) | Communication method, device and system | |
EP2600646A1 (en) | Method for deriving key by multisystem radio access network and multisystem radio access network |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |