CN111988826B - STA channel switching method and device under TDLS connection, storage medium and terminal - Google Patents

STA channel switching method and device under TDLS connection, storage medium and terminal Download PDF

Info

Publication number
CN111988826B
CN111988826B CN202010996449.3A CN202010996449A CN111988826B CN 111988826 B CN111988826 B CN 111988826B CN 202010996449 A CN202010996449 A CN 202010996449A CN 111988826 B CN111988826 B CN 111988826B
Authority
CN
China
Prior art keywords
channel
sta
switching
alternative
measurement
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010996449.3A
Other languages
Chinese (zh)
Other versions
CN111988826A (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.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai 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 Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN202010996449.3A priority Critical patent/CN111988826B/en
Publication of CN111988826A publication Critical patent/CN111988826A/en
Application granted granted Critical
Publication of CN111988826B publication Critical patent/CN111988826B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/06Reselecting a communication resource in the serving access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/0085Hand-off measurements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/0085Hand-off measurements
    • H04W36/0088Scheduling hand-off measurements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/03Reselecting a link using a direct mode connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

A STA channel switching method and device under TDLS connection, a storage medium and a terminal are provided, the method comprises the following steps: when the first STA judges that the busyness of the current channel exceeds a threshold value, one or more alternative channels are measured respectively; selecting a target channel to be switched from the one or more alternative channels; switching to the target channel, and sending a switching notification to a second STA so that the second STA is switched to the target channel; wherein the first STA and the second STA establish a TDLS connection. Therefore, the time for switching the channels under the TDLS connection can be accurately judged, and better transmission efficiency can be obtained.

Description

STA channel switching method and device under TDLS connection, storage medium and terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for STA channel switching under a TDLS connection, a storage medium, and a terminal.
Background
802.11z proposes a channel Direct Link Setup (TDLS) mechanism, that is, 2 devices (Station, STA) in the same Base Station Subsystem (also called Base Station Subsystem, BSS) may establish a TDLS Direct Link, and the 2 STAs may leave a basic channel (Base channel) where the current BSS is located and switch to another channel (off channel) for communication. The TDLS connection is two STAs connected to the same AP (access point), and a TDLS direct link may be established. Therefore, the two STA communication does not need to be forwarded through the AP, and can be directly communicated. And the two STA devices may switch to another channel for communication as needed.
There are currently 2 problems associated with switching from a fundamental channel to another channel: one is how the STA judges that channel switching is required, and the other is how the STA selects a channel to be switched to obtain higher data transmission efficiency.
The existing 802.11z standard TDLS protocol only provides that two STA devices establishing a TDLS connection can switch channels through a channel switching request and response frame, and does not provide how to judge the need to switch and how to select the channel to switch. If the current channel is clean, switching to a more busy channel results in reduced transmission efficiency. That is, in the prior art, the channel switching method under the TDLS connection cannot accurately determine the timing of channel switching, and cannot ensure the effectiveness of channel switching.
Disclosure of Invention
The technical problem solved by the invention is how to accurately judge the time of channel switching under TDLS connection so as to obtain better transmission efficiency.
In order to solve the foregoing technical problem, an embodiment of the present invention provides a method for switching an STA channel under a TDLS connection, where the method includes: when the first STA judges that the busyness of the current channel exceeds a threshold value, one or more alternative channels are measured respectively; selecting a target channel to be switched from the one or more alternative channels; switching to the target channel, and sending a switching notification to a second STA so that the second STA is switched to the target channel; wherein the first STA and the second STA establish a TDLS connection.
Optionally, it is determined whether the busyness of the current channel exceeds a threshold according to the idle ratio of the current channel and/or the channel utilization rate; the idle ratio of the current channel is the ratio of the idle time of the current channel to the preset time within the preset time; the channel utilization rate is a ratio of the transceiving time of the first STA to the preset time within the preset time.
Optionally, the determining whether the busyness of the current channel exceeds the threshold according to the idle ratio of the current channel and/or the channel utilization ratio includes: acquiring the idle proportion and the channel utilization rate of the current channel in a plurality of continuous monitoring periods; averaging the idle ratios of a plurality of monitoring periods to obtain the idle ratio of the current channel; and averaging the channel utilization rates of a plurality of monitoring periods to obtain the channel utilization rate of the current channel.
Optionally, the transceiving time of the first STA is a sum of a packet sending time total and a packet receiving time total of the first STA, and the packet receiving time total is a sum of times of receiving a unicast packet and a broadcast multicast packet.
Optionally, the respectively measuring one or more candidate channels includes: sending a measurement notification to the second STA, wherein the measurement notification is used for notifying the second STA of dormancy and switching to each alternative channel; and completing channel measurement of each alternative channel by cooperating with the second STA.
Optionally, the channel measurement for each alternative channel is performed by using a wireless measurement mechanism in the 802.11k standard.
Optionally, after the channel measurement of each candidate channel is completed by using the wireless measurement mechanism in the 802.11k standard, the STA channel switching method further includes: and acquiring the channel load and the interference strength of each alternative channel so as to select a target channel to be switched from the one or more alternative channels.
Optionally, after the cooperating with the second STA completes the channel measurement on each alternative channel, the STA channel switching method further includes: notifying the second STA to switch back to the current channel to send a switch notification to the second STA.
The embodiment of the invention also provides an STA channel switching method under the TDLS connection, which comprises the following steps: when receiving a switching notification sent by a first STA, switching to the target channel; the switching notification is generated by the first STA according to a target channel, the target channel is selected from one or more alternative channels after the first STA measures one or more alternative channels respectively when the first STA determines that the busyness of the current channel exceeds a threshold value, and TDLS connection is established between the first STA and the second STA.
Optionally, when receiving a handover notification sent by the first STA and before switching to the target channel, the STA channel switching method further includes: and receiving a measurement notification sent by the first STA, entering dormancy according to the measurement notification, switching to each alternative channel, and completing channel measurement on each alternative channel by matching with the first STA on each alternative channel.
Optionally, the channel measurement for each alternative channel is performed by using a wireless measurement mechanism in the 802.11k standard.
Optionally, after the cooperating with the first STA on each alternative channel completes channel measurement on each alternative channel, the STA channel switching method further includes: and receiving a notification of switching back to the current channel sent by the first STA, and switching back to the current channel.
An embodiment of the present invention further provides an STA channel switching apparatus under a TDLS connection, where the apparatus includes: the active channel measurement module is used for respectively measuring one or more alternative channels when the first STA judges that the busyness of the current channel exceeds a threshold value; a target channel selection module, configured to select a target channel to be switched from the one or more candidate channels; an active channel switching module, configured to switch to the target channel and send a switching notification to a second STA, so that the second STA switches to the target channel; wherein the first STA and the second STA establish a TDLS connection.
An embodiment of the present invention further provides an STA channel switching apparatus under a TDLS connection, where the apparatus includes: the passive switching module is used for switching to the target channel when receiving a switching notification sent by the first STA; the switching notification is generated by the first STA according to a target channel, the target channel is selected from one or more alternative channels after the first STA measures one or more alternative channels respectively when the first STA determines that the busyness of the current channel exceeds a threshold value, and TDLS connection is established between the first STA and the second STA.
Embodiments of the present invention further provide a storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of the above method.
The embodiment of the invention also provides a terminal, which comprises a memory and a processor, wherein the memory is stored with a computer program capable of running on the processor, and the processor executes the steps of the method when running the computer program.
Compared with the prior art, the technical scheme of the embodiment of the invention has the following beneficial effects:
the embodiment of the invention provides an STA channel switching method under TDLS connection, which comprises the following steps: when the first STA judges that the busyness of the current channel exceeds a threshold value, respectively measuring one or more alternative channels; selecting a target channel to be switched from the one or more alternative channels; switching to the target channel, and sending a switching notification to a second STA so that the second STA is switched to the target channel; wherein the first STA and the second STA establish a TDLS connection. Compared with the prior art, the invention provides a channel switching mechanism under TDLS connection, and the busyness of the current channel can be judged through the channel switching mechanism, and the optimal channel is selected for switching through measuring other channels. Thus, better transmission efficiency can be obtained, and better channel utilization rate and communication effect can be obtained.
Further, the first STA may monitor multiple periods to obtain the idle ratio of the current channel and the respective average value of the channel utilization, and may perform channel switching if the channel idle time of the current channel is short and the channel utilization is low in a period of time.
Drawings
Fig. 1 is a flowchart illustrating an STA channel switching method under a TDLS connection according to a first embodiment of the present invention;
FIG. 2 is a schematic flow chart of one embodiment of step S101 in FIG. 1;
fig. 3 is a schematic flowchart illustrating an STA channel switching method under a TDLS connection according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of an STA channel switching apparatus under a TDLS connection according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an STA channel switching apparatus under a TDLS connection according to another embodiment of the present invention.
Detailed Description
As described in the background art, there is a problem in the prior art how to accurately determine the timing of channel switching under TDLS connection, so as to obtain better transmission efficiency.
To solve the above problem, an embodiment of the present invention provides a method for switching STA channels under TDLS connection, including: when the first STA judges that the busyness of the current channel exceeds a threshold value, one or more alternative channels are measured respectively; selecting a target channel to be switched from the one or more alternative channels; switching to the target channel, and sending a switching notification to a second STA so that the second STA is switched to the target channel; wherein the first STA and the second STA establish a TDLS connection.
Therefore, the time for switching the channels under the TDLS connection can be accurately judged so as to obtain better transmission efficiency.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
Referring to fig. 1, an embodiment of the present invention provides a method for STA channel switching under TDLS connection, where the method is executed by a first STA side, and the method includes:
step S101, when the first STA judges that the busyness of the current channel exceeds a threshold value, one or more alternative channels are respectively measured;
after the 2 STAs establish TDLS communication, one STA is referred to as a first STA, another STA is referred to as a second STA, a Channel (Channel) in which the 2 STAs are currently located is referred to as a current Channel, and other channels which can be used for the 2 STAs to communicate except the current Channel are referred to as alternative channels.
The busyness is used to characterize the data transmission efficiency of the current channel to determine whether a channel switch needs to be performed. The threshold is a preset busy threshold for determining that channel switching needs to be executed.
Optionally, whether the busyness of the current channel exceeds a threshold may be determined according to the idle ratio of the current channel and/or the channel utilization rate; the idle ratio of the current channel is a ratio of the idle time of the current channel to the preset time within the preset time, and the channel utilization ratio is a ratio of the transceiving time of the first STA to the preset time within the preset time.
Namely, the busy degree of the current channel is obtained according to the idle ratio and/or the channel utilization rate of the current channel.
The idle ratio of the current channel = clear _ mib _ cnt/total _ mib _ cnt, where clear _ mib _ cnt is an idle time of the current channel within a preset time, and total _ mib _ cnt is a preset time.
The channel utilization ratio = TR _ mib _ cnt/total _ mib _ cnt, where TR _ mib _ cnt is a transceiving time of the first STA within a preset time.
Optionally, the transceiving time of the first STA is a sum of a packet sending time total and a packet receiving time total of the first STA, and the packet receiving time total is a sum of times of receiving a unicast packet and a broadcast multicast packet.
That is, TR _ mib _ cnt = tx _ mib _ cnt + rx _ mib _ cnt, where tx _ mib _ cnt is a total amount of packet sending time of the first STA within a preset time, and rx _ mib _ cnt is a total amount of packet receiving time of the first STA within the preset time. The packet reception action of the first STA includes receiving a unicast packet for itself and receiving a broadcast multicast packet.
Optionally, a timer may be started at the first STA side to time the preset time, the transceiving time, and the idle time of the current channel, and the busyness of the current channel in the preset time is calculated.
Step S102, selecting a target channel to be switched from the one or more alternative channels;
when it is determined that channel switching needs to be performed, the signal quality and the like of each candidate channel are measured to acquire the state of each candidate signal, and whether it is appropriate to be a target channel is determined. The first STA selects a target channel according to the measurement result of each candidate channel in step S101, where the target channel is a channel to which the 2 STAs are to be switched.
Step S103, switching to the target channel, and sending a switching notification to a second STA, so that the second STA is switched to the target channel; wherein the first STA and the second STA establish a TDLS connection.
After the first STA determines the target channel, the first STA informs the second STA to perform a handover, and the first STA also switches to the target channel, so that the 2 STAs complete channel switching and can continue TDLS communication in the target channel.
In this embodiment, a channel switching mechanism under TDLS connection is provided, by which the busyness of the current channel can be determined, and an optimal channel is selected for switching by measuring the remaining channels. Thus, better transmission efficiency can be obtained, so as to obtain better channel utilization rate and communication effect.
In an embodiment, please refer to fig. 2, fig. 2 is a schematic flowchart of a specific implementation manner of step S101 in fig. 1, where the determining whether the busy level of the current channel exceeds the threshold according to the idle ratio and/or the channel utilization ratio of the current channel specifically includes the following steps:
step S201, obtaining the idle proportion and the channel utilization ratio of the current channel in a plurality of continuous monitoring periods;
step S202, averaging the idle ratios of a plurality of monitoring periods to be used as the idle ratio of the current channel;
step S203, averaging the channel utilization rates of the multiple monitoring periods to obtain the channel utilization rate of the current channel.
After two STAs (i.e., a first STA and a second STA) establish a TDLS connection, one of the STAs (i.e., the first STA) starts to periodically monitor a data transmission condition of a current channel, that is, to acquire a busy level of the current channel.
The first STA starts monitoring from the start time (start time) of the period to obtain total _ mib _ cnt ', tx _ mib _ cnt', rx _ mib _ cnt ', and clear _ mib _ cnt' to calculate the idle fraction and channel utilization of the current channel.
The total duration of each period is denoted as total _ mib _ cnt ', the time count of the first STA sending the packet in the period is denoted as tx _ mib _ cnt', the time count of the first STA receiving the unicast packet and the broadcast multicast packet in the period is denoted as rx _ mib _ cnt ', and the time count of the channel idle in the period is denoted as clear _ mib _ cnt'. The idle ratio of the current channel in the period = clear _ mib _ cnt '/total _ mib _ cnt ', and the channel utilization of the current channel in the period = (tx _ mib _ cnt ' + rx _ mib _ cnt ')/total _ mib _ cnt '.
The first STA may monitor multiple periods to obtain the idle ratio of the current channel and the respective average value of the channel utilization, and may perform channel switching if the channel idle time of the current channel is short and the channel utilization is low within a period of time.
In an embodiment, with continuing reference to fig. 2, the performing the measurement on the one or more candidate channels in step S101 in fig. 1 includes:
step S204, sending a measurement notification to the second STA, wherein the measurement notification is used for notifying the second STA to be dormant and switching to each alternative channel;
step S205, completing the channel measurement of each candidate channel in cooperation with the second STA.
If one end STA (i.e. the first STA) detects that channel switching needs to be performed, channel measurement is triggered to measure the situation of other alternative channels.
When the first STA triggers channel measurement, the first STA may first notify the peer STA (i.e., the second STA) to sleep and switch to the alternative channel to be measured, so as to keep the connection with the peer and complete the measurement of the alternative channel.
Optionally, the channel measurement of each alternative channel is completed by using a radio measurement (radio measurement) mechanism in the 802.11k standard.
Optionally, after the channel measurement of each candidate channel is completed by using the wireless measurement mechanism in the 802.11k standard, the method may further include: and acquiring the Channel load (Channel load) and the interference strength of each alternative Channel so as to select a target Channel to be switched from the one or more alternative channels.
The channel load of each alternative channel can be obtained by the cooperation of the first STA and the second STA, by sending a channel load request and returning a report corresponding to the request.
In addition, information such as interference strength of each candidate channel can be acquired according to a wireless measurement mechanism in the 802.11k standard, so as to be used as a standard for judging whether each candidate channel is suitable as a target channel.
In an embodiment, after completing the channel measurement on each alternative channel in cooperation with the second STA in step S205 of fig. 2, the method may further include: notifying the second STA to switch back to the current channel to send a switch notification to the second STA.
And after the measurement is finished, the second STA switches back to the current channel, and the first STA selects the optimal clean channel as a target channel according to the measurement result of each alternative channel to perform channel switching. The first STA sends a switching notification to the second STA on the current channel, informs the second STA to switch to the target channel, enables the two to switch to the target channel together, and continues TDLS communication after switching to the target channel.
By the method, the STA in TDLS communication can monitor the communication condition of the current channel so as to switch the channel at a proper time, and the optimal channel is selected to execute switching through channel measurement, so that better channel utilization rate and communication effect are obtained.
Referring to fig. 3, an embodiment of the present invention further provides a method for STA channel switching under TDLS connection, where the method in fig. 3 may be executed by a second STA side, and the method includes:
step S301, when receiving a switching notification sent by a first STA, switching to the target channel; the switching notification is generated by the first STA according to a target channel, the target channel is selected from one or more alternative channels after the first STA measures one or more alternative channels respectively when the first STA determines that the busyness of the current channel exceeds a threshold value, and TDLS connection is established between the first STA and the second STA.
In one embodiment, step S301 may further include, before:
step S300, receiving a measurement notification sent by the first STA, entering sleep according to the measurement notification, switching to each alternative channel, and completing channel measurement on each alternative channel in cooperation with the first STA on each alternative channel.
Optionally, the channel measurement for each alternative channel is performed by using a wireless measurement mechanism in the 802.11k standard.
In an embodiment, after the performing, in step S301, channel measurement on each alternative channel in cooperation with the first STA on each alternative channel, the method may further include: and receiving a notification of switching back to the current channel sent by the first STA, and switching back to the current channel.
For more contents of the operation principle and the operation mode of the STA channel switching method under the TDLS connection shown in fig. 3, reference may be made to the description about the second STA in the methods described in fig. 1 and fig. 2, and details are not repeated here.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an STA channel switching apparatus 40 under a TDLS connection according to an embodiment of the present invention, including:
an active channel measurement module 401, configured to measure one or more candidate channels when the first STA determines that the busyness of the current channel exceeds a threshold;
a target channel selection module 402, configured to select a target channel to be switched from the one or more candidate channels;
an active channel switching module 403, configured to switch to the target channel and send a switching notification to a second STA, so that the second STA is switched to the target channel;
wherein the first STA and the second STA establish a TDLS connection.
In one embodiment, the active channel measurement module 401 is further configured to determine whether the busy level of the current channel exceeds a threshold according to the idle rate and/or the channel utilization rate of the current channel; the idle ratio of the current channel is the ratio of the idle time of the current channel to the preset time within the preset time; the channel utilization rate is a ratio of the transceiving time of the first STA to the preset time within the preset time.
In one embodiment, the active channel measurement module 401 may include:
the period monitoring unit is used for acquiring the idle proportion and the channel utilization rate of the current channel in a plurality of continuous monitoring periods;
the idle ratio calculation unit of the current channel is used for averaging the idle ratios of a plurality of monitoring periods to be used as the idle ratio of the current channel;
and the current channel utilization rate calculation unit is used for averaging the channel utilization rates of a plurality of monitoring periods to obtain the average value as the channel utilization rate of the current channel.
Optionally, the transceiving time of the first STA is a sum of a packet sending time total and a packet receiving time total of the first STA, and the packet receiving time total is a sum of times of receiving a unicast packet and a broadcast multicast packet.
In one embodiment, the active channel measurement module 401 may further include:
a measurement starting unit, configured to send a measurement notification to the second STA, where the measurement notification is used to notify the second STA of sleeping and switching to each alternative channel;
and the measuring unit is used for completing channel measurement of each alternative channel by matching with the second STA.
In one embodiment, the measurement unit is further configured to perform channel measurement on each alternative channel using a radio measurement mechanism in the 802.11k standard.
In one embodiment, the active channel measurement module 401 may further include:
and the channel selection unit is used for acquiring the channel load and the interference strength of each alternative channel so as to select a target channel to be switched from the one or more alternative channels.
In one embodiment, the STA channel switching apparatus 40 under the TDLS connection may further include:
and the switching notification module is used for notifying the second STA to switch back to the current channel so as to send a switching notification to the second STA.
For more contents of the operation principle and the operation mode of the STA channel switching apparatus 40 under the TDLS connection shown in fig. 4, reference may be made to the description of the STA channel switching method under the TDLS connection described with reference to fig. 1 and fig. 2, and details thereof are not repeated here.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an STA channel switching apparatus 50 under a TDLS connection according to an embodiment of the present invention, including:
a passive switching module 501, configured to switch to the target channel when receiving a switching notification sent by the first STA; the switching notification is generated by the first STA according to a target channel, the target channel is selected from one or more alternative channels after the first STA respectively measures one or more alternative channels when the busyness of the current channel is judged to exceed a threshold value, and TDLS connection is established between the first STA and the second STA.
In one embodiment, the STA channel switching apparatus 50 under the TDLS connection further includes:
a passive measurement module (not shown), when receiving a switching notification sent by a first STA and before switching to the target channel, the passive measurement module receives the measurement notification sent by the first STA, enters a sleep state according to the measurement notification, switches to each alternative channel, and cooperates with the first STA on each alternative channel to complete channel measurement on each alternative channel.
Optionally, the channel measurement for each alternative channel is performed by using a wireless measurement mechanism in the 802.11k standard.
In an embodiment, the passive measurement module is further configured to receive a notification sent by the first STA to switch back to a current channel, and switch back to the current channel.
For more contents of the operation principle and the operation mode of the STA channel switching apparatus 50 under the TDLS connection shown in fig. 5, reference may be made to the description of the STA channel switching method under the TDLS connection described in fig. 3, and details are not repeated here.
Embodiments of the present invention further provide a storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of the method described in fig. 1 to 3. The storage medium may be a computer-readable storage medium, and may include, for example, a non-volatile (non-volatile) or non-transitory (non-transitory) memory, and may further include an optical disc, a mechanical hard disk, a solid state hard disk, and the like.
Specifically, in the embodiment of the present invention, the processor may be a Central Processing Unit (CPU), and the processor may also be other general purpose processors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will also be appreciated that the memory in the embodiments of the subject application may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash memory. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of example and not limitation, many forms of Random Access Memory (RAM) are available, such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (enhanced SDRAM), synchronous DRAM (SLDRAM), synchronous Link DRAM (SLDRAM), and direct bus RAM (DR RAM).
An embodiment of the present invention further provides a terminal, which includes a memory and a processor, where the memory stores a computer program capable of running on the processor, and the processor executes the method shown in fig. 1 and 2 or the steps of the method shown in fig. 3 when running the computer program. The terminal includes, but is not limited to, a mobile phone, a computer, a tablet computer, a server or a server cluster and the like.
It should be understood that the term "and/or" herein is only one kind of association relationship describing the association object, and means that there may be three kinds of relationships, for example, a and/or B, and may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in this document indicates that the former and latter related objects are in an "or" relationship.
The "plurality" appearing in the embodiments of the present application means two or more.
The descriptions of the first, second, etc. appearing in the embodiments of the present application are only for illustrating and differentiating the objects, and do not represent the order or the particular limitation of the number of the devices in the embodiments of the present application, and do not constitute any limitation to the embodiments of the present application.
The term "connect" in the embodiments of the present application refers to various connection manners, such as direct connection or indirect connection, to implement communication between devices, which is not limited in this embodiment of the present application.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (12)

1. A STA channel switching method under TDLS connection is characterized by comprising the following steps:
when the first STA judges that the busyness of the current channel exceeds a threshold value, one or more alternative channels are measured respectively;
selecting a target channel to be switched from the one or more alternative channels;
switching to the target channel, and sending a switching notification to a second STA so that the second STA is switched to the target channel;
the first STA and the second STA establish TDLS connection;
the respectively measuring one or more alternative channels includes: sending a measurement notification to the second STA, wherein the measurement notification is used for notifying the second STA of dormancy and switching to each alternative channel; completing channel measurement of each alternative channel by matching with the second STA;
after the channel measurement for each alternative channel is completed in cooperation with the second STA, the method further includes:
notifying the second STA to switch back to the current channel to send a switch notification to the second STA.
2. The method of claim 1, wherein whether the busyness of the current channel exceeds a threshold is determined according to the idle rate and/or the channel utilization rate of the current channel;
the idle ratio of the current channel is the ratio of the idle time of the current channel to the preset time within the preset time;
the channel utilization rate is a ratio of the transceiving time of the first STA to the preset time within the preset time.
3. The method of claim 2, wherein the determining whether the busy level of the current channel exceeds the threshold according to the idle rate and/or the channel utilization rate of the current channel comprises:
acquiring the idle proportion and the channel utilization rate of the current channel in a plurality of continuous monitoring periods;
averaging the idle ratios of a plurality of monitoring periods to obtain the idle ratio of the current channel;
and averaging the channel utilization rates of a plurality of monitoring periods to obtain the channel utilization rate of the current channel.
4. The method according to claim 2 or 3, wherein the transceiving time of the first STA is the sum of the total packet sending time and the total packet receiving time of the first STA, and the total packet receiving time is the sum of the time for receiving the unicast packet and the broadcast multicast packet.
5. The method of claim 1, wherein the channel measurement for each alternative channel is performed using a radio measurement mechanism in the 802.11k standard.
6. The method of claim 5, wherein after the performing the channel measurement for each alternative channel by using the wireless measurement mechanism in the 802.11k standard, the method further comprises:
and acquiring the channel load and the interference strength of each alternative channel so as to select a target channel to be switched from the one or more alternative channels.
7. A STA channel switching method under TDLS connection is characterized by comprising the following steps:
when receiving a switching notification sent by a first STA, switching to a target channel;
the switching notification is generated by the first STA according to a target channel, the target channel is selected from one or more alternative channels after the first STA measures one or more alternative channels respectively when the first STA judges that the busyness of the current channel exceeds a threshold value, and TDLS connection is established between the first STA and the second STA;
when receiving a switching notification sent by the first STA and before switching to the target channel, the method further includes: receiving a measurement notification sent by the first STA, entering dormancy according to the measurement notification, switching to each alternative channel, and completing channel measurement on each alternative channel by matching with the first STA on each alternative channel;
after the performing, in cooperation with the first STA, channel measurement on each alternative channel, the method further includes: and receiving a notification of switching back to the current channel sent by the first STA, and switching back to the current channel.
8. The method of claim 7, wherein the channel measurement for each alternative channel is performed using a radio measurement mechanism in the 802.11k standard.
9. An apparatus for switching STA channels under a TDLS connection, the apparatus comprising:
the active channel measurement module is used for respectively measuring one or more alternative channels when the first STA judges that the busyness of the current channel exceeds a threshold value;
a target channel selection module, configured to select a target channel to be switched from the one or more candidate channels;
an active channel switching module, configured to switch to the target channel and send a switching notification to a second STA, so that the second STA switches to the target channel;
wherein the first STA and the second STA establish a TDLS connection;
the active channel measurement module includes: a measurement starting unit, configured to send a measurement notification to the second STA, where the measurement notification is used to notify the second STA of sleeping and switching to each alternative channel; a measuring unit, configured to complete channel measurement on each candidate channel in cooperation with the second STA; after the channel measurement on each alternative channel is completed in cooperation with the second STA, the STA channel switching apparatus further includes: and the switching notification module is used for notifying the second STA to switch back to the current channel so as to send a switching notification to the second STA.
10. An apparatus for switching STA channels under a TDLS connection, the apparatus comprising:
the passive switching module is used for switching to a target channel when receiving a switching notification sent by the first STA;
the switching notification is generated by the first STA according to a target channel, the target channel is selected from one or more alternative channels after the first STA measures one or more alternative channels respectively when the first STA judges that the busyness of the current channel exceeds a threshold value, and TDLS connection is established between the first STA and the second STA;
the device comprises: the passive measurement module receives a measurement notification sent by a first STA when receiving a switching notification sent by the first STA and before switching to the target channel, enters dormancy according to the measurement notification, switches to each alternative channel, and cooperates with the first STA on each alternative channel to complete channel measurement on each alternative channel;
after the channel measurement of each alternative channel is completed by the cooperation of the passive measurement module and the first STA on each alternative channel, the passive measurement module is further configured to receive a notification sent by the first STA to switch back to the current channel, and switch back to the current channel.
11. A storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, performs the method of any one of claims 1 to 5, or the steps of the method of claim 7 or 8.
12. A terminal comprising a memory and a processor, the memory having stored thereon a computer program operable on the processor, wherein the processor, when executing the computer program, performs the method of any of claims 1 to 5, or the steps of the method of claim 7 or 8.
CN202010996449.3A 2020-09-21 2020-09-21 STA channel switching method and device under TDLS connection, storage medium and terminal Active CN111988826B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010996449.3A CN111988826B (en) 2020-09-21 2020-09-21 STA channel switching method and device under TDLS connection, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010996449.3A CN111988826B (en) 2020-09-21 2020-09-21 STA channel switching method and device under TDLS connection, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN111988826A CN111988826A (en) 2020-11-24
CN111988826B true CN111988826B (en) 2023-03-31

Family

ID=73450045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010996449.3A Active CN111988826B (en) 2020-09-21 2020-09-21 STA channel switching method and device under TDLS connection, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN111988826B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101472299B (en) * 2007-12-28 2012-11-07 华为技术有限公司 Method, system and device for dynamically determining Off-Channel
CA2774368C (en) * 2009-09-18 2016-06-07 Interdigital Patent Holdings, Inc. Method and apparatus for providing peer-to-peer communication with network connection
US8817722B2 (en) * 2011-06-07 2014-08-26 Qualcomm Incorporated Preemptive direct link channel switching
CN105873159A (en) * 2016-05-05 2016-08-17 成都西加云杉科技有限公司 Wi-Fi channel switching method and device
CN109587734B (en) * 2018-12-24 2021-11-09 普联技术有限公司 Communication method and device of double-frequency repeater

Also Published As

Publication number Publication date
CN111988826A (en) 2020-11-24

Similar Documents

Publication Publication Date Title
US11963132B2 (en) Paging method, base station and user equipment
US9591497B2 (en) Wireless link quality monitoring
US20200092785A1 (en) Beam failure recovery method and terminal
US8594748B2 (en) Mobile equipment autonomous quick release detection
US11375573B2 (en) Data transmission method and apparatus for discontinuous reception
US20210235292A1 (en) User equipment and method thereof
US20210211845A1 (en) User equipment and method of vehicle-to-everything communication of same
US9185635B2 (en) Method and apparatus for supporting proximity-based services
US20190132794A1 (en) Transmission Mode Switching Method and Apparatus
US20220030455A1 (en) Event-based adaption of ue measurements
CN111356156B (en) Measurement control method, device, terminal equipment and computer storage medium
US20190320357A1 (en) Information Transmission Method and Device
WO2014166099A1 (en) Cell measurement method, user equipment, and wireless communications node
CN111988826B (en) STA channel switching method and device under TDLS connection, storage medium and terminal
CN116095794A (en) Method and device for waking up terminal equipment in communication network and readable storage medium
CN113676922A (en) Terminal device cooperation method and device
WO2020164390A1 (en) Measurement method and communication device
CN113923731A (en) RRM (radio resource management) measuring method and device, storage medium, UE (user Equipment) and base station
CN111093290B (en) Method for beam failure recovery performed by user equipment and user equipment
WO2019141194A1 (en) Method and device for updating system message
CN113242611B (en) Method and device for adjusting PoC heartbeat packet sending interval
CN114205756B (en) Roaming method and device for wireless terminal
WO2021164494A1 (en) Communication method and apparatus
CN115802422A (en) Communication method and device
CN115413027A (en) Method for determining Paging Time Window (PTW) 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