A Multimode Router Network Switching Method and System Based on Subnet Device Characteristics

By acquiring information about routers and subnet devices and configuring network type and home type, the problem of intelligent network switching for multi-mode routers in subnet environments is solved, achieving refined and intelligent network switching management.

CN116033507BActive Publication Date: 2026-01-30SHANDONG YOU INTERNET OF THINGS CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211727356.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-30
Publication Date
2026-01-30
Estimated Expiration
2042-12-30

AI Technical Summary

Technical Problem

Existing multi-mode routers cannot intelligently switch networks based on different subnet conditions, and traditional network priority processing methods are simple and mechanical, relying solely on network connectivity as the basis for switching.

Method used

By acquiring network statistics from the router's primary and secondary SIM cards, combined with system information and traffic consumption of subnet devices, the network type and ownership type of the subnet devices can be configured. Based on user-defined rules and router built-in rules, fine-grained switching of the router network can be achieved.

Benefits of technology

It enables automatic network mode selection based on different subnet states and the router's own network status, providing fine-grained control and intelligent management for network switching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116033507B_ABST
    Figure CN116033507B_ABST
Patent Text Reader

Abstract

This invention relates to the field of multi-mode router technology, and provides a method and system for multi-mode router network switching based on subnet device characteristics. The method includes: acquiring statistical information of the router's primary and secondary SIM card networks, and dividing the network; acquiring the router's user configuration, and further dividing the network; acquiring system information data of the subnet devices connected to the router, and configuring the network type of the subnet devices based on the system information data; acquiring the traffic consumption and connected external network server information of the subnet devices over a period of time, and configuring the subnet device's affiliation type based on the traffic consumption and connected external network server information; and switching the router's network based on the subnet device's network type and affiliation type, combined with the network division. This achieves automatic network switching.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of multi-mode router technology, and particularly relates to a multi-mode router network switching method and system based on subnet device characteristics. Background Technology

[0002] The statements in this section are merely background information related to the present invention and do not necessarily constitute prior art.

[0003] For dual-SIM dual-standby multi-mode routers, the commonly used internet access modes are mainly divided into primary backup mode and load balancing mode. Primary backup mode only uses the primary SIM network, and only uses the secondary SIM network when the primary SIM network fails; while load balancing mode uses both SIM networks simultaneously to provide an internet access environment.

[0004] Neither of the above two modes can achieve primary and secondary SIM card network switching based on different subnet conditions; moreover, the traditional multi-SIM card network handles different network priorities in a relatively simple and mechanical way, often only detecting network connectivity as the basis for switching. Summary of the Invention

[0005] To address the technical problems mentioned above, this invention provides a multi-mode router network switching method and system based on subnet device characteristics, which can select an appropriate network mode according to different subnet states and the router's own network state to achieve automatic network switching.

[0006] To achieve the above objectives, the present invention adopts the following technical solution:

[0007] The first aspect of the present invention provides a multi-mode router network handover method based on subnet device characteristics, comprising:

[0008] Obtain statistical information on the primary and secondary networks of the router, and divide the network accordingly; also obtain the user configuration of the router, and further divide the network accordingly.

[0009] Obtain system information data of the subnet devices connected to the router, configure the network type of the subnet devices based on the system information data; and obtain the traffic consumption and connected external server information of the subnet devices over a period of time, configure the ownership type of the subnet devices based on the traffic consumption and connected external server information.

[0010] Based on the network type and ownership type of the subnet devices, and in conjunction with the network partitioning, the router switches networks.

[0011] Furthermore, it also includes: prioritizing devices in each subnet based on user-defined rules and built-in rules of the router, and switching the router's network according to the priority.

[0012] Furthermore, the statistical information includes: SIM card number, phone number, signal strength, base station information, network standard, operator information, remaining data allowance on the card, upload and download speeds, packet loss rate, and latency information.

[0013] Furthermore, the system information data includes: the MAC address of the subnet device, the IP address of the subnet device, the operating system of the subnet device, and the open ports of the subnet device.

[0014] Furthermore, the router monitors the subnet devices accessing the router through hardware PHY registers, WIFI links, ARP packets, and DHCP requests.

[0015] Furthermore, the router uses NMAP active probing and BPF packet capture analysis to probe the system information data of the subnet devices.

[0016] A second aspect of the present invention provides a multi-mode router network handover system based on subnet device characteristics, comprising:

[0017] The network segmentation module is configured to: obtain statistical information on the primary and secondary networks of the router, segment the network, and obtain the user configuration of the router to further segment the network;

[0018] The device classification module is configured to: obtain system information data of subnet devices connected to the router, configure the network type of the subnet devices based on the system information data; and obtain the traffic consumption and connected external server information of the subnet devices over a period of time, and configure the subnet devices' affiliation type based on the traffic consumption and connected external server information.

[0019] The network switching module is configured to switch the router's network based on the network type and ownership type of the subnet device, and in conjunction with the network division.

[0020] Furthermore, the network switching module is also configured to: determine the priority of each subnet device according to user-defined rules and router built-in rules, and switch the router's network according to the priority.

[0021] A third aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the multi-mode router network handover method based on subnet device characteristics as described above.

[0022] A fourth aspect of the present invention provides a computer device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the steps in the multi-mode router network handover method based on subnet device characteristics as described above.

[0023] Compared with the prior art, the beneficial effects of the present invention are:

[0024] This invention provides a multi-mode router network switching method based on subnet device characteristics. It uses the information of the subnet devices and the router's own network status as the basis for network switching, thereby enabling the selection of an appropriate network mode according to different subnet statuses and the router's own network status, thus achieving automatic network switching.

[0025] This invention provides a multi-mode router network switching method based on subnet device characteristics, which can be configured with different network switching conditions to achieve fine-grained control over the switching network. Attached Figure Description

[0026] The accompanying drawings, which form part of this invention, are used to provide a further understanding of the invention. The illustrative embodiments of the invention and their descriptions are used to explain the invention and do not constitute an improper limitation of the invention.

[0027] Figure 1 This is a flowchart of a multi-mode router network handover method based on subnet device characteristics according to Embodiment 1 of the present invention;

[0028] Figure 2 This is an example diagram of TCPDUMP packet capture based on BPF in Embodiment 1 of the present invention;

[0029] Figure 3 This is an example diagram of the ARP message format according to Embodiment 1 of the present invention;

[0030] Figure 4 This is an example diagram of the DHCP message format according to Embodiment 1 of the present invention;

[0031] Figure 5 This is an example diagram of Nmap detection ports and operating system related information in Embodiment 1 of the present invention;

[0032] Figure 6 This is an example diagram of ARP table information according to Embodiment 1 of the present invention;

[0033] Figure 7 This is an example diagram of the device database in Embodiment 1 of the present invention;

[0034] Figure 8 This is a network topology diagram of Embodiment 1 of the present invention. Detailed Implementation

[0035] The present invention will be further described below with reference to the accompanying drawings and embodiments.

[0036] It should be noted that the following detailed description is illustrative and intended to provide further explanation of the invention. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains.

[0037] Example 1

[0038] This embodiment provides a multi-mode router network switching method based on subnet device characteristics. It switches between primary and secondary SIM card networks according to different subnet device environments, achieving the effect of switching between primary and secondary SIM cards for internet access based on different subnet environments.

[0039] This embodiment provides a multi-mode router network handover method based on subnet device characteristics, which handles multi-mode router network handover according to the subnet device situation, such as... Figure 1 As shown, it includes the following steps:

[0040] Step 1: Obtain statistical information of the router's primary and secondary SIM card networks, and classify the two networks into two standard network categories.

[0041] The statistical information includes: SIM card number, phone number, signal strength, base station information, network standard, operator information, remaining data on the card, upload and download speeds, packet loss rate, and latency information.

[0042] First, use the router's built-in tools to collect information about the router itself, such as the network type, signal quality, carrier information, and remaining data on each SIM card. Then, use the router's built-in tools to test the upload and download speeds, packet loss rate, and latency of each SIM card. Based on the collected information, classify the primary and secondary SIM cards into two standard network categories, such as: premium network and ordinary network, low-latency network and high-latency network, high-bandwidth network and low-bandwidth network, China Telecom network and China Unicom network, etc.

[0043] Specifically, when the router's primary SIM card is connected to China Mobile and the secondary SIM card to China Telecom, the router waits for both network cards to successfully connect to the network after startup. It then reads the SIM card information to obtain the card numbers, phone numbers, and other information of both SIM cards. Next, based on signaling interactions with the base station, it obtains information such as the signal strength, base station information, and network standard. Then, it sends SMS messages to the operator to obtain the SIM card's data plan information and data usage. Finally, it uses speed test tools such as Speedtest to test the network speed, bandwidth, latency, and packet loss of each network. Finally, based on the obtained information, it categorizes the two networks, such as: premium networks and ordinary networks, low-latency networks and high-latency networks, high-bandwidth networks and low-bandwidth networks, China Telecom networks and China Mobile networks, etc.

[0044] Step 2: Read the network switching rules configured by the user on the router, and divide the dual-SIM network into network 1 and network 2 according to the rules set by the user.

[0045] Specifically, it reads the router's user configuration, creates preset conditions, and sets the user to always use China Telecom internet when an Android device connects.

[0046] Step 3: The router monitors subnet devices connected to it through hardware PHY registers, WIFI links, ARP packets, and DHCP requests. When a subnet device connects to the router, the router uses NMAP active probing and BPF packet capture analysis to detect the connected subnet device and obtain necessary information, such as the subnet device's MAC address, IP address, operating system, and currently open ports. The router also periodically analyzes the subnet device's traffic consumption over a period of time and collects information about the external servers connected to the devices. Figure 2 The image shows DHCP requests and ARP packets captured by packet capture. Figure 3 It is an ARP packet format. Figure 4 It is in DHCP packet format. Based on the request packet, you can obtain information such as the MAC address of the newly connected sub-device and the IP address obtained by DHCP. Figure 5 This information is obtained by the NMAP tool. After obtaining the IP address, you can use the NMAP detection tool to obtain information such as the sub-device's operating system, open ports, and services. Figure 6 The image shows the router's ARP table. Based on the ARP table, information such as the HW type, Flags, and access interface of the corresponding MAC address can be obtained.

[0047] Step 4: Configure the network type of the subnet device according to the system information data, and configure the ownership type of the subnet device according to the traffic consumption and the connected external network server information.

[0048] Specifically, based on the collected system information data such as MAC address, IP address, sub-device operating system, and sub-device port, a "device profile" is generated within the router. First, the device is categorized and configured with different network types according to the user-configured network type, such as: Network Device 1, Network Device 2, Uncategorized Network Device. Then, based on the device's characteristics, it is further categorized and configured with its class, such as: High-traffic device, Low-latency device, Network-insensitive device, Telecom network device, China Unicom network device, etc. Figure 7 As shown.

[0049] Step 5: Based on the network type and ownership type of the subnet devices, and in conjunction with the network division, switch the router's network: Sort the devices according to the user-defined rules and the router's built-in rules, assign priority to each subnet device, and then, based on the network type and ownership type of the access devices, and in conjunction with the number of devices under each priority, switch the router network to the corresponding standard network while meeting the needs of most devices, thus achieving the purpose of switching the primary and secondary SIM card networks according to the subnet device status.

[0050] Specifically, the router waits for device access. When a Windows PC connects to the subnet and obtains an IP address using the DHCP protocol, the PC sends a DHCP request to the router. Upon receiving the DHCP request, the router records the PC's hostname and MAC address as device identifiers. Then, it assigns an IP address to the device according to the DHCP protocol and records it in the router's database. Next, it uses an NMAP tool to detect the PC's operating system, open ports, and other information, recording this data in the database. Finally, it checks the PC's device information to see if it meets the user's network switching requirements. If the device's operating system is Windows and it's not an Android user, no switching operation is needed.

[0051] Using BPF packet capture analysis, the PC device's traffic data usage was analyzed over a period of time. It was detected that the server address accessed by the device in large quantities belonged to the mobile public network segment, with small data transmission volume and mainly UDP data. The PC device was marked as a mobile low-traffic device and recorded in the database. When the subnet device is idle, the network can be actively switched to the mobile network.

[0052] If another network camera with a static IP address is subsequently connected, the router will use the ARP table and BPF packet capture to obtain the device's MAC address, hostname, and IP address. It will then record this information in its database and use NMAP to further probe the device. Based on the packet capture information, the router analyzes the device's transmitted video stream data. If the upload traffic is high, the device is marked as a high-bandwidth device. Considering the data traffic usage of the PC and the camera, the router determines that a network capable of handling high upload traffic should be used. The results are recorded in the router's database, and when the time is right, the router will switch the network to a high-bandwidth, high-speed telecommunications network.

[0053] Subsequently, an Android phone connected to the subnet via Wi-Fi. Following the detection steps outlined above, the router created a database entry for the phone user and updated the database. Since the Android system was detected, meeting the user's configured switching conditions, the network was fixed to the telecommunications network. The network switching procedure switched to logging mode, only recording the current network status and no longer actively switching networks. Only when the Android device disconnects from the Wi-Fi connection will the network switching procedure switch back to control mode, monitoring the network status and switching networks as needed. The network topology at this point is as follows: Figure 8 .

[0054] Step 6: Set a time interval to repeatedly execute the above steps, and dynamically switch the device's standard network type according to the current network conditions.

[0055] The multi-mode router network switching method based on subnet device characteristics provided in this embodiment can switch between primary and secondary networks according to different subnet environments. Traditional multi-NIC networks handle different network priorities in a relatively simple and mechanical way, often only detecting network connectivity as the basis for switching. This invention can collect information about subnet devices and the router's own network status, and use this as the basis for network switching. Thus, it can select the appropriate network mode according to different subnet states and the router's own network status, achieving automatic network switching.

[0056] The multi-mode router network switching method based on subnet device characteristics provided in this embodiment can be configured with different network switching conditions to achieve fine-grained control over network switching. The router can provide a configuration page for users, who can configure the network switching conditions for subnet devices according to their own needs. For example, when a mobile device is present in the subnet, the router can be configured to switch to a high-bandwidth network. When the router detects that the operating system of the subnet device is a mobile phone system, it will automatically switch to the high-bandwidth network card for internet access.

[0057] The multi-mode router network switching method based on subnet device characteristics provided in this embodiment can automatically learn according to the set switching conditions to achieve intelligent network switching. The router will periodically record the different network interfaces corresponding to each subnet device. When the subnet device connects again, it will automatically switch to the frequently used network interface based on the past network records.

[0058] The multi-mode router network switching method based on subnet device characteristics provided in this embodiment is key in that the router can automatically handle the switching of primary and secondary SIM cards based on the subnet device status and the router's own network status. The router can periodically acquire subnet device information and its own information, and can capture data packets from subnet devices over a period of time to analyze their internet access behavior, using this as a basis for switching between primary and secondary SIM cards. The router has automatic learning capabilities; it can record suitable SIM cards and network modes for devices based on their internet access behavior over a period of time. When the device reconnects, it can automatically switch to the appropriate SIM card network based on past records.

[0059] Example 2

[0060] This embodiment provides a multi-mode router network switching system based on subnet device characteristics, which specifically includes:

[0061] The network segmentation module is configured to: obtain statistical information on the primary and secondary networks of the router, segment the network, and obtain the user configuration of the router to further segment the network;

[0062] The device classification module is configured to: obtain system information data of subnet devices connected to the router, configure the network type of the subnet devices based on the system information data; and obtain the traffic consumption and connected external server information of the subnet devices over a period of time, and configure the subnet devices' affiliation type based on the traffic consumption and connected external server information.

[0063] The network switching module is configured to switch the router's network based on the network type and ownership type of the subnet device, and in conjunction with the network division.

[0064] The network switching module is also configured to: prioritize devices in each subnet according to user-defined rules and the router's built-in rules, and switch the router's network according to the priority.

[0065] It should be noted that each module in this embodiment corresponds one-to-one with each step in Embodiment 1, and their specific implementation processes are the same, so they will not be repeated here.

[0066] Example 3

[0067] This embodiment provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps in the multi-mode router network switching method based on subnet device characteristics as described in Embodiment 1 above.

[0068] Example 4

[0069] This embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, it implements the steps in the multi-mode router network switching method based on subnet device characteristics as described in Embodiment 1 above.

[0070] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage and optical storage) containing computer-usable program code.

[0071] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor 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 processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0072] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0073] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0074] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0075] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A method for subnet device feature based multi-mode router network handover, the method comprising: The application relates to a network division method and device of a router. Specifically, when the router main card network is mobile and the sub card network is telecom, the router is started and waits for the two network cards to be successfully connected, the SIM card information is read to obtain the card number and telephone number information of the two SIM cards; the signal strength, base station information and network mode information are obtained according to the signaling interaction of the base station; the package information and flow condition of the SIM card are obtained by sending a short message to the operator; the network speed bandwidth, delay and packet loss condition of each network are respectively tested by using a speed testing tool; finally, the two networks are classified according to the obtained information, and the classification types are: high-quality network and ordinary network, low-delay network and high-delay network, large-flow and large-bandwidth network and small-flow and small-bandwidth network, and telecom network and mobile network. The user configuration of the router is obtained to further divide the network. System information data of the subnet device connected to the router is obtained, and the network type of the subnet device is configured according to the system information data, wherein the system information data comprises the MAC address of the subnet device, the IP address of the subnet device, the operating system of the subnet device and the opened port of the subnet device. The flow consumption condition of the subnet device within a period of time and the connected external server information of the subnet device are obtained, and the belonging type of the subnet device is configured according to the flow consumption condition and the connected external server information, wherein the belonging type comprises a large-flow type device, a low-delay type device, a network-insensitive device, a telecom network device and a network communication network device. The network of the router is switched according to the network type and the belonging type of the subnet device and in combination with the division condition of the network. The priority of each subnet device is divided according to the rules set by the user and the rules built in the router, and the network of the router is switched according to the priority. The router monitors the subnet device connected to the router through a hardware PHY register, a WIFI link, an ARP data packet and a DHCP request.

2. The method of claim 1, wherein the subnet device feature-based multi-mode router network handover method is characterized by, The router uses NMAP active detection and BPF packet capture analysis to detect the system information data of the subnet device.

3. The method of claim 1, wherein the subnet device feature based multi-mode router network handover method is characterized by, The application relates to a network division method and device of a router.

4. A subnet device feature based multi-mode router network switching system employing a subnet device feature based multi-mode router network switching method as claimed in any one of claims 1 to 3, characterized in that, The device classification module is configured to obtain the system information data of the subnet device connected to the router, and configure the network type of the subnet device according to the system information data, and obtain the flow consumption condition of the subnet device within a period of time and the connected external server information of the subnet device, and configure the belonging type of the subnet device according to the flow consumption condition and the connected external server information. The network switching module is configured to switch the network of the router according to the network type and the belonging type of the subnet device and in combination with the division condition of the network. The network switching module is further configured to divide the priority of each subnet device according to the rules set by the user and the rules built in the router, and switch the network of the router according to the priority. ​ 5. The subnetwork device feature based multi-mode router network switching system of claim 4, wherein, ​ 6. A computer-readable storage medium having stored thereon a computer program, characterized in that, The program, when executed by the processor, implements the steps in the method for subnet device feature based multi-mode router network switching of any of claims 1-3.

7. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor implements the steps in the method for subnet device feature based multi-mode router network switching of any of claims 1-3 when executing the program.

Citation Information

Patent Citations

  • Wireless communication network system integrating optical fiber broadband, WIFI and mobile data

    CN111901824A

  • Method for automatically switching SIM (Subscriber Identity Module) card

    CN115052283A