Network switching method based on distance detection and flow statistics
By configuring network A and B cards on the wireless terminal, establishing low-speed and high-speed location information tables, and combining distance detection and traffic statistics, the network can be calculated and switched in real time, solving the problem of unstable traffic rate during the switching between network A and B, ensuring the stability of voice and video services, and improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-28
- Publication Date
- 2026-04-07
AI Technical Summary
Existing technologies fail to adequately consider user needs when switching between networks A and B, resulting in unstable traffic rates for voice and video services, packet loss, and negatively impacting user experience.
By configuring wireless terminals to support network A and B cards, low-speed and high-speed location information tables are established. Combined with distance detection and traffic statistics, the distance between the wireless terminal and the base station and the traffic rate are calculated in real time. The switching between network A and B is performed according to the service type and rate threshold.
It achieved stable traffic rates within the coverage area of Network A, ensuring the stable operation of voice and video services and improving the user experience.
Smart Images

Figure CN121815360A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of communication technology, specifically relating to a network switching method based on distance detection and traffic statistics. Background Technology
[0002] Network A to B handover generally refers to switching from a public network to network A. A public network refers to an open network built by telecommunications operators that provides universal services to the entire society; network A refers to an independent network specifically designed and built for specific users, such as PDT or B-TrunC. Network A can provide higher security and reliability in fields such as public safety and emergency command.
[0003] Application number CN112788677A proposes a network A and B switching method based on frequency point detection. It pre-sets a network B frequency point measurement table, determines the paused network B frequency point according to the measurement table, performs signal measurement at the paused network B frequency point, and if the obtained signal value meets the retention frequency point threshold, then the network B is switched to network A. This method mainly relies on frequency point information to switch between network A and B, and requires manual input of the frequency point measurement table.
[0004] Application No. 202410519777.2 proposes a network A / B handover method based on distance measurement. This method uses a positioning system to periodically calculate the distance between the wireless terminal and the network A base station. When the terminal enters the furthest coverage area of the base station, it switches from network B to network A. However, this patent only considers the furthest coverage area and does not adequately consider actual user needs. After switching to network A, when running voice and video services, packet loss may occur due to unstable data rates, ultimately leading to stuttering in voice and video services and severely impacting user experience.
[0005] Therefore, based on actual usage, this invention divides the specific needs of users and utilizes the dual-modem feature of mobile phones, positioning system and traffic monitoring function to switch between network A and B while ensuring stable voice and video data transmission, thereby improving user experience. Summary of the Invention
[0006] (a) Technical problems to be solved The technical problem to be solved by this invention is how to provide a network switching method based on distance detection and traffic statistics.
[0007] (II) Technical Solution To address the aforementioned technical problems, this invention proposes a network switching method based on distance detection and traffic statistics, which includes the following steps: S1. Wireless terminal configuration: Insert a network A card or network B card into the wireless terminal card slot, install the network A protocol software, and configure the rate requirements of various services. S2. Information table configuration: Configure the network A base station information table on the wireless terminal, establish a low-speed location information table and a high-speed location information table, and initialize the two location information tables as empty tables; S3. Distance Calculation: Periodically obtain the location of the wireless terminal, traverse the base station information table, calculate the distance between the wireless terminal and all network A base stations, select the network A base station with the closest distance, and record the distance between the wireless terminal and the network A base station as L0. S4. Determine the low-speed service area: Determine if the low-speed location information table is empty. If the low-speed location information table is empty, select the farthest distance L1 covered by network A base station. If the low-speed location information table is not empty, traverse the low-speed location information table and select the historical location closest to the wireless terminal. Obtain the historical distance L1 corresponding to this location. If the current distance L0 is less than the historical distance L1, proceed to step S6. S5. Determine the high-speed service area: Determine whether the high-speed location information table is empty. If the high-speed location information table is empty, select the farthest distance L1 covered by network A base station. If the high-speed location information table is not empty, traverse the high-speed location information table and select the historical location closest to the wireless terminal. Obtain the historical distance L1 corresponding to this location. If the current distance L0 is less than the historical distance L1, proceed to step S6. S6. Real-time traffic rate calculation and network A / B handover: Start the network A card in the auxiliary modem of the wireless terminal and switch to network A mode. Calculate the network A traffic rate in real time. When the real-time rate exceeds the corresponding threshold rate according to the low-speed or high-speed service type, perform network A / B handover. After the handover is completed, save the wireless terminal location information and base station distance to the location information table.
[0008] (III) Beneficial Effects This invention proposes a network switching method based on distance detection and traffic statistics. The method is simple to calculate. Within the coverage area of network A, traffic rate statistics are performed. Once the traffic rate requirement is met, network A is switched to network B, which effectively ensures the stable operation of voice, video and other services and improves user experience. Attached Figure Description
[0009] Figure 1 This is a flowchart of the network switching method based on distance detection and traffic statistics of the present invention. Detailed Implementation
[0010] To make the objectives, contents, and advantages of the present invention clearer, the specific embodiments of the present invention will be described in further detail below with reference to the accompanying drawings and examples.
[0011] This invention relates to a network handover method based on distance detection and traffic statistics. More specifically, it relates to a method for handover between network A and network B while ensuring the stable operation of voice and video services by utilizing the location information and traffic rate information of wireless terminals.
[0012] This invention discloses a network switching method based on distance detection and traffic statistics. The method includes: (1) Wireless terminal configuration. A network A card or a network B card is inserted into the wireless terminal card slot, network A protocol software is installed, and the rate requirements for voice or text services and video services are configured. (2) Information table configuration. A network A base station information table is configured on the wireless terminal, and a low-speed location information table and a high-speed location information table are established. (3) Distance calculation. The location of the wireless terminal is obtained periodically, the network A base station closest to the wireless terminal is selected, and the distance between the wireless terminal and the network A base station is calculated. (4) Determining the low-speed service area. Based on the location of the wireless terminal, the base station information table, and the low-speed location information table, it is calculated whether the low-speed traffic area has been entered. (5) Determining the high-speed service area. Based on the location of the wireless terminal, the base station information table, and the high-speed location information table, it is calculated whether the high-speed traffic area has been entered. (6) Real-time traffic rate calculation and completion of network A and B switching. The network A traffic rate is statistically analyzed in real time, and network A and B switching is performed when the real-time rate is higher than the threshold rate.
[0013] The purpose of this invention is to provide a network switching method based on distance detection and traffic statistics, ensuring that users can continue to use voice, video, and other services normally after switching to network mode A, thereby improving the user experience.
[0014] To achieve the above objectives, this invention proposes a network handover method based on distance detection and traffic statistics, the method comprising: S1. Wireless terminal configuration: Insert a network A card or network B card into the wireless terminal card slot, install the network A protocol software, configure the rate requirements for voice or text services, and configure the rate requirements for video services.
[0015] S2. Information table configuration: Configure the network A base station information table on the wireless terminal, establish a low-speed location information table and a high-speed location information table, and initialize the two location information tables as empty tables.
[0016] S3. Distance Calculation: Periodically obtain the location of the wireless terminal, traverse the base station information table, calculate the distance between the wireless terminal and all network A base stations, select the network A base station with the closest distance, and record the distance between the wireless terminal and the network A base station as L0.
[0017] S4. Determine the low-speed service area: Check if the low-speed location information table is empty. If it is, select the furthest distance L1 covered by network A base station. If it is not empty, traverse the table and select the historical location closest to the wireless terminal, then obtain the historical distance L1 corresponding to that location. If the current distance L0 is less than the historical distance L1, proceed to step S6.
[0018] S5. Determine the high-speed service area: Check if the high-speed location information table is empty. If it is, select the furthest distance L1 covered by network A base station. If it is not empty, traverse the table and select the historical location closest to the wireless terminal, then obtain the historical distance L1 corresponding to that location. If the current distance L0 is less than the historical distance L1, proceed to step S6.
[0019] S6. Real-time traffic rate calculation and network A / B handover: Start the network A card in the auxiliary modem of the wireless terminal and switch to network A mode. Calculate the network A traffic rate in real time. When the real-time rate exceeds the corresponding threshold rate according to the low-speed or high-speed service type, perform network A / B handover. After the handover is completed, save the wireless terminal location information and base station distance to the location information table.
[0020] Example 1: Figure 1 This is a flowchart of a network switching method based on distance detection and traffic statistics according to the present invention. Figure 1 As shown, the method includes: (1) Wireless terminal configuration.
[0021] The wireless terminal has dual card slots, supporting the insertion of Network A card and Network B card, and installing Network A protocol software. The threshold rate K1 for voice or text services is configured to be 100kbps (the rate to maintain stable operation of voice and text services); the threshold rate K2 for video services is configured to be 350kbps (the rate to maintain stable operation of standard video calls).
[0022] (2) Information table configuration.
[0023] Configure the network A base station information table on the wireless terminal.
[0024] The Network A base station information table includes the location of the Network A base station, the farthest coverage distance, the low-speed traffic rate, and the high-speed traffic rate. The base station location and the farthest coverage distance are obtained from the Network A base station side and manually configured. The low-speed traffic rate is configured as K1, and the high-speed traffic rate is configured as K2.
[0025] Establish a low-speed location information table and a high-speed location information table. Both tables store location information (latitude and longitude) and the distance between the wireless terminal and the base station. The low-speed location information table stores the low-speed location information of the wireless terminal and its distance to network base station A; the high-speed location information table stores the high-speed location information of the wireless terminal and its distance to network base station A. Initialize both tables as empty tables.
[0026] (3) Real-time distance calculation. The timer periodically obtains the location information of the wireless terminal (GPS or Beidou location information), traverses the base station information table to obtain the location information of network A base station, calculates the distance between the wireless terminal and different network A base stations respectively, selects the network A base station with the closest distance, and the distance between the wireless terminal and the current network A base station is L0. The specific calculation method is as follows.
[0027]
[0028] Since the coverage area of base stations is mostly within 5km, the spherical error of the Earth's surface can be ignored. The positioning information module obtains latitude and longitude as (Lon, Lat). Since all latitude and longitude values are positive, they need to be processed. According to the calculation rules of taking positive Lon for east longitude, negative Lon for west longitude, 90-Lat for north latitude, and 90+Lat for south latitude, the processed location information (MLon, MLat) is calculated. After obtaining the initial latitude and longitude information of the wireless terminal and network A base station, the location information of network A base station (MLonA, MlatA) and the location information of the wireless terminal (MLonB, MlatB) are obtained according to the above calculation rules. And according to the Earth's radius R and pi... Finally, the distance Dis from the wireless terminal to network base station A is obtained. (4) Determine the low-speed business area.
[0029] Traverse the low-speed location information table of the current network A base station. If the low-speed location information table is empty, select the farthest distance of the base station as L1. If the low-speed location information table is not empty, calculate the distance between the wireless terminal and the historical location in the low-speed location information table, select the nearest historical location, and obtain the corresponding historical distance L1. If the current distance L0 is less than the historical distance L1, it indicates that the terminal has entered the low-speed traffic area, and proceed to step 6.
[0030] (5) Determine the high-speed business area.
[0031] Traverse the high-speed location information table of the current network A base station. If the high-speed location information table is empty, select the base station with the farthest distance as L2. If the high-speed location information table is not empty, calculate the distance between the wireless terminal and the historical location in the high-speed location information table, select the nearest historical location, and obtain the corresponding historical distance L2. If the current distance L0 is less than the historical distance L2, it indicates that the terminal has entered the high-speed traffic area, and proceed to step 6.
[0032] (6) Calculate the real-time traffic rate and complete the switching between network A and B.
[0033] Based on the dual-modem feature of the wireless terminal, the primary modem handles normal communication services, while the secondary modem handles fewer services. The secondary modem of the wireless terminal activates its network A card and switches to network A mode. After the wireless terminal enters network A, it executes a ping command to test the network A traffic rate. The threshold rate is K1 for voice and text services and K2 for video calls. Depending on the type of low-speed or high-speed service, if the real-time rate exceeds the corresponding threshold rate, the primary modem activates its network A card and switches to network A; the secondary modem switches back to network B. After the switch is complete, the wireless terminal's location information and base station distance are saved to the location information table.
[0034] Example 2: A network switching method based on distance detection and traffic statistics.
[0035] (1) Wireless terminal configuration. Insert a network A card or a network B card into the wireless terminal card slot, install the network A protocol software, configure the rate requirements for voice or text services, and configure the rate requirements for video services.
[0036] (2) Information table configuration. Configure the network A base station information table on the wireless terminal and establish a low-speed location information table and a high-speed location information table.
[0037] (3) Distance calculation. The location of the wireless terminal is obtained periodically, the distance between the wireless terminal and the network A base station is calculated, and the nearest network A base station is selected.
[0038] (4) Determine the low-speed service area. Based on the base station information table, the low-speed location information table, and the location information of the wireless terminal, calculate whether the area has entered the low-speed traffic area.
[0039] (5) Determine the high-speed service area. Based on the base station information table, the high-speed location information table, and the location information of the wireless terminal, calculate whether the area has entered the high-speed traffic area.
[0040] (6) Real-time traffic rate calculation and network A-B switching. Real-time statistics of network A traffic rate, and network A-B switching when the real-time rate is higher than the corresponding threshold rate.
[0041] In the step of determining the low-speed and high-speed service areas, the location information of the wireless terminal is first obtained, and the distance is calculated and compared with the historical location information in the location information table (low-speed or high-speed location information table) one by one. The historical location closest to the wireless terminal is found, and the historical distance of the location is obtained. The circular area with the distance length as the radius is the service area (low-speed or high-speed service distance), and it is periodically determined whether the network A terminal has entered the area.
[0042] In the real-time traffic rate calculation and network A to B switching steps, the auxiliary modem starts the network A card and switches to network A mode. The ping command is used to test the traffic rate between the wireless terminal and the network A base station. Depending on the low-speed or high-speed service type, when the real-time traffic rate is higher than the corresponding threshold rate, the auxiliary modem switches back to network B, the main modem starts the network A card and switches to network A mode, and saves the wireless terminal's location information and distance information between it and the base station in the location information packet.
[0043] Beneficial effects: The network A-B switching method proposed in this invention combines distance measurement and traffic statistics. It is simple to calculate. Within the coverage area of network A, traffic rate statistics are performed. Once the traffic rate requirement is met, network A-B switching is performed, which effectively ensures the stable operation of voice, video and other services and improves user experience.
[0044] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the technical principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A network handover method based on distance detection and traffic statistics, characterized in that, The method includes the following steps: S1. Wireless Terminal Configuration: Insert a Network A card or a Network B card into the wireless terminal card slot, install the Network A protocol software, and configure the rate requirements for various services; Network A is a dedicated network. S2. Information table configuration: Configure the network A base station information table on the wireless terminal, establish a low-speed location information table and a high-speed location information table, and initialize the two location information tables as empty tables; S3. Distance Calculation: Periodically obtain the location of the wireless terminal, traverse the base station information table, calculate the distance between the wireless terminal and network A base station, select the nearest network A base station, and record the distance between the wireless terminal and network A base station as L0. S4. Determine the low-speed service area: Determine if the low-speed location information table is empty. If the low-speed location information table is empty, select the farthest distance L1 covered by network A base station. If the low-speed location information table is not empty, traverse the low-speed location information table and select the historical location closest to the wireless terminal. Obtain the historical distance L1 corresponding to this location. If the current distance L0 is less than the historical distance L1, proceed to step S6. S5. Determine the high-speed service area: Determine whether the high-speed location information table is empty. If the high-speed location information table is empty, select the farthest distance L1 covered by network A base station. If the high-speed location information table is not empty, traverse the high-speed location information table and select the historical location closest to the wireless terminal. Obtain the historical distance L1 corresponding to this location. If the current distance L0 is less than the historical distance L1, proceed to step S6. S6. Real-time traffic rate calculation and completion of network A and B switching: The terminal is initially in network B. The network A card is activated in the auxiliary modem of the wireless terminal and switched to network A mode. The network A traffic rate is calculated in real time. Depending on the low-speed or high-speed service type, when the real-time rate is higher than the corresponding threshold rate, network B is switched to network A. After the handover is complete, the location information of the wireless terminal and the distance to the base station are saved to the location information table.
2. The network handover method based on distance detection and traffic statistics as described in claim 1, characterized in that, In step S1, the threshold rate K1 for voice or text services is configured; and the threshold rate K2 for video services is configured.
3. The network handover method based on distance detection and traffic statistics as described in claim 1, characterized in that, In S2, the network A base station information table includes the location of the network A base station, the farthest coverage distance, the low-speed traffic rate, and the high-speed traffic rate. The base station location and the farthest coverage distance are obtained from the network A base station side and manually configured. The low-speed traffic rate is configured as K1, and the high-speed traffic rate is configured as K2.
4. The network handover method based on distance detection and traffic statistics as described in claim 1, characterized in that, In step S2, a low-speed location information table and a high-speed location information table are established. The two location information tables store location information and distance information between the wireless terminal and the base station. The low-speed location information table stores the low-speed location information of the wireless terminal and its distance from the network A base station. The high-speed location information table stores the high-speed location information of the wireless terminal and its distance from the network A base station. The two location information tables are initialized to empty tables.
5. The network handover method based on distance detection and traffic statistics as described in claim 1, characterized in that, S3 includes: A timer periodically acquires the location information of the wireless terminal. The base station information table is traversed to obtain the location information of network A base station. The distance between the wireless terminal and different network A base stations is calculated, and the nearest network A base station is selected. The distance between the wireless terminal and the current network A base station is defined as L0. The specific calculation method is as follows: The positioning information module obtains latitude and longitude as (Lon, Lat). Since all latitude and longitude values are positive, they need to be processed. According to the calculation rules—positive Lon for east longitude, negative -Lon for west longitude, 90-Lat for north latitude, and 90+Lat for south latitude—the processed location information (MLon, MLat) is calculated. After obtaining the initial latitude and longitude information of the wireless terminal and network A base station, the location information of network A base station (MLonA, MlatA) and the location information of the wireless terminal (MLonB, MlatB) are obtained according to the above calculation rules. Then, based on the Earth's radius R and pi... Finally, the distance Dis from the wireless terminal to network base station A is obtained.
6. The network handover method based on distance detection and traffic statistics as described in claim 1, characterized in that, The location information of the wireless terminal is GPS or BeiDou location information.
7. The network handover method based on distance detection and traffic statistics as described in claim 1, characterized in that, In step S4, the step of determining the low-speed service area first obtains the location information of the wireless terminal, calculates and compares the distance with the historical location information in the location information table, finds the historical location closest to the wireless terminal, and obtains the historical distance of the location. The circular area with the distance length as the radius is the service area, and it is periodically determined whether the network A terminal has entered the area.
8. The network handover method based on distance detection and traffic statistics as described in claim 1, characterized in that, In step S5, the step of determining the high service area first obtains the location information of the wireless terminal, calculates and compares the distance with the historical location information in the location information table, finds the historical location closest to the wireless terminal, and obtains the historical distance of the location. The circular area with the distance length as the radius is the service area, and it is periodically determined whether the network A terminal has entered the area.
9. The network handover method based on distance detection and traffic statistics as described in claim 1, characterized in that, In step S6, the auxiliary modem of the wireless terminal starts up the network A card and switches to network A mode. It uses the ping command to test the traffic rate between the wireless terminal and the network A base station. Depending on the low-speed or high-speed service type, when the real-time traffic rate is higher than the corresponding threshold rate, the auxiliary modem switches back to network B, the main modem starts up the network A card and switches to network A mode, and saves the location information of the wireless terminal and the distance information between it and the base station in the location information packet.
10. The network handover method based on distance detection and traffic statistics as described in claim 9, characterized in that, The main modem handles normal communication services.
Citation Information
Patent Citations
Method and device for switching public network to private network
CN112788677A
Network switching method and device, equipment, storage medium and program product
CN120857214A