CN113411800B - Method and device for assisting client in wireless network switching - Google Patents

Method and device for assisting client in wireless network switching Download PDF

Info

Publication number
CN113411800B
CN113411800B CN202110663973.3A CN202110663973A CN113411800B CN 113411800 B CN113411800 B CN 113411800B CN 202110663973 A CN202110663973 A CN 202110663973A CN 113411800 B CN113411800 B CN 113411800B
Authority
CN
China
Prior art keywords
client
wireless network
network
configuration information
network connection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110663973.3A
Other languages
Chinese (zh)
Other versions
CN113411800A (en
Inventor
张孝尊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN202110663973.3A priority Critical patent/CN113411800B/en
Publication of CN113411800A publication Critical patent/CN113411800A/en
Application granted granted Critical
Publication of CN113411800B publication Critical patent/CN113411800B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0055Transmission or use of information for re-establishing the radio link
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present disclosure relates to a method, apparatus, electronic device, and computer readable medium for assisting a client in wireless network handover. The method comprises the following steps: monitoring the network connection state of the client; when the network connection state of the client is changed, acquiring configuration information of a wireless network currently used on the client; matching the configuration information of the wireless network with the backed up configuration information of a plurality of wireless networks; and when the matching is consistent, restoring the current configuration information based on the backed-up configuration information to ensure that the client continues network connection. The method, the device, the electronic equipment and the computer readable medium for assisting the client in carrying out wireless network switching can monitor the change of the network state at the client, and correct the network multiplexing condition of the client when the client carries out wireless network switching so as to ensure the correct operation of the network at the client.

Description

Method and device for assisting client in wireless network switching
Technical Field
The present disclosure relates to the field of computer information processing, and in particular, to a method, an apparatus, an electronic device, and a computer readable medium for assisting a client in performing wireless network switching.
Background
When the PC of the Windows system is accessed to the network, the DNS configuration of the network card can be selected to be obtained automatically and configured manually. If the user does not perform manual configuration, the system selects an automatic acquisition mode, so that an automatic acquired DNS server is used; if the user has manually configured, a manually configured DNS server is used.
When the PC is connected to the wireless network, the PC can be switched among different wireless networks, the PC can save the configuration data of the connected wireless network, if the DNS configuration data A of the network card is manually set when the PC is connected to a certain wireless network A, the configuration data A which is saved before is also extracted from the configuration data when the wireless network A is connected again, and then the original DNS configuration A which is manually set is reused in the wireless network A.
When the PC accesses the wireless network, if it switches to a new wireless network B, the new wireless network B multiplexes DNS configuration C set by the wireless network C connected last time, which is a normal phenomenon. If the connection is switched to the connected wireless network a, the DNS configuration C manually set by the wireless network C connected last time is not normally multiplexed, but there is a certain probability that the DNS configuration C of the wireless network C connected last time is multiplexed. If the DNS configuration C of the last connected wireless network C is the DNS of the auto-get configuration and the newly switched wireless network a is also the auto-get configuration, the wireless network a can continue the normal network access. However, if DNS configuration C of wireless network C connected last time is a DNS configured manually, there may be a problem that a user cannot make network access regardless of whether newly switched wireless network a is configured manually or automatically.
When the PC is accessed to the wireless network, the PC is switched to a connected wireless network, if the problem of multiplexing the manually set DNS configuration of the last connected wireless network occurs, the user can only modify the manually set DNS configuration and then can normally access the DNS
Accordingly, there is a need for a new method, apparatus, electronic device, and computer-readable medium for assisting a client in wireless network handoff.
The above information disclosed in the background section is only for enhancement of understanding of the background of the disclosure and therefore it may include information that does not form the prior art that is already known to a person of ordinary skill in the art.
Disclosure of Invention
In view of this, the disclosure provides a method, an apparatus, an electronic device, and a computer readable medium for assisting a client in performing wireless network switching, capable of monitoring a change of a network state at the client, and correcting an error of a network multiplexing condition of the client when the client performs wireless network switching, so as to ensure correct operation of a network at the client.
Other features and advantages of the present disclosure will be apparent from the following detailed description, or may be learned in part by the practice of the disclosure.
According to an aspect of the present disclosure, a method for assisting a client in performing wireless network handover is provided, the method including: monitoring the network connection state of the client; when the network connection state of the client is changed, acquiring configuration information of a wireless network currently used on the client; matching the configuration information of the wireless network with the backed up configuration information of a plurality of wireless networks; and when the matching is consistent, restoring the current configuration information based on the backed-up configuration information to ensure that the client continues network connection.
In an exemplary embodiment of the present disclosure, further comprising: receiving and processing a login request from a client; after the client logs in, acquiring the network connection state of the client; and monitoring the network connection state of the client when the network connection state is wireless network connection.
In an exemplary embodiment of the present disclosure, when the network connection state is a wireless network connection, the method includes: extracting a registry of the wireless network card of the client; extracting a network card table item from the registry; and determining that the network connection state of the client is wireless network connection when the network table item comprises preset key value pairs.
In an exemplary embodiment of the present disclosure, when the network connection state is a wireless network connection, the method further includes: and backing up the network configuration data of the wireless network card of the client.
In an exemplary embodiment of the present disclosure, further comprising: and after the client logs out, canceling monitoring and releasing the memory occupied by the network configuration data.
In an exemplary embodiment of the present disclosure, backing up network configuration data of a wireless network card of the client includes: acquiring the identification of the currently used wireless network of the client; and extracting network configuration data of the wireless network card of the client from the registry based on the identification.
In an exemplary embodiment of the present disclosure, extracting network configuration data of the wireless network card of the client from a corresponding entry in a registry based on the identification includes: determining a corresponding entry in the registry based on the identification; and extracting network configuration data of the wireless network card of the client based on the linked list structure of the table items.
In an exemplary embodiment of the present disclosure, obtaining configuration information of a wireless network currently used on the client includes: extracting a registry of the wireless network card of the client; extracting a network card table item from the registry; and extracting configuration information of the currently used wireless network based on the key value pair corresponding to the network card table item.
In an exemplary embodiment of the present disclosure, further comprising: and when the matching is inconsistent, taking the configuration information of the currently used wireless network as a preference.
According to an aspect of the present disclosure, an apparatus for assisting a client in performing wireless network handover is provided, the apparatus including: the state module is used for monitoring the network connection state of the client; the information module is used for acquiring configuration information of a wireless network currently used on the client when the network connection state of the client is changed; the matching module is used for matching the configuration information of the wireless network with the backed-up configuration information of the plurality of wireless networks; and the recovery module is used for recovering the current configuration information based on the backed-up configuration information when the matching is consistent so as to ensure that the client continues network connection.
In an exemplary embodiment of the present disclosure, further comprising: the login module is used for receiving and processing a login request from the client; the state module is used for acquiring the network connection state of the client after the client logs in; and the monitoring module is used for monitoring the network connection state of the client when the network connection state is the wireless network connection.
According to an aspect of the present disclosure, there is provided an electronic device including: one or more processors; a storage means for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the methods as described above.
According to an aspect of the present disclosure, a computer-readable medium is presented, on which a computer program is stored, which program, when being executed by a processor, implements a method as described above.
According to the method, the device, the electronic equipment and the computer readable medium for carrying out wireless network switching on the auxiliary client side, the network connection state of the client side is monitored; when the network connection state of the client is changed, acquiring configuration information of a wireless network currently used on the client; matching the configuration information of the wireless network with the backed up configuration information of a plurality of wireless networks; and when the matching is consistent, recovering the current configuration information based on the backed-up configuration information to ensure that the client continues to be connected with the network, monitoring the change of the network state at the client, and correcting the network multiplexing condition of the client when the client performs wireless network switching so as to ensure the correct operation of the network at the client.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings. The drawings described below are merely examples of the present disclosure and other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art.
Fig. 1 is a system block diagram illustrating a method and apparatus for assisting a client in wireless network handoff according to an example embodiment.
Fig. 2 is a schematic diagram illustrating a method of assisting a client in wireless network handoff according to an example embodiment.
Fig. 3 is a flow chart illustrating a method of assisting a client in wireless network handoff according to another exemplary embodiment.
Fig. 4 is a flow chart illustrating a method of assisting a client in a wireless network handoff according to another exemplary embodiment.
Fig. 5 is a block diagram illustrating an apparatus for assisting a client in wireless network handoff in accordance with an exemplary embodiment.
Fig. 6 is a block diagram illustrating an apparatus for assisting a client in wireless network handoff in accordance with an example embodiment.
Fig. 7 is a block diagram of an electronic device, according to an example embodiment.
Fig. 8 is a block diagram of a computer-readable medium shown according to an example embodiment.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments can be embodied in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the disclosed aspects may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the disclosure.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
It will be understood that, although the terms first, second, third, etc. may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one element from another element. Accordingly, a first component discussed below could be termed a second component without departing from the teachings of the concepts of the present disclosure. As used herein, the term "and/or" includes any one of the associated listed items and all combinations of one or more.
Those skilled in the art will appreciate that the drawings are schematic representations of example embodiments and that the modules or flows in the drawings are not necessarily required to practice the present disclosure, and therefore, should not be taken to limit the scope of the present disclosure.
The technical abbreviations to which the present disclosure relates are explained as follows:
DNS: the domain name system (service) protocol (DNS) is a distributed network directory service, mainly used for the inter-conversion of domain names and IP addresses, and controlling the sending of e-mail to the internet.
Fig. 1 is a system block diagram of a method, apparatus, electronic device, and computer-readable medium for assisting a client in wireless network handoff, according to an example embodiment.
As shown in fig. 1, the system architecture 10 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various communication client applications, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc., may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The terminal devices 101, 102, 103 may for example monitor the network connection status of the client; the terminal device 101, 102, 103 may, for example, obtain configuration information of a wireless network currently used on the client when a network connection state of the client changes; the terminal device 101, 102, 103 may match the configuration information of the wireless network with the configuration information of the backed up plurality of wireless networks, for example; the terminal device 101, 102, 103 may restore the current configuration information based on the backed up configuration information to ensure that the client continues the network connection, for example, when the matches are consistent.
The terminal devices 101, 102, 103 may, for example, backup network configuration data of the wireless network card of the client.
The terminal device 101, 102, 103 also cancels the listening and releases the memory occupied by the network configuration data, for example, after the client logs off.
The server 105 may be a server providing various services, such as a background management server providing technical support for a user with a website that the terminal devices 101, 102, 103 are located on. The background management server can analyze the current network state of the user and the like.
Server 105 may, for example, monitor the network connection status of the client; the server 105 may, for example, obtain configuration information of a wireless network currently used on the client when a network connection state of the client is changed; server 105 may, for example, match configuration information for the wireless network with configuration information for the backed up wireless networks; server 105 may restore the current configuration information based on the backed up configuration information to ensure that the client continues the network connection, for example, if the matches are consistent.
Server 105 also receives and processes login requests from clients, for example; server 105 also obtains the network connection status of the client, for example, after the client logs in; the server 105 also listens to the network connection status of the client, for example, when the network connection status is a wireless network connection.
Server 105 also, for example, backs up network configuration data for the client's wireless network card.
Server 105 also cancels listening and frees memory occupied by network configuration data, for example, after the client logs off.
The server 105 may be an entity server, or may be a plurality of servers, for example, it should be noted that the method for assisting a client in performing wireless network switching provided in the embodiment of the present disclosure may be performed by the server 105 and/or the terminal devices 101, 102, 103, and accordingly, a device for assisting a client in performing wireless network switching may be provided in the server 105 and/or the terminal devices 101, 102, 103. While the web page end provided to the user for web services is typically located in the terminal devices 101, 102, 103.
The inventor of the present disclosure finds that all network cards on the PC have corresponding entries in the registry, and the entries include key values for configuring information of the corresponding network card.
The paths in the registry are as follows:
X\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\
the sub items in the path respectively represent the corresponding network cards on the PC, and the key values contained in the sub items are the configuration information of the corresponding network cards.
If the network card table entry contains a key value pair with the key of DhcpNetworkHint, the network card is a wireless network card, and the key value contained in the network card table entry corresponds to the configuration information of the currently active wireless network. The "NameServer" key in the network card entry represents information of the DNS configuration set manually. If the PC has been previously connected to another wireless network, the network card entry will include a subordinate subitem, where the name of the subitem is consistent with the value in the key value pair with the key "dhcpnetwork hit". And obtaining the configuration information of the wireless network connected before the key value contained in the sub item corresponds to the data.
If the PC is switched to a wireless network connected before, the key value pair data contained in the current wireless network card can be changed into the data of the subordinate sub-items, and the key value pair data contained in the sub-items corresponding to the newly connected wireless network can be changed into the key value pair data contained in the wireless network card table items. That is, when the active network changes, the key value and the data included in the wireless network card table item indicating the active network also change.
If the PC is switched to a new wireless network, the key value pair data contained in the current wireless network card can be changed into the data of the lower sub-item, and the key value pair data corresponding to the newly connected wireless network can be changed into the key value pair data contained in the wireless network card table item. I.e. the wireless network card will add a sub-item representing the previously connected wireless network.
The registry structure is shown in fig. 2. The inventor of the present disclosure finds that the network card configuration information of the PC may be obtained from the data by reading the key value included in the network card entry in the registry, or the configuration information of the network card may be set to the data by modifying the key value included in the network card entry in the registry.
Fig. 3 is a flow chart illustrating a method of assisting a client in wireless network handoff according to an exemplary embodiment. The method 30 for assisting the client in performing the wireless network handover at least includes steps S302 to S308.
As shown in fig. 3, in S302, the network connection state of the client is monitored. After the client logs in, whether the PC connection is a wireless network or not is judged, and if the PC connection is the wireless network, the change of the PC network state is monitored.
More specifically, the method used in the present disclosure may be applied to a user authentication platform that assists a user in surfing the internet, where the user needs to log on to the platform for user authentication, thereby obtaining rights to access the internet. The method used in the present disclosure may be set in the client terminal by means of program embedding, and more specifically, may be set in a user authentication application that assists a user in surfing the internet.
In S304, when the network connection state of the client is changed, configuration information of a wireless network currently used on the client is acquired. Comprising the following steps: extracting a registry of the wireless network card of the client; extracting a network card table item from the registry; and extracting configuration information of the currently used wireless network based on the key value pair corresponding to the network card table item.
As can be seen from the analysis shown in fig. 2, the client uses the variable list of the linked list structure to store the network configuration data related to the wireless network card, the configuration data of the wireless network currently connected to the PC is set as the first item of the linked list, and if the list item corresponding to the wireless network card has a subordinate sub-item (i.e. the wireless network connected before), the configuration data of the sub-items are sequentially stored in the linked list.
When the client monitors that the PC network state changes, the client indicates that the PC switches the wireless network connection. The client side can firstly acquire the first item in the list, the item corresponds to the last connected wireless network, the value of the key value pair with the key of DhcpNetworkHint in the item is taken, the path of the item in the registry is obtained, the data corresponding to the item in the registry is read again, and the data in the list is updated. This is to ensure that the latest configuration data can be backed up when the DNS configuration is manually modified by the user.
For example, the name of the currently active wireless network card may be obtained, an entry corresponding to the wireless network card in the registry may be found by the name, where the key value data included in the entry of the wireless network card corresponds to the configuration data of the currently connected wireless network (i.e. the active wireless network), and if the PC is previously connected to another wireless network, the entry may have a corresponding lower sub-entry, and the key value data included in each sub-entry corresponds to the configuration data of the previously connected wireless network.
In S306, the configuration information of the wireless network and the configuration information of the backed up plurality of wireless networks are matched. And acquiring configuration data of the currently active wireless network, searching whether backup of the wireless network data exists in the list through a key value of a key value pair of DhcpNetworkHint, and if no backup indicates that the currently active wireless network is a newly accessed wireless network, setting the configuration data of the currently active wireless network as a head of the list because the newly accessed wireless network multiplexes the DNS configuration manually set by the last connected wireless network.
In S308, when the matching is consistent, the current configuration information is restored based on the backed up configuration information to ensure that the client continues network connection.
In one embodiment, further comprising: and when the matching is inconsistent, taking the configuration information of the currently used wireless network as a preference.
If the list has backup to indicate that the currently active wireless network is the wireless network connected before, the value of the key value pair with the key of 'NameServer' in the backup is compared with the value of the key value pair corresponding to the currently active wireless network table item, if the same indicates that the manually set DNS configuration is not multiplexed. And if the values are different, modifying the corresponding values in the currently active wireless network table items by using the backed-up values, and recovering the original data of the DNS configuration which is manually set so as to solve the multiplexing problem. The backup of the wireless network data currently active in the list is set as the first item of the list.
According to the method for performing wireless network switching by the auxiliary client, the network connection state of the client is monitored; when the network connection state of the client is changed, acquiring configuration information of a wireless network currently used on the client; matching the configuration information of the wireless network with the backed up configuration information of a plurality of wireless networks; and when the matching is consistent, recovering the current configuration information based on the backed-up configuration information to ensure that the client continues to be connected with the network, monitoring the change of the network state at the client, and correcting the network multiplexing condition of the client when the client performs wireless network switching so as to ensure the correct operation of the network at the client.
It should be clearly understood that this disclosure describes how to make and use particular examples, but the principles of this disclosure are not limited to any details of these examples. Rather, these principles can be applied to many other embodiments based on the teachings of the present disclosure.
Fig. 4 is a flow chart illustrating a method of assisting a client in a wireless network handoff according to another exemplary embodiment. The flow 40 shown in fig. 4 is a complementary description of the flow shown in fig. 2.
As shown in fig. 4, in S402, a login request from a client is received and processed. The client may, for example, send a login request to a user authentication server.
In S404, after the client logs in, a network connection state of the client is obtained. The client uses the variable list of the linked list structure to store the network configuration data related to the wireless network card, and the configuration data of the wireless network currently connected with the PC is set as the first item of the linked list. As shown in fig. 2, the storage locations of the configuration data may be: the sub-items in the path respectively represent the corresponding network cards on the PC, and the key values contained in the sub-items correspond to the configuration information of the network cards.
In S406, when the network connection state is a wireless network connection, the network connection state of the client is monitored. Comprising the following steps: extracting a registry of the wireless network card of the client; extracting a network card table item from the registry; and determining that the network connection state of the client is wireless network connection when the network table item comprises preset key value pairs.
More specifically, if the network card table entry includes a key value pair with a key of "dhcpnetwork hit", it indicates that the network card is a wireless network card, and the key value included in the network card table entry corresponds to configuration information of the currently active wireless network. The "NameServer" key in the network card entry represents information of the DNS configuration set manually. If the PC has been previously connected to another wireless network, the network card entry will include a subordinate subitem, where the name of the subitem is consistent with the value in the key value pair with the key "dhcpnetwork hit". And obtaining the configuration information of the wireless network connected before the key value contained in the sub item corresponds to the data.
In S408, the network configuration data of the wireless network card of the client is backed up. Comprising the following steps: acquiring the identification of the currently used wireless network of the client; and extracting network configuration data of the wireless network card of the client from the registry based on the identification.
The method for extracting the network configuration data of the wireless network card of the client from the corresponding table entry in the registry based on the identification comprises the following steps: determining a corresponding entry in the registry based on the identification; and extracting network configuration data of the wireless network card of the client based on the linked list structure of the table items.
In S410, after the client logs out, the monitoring is canceled and the memory occupied by the network configuration data is released.
According to the method for assisting the client in carrying out wireless network switching, the client or the server monitors the change of the PC network state, and the client or the server backs up the configuration data of the PC network card. When the wireless network of the client is switched, whether the multiplexing change problem occurs in the manually set DNS configuration item or not is judged through the backed-up data, and recovery is carried out. The problem of DNS access abnormality caused by the multiplexing of the DNS configuration manually set when the PC performs wireless network switching is solved.
Those skilled in the art will appreciate that all or part of the steps implementing the above described embodiments are implemented as a computer program executed by a CPU. The above-described functions defined by the above-described methods provided by the present disclosure are performed when the computer program is executed by a CPU. The program may be stored in a computer readable storage medium, which may be a read-only memory, a magnetic disk or an optical disk, etc.
Furthermore, it should be noted that the above-described figures are merely illustrative of the processes involved in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
The following are device embodiments of the present disclosure that may be used to perform method embodiments of the present disclosure. For details not disclosed in the embodiments of the apparatus of the present disclosure, please refer to the embodiments of the method of the present disclosure.
Fig. 5 is a block diagram illustrating an apparatus for assisting a client in wireless network handoff in accordance with an exemplary embodiment. As shown in fig. 5, the apparatus 50 for assisting a client in performing wireless network handover includes: a status module 502, an information module 504, a matching module 506, and a recovery module 508.
The state module 502 is configured to monitor a network connection state of the client;
the information module 504 is configured to obtain configuration information of a wireless network currently used on the client when a network connection state of the client changes; comprising the following steps: extracting a registry of the wireless network card of the client; extracting a network card table item from the registry; and extracting configuration information of the currently used wireless network based on the key value pair corresponding to the network card table item.
The matching module 506 is configured to match the configuration information of the wireless network with the backed up configuration information of the plurality of wireless networks;
and the recovery module 508 is configured to recover the current configuration information based on the backed-up configuration information when the matching is consistent, so as to ensure that the client continues network connection. The recovery module 508 is further configured to use the configuration information of the currently used wireless network as a preference when the matching is inconsistent.
Fig. 6 is a block diagram illustrating an apparatus for assisting a client in wireless network handoff according to another exemplary embodiment. As shown in fig. 6, the apparatus 60 for assisting a client in performing wireless network handover includes: a log-in module 602, a status module 604, a listening module 606, a backup module 608.
The login module 602 is configured to receive and process a login request from a client;
the state module 604 is configured to obtain a network connection state of the client after the client logs in;
the monitoring module 606 is configured to monitor a network connection state of the client when the network connection state is a wireless network connection. Comprising the following steps: extracting a registry of the wireless network card of the client; extracting a network card table item from the registry; and determining that the network connection state of the client is wireless network connection when the network table item comprises preset key value pairs.
The backup module 608 is configured to backup network configuration data of the wireless network card of the client. Comprising the following steps: acquiring the identification of the currently used wireless network of the client; and extracting network configuration data of the wireless network card of the client from the registry based on the identification.
According to the device for assisting the client in carrying out wireless network switching, the network connection state of the client is monitored; when the network connection state of the client is changed, acquiring configuration information of a wireless network currently used on the client; matching the configuration information of the wireless network with the backed up configuration information of a plurality of wireless networks; and when the matching is consistent, recovering the current configuration information based on the backed-up configuration information to ensure that the client continues to be connected with the network, monitoring the change of the network state at the client, and correcting the network multiplexing condition of the client when the client performs wireless network switching so as to ensure the correct operation of the network at the client.
Fig. 7 is a block diagram of an electronic device, according to an example embodiment.
An electronic device 700 according to such an embodiment of the present disclosure is described below with reference to fig. 7. The electronic device 700 shown in fig. 7 is merely an example and should not be construed to limit the functionality and scope of use of embodiments of the present disclosure in any way.
As shown in fig. 7, the electronic device 700 is embodied in the form of a general purpose computing device. Components of electronic device 700 may include, but are not limited to: at least one processing unit 710, at least one memory unit 720, a bus 730 connecting the different system components (including the memory unit 720 and the processing unit 710), a display unit 740, and the like.
Wherein the storage unit stores program code that is executable by the processing unit 710 such that the processing unit 710 performs steps described in the present specification according to various exemplary embodiments of the present disclosure. For example, the processing unit 710 may perform the steps as shown in fig. 3, 4.
The memory unit 720 may include readable media in the form of volatile memory units, such as Random Access Memory (RAM) 7201 and/or cache memory 7202, and may further include Read Only Memory (ROM) 7203.
The storage unit 720 may also include a program/utility 7204 having a set (at least one) of program modules 7205, such program modules 7205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 730 may be a bus representing one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 700 may also communicate with one or more external devices 700' (e.g., keyboard, pointing device, bluetooth device, etc.), devices that enable a user to interact with the electronic device 700, and/or any devices (e.g., routers, modems, etc.) with which the electronic device 700 can communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 750. Also, electronic device 700 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through network adapter 760. Network adapter 760 may communicate with other modules of electronic device 700 via bus 730. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 700, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, as shown in fig. 8, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, or a network device, etc.) to perform the above-described method according to the embodiments of the present disclosure.
The software product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable storage medium may also be any readable medium that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The computer-readable medium carries one or more programs, which when executed by one of the devices, cause the computer-readable medium to perform the functions of: monitoring the network connection state of the client; when the network connection state of the client is changed, acquiring configuration information of a wireless network currently used on the client; matching the configuration information of the wireless network with the backed up configuration information of a plurality of wireless networks; and when the matching is consistent, restoring the current configuration information based on the backed-up configuration information to ensure that the client continues network connection.
Those skilled in the art will appreciate that the modules may be distributed throughout several devices as described in the embodiments, and that corresponding variations may be implemented in one or more devices that are unique to the embodiments. The modules of the above embodiments may be combined into one module, or may be further split into a plurality of sub-modules.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or in combination with the necessary hardware. Thus, the technical solutions according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and include several instructions to cause a computing device (may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
Exemplary embodiments of the present disclosure are specifically illustrated and described above. It is to be understood that this disclosure is not limited to the particular arrangements, instrumentalities and methods of implementation described herein; on the contrary, the disclosure is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (11)

1. A method for assisting a client in performing a wireless network handoff, comprising:
monitoring the network connection state of the client;
when the network connection state of the client is changed, acquiring configuration information of a wireless network currently used on the client;
matching the configuration information of the wireless network with the backed up configuration information of a plurality of wireless networks;
and when the matching is consistent, restoring the current configuration information based on the matched and consistent configuration information in the backed-up configuration information so as to ensure that the client continues network connection.
2. The method as recited in claim 1, further comprising:
receiving and processing a login request from a client;
after the client logs in, acquiring the network connection state of the client;
and monitoring the network connection state of the client when the network connection state is wireless network connection.
3. The method of claim 2, wherein when the network connection state is a wireless network connection, comprising:
extracting a registry of the wireless network card of the client;
extracting a network card table item from the registry;
and determining that the network connection state of the client is wireless network connection when the network card table item comprises preset key value pairs.
4. The method of claim 2, wherein when the network connection state is a wireless network connection, further comprising:
and backing up the network configuration data of the wireless network card of the client.
5. The method as recited in claim 4, further comprising:
and after the client logs out, canceling monitoring and releasing the memory occupied by the network configuration data.
6. The method of claim 4, wherein backing up network configuration data for the client's wireless network card comprises:
acquiring the identification of the currently used wireless network of the client;
and extracting network configuration data of the wireless network card of the client from the registry based on the identification.
7. The method of claim 6, wherein extracting network configuration data for the client's wireless network card from the corresponding entry in the registry based on the identification comprises:
determining a corresponding entry in the registry based on the identification;
and extracting network configuration data of the wireless network card of the client based on the linked list structure of the table items.
8. The method of claim 1, wherein obtaining configuration information for a wireless network currently in use on the client comprises:
extracting a registry of the wireless network card of the client;
extracting a network card table item from the registry;
and extracting configuration information of the currently used wireless network based on the key value pair corresponding to the network card table item.
9. The method as recited in claim 1, further comprising:
when the matching is inconsistent, the corresponding value in the currently active wireless network list item is modified by using the backup value, original data of the DNS configuration which is manually set is restored, and the configuration information of the currently used wireless network is used as a preference.
10. An apparatus for assisting a client in performing a wireless network handoff, comprising:
the state module is used for monitoring the network connection state of the client;
the information module is used for acquiring configuration information of a wireless network currently used on the client when the network connection state of the client is changed;
the matching module is used for matching the configuration information of the wireless network with the backed-up configuration information of the plurality of wireless networks;
and the recovery module is used for recovering the current configuration information based on the configuration information which is already matched and consistent with the backed-up configuration information when the matching and the matching are consistent so as to ensure that the client continues network connection.
11. The apparatus as recited in claim 10, further comprising:
the login module is used for receiving and processing a login request from the client;
the state module is used for acquiring the network connection state of the client after the client logs in;
the monitoring module is used for monitoring the network connection state of the client when the network connection state is wireless network connection;
and the backup module is used for backing up the network configuration data of the wireless network card of the client.
CN202110663973.3A 2021-06-16 2021-06-16 Method and device for assisting client in wireless network switching Active CN113411800B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110663973.3A CN113411800B (en) 2021-06-16 2021-06-16 Method and device for assisting client in wireless network switching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110663973.3A CN113411800B (en) 2021-06-16 2021-06-16 Method and device for assisting client in wireless network switching

Publications (2)

Publication Number Publication Date
CN113411800A CN113411800A (en) 2021-09-17
CN113411800B true CN113411800B (en) 2023-04-25

Family

ID=77684070

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110663973.3A Active CN113411800B (en) 2021-06-16 2021-06-16 Method and device for assisting client in wireless network switching

Country Status (1)

Country Link
CN (1) CN113411800B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6480508B1 (en) * 1999-05-12 2002-11-12 Westell, Inc. Router-based domain name system proxy agent using address translation

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833362B (en) * 2012-08-16 2018-01-09 中兴通讯股份有限公司 The collocation method of dns server and the drive device of wireless data access equipment
CN103269389B (en) * 2013-06-03 2016-05-25 北京奇虎科技有限公司 Check and repair the method and apparatus that malice DNS arranges
CN104468571A (en) * 2014-12-05 2015-03-25 上海斐讯数据通信技术有限公司 Configuration file backup and recovery method and system
CN106911508B (en) * 2017-02-28 2020-03-06 杭州迪普科技股份有限公司 DNS configuration recovery method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6480508B1 (en) * 1999-05-12 2002-11-12 Westell, Inc. Router-based domain name system proxy agent using address translation

Also Published As

Publication number Publication date
CN113411800A (en) 2021-09-17

Similar Documents

Publication Publication Date Title
US8327022B2 (en) Method and apparatus for updating a domain name server
US9858152B2 (en) Collaborative information source recovery
CN111954240A (en) Network fault processing method and device and electronic equipment
CN111290871A (en) Method and device for acquiring crash information of application program
CN110881224B (en) Network long connection method, device, equipment and storage medium
US8694659B1 (en) Systems and methods for enhancing domain-name-server responses
CN106911508B (en) DNS configuration recovery method and device
CN112910742A (en) Link state detection method and device
CN113411800B (en) Method and device for assisting client in wireless network switching
CN112491940B (en) Request forwarding method and device of proxy server, storage medium and electronic equipment
CN110275701B (en) Data processing method, device, medium and computing equipment
CN111198853B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN106060124A (en) Application program downloading method and mobile terminal
CN111783010A (en) Webpage blank page monitoring method, device, terminal and storage medium
US8312075B1 (en) System, method and computer program product for reconstructing data received by a computer in a manner that is independent of the computer
CN107465604B (en) E-mail display method and device and medium computing device
CN112800006B (en) Log storage method and device for network equipment
CN111988405B (en) Message rewriting method of load balancing device and load balancing device
CN114741158A (en) Page switching method, device, equipment and storage medium
CN114706772A (en) Installation environment detection method, device, equipment and storage medium
CN114449040A (en) Configuration issuing method and device based on cloud platform
Cisco Installing and Configuring McAfee NetShield on the Cisco ICS 7750
CN112416698B (en) Expansion method and device of monitoring system, storage medium and electronic equipment
CN113010222A (en) File processing method and server
CN111984893B (en) System log configuration conflict reminding method, device and system

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