CN110784938A - Correlation method, device and storage medium - Google Patents

Correlation method, device and storage medium Download PDF

Info

Publication number
CN110784938A
CN110784938A CN201911059407.0A CN201911059407A CN110784938A CN 110784938 A CN110784938 A CN 110784938A CN 201911059407 A CN201911059407 A CN 201911059407A CN 110784938 A CN110784938 A CN 110784938A
Authority
CN
China
Prior art keywords
wireless router
time
association
channel
channel switching
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.)
Granted
Application number
CN201911059407.0A
Other languages
Chinese (zh)
Other versions
CN110784938B (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.)
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 CN201911059407.0A priority Critical patent/CN110784938B/en
Publication of CN110784938A publication Critical patent/CN110784938A/en
Application granted granted Critical
Publication of CN110784938B publication Critical patent/CN110784938B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0861Generation of secret information including derivation or calculation of cryptographic keys or passwords
    • H04L9/0869Generation of secret information including derivation or calculation of cryptographic keys or passwords involving random numbers or seeds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/08Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
    • H04L9/0894Escrow, recovery or storing of secret information, e.g. secret key escrow or cryptographic key storage
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/04Key management, e.g. using generic bootstrapping architecture [GBA]
    • H04W12/043Key management, e.g. using generic bootstrapping architecture [GBA] using a trusted network node as an anchor
    • H04W12/0431Key distribution or pre-distribution; Key agreement
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication

Landscapes

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

Abstract

The disclosure relates to an association method, an association device and a storage medium, and relates to the technical field of wireless networks. The association method is applied to the wireless equipment and comprises the following steps: acquiring channel switching time of a wireless router in an association state with the wireless equipment at present, wherein the channel switching time indicates the time for the wireless router to execute channel switching; determining a back-off time for the wireless device to request re-association of the wireless router based on a channel switch time of the wireless router; and associating the wireless router according to the back-off time. By the embodiment of the disclosure, the concurrent processing pressure of the wireless router can be reduced, the switching of the wireless router channel is temporarily delayed, and the normal forwarding of the existing data is ensured.

Description

Correlation method, device and storage medium
Technical Field
The present disclosure relates to the field of wireless network technologies, and in particular, to an association method and an association apparatus.
Background
A router is a hardware device that connects two or more networks, acts as a gateway between the networks, and is a dedicated intelligent network device that reads the address in each packet and then decides how to transmit. The wireless router is used for user to surf the internet and has a wireless coverage function. The user can use the intelligent terminal to connect with the service provider through the wireless router to perform data transmission with the provider server. A channel, also called a channel or a frequency band, is a data signal transmission channel in which a radio signal is used as a transmission carrier.
With the development of science and technology, more and more intelligent devices are popular with people. Currently, most smart devices connect to the internet via wireless signals. In the related art, due to the production cost of the intelligent equipment, a 2.4G wireless network chip (wifi chip) is integrated in the intelligent equipment such as the smart home. The working frequency of the 2.4G frequency band is 2.4-2.4835GHz, and the 83.5MHz frequency band between 2.4-2.4835GHz is divided into 13 channels, the central frequency of each channel is different by 5MHz, 11MHz is respectively expanded upwards and downwards, and the bandwidth of each channel is 22 MHz. When a plurality of wireless routers work around one wireless router at the same time, the plurality of wireless routers may share the same channel, and signal interference exists, so that transmission of wireless signals is influenced, and channel switching is needed.
In the related art, when a wireless router switches channels, a plurality of intelligent devices need to re-associate with the wireless router, and a situation that the intelligent devices are associated with the wireless router fails occurs.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides an associated method, apparatus, and storage medium.
According to a first aspect of embodiments of the present disclosure, there is provided an association method, including applying to a wireless device, including: acquiring channel switching time of a wireless router in an association state with the wireless equipment at present, wherein the channel switching time indicates the time for the wireless router to execute channel switching; determining a back-off time for the wireless device to request re-association of the wireless router based on a channel switch time of the wireless router; and associating the wireless router according to the back-off time.
In one embodiment, determining a back-off time associated with a wireless router based on a channel switch time of the wireless router comprises: after the channel switching time is obtained, judging whether the data volume to be transmitted in the channel exceeds a preset threshold value or not; when the data volume to be transmitted in the channel exceeds a preset threshold, judging whether the data transmission volume in the channel exceeds the preset threshold again after the random time length until the data volume to be transmitted in the channel is less than or equal to the preset threshold; and when the data volume to be transmitted in the channel is less than or equal to a preset threshold value, determining all random time lengths, and taking the sum of all the random time lengths as the back-off time.
In an embodiment, the association method of the embodiment of the present disclosure further includes: caching upper-layer application data after the back-off time until the associated wireless router is completed; and responding to the success of the associated wireless router, and sending the upper layer application data to the wireless router.
In an embodiment, the acquiring the channel switching time of the wireless router in the association method of the embodiment of the present disclosure includes: receiving a message from the wireless router; determining channel switching time by extracting time data information in the message; the message is sent by the wireless router and contains time data information representing the channel switching time.
In one embodiment, an associated wireless router includes: sending a connection request to the wireless router, the connection request including a first random number; receiving a connection request response message, wherein the connection request response message comprises a second random number; sending a negotiation request to the wireless router, wherein the negotiation request comprises a first random number and a group temporary secret key, and the group temporary secret key is determined according to a second random number; and receiving a negotiation request response message, wherein the negotiation request response message comprises a verification result of the wireless router for the first random number.
In an embodiment, the association method further comprises: caching a pair-wise master key obtained by calculation when the first connection with the wireless router is successful; and determining a pair-wise temporary key according to the pair-wise master key and the second random number, and determining a group temporary key according to the pair-wise temporary key.
According to another aspect of the embodiments of the present disclosure, there is provided an association apparatus, including: an obtaining unit, configured to obtain a channel switching time of a wireless router currently in an association state with the wireless device, where the channel switching time indicates a time when the wireless router is to perform channel switching; a determining unit, configured to determine a back-off time for the wireless device to request to re-associate with the wireless router based on a channel switching time of the wireless router; and the association unit is used for associating the wireless router according to the back-off time.
In one embodiment, the determining unit determines the back-off time for the wireless device to request re-association of the wireless router based on the channel switching time of the wireless router in the following manner: after the channel switching time is obtained, judging whether the data volume to be transmitted in the channel exceeds a preset threshold value or not; when the data volume to be transmitted in the channel exceeds a preset threshold, judging whether the data transmission volume in the channel exceeds the preset threshold again after the random time length until the data volume to be transmitted in the channel is less than or equal to the preset threshold; and when the data volume to be transmitted in the channel is less than or equal to a preset threshold value, determining all random time lengths, and taking the sum of all the random time lengths as the back-off time.
In an embodiment, the association apparatus of the embodiment of the present disclosure further includes: the correlation device also comprises a cache unit; the cache unit is used for caching the pairwise master key, the unicast key and the multicast key when the first association with the wireless router is successful; the association unit associates the wireless router in the following way: and carrying out key negotiation according to the pairwise master key, the unicast key and the multicast key, and associating the wireless router after the negotiation is passed.
In one embodiment, the association apparatus further includes: the cache unit is used for caching the upper-layer application data after the back-off time until the associated wireless router is finished; and the sending unit responds to the success of the associated wireless router and sends the upper layer application data to the wireless router.
In one embodiment, the obtaining unit obtains the channel switching time of the wireless router by: receiving a message from the wireless router; determining channel switching time by extracting time data information in the message; the message is sent by the wireless router and contains time data information representing the channel switching time.
In one embodiment, the association unit associates the wireless router as follows: sending a connection request to the wireless router, the connection request including a first random number; receiving a connection request response message, wherein the connection request response message comprises a second random number; sending a negotiation request to the wireless router, wherein the negotiation request comprises a first random number and a group temporary secret key, and the group temporary secret key is determined according to a second random number; and receiving a negotiation request response message, wherein the negotiation request response message comprises a verification result of the wireless router for the first random number.
In an embodiment, the caching unit is further configured to cache a pairwise master key calculated when the first connection with the wireless router is successful; and determining a pair-wise temporary key according to the pair-wise master key and the second random number, and determining a group temporary key according to the pair-wise temporary key.
According to still another aspect of the embodiments of the present disclosure, there is provided an association apparatus, including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to perform the association method as referred to in the first aspect and embodiments above.
According to a further aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor of a terminal, enable the terminal to perform the association method mentioned in the first aspect and embodiments.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: and through the back-off time of the associated wireless router determined based on the channel switching time, the intelligent device is re-associated with the wireless router according to the back-off time. The wireless router has the advantages that the phenomenon that a large number of intelligent devices are associated with the wireless router at the same time after the wireless router performs channel switching is avoided, the concurrent processing pressure of the wireless router is reduced, and the failure probability of associating the intelligent devices with the wireless router is further reduced.
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 present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating an association method according to an example embodiment.
FIG. 2 is a flow chart illustrating another association method in accordance with an example embodiment.
FIG. 3 is a flow chart illustrating another association method in accordance with an example embodiment.
FIG. 4 is a flow chart illustrating another association method in accordance with an example embodiment.
FIG. 5 is a flow chart illustrating another association method in accordance with an example embodiment.
Fig. 6 is a block diagram illustrating an associated apparatus according to an example embodiment.
Fig. 7 is a block diagram illustrating another association apparatus according to an example embodiment.
Fig. 8 is a timing diagram illustrating a smart device association process with a wireless router, according to an example embodiment.
Fig. 9 is a block diagram illustrating another association apparatus in accordance with an example embodiment.
Fig. 10 is a block diagram illustrating another association apparatus in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In the related art, the re-association connection after the wireless router is disconnected from the intelligent terminal is generally the following process of repeating the first connection: the wireless router scans surrounding channels, selects a better channel and switches the channel; the intelligent equipment rescans wifi signals in the environment; when the intelligent equipment scans the signals with the same name, a connection request frame is sent to the wireless router; the wireless router replies a connection request frame; the intelligent device sends a negotiation request frame to the wireless router, wherein the frame contains various wireless capability sets of the intelligent device, and the negotiation request frame is mainly used for enabling the wireless router to learn the capability of the intelligent device and negotiate a correct capability set so as to ensure that the two parties can normally communicate; and when the wireless router receives the negotiation request frame, negotiating a correct capability set, and informing the intelligent equipment through a negotiation response frame, so that the wireless association is completed. The wireless router sends random number information to the intelligent equipment, and the random number information is used for calculating an encryption key to a temporary key; the intelligent equipment generates another random number, calculates a pair of temporary secret keys by using the received random number, and sends the generated random number to the wireless router; after receiving the random number generated and sent by the intelligent equipment, the wireless router calculates a pairwise temporary secret key according to the received random number, and the same pairwise temporary secret key exists between the wireless router and the intelligent equipment; the wireless router generates a group of temporary secret keys based on the pair of temporary secret keys and sends the group of temporary secret keys and random numbers generated by the wireless router to the intelligent equipment, wherein the random numbers are used for verifying whether the random numbers are the same as the random numbers sent in the previous time or not to judge; the intelligent device responds based on the judgment result, the four-way handshake of key negotiation is completed, and the intelligent device and the wireless router are successfully associated.
When the wireless router channels are switched, a large number of intelligent devices are associated with the wireless router at the same time. The wireless router concurrent processing pressure is increased due to the fact that the number of the intelligent devices is large, and the intelligent devices compete for the associated wireless routers, so that some intelligent terminals are repeatedly reconnected, broadband waste is caused, and meanwhile connectivity of the intelligent terminals and the server is also influenced. The embodiment of the disclosure provides an association scheme, which adjusts the time for re-associating the wireless router by the intelligent device, and improves the phenomenon that a large amount of intelligent devices are associated with the wireless router at the same time.
An aspect of the embodiments of the present disclosure provides an association method, and fig. 1 is a flowchart illustrating an association method according to an exemplary embodiment, as shown in fig. 1, the association method of the present embodiment is used in a terminal, and includes step S100, step S200, and step S300, and the association method of the present embodiment is described in detail below with reference to fig. 1.
In step S100, a Channel switching Time (Channel _ Switch _ Time) of the wireless router is acquired.
In this embodiment, the wireless router is in an associated state before channel switching, and the channel switching time is generated by the wireless router. After the wireless router switches the channel, the intelligent terminal needs to be associated with the wireless router again and data is transmitted. When a plurality of intelligent terminals need to be associated with the wireless router again, the wireless router identifies that the intelligent terminals are associated with the wireless router before, and then determines the time for re-associating the intelligent terminals with the wireless router again so as to ensure that the number of simultaneous association with the wireless router does not exceed the preset number each time. The preset number may be the number of intelligent terminals that the wireless router associates with the intelligent terminals at the same time and keeps itself stable. If the number exceeds the preset number, the concurrent processing pressure of the wireless routers is increased, the response is not timely, the association of the intelligent equipment is failed, and the same intelligent terminal can be successfully associated for many times.
The wireless router may be arranged to automatically select a channel. The wireless router scans the environment in which the wireless router is located in real time, so that a better channel can be found in time for data transmission between the intelligent device and a service provider.
When a better channel than the current channel is found in the environment, a channel switch is prepared. In this embodiment, when finding a better channel, the wireless router generates a time period or an exact time as the channel switching time. For example, the current time of the wireless router finding a better channel is 10:00:00, and the channel switching time of this embodiment may be 1 second or 10:00: 01. I.e. channel switching after 1 second or at 10:00: 01.
By obtaining the obtained channel switching time of the wireless router, the phenomenon that data is lost when upper application data is sent during channel switching can be improved. When the wireless router finds a better channel, the short channel switching delay is carried out, so that the normal forwarding of the existing data between the service provider and the intelligent equipment can be guaranteed.
In step S200, a back-off time for the wireless device to request re-association of the wireless router is determined based on a channel switching time of the wireless router, the back-off time characterizing a time for associating the wireless router.
Before the wireless router channel switching, namely before the channel switching time, the intelligent device and the service provider carry out data transmission through a currently connected channel. And when the channel switching time is reached, the wireless router performs the actual operation of channel switching. To ensure proper data transfer with the service provider, a re-association with the wireless router is required. At this point, there may be a large number of smart devices that need to be re-associated with the wireless router at the same time, causing concurrent processing pressure on the wireless router to rise.
To improve the above phenomenon, the present embodiment determines the back-off time according to the channel switching time of the wireless router. The smart device re-associates with the wireless router according to a back-off time, which may be used to represent the time of re-association with the wireless router.
By setting the back-off time, the number of intelligent devices which are simultaneously re-associated with the wireless router can be controlled, the wireless router can simultaneously process a large number of intelligent devices for re-association, and the parallel processing pressure of the wireless router is reduced by changing the back-off time into batch processing.
In step S300, the wireless router is associated according to the back-off time.
The wireless router is initially re-associated after a back-off time determined based on the channel switch time. By associating with the wireless router according to the back-off time, the processing pressure of the wireless router can be reduced, the time delay of re-associating the wireless router can be reduced, and the connectivity of data transmission between the intelligent device and the service provider is maintained. The method improves repeated re-association caused by competition generated by simultaneous re-association of a large number of intelligent devices, and improves the efficiency of re-association of the intelligent devices with the wireless router.
In some embodiments, the step S100 may include: receiving a message from the wireless router; determining channel switching time by extracting time data information in the message; the message is sent by the wireless router and contains time data information representing the channel switching time.
The method for acquiring the channel switching time in this embodiment may be to determine the channel switching time by extracting time data information in a message; the message is sent by the wireless router and contains time data information representing the channel switching time. The Beacon message has the functions that the wireless router needs to inform the existence of the Beacon message (so that the wireless network card can scan the Beacon message), continuously sends a message called Beacon to an air interface, and controls the sending rate of the message to be a Beacon time slot. The Beacon slot parameter, 100, means one transmission every 100ms, i.e., 10 transmissions every 1s, 1000 means one transmission every 1000ms, 2 transmissions every 1 s. The size of the Beacon slot is independent of the signal strength.
Fig. 2 is a flowchart illustrating another association method according to an exemplary embodiment, and as shown in fig. 2, in the association method of this embodiment, S200 may include: after the channel switching time is obtained, judging whether the data volume to be transmitted in the channel exceeds a preset threshold value or not; when the data volume to be transmitted in the channel exceeds a preset threshold, judging whether the data transmission volume in the channel exceeds the preset threshold again after the random time length until the data volume to be transmitted in the channel is less than or equal to the preset threshold; and when the data volume to be transmitted in the channel is less than or equal to a preset threshold value, determining all random time lengths, and taking the sum of all the random time lengths as the back-off time. The channel here refers to a new channel to be switched.
In this embodiment, after acquiring the channel switching time of the wireless router, the intelligent device starts to determine the time for re-associating the wireless router with the wireless router. First, it is detected whether the number of smart devices currently re-associating with a wireless router exceeds a preset threshold. For example, the preset threshold may be set to 10, 15, 20, etc. according to the processing capability of the wireless router, that is, the wireless router may simultaneously process the re-association operation of the number of intelligent devices when the processing efficiency is high. The specific value of the preset threshold is not limited in this embodiment.
Taking the preset threshold as 20 as an example, when a certain intelligent device detects that 20 intelligent devices currently request to associate with the wireless router for the first time, a waiting time period with a random length is generated. The loop operation again detects the number of intelligent devices requesting association with the wireless router after the time period, and the time for association with the wireless router, i.e. the back-off time, is not determined until the number of intelligent devices requesting association with the wireless router is detected to be below 20. In the interim, the sum of the random time period after the first detection and the random time period generated in the following cyclic process is the back-off time.
In this embodiment, the number of times of detecting the number of intelligent devices currently associated with the wireless router is at least 1, that is, this operation is required in an early stage when the intelligent device is associated with the wireless router. The wireless router may be associated only after 1 time, or may be associated after multiple times of loop detection. When only 1 detection is performed, the back-off time is 0, that is, the wireless router is directly associated without generating a random waiting time period.
By adopting the method to obtain the back-off time, the quantity of the wireless routers processing the re-association simultaneously is maintained at a reasonable value, the parallel processing pressure of the wireless routers can be reduced, and the repeated re-association of the intelligent equipment caused by competition can be improved.
Fig. 3 is a flowchart illustrating another association method according to an exemplary embodiment, and as shown in fig. 3, the association method of the present embodiment further includes steps 400 and 500.
In step 400, upper layer application data is buffered after the back-off time until the associated wireless router is complete. After the intelligent terminal acquires the back-off time, the intelligent terminal already knows the related information of the new channel, and real-time data cannot be transmitted between the intelligent terminal and the wireless router in the process of associating the intelligent terminal and the wireless router. And after the back-off time of the intelligent terminal is reached, the wireless router starts to cache the upper-layer application data until the intelligent terminal and the wireless router are associated again.
In the embodiment, the data loss caused by channel switching in data transmission can be improved by caching the upper application data from the time of channel switching to the time of completing the re-association of the wireless router.
In step 50, the upper layer application data is sent to the wireless router in response to a successful association of the wireless router.
After the re-association with the wireless router is completed, the data transmission channel between the wireless router and the service provider is reconnected, and the cached upper layer data is sent to the wireless router after the re-association is completed, so that the integrity of data transmission is guaranteed, and the data loss is improved.
Fig. 4 is a flowchart illustrating another association method according to an exemplary embodiment, and as shown in fig. 4, in the association method of this embodiment, step 300 may include: sending a connection request to the wireless router, the connection request including a first random number; receiving a connection request response message, wherein the connection request response message comprises a second random number; sending a negotiation request to the wireless router, wherein the negotiation request comprises a first random number and a group temporary secret key, and the group temporary secret key is determined according to a second random number; and receiving a negotiation request response message, wherein the negotiation request response message includes a verification result of the wireless router for the first random number, and the verification result can be a verification result of the first random number included in the connection request according to the first random number and the group temporary key.
The following describes the above steps in detail by taking a process of re-associating the intelligent terminal with the wireless router as an example, that is, the implementation manner of this embodiment may be: when the intelligent device scans signals with the same name, a first random number Snonce is generated, a connection Request Auth Request frame is sent to a wireless router (Access Point, AP), and Snonce information is additionally carried in the frame and used for negotiating a secret key. Wherein the first random number Snonce is a random number generated by the AP. After receiving the Auth Request frame, the AP extracts the Snonce therein, calculates a Pairwise Temporary Key (PTK) using the second random number Anonce generated by the AP and the cached Pairwise master Key PMK, and then sends an Auth Response frame carrying Anonce to the smart device. And the PMK is a pairwise master key calculated when the wireless router is connected with the intelligent terminal for the first time.
After receiving the Auth Response frame, the intelligent device extracts the Anonce information, and calculates the PTK by using the cached PMK and the Anonce, wherein the AP and the intelligent device already have the same PTK. The intelligent equipment adds a Group Temporary Key (GTK) and Snonce to an Association Request frame and sends the frame to the AP; after receiving the Association Request frame, the AP extracts the Snonce for verification, then replies the Association Response frame to respond to the Association Request, and completes re-association and key negotiation at the same time.
After the reconnection and the key negotiation are completed, the intelligent terminal starts to send the previous cached data to the AP.
Fig. 5 is a flowchart illustrating another association method according to an exemplary embodiment, where as shown in fig. 5, the association method of this embodiment further includes a step 600 of caching the pairwise master key calculated when the first connection with the wireless router is successful; and determining a pairwise temporary key according to the pairwise master key and the second random number, and determining a group temporary key GTK according to the pairwise temporary key. The PTK is generated in the key negotiation process, the PTK exists, the GTK is adopted in the subsequent key negotiation process to perform key negotiation smoothly, and the key negotiation may be successful.
In the process, the intelligent terminal and the wireless router are associated, and the key negotiation process is carried out on the pairwise master key obtained after the first association is successful, so that the pairwise master key is prevented from being recalculated, and the time of the association process of the intelligent device and the wireless router is shortened.
Based on the same inventive concept, according to a second aspect of the embodiments of the present disclosure, there is provided an association apparatus, fig. 6 is a block diagram of an association apparatus shown according to an exemplary embodiment, the present disclosure is used for associating an intelligent terminal with a wireless router, as shown in fig. 6, the association apparatus includes an obtaining unit 10, a determining unit 20 and an associating unit 30, wherein,
the acquisition unit 10 is configured to acquire a channel switching time of the wireless router;
the determining unit 20 is configured to determine a back-off time for the wireless device to request re-association of the wireless router based on a channel switching time of the wireless router, the back-off time characterizing a time for associating the wireless router;
the association unit 30 is configured for associating the wireless router according to the back-off time.
In some embodiments, the determining unit 20 determines the back-off time of the associated wireless router based on the channel switching time of the wireless router in the following manner:
after the channel switching time is obtained, judging whether the data volume to be transmitted in the channel exceeds a preset threshold value or not;
when the data volume to be transmitted in the channel exceeds a preset threshold, judging whether the data transmission volume in the channel exceeds the preset threshold again after the random time length until the data volume to be transmitted in the channel is less than or equal to the preset threshold;
and when the data volume to be transmitted in the channel is less than or equal to a preset threshold value, determining all random time lengths, and taking the sum of all the random time lengths as the back-off time.
Fig. 7 is a block diagram illustrating another association apparatus according to an exemplary embodiment, and referring to fig. 7, the association apparatus further includes a buffering unit 40, a transmitting unit 50, wherein,
a caching unit 40 configured to cache the upper layer application data after the channel switching time until the associated wireless router is completed;
a transmitting unit 50 configured to transmit the upper layer application data to the wireless router in response to the association of the wireless router being successful.
In some embodiments, the obtaining unit 10 is configured to obtain the channel switching time of the wireless router by: receiving a message from the wireless router; determining channel switching time by extracting time data information in the message; the message is sent by the wireless router and contains time data information representing the channel switching time.
In some embodiments, the association unit 30 is configured to associate the wireless router in the following manner: sending a connection request to the wireless router, the connection request including a first random number; receiving a connection request response message, wherein the connection request response message comprises a second random number; sending a negotiation request to the wireless router, wherein the negotiation request comprises a first random number and a group temporary secret key, and the group temporary secret key is determined according to a second random number; and receiving a negotiation request response message, wherein the negotiation request response message includes a verification result of the wireless router for the first random number, and the verification result can be a verification result of the first random number included in the connection request according to the first random number and the group temporary key.
In some embodiments, the caching unit 40 is configured to further cache the pairwise master key calculated when the first connection with the wireless router is successful; and determining a pair-wise temporary key according to the pair-wise master key and the second random number, and determining a group temporary key according to the pair-wise temporary key.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 8 is a timing diagram illustrating an association process between an intelligent device and a wireless router according to an exemplary embodiment, where the association apparatus disclosed in the foregoing embodiments is used to implement an association method to associate the intelligent device and the wireless router in this embodiment. In fig. 8, (1) and (2) are the first association process between the intelligent device and the wireless router. Referring to fig. 8, a specific process of reassociation between an intelligent device and a wireless router after channel switching of the wireless router includes the following steps:
1. a wireless router (AP) scans the surrounding environment; 2. when the wireless router finds a better Channel, before the Channel switching is prepared, Channel _ Switch _ Time information is added into a Beacon frame to inform the intelligent equipment of the Time of the Channel switching; 3. after the channel Beacon of the intelligent device AP is changed, a backoff algorithm is called to calculate the time for starting scanning; 4. through Channel _ Switch _ Time, the wireless router performs the actual operation of Channel switching; 5. after the intelligent device waits for the background OFF _ TIME, starting a re-association process, executing scanning, and starting caching data of upper-layer application at the moment; 6. when the intelligent equipment scans signals with the same name, Snonce is generated, an Auth Request frame is sent to the AP, and Snonce information is additionally carried in the frame and is used for negotiating a secret key; 7, after receiving the Auth Request frame, the AP extracts the Snonce therein, calculates the PTK by using the Anonce generated by the AP and the cached PMK, and then sends the Auth Response frame carrying the Anonce to the intelligent equipment; 8. after receiving the Auth Response frame, the intelligent device extracts the Anonce information, calculates the PTK by using the cached PMK and the Anonce, and the wireless router and the intelligent device already have the same PTK at the moment. The intelligent equipment adds the GTK and the Snonce to an Association Request frame and sends the frame to the AP; after receiving the Association request frame, the AP extracts the Snonce for verification, then replies the Association Response frame to respond to the Association request, and completes re-association and key negotiation at the same time.
Fig. 9 is a block diagram illustrating an apparatus 800 for a smart device to associate with a wireless router, according to an example embodiment. For example, the apparatus 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 9, apparatus 900 may include one or more of the following components: a processing component 902, a memory 904, a power component 906, a multimedia component 908, an audio component 910, an input/output (I/O) interface 912, a sensor component 914, and a communication component 916.
The processing component 902 generally controls overall operation of the device 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 902 may include one or more processors 920 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 902 can include one or more modules that facilitate interaction between processing component 902 and other components. For example, the processing component 902 can include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
The memory 904 is configured to store various types of data to support operation at the device 900. Examples of such data include instructions for any application or method operating on device 900, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 904 may be implemented by any type or combination of volatile or non-volatile 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 disks.
Power component 906 provides power to the various components of device 900. The power components 906 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 900.
The multimedia component 908 includes a screen that provides an output interface between the device 900 and a user. 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 an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 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 device 900 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 910 is configured to output and/or input audio signals. For example, audio component 910 includes a Microphone (MIC) configured to receive external audio signals when apparatus 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 904 or transmitted via the communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.
I/O interface 912 provides an interface between processing component 902 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 914 includes one or more sensors for providing status assessment of various aspects of the apparatus 900. For example, the sensor assembly 914 may detect an open/closed state of the device 900, the relative positioning of the components, such as a display and keypad of the apparatus 900, the sensor assembly 914 may also detect a change in the position of the apparatus 900 or a component of the apparatus 900, the presence or absence of user contact with the apparatus 900, an orientation or acceleration/deceleration of the apparatus 900, and a change in the temperature of the apparatus 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 914 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 914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 916 is configured to facilitate communications between the apparatus 900 and other devices in a wired or wireless manner. The apparatus 900 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 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 900 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, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 904 comprising instructions, executable by the processor 920 of the apparatus 900 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions in the storage medium, when executed by a processor of a terminal, enable the terminal to perform any of the association methods described above in relation to the disclosed embodiments.
An association apparatus, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to perform the associated method according to any of the embodiments of the present disclosure.
Fig. 9 is a block diagram illustrating an apparatus 1000 for associating a smart device with a wireless router, in accordance with an example embodiment. For example, the apparatus 1000 may be provided as a server. Referring to fig. 9, the apparatus 1000 includes a processing component 1022 that further includes one or more processors and memory resources, represented by memory 1032, for storing instructions, such as application programs, that are executable by the processing component 1022. The application programs stored in memory 1032 may include one or more modules that each correspond to a set of instructions. Further, the processing component 1022 is configured to execute instructions to perform the association methods described above.
The device 1000 may also include a power supply component 1026 configured to perform power management for the device 1000, a wired or wireless network interface 1050 configured to connect the device 1000 to a network, and an input/output (I/O) interface 1058. The apparatus 1000 may operate based on an operating system stored in memory 1032, such as Windows Server, MacOS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
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 variations, 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 intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. An association method applied to a wireless device, the association method comprising:
acquiring channel switching time of a wireless router in an association state with the wireless equipment at present, wherein the channel switching time indicates the time for the wireless router to execute channel switching;
determining a back-off time for the wireless device to request re-association of the wireless router based on a channel switch time of the wireless router;
and associating the wireless router according to the back-off time.
2. The association method of claim 1, wherein the determining a back-off time for the wireless device to request re-association of the wireless router based on the channel switch time of the wireless router comprises:
after the channel switching time is obtained, judging whether the data volume to be transmitted in the channel exceeds a preset threshold value or not;
when the data volume to be transmitted in the channel exceeds the preset threshold, judging whether the data transmission volume in the channel exceeds the preset threshold again after the random time length until the data volume to be transmitted in the channel is less than or equal to the preset threshold;
and when the data volume to be transmitted in the channel is less than or equal to the preset threshold value, determining all the random time lengths, and taking the sum of all the random time lengths as the back-off time.
3. The association method according to claim 2, characterized in that it further comprises:
caching upper-layer application data after the back-off time until the wireless router is associated;
and responding to the success of associating the wireless router, and sending the upper layer application data to the wireless router.
4. The association method according to any of claims 1-3, wherein the obtaining the channel switching time of the wireless router includes:
receiving a message from the wireless router;
and extracting the time data information in the message and determining the channel switching time.
5. The association method of claim 4, wherein said associating the wireless router comprises:
sending a connection request to the wireless router, the connection request including a first random number;
receiving a connection request response message, wherein the connection request response message comprises a second random number;
sending a negotiation request to the wireless router, wherein the negotiation request comprises the first random number and a group temporary secret key, and the group temporary secret key is determined according to the second random number;
and receiving a negotiation request response message, wherein the negotiation request response message comprises a verification result of the wireless router for the first random number.
6. An association apparatus, comprising:
an obtaining unit, configured to obtain a channel switching time of a wireless router currently in an association state with a wireless device, where the channel switching time indicates a time when the wireless router is to perform channel switching;
a determining unit, configured to determine a back-off time for the wireless device to request to re-associate with the wireless router based on a channel switching time of the wireless router;
and the association unit is used for associating the wireless router according to the back-off time.
7. The association apparatus according to claim 6, wherein the determining unit determines the back-off time associated with the wireless router based on the channel switching time of the wireless router in the following manner:
after the channel switching time is obtained, judging whether the data volume to be transmitted in the channel exceeds a preset threshold value or not;
when the data volume to be transmitted in the channel exceeds the preset threshold, judging whether the data transmission volume in the channel exceeds the preset threshold again after the random time length until the data volume to be transmitted in the channel is less than or equal to the preset threshold;
and when the data volume to be transmitted in the channel is less than or equal to the preset threshold value, determining all the random time lengths, and taking the sum of all the random time lengths as the back-off time.
8. The association apparatus according to claim 7, wherein the association apparatus further comprises:
the cache unit is used for caching upper-layer application data after the back-off time until the wireless router is associated;
and the sending unit responds to the success of associating the wireless router and sends the upper layer application data to the wireless router.
9. The association device according to any of claims 6-8, wherein the obtaining unit obtains the channel switching time of the wireless router by:
receiving a message from the wireless router;
and determining the channel switching time by extracting the time data information in the message.
10. The association apparatus as claimed in claim 9, wherein the association unit associates the wireless router by:
sending a connection request to the wireless router, the connection request including a first random number;
receiving a connection request response message, wherein the connection request response message comprises a second random number;
sending a negotiation request to the wireless router, wherein the negotiation request comprises the first random number and a group temporary secret key, and the group temporary secret key is determined according to the second random number;
and receiving a negotiation request response message, wherein the negotiation request response message comprises a verification result of the wireless router for the first random number.
11. An association apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured for performing the association method of any one of claims 1 to 5.
12. A non-transitory computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor of a smart device, enable a terminal to perform the association method of any one of claims 1 to 5.
CN201911059407.0A 2019-11-01 2019-11-01 Correlation method, device and storage medium Active CN110784938B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911059407.0A CN110784938B (en) 2019-11-01 2019-11-01 Correlation method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911059407.0A CN110784938B (en) 2019-11-01 2019-11-01 Correlation method, device and storage medium

Publications (2)

Publication Number Publication Date
CN110784938A true CN110784938A (en) 2020-02-11
CN110784938B CN110784938B (en) 2021-11-02

Family

ID=69388273

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911059407.0A Active CN110784938B (en) 2019-11-01 2019-11-01 Correlation method, device and storage medium

Country Status (1)

Country Link
CN (1) CN110784938B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030171116A1 (en) * 2002-03-07 2003-09-11 Koninklijke Philips Electronics, N.V. Fast channel switching scheme for IEEE 802.11 WLANs
US20040039817A1 (en) * 2002-08-26 2004-02-26 Lee Mai Tranh Enhanced algorithm for initial AP selection and roaming
CN102291788A (en) * 2010-06-21 2011-12-21 华为技术有限公司 Group moving terminal switching success ratio improving method, mobile agent and mobile terminal
CN106412958A (en) * 2016-10-21 2017-02-15 燕山大学 Method for quickly establishing data link in wireless network
CN109769274A (en) * 2018-12-27 2019-05-17 普联技术有限公司 Method, equipment and the readable storage medium storing program for executing that channel switches in wireless networking system
CN110121214A (en) * 2019-04-30 2019-08-13 北京邮电大学 The multichannel back-off method and device of unauthorized frequency range

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030171116A1 (en) * 2002-03-07 2003-09-11 Koninklijke Philips Electronics, N.V. Fast channel switching scheme for IEEE 802.11 WLANs
US20040039817A1 (en) * 2002-08-26 2004-02-26 Lee Mai Tranh Enhanced algorithm for initial AP selection and roaming
CN102291788A (en) * 2010-06-21 2011-12-21 华为技术有限公司 Group moving terminal switching success ratio improving method, mobile agent and mobile terminal
CN106412958A (en) * 2016-10-21 2017-02-15 燕山大学 Method for quickly establishing data link in wireless network
CN109769274A (en) * 2018-12-27 2019-05-17 普联技术有限公司 Method, equipment and the readable storage medium storing program for executing that channel switches in wireless networking system
CN110121214A (en) * 2019-04-30 2019-08-13 北京邮电大学 The multichannel back-off method and device of unauthorized frequency range

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A. AHMAD ET AL.: "A New Adapted Back-off Scheme for Broadcasting on IEEE 1609.4 Control Channel in VANET", 《2012 THE 11TH ANNUAL MEDITERRANEAN AD HOC NETWORKING WORKSHOP (MED-HOC-NET)》 *
GABOR BAJKO ET AL.: "CSA with channel switch time announcement", 《IEEE802.11-18/0203R1》 *

Also Published As

Publication number Publication date
CN110784938B (en) 2021-11-02

Similar Documents

Publication Publication Date Title
US11418388B2 (en) Method for network configuration, and electronic device
US10098166B2 (en) Method and device for wireless connection establishment
RU2549521C2 (en) Indirect communication between devices
EP3264853A1 (en) Rrc connection establishing method and apparatus, computer program and recording medium
CN114097259B (en) Communication processing method, communication processing device and storage medium
CN110855677B (en) Distribution network method and device, electronic equipment and storage medium
US10673611B2 (en) Data transmission method, device, and system
CN113115403A (en) Method and device for network node to access network, electronic equipment and storage medium
CN108702689B (en) Cell access method, device and storage medium
CN110784908B (en) Wireless network distribution method, wireless router and wireless network distribution system
KR102197851B1 (en) Method and apparatus for discovery target in device-to-device direct communication
CN113395745B (en) Method, device, terminal and storage medium for accessing Mesh network
CN109041145B (en) Communication method, communication device, terminal and storage medium
CN113545133B (en) Initial access method, initial access device and storage medium
US11218940B2 (en) Cell reselection method and device, and storage medium
CN110784938B (en) Correlation method, device and storage medium
CN109451832B (en) Wireless communication method, device and computer readable storage medium
US20220400050A1 (en) Port configuration method and device
CN113796110A (en) Method, device, equipment and storage medium for executing small data packet transmission and determining random access message transmission mode
JP6925441B2 (en) A system including a downlink control channel receiving method, transmitting method, receiving device, transmitting device, receiving device, and transmitting device.
CN111800836A (en) Communication method, communication device, electronic equipment and storage medium
JP2022520610A (en) Random access processing method and equipment
CN113055916B (en) Cell registration method, cell registration device, terminal, and storage medium
WO2023005898A1 (en) Multi-terminal joint session management method, network side device and terminal
US20230047630A1 (en) Re-association indication method and apparatus, and communication device

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