CN109246784B - Roaming control method and device - Google Patents

Roaming control method and device Download PDF

Info

Publication number
CN109246784B
CN109246784B CN201811300934.1A CN201811300934A CN109246784B CN 109246784 B CN109246784 B CN 109246784B CN 201811300934 A CN201811300934 A CN 201811300934A CN 109246784 B CN109246784 B CN 109246784B
Authority
CN
China
Prior art keywords
target client
wireless network
distance
client
connection
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
Application number
CN201811300934.1A
Other languages
Chinese (zh)
Other versions
CN109246784A (en
Inventor
张守琦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201811300934.1A priority Critical patent/CN109246784B/en
Publication of CN109246784A publication Critical patent/CN109246784A/en
Application granted granted Critical
Publication of CN109246784B publication Critical patent/CN109246784B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/32Reselection being triggered by specific parameters by location or mobility data, e.g. speed data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data

Abstract

The embodiment of the application provides a roaming control method and a roaming control device, which are applied to network control equipment in a wireless network, and the method comprises the following steps: the method comprises the steps of obtaining the number of clients currently connected with a first AP in a wireless network as a first number, if the first number is larger than a preset number threshold, determining a target client with the largest distance to the first AP and the distance between the target client and the first AP from the clients currently connected with the first AP as a first distance, if a second AP meeting preset conditions exists in other APs except the first AP in the wireless network, informing the first AP of disconnecting from the target client by an AC in the wireless network, and controlling the target client to establish connection with any second AP. The second AP meets the preset condition, can provide wireless network service for the target client and can avoid network interruption of the target client.

Description

Roaming control method and device
Technical Field
The present application relates to the field of wireless network technologies, and in particular, to a roaming control method and apparatus.
Background
With the rapid development of Wireless Local Access Network (WLAN) technology, Wireless networks occupy more and more important positions in people's lives. An Access Point (AP) in a wireless network may connect to a client to provide wireless network services for the client. The client may roam according to the signal strength of the AP, for example, as the client moves, when the client detects that the signal strength of the currently connected AP (which may be referred to as a first AP) is less than a preset signal strength threshold, the client disconnects from the first AP and establishes a connection with an AP (which may be referred to as a second AP) having a larger current signal strength.
If the signal coverage of the first AP is greater than the distance between the first AP and the second AP, the following phenomena may occur: the client is far away from the initially connected first AP, but the signal strength of the first AP detected by the client is still greater than or equal to the preset signal strength threshold, and the client does not roam even if the client is close to a new second AP (that is, the client does not switch from the first AP to the second AP with higher signal strength), so that the first AP is likely to be connected with more clients, and the performance of the wireless network is affected.
In the prior art, when there are many clients connected to the first AP, the first AP may determine, from the currently connected clients, a target client having a low signal strength of the client, and disconnect the target client, so as to reduce the number of clients connected to the first AP.
Disclosure of Invention
An object of the embodiments of the present application is to provide a roaming control method and apparatus, which can avoid network interruption of a client. The specific technical scheme is as follows:
in a first aspect, to achieve the above object, an embodiment of the present application discloses a roaming control method, which is applied to a network control device in a wireless network, and the method includes:
acquiring the number of clients currently connected with a first AP in the wireless network as a first number;
if the first number is larger than a preset number threshold, determining a target client with the largest distance to the first AP from the clients currently connected with the first AP, and acquiring the distance between the target client and the first AP as a first distance;
if a second AP meeting preset conditions exists in other APs in the wireless network except the first AP and the network control equipment is an Access Controller (AC), informing the first AP to disconnect the target client and controlling the target client to establish connection with any second AP, wherein the preset conditions comprise: the distance to the target client is smaller than the first distance;
if the second AP exists in other APs except the first AP in the wireless network and the network control equipment is a server, the first AP is informed to disconnect from the target client through an AC in the wireless network, and the target client is controlled to establish connection with any second AP.
Optionally, the preset condition further includes:
the number of the currently connected clients meets a preset number range;
and/or the presence of a gas in the gas,
the received signal strength of the target client is not less than the signal strength of the target client received by the first AP.
Optionally, the controlling the target client to establish a connection with any second AP includes:
and refusing to establish connection with the target client when receiving the connection request message sent by the target client through the APs except the second AP in the wireless network.
Optionally, the controlling the target client to establish a connection with any second AP includes:
taking the AP with the minimum number of the clients currently connected in each second AP as a third AP;
and refusing to establish connection with the target client when receiving the connection request message sent by the target client through the APs except the third AP in the wireless network.
In a second aspect, in order to achieve the above object, an embodiment of the present application discloses a roaming control apparatus, which is applied to a network control device in a wireless network, and includes:
a first obtaining module, configured to obtain, as a first number, the number of clients currently connected to a first AP in the wireless network;
a second obtaining module, configured to determine, from clients currently connected to the first AP, a target client with a largest distance to the first AP from among the clients currently connected to the first AP if the first number is greater than a preset number threshold, and obtain a distance between the target client and the first AP as a first distance;
a processing module, configured to notify the first AP to disconnect from the target client and control the target client to establish a connection with any second AP if a second AP meeting a preset condition exists in other APs in the wireless network except the first AP and the network control device is an access controller AC, where the preset condition includes: the distance to the target client is smaller than the first distance;
the processing module is further configured to notify the first AP to disconnect from the target client through an AC in the wireless network and control the target client to establish a connection with any second AP if the second AP exists in other APs in the wireless network except the first AP and the network control device is a server.
Optionally, the preset condition further includes:
the number of the currently connected clients meets a preset number range;
and/or the presence of a gas in the gas,
the received signal strength of the target client is not less than the signal strength of the target client received by the first AP.
Optionally, the processing module is specifically configured to refuse to establish a connection with the target client when a connection request message sent by the target client is received through an AP in the wireless network except the second AP.
Optionally, the number of the second APs is multiple, and the processing module is specifically configured to use an AP with the smallest number of currently connected clients in each second AP as a third AP;
and refusing to establish connection with the target client when receiving the connection request message sent by the target client through the APs except the third AP in the wireless network.
In a third aspect, an electronic device is provided, which includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of the first aspect when executing the program stored in the memory.
In a fourth aspect, there is provided a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to: the method steps of the first aspect are implemented.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method steps of the first aspect described above.
The embodiment of the application provides a roaming control method and device, which can be applied to network control equipment in a wireless network, wherein the network control equipment can acquire the number of clients currently connected with a first AP in the wireless network as a first number, and if the first number is larger than a preset number threshold, a target client with the largest distance from the first AP is determined from the clients currently connected with the first AP, and the distance between the target client and the first AP is acquired as a first distance. If the second AP meeting the preset condition exists in other APs except the first AP in the wireless network and the network control equipment is the AC, the AC can inform the first AP of disconnecting from the target client and control the target client to establish connection with any second AP, and if the network control equipment is the server, the server can inform the first AP of disconnecting from the target client through the AC in the wireless network and control the target client to establish connection with any second AP through the AC. The preset conditions comprise that the distance between the second AP and the target client is smaller than the first distance, the second AP meets the preset conditions, namely the second AP can provide wireless network service for the target client, therefore, after the connection with the first AP is disconnected, the target client establishes connection with any second AP, and network interruption of the target client can be avoided.
Of course, not all of the above advantages need be achieved in the practice of any one product or method of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a framework diagram of a networking architecture according to an embodiment of the present application;
fig. 2 is a framework diagram of a networking architecture according to an embodiment of the present application;
fig. 3 is a flowchart of a roaming control method according to an embodiment of the present disclosure;
fig. 4 is a flowchart of an example of a roaming control method according to an embodiment of the present application;
fig. 5 is a structural diagram of a roaming control device according to an embodiment of the present application;
fig. 6 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a roaming control method and a roaming control device, which can be applied to network control equipment in a wireless network, and the wireless network can also comprise a plurality of APs. The network control device may be an Access Controller (AC) in the wireless network, or the network control device may also be a server, and the server may communicate with the AC in the wireless network.
Referring to fig. 1, fig. 1 is a framework diagram of a networking architecture provided in the embodiment of the present application, which is a possible application scenario. The networking comprises an AC, an AP1, an AP2, an AP3, a client 1 and a client 2, wherein the AC is the network control equipment at present. The AP1, the AP2, and the AP3 are all connected to the AC, and the client 1 and the client 2 may be electronic devices such as a mobile phone, a notebook computer, and a tablet computer. When the client 1 first accesses the networking, because the distance between the client 1 and the AP1 is small, the client 1 may establish a connection with the AP1, and the AP1 may provide a wireless network service for the client 1. The processing method of the client 2 is similar to that of the client 1, and is not described herein again.
As client 1 moves in the direction of AP2, client 1 moves away from AP1 and the signal strength of AP1 detected by client 1 becomes smaller. However, the signal strength of the AP1 detected by the client 1 may still be greater than or equal to the preset signal strength threshold, at this time, the client 1 does not disconnect from the AP1, that is, even if the client 1 is close to the AP2, the client 1 will not switch from the AP1 to the AP2 with higher signal strength, so that more clients are connected to the AP 1.
In the prior art, when there are many clients connected by the AP1, the AP1 may determine a client (e.g., the client 2) with the minimum signal strength from the currently connected clients (i.e., the client 1 and the client 2), and disconnect the client 2, however, the client 2 may only be able to establish a connection with the AP1 currently, and the AP1 disconnects the client 2, which may cause a network outage of the client 2.
Based on the roaming control method of the present application, when the AC detects that the number (i.e., the first number) of the clients currently connected to the AP1 is greater than the preset number threshold, the AC may determine, from the clients currently connected to the AP1 (i.e., the client 1 and the client 2), the client (i.e., the client 2) with the largest distance from the AP1, and obtain the distance (i.e., the first distance) between the client 2 and the AP 1. If there is an AP (which may be AP2) satisfying a preset condition (that the distance to the client 2 is less than the first distance) in the APs except the AP1 in the network, the AC notifies the AP1 to disconnect from the client 2 and controls the client 2 to establish a connection with the AP 2. Since the distance between the AP2 and the client 2 is less than the first distance, that is, the AP2 can establish a connection with the client 2, providing the wireless network service for the client 2. After disconnecting from AP1, client 2 may establish a connection with AP2, which may avoid network disruption for client 2.
In addition, referring to fig. 2, fig. 2 adds a server on the basis of fig. 1, and currently, the network control device may be the server, which is connected to the AC in the networking.
Based on the roaming control method of the present application, when the server detects that the number (i.e., the first number) of the clients currently connected to the AP1 is greater than the preset number threshold, the server may determine, from the clients currently connected to the AP1 (i.e., the client 1 and the client 2), the client (i.e., the client 2) with the largest distance from the AP1, and obtain the distance (i.e., the first distance) between the client 2 and the AP 1. If there is an AP (which may be AP2) that satisfies a preset condition (that the distance from the AP1 is less than the first distance) in the APs except for the AP1 in the network, the server may notify the AP1 to disconnect from the client 2 through the AC, and control the client 2 to establish a connection with the AP2 through the AC, which may also avoid network interruption of the client 2.
If the network control device is a server, the server can undertake most processing steps of the roaming control method based on the application, and therefore load of an AC in a wireless network can be reduced, and performance of the wireless network is improved.
An embodiment of the present application provides a roaming control method, which may be applied to a network control device in a wireless network, and referring to fig. 3, the method may include the following steps:
s301: the number of the clients currently connected with the first AP in the wireless network is obtained as a first number.
The network control device may process each AP in the wireless network according to the roaming control method provided in the present application. The first AP may be any AP in the wireless network, where the first AP is an AP currently being processed by the network control device.
In the embodiment of the present application, for an AP currently being processed (i.e., a first AP), the network control device may obtain, as the first number, the number of clients currently connected to the first AP.
In this step, the network control device may periodically acquire the first number, for example, the network control device may acquire the first number every 5 seconds, or the network control device may acquire the first number every 10 seconds. In addition, the network control device may also obtain the first number when detecting that a new client accesses the first AP. The method for acquiring the first number by the network control device is not limited in the embodiment of the present application.
S302: if the first number is larger than the preset number threshold, determining a target client with the largest distance with the first AP from the clients currently connected with the first AP, and acquiring the distance between the target client and the first AP as the first distance.
Wherein the preset number threshold may be set by a technician empirically. In general, the preset number threshold may be determined according to the maximum number of clients that the first AP supports to connect, and the preset number threshold may be smaller than the maximum number of clients that the first AP supports to connect, so as to guarantee the performance of the first AP. For example, if the maximum number of clients that the first AP supports to connect is 15, the preset number threshold may be 10. The performance of each AP in the wireless network may be different, and therefore, the preset number threshold corresponding to each AP in the wireless network may also be different.
The first AP may start a wireless positioning function to obtain a physical location of a currently connected client, and the network control device may obtain physical locations of clients connected to the first AP through the first AP, and determine a distance between the first AP and each connected client according to the physical location of the first AP.
In this embodiment of the application, after the network control device obtains the first number, the network control device may determine whether the first number is greater than a preset number threshold. When the network control device determines that the first number is greater than the preset number threshold, that is, the number of the clients currently connected to the first AP is large, the network control device may determine, from among the clients connected to the first AP, a client (i.e., a target client) having the largest distance from the first AP, and obtain a distance (i.e., a first distance) between the target client and the first AP, so as to perform subsequent processing.
In addition, if the first number is less than or equal to the preset number threshold, the network control device may not perform any processing.
S303: if the second AP meeting the preset condition exists in other APs except the first AP in the wireless network and the network control equipment is the AC, the first AP is informed to disconnect the target client side, and the target client side is controlled to establish connection with any second AP.
Wherein the preset condition may include: the distance to the target client is less than the first distance.
In this embodiment of the application, if the network control device is an AC in a wireless network, after the AC acquires a first distance and determines a target client, the AC may determine APs (which may be referred to as candidate APs) other than the first AP in the wireless network and acquire a distance between each candidate AP and the target client. Then, the AC may determine whether an AP (i.e., a second AP) whose distance from the target client is smaller than the first distance exists among the candidate APs. When the AC judges that the second AP exists in each AP to be selected, namely the AP capable of establishing connection with the target client exists in each AP to be selected, the AC can inform the first AP to disconnect the target client and control the target client to establish connection with any second AP. The AC may determine one or more second APs.
In this step, the AC may send the identifier of the target client to the first AP to notify the first AP to disconnect the target client, and correspondingly, the first AP may send a deauthentication request frame to the target client to disconnect the target client.
In addition, when the AC determines that the second AP does not exist in the APs to be selected, the AC does not notify the first AP to disconnect from the target client, so as to avoid that the target client cannot establish connection with other APs, which may cause network interruption of the target client.
S304: if the second AP meeting the preset condition exists in other APs except the first AP in the wireless network and the network control equipment is a server, the first AP is informed to disconnect from the target client through an AC in the wireless network, and the target client is controlled to establish connection with any second AP.
Wherein the preset condition may include: the distance to the target client is less than the first distance.
In the embodiment of the present application, the network control device may also be a server, see fig. 3, which is connected to an AC in the wireless network. After the server obtains the first distance and determines the target client, the server may determine the APs to be selected in the wireless network and obtain the distance between each AP to be selected and the target client. Then, the server may determine whether an AP (i.e., a second AP) whose distance from the target client is smaller than the first distance exists in the candidate APs. When the server judges that the second AP exists in each AP to be selected, namely each AP to be selected has the AP capable of establishing connection with the target client, the server can inform the first AP to disconnect the connection with the target client through the AC and control the target client to establish connection with any second AP through the AC. Similarly, the server may determine one or more second APs.
In this step, the server may send a disconnection message carrying the identifier of the first AP and the identifier of the target client to the AC. Correspondingly, after receiving the disconnection message, the AC may notify the first AP to disconnect from the target client according to the identifier of the first AP and the identifier of the target client. The first AP may then send a Deauthentication frame to the target client to disconnect from the target client.
As can be seen, since the distance between the second AP and the target client is less than the first distance, that is, the second AP may establish a connection with the target client, so as to provide a wireless network service for the target client. Therefore, after the connection with the first AP is disconnected, the target client may establish a connection with the second AP, and thus network interruption of the target client may be avoided.
In addition, when the server determines that the second AP does not exist in the APs to be selected, the server does not send a disconnection message carrying the identifier of the first AP and the identifier of the target client to the AC, so as to avoid that the target client cannot establish connection with other APs after disconnecting from the first AP, which causes network interruption of the target client.
Optionally, the method for the network control device to control the target client to establish a connection with any second AP may include the following steps:
and refusing to establish connection with the target client when receiving the connection request message sent by the target client through the APs except the second AP in the wireless network.
The connection Request message is used for the target ue to establish a connection with the AP, for example, the connection Request message may be a Probe Request Association (Probe Request Association) frame.
In this embodiment of the application, if the network control device is an AC, after the AC determines that a second AP exists in each AP to be selected and notifies the first AP to disconnect from the target client, if the AC receives a connection request message sent by the target client through an AP other than the second AP in the wireless network, the AC may discard the connection request message, or the AC may not perform any processing to reject the connection establishment between the target client and the AP other than the second AP in the wireless network, so that the target client can only establish a connection with any AP in the second AP.
In addition, if the network control device is a server, when the server determines that the second AP exists in the APs to be selected, the server may also send the identifier of the second AP to the AC. If the AC receives the connection request message sent by the target client through the APs in the wireless network except the second AP, the AC can discard the connection request message, or the AC does not perform any processing to reject the connection establishment between the target client and the APs in the wireless network except the second AP, so that the target client can only establish the connection with any one of the APs in the second AP.
Correspondingly, if the AC receives the connection request message sent by the target client through the second AP, the AC may notify the second AP to allow connection to be established with the target client, so as to provide the wireless network service for the target client.
In summary, the target client can only establish a connection with any AP in the second APs to obtain higher quality wireless network services.
Optionally, when there are multiple second APs, in order to balance the load of each AP in the wireless network, the network control device may further control the target client to establish a connection with the AP with the smallest number of currently connected clients in each second AP, and accordingly, the method for controlling the target client to establish a connection with any one second AP may include the following steps:
the method comprises the following steps: and taking the AP with the minimum number of the clients currently connected in the second APs as a third AP.
In the application embodiment, when the network control device determines that a second AP exists in each AP to be selected and the determined second APs are multiple, the network control device may obtain the number of clients currently connected to each second AP, and then, the network control device may use the AP with the smallest number of clients currently connected to each second AP as a third AP.
Step two: and refusing to establish connection with the target client when receiving the connection request message sent by the target client through the APs except the third AP in the wireless network.
In this embodiment of the application, if the network control device is an AC, when the AC determines the third AP, if the AC receives a connection request message sent by the target client through an AP other than the third AP in the wireless network, the AC may discard the connection request message, or the AC may not perform any processing to reject the connection establishment between the target client and the AP other than the third AP in the wireless network, so that the target client can only establish a connection with the third AP.
In addition, if the network control device is a server, when the server determines the third AP, the server may further send an identifier of the third AP to the AC. If the AC receives the connection request message sent by the target client through the APs in the wireless network except the third AP, the AC can discard the connection request message, or the AC does not perform any processing to reject the connection establishment between the target client and the APs in the wireless network except the third AP, so that the target client can only establish the connection with the third AP.
Correspondingly, if the AC receives the connection request message sent by the target client through the third AP, the AC may notify the third AP to allow connection to be established with the target client, so as to provide the wireless network service for the target client.
In summary, since the third AP is the AP with the smallest number of connected clients among the APs capable of currently establishing connection with the target client, the target client establishes connection with the third AP, and the load of each AP in the wireless network can be balanced.
Optionally, in order to ensure the integrity of the wireless network, the preset conditions may further include:
the number of the currently connected clients meets a preset number range.
And/or the presence of a gas in the gas,
and the received signal strength of the target client is not less than the signal strength of the target client received by the first AP.
Wherein the preset number range may be set by a skilled person based on experience. In general, the preset number range may be determined according to the maximum number of clients the AP supports connection, for example, the preset number range may be 2/3 smaller than the maximum number of clients the AP supports connection, or the preset number range may be 3/4 smaller than the maximum number of clients the AP supports connection.
In addition, the preset number range may also be determined according to the first number, specifically, the preset number range may be a difference value smaller than the first number and the preset number, the preset number is smaller than the first number, and the numerical value of the preset number may be set by a technician according to experience. For example, the first number may be 15, the preset number may be 4, and the preset number range is less than 11; the first number may be 15, the predetermined number may be 5, and the predetermined number range is less than 10. The value taking method of the preset number range is not limited in the embodiment of the application.
In the embodiment of the present application, the preset condition may include: the distance between the client and the target client is smaller than the first distance, and the number of the currently connected clients meets the preset number range.
If the network control device is an AC, when the AC determines that there is an AP (which may be referred to as a fourth AP) in each AP to be selected, where the distance between the AP and the target client is less than the first distance and the number of currently connected clients satisfies a preset number range, the AC may notify the first AP to disconnect from the target client and control the target client to establish a connection with any fourth AP. One or more fourth APs may be provided.
If the network control device is a server, when the server judges that the fourth AP exists in the APs to be selected, the server can inform the first AP to disconnect from the target client through the AC, and the target client is controlled to establish connection with any fourth AP through the AC.
In addition, the preset conditions may include: the distance between the AP and the target client is smaller than the first distance, and the received signal strength of the target client is not smaller than the signal strength of the target client received by the first AP.
The Signal Strength of the target ue may be represented by a magnitude of a Received Signal Strength Indication (RSSI) of the AP. Generally, the greater the signal strength of the target client received by the AP, the better the quality of data transmission between the AP and the target client.
If the network control device is an AC, when the AC determines that an AP (which may be referred to as a fifth AP) exists in the candidate APs, where the distance from the AP to the target client is less than the first distance, and the received signal strength of the target client is not less than the signal strength of the target client received by the first AP, the AC may notify the first AP to disconnect from the target client, and control the target client to establish a connection with any fifth AP. One or more fifth APs may be provided.
If the network control device is a server, when the server judges that the fifth AP exists in the APs to be selected, the server can inform the first AP of disconnecting from the target client through the AC, and the target client is controlled to establish connection with any fifth AP through the AC.
Further, the preset conditions may include: the distance between the AP and the target client is smaller than the first distance, the number of the currently connected clients meets a preset number range, and the received signal strength of the target client is not smaller than the signal strength of the target client received by the first AP.
If the network control device is an AC, when the AC determines that an AP (which may be referred to as a sixth AP) exists in each AP to be selected, where the distance between the AP and the target client is smaller than the first distance, the number of currently connected clients satisfies the preset number range, and the received signal strength of the target client is not smaller than the signal strength of the target client received by the first AP (the AP may be referred to as a sixth AP), the AC may notify the first AP to disconnect from the target client, and control the target client to establish a connection with any sixth AP. One or more sixth APs may be provided.
If the network control device is a server, when the server judges that the sixth AP exists in the APs to be selected, the server can inform the first AP to disconnect from the target client through the AC, and the target client is controlled to establish connection with any sixth AP through the AC.
Referring to fig. 4, fig. 4 is a flowchart of an example of a roaming control method provided in an embodiment of the present application, where the method may be applied to an AC, where the AC accesses a plurality of APs, and the method may include the following steps:
s401: the number of clients currently connected to a first AP in the plurality of APs is obtained as a first number.
S402: it is determined whether the first number is greater than a preset number threshold, and if the first number is greater than the preset number threshold, S403 is performed.
S403: and determining a target client with the largest distance to the first AP from the clients currently connected with the first AP, and acquiring the distance between the target client and the first AP as the first distance.
S404: and judging whether a second AP with the distance to the target client smaller than the first distance exists in other APs except the first AP in the plurality of APs, and if so, executing S405.
S405: and determining the AP with the minimum number of the currently connected clients as the target AP from the existing second APs.
S406: and judging whether the signal strength of the target client received by the target AP is greater than or equal to the signal strength of the target client received by the first AP or not, and if so, executing S407.
S407: and sending a de-authentication request frame to the target client through the first AP so as to disconnect the first AP from the target client.
S408: and refusing to establish connection with the target client when receiving the connection request message sent by the target client through the APs except the target AP in the plurality of APs.
Based on the roaming control method provided by the embodiment of the application, the AC may obtain the number of the clients currently connected to the first AP among the plurality of APs as the first number, determine, from the clients currently connected to the first AP, a target client having the largest distance to the first AP and obtain the distance between the target client and the first AP as the first distance if the first number is greater than a preset number threshold. If the AC determines that the AP with the distance to the target client side smaller than the first distance and the received signal strength of the target client side not smaller than the signal strength of the target client side received by the first AP exists in other APs except the first AP in the plurality of APs, the AC informs the first AP to disconnect the target client side from the first AP and controls the target client side to establish connection with the determined target AP with the minimum number of the currently connected client sides. The distance between the target AP and the target client is smaller than the first distance, and the number of the clients currently connected with the target AP is smaller. After the connection with the first AP is disconnected, the target client can be connected with the target AP, so that network interruption of the target client can be avoided, and the load of each AP in the wireless network can be balanced.
Corresponding to the embodiment of the method in fig. 3, referring to fig. 5, fig. 5 is a roaming control apparatus provided in an embodiment of the present application, where the apparatus is applied to a network control device in a wireless network, and the apparatus includes:
a first obtaining module 501, configured to obtain, as a first number, the number of clients currently connected to a first AP in the wireless network;
a second obtaining module 502, configured to determine, from the clients currently connected to the first AP, a target client with a largest distance to the first AP if the first number is greater than a preset number threshold, and obtain a distance between the target client and the first AP as a first distance;
a processing module 503, configured to notify the first AP to disconnect from the target client and control the target client to establish a connection with any second AP if a second AP meeting a preset condition exists in other APs in the wireless network except the first AP and the network control device is an access controller AC, where the preset condition includes: the distance to the target client is smaller than the first distance;
the processing module 503 is further configured to, if the second AP exists in other APs in the wireless network except the first AP and the network control device is a server, notify the first AP to disconnect from the target client through an AC in the wireless network and control the target client to establish a connection with any second AP.
Optionally, the preset condition further includes:
the number of the currently connected clients meets a preset number range;
and/or the presence of a gas in the gas,
the received signal strength of the target client is not less than the signal strength of the target client received by the first AP.
Optionally, the processing module 503 is specifically configured to refuse to establish a connection with the target client when a connection request message sent by the target client is received through an AP in the wireless network except the second AP.
Optionally, the number of the second APs is multiple, and the processing module 503 is specifically configured to use an AP with the smallest number of currently connected clients in each second AP as a third AP;
and refusing to establish connection with the target client when receiving the connection request message sent by the target client through the APs except the third AP in the wireless network.
Based on the roaming control device provided by the embodiment of the application, the network control device may obtain the number of the clients currently connected to the first AP in the wireless network, and use the number as the first number, if the first number is greater than a preset number threshold, determine a target client with the largest distance from the first AP from the clients currently connected to the first AP, and obtain the distance between the target client and the first AP as the first distance. If the second AP meeting the preset condition exists in other APs except the first AP in the wireless network and the network control equipment is the AC, the AC can inform the first AP of disconnecting from the target client and control the target client to establish connection with any second AP, and if the network control equipment is the server, the server can inform the first AP of disconnecting from the target client through the AC in the wireless network and control the target client to establish connection with any second AP through the AC. The second AP meets the preset condition and can provide wireless network service for the target client, so that the target client establishes connection with any second AP after the connection with the first AP is disconnected, and the network interruption of the target client can be avoided.
The embodiment of the present application further provides an electronic device, as shown in fig. 6, which includes a processor 601, a communication interface 602, a memory 603, and a communication bus 604, where the processor 601, the communication interface 602, and the memory 603 complete mutual communication through the communication bus 604,
a memory 603 for storing a computer program;
a processor 601, configured to execute the program stored in the memory 603 to enable the electronic device to execute the steps of the roaming control method, the method including:
acquiring the number of clients currently connected with a first AP in the wireless network as a first number;
if the first number is larger than a preset number threshold, determining a target client with the largest distance to the first AP from the clients currently connected with the first AP, and acquiring the distance between the target client and the first AP as a first distance;
if a second AP meeting preset conditions exists in other APs in the wireless network except the first AP and the network control equipment is an Access Controller (AC), informing the first AP to disconnect the target client and controlling the target client to establish connection with any second AP, wherein the preset conditions comprise: the distance to the target client is smaller than the first distance;
if the second AP exists in other APs except the first AP in the wireless network and the network control equipment is a server, the first AP is informed to disconnect from the target client through an AC in the wireless network, and the target client is controlled to establish connection with any second AP.
Optionally, the preset condition further includes:
the number of the currently connected clients meets a preset number range;
and/or the presence of a gas in the gas,
the received signal strength of the target client is not less than the signal strength of the target client received by the first AP.
Optionally, the controlling the target client to establish a connection with any second AP includes:
and refusing to establish connection with the target client when receiving the connection request message sent by the target client through the APs except the second AP in the wireless network.
Optionally, the controlling the target client to establish a connection with any second AP includes:
taking the AP with the minimum number of the clients currently connected in each second AP as a third AP;
and refusing to establish connection with the target client when receiving the connection request message sent by the target client through the APs except the third AP in the wireless network.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In yet another embodiment provided by the present application, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any of the above-mentioned roaming control methods.
In yet another embodiment provided by the present application, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the roaming control methods of the embodiments described above.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, the electronic device, the computer-readable storage medium, and the computer program product embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (8)

1. A roaming control method, applied to a network control device in a wireless network, the method comprising:
acquiring the number of clients currently connected with a first AP in the wireless network as a first number;
if the first number is larger than a preset number threshold, determining a target client with the largest distance to the first AP from the clients currently connected with the first AP, and acquiring the distance between the target client and the first AP as a first distance;
if a second AP meeting preset conditions exists in other APs in the wireless network except the first AP and the network control equipment is an Access Controller (AC), informing the first AP to disconnect the target client and controlling the target client to establish connection with any second AP, wherein the preset conditions comprise: the distance to the target client is smaller than the first distance;
if the second AP exists in other APs except the first AP in the wireless network and the network control equipment is a server, informing the first AP to disconnect the target client through an AC in the wireless network and controlling the target client to establish connection with any second AP;
the preset conditions further include:
the number of the currently connected clients meets a preset number range;
and/or the presence of a gas in the gas,
the received signal strength of the target client is not less than the signal strength of the target client received by the first AP.
2. The method according to claim 1, wherein the controlling the target ue to establish a connection with any second AP comprises:
and refusing to establish connection with the target client when receiving the connection request message sent by the target client through the APs except the second AP in the wireless network.
3. The method according to claim 1, wherein there are a plurality of second APs, and the controlling the target ue to establish a connection with any second AP comprises:
taking the AP with the minimum number of the clients currently connected in each second AP as a third AP;
and refusing to establish connection with the target client when receiving the connection request message sent by the target client through the APs except the third AP in the wireless network.
4. A roaming control apparatus, applied to a network control device in a wireless network, the apparatus comprising:
a first obtaining module, configured to obtain, as a first number, the number of clients currently connected to a first AP in the wireless network;
a second obtaining module, configured to determine, from clients currently connected to the first AP, a target client with a largest distance to the first AP from among the clients currently connected to the first AP if the first number is greater than a preset number threshold, and obtain a distance between the target client and the first AP as a first distance;
a processing module, configured to notify the first AP to disconnect from the target client and control the target client to establish a connection with any second AP if a second AP meeting a preset condition exists in other APs in the wireless network except the first AP and the network control device is an access controller AC, where the preset condition includes: the distance to the target client is smaller than the first distance;
the processing module is further configured to notify the first AP to disconnect from the target client through an AC in the wireless network and control the target client to establish a connection with any second AP if the second AP exists in other APs in the wireless network except the first AP and the network control device is a server;
the preset conditions further include:
the number of the currently connected clients meets a preset number range;
and/or the presence of a gas in the gas,
the received signal strength of the target client is not less than the signal strength of the target client received by the first AP.
5. The apparatus according to claim 4, wherein the processing module is specifically configured to reject connection establishment with the target client when a connection request message sent by the target client is received through an AP in the wireless network except the second AP.
6. The apparatus according to claim 4, wherein the second APs are multiple, and the processing module is specifically configured to use an AP with a minimum number of currently connected clients in each second AP as a third AP;
and refusing to establish connection with the target client when receiving the connection request message sent by the target client through the APs except the third AP in the wireless network.
7. An electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
the memory is used for storing a computer program;
the processor, when executing the program stored in the memory, implementing the method steps of any of claims 1-3.
8. A machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to: carrying out the method steps of any one of claims 1 to 3.
CN201811300934.1A 2018-11-02 2018-11-02 Roaming control method and device Active CN109246784B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811300934.1A CN109246784B (en) 2018-11-02 2018-11-02 Roaming control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811300934.1A CN109246784B (en) 2018-11-02 2018-11-02 Roaming control method and device

Publications (2)

Publication Number Publication Date
CN109246784A CN109246784A (en) 2019-01-18
CN109246784B true CN109246784B (en) 2021-03-26

Family

ID=65080413

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811300934.1A Active CN109246784B (en) 2018-11-02 2018-11-02 Roaming control method and device

Country Status (1)

Country Link
CN (1) CN109246784B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113645669A (en) * 2020-05-11 2021-11-12 杭州萤石软件有限公司 Network access control method and system for wireless terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103339987A (en) * 2011-01-28 2013-10-02 阿尔卡特朗讯 Method for performing a handover of a mobile device
CN103379574A (en) * 2012-04-26 2013-10-30 京信通信系统(中国)有限公司 Switching control method, device and system
WO2014029870A2 (en) * 2012-08-24 2014-02-27 Siemens Aktiengesellschaft Fast switching method, system and client in wireless communication system
CN104301937A (en) * 2013-07-19 2015-01-21 中国电信股份有限公司 Mobile load balancing realization method and base station
CN107105454A (en) * 2017-04-12 2017-08-29 浙江工业大学 A kind of access base station choosing method of wireless sensor network interior joint

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103339987A (en) * 2011-01-28 2013-10-02 阿尔卡特朗讯 Method for performing a handover of a mobile device
CN103379574A (en) * 2012-04-26 2013-10-30 京信通信系统(中国)有限公司 Switching control method, device and system
WO2014029870A2 (en) * 2012-08-24 2014-02-27 Siemens Aktiengesellschaft Fast switching method, system and client in wireless communication system
CN104301937A (en) * 2013-07-19 2015-01-21 中国电信股份有限公司 Mobile load balancing realization method and base station
CN107105454A (en) * 2017-04-12 2017-08-29 浙江工业大学 A kind of access base station choosing method of wireless sensor network interior joint

Also Published As

Publication number Publication date
CN109246784A (en) 2019-01-18

Similar Documents

Publication Publication Date Title
US10812609B2 (en) Service subscription method and system for reporting service change in communications system
JP6479652B2 (en) Handoff between access points in Wi-Fi environment
CN106102143B (en) Application processing method and device
EP3823389B1 (en) User plane resource management method, user plane network element, and control plane network element
CN113795042A (en) Network switching method and terminal
US9883442B2 (en) Offload processing method, control unit, and system
US7509126B2 (en) Method and system for mobile station handovers with different priorities in wireless networks
JP2021129326A (en) Method and apparatus for managing mobility in wireless communication system
US10212048B2 (en) Service offloading method, device, and system
US9788249B2 (en) Wireless communication apparatus, wireless communication method, and computer-readable recording medium
US10805843B2 (en) Network switching processing method and device
US9974063B2 (en) Radio network control method and radio network controller
WO2021213133A1 (en) Method for user equipment switching base stations, and network element device
CN109246784B (en) Roaming control method and device
EP3264828A1 (en) Access point automatic switching method and wireless routing device
EP2782396A1 (en) WLAN authentication restriction
US9894583B2 (en) Traffic steering at handover
CN109819482B (en) Data processing method and device
KR20120070177A (en) Method for handover between ap in wireless lan environment and mobile communication terminal therefor
JP5957494B2 (en) WiFi connection system, WiFi connection terminal, WiFi connection method, and WiFi connection program
KR20210048836A (en) Method and Apparatus for Integrating Network Function
CN111278164A (en) Voice service migration method, device, equipment and medium
WO2020133117A1 (en) Cell connection processing method and device, mobile terminal, and storage medium
WO2020087413A1 (en) Cell information processing method and apparatus, and electronic device and readable storage medium
JP2015142371A (en) User device, base station, and frequency selection method

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