CN117880925A - Method, device and storage medium for accessing network - Google Patents

Method, device and storage medium for accessing network Download PDF

Info

Publication number
CN117880925A
CN117880925A CN202211243020.2A CN202211243020A CN117880925A CN 117880925 A CN117880925 A CN 117880925A CN 202211243020 A CN202211243020 A CN 202211243020A CN 117880925 A CN117880925 A CN 117880925A
Authority
CN
China
Prior art keywords
network
wireless access
access point
network connection
connection state
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.)
Pending
Application number
CN202211243020.2A
Other languages
Chinese (zh)
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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202211243020.2A priority Critical patent/CN117880925A/en
Publication of CN117880925A publication Critical patent/CN117880925A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The disclosure relates to a method, a device and a storage medium for accessing a network. The method for accessing the network comprises the following steps: monitoring a beacon frame broadcasted by a wireless access point, wherein a network state identifier is arranged in the beacon frame and used for representing the network connection state of the wireless access point, and the network connection state is the network connection state of a three-layer network of the wireless access point; determining a network connection state of the wireless access point based on the network state identifier; determining a wireless access point to be accessed based on the network connection state of the wireless access point; and accessing to a network based on the wireless access point to be accessed. By the method for accessing the network, the station can acquire the network connection state of the wireless access point, the accuracy of the station is improved when the wireless access point is selected for access, the time delay for perceiving the unconnected state of the network is reduced, the power consumption of the station is not increased additionally, and the network use experience of a user is improved.

Description

Method, device and storage medium for accessing network
Technical Field
The present disclosure relates to the field of short-range communications technologies, and in particular, to a method, an apparatus, and a storage medium for accessing a network.
Background
With the development of technology, the popularity of using networks has increased.
In the related art, a wireless Access Point (AP) can send a Beacon, where the Beacon (Beacon) includes a tag parameter (Tagged parameters), and the tag parameter includes a service quality (Quality ofservice Basic Service Set) of a basic service unit, and includes a load attribute (QBSS Load Element) to identify a load condition of a current station accessing a network, so that the station can flexibly select a low-load wireless access point.
However, the beacon sent by the wireless access point does not include the connection condition between the wireless access point and the network, and it is impossible to reflect to the station whether the wireless access point can successfully connect to the wireless network, so that when there is an accessible wireless access point, the station may be connected to a wireless access point that cannot access the network, or when the user uses the station to access the network, the network of the wireless access point accessed by the station is abnormal, the station can sense that the network is disconnected after a long time, and the network use experience of the user is poor.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a method, apparatus, and storage medium for accessing a network.
According to a first aspect of embodiments of the present disclosure, there is provided a method of accessing a network, applied to a station, including:
monitoring a beacon frame broadcasted by a wireless access point, wherein a network state identifier is arranged in the beacon frame and used for representing the network connection state of the wireless access point, and the network connection state is the network connection state of a three-layer network of the wireless access point;
determining a network connection state of the wireless access point based on the network state identifier;
determining a wireless access point to be accessed based on the network connection state of the wireless access point;
and accessing to a network based on the wireless access point to be accessed.
In one embodiment, the determining the network connection state of the wireless access point based on the network state identifier includes:
determining an identification value corresponding to the network state identification, wherein different network connection states correspond to different identification values;
determining the network connection state of the wireless access point based on the identification value corresponding to the network state identification;
wherein the network connection state includes a network connection state or a network unconnected state.
In one embodiment, the determining, based on the network connection state, a wireless access point to be accessed includes:
Determining scores of the plurality of wireless access points in response to the plurality of wireless access points, wherein the scores are obtained by scoring based on the network connection state information;
and selecting the wireless access point with the highest score as the wireless access point to be accessed.
In one embodiment, the method further comprises:
periodically polling the network connection status of the wireless access point;
and determining the wireless access point to be accessed based on the network connection state again in response to the polling that the network connection state is the unconnected state.
According to a second aspect of embodiments of the present disclosure, there is provided a method of accessing a network, applied to a wireless access point, including:
broadcasting a beacon frame of the wireless access point, wherein a network state identifier is arranged in the beacon frame and used for representing the network connection state of the wireless access point, and the network connection state is the network connection state of a three-layer network of the wireless access point;
determining a network connection state of the wireless access point based on the beacon frame;
sending a network connection state to a station;
and receiving an access request of a station, and connecting with the station based on the access request of the station.
In one embodiment, different network connection states correspond to different identification values, including a network connection state or a network unconnected state.
In one embodiment, the method further comprises: in response to the station periodically polling, a beacon frame is transmitted to the station.
In one embodiment, the method further comprises: monitoring a plugging event and a network state event of a wireless access point network line; detecting a network connection state based on the network cable plug event and/or the network state event; and sending the network connection state to a station through a beacon frame.
According to a third aspect of embodiments of the present disclosure, there is provided an apparatus for accessing a network, for application to a station, comprising:
the monitoring unit is used for monitoring a beacon frame broadcasted by the wireless access point, wherein a network state identifier is arranged in the beacon frame and used for representing the network connection state of the wireless access point, and the network connection state is the network connection state of a three-layer network of the wireless access point;
a determining unit, configured to determine a network connection state of the wireless access point based on the network state identifier;
the processing unit is used for determining a wireless access point to be accessed based on the network connection state of the wireless access point;
And the access unit is used for accessing the network based on the wireless access point to be accessed.
In one embodiment, the determining unit determines the network connection state of the wireless access point in the following manner:
monitoring a beacon frame broadcasted by a wireless access point, wherein a network state identifier is arranged in the beacon frame, and the network state identifier is used for representing the network connection state of the wireless access point;
and determining the network connection state of the wireless access point based on the network state identifier.
In one embodiment, the determining unit determines the network connection status of the wireless access point based on the network status identifier in the following manner:
determining an identification value corresponding to the network state identification, wherein different network connection states correspond to different identification values;
determining the network connection state of the wireless access point based on the identification value corresponding to the network state identification;
wherein the network connection state includes a network connection state or a network unconnected state.
In one embodiment, the determining unit determines, based on the network connection state, a wireless access point to be accessed in the following manner:
determining scores of the plurality of wireless access points in response to the plurality of wireless access points, wherein the scores are obtained by scoring based on the network connection state information;
And selecting the wireless access point with the highest score as the wireless access point to be accessed.
In one embodiment, the apparatus further comprises:
a polling unit, configured to periodically poll a network connection status of the wireless access point;
and the reconnection unit is used for determining the wireless access point to be accessed again based on the network connection state under the condition that the network connection state is polled to be the unconnected state.
According to a fourth aspect of embodiments of the present disclosure, there is provided an apparatus for accessing a network, applied to a wireless access point, including:
a broadcasting unit, configured to broadcast a beacon frame of the wireless access point, where the beacon frame is provided with a network state identifier, and the network state identifier is used to characterize a network connection state of the wireless access point, where the network connection state is a network connection state of a three-layer network of the wireless access point;
a determining unit configured to determine a network connection state of the wireless access point based on the beacon frame;
a transmitting unit configured to transmit a network connection state to a station;
and the connection unit is used for receiving the access request of the station and connecting with the station based on the access request of the station.
In one embodiment, different network connection states correspond to different identification values, including a network connection state or a network unconnected state.
In one embodiment, the broadcasting unit is further configured to: in response to the station periodically polling, a beacon frame is transmitted to the station.
In one embodiment, the apparatus further comprises:
the monitoring unit is used for monitoring the plugging event and the network state event of the wireless access point network line;
the detection unit is used for detecting the network connection state based on the network cable plug event and/or the network state event;
and the processing unit is used for sending the network connection state to the station through a beacon frame.
According to a fifth aspect of embodiments of the present disclosure, there is provided an apparatus for accessing a network, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: the method of the first aspect or any implementation of the first aspect is performed.
According to a sixth aspect of embodiments of the present disclosure, there is provided an apparatus for accessing a network, comprising:
a processor;
a memory for storing processor-executable instructions;
Wherein the processor is configured to: the method of the second aspect or any one of the embodiments of the second aspect is performed.
According to a seventh aspect of embodiments of the present disclosure, there is provided a non-transitory computer readable storage medium, which when executed by a processor of a mobile terminal, enables the mobile terminal to perform the method as described in the first aspect or any implementation of the first aspect.
According to an eighth aspect of embodiments of the present disclosure, there is provided a non-transitory computer readable storage medium, which when executed by a processor of a mobile terminal, enables the mobile terminal to perform the method of the second aspect or any one of the embodiments of the second aspect.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects: and the station selects the wireless access point to be accessed to the network according to the network connection state of the wireless access point. The network connection state of the wireless access point is sent to the station through a beacon frame, and the beacon frame is broadcast by the wireless access point and provided with a network state identifier. The network state identifier is used for indicating the network connection state of the wireless access point, and the network connection state is the network connection state of the three-layer network of the wireless access point. According to the method for accessing the network, the station can acquire the network connection state of the wireless access point, the accuracy of the station when the wireless access point is selected to be accessed is improved, and the delay of the unconnected state of the network is perceived to be reduced. The network state identifier is arranged in the beacon frame, so that the power consumption of the station is not increased additionally, and the network use experience of the user is improved.
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 accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flow chart illustrating a method of accessing a network according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating a method of determining a network connection status of a wireless access point, according to an example embodiment.
Fig. 3 is a flowchart illustrating a method of determining a wireless access point to be accessed, according to an example embodiment.
Fig. 4 is a flow chart illustrating a method of accessing a network according to an exemplary embodiment.
Fig. 5 shows a schematic diagram of a network connection state change and redetermining a wireless access point to be accessed in an exemplary embodiment of the present disclosure.
Fig. 6 is a flow chart illustrating a method of accessing a network according to an exemplary embodiment.
Fig. 7 is a flow chart illustrating a method of accessing a network according to an exemplary embodiment.
Fig. 8 is a schematic diagram of determining a network connection state in an exemplary embodiment.
Fig. 9 is a flowchart illustrating a method for a station to determine a wireless access point to be accessed in an exemplary embodiment of the present disclosure.
Fig. 10 is a block diagram of an apparatus for accessing a network, according to an example embodiment.
Fig. 11 is a block diagram of an apparatus for accessing a network, according to an example embodiment.
Fig. 12 is a block diagram illustrating an apparatus for accessing a network according to an example embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure.
The network access method provided by the embodiment of the disclosure can be applied to a scene of detecting the network connection state, for example, a scene of accessing a wireless network according to the network connection state when a station performs network selection connection, or a scene of detecting whether the network state is successfully connected when the station uses the current wireless network.
In the related art, the beacon of the wireless access point includes two layers of network load information (QBSS Load Element) for identifying the load condition of the current wireless access point, and the station can flexibly select a low-load wireless access point to access the wireless network according to the load condition of the current wireless access point.
In one scenario, there are multiple wireless access points around the current station, and among these wireless access points, there is a condition that the wireless access point is successfully connected to the network or a condition that the wireless access point is disconnected from the network. In the related art, when a station selects a wireless access point, only the load condition of the wireless access point is considered, and the state that the wireless access point is connected to a network or not connected to the network is not considered. The information broadcast by the wireless access point to the station also does not include information whether the wireless access point can access the network. In this scenario, the station may choose to connect to a wireless access point that is not connected to the network, making the user experience poor.
In another scenario, the current station has access to a wireless access point that is in a network connection state, and the wireless access point is disconnected from the wireless network due to certain factors, such as operator network state events, network cable unplugging, power outage, etc. The wireless access point cannot actively inform the station that the network connection is disconnected, and the station senses longer time delay of the wireless network state due to the fact that the wireless access point is polled for the time length and complex logic detects the current network state. If the network is disconnected when the station uses the current network, the station automatically selects other available networks and re-accesses the other available networks, but a longer time delay exists. If the time length of the station polling is shortened, the station can reduce the time delay for sensing the disconnection of the network, but the extra load of the station system is increased, and the user experience is poor.
In view of this, the disclosure provides a method for accessing a network, which adds a network connection state (QBSS Internet Load Element) of a three-layer network in a tag parameter of a wireless access point beacon to identify the network state of the three-layer network of the wireless access point as a network connection state or a network unconnected state. When the station selects the network, the wireless access point broadcasts a beacon frame, and the station receives the beacon frame broadcast by the wireless access point and periodically polls the network state of the wireless access point to acquire the network state of the wireless access point. A wireless access point in a network connected state can be preferentially selected. If the network state of the wireless access point is in the network unconnected state, the station acquires the information of the network unconnected state of the wireless access point according to the beacon frame of the wireless access point, so that the station can sense the disconnection of the wireless network in a short time, and select the network again to ensure the network surfing experience of a user.
The network connection state is a network connection state of a three-layer network.
Fig. 1 is a flow chart illustrating a method of accessing a network according to an exemplary embodiment. As shown in fig. 1, the method of accessing a network is used for a station, and includes the following steps.
In step S11, a beacon frame broadcasted by the wireless access point is monitored, and a network state identifier is set in the beacon frame, where the network state identifier is used to characterize a network connection state of the wireless access point, and the network connection state is a network connection state of a three-layer network of the wireless access point.
In step S12, a wireless access point to be accessed is determined based on the network status identification.
In step S13, the wireless access point to be accessed is determined based on the network connection state of the wireless access point.
In step S14, the network is accessed based on the wireless access point to be accessed.
In the embodiment of the disclosure, a station listens to a wireless access point to broadcast a Beacon frame, wherein the Beacon frame comprises a Beacon (Beacon) of the wireless access point, and a probe report (probe response) sent to the station according to a probe request (probe request) sent by the station. The beacon, probe request, and probe report include network status identification, tagging parameters (tagged parameters), and two-layer network load information (QBSS Load Element). Wherein the network state identifier is used for indicating the network connection state of the three-layer network of the wireless access point.
In the embodiment of the disclosure, the beacon included in the beacon frame is wireless access point information actively broadcast to the station by the wireless access point, and the probe report included in the beacon frame is a probe report sent to the station by the wireless access point according to the probe request when the station sends the probe request to the wireless access point.
In the embodiment of the disclosure, a station acquires a network connection state sent by a wireless access point according to a beacon frame. The network connection state is a connection state between the wireless access point and the network, and comprises a network connection state and a network unconnected state. If the wireless access point is in an unconnected state with the network, the station accesses the wireless access point and cannot connect with the network through the wireless access point. If the wireless access point is in a network connection state with the network, the station is accessed to the wireless access point and can be connected with the network through the wireless access point. The station determines a wireless access point to be accessed according to the network connection state between the wireless access point and the network, and accesses the network according to the wireless access point to be accessed.
In an exemplary embodiment, taking the case that a wireless access point a and a wireless access point B exist around a station, the wireless access point a and the network are in a network connection state, and the wireless access point B and the network are in a network non-connection state. The station acquires the network connection states of the wireless access point A and the wireless access point B, judges that the wireless access point A is in the connection state with the network, determines the wireless access point A as the wireless access point to be accessed, and accesses the wireless access point A and the network.
According to the method for accessing the network, the station can acquire the connection state of the wireless access point and the network according to the beacon frame of the wireless access point, so that when the station selects the wireless access point to access the network, the station can select the access point in the network connection state to access, the situation that the wireless access point accessed by the station possibly has the network unconnected state is avoided, the accuracy of the station in selecting the wireless access point to access the network is improved, and the experience of a user in using the network is improved.
The method for accessing the network provided by the embodiment of the disclosure can judge whether the wireless access point is in the network connection state or not through the identification value.
Fig. 2 is a flowchart illustrating a method of determining a network connection status of a wireless access point, according to an example embodiment. As shown in fig. 2, determining a network connection status of a wireless access point based on a network status identification includes the following steps.
In step S21, an identification value corresponding to the network state identification is determined, wherein different network connection states correspond to different identification values.
In step S22, the network connection state of the wireless access point is determined based on the identification value corresponding to the network state identification.
Wherein the network connection state includes a network connection state or a network unconnected state.
In the embodiment of the disclosure, a station determines a network connection state of a wireless access point through an identification value corresponding to a network state identification, and different network connection states correspond to different identification values. The identification value corresponding to the network connection state is preset.
In an example, referring to table 1, an identification value corresponding to a network state preset in a custom module of an 802.11 wireless protocol is shown. As shown in table 1, in the custom module of the 802.11 wireless protocol, an Information element (Information Element, IE), specifically, QBSS Internet Load Element IE, a command function (vendor specific) with an attribute name of 211, a Length (Length) of 5 bytes, and Information (Information) including an organization unique identifier OUI (Organizationally Unique Identifier), a first column of a manufacturer identification code, a second column of an organization unique identifier type, a third column of a value of QBSS Internet Load Element, 0200 indicating that the network connection state of the wireless access point is a network unconnected state, and 0201 indicating that the network connection state of the wireless access point is a network connected state are preset. Wherein 211 is a field used by the manufacturer to add IEs to the 802.11 wireless protocol, which can be modified as needed.
TABLE 1
In an exemplary embodiment, the station acquires the beacon frame sent by the wireless access point, and takes the value of Data as 0201 when the wireless access point is in the network connection state, and takes the value of Data as 0200 when the wireless access point is in the network non-connection state as an example. If the station acquires the identifier value of 0200, the network connection state of the wireless access point is determined to be the network unconnected state, and if the station acquires the identifier value of 0201, the network connection state of the wireless access point is determined to be the network connection state.
In the method for accessing the network provided by the embodiment of the disclosure, the network connection state of the wireless access point can be determined by the identification value corresponding to the network state identification.
In the embodiment of the disclosure, if a plurality of wireless access points exist around a station, when the station performs automatic network selection, the wireless access point to be accessed can be determined according to the scores of the plurality of wireless access points.
Fig. 3 is a flowchart illustrating a method of determining a wireless access point to be accessed, according to an example embodiment. As shown in fig. 3, the determination of the wireless access point to be accessed based on the network connection status includes the following steps.
In step S31, in response to the number of wireless access points being plural, scores of the plural wireless access points are determined, and the scores are scored based on the network connection status information.
In step S32, the wireless access point with the highest score is selected as the wireless access point to be accessed.
In the embodiment of the disclosure, if a plurality of wireless access points exist around a station, the plurality of wireless access points can be scored according to network connection state information to determine the scores of the plurality of wireless access points, and the station selects the wireless access point with the highest score as the wireless access point to be accessed. An access request is sent to a wireless access point to be accessed, and the station accesses the network.
The scoring may be based on a signal Score (RSSI Score) of the wireless access point, two-layer load information (throughput Score) of the bypass load wireless access point, and a network connection status identifier value QBSS Internet Load Element, where the scoring is performed on the plurality of wireless access points, and the station selects the wireless access point with the highest Score as the wireless access point to be accessed.
It will be appreciated that the scoring bases described above are merely exemplary, and that the present disclosure is capable of scoring wireless access points according to other scoring forms including network connection status identification values, and selecting the wireless access point with the highest score as the wireless access point to be accessed.
In an exemplary embodiment, taking an example that the wireless access point a is in a network unconnected state and the wireless access point B is in a network connected state, the station scans and/or transmits a probe request to the wireless access point A, B, and the wireless access point A, B transmits a beacon and a probe report to the station, where the beacon array includes a signal fraction of the wireless network A, B, two-layer load information of the wireless access point A, B, and QBSS Internet Load Element of the three-layer network, and the station scores the wireless access point according to the above information. Since the wireless access point a is in the network unconnected state and the wireless access point B is in the network connected state, the score of the wireless access point a is lower than the score of the wireless access point B, for example, the score of the wireless access point a is 49 and the score of the wireless access point B is 55. The station automatically selects the wireless access point B for connection and accesses the wireless network B.
According to the embodiment of the disclosure, the station can select the wireless access point capable of being connected to the wireless network to connect, so that after the station is accessed to the wireless access point, the network can be smoothly used, and the experience of using the network by a user is improved.
By the method for accessing the network, the station can select the wireless access point with the highest score from a plurality of wireless access points to connect so as to ensure the Internet surfing experience of the user.
The method for accessing the network can also quickly acquire the network unconnected state of the current network access point and redetermine the wireless access point to be accessed when the wireless access point is accessed by the station if the network connected state of the wireless access point changes, so that the experience of a user on using the network is improved.
Fig. 4 is a flow chart illustrating a method of accessing a network according to an exemplary embodiment. As shown in fig. 5, the following steps are also included.
In step S41, the network connection status of the wireless access point is periodically polled.
In step S42, in response to the polling that the network connection status is the unconnected status, the wireless access point to be accessed is determined again based on the network connection status.
In the embodiment of the disclosure, a station polls a network connection state of a wireless access point, and when the station accesses the wireless access point and the network state of the wireless access point which is polled to access is in a network unconnected state, the wireless access point to be accessed is redetermined according to a wireless access point beacon frame existing around the station. The polling may be that the station transmits a probe request to the wireless access point, and the wireless access point transmits a probe report to the station in response to the probe request.
In an exemplary embodiment, a station polls a wireless access point for 3 seconds, where a polling manner is to send a probe request to the wireless access point, and the station sends the probe request to the wireless access point every 3 seconds, and if a network connection state of the current access point is identified as a network unconnected state in a probe report in response to the probe request, the station redetermines the wireless access point to be accessed according to beacon frames of wireless access points existing around, and accesses the network.
Fig. 5 shows a schematic diagram of a network connection state change and redetermining a wireless access point to be accessed in an exemplary embodiment of the present disclosure. Referring to fig. 5, taking a station as an example, the terminal has accessed to the wireless network, and when detecting that the screen of the terminal is on, the wireless network module of the terminal can periodically acquire some information of the current wireless network access point of the terminal, and acquire the wireless network access point QBSS Internet Load Element which is currently accessed. Where the period may be 3 seconds, the information may include RX TX and RSSI signals. If the Data value of QBSS Internet Load Element acquired by the terminal is 0201, the terminal polls according to the period, and if the Data value of QBSS Internet Load Element acquired by the terminal is 0200, the wireless access point is in a network unconnected state, and the terminal determines the wireless access point to be accessed again.
According to the method provided by the embodiment of the disclosure, since the terminal periodically polls the wireless network access point information, the terminal can quickly sense when the network connection is disconnected, so that the time for the terminal to sense the disconnection of the network is greatly reduced, and the QBSS Internet Load Element is arranged in the beacon, so that the extra power consumption and the system load of the system are not increased.
By the method for accessing the network, the station can acquire the network connection state of the wireless access point in a short time, monitor the network connection state of the access point, and re-determine the wireless access point to be accessed when the network connection state of the access point is acquired to be in an unconnected state. To reduce the duration of the station perceiving the network unconnected state and without adding additional power consumption.
The embodiment of the disclosure also provides a method for accessing the network, which is applied to the wireless access point.
Fig. 6 is a flow chart illustrating a method of accessing a network according to an exemplary embodiment. As shown in fig. 6, the method for accessing a network is applied to a wireless access point, and includes the following steps.
In step S51, a beacon frame of the wireless access point is broadcast, and a network state identifier is set in the beacon frame, where the network state identifier is used to characterize a network connection state of the wireless access point, and the network connection state is a network connection state of a three-layer network of the wireless access point.
In step S52, the network connection state of the wireless access point is determined based on the beacon frame.
In step S53, the network connection state is transmitted to the station.
In step S54, an access request of a station is received, and a connection is made with the station based on the access request of the station.
In the disclosed embodiments, a wireless access point broadcasts a beacon frame to communicate information of network connection status. The Beacon frame includes a Beacon (Beacon) of the wireless access point, and a probe report (probe response) transmitted to the station according to a probe request (probe request) transmitted by the station. The beacon, probe request, and probe report include a network status identifier, a tag parameter (taggeddameters), and two-layer network load information (QBSS Load Element). Wherein the network state identifier is used for indicating the network connection state of the three-layer network of the wireless access point. The different network connection states correspond to different identification values, and the network connection states comprise a network connection state or a network unconnected state.
In the embodiment of the disclosure, a wireless access point determines a network connection state according to a beacon frame, and sends the network connection state to a station, if the station selects the wireless access point as a wireless access point to be accessed, the station sends an access request to the wireless access point, the wireless access point receives the access request of the station, and connects with the station according to the access request of the station, so that the station can access the network through the wireless access point.
In an exemplary embodiment, the beacon frame of the wireless access point includes a beacon of the wireless access point and a probe report transmitted by the wireless access point in response to a probe request of the station. In the marking parameter of the wireless access point beacon, QBSS Internet Load Element of the network connection status is set, which is used for identifying whether the three layers of networks are connected for example, and when the station determines that the wireless access point is to be accessed, the station can acquire the network connection status sent by the wireless access point, and the network connection status or the network unconnected status is obtained.
According to the method for accessing the network, the wireless access point can send the network connection state to the station, so that the station can determine the network connection state of the wireless access point. If the wireless access point is in a network connection state, the station selects the wireless access point as the wireless access point to be accessed, and the wireless access point receives an access request of the station and is connected with the station. The wireless access point in the network unconnected state is prevented from being selected by the station to serve as the wireless access point to be accessed, and therefore the experience of a user in using the network is improved.
In the embodiments of the present disclosure, the wireless access point can also send a beacon frame to the station according to the periodic polling of the station. The polling is periodic to ensure that the station acquires the network connection status in time through the information in the beacon frame.
Fig. 7 is a flow chart illustrating a method of accessing a network according to an exemplary embodiment. As shown in fig. 7, the method of accessing a network further comprises the following steps.
In step S61, a plug event of the wireless access point network line is monitored, and a network status event is monitored.
In step S62, the network connection status is detected based on the network cable plug event and/or the network status event.
In step S63, the network connection status is transmitted to the station through the beacon frame.
Fig. 8 is a schematic diagram of determining a network connection state in an exemplary embodiment. Referring to fig. 8, the wireless access point includes a network detection module, a network status detection module, and a packet sending module, where the network detection module is capable of registering a network cable plug event for monitoring the wireless access point and registering a network status event. When the network cable of the wireless access point is pulled out when the network cable plugging event is registered and monitored, the wireless access point is in a network unconnected state. And when registering the network state event of the operator, acquiring the network connection state of the current wireless access point according to the network state event allocation. And in the network state detection module, the network connection state of the wireless access point can be judged according to the callback event of the network detection module of the wireless access point, and the current network state result is obtained. And sending the current network state result to the station through a beacon frame by a packet sending module of the wireless access point so that the station can sense the current network state. The beacon frame may be a beacon of the wireless access point and/or a probe report of the wireless access point.
Fig. 9 is a flowchart illustrating a method for a station to determine a wireless access point to be accessed in an exemplary embodiment of the present disclosure. Referring to fig. 9, the station includes a wireless network scanning module and a wireless network selecting module, wherein the wireless network scanning module is used for scanning and receiving information sent to the station, and the wireless network selecting module is used for forming a wireless access point for the station to connect according to the scanning result. The user opens a wireless network access setting so that the station can access the network, wherein the station has stored a plurality of wireless access points, and the user can connect to the network at will through own selection.
The network scanning module of the station monitors the beacon from the wireless access point and periodically sends a detection request to the wireless access point to acquire the wireless access points around the current environment of the station and the related information of the wireless access points. After receiving the probe request of the station, the wireless access point replies a probe report to the station according to the probe request. The wireless access point network status assigns the beacon and the Data of QBSS Internet Load Element field in the probe report as the identification value according to the current network condition. When the wireless access point is in a network connection state, the identification value is 0201, and when the wireless access point is in a network non-connection state, the identification value is 0200. Wherein the identification value is determined according to a preset Data item in the 802.11 wireless protocol. And the network scanning module of the station acquires a scanning result (scan result) of the wireless access point according to the beacon and the detection report sent by the wireless access point, and sends the result to the network selecting module of the station. And the network selecting module of the network forms a candidate wireless access point (candidata) for the station to connect according to the received scanning result. The station scores candidate wireless access points available for connection by the station to obtain a score for the wireless access point, the score being based on the score comprising the signal, the load information of two layers of the BSS load wireless access point, and the network connection status in the beacon frame (QBSS Internet Load Element). If one wireless access point is in a network connection state, the score of the wireless access point is higher than the score of the wireless access point in a network non-connection state. The wireless access point can be accessed by the site through automatic network selection, or can be accessed by the user-defined site, wherein the score of the wireless access point can be displayed on a network selection interface of the site. Under the condition of automatic network selection, a network selection module of a station can be automatically connected with a wireless access point with highest score; under the condition that a user customizes a wireless access point accessed by a site, the wireless access point accessed by the site can be customized according to the scoring condition of the wireless access point.
Based on the same conception, the embodiment of the disclosure also provides a device for accessing the network.
It may be understood that, in order to implement the above functions, the network access device provided in the embodiments of the present disclosure includes corresponding hardware structures and/or software modules that perform the respective functions. The disclosed embodiments may be implemented in hardware or a combination of hardware and computer software, in combination with the various example elements and algorithm steps disclosed in the embodiments of the disclosure. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Those skilled in the art may implement the described functionality using different approaches for each particular application, but such implementation is not to be considered as beyond the scope of the embodiments of the present disclosure.
Fig. 10 is a block diagram of an apparatus for accessing a network, according to an example embodiment. Referring to fig. 10, the network access apparatus 100 is applied to a station, and includes a listening unit 101, a determining unit 102, a processing unit 103, and an access unit 104.
A monitoring unit 101, configured to monitor a beacon frame broadcasted by a wireless access point, where a network state identifier is set in the beacon frame, where the network state identifier is used to characterize a network connection state of the wireless access point, where the network connection state is a network connection state of a three-layer network of the wireless access point;
A determining unit 102, configured to determine a network connection state of the wireless access point based on the network state identifier;
the processing unit 103 determines the wireless access point to be accessed based on the network connection state of the wireless access point.
An access unit 104, configured to access a network based on a wireless access point to be accessed.
In one embodiment, the determining unit 102 determines the network connection status of the wireless access point based on the network status identification in the following manner:
determining an identification value corresponding to the network state identification, wherein different network connection states correspond to different identification values;
determining the network connection state of the wireless access point based on the identification value corresponding to the network state identification;
wherein the network connection state includes a network connection state or a network unconnected state.
In one embodiment, the determining unit 102 determines the wireless access point to be accessed based on the network connection state in the following manner:
determining scores of the plurality of wireless access points in response to the plurality of wireless access points, wherein the scores are obtained by scoring based on network connection state information;
and selecting the wireless access point with the highest score as the wireless access point to be accessed.
In one embodiment, the access network device 100 further comprises a polling unit 105, a reconnection unit 106.
A polling unit 105, configured to periodically poll the network connection status of the wireless access point.
And the re-access unit 106 is configured to determine the wireless access point to be accessed based on the network connection state again when the network connection state is polled to be the unconnected state.
Based on the same conception, the embodiment of the disclosure also provides a device for accessing the network.
Fig. 11 is a block diagram of an apparatus for accessing a network, according to an example embodiment. Referring to fig. 11, the apparatus 200 for accessing a network is applied to a wireless access point, and includes a broadcasting unit 201, a determining unit 202, a transmitting unit 203, and a connecting unit 204.
The broadcasting unit 201 is configured to broadcast a beacon frame of the wireless access point, where a network state identifier is set in the beacon frame, and the network state identifier is used to characterize a network connection state of the wireless access point, where the network connection state is a network connection state of a three-layer network of the wireless access point.
A determining unit 202, configured to determine a network connection state of the wireless access point based on the beacon frame.
A transmitting unit 203, configured to transmit the network connection state to the station.
The connection unit 204 is configured to receive an access request of a station, and connect with the station based on the access request of the station.
In one embodiment, different network connection states correspond to different identification values, the network connection states including a network connection state or a network unconnected state.
In one embodiment, the broadcasting unit 201 is further configured to: in response to the station periodically polling, a beacon frame is transmitted to the station.
In one embodiment, the apparatus further comprises:
a monitoring unit 205, configured to monitor a plug event of a wireless access point network cable, and a network state event;
a detection unit 206, configured to detect a network connection state based on a network cable plug event and/or a network state event;
a processing unit 207 for transmitting the network connection status to the station through the beacon frame.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 12 is a block diagram illustrating an apparatus 300 for accessing a network, according to an example embodiment. For example, apparatus 300 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 12, the apparatus 300 may include one or more of the following components: a processing component 302, a memory 304, a power component 306, a multimedia component 308, an audio component 310, an input/output (I/O) interface 312, a sensor component 314, and a communication component 316.
The processing component 302 generally controls overall operation of the apparatus 300, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 302 may include one or more processors 320 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 302 can include one or more modules that facilitate interactions between the processing component 302 and other components. For example, the processing component 302 may include a multimedia module to facilitate interaction between the multimedia component 308 and the processing component 302.
Memory 304 is configured to store various types of data to support operations at apparatus 300. Examples of such data include instructions for any application or method operating on the device 300, contact data, phonebook data, messages, pictures, videos, and the like. The memory 304 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power component 306 provides power to the various components of the device 300. The power components 306 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 300.
The multimedia component 308 includes a screen between the device 300 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 308 includes a front-facing camera and/or a rear-facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the apparatus 300 is in an operational mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 310 is configured to output and/or input audio signals. For example, the audio component 310 includes a Microphone (MIC) configured to receive external audio signals when the device 300 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 304 or transmitted via the communication component 316. In some embodiments, audio component 310 further comprises a speaker for outputting audio signals.
The I/O interface 312 provides an interface between the processing component 302 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 314 includes one or more sensors for providing status assessment of various aspects of the apparatus 300. For example, the sensor assembly 314 may detect the on/off state of the device 300, the relative positioning of the components, such as the display and keypad of the device 300, the sensor assembly 314 may also detect a change in position of the device 300 or a component of the device 300, the presence or absence of user contact with the device 300, the orientation or acceleration/deceleration of the device 300, and a change in temperature of the device 300. The sensor assembly 314 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 314 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 314 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 316 is configured to facilitate communication between the apparatus 300 and other devices, either wired or wireless. The device 300 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 316 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 316 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 300 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 304, including instructions executable by processor 320 of apparatus 300 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
It is understood that the term "plurality" in this disclosure means two or more, and other adjectives are similar thereto. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship. The singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It is further understood that the terms "first," "second," and the like are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish one type of information from another and do not denote a particular order or importance. Indeed, the expressions "first", "second", etc. may be used entirely interchangeably. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure.
It will be further understood that "connected" includes both direct connection where no other member is present and indirect connection where other element is present, unless specifically stated otherwise.
It will be further understood that although operations are depicted in the drawings in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. In certain circumstances, multitasking and parallel processing may be advantageous.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any adaptations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended claims.

Claims (18)

1. A method of accessing a network, for use by a station, comprising:
monitoring a beacon frame broadcasted by a wireless access point, wherein a network state identifier is arranged in the beacon frame and used for representing the network connection state of the wireless access point, and the network connection state is the network connection state of a three-layer network of the wireless access point;
Determining a network connection state of the wireless access point based on the network state identifier;
determining a wireless access point to be accessed based on the network connection state of the wireless access point;
and accessing to a network based on the wireless access point to be accessed.
2. The method of claim 1, wherein the determining the network connection status of the wireless access point based on the network status identification comprises:
determining an identification value corresponding to the network state identification, wherein different network connection states correspond to different identification values;
determining the network connection state of the wireless access point based on the identification value corresponding to the network state identification;
wherein the network connection state includes a network connection state or a network unconnected state.
3. The method of claim 1, wherein the determining a wireless access point to be accessed based on the network connection status comprises:
determining scores of the plurality of wireless access points in response to the plurality of wireless access points, wherein the scores are obtained by scoring based on the network connection state information;
and selecting the wireless access point with the highest score as the wireless access point to be accessed.
4. A method according to any one of claims 1 to 3, characterized in that the method further comprises:
periodically polling the network connection status of the wireless access point;
and determining the wireless access point to be accessed based on the network connection state again in response to the polling that the network connection state is the unconnected state.
5. A method of accessing a network, for use with a wireless access point, comprising:
broadcasting a beacon frame of the wireless access point, wherein a network state identifier is arranged in the beacon frame and used for representing the network connection state of the wireless access point, and the network connection state is the network connection state of a three-layer network of the wireless access point;
determining a network connection state of the wireless access point based on the beacon frame;
sending a network connection state to a station;
and receiving an access request of a station, and connecting with the station based on the access request of the station.
6. The method of claim 5, wherein different network connection states correspond to different identification values, the network connection states comprising a network connection state or a network unconnected state.
7. The method according to any one of claims 5 to 6, further comprising:
in response to the station periodically polling, a beacon frame is transmitted to the station.
8. The method as recited in claim 5, further comprising:
monitoring a plugging event and a network state event of a wireless access point network line;
detecting a network connection state based on the network cable plug event and/or the network state event;
and sending the network connection state to a station through a beacon frame.
9. An apparatus for accessing a network, for use with a station, comprising:
the monitoring unit is used for monitoring a beacon frame broadcasted by the wireless access point, wherein a network state identifier is arranged in the beacon frame and used for representing the network connection state of the wireless access point, and the network connection state is the network connection state of a three-layer network of the wireless access point;
a determining unit, configured to determine a network connection state of the wireless access point based on the network state identifier;
the processing unit is used for determining a wireless access point to be accessed based on the network connection state of the wireless access point;
and the access unit is used for accessing the network based on the wireless access point to be accessed.
10. The apparatus according to claim 9, wherein the determining unit determines the network connection status of the wireless access point based on the network status identification by:
determining an identification value corresponding to the network state identification, wherein different network connection states correspond to different identification values;
determining the network connection state of the wireless access point based on the identification value corresponding to the network state identification;
wherein the network connection state includes a network connection state or a network unconnected state.
11. The apparatus according to claim 9, wherein the determining unit determines the wireless access point to be accessed based on the network connection state by:
determining scores of the plurality of wireless access points in response to the plurality of wireless access points, wherein the scores are obtained by scoring based on the network connection state information;
and selecting the wireless access point with the highest score as the wireless access point to be accessed.
12. The apparatus according to any one of claims 9 to 11, characterized in that the apparatus further comprises:
a polling unit, configured to periodically poll a network connection status of the wireless access point;
And the reconnection unit is used for determining the wireless access point to be accessed again based on the network connection state under the condition that the network connection state is polled to be the unconnected state.
13. An apparatus for accessing a network, for use with a wireless access point, comprising:
a broadcasting unit, configured to broadcast a beacon frame of the wireless access point, where the beacon frame is provided with a network state identifier, and the network state identifier is used to characterize a network connection state of the wireless access point, where the network connection state is a network connection state of a three-layer network of the wireless access point;
a determining unit configured to determine a network connection state of the wireless access point based on the beacon frame;
a transmitting unit configured to transmit a network connection state to a station;
and the connection unit is used for receiving the access request of the station and connecting with the station based on the access request of the station.
14. The apparatus of claim 13, wherein different network connection states correspond to different identification values, the network connection states comprising a network connection state or a network unconnected state.
15. The apparatus according to any one of claims 13 to 14, wherein the broadcasting unit is further configured to:
In response to the station periodically polling, a beacon frame is transmitted to the station.
16. The apparatus of claim 13, further configured to:
the monitoring unit is used for monitoring the plugging event and the network state event of the wireless access point network line;
the detection unit is used for detecting the network connection state based on the network cable plug event and/or the network state event;
and the processing unit is used for sending the network connection state to the station through a beacon frame.
17. An access network apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: performing the method of any one of claims 1 to 4, or performing the method of any one of claims 5 to 8.
18. A non-transitory computer readable storage medium, which when executed by a processor of a mobile terminal, causes the mobile terminal to perform the method of any one of claims 1 to 4 or to perform the method of any one of claims 5 to 8.
CN202211243020.2A 2022-10-11 2022-10-11 Method, device and storage medium for accessing network Pending CN117880925A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211243020.2A CN117880925A (en) 2022-10-11 2022-10-11 Method, device and storage medium for accessing network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211243020.2A CN117880925A (en) 2022-10-11 2022-10-11 Method, device and storage medium for accessing network

Publications (1)

Publication Number Publication Date
CN117880925A true CN117880925A (en) 2024-04-12

Family

ID=90593486

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211243020.2A Pending CN117880925A (en) 2022-10-11 2022-10-11 Method, device and storage medium for accessing network

Country Status (1)

Country Link
CN (1) CN117880925A (en)

Similar Documents

Publication Publication Date Title
EP3065428B1 (en) Method and device for displaying wifi list
EP3125615B1 (en) Method, apparatus and system for a smart device to access a router
CN109565451B (en) Method and device for using network slice
CN108401514B (en) Network connection method and device
CN108810866B (en) Method and device for connecting intelligent equipment and storage medium
JP2016534624A (en) Wireless LAN automatic connection method, wireless LAN automatic connection device, program, and recording medium
US11596018B2 (en) Region configuration method and device
CN110622534B (en) MDT (minimization drive test) information sending method and device and MDT information receiving method and device
CN110383891B (en) Network switching resource determining method and network switching resource configuration method
US11546781B2 (en) Information reporting and configuration method and device, user equipment and base station
US11832120B2 (en) Information recording method and information recording apparatus
US11197192B2 (en) Network connection management method, device and system
US11968582B2 (en) Service handover method and apparatus
CN110268746B (en) Cell switching method and device, switching configuration method and device and user equipment
US11617129B2 (en) Method and device for transmitting system information
CN109041145B (en) Communication method, communication device, terminal and storage medium
CN116301484A (en) Data sharing method and device, electronic equipment and storage medium
US20170041377A1 (en) File transmission method and apparatus, and storage medium
CN106550482B (en) Communication connection establishing method and device and electronic equipment
CN108401518B (en) Channel coordination method and device
US11064415B2 (en) Wireless communication method and apparatus
CN106792570B (en) Positioning method and device
CN117880925A (en) Method, device and storage medium for accessing network
CN108696914B (en) Method and device for scanning intelligent equipment and storage medium
US20240179761A1 (en) Communication method and device, and storage medium

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