CN116095769B - Roaming switching control method and related device - Google Patents

Roaming switching control method and related device Download PDF

Info

Publication number
CN116095769B
CN116095769B CN202210970248.5A CN202210970248A CN116095769B CN 116095769 B CN116095769 B CN 116095769B CN 202210970248 A CN202210970248 A CN 202210970248A CN 116095769 B CN116095769 B CN 116095769B
Authority
CN
China
Prior art keywords
roaming
value
terminal equipment
switching
rssi
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
CN202210970248.5A
Other languages
Chinese (zh)
Other versions
CN116095769A (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.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210970248.5A priority Critical patent/CN116095769B/en
Publication of CN116095769A publication Critical patent/CN116095769A/en
Application granted granted Critical
Publication of CN116095769B publication Critical patent/CN116095769B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/0085Hand-off measurements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • 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 switching control method and a related device, relating to the field of mobile communication. The method comprises the following steps: determining a first RSSI value of a wireless network accessed by terminal equipment to a first frequency band; predicting a predicted RSSI value when the wireless network of the second frequency band is switched according to the first RSSI value and the new first value; and when the predicted RSSI value meets a first preset condition of switching into the second frequency band, indicating the terminal equipment to execute the (n+1) th roaming switching. Therefore, the roaming switching times of the terminal equipment can be reduced, so that the terminal equipment can have a better network after executing the roaming switching.

Description

Roaming switching control method and related device
Technical Field
The present application relates to the field of mobile communications, and in particular, to a roaming handover control method and related apparatus.
Background
With the development of communication technology, the types of terminal devices used in households are increasing, and when the location of the terminal device changes after the terminal device accesses the router, a roaming handover situation may occur. Because the terminal equipment is sourced from different manufacturers, the wireless communication technology (wireless fidelity, wiFi) performance of each terminal equipment is different, and the service scene used is different, so that the situation that part of terminal equipment experiences are better and part of terminal equipment experiences are not good when roaming is switched occurs.
In some implementations, when the terminal device accesses the router, the terminal device or the router may calculate a received signal strength indication (received signal strength indication, RSSI) value for the terminal device accessing the route, compare the RSSI value with a preset roaming threshold, and perform roaming handover when the RSSI value reaches the roaming threshold.
However, in the above implementation, frequent roaming handover may occur, which affects the user experience.
Disclosure of Invention
The embodiment of the application provides a roaming switching control method and a related device, which can reduce the times of roaming switching of terminal equipment, so that the terminal equipment can have a better network after executing the roaming switching.
In a first aspect, an embodiment of the present application provides a roaming handover control method, where the method includes:
determining a first signal strength indication (RSSI) value in a wireless network accessed by terminal equipment to a first frequency band; predicting a predicted RSSI value for a wireless network switching a second frequency band based on the first RSSI value and a new first value, the new first value being related to one or more of: the method comprises the steps that RSSI values in a wireless network of a first frequency band accessed by terminal equipment before the terminal equipment executes Nth roaming switching, RSSI values in a wireless network of a second frequency band accessed by the terminal equipment after the Nth roaming switching is completed, old first values obtained when the terminal equipment executes the Nth roaming switching, and weights corresponding to applications operated by the terminal equipment when the first RSSI values are obtained; and when the predicted RSSI value meets a first preset condition of switching into the second frequency band, indicating the terminal equipment to execute the (n+1) th roaming switching. Therefore, the roaming switching times of the terminal equipment can be reduced, so that the terminal equipment can have a better network after executing the roaming switching.
In a possible implementation manner, when the new first value is obtained, the weight of the first absolute value is higher than the weight of the old first value obtained when the terminal device executes the nth roaming handover, and the weight of the old first value obtained when the terminal device executes the nth roaming handover is higher than the weight of the application operated by the terminal device when the first RSSI value is obtained; the first absolute value is the absolute value of the difference between the following two RSSI values: the RSSI value in the wireless network of the first frequency band accessed by the terminal equipment before the Nth roaming switch and the RSSI value in the wireless network of the second frequency band accessed by the terminal equipment after the Nth roaming switch is completed. Therefore, the new first value and the first RSSI value have practical calculation significance, so that the predicted RSSI value which more accords with the roaming switching is obtained, and the roaming switching is more reasonably executed.
In a possible implementation manner, applications running in the terminal device are divided into a first type of application, a second type of application and a third type of application; the first class of applications corresponds to the first application weight, the second class of applications corresponds to the second application weight, and the third class of applications corresponds to the third application weight; the first application weight is greater than the second application weight, which is greater than the third application weight. Therefore, the self-learning of the roaming threshold value can be completed according to different application scenes of the terminal equipment, and the roaming switching process is more intelligent.
In a possible implementation manner, predicting a predicted RSSI value when the terminal device switches into the wireless network of the second frequency band according to the first RSSI value and the new first value includes: when the first frequency band is a 2.4G frequency band and the second frequency band is a 5G frequency band, predicting the RSSI value as a difference value between the first RSSI value and a first value obtained when the terminal equipment executes Nth roaming switching; or when the first frequency band is a 5G frequency band and the second frequency band is a 2.4G frequency band, the predicted RSSI value is the sum of the first RSSI value and a first value obtained when the terminal equipment executes the Nth roaming switching. Therefore, roaming switching can be divided into different scenes, so that RSSI values can be predicted more accurately in each scene, and a better network environment can be provided after the roaming switching.
In a possible implementation manner, when the predicted RSSI value meets a first preset condition of cutting into the second frequency band, the method instructs the terminal device to execute the n+1st roaming handover includes: and when the absolute value of the difference between the predicted RSSI value and the first switching threshold value is larger than the second value, indicating the terminal equipment to execute the (n+1) th roaming switching, wherein the first switching threshold value is the switching threshold value corresponding to the second frequency band. Therefore, the times of switching the terminal equipment back and forth among a plurality of wireless APs caused by the severe change of the signal intensity can be reduced, so that the ping-pong effect is improved, the data loss possibly caused by frequent switching is reduced, and the communication quality of the terminal equipment is improved.
In a possible implementation manner, when the predicted RSSI value meets a first preset condition of cutting into the second frequency band, after instructing the terminal device to execute the n+1th roaming handover, the method includes: if the switching duration used by the (n+1) th roaming switching is less than or equal to the preset duration, and/or the RSSI value in the wireless network of the terminal equipment accessed to the second frequency band after the terminal equipment executes the (n+1) th roaming switching is in the first preset interval, recalculating a new first value in the predicted RSSI value calculated when judging whether the terminal equipment executes the (n+2) th roaming switching; or if the switching time length used by the n+1th roaming switching is longer than the preset time length and/or the RSSI value in the wireless network of the terminal equipment accessed to the second frequency band after the terminal equipment executes the n+1th roaming switching is not in the first preset interval, when judging whether the terminal equipment executes the n+2th roaming switching or not, the new first value is not recalculated in the calculated predicted RSSI value, and the first value used in the n+1th roaming switching is adopted. Therefore, the abnormal roaming switching scene can be eliminated, the predicted RSSI value can be accurately calculated, and the roaming switching accuracy can be improved.
In a second aspect, an embodiment of the present application provides another roaming handover control method, where the method includes:
Determining a second signal strength indication (RSSI) value of the terminal equipment accessed into the first wireless access point; determining a second switching threshold value when the terminal equipment is accessed to a second wireless access point; the second handover threshold is related to one or more of: the method comprises the steps that RSSI values in a wireless network of a first wireless access point are accessed by terminal equipment before the terminal equipment executes Nth roaming switching, RSSI values in a wireless network of a second wireless access point are accessed by the terminal equipment after the Nth roaming switching is finished, and weights corresponding to applications operated by the terminal equipment when the second RSSI values are obtained; and when the second RSSI value reaches a second switching threshold value, the terminal equipment is instructed to execute the (n+1) th roaming switching to the second wireless access point. Therefore, the roaming switching times of the terminal equipment among different routes can be reduced, and the accuracy of the switching threshold value and the business fluency during roaming are improved.
In a possible implementation manner, when the second handover threshold is obtained, the weight of the RSSI value in the wireless network of the terminal device accessing the first wireless access point before the nth roaming handover is higher than the weight of the RSSI value in the wireless network of the terminal device accessing the second wireless access point after the nth roaming handover is completed, and the weight of the RSSI value in the wireless network of the terminal device accessing the second wireless access point after the nth roaming handover is completed is higher than the weight corresponding to the application executed by the terminal device when the second RSSI value is obtained. Therefore, the second switching threshold value can be more consistent with the switching threshold value of roaming switching, the comparability between the second RSSI value and the second switching threshold value is ensured, and the roaming switching is more reasonably executed.
In a possible implementation manner, applications running in the terminal device are divided into a fourth type of application, a fifth type of application and a sixth type of application; the fourth class of applications corresponds to a fourth application weight, the fifth class of applications corresponds to a fifth application weight, and the sixth class of applications corresponds to a sixth application weight; the fourth application weight is greater than the fifth application weight, which is greater than the sixth application weight. Therefore, the self-learning of the roaming threshold value can be completed according to different application scenes of the terminal equipment, so that the roaming threshold value is more suitable for the actual roaming switching scene, and the roaming switching process is more intelligent.
In a possible implementation manner, after the terminal device is instructed to perform the n+1th roaming handover, the method includes: if the second absolute value is in the second preset interval, recalculating a second switching threshold value when judging whether the terminal equipment executes the (N+2) -th roaming switching or not; the second absolute value is the absolute value of the difference of the two RSSI values: the RSSI value in the wireless network of the first wireless access point is accessed by the terminal equipment before the Nth roaming switching and the RSSI value in the wireless network of the second wireless access point is accessed by the terminal equipment after the Nth roaming switching is finished; or if the second absolute value is not in the second preset interval, the second switching threshold value is not recalculated when judging whether the terminal equipment executes the (n+2) th roaming switching or not, and the second switching threshold value used when adopting the (n+1) th roaming switching is adopted. Therefore, the scene of abnormal roaming switching can be eliminated, and the second switching threshold value can be calculated more accurately, so that the accuracy of roaming switching is improved.
In a third aspect, an embodiment of the present application provides a roaming handover control apparatus, where the roaming handover control apparatus may be an electronic device, or may be a chip or a chip system in the electronic device, and the electronic device may include a terminal device or a wireless AP device, etc. The apparatus for roaming handover control may include a processing unit. The processing unit is configured to implement the first aspect or any method related to processing in any possible implementation manner of the first aspect. When the apparatus for roaming handover control is an electronic device, the processing unit may be a processor. The apparatus for roaming handover control may further include a storage unit, which may be a memory. The storage unit is configured to store instructions, and the processing unit executes the instructions stored by the storage unit, so that the electronic device implements a method described in the first aspect or any one of possible implementations of the first aspect. The processing unit may be a processor when the means for roaming handover control is a chip or a system of chips within the electronic device. The processing unit executes instructions stored by the storage unit to cause the electronic device to implement a method as described in the first aspect or any one of the possible implementations of the first aspect. The memory unit may be a memory unit (e.g., a register, a cache, etc.) within the chip, or a memory unit (e.g., a read-only memory, a random access memory, etc.) within the electronic device that is external to the chip.
The processing unit is configured to determine a first signal strength indicator RSSI value in a wireless network in which the terminal device accesses the first frequency band; predicting a predicted RSSI value for a wireless network switching a second frequency band based on the first RSSI value and a new first value, the new first value being related to one or more of: the method comprises the steps that RSSI values in a wireless network of a first frequency band accessed by terminal equipment before the terminal equipment executes Nth roaming switching, RSSI values in a wireless network of a second frequency band accessed by the terminal equipment after the Nth roaming switching is completed, old first values obtained when the terminal equipment executes the Nth roaming switching, and weights corresponding to applications operated by the terminal equipment when the first RSSI values are obtained; and when the predicted RSSI value meets a first preset condition of switching into the second frequency band, indicating the terminal equipment to execute the (n+1) th roaming switching.
In a possible implementation manner, the processing unit is configured to, when obtaining the new first value, obtain a weight of the first absolute value that is higher than a weight of an old first value obtained when the terminal device performs the nth roaming handover, and obtain a weight of the old first value obtained when the terminal device performs the nth roaming handover that is higher than a weight of an application run by the terminal device when obtaining the first RSSI value; the first absolute value is the absolute value of the difference between the following two RSSI values: the RSSI value in the wireless network of the first frequency band accessed by the terminal equipment before the Nth roaming switch and the RSSI value in the wireless network of the second frequency band accessed by the terminal equipment after the Nth roaming switch is completed.
In a possible implementation manner, the processing unit is configured to predict a predicted RSSI value when the terminal device switches into the wireless network of the second frequency band according to the first RSSI value and the new first value; the processing unit is specifically further configured to set the first application weight greater than the second application weight, where the second application weight is greater than the third application weight.
In a possible implementation manner, the processing unit is specifically configured to predict, according to the first RSSI value and the new first value, a predicted RSSI value when the terminal device switches into the wireless network of the second frequency band; the processing unit is specifically further configured to predict, when the first frequency band is a 2.4G frequency band and the second frequency band is a 5G frequency band, that the RSSI value is a difference between the first RSSI value and a first value obtained when the terminal device performs the nth roaming handover; or when the first frequency band is a 5G frequency band and the second frequency band is a 2.4G frequency band, the predicted RSSI value is the sum of the first RSSI value and a first value obtained when the terminal equipment executes the Nth roaming switching.
In a possible implementation manner, the processing unit is configured to instruct the terminal device to perform the n+1st roaming handover when the predicted RSSI value meets a first preset condition of cutting into the second frequency band; the processing unit is specifically further configured to instruct the terminal device to perform the n+1st roaming handover when the absolute value of the difference between the predicted RSSI value and the first handover threshold is greater than the second value, where the first handover threshold is a handover threshold corresponding to the second frequency band.
In a possible implementation manner, the processing unit is further configured to instruct, when the predicted RSSI value meets a first preset condition of switching into the second frequency band, the terminal device to perform the n+1st roaming handover, and if a handover duration used by the n+1st roaming handover is less than or equal to a preset duration, and/or the RSSI value in the wireless network in which the terminal device accesses the second frequency band after the terminal device performs the n+1st roaming handover is in the first preset interval, recalculate a new first value in the predicted RSSI value calculated when determining whether the terminal device performs the n+2st roaming handover; or if the switching time length used by the n+1th roaming switching is longer than the preset time length and/or the RSSI value in the wireless network of the terminal equipment accessed to the second frequency band after the terminal equipment executes the n+1th roaming switching is not in the first preset interval, when judging whether the terminal equipment executes the n+2th roaming switching or not, the new first value is not recalculated in the calculated predicted RSSI value, and the first value used in the n+1th roaming switching is adopted.
In a fourth aspect, an embodiment of the present application provides another apparatus for controlling roaming handover, where the apparatus for controlling roaming handover may be an electronic device, or may be a chip or a chip system in the electronic device, and the electronic device may include a terminal device or a wireless AP device, etc. The apparatus for roaming handover control may include a processing unit. The processing unit is configured to implement the second aspect or any method related to processing in any possible implementation manner of the second aspect. When the apparatus for roaming handover control is an electronic device, the processing unit may be a processor. The apparatus for roaming handover control may further include a storage unit, which may be a memory. The storage unit is configured to store instructions, and the processing unit executes the instructions stored by the storage unit, so that the electronic device implements a method described in the second aspect or any one of possible implementations of the second aspect. The processing unit may be a processor when the means for roaming handover control is a chip or a system of chips within the electronic device. The processing unit executes instructions stored by the storage unit to cause the electronic device to implement a method as described in the second aspect or any one of the possible implementations of the second aspect. The memory unit may be a memory unit (e.g., a register, a cache, etc.) within the chip, or a memory unit (e.g., a read-only memory, a random access memory, etc.) within the electronic device that is external to the chip.
The processing unit is configured to determine a second signal strength indicator, RSSI, value for the terminal device to access the first wireless access point; determining a second switching threshold value when the terminal equipment is accessed to a second wireless access point; the second handover threshold is related to one or more of: the method comprises the steps that RSSI values in a wireless network of a first wireless access point are accessed by terminal equipment before the terminal equipment executes Nth roaming switching, RSSI values in a wireless network of a second wireless access point are accessed by the terminal equipment after the Nth roaming switching is finished, and weights corresponding to applications operated by the terminal equipment when the second RSSI values are obtained; and when the second RSSI value reaches a second switching threshold value, the terminal equipment is instructed to execute the (n+1) th roaming switching to the second wireless access point.
In a possible implementation manner, the processing unit is configured to, when the second handover threshold is obtained, make the weight of the RSSI value in the wireless network where the terminal device accesses the first wireless access point before the nth roaming handover higher than the weight of the RSSI value in the wireless network where the terminal device accesses the second wireless access point after the nth roaming handover is completed, and make the weight of the RSSI value in the wireless network where the terminal device accesses the second wireless access point after the nth roaming handover is completed higher than the weight corresponding to the application operated by the terminal device when the second RSSI value is obtained.
In a possible implementation manner, the processing unit is configured to divide applications running in the terminal device into a fourth type of application, a fifth type of application and a sixth type of application; the fourth class of applications corresponds to a fourth application weight, the fifth class of applications corresponds to a fifth application weight, and the sixth class of applications corresponds to a sixth application weight; the fourth application weight is greater than the fifth application weight, which is greater than the sixth application weight.
In a possible implementation manner, the processing unit is further configured to instruct the terminal device to re-calculate the second handover threshold when determining whether the terminal device performs the n+2th roaming handover if the second absolute value is in the second preset interval after the n+1th roaming handover is performed; the second absolute value is the absolute value of the difference of the two RSSI values: the RSSI value in the wireless network of the first wireless access point is accessed by the terminal equipment before the Nth roaming switching and the RSSI value in the wireless network of the second wireless access point is accessed by the terminal equipment after the Nth roaming switching is finished; or if the second absolute value is not in the second preset interval, the second switching threshold value is not recalculated when judging whether the terminal equipment executes the (n+2) th roaming switching or not, and the second switching threshold value used when adopting the (n+1) th roaming switching is adopted.
In a fifth aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, the memory being configured to store code instructions, the processor being configured to execute the code instructions to perform the method described in the first aspect or any one of the possible implementations of the first aspect, or to perform the method described in the second aspect or any one of the possible implementations of the second aspect.
In a sixth aspect, embodiments of the present application provide a computer readable storage medium, in which a computer program or instructions are stored which, when run on a computer, cause the computer to perform the roaming handover control method described in the first aspect or any one of the possible implementations of the first aspect, or in the second aspect or any one of the possible implementations of the second aspect.
In a seventh aspect, embodiments of the present application provide a computer program product comprising a computer program which, when run on a computer, causes the computer to perform the roaming handover control method described in the first aspect or any one of the possible implementations of the first aspect, or in the second aspect or any one of the possible implementations of the second aspect.
In an eighth aspect, the present application provides a chip or chip system comprising at least one processor and a communication interface, the communication interface and the at least one processor being interconnected by wires, the at least one processor being adapted to execute a computer program or instructions to perform the roaming handover control method as described in the first aspect or any one of the possible implementations of the first aspect, or in the second aspect or any one of the possible implementations of the second aspect. The communication interface in the chip can be an input/output interface, a pin, a circuit or the like.
In one possible implementation, the chip or chip system described above further includes at least one memory, where the at least one memory has instructions stored therein. The memory may be a memory unit within the chip, such as a register, a cache, etc., or may be a memory unit of the chip (e.g., a read-only memory, a random access memory, etc.).
It should be understood that the third to eighth aspects of the present application correspond to the technical solutions of the first and second aspects of the present application, and the advantages obtained by each aspect and the corresponding possible embodiments are similar, and are not repeated.
Drawings
Fig. 1 is a schematic structural diagram of a wireless AP device according to an embodiment of the present application;
fig. 2 is a schematic diagram of roaming handover between co-routed 2.4G and 5G networks according to an embodiment of the present application;
fig. 3 is a schematic diagram of roaming handover between cross routes according to an embodiment of the present application;
fig. 4 is a flow chart of a roaming handover control method according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a data flow through a main channel in a TCP/IP protocol stack according to an embodiment of the present application;
fig. 6 is a schematic diagram of an interface call relationship related to a service identification SA module according to an embodiment of the present application;
fig. 7 is a flowchart of another roaming handover control method according to an embodiment of the present application;
fig. 8 is a flowchart of another roaming handover control method according to an embodiment of the present application;
fig. 9 is a schematic diagram of an interface call relationship related to another SA module according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a roaming handover control device according to an embodiment of the present application.
Detailed Description
In order to facilitate the clear description of the technical solutions of the embodiments of the present application, the following simply describes some terms and techniques involved in the embodiments of the present application:
1. Roaming: refers to the process by which a client switches a wireless connection from one wireless Access Point (AP) to another AP, while allowing the wireless connection to remain. The client may be any terminal with a wireless access function, and the wireless access point may refer to a wireless AP device such as a wireless router capable of providing a wireless access service. The wireless AP device may support a wireless network of multiple frequency bands, e.g., the wireless router may support the 2.4G frequency band, the 5G frequency band, etc.
2. RSSI value: the RSSI value represents the strength of a signal in a wireless network and may be used to determine the connection quality of the network. The RSSI value may decay as the distance of the terminal device from the wireless access point increases, and a closer RSSI value to zero may indicate a higher signal strength. It should be understood that the higher the RSSI signal strength is, the better the signal strength is, and the lower the RSSI signal strength is, but rather the better the signal strength is, and the better the signal strength is. For example: the RSSI may be in the range of-60 to-40 dbm. If the RSSI is kept too low, the uplink signal can be too weak, so that communication fails; if the RSSI continues to be too high, the uplink signal may be too strong, and the interference between the wireless access points may be too large, which may also affect communication.
3. Ping-pong effect: refers to a back and forth change between two different states. In the field of mobile communication systems, it means that if the signal strength of two wireless APs changes drastically in a certain area, a client will switch back and forth between the two AP devices, resulting in a so-called "ping-pong effect".
4. Intelligent service identification: also known as service awareness (service awareness, SA), an application feature extraction and matching technique, can identify an application by extracting certain specific fields in a message or behavioral features of the message and matching with a library of service awareness features.
5. Netfilter framework: providing a complete set of hook function management mechanisms may enable such things as packet filtering, network address translation (network address translation, NAT) and protocol type based connection tracking. Netfilter's architecture may be one in which some detection points are placed at several locations throughout the network flow, and some processing functions are registered at each detection point for processing.
6. Other terms
In embodiments of the present application, the words "first," "second," and the like are used to distinguish between identical or similar items that have substantially the same function and effect. For example, the first chip and the second chip are merely for distinguishing different chips, and the order of the different chips is not limited. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
It should be noted that, in the embodiments of the present application, words such as "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
In the embodiments of the present application, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a alone, a and B together, and B alone, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b, or c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or plural.
7. Wireless AP device
The wireless AP device refers to a gateway device capable of providing a wireless access service, and for example, the wireless AP device may include a wireless access point, a wireless router, a wireless gateway, a wireless bridge, a server, a workstation terminal, a repeater, a hub, a transmission medium, and the like, which is not limited by the embodiment of the present application. The wireless AP equipment is an access point for a mobile computer user to enter a wired network, is mainly used in broadband families, buildings and parks, and can cover tens of meters to hundreds of meters.
By way of example, fig. 1 shows a schematic diagram of a wireless AP device.
It should be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the wireless AP device. In other embodiments of the application, the wireless AP device may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The wireless AP device layering architecture divides the software into several layers, each layer having a distinct role and division of labor. The layers communicate with each other through a software interface. The wireless AP device may include a configuration tool layer (configuration tool layer), a coordination layer (coordination layer), a kernel layer, a core service layer (core service layer), a service layer (service layer), an adaptation layer (adaptation layer), a driver layer (driver layer), and an operating system layer (operational systems layer, OS).
The configuration tool layer may include a TR096 protocol module, an Upnp module, a CLI module, a WEB module, and the like.
The TR096 protocol module includes an application layer management protocol for providing a general framework, a message specification, a management method, a data model, etc. for performing management configuration on the home network device.
The universal plug and play (universal plug and play, UPnP) module contains a set of universal plug and play network protocols. The protocol is used to enable various devices in the home network and the corporate network to be seamlessly connected to each other and to simplify the implementation of the associated network.
A command line interface (command line interface, CLI) module may type an interface of executable instructions under a user prompt. The CLI interface may be an interface provided by conventional wireless AP products. The CLI has the advantages of low use requirement, easy use and convenient function expansion, and particularly when a plurality of wireless AP devices need to be configured, the configuration of a plurality of APs can be completed through the function.
The WEB module can be used for managing the relevant configuration of the user network and providing network information browsing service.
The coordination layer may include a Mic process.
The Mic (many integrated core, mic) process is an Intel integrated many-core architecture, and a processor integrating a plurality of cores provides highly parallel computing power, and can realize development and maintenance of a code.
The kernel layer may include a configuration layer (configuration layer) and a control layer (control layer), and mainly performs configuration and management of related functions such as a firewall (firewall), a Virtual Private Network (VPN), wiFi, and a Domain Name System (DNS). In the embodiment of the application, the TCP/IP protocol stack in the firewall module can be used for receiving the data stream transmitted by the WiFi driving module.
The core service layer provides some basic services such as: HTTP communication service, SSL network security transmission service, xml document transmission service, sqlite database service, ffmpeg audio/video processing service, etc.
The hypertext transfer protocol (hyper text transfer protocol, HTTP) is an application-layer request and response protocol specification that can run on top of TCP. HTTP may specify what messages a client might send to a server and what responses get. Like other application layer protocols, is a protocol that is intended to implement a particular class of applications, and whose functions are implemented by a particular application running in user space.
The network security protocol of the secure sockets layer (secure socket layer, SSL) is a security protocol implemented on the transmission communication protocol (TCP/IP), employing public key technology. SSL supports a wide variety of types of networks while providing three basic security services.
Extensible markup language (extensible markup language, XML) is used to mark data and define data types, is a source language that allows users to define their own markup language, can provide a uniform way to describe and exchange structured data independent of applications or providers, is a cross-platform, content-dependent technology in a network environment, and can simplify the transmission of document information to the network.
sqlite is a lightweight database with low resources, and in embedded devices, it may be sufficient to only require a few hundred K of memory. The sqlite can support mainstream operating systems such as Windows/Linux/Unix and the like, can be combined with a plurality of program languages, and has high processing speed.
ffmpeg is a set of open source computer programs that can be used to record, convert digital audio, video, and convert it into streams. ffmpeg provides a complete solution for recording, converting and streaming audio and video, including an advanced audio/video codec library libavcodec, in which many codes are developed de novo in order to guarantee high portability and codec quality.
The service layer mainly provides services of firewall (firewall), virtual Private Network (VPN), wiFi, domain Name System (DNS) and other related functions.
The adaptation layer is a bottom interaction layer between the user and the network, and can provide a communication protocol between the end user and the network by the layer, package and hide the details of the borrowing.
The driver layer provides an operation interface of the external device for the upper layer program, and realizes a driver of the device. The upper program can call the interface of the drive no matter the internal implementation of the operating equipment. The driver layer may include a display driver, a flash driver, an audio driver, a WiFi driver, a network driver, and the like. The WiFi driving module in the embodiment of the application can be used for receiving the data stream of the terminal equipment.
The operating system layer may be a computer program that manages the device hardware and software resources. The operating system may handle basic transactions such as managing and configuring memory, prioritizing the supply and demand of system resources, controlling input devices and output devices, operating networks, and managing file systems.
With the development of communication technology, the types of terminal devices used in households are increasing. In the scenario where a plurality of wireless AP devices are deployed, by default, the AP is switched when the terminal device signal is weak to be disconnected, and the network is very unstable when the wireless signal is weak, so that the roaming threshold (RSSI threshold) of the AP device may be configured so that the AP is automatically switched when the connected wireless signal is weak.
The terminal device may be any form of electronic device, for example, the electronic device may include a handheld device having a wireless communication function, an in-vehicle device, and the like. For example, some electronic devices are: a mobile phone, a tablet, a palm, a notebook, a mobile internet device (mobile internet device, MID), a wearable device, a Virtual Reality (VR) device, an augmented reality (augmented reality, AR) device, a wireless terminal in industrial control (industrial control), a wireless terminal in unmanned (self driving), a wireless terminal in teleoperation (remote medical surgery), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation security (transportation safety), a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), a cellular phone, a cordless phone, a session initiation protocol (session initiation protocol, SIP) phone, a wireless local loop (wireless local loop, WLL) station, a personal digital assistant (personal digital assistant, PDA), a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal in fifth generation mobile communication technology (5th generation mobile communication technology,5G), or a terminal in a future evolution of land-based mobile communication technology (PLMN, a mobile internet of things (823) and the like, without limiting the application, a system of the present application, a mobile internet of things (PLMN (internet of things).
Roaming handover situations may occur when the terminal device location changes. With the router as the wireless AP device and the mobile phone as the terminal device, for example, as shown in fig. 2, when one router is deployed, the position change of the terminal device may cause roaming handover between 2.4G and 5G of the same route; or as shown in fig. 3, when multiple routers are deployed, a change in the location of the terminal device may also cause a roaming handoff between routes. Because different wireless AP devices come from different manufacturers, wiFi performance corresponding to each device is different, and power is different, partial terminal devices experience better when roaming switching is caused, and partial terminal devices experience bad.
In some implementations, the router receives a signal strength indication RSSI of the wireless network signal, compares the received signal strength indication RSSI value with a preset roaming threshold, and performs a roaming handover when the RSSI value reaches the roaming threshold. By comparing the signal strength indication RSSI with a preset fixed roaming threshold, frequent roaming handover and even ping-pong effect may occur, which may also result in failure to guarantee the smoothness of the service when the terminal roams.
Therefore, the roaming switch control method provided by the embodiment of the application can predict the possible RSSI value of the terminal equipment after the roaming switch is executed before the roaming switch of the terminal equipment is indicated, and indicate the terminal equipment to execute the roaming switch when the predicted RSSI value meets the condition, so that the number of times of the roaming switch of the terminal equipment can be reduced, and the terminal equipment can have better network after executing the roaming switch.
The predicted RSSI value may relate to an RSSI value before and after the last switching of the terminal device, a scene service that the terminal device is running, and the embodiment of the present application is not specifically limited. The scene service that the terminal device is running may include an application or the like that the terminal device is running.
The following describes a roaming handover control method according to an embodiment of the present application in detail through specific embodiments. The following embodiments may be combined with each other or implemented independently, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 4 shows a roaming handover control method according to an embodiment of the present application. The method comprises the following steps:
s401, determining a first signal strength indication RSSI value in a wireless network of which the terminal equipment is accessed to a first frequency band.
In an application scenario of the embodiment of the present application, a terminal device may switch between different frequency bands of the same router, and the application scenario may be referred to as a same-route scenario. For example, the router may support a wireless network of a first frequency band and a wireless network of a second frequency band. For example, the wireless network of the first frequency band may refer to a wireless network of the 2.4G frequency band, and the wireless network of the second frequency band may refer to a wireless network of the 5G frequency band. Or, for example, the wireless network of the first frequency band may refer to a wireless network of the 5G frequency band, and the wireless network of the second frequency band may refer to a wireless network of the 2.4G frequency band. Of course, the first frequency band and the second frequency band may not be limited to 2.4G or 5G, and may be any other frequency band, which is not particularly limited in the embodiment of the present application.
The first signal strength indication RSSI value may be an RSSI value obtained by the terminal device and sent to the wireless AP device when the terminal device accesses the first frequency band; or the first RSSI value may also be an RSSI value calculated by the wireless AP device when the terminal device accesses the first frequency band. In a possible implementation manner, the first RSSI value may be obtained by detecting a terminal device or a chip in the wireless AP device, and the embodiment of the present application does not limit a calculation manner of the RSSI value.
S402, predicting a predicted RSSI value when the terminal device is switched into a wireless network of a second frequency band according to the first RSSI value and a new first value, wherein the new first value relates to one or more of the following: the method comprises the steps of accessing the terminal equipment to an RSSI value in a wireless network of a first frequency band before the terminal equipment executes Nth roaming switching, accessing the terminal equipment to an RSSI value in a wireless network of a second frequency band after the Nth roaming switching is completed, obtaining an old first value when the terminal equipment executes the Nth roaming switching, and obtaining a weight corresponding to an application operated by the terminal equipment when the first RSSI value is obtained.
It will be appreciated that in the context of an access router, the terminal device may often experience a shift in location, etc., and the terminal device may perform multiple roaming handovers between different frequency bands of the router. In one possible implementation, each time the terminal device roams, the router or the terminal device may obtain a first value corresponding to the roaming handoff. In another possible implementation, the router or the terminal device may obtain the first value corresponding to the roaming handover meeting the certain condition when the roaming handover of the terminal device meets the certain condition, and if the roaming handover of the terminal device does not meet the certain condition, the first value obtained by the last roaming handover may be used instead of calculating the first value of the roaming handover not meeting the certain condition.
It should be noted that, for convenience of description, in the embodiment of the present application, the last roaming switch is defined as the nth roaming switch, the first value corresponding to the nth roaming switch is defined as the old first value, the roaming switch that may be executed this time is defined as the n+1st roaming switch, the first value corresponding to the n+1st roaming switch is defined as the new first value, in some scenarios, the new first value may be equal to the old first value, and the new and old values are only used to distinguish the front and rear roaming switches, and do not necessarily constitute different definitions.
In the embodiment of the present application, the RSSI value in the wireless network where the terminal device accesses the first frequency band before the terminal device performs the nth roaming handover, the RSSI value in the wireless network where the terminal device accesses the second frequency band after the nth roaming handover is completed, and the old first value obtained when the terminal device performs the nth roaming handover may be values obtained and stored during the nth roaming handover. The manner in which the old first value obtained when the terminal device performs the nth roaming handover is similar to that in which the new first value is obtained will be described in detail in the following embodiments, and will not be described here.
In the embodiment of the application, the weight corresponding to the application running by the terminal equipment can be determined according to the application type, and the weights corresponding to different application types can be different.
For example, the types of applications running by the terminal device can be classified according to different time delay sensitivity requirements of different applications on the data packet, and the higher the time delay sensitivity requirement is, the larger the corresponding weight value is. For example, when the requirement of the application on the time delay sensitivity is higher than the preset time delay upper limit, the application can be considered to have higher requirement on the time delay sensitivity, and the corresponding weight value is larger; when the application time delay sensitivity requirement is within the preset time delay range, the application time delay sensitivity requirement can be considered to be general, and the corresponding weight value is smaller than the weight value corresponding to the application with higher time delay sensitivity requirement; when the time delay sensitivity requirement of the application is lower than the preset time delay lower limit, the application can be considered to have lower time delay sensitivity requirement, and the corresponding weight value is smaller than the weight value corresponding to the general application of the time delay sensitivity requirement. The preset time delay upper limit value and the preset time delay lower limit value can be obtained according to experience, and the specific value of the preset time delay upper limit and the specific value of the preset time delay lower limit are not limited in the embodiment of the application.
Of course, the application types can also classify the information security requirements of the data packet differently by different applications, and the higher the information security requirements are, the larger the corresponding weight value is; the application type can also be determined by the user-defined application level, and the higher the application level is, the larger the corresponding weight value is. The embodiment of the application does not limit the determination mode of the application type and the setting of the weight. It will be appreciated that if the terminal device runs multiple types of applications simultaneously, the maximum or second largest, etc., weight value may be used for calculation.
In calculating the new first value, any of the following may be used for example:
in a possible implementation manner, before the terminal device performs the n+1th roaming handover, the new first value may be obtained by a difference value between the following two items, or an absolute value of the difference value, or performing a certain operation on the absolute value of the difference value: the RSSI value in the wireless network which is accessed to the first frequency band before the Nth roaming switch and stored in the terminal equipment or the wireless AP equipment, and the RSSI value in the wireless network which is accessed to the second frequency band after the Nth roaming switch.
In another possible implementation, the new first value may be obtained by weighting the first absolute value and the old first value before the terminal device performs the n+1th roaming handover. The first absolute value may be an RSSI value in the wireless network accessing the first frequency band before the nth roaming switch stored in the terminal device or the wireless AP device, and a difference absolute value of the RSSI value in the wireless network accessing the second frequency band after the nth roaming switch. The old first value may be a new first value stored in the terminal device or the wireless AP device that is obtained when the nth roaming handover is performed. It will be appreciated that when the terminal device performs a first roaming handover, the old first value may be a default initial value, which may be empirically set. Embodiments of the present application are not limited in this regard as to the particular default initial value of the old first value.
In yet another possible implementation, before the terminal device performs the n+1st roaming handover, the new first value may be obtained by weighting the first absolute value, the old first value, and a weight corresponding to an application executed by the terminal device when the first RSSI value is obtained. The application weights can be obtained by referring to the determination manner of the application weights, and the embodiments of the present application are not described herein.
In the embodiment of the present application, predicting the RSSI value according to the first RSSI value and the new first value may include: obtaining a predicted RSSI value according to the sum of the first RSSI value and the new first value; or obtaining a predicted RSSI value according to the difference value between the first RSSI value and the new first value; or obtaining a predicted RSSI value according to the sum of the first RSSI value and the new first value or the multiple of the difference value.
S403, when the predicted RSSI value meets a first preset condition of cutting in a second frequency band, the terminal equipment is instructed to execute the (n+1) th roaming switching.
The embodiment of the application does not limit the first preset condition of the cut-in second frequency band. In one possible implementation, the first preset condition may include comparing an RSSI value before the roaming handover with a preset roaming handover range, and performing the roaming handover when the RSSI value before the roaming handover is within the preset roaming handover range. The preset roaming switching range may be set empirically, and the embodiment of the present application is not limited herein for a specific range of the preset roaming switching.
In another possible implementation manner, the first preset condition may include that the RSSI value before the roaming handover is compared with a preset threshold, where the preset threshold may be a constant, or may be a different threshold corresponding to a different terminal device, or may be a continuously updated threshold. The updating threshold value can be obtained by subtracting a preset value from an RSSI value before roaming switching and comparing the RSSI adjustment value with a preset RSSI lower limit; if the RSSI adjustment value is larger than the preset RSSI lower limit, setting the updating threshold value as the RSSI lower limit; otherwise, the updating threshold is set as an RSSI adjustment value, when the RSSI value before roaming switching reaches the updating threshold, roaming switching is carried out, and the embodiment of the application does not limit the determination mode of the preset threshold.
In another possible implementation manner, the first preset condition may be that the terminal device is instructed to perform roaming handover when the absolute value of the difference between the predicted RSSI value and the handover threshold value corresponding to the second frequency band is greater than the second value. The switching threshold and the second value may be set according to experience, and different terminal devices may correspond to different switching thresholds.
It can be understood that in the embodiment of the present application, the magnitude of the predicted RSSI value is equal to the magnitude of the switching threshold corresponding to the second frequency band, so that the predicted RSSI value is comparable to the switching threshold. Therefore, when calculating the predicted RSSI value, if a certain process is performed on the data, for example, a magnification or reduction multiple, an increase or decrease of a certain value, etc., the switching threshold may also be correspondingly processed based on an empirical value, which is not limited in the embodiment of the present application.
In summary, the roaming handover control method provided by the embodiment of the application can predict the possible predicted RSSI value of the terminal device after the terminal device performs the roaming handover before the terminal device is instructed to perform the roaming handover, and instruct the terminal device to perform the roaming handover when the predicted RSSI value meets the condition. Meanwhile, different roaming thresholds can be set for different terminal equipment, so that roaming switching can be performed according to the difference of WiFi performance and the like of different equipment, and different terminal equipment can have better roaming switching states. Therefore, the roaming switching times of the terminal equipment can be reduced, the terminal equipment can have a better network after executing the roaming switching, and the service fluency during roaming is improved.
Optionally, on the basis of the embodiment corresponding to fig. 4, when the new first value is obtained in S402, the weight of the first absolute value is higher than the weight of the old first value obtained when the terminal device performs the nth roaming handover, and the weight of the old first value obtained when the terminal device performs the nth roaming handover is higher than the weight of the application run by the terminal device when the first RSSI value is obtained; the first absolute value is the absolute value of the difference between the following two RSSI values: the RSSI value in the wireless network of the first frequency band accessed by the terminal equipment before the Nth roaming switch and the RSSI value in the wireless network of the second frequency band accessed by the terminal equipment after the Nth roaming switch is completed.
In the roaming handover scenario, the strength of the signal strength RSSI value affects the quality of the network connection and the smoothness of the service, and an excessively high or excessively low RSSI value may affect the communication quality of the terminal device. And the RSSI value has a relatively greater impact on network quality and traffic smoothness than the first value and traffic weight. The service weight can be regarded as a weighted control strategy in roaming handover, and the influence of the service weight on the network quality and the service smoothness is smaller than the signal strength RSSI value and the first value, so that the signal strength RSSI value is considered more by the quality of the network and whether the service is smooth or not. Therefore, in the embodiment of the application, the weight of the first absolute value is set to be higher than the weight corresponding to the old first value, and the weight corresponding to the old first value is higher than the weight corresponding to the application, so that the roaming switching strategy is more met, and the terminal equipment can have a better network after executing the roaming switching.
Illustratively, the new first value satisfies the following formula:
Δrssi new =|rssi trigger -rssi online |×k 1 +Δrssi old ×k 2 +bw×k 3
wherein, rssi trigger For accessing terminal equipment to a wireless network of a first frequency band before an Nth roaming switchRSSI value, rsti online For the RSSI value in the wireless network with the terminal device accessing the second frequency band after the Nth roaming switch is completed, deltarssi old For the old first value obtained when the terminal device executes the Nth roaming switch, bw is the weight corresponding to the application operated by the terminal device when the first RSSI value is obtained, and k 1 A first weighting coefficient k corresponding to the first absolute value 2 A second weighting coefficient k corresponding to the old first value 3 And obtaining a third weighting coefficient corresponding to the weight corresponding to the application operated by the terminal equipment when the first RSSI value is obtained.
It can be appreciated that when the terminal device performs a first roaming handover, Δrsti old The value may be set to a default initial value, which may be empirically set, for example, to 10dbm. For Deltassi old The embodiments of the present application are not limited herein. In addition, k 1 、k 2 And k 3 Can be of the same order of magnitude by k 1 、k 2 And k 3 The magnitude of the new first value obtained by weighting can be equal to the magnitude of the first RSSI value, so that the calculated predicted RSSI value and the corresponding switching threshold value when the terminal equipment is accessed to the second frequency band can be in the same magnitude, and the predicted RSSI value and the switching threshold value are comparable. If the magnitude of the new first value is too large or too small, it may affect the accuracy of the predicted RSSI value and thus the performance of the roaming handoff.
In a possible implementation, k 1 、k 2 And k 3 Can be respectively in [0,1 ]]Within a range of (1), and satisfy k 1 、k 2 And k 3 And is 1, where k 1 Greater than k 2 ,k 2 Greater than k 3 . Exemplary, k 1 Can take the value of 0.75, k 2 Can take the value of 0.15, k 3 The value can be 0.1.k (k) 1 、k 2 And k 3 The values of (2) may be empirically set, and embodiments of the application are not limited in this regard.
In the embodiment of the application, the first absolute value, the old first value and the application weight are respectively provided with different weights, and k is satisfied 1 、k 2 And k 3 The new first value and the first RSSI value have practical calculation significance on the same magnitude, so that the predicted RSSI value which is more in line with roaming switching is obtained, the predicted RSSI value is ensured to have comparability with switching conditions, and the roaming switching is performed more reasonably.
Optionally, on the basis of the embodiment corresponding to fig. 4, the applications running in the terminal device in S402 are classified into a first type of application, a second type of application and a third type of application; the first class of applications corresponds to the first application weight, the second class of applications corresponds to the second application weight, and the third class of applications corresponds to the third application weight; the first application weight is greater than the second application weight, which is greater than the third application weight.
In one possible implementation of identifying an application, the application run by the terminal device may identify the application by an associated identification technique. The association recognition technology can be used for recognizing the application based on the multi-channel protocol, and the application recognition of the multi-channel protocol message is realized by extracting the application information of the data channel from the control channel message and recording the application information in the application recognition association table so as to recognize the data channel message according to the association table and mark the data channel message as the corresponding application.
In another possible implementation manner of identifying an application, an application running by the terminal device may identify the application through a behavior identification technology, and the behavior identification technology may identify an application carried by a message by extracting a behavior feature of the message. The corresponding behavior characteristics of different applications are different, and unique behavior characteristics can be extracted through analysis by grabbing massive flow samples. The behavior recognition technology realizes application recognition by comprehensively examining and selecting various behavior characteristic indexes.
In another possible implementation manner of identifying the application, the application run by the terminal device may be identified by the intelligent service identification SA module, and the application carried by the service flow is determined by identifying the feature information in the message. For example, different applications may employ different protocols, and different application protocols may have respective characteristics, which may be a particular port, a particular string, or a particular bit sequence. Besides detecting the traditional five-tuple information of the message, the SA module can also acquire more characteristics for identifying the application by detecting the application layer information of the message. Embodiments of the present application are not limited in this regard as to the particular manner in which the application is identified.
Illustratively, taking the SA module to identify the application run by the terminal device as an example, the SA module may be a separate module of an internet protocol/transmission control protocol (internet protocol/transmission control protocol, IP/TCP) stack operating in a Linux kernel, which may intelligently identify the application according to the input data stream.
For example, as shown in FIG. 5, in the IP/TCP protocol stack at the kernel layer, the Netfilter framework may have 5 key nodes for data flow, including: PRE-ROUTING nodes, ROUTING decision nodes, FORWARD nodes, POST-ROUTING nodes, local_in nodes, and local_out nodes. Wherein the PRE-ROUTING node may be a processing node before ROUTING, mainly processing destination address translation (destination network address translation, DNAT), and adding a specific flag to the data packet; the routing decision node can decide whether the data message is forwarded or used for the router itself, such as Web service, etc.; the FORWARD node may be a key node for forwarding a message, including data packet parsing, converting a data packet into quintuple information, and calling an identification engine interface to complete message identification; the POST-ROUTING node may be a message ROUTING POST-processing node that may perform source address translation (source network address translation, SNAT); the local_in node may be an ingress to a routing LOCAL traffic processing node and the local_out node may be an egress to the routing LOCAL traffic processing node. While the SA module can operate at the FORWARD node of the Netfilter framework in the IP/TCP protocol stack.
It will be appreciated that the terminal device may FORWARD data through the PRE-ROUTING node, the FORWARD node, and the POST-ROUTING node. The SA module in the FORWARD node can identify the application corresponding to the data flow by taking the data flow as a unit, and record and save the identification result. Wherein the data stream may include quintuple information: source IP address, destination IP address, source port, destination port, transmission control protocol/user datagram protocol (transmission control protocol/user datagram protocol, TCP/UDP).
For example, the SA module may identify the application corresponding to the data flow by calling the relevant interface, as shown in fig. 6, and the SA module may perform service identification by calling the identification flow entry function. The SA module can analyze the IP information of the data message, convert the message into quintuple information, and search or newly establish flow table information corresponding to the quintuple in the SA module according to the quintuple information. The flow table information may include identification result information such as whether an application is identified as completed, a result of identifying an application type, a specific application identified, and the like. If the SA module finds that the application is not identified, the data stream identification can be performed, the stream table information is filled, and the application identification operated by the terminal equipment is completed.
In the embodiment of the application, the application types operated by the terminal equipment can be classified according to different time delay sensitivity requirements of different applications on the data packet, and the higher the time delay sensitivity requirement is, the larger the corresponding weight value is. For example, the application with high requirement on delay sensitivity may be a first type of application, for example, a game application, an online live broadcast application, a video call application, or a net class application, where the first application weight is relatively large, for example, the first application weight may take a value of 40. The application requiring more general time delay sensitivity can be a second type of application, such as a payment type application, and the corresponding second application weight is smaller than the first application weight, for example, the second application weight can be 20. The application with low requirement on the time delay sensitivity can be a third application, such as a video playing application, a text news application, a social chat application, a shopping application, or an application downloading application, and the corresponding third application weight is smaller than the second application weight, for example, the third application weight can take a value of 10. It will be appreciated that if the terminal device has no running application at the time of roaming handover, it may be considered that there is no delay sensitivity requirement at this time, and the corresponding application weight may be zero. Specific values of the first application weight, the second application weight, and the third application weight may be set empirically, which embodiments of the present application are not limited herein.
The embodiment of the application combines roaming switching with the application type operated by the terminal equipment, can realize self-learning of the roaming threshold according to different application scenes of the terminal equipment, is more in line with the actual roaming switching scene, and ensures that the roaming switching process is more intelligent, thereby improving the user experience.
Optionally, based on the embodiment corresponding to fig. 4, predicting the predicted RSSI value when the terminal device switches to the wireless network in the second frequency band according to the first RSSI value and the new first value in S402 may include: when the first frequency band is a 2.4G frequency band and the second frequency band is a 5G frequency band, predicting the RSSI value as a difference value between the first RSSI value and a first value obtained when the terminal equipment executes Nth roaming switching; or when the first frequency band is a 5G frequency band and the second frequency band is a 2.4G frequency band, the predicted RSSI value is the sum of the first RSSI value and a first value obtained when the terminal equipment executes the Nth roaming switching.
In the roaming handover scenario, the RSSI values of different frequency bands may be different in the same distance. For example, the RSSI value of the 2.4G band and the RSSI value of the 5G band may be different, and even if the distance between the terminal device and the wireless access point when 2.4G is connected is the same as the distance between the terminal device and the wireless access point when 5G is connected, the RSSI value corresponding to 2.4G and the RSSI value corresponding to 5G may be different. The RSSI value in a wireless network of the 2.4G band is typically somewhat greater than the RSSI value in a wireless network of the 5G band. Therefore, when calculating the predicted RSSI value, frequency band discrimination can be performed.
Taking the 2.4G frequency band and the 5G frequency band as examples, when the first frequency band is the 2.4G frequency band and the second frequency band is the 5G frequency band, the following formula may be satisfied:
rssi 5 =rssi 2.4,current -Δrssi
when the first frequency band is a 5G frequency band and the second frequency band is a 2.4G frequency band, the following formula may be satisfied:
rssi 2.4 =rssi 5,current +Δrssi
wherein, rssi 2.4,current To predict the corresponding first signal strength indication RSSI value, RSSI, of the 5G RSSI value 5,current To predict the corresponding first signal strength indication RSSI value when the RSSI value is 2.4G, Δrsi is the first RSSI prediction difference.
It will be appreciated that the predicted RSSI value may be obtained by summing the first RSSI value and/or the first RSSI predicted difference, or a multiple, or some other operation. The specific calculation mode of the predicted RSSI value can be adjusted correspondingly according to different service scenarios, and the embodiment of the present application is not limited herein.
In the embodiment of the application, roaming switching can be divided into different scenes according to different signal strength RSSI values corresponding to different frequency bands, so that the RSSI value can be predicted more accurately in each scene, and a better network environment can be provided after the roaming switching.
Optionally, on the basis of the embodiment corresponding to fig. 4, when the predicted RSSI value in S403 meets the first preset condition of cutting into the second frequency band, the instructing the terminal device to execute the n+1st roaming handover may include: and when the absolute value of the difference between the predicted RSSI value and the first switching threshold value is larger than the second value, indicating the terminal equipment to execute the (n+1) th roaming switching, wherein the first switching threshold value is the switching threshold value corresponding to the second frequency band.
It will be appreciated that for a scenario with multiple wireless APs, when the wireless signal network is unstable, switching other wireless APs may be considered under the condition that the switching threshold is met. For example, the network signal connecting the 5G band is typically stronger than the network signal connecting the 2.4G band, so that when the network signal of the 5G band is weaker and satisfies the 2.4G handoff threshold, the handoff to the 2.4G can be roamed, and when the network signal of the 2.4G band is stronger and satisfies the 5G handoff threshold, the handoff to the 5G can be roamed.
In the embodiment of the application, when the network signal of the 5G frequency band weakens and is to be cut to 2.4G, the RSSI value after being switched to 2.4G can be predicted first, and when the RSSI value is smaller than the second value than the switching threshold value of 2.4G, the terminal equipment is instructed to execute the (n+1) th roaming switching. Or when the network signal in the 2.4G frequency band becomes stronger to be switched to 5G, the RSSI value after being switched to 5G can be predicted first, and when the RSSI value is larger than the switching threshold value of 5G by a second value, the terminal equipment is instructed to execute the (n+1) th roaming switching. Wherein different terminal devices may set different handover thresholds, the second value may be empirically set, e.g. the second value may be set to 5dbm. Embodiments of the present application are not limited in this regard as to the particular handover threshold and the particular second value.
In the embodiment of the application, the number of times of switching the terminal equipment back and forth among a plurality of wireless APs caused by severe change of a plurality of signal strengths can be reduced by comparing the absolute value of the difference between the predicted RSSI value and the switching threshold value with the second value, so that the ping-pong effect is improved, the data loss possibly caused by frequent switching is reduced, and the communication quality of the terminal equipment is improved.
Optionally, on the basis of the embodiment corresponding to fig. 4, after instructing the terminal device to execute the n+1th roaming handover when the predicted RSSI value in S403 meets the first preset condition of cutting into the second frequency band, the method may further include: if the switching duration used by the (n+1) th roaming switching is less than or equal to the preset duration, and/or the RSSI value in the wireless network of the terminal equipment accessed to the second frequency band after the terminal equipment executes the (n+1) th roaming switching is in the first preset interval, recalculating a new first value in the predicted RSSI value calculated when judging whether the terminal equipment executes the (n+2) th roaming switching; or if the switching time length used by the n+1th roaming switching is longer than the preset time length and/or the RSSI value in the wireless network of the terminal equipment accessed to the second frequency band after the terminal equipment executes the n+1th roaming switching is not in the first preset interval, when judging whether the terminal equipment executes the n+2th roaming switching or not, the new first value is not recalculated in the calculated predicted RSSI value, and the first value used in the n+1th roaming switching is adopted.
In the embodiment of the application, when roaming switching occurs, when the switching time exceeds the preset time, abnormal roaming switching may occur, for example, the mobile phone side may disconnect the network by itself. At this time, the abnormal data of the roaming switch may affect the calculation accuracy of the predicted RSSI value of the next roaming switch, and the roaming switch may be used as the abnormal roaming switch, and the switching duration may be used as the abnormal value, so that the learning of the current roaming switch is not performed. The preset duration may be set according to experience, for example, the roaming switching duration may be set to 3 seconds, and if the roaming switching time exceeds 3 seconds, the device is connected to the online, and the current roaming switching data is not used for learning. The specific preset duration value is not limited herein.
After the terminal device performs roaming handover, the RSSI value in the wireless network of the second frequency band to which the terminal device is connected needs to be within a reasonable range, and the network corresponding to the RSSI value being too large or too small may not be normal, which may cause the terminal device to be unable to complete communication. If the RSSI value in the wireless network accessed by the terminal equipment to the second frequency band is not in the first preset interval, the RSSI value after switching can be regarded as not being in a reasonable range. If the calculation of the predicted RSSI value of the next roaming switch is performed by using the RSSI value, the accuracy of the predicted RSSI value may be affected, and the current roaming switch may be used as an abnormal roaming switch, and the RSSI value may be used as an abnormal value, so that the learning of the current roaming switch is not performed. The reasonable range of the RSSI value can be set empirically, for example, the RSSI value in a wireless network of the terminal device accessing the 2.4G frequency band can be set in the range of [ -80dbm, -31dbm ], and the RSSI value in a wireless network of the terminal device accessing the 5G frequency band can be set in the range of [ -90dbm, -41dbm ]. It may be understood that the RSSI value in the first preset interval may be a value after being preprocessed, including a sum operation, a difference operation, or a multiple operation performed on the RSSI value, which is a reasonable range of the RSSI value after the roaming handover is completed.
In the embodiment of the application, the roaming time length and the RSSI value after roaming switching are reasonably limited, so that the scene of abnormal roaming switching can be eliminated, and the predicted RSSI value can be accurately calculated. The roaming switching control is more reasonable, the accuracy of the roaming switching is improved, and therefore the user experience is improved.
It will be appreciated that the corresponding and related embodiments of fig. 4 illustrate roaming handoffs of a terminal device in a co-routing scenario. The terminal device may also perform roaming handover between different routers, and the application scenario may be referred to as a cross-route scenario.
Fig. 7 shows another roaming handover control method according to an embodiment of the present application. The method can explain the process of roaming switching between different routes of the terminal equipment, and comprises the following steps:
s701, determining a second signal strength indication RSSI value of the terminal device accessed into the first wireless access point.
The second signal strength indication RSSI value may be an RSSI value obtained by the terminal device and sent to the wireless AP device when the terminal device accesses the first wireless access point; or the second RSSI value may also be an RSSI value calculated by the wireless AP device when the terminal device accesses the first wireless access point. In a possible implementation manner, the second RSSI value may be obtained by detecting a chip in the terminal device or the wireless AP device, and the embodiment of the present application does not limit the calculation manner of the RSSI value.
S702, determining a second switching threshold value when the terminal equipment is accessed to a second wireless access point; the second handover threshold is related to one or more of: the method comprises the steps of executing RSSI value in a wireless network of a first wireless access point by a terminal device before the N-th roaming switching, accessing the RSSI value in a wireless network of a second wireless access point by the terminal device after the N-th roaming switching is finished, and obtaining weight corresponding to an application operated by the terminal device when the second RSSI value is obtained.
In the embodiment of the present application, when the terminal device performs roaming handover, the first router to which the terminal device is connected before the roaming handover may be a first wireless access point, and the second router to which the terminal device is to be connected may be a second wireless access point.
In the embodiment of the present application, the last roaming switch is defined as the nth roaming switch, and the roaming switch that may be executed this time is defined as the n+1th roaming switch. The RSSI value in the wireless network where the terminal device accesses the first wireless access point before the terminal device performs the nth roaming handover and the RSSI value in the wireless network where the terminal device accesses the second wireless access point after the nth roaming handover is completed may be values obtained and stored during the nth roaming handover, and the embodiment of the present application is not limited in a specific manner.
In the embodiment of the application, the weight corresponding to the application running by the terminal equipment can be determined according to the application type, and the weights corresponding to different application types can be different. The specific application type and the weight corresponding to the application are similar to those described in S402 of the embodiment corresponding to fig. 4, and are not described herein.
In calculating the second handover threshold, any of the following may be used as an example:
in a possible implementation manner, before the terminal device executes the n+1th roaming handover, the second handover threshold may be obtained by performing a certain operation on the RSSI value of the first wireless access point that is stored in the terminal device or the wireless AP device and is accessed before the N-th roaming handover, and a specific operation manner may be adjusted according to different scenarios.
In another possible implementation manner, before the terminal device performs the n+1st roaming handover, the second handover threshold may be obtained by weighting: the RSSI value in the wireless network accessed to the first wireless access point before the Nth roaming switch and the RSSI value in the wireless network accessed to the second wireless access point after the Nth roaming switch are stored in the terminal equipment or the wireless AP equipment.
In yet another possible implementation manner, before the terminal device performs the n+1st roaming handover, the second handover threshold may be weighted by the following three terms: the method comprises the steps of storing an RSSI value in a wireless network accessed to a first wireless access point before Nth roaming switching in a terminal device or wireless AP device, storing an RSSI value in a wireless network accessed to a second wireless access point after Nth roaming switching, and obtaining a weight corresponding to an application operated by the terminal device when the second RSSI value is obtained. The application weights can be obtained by referring to the determination method of the application weights in S402 in the embodiment corresponding to fig. 4, and the embodiment of the present application is not described herein.
And S703, when the second RSSI value reaches a second switching threshold value, the terminal equipment is instructed to execute the (n+1) th roaming switching to the second wireless access point.
In the embodiment of the present application, regarding the switching condition of the hand-in second wireless access point, the determining manner of the first preset condition in S403 in the embodiment corresponding to fig. 4 may be referred to, and the embodiment of the present application is not described herein again. For example, the handover condition of the hand-in second wireless access point may include comparing the RSSI value before the roaming handover with the roaming handover threshold, and performing the roaming handover when the RSSI value before the roaming handover reaches the roaming handover threshold. The roaming handover threshold may be a fixed threshold set in advance according to experience, or may be different handover thresholds set according to different terminal devices, or may be a variable value, for example, may be a second handover threshold in the embodiment of the present application. With respect to the specific value of the roaming handoff threshold, embodiments of the present application are not limited herein.
It can be appreciated that in the embodiment of the present application, the magnitude of the second RSSI value is equal to the magnitude of the second switching threshold, so that the second RSSI value is comparable to the second switching threshold. Therefore, when calculating the second switching threshold, if a certain process, such as an enlargement or reduction multiple, an increase or decrease of a certain value, etc., is performed on the data, the second RSSI value may also be processed accordingly, which is not limited in the embodiment of the present application.
In summary, the another roaming handover control method provided by the embodiment of the present application may determine, before indicating the roaming handover of the terminal device, whether the terminal device meets the handover threshold corresponding to the handover of the terminal device to the second wireless access point. Because different terminal equipment corresponds to different switching threshold values, through the continuous adjustment of the switching threshold values in the switching process, the method can meet the condition that different terminal equipment can be in a better network state after roaming switching is executed, and improves the business fluency during roaming.
Optionally, on the basis of the embodiment corresponding to fig. 7, when the second handover threshold is obtained in S702, the weight of the RSSI value in the wireless network of the terminal device accessing the first wireless access point before the nth roaming handover is higher than the weight of the RSSI value in the wireless network of the second wireless access point after the nth roaming handover is completed, and the weight of the RSSI value in the wireless network of the terminal device accessing the second wireless access point after the nth roaming handover is completed is higher than the weight corresponding to the application executed by the terminal device when the second RSSI value is obtained.
In the roaming handover scenario, the strength of the signal strength may affect the stability of the wireless network, so that roaming handover of the terminal device between multiple wireless access points may occur. Compared with the service weight, the influence of the strength of the signal strength on whether roaming switching occurs is relatively larger, and the signal strength RSSI value of the terminal equipment accessed to the first wireless access point before the roaming switching is considered more in the setting of the switching threshold value. The service weight can be regarded as a weighted control strategy in roaming switching, and the influence of the service weight on the roaming switching is smaller. Therefore, in the embodiment of the application, the weight of the RSSI value of the terminal equipment which is accessed to the first wireless access point before roaming switching is higher than the weight of the RSSI value of the terminal equipment which is accessed to the second wireless access point after the roaming switching is finished, and the weight of the RSSI value of the terminal equipment which is accessed to the second wireless access point after the roaming switching is finished is higher than the weight corresponding to the application, so that the roaming switching strategy is more accordant, and a better network can be provided after the terminal equipment executes the roaming switching.
Illustratively, the second handover threshold satisfies the following formula:
rssi thd =rssi trigger ×k 4 +rssi online ×k 5 +bw×k 6
wherein, rssi trigger For RSSI value in wireless network of terminal device access first wireless access point before Nth roaming switch online For RSSI value in wireless network of terminal equipment accessing second wireless access point after Nth roaming switch is completed, bw is weight corresponding to application operated by terminal equipment when obtaining second RSSI value, k 4 For the fourth weighting coefficient, k, corresponding to the RSSI value in the wireless network of the first wireless access point accessed by the terminal equipment before the Nth roaming switch 5 A fifth weighting coefficient corresponding to the RSSI value in the wireless network of the terminal equipment accessed to the second wireless access point after the Nth roaming switch is completed,k 6 And a sixth weighting coefficient of the weight corresponding to the application operated by the terminal equipment when the second RSSI value is obtained.
It will be appreciated that k 4 、k 5 And k 6 Can be of the same order of magnitude by k 4 、k 5 And k 6 The magnitude of the weighted second switching threshold may be comparable to the magnitude of the second RSSI value, such that satisfying the calculated second RSSI value may be on the same magnitude as the second switching threshold, thereby making the two comparable. If k is 4 、k 5 And k 6 Too large or too small an order of magnitude may affect the accuracy of the second handoff threshold and thus the performance of the roaming handoff.
In a possible implementation, k 4 、k 5 And k 6 Can be respectively in [0,1 ]]Within a range of (1), and satisfy k 4 、k 5 And k 6 And is 1, where k 4 Greater than k 5 ,k 5 Greater than k 6 . Exemplary, k 4 Can take the value of 0.6, k 5 Can take the value of 0.3, k 6 The value can be 0.1.k (k) 4 、k 5 And k 6 The values of (2) may be set empirically, respectively, and embodiments of the present application are not limited herein.
In the embodiment of the application, k is 4 、k 5 And k 6 Respectively set different values and satisfy k 4 、k 5 And k 6 The second switching threshold value can be more consistent with the switching threshold value of roaming switching on the same magnitude, so that the second RSSI value is ensured to be comparable with the second switching threshold value, and the roaming switching is more reasonably executed.
Optionally, on the basis of the embodiment corresponding to fig. 7, the applications running in the terminal device of S702 are classified into a fourth type of application, a fifth type of application and a sixth type of application; the fourth class of applications corresponds to a fourth application weight, the fifth class of applications corresponds to a fifth application weight, and the sixth class of applications corresponds to a sixth application weight; the fourth application weight is greater than the fifth application weight, which is greater than the sixth application weight.
It should be noted that, the definition of the fourth class of applications, the fifth class of applications and the sixth class of applications is to distinguish the expressions of the first class of applications, the second class of applications and the third class of applications in the corresponding embodiment of fig. 4, so as to avoid confusion in the expressions. The specific type of the fourth type of application and the application that may correspond to the description of the first type of application, the specific type of the fifth type of application and the application that may correspond to the description of the second type of application, and the specific type of the sixth type of application and the application that may correspond to the description of the third type of application.
The definition of the fourth application weight, the fifth application weight and the sixth application weight is adapted to distinguish the first application weight, the second application weight and the third application weight in the corresponding embodiment of fig. 4, so as to avoid confusion in the expressions. The fourth application weight may be determined with reference to the first application weight, the fifth application weight may be determined with reference to the second application weight, and the sixth application weight may be determined with reference to the third application weight.
In the embodiment of the present application, the implementation manner of identifying the application and the determination of the application weight may be referred to the detailed description in S402 of the embodiment corresponding to fig. 4, which is not repeated herein.
The embodiment of the application combines the roaming switching threshold condition with the application type operated by the terminal equipment, can realize the self-learning of the roaming threshold according to different application scenes of the terminal equipment, is more in line with the actual roaming switching scene, and ensures that the roaming switching process is more intelligent, thereby improving the user experience.
Optionally, on the basis of the embodiment corresponding to fig. 7, after the instructing terminal device of S703 performs the n+1th roaming handover, the method may further include: if the second absolute value is in the second preset interval, recalculating a second switching threshold value when judging whether the terminal equipment executes the (N+2) -th roaming switching or not; the second absolute value is the absolute value of the difference of the two RSSI values: the RSSI value in the wireless network of the first wireless access point is accessed by the terminal equipment before the Nth roaming switching and the RSSI value in the wireless network of the second wireless access point is accessed by the terminal equipment after the Nth roaming switching is finished; or if the second absolute value is not in the second preset interval, the second switching threshold value is not recalculated when judging whether the terminal equipment executes the (n+2) th roaming switching or not, and the second switching threshold value used when adopting the (n+1) th roaming switching is adopted.
In the embodiment of the present application, after the terminal device completes the roaming handover, the second absolute value needs to be within a reasonable range. If the difference between the RSSI value in the wireless network of the terminal equipment accessed to the first wireless access point before roaming switching and the RSSI value in the wireless network of the terminal equipment accessed to the second wireless access point after the roaming switching is completed is smaller than the lower limit of the second preset interval, the fluctuation of the normal signal intensity can be regarded, and the learning of the second switching threshold value is not carried out. If the difference between the RSSI value in the wireless network of the terminal equipment accessed to the first wireless access point before roaming switching and the RSSI value in the wireless network of the terminal equipment accessed to the second wireless access point after the roaming switching is completed is larger than the upper limit of the second preset interval, the roaming switching can be used as abnormal roaming switching, and the learning of the second switching threshold is not carried out. Wherein the second preset interval may be empirically set, for example, the second preset interval may be set in the range of [5dbm,15dbm ]. It may be understood that the RSSI value in the second preset interval may be a value after being preprocessed, including a sum operation, a difference operation, or a multiple operation performed on the RSSI value, and the like, specifically, the range of the second preset interval is not limited herein.
In the embodiment of the application, the scene of abnormal roaming switching can be eliminated by reasonably limiting the second absolute value after roaming switching, and the second switching threshold value can be calculated more accurately. The roaming switching control is more reasonable, and the accuracy of the roaming switching is improved.
Specifically, fig. 8 is a flow chart of another roaming handover control method according to an embodiment of the present application. The specific steps can be as follows:
s801, a WiFi driving module of the wireless AP equipment receives a data stream of the terminal equipment.
S802, the WiFi driving module submits the received data stream to a TCP/IP protocol stack of a kernel layer. The specific data flow may be implemented by way of related interface calls, for example.
S803, the intelligent service identification SA module intelligently identifies the application executed by the terminal equipment according to the service data flow, and records the identification result into the file.
Illustratively, the identification process of the application may be implemented by invoking the associated interface. As shown in fig. 9, the data of the terminal device may be SA service identified through the intelligent service identification portal. The SA module can call the function for identifying the flow inlet, and can search/establish flow table information corresponding to the quintuple in the SA module according to the quintuple information. The flow table information may include identification result information such as: whether the application is identified as being completed, the result of identifying the application type, the specific application identified, etc. If the found corresponding flow table information finds that the application is not identified, the SA module can complete the identification of the application operated by the terminal equipment by identifying the data flow and filling the flow table information.
S804, when the roaming threshold self-learning module executes roaming switching, the executed application can be obtained from the SA module, the application types are divided, and the application types are matched with different application weights. Meanwhile, combining the RSSI value before roaming switching and the RSSI value after roaming switching, and obtaining a new roaming switching threshold according to a calculation formula of the second switching threshold.
S805, the roaming threshold self-learning module informs the roaming switching control module of the new learned roaming threshold, the roaming switching control module judges whether the second RSSI value meets the second switching threshold, if yes, the roaming switching is executed, and the next round of roaming switching threshold self-learning is started.
It may be understood that the process of calculating the predicted RSSI value according to the first RSSI value and the new first value may be completed by the roaming threshold self-learning module, and the process of determining whether the predicted RSSI value meets the first preset condition may be completed by the roaming handover control module, and specific calculation and determination processes are described with reference to the corresponding embodiment of fig. 4, which is not repeated herein.
According to the roaming switching control method provided by the embodiment of the application, the second switching threshold value is calculated more accurately through continuously learning the switching threshold value after each roaming switching, so that the roaming switching threshold value of each terminal device is continuously close to the optimal value, the accuracy of roaming switching is improved, and the user experience is improved.
The foregoing description of the solution provided by the embodiments of the present application has been mainly presented in terms of a method. To achieve the above functions, it includes corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the present application may be implemented in hardware or a combination of hardware and computer software, as the method steps of the examples described in connection with the embodiments disclosed herein. Whether a function is implemented as hardware or computer software driven hardware 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.
According to the embodiment of the application, the device for realizing the roaming switching control method can be divided into the functional modules according to the method example, for example, each functional module can be divided corresponding to each function, and two or more functions can be integrated into one processing module. The integrated modules may be implemented in hardware or in software functional modules. It should be noted that, in the embodiment of the present application, the division of the modules is schematic, which is merely a logic function division, and other division manners may be implemented in actual implementation.
Fig. 10 is a schematic structural diagram of a chip according to an embodiment of the present application. Chip 100 includes one or more (including two) processors 101, communication lines 102, communication interfaces 103, and memory 104.
In some implementations, the memory 104 stores the following elements: executable modules or data structures, or a subset thereof, or an extended set thereof.
The method described in the above embodiments of the present application may be applied to the processor 101 or implemented by the processor 101. The processor 101 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in the processor 101 or instructions in the form of software. The processor 101 may be a general-purpose processor (e.g., a microprocessor or a conventional processor), a digital signal processor (digital signal processing, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), an off-the-shelf programmable gate array (field-programmable gate array, FPGA) or other programmable logic device, discrete gates, transistor logic, or discrete hardware components, and the processor 101 may implement or perform the methods, steps, and logic diagrams associated with the disclosed processes in embodiments of the application.
The steps of the method disclosed in connection with the embodiments of the present application may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a state-of-the-art storage medium such as random access memory, read-only memory, programmable read-only memory, or charged erasable programmable memory (electrically erasable programmable read only memory, EEPROM). The storage medium is located in the memory 104, and the processor 101 reads the information in the memory 104, and in combination with its hardware, performs the steps of the method described above.
The processor 101, the memory 104, and the communication interface 103 may communicate with each other via the communication line 102.
In the above embodiments, the instructions stored by the memory for execution by the processor may be implemented in the form of a computer program product. The computer program product may be written in the memory in advance, or may be downloaded in the form of software and installed in the memory.
Embodiments of the present application also provide a computer program product comprising one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wired (e.g., coaxial cable, fiber optic, digital subscriber line (digital subscriber line, DSL), or wireless (e.g., infrared, wireless, microwave, etc.), or semiconductor medium (e.g., solid state disk, SSD)) or the like.
The embodiment of the application also provides a computer readable storage medium. The methods described in the above embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. Computer readable media can include computer storage media and communication media and can include any medium that can transfer a computer program from one place to another. The storage media may be any target media that is accessible by a computer.
As one possible design, the computer-readable medium may include compact disk read-only memory (CD-ROM), RAM, ROM, EEPROM, or other optical disk memory; the computer readable medium may include disk storage or other disk storage devices. Moreover, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, digital versatile disc (digital versatile disc, DVD), floppy disk and blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processing unit of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

Claims (14)

1. A roaming handover control method, the method comprising:
determining a first signal strength indication (RSSI) value in a wireless network accessed by terminal equipment to a first frequency band;
predicting a predicted RSSI value for the terminal device when switching into a wireless network of a second frequency band based on the first RSSI value and a new first value, the new first value being related to one or more of: the method comprises the steps that before the terminal equipment executes Nth roaming switching, the terminal equipment accesses an RSSI value in a wireless network of a first frequency band, after the Nth roaming switching is completed, the terminal equipment accesses an RSSI value in a wireless network of a second frequency band, an old first value obtained when the terminal equipment executes the Nth roaming switching, and a weight corresponding to an application operated by the terminal equipment when the first RSSI value is obtained; when the new first value is obtained, the weight of the first absolute value is higher than the weight of the old first value obtained when the terminal equipment executes the Nth roaming switch, and the weight of the old first value obtained when the terminal equipment executes the Nth roaming switch is higher than the weight corresponding to the application operated by the terminal equipment when the first RSSI value is obtained; wherein, the first absolute value is the absolute value of the difference between the following two RSSI values: the RSSI value of the wireless network accessed to the first frequency band by the terminal equipment before the Nth roaming switching and the RSSI value of the wireless network accessed to the second frequency band by the terminal equipment after the Nth roaming switching is finished;
And when the predicted RSSI value meets a first preset condition of cutting in the second frequency band, indicating the terminal equipment to execute the (n+1) th roaming switching.
2. The method according to claim 1, characterized in that the new first value obtained when the terminal device performs the n+1th roaming handover satisfies the following formula:
Δrssi new =|rssi trigger -rssi online |×k 1 +Δrssi old ×k 2 +bw×k 3
wherein, rssi trigger For the RSSI value in the wireless network of the first frequency band to which the terminal equipment is connected before the Nth roaming switch, RSSI online For the RSSI value in the wireless network of the terminal device accessing the second frequency band after the Nth roaming switch is completed, deltarssi old For the old first value obtained when the terminal device executes the nth roaming handover, bw is the weight corresponding to the application executed by the terminal device when the first RSSI value is obtained, and k 1 A first weighting coefficient k corresponding to the first absolute value 2 For the second weighting coefficient, k, corresponding to the old first value 3 And obtaining a third weighting coefficient of the weight corresponding to the application operated by the terminal equipment when the first RSSI value is obtained.
3. The method of claim 2, wherein k 1 、k 2 And k 3 The sum of (2) is 1.
4. A method according to any of claims 1-3, characterized in that the applications run in the terminal device are divided into a first type of application, a second type of application and a third type of application;
The first type of application corresponds to a first application weight, the second type of application corresponds to a second application weight, and the third type of application corresponds to a third application weight;
the first application weight is greater than the second application weight, which is greater than the third application weight.
5. The method of any of claims 1-4, wherein the predicted RSSI value is a difference between the first RSSI value and the new first value when the first frequency band is a 2.4G frequency band and the second frequency band is a 5G frequency band;
or when the first frequency band is a 5G frequency band and the second frequency band is a 2.4G frequency band, the predicted RSSI value is the sum of the first RSSI value and the new first value.
6. The method according to any one of claims 1-5, wherein instructing the terminal device to perform the n+1th roaming handover when the predicted RSSI value satisfies a first preset condition of switching into the second frequency band comprises:
and when the absolute value of the difference value between the predicted RSSI value and a first switching threshold value is larger than a second value, the terminal equipment is instructed to execute the (N+1) -th roaming switching, and the first switching threshold value is a switching threshold value corresponding to the second frequency band.
7. The method according to any of claims 1-6, wherein after the instructing the terminal device to perform the n+1th roaming handover, further comprises:
if the switching duration used by the (n+1) -th roaming switching is less than or equal to a preset duration, and/or the RSSI value in the wireless network of the terminal equipment accessed to the second frequency band after the terminal equipment executes the (n+1) -th roaming switching is in a first preset interval, when judging whether the terminal equipment executes the (n+2) -th roaming switching, recalculating a new first value in the calculated predicted RSSI value;
or if the switching time length used by the n+1th roaming switching is longer than a preset time length, and/or the RSSI value in the wireless network of the terminal equipment accessed to the second frequency band after the terminal equipment executes the n+1th roaming switching is not in the first preset interval, when judging whether the terminal equipment executes the n+2th roaming switching, not calculating a new first value in the predicted RSSI value calculated and adopting the first value used in the n+1th roaming switching.
8. A roaming handover control method, the method comprising:
Determining a second signal strength indication (RSSI) value of the terminal equipment accessed into the first wireless access point;
determining a second switching threshold value when the terminal equipment is accessed to a second wireless access point; the second handover threshold is related to one or more of: the method comprises the steps that before the terminal equipment executes Nth roaming switching, the terminal equipment accesses an RSSI value in a wireless network of a first wireless access point, after the Nth roaming switching is finished, the terminal equipment accesses an RSSI value in a wireless network of a second wireless access point, and the weight corresponding to an application operated by the terminal equipment when the second RSSI value is obtained; when the second switching threshold value is obtained, the weight of the RSSI value in the wireless network of the terminal equipment accessed to the first wireless access point before the Nth roaming switching is higher than the weight of the RSSI value in the wireless network of the second wireless access point after the Nth roaming switching is finished, and the weight of the RSSI value in the wireless network of the terminal equipment accessed to the second wireless access point after the Nth roaming switching is finished is higher than the weight corresponding to the application operated by the terminal equipment when the second RSSI value is obtained;
And when the second RSSI value reaches the second switching threshold value, the terminal equipment is instructed to execute the (n+1) th roaming switching to the second wireless access point.
9. The method of claim 8, wherein a second handover threshold obtained when the terminal device performs the n+1th roaming handover satisfies the following formula:
rssi thd =rssi trigger ×k 4 +rssi online ×k 5 +bw×k 6
wherein, rssi trigger To access the RSSI value in the wireless network of the first wireless access point by the terminal device before the Nth roaming switch online For the RSSI value in the wireless network of the terminal equipment accessing the second wireless access point after the Nth roaming switch is completed, bw is the weight corresponding to the application operated by the terminal equipment when the second RSSI value is obtained, and k 4 For the fourth weighting coefficient, k, corresponding to the RSSI value in the wireless network where the terminal device accesses the first wireless access point before the nth roaming handover 5 A fifth weighting coefficient k corresponding to the RSSI value in the wireless network of the terminal equipment accessed to the second wireless access point after the Nth roaming switch is completed 6 And a sixth weighting coefficient of the weight corresponding to the application operated by the terminal equipment when the terminal equipment accesses the wireless network of the second wireless access point.
10. The method of claim 9, wherein k 4 、k 5 、k 6 The sum of (2) is 1.
11. Method according to any of claims 8-10, characterized in that the applications run in the terminal device are divided into class four applications, class five applications and class six applications;
the fourth class of applications corresponds to a fourth application weight, the fifth class of applications corresponds to a fifth application weight, and the sixth class of applications corresponds to a sixth application weight;
the fourth application weight is greater than the fifth application weight, which is greater than the sixth application weight.
12. The method according to any of claims 8-11, wherein after the instructing the terminal device to perform the n+1th roaming handover, further comprises:
if the second absolute value is in a second preset interval, recalculating the second switching threshold value when judging whether the terminal equipment executes the (N+2) -th roaming switching or not; the second absolute value is the absolute value of the difference between the two following RSSI values: the RSSI value of the wireless network of the first wireless access point accessed by the terminal equipment before the Nth roaming switch and the RSSI value of the wireless network of the second wireless access point accessed by the terminal equipment after the Nth roaming switch is completed;
Or if the second absolute value is not in the second preset interval, the second handover threshold is not recalculated when judging whether the terminal equipment executes the (n+2) -th roaming handover or not, and the second handover threshold used when adopting the (n+1) -th roaming handover is adopted.
13. An electronic device, comprising: a memory for storing a computer program for executing the roaming handover control method according to any of claims 1-7 or for executing the roaming handover control method according to any of claims 8-12.
14. A computer-readable storage medium storing instructions that, when executed, cause a computer to perform the roaming handover control method of any of claims 1-7 or to perform the roaming handover control method of any of claims 8-12.
CN202210970248.5A 2022-08-12 2022-08-12 Roaming switching control method and related device Active CN116095769B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210970248.5A CN116095769B (en) 2022-08-12 2022-08-12 Roaming switching control method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210970248.5A CN116095769B (en) 2022-08-12 2022-08-12 Roaming switching control method and related device

Publications (2)

Publication Number Publication Date
CN116095769A CN116095769A (en) 2023-05-09
CN116095769B true CN116095769B (en) 2023-10-31

Family

ID=86197945

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210970248.5A Active CN116095769B (en) 2022-08-12 2022-08-12 Roaming switching control method and related device

Country Status (1)

Country Link
CN (1) CN116095769B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105898808A (en) * 2015-11-25 2016-08-24 北京邮电大学 Handover decision method based on frame loss rate and received signal strength in IEEE 802.11 network
CN106686626A (en) * 2016-12-07 2017-05-17 广东欧珀移动通信有限公司 Setting method for Wi-Fi roaming and terminal equipment
CN108112005A (en) * 2017-12-25 2018-06-01 上海斐讯数据通信技术有限公司 The switching method and system of a kind of wireless network roaming
CN111246525A (en) * 2020-01-09 2020-06-05 中移(杭州)信息技术有限公司 Home wireless roaming method and system, cloud device and networking device
CN111726837A (en) * 2019-03-18 2020-09-29 华为技术有限公司 Method and terminal for switching access points
CN112040520A (en) * 2020-08-20 2020-12-04 Oppo(重庆)智能科技有限公司 Network switching method, device, terminal equipment and computer storage medium
CN112740759A (en) * 2018-09-28 2021-04-30 谷歌有限责任公司 Method and apparatus for proactive handover between available networks
CN112954756A (en) * 2021-04-23 2021-06-11 Oppo广东移动通信有限公司 Wireless roaming method, AP (access point) equipment, terminal equipment and wireless roaming system
CN114007248A (en) * 2021-09-16 2022-02-01 荣耀终端有限公司 Wi-Fi roaming method, electronic equipment and storage medium
CN114051258A (en) * 2021-11-23 2022-02-15 深圳市吉祥腾达科技有限公司 Test method and test system for double-frequency seamless roaming of wireless router

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100054210A1 (en) * 2008-09-02 2010-03-04 Sony Ericsson Mobile Communications Ab Wireless network transitioning for mobile devices
EP3454615A1 (en) * 2017-09-12 2019-03-13 Thomson Licensing Device and method for signal strength estimation in a wireless network with multiple access points
CN111654850A (en) * 2019-03-04 2020-09-11 华为技术有限公司 Roaming method and communication device for wireless local area network

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105898808A (en) * 2015-11-25 2016-08-24 北京邮电大学 Handover decision method based on frame loss rate and received signal strength in IEEE 802.11 network
CN106686626A (en) * 2016-12-07 2017-05-17 广东欧珀移动通信有限公司 Setting method for Wi-Fi roaming and terminal equipment
CN108112005A (en) * 2017-12-25 2018-06-01 上海斐讯数据通信技术有限公司 The switching method and system of a kind of wireless network roaming
CN112740759A (en) * 2018-09-28 2021-04-30 谷歌有限责任公司 Method and apparatus for proactive handover between available networks
CN111726837A (en) * 2019-03-18 2020-09-29 华为技术有限公司 Method and terminal for switching access points
CN111246525A (en) * 2020-01-09 2020-06-05 中移(杭州)信息技术有限公司 Home wireless roaming method and system, cloud device and networking device
CN112040520A (en) * 2020-08-20 2020-12-04 Oppo(重庆)智能科技有限公司 Network switching method, device, terminal equipment and computer storage medium
CN112954756A (en) * 2021-04-23 2021-06-11 Oppo广东移动通信有限公司 Wireless roaming method, AP (access point) equipment, terminal equipment and wireless roaming system
CN114007248A (en) * 2021-09-16 2022-02-01 荣耀终端有限公司 Wi-Fi roaming method, electronic equipment and storage medium
CN114051258A (en) * 2021-11-23 2022-02-15 深圳市吉祥腾达科技有限公司 Test method and test system for double-frequency seamless roaming of wireless router

Also Published As

Publication number Publication date
CN116095769A (en) 2023-05-09

Similar Documents

Publication Publication Date Title
US11463511B2 (en) Model-based load balancing for network data plane
US20180139274A1 (en) Application based intelligent edge computing in a low power wide area network environment
US8903964B2 (en) Auto-configuration of network captured traffic device
US10484233B2 (en) Implementing provider edge with hybrid packet processing appliance
JP2013207748A (en) Network system ad node device
US11336545B2 (en) Network device measurements employing white boxes
US11784877B2 (en) Systems and methods to control operation of virtualized networks
US9350670B2 (en) Network load estimation and prediction for cellular networks
US11792708B2 (en) Systems and methods for call management
US20230131255A1 (en) Selective fidelity rates for network traffic replication by a digital twin device
CN111147519A (en) Data detection method, device, electronic equipment and medium
CN108933697B (en) Broadband quality detection method
CN116095769B (en) Roaming switching control method and related device
Ghahfarokhi et al. A context‐aware handover decision based on user perceived quality of service trigger
CN105100300A (en) Method and device for network address translation
KR101530013B1 (en) Apparatus and methods for efficient network address translation and application level gateway processing
CN115834472A (en) Message processing method, forwarding strategy obtaining method and device
US10225278B1 (en) Method of assessing real-time security of sequenced packet exchange (SPX) network connection
CN1886961A (en) Method and system for re-establishing context of data packet flows
JP2009049508A (en) Communication apparatus, program, and network selecting method
Meneses et al. Deviceless communications: Cloud-based communications for heterogeneous networks
CN115842734B (en) Network management method, controller and SDN network
US11563640B2 (en) Network data extraction parser-model in SDN
CN116033536B (en) Transmitting power adjusting method and wireless router
US9515864B2 (en) Differentiated service behavior based on differentiated services code point (DSCP) bits

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