CN114337971A - Communication channel management method and device, electronic equipment and readable medium - Google Patents

Communication channel management method and device, electronic equipment and readable medium Download PDF

Info

Publication number
CN114337971A
CN114337971A CN202111680200.2A CN202111680200A CN114337971A CN 114337971 A CN114337971 A CN 114337971A CN 202111680200 A CN202111680200 A CN 202111680200A CN 114337971 A CN114337971 A CN 114337971A
Authority
CN
China
Prior art keywords
collision rate
type
communication channel
transmitting
messages
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111680200.2A
Other languages
Chinese (zh)
Inventor
刘磊
许洪
彭竞
王奇文
李嘉程
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202111680200.2A priority Critical patent/CN114337971A/en
Publication of CN114337971A publication Critical patent/CN114337971A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The present disclosure provides a management method, an apparatus, an electronic device and a readable medium for a communication channel, wherein the management method for the communication channel comprises: detecting the collision rate of two communication channels of a terminal, wherein the frequency points of the two communication channels are different; determining a communication channel with high collision rate in the two communication channels for transmitting a first type of message; determining a communication channel with low collision rate in the two communication channels for transmitting the second type of messages; and determining whether the communication channel is switched according to the collision rate of the first type of message and the collision rate of the second type of message. By the embodiment of the disclosure, data collision in a communication scene is reduced, and the throughput and reliability of a communication network are improved.

Description

Communication channel management method and device, electronic equipment and readable medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for managing a communication channel, an electronic device, and a readable medium.
Background
At present, there are many implementation protocols for Wireless local area networks, and the most famous and most widely used belong to the Wireless-Fidelity (WI-FI) protocol. 802.11ax is a recently introduced wlan standard that supports both 2.4G and 5G bands, and achieves greater radio capacity and reliability by applying denser modulation, reducing subcarrier spacing (78.125kHZ), and scheduling-based resource allocation, as compared to previous generation technologies.
According to a Transmission Control Protocol (TCP), when data of an application layer is communicated, frequent Acknowledgement is performed on a transport layer to ensure reliable Transmission of the data, however, an Acknowledgement (ACK) message for Acknowledgement is short, efficiency of transmitting the ACK message is low, and more collisions and congestion are caused to a wireless local area network (wlan), that is, a mechanism of TCP Transmission itself limits throughput of the data in the wlan to a certain extent.
In the related art, a rate adaptive algorithm may be employed to dynamically adjust the transmission rate. The physical layer of the IEEE802.11 wireless network supports many different modulation and coding schemes, and selects a suitable transmission rate according to different wireless channel conditions, so as to effectively improve the throughput of network nodes, and the mainstream rate adaptive algorithm includes the following steps:
(1) rate adaptation algorithm for ack (acknowledgement) based feedback acknowledgement frame error rate.
(2) A rate adaptation algorithm based on the channel signal to noise ratio (SNR).
(3) The algorithm of measuring the whole wireless channel condition according to the SNR fed back to the transmitting end by the receiving end can quickly react to the channel change.
Existing channel switching schemes not only require additional overhead to convey information, but also limit throughput improvements. In addition, when the data frame is lost due to collision, the rate adaptive algorithm is also adversely affected, and the channel switching scheme is unreliable.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
An object of the present disclosure is to provide a method, an apparatus, an electronic device, and a readable medium for managing a communication channel, which are used to overcome, at least to some extent, the problem of network collision aggravation due to frequent transmission of TCP acknowledgement messages and the like due to the limitations and disadvantages of the related art.
According to a first aspect of the embodiments of the present disclosure, there is provided a method for managing a communication channel, including: detecting collision rates of two communication channels of a terminal, wherein the frequency points of the two communication channels are different; determining a communication channel with high collision rate in the two communication channels to be used for transmitting a first type of message; determining a communication channel with low collision rate in the two communication channels to be used for transmitting a second type of message; and determining whether the communication channel is switched according to the collision rate of the first type of messages and the collision rate of the second type of messages.
In an exemplary embodiment of the present disclosure, detecting collision rates of two communication channels of a terminal includes: detecting the collision rate of a first communication channel between a first network card and an access end of the terminal in a first preset time period; and detecting the collision rate of a second communication channel between a second network card of the terminal and an access end in the first preset time period, wherein the communication channel comprises the first communication channel and the second communication channel.
In an exemplary embodiment of the present disclosure, determining whether the communication channel is switched according to the collision rate of transmitting the first type of packet and the collision rate of transmitting the second type of packet includes: judging whether the collision rate of the first type of messages is less than or equal to a preset collision rate or not, and judging whether the collision rate of the second type of messages is less than or equal to the preset collision rate or not; and if the collision rate for transmitting the first type of messages is judged to be less than or equal to the preset collision rate, and the collision rate for transmitting the second type of messages is judged to be less than or equal to the preset collision rate, determining not to switch the communication channel.
In an exemplary embodiment of the present disclosure, determining whether the communication channel is switched according to the collision rate of transmitting the first type of packet and the collision rate of transmitting the second type of packet further includes: judging whether the collision rate of the first type of messages is less than or equal to a preset collision rate or not, and judging whether the collision rate of the second type of messages is less than or equal to the preset collision rate or not; and if the collision rate for transmitting the first type of messages is judged to be greater than the preset collision rate, or the collision rate for transmitting the second type of messages is judged to be greater than the preset collision rate, determining whether the communication channel is switched according to a collision rate difference value between the collision rate for transmitting the first type of messages and the collision rate for transmitting the second type of messages.
In an exemplary embodiment of the present disclosure, if it is determined that the collision rate for transmitting the first type of packet is greater than the preset collision rate, or that the collision rate for transmitting the second type of packet is greater than the preset collision rate, determining whether to switch the communication channel according to a collision rate difference between the collision rate for transmitting the first type of packet and the collision rate for transmitting the second type of packet includes: if the collision rate for transmitting the first type of messages is judged to be greater than the preset collision rate, or the collision rate for transmitting the second type of messages is judged to be greater than the preset collision rate, calculating a collision rate difference value between the collision rate for transmitting the first type of messages and the collision rate for transmitting the second type of messages; comparing the size relation between the collision rate difference value and a preset collision rate difference value; and determining whether the communication channel is switched or not according to the size relation between the collision rate difference value and the preset collision rate difference value.
In an exemplary embodiment of the present disclosure, determining whether the communication channel is switched according to a magnitude relationship between the collision rate difference value and the preset collision rate difference value includes: and if the collision rate difference value is larger than the preset collision rate difference value, determining that the communication channel is switched.
In an exemplary embodiment of the present disclosure, determining whether the communication channel is switched according to a magnitude relationship between the collision rate difference value and the preset collision rate difference value includes: and if the collision rate difference value is smaller than or equal to the preset collision rate difference value, determining that the communication channel is not switched.
According to a second aspect of the embodiments of the present disclosure, there is provided a management apparatus of a communication channel, including: the detection module is arranged for detecting the collision rate of two communication channels of the terminal, wherein the frequency points of the two communication channels are different; the determining module is arranged for determining a communication channel with high collision rate in the two communication channels to be used for transmitting the first type of messages; the determining module is configured to determine a communication channel with a low collision rate in the two communication channels to be used for transmitting a second type of message; and the switching module is set to determine whether the communication channel is switched according to the collision rate of the first type of messages and the collision rate of the second type of messages.
According to a third aspect of the present disclosure, there is provided an electronic device comprising: a memory; and a processor coupled to the memory, the processor configured to perform the method of any of the above based on instructions stored in the memory.
According to a fourth aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a program which, when executed by a processor, implements a method of managing a communication channel as in any one of the above.
According to the embodiment of the disclosure, the communication channel with the high collision rate in the two communication channels is determined to be used for transmitting the first type of message, the communication channel with the low collision rate in the two communication channels is determined to be used for transmitting the second type of message, and whether the communication channels are switched or not is determined according to the collision rate for transmitting the first type of message and the collision rate for transmitting the second type of message, so that data collision in the wireless communication process is reduced, and the throughput, reliability and continuity of a wireless communication network are improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
FIG. 1 is a topological schematic diagram of a management scheme for a communication channel in an exemplary embodiment of the present disclosure;
FIG. 2 is a flow chart of a method of managing a communication channel in an exemplary embodiment of the disclosure;
FIG. 3 is a flow chart of another method of managing communication channels in an exemplary embodiment of the disclosure;
FIG. 4 is a flow chart of another method of managing communication channels in an exemplary embodiment of the disclosure;
FIG. 5 is a flow chart of another method of managing communication channels in an exemplary embodiment of the disclosure;
FIG. 6 is a flow chart of another method of managing communication channels in an exemplary embodiment of the disclosure;
FIG. 7 is a flow chart of another method of managing communication channels in an exemplary embodiment of the disclosure;
FIG. 8 is a channel switching diagram of a management scheme for communication channels in an exemplary embodiment of the present disclosure;
fig. 9 is a block diagram of an apparatus for managing a communication channel in an exemplary embodiment of the present disclosure;
fig. 10 is a block diagram of an electronic device in an exemplary embodiment of the disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Further, the drawings are merely schematic illustrations of the present disclosure, in which the same reference numerals denote the same or similar parts, and thus, a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
Fig. 1 shows a schematic diagram of an exemplary system architecture to which a positioning method or a positioning apparatus of an embodiment of the present invention may be applied.
As shown in fig. 1, the system architecture 100 may include one or more of terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation. For example, server 105 may be a server cluster comprised of multiple servers, or the like.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may be various electronic devices having a display screen, including but not limited to smart phones, tablet computers, portable computers, desktop computers, and the like.
In some embodiments, the positioning method provided by the embodiments of the present invention is generally executed by the terminal 105, and accordingly, the positioning apparatus is generally disposed in the terminal device 103 (or the terminal device 101 or 102). In other embodiments, some servers may have similar functionality as the terminal device to perform the method. Therefore, the positioning method provided by the embodiment of the invention is not limited to be executed by the terminal equipment.
The following detailed description of exemplary embodiments of the disclosure refers to the accompanying drawings.
Fig. 2 is a flowchart of a management method of a communication channel in an exemplary embodiment of the present disclosure.
Referring to fig. 2, the management method of a communication channel may include:
step S202, detecting the collision rate of two communication channels of a terminal, wherein the frequency points of the two communication channels are different.
Step S204, determining the communication channel with high collision rate in the two communication channels to be used for transmitting the first type of messages.
Step S206, determining the communication channel with low collision rate in the two communication channels to be used for transmitting the second type message.
And step S208, determining whether the communication channel is switched according to the collision rate of the first type of messages and the collision rate of the second type of messages.
According to the embodiment of the disclosure, the communication channel with the high collision rate in the two communication channels is determined to be used for transmitting the first type of message, the communication channel with the low collision rate in the two communication channels is determined to be used for transmitting the second type of message, and whether the communication channels are switched or not is determined according to the collision rate for transmitting the first type of message and the collision rate for transmitting the second type of message, so that data collision in the wireless communication process is reduced, and the throughput, reliability and continuity of a wireless communication network are improved.
In an exemplary embodiment of the present disclosure, the first type of packet is a data packet, and the second type of packet is an ACK packet.
Specifically, the MAC layer protocol used in the wireless local area network is CSMA/CA (carrier sense multiple access/collision avoidance). In the protocol, a node monitors a channel before sending a data frame, if the channel is idle, the node can send the data frame after waiting for a period of DIFS (Distributed Inter-frame Spacing), and if the channel is busy, the node needs to randomly back off for a period of time to detect again, which is to actively avoid collision. The protocol adopts a stop-wait mechanism, and the source node needs to wait for the ACK response of the receiving node after sending the data frame, so that the data frame is transmitted. In order To reduce the probability of collision and the influence of collision as much as possible, the 802.11 standard allows a station that is To transmit data To reserve a channel, transmits an RTS (request To Send) frame including a source address, a destination address, and a time required for this communication before transmitting a data frame, and realizes reservation of the channel after receiving a CTS (Clear To Send) frame of a destination station.
Next, each step of the communication channel management method will be described in detail.
In an exemplary embodiment of the present disclosure, as shown in fig. 3, detecting collision rates of two communication channels of a terminal includes:
step S302, detecting the collision rate of a first communication channel between a first network card of the terminal and an access end in a first preset time period.
Step S304, detecting a collision rate of a second communication channel between a second network card of the terminal and the access end in the first preset time period, where the communication channel includes the first communication channel and the second communication channel.
In an exemplary embodiment of the present disclosure, a terminal is equipped with two wireless network cards, two frequency points are respectively connected with the two network cards of the terminal to form two transmission channels, and all TCP sessions between the terminal and an AP use the two channels at the same time, wherein a TCP data first type message and an ACK first type message are transmitted through different channels respectively.
In an exemplary embodiment of the present disclosure, as shown in fig. 4, determining whether the communication channel is switched according to the collision rate of transmitting the first type of packet and the collision rate of transmitting the second type of packet includes:
step S402, determining whether the collision rate for transmitting the first type of packet is less than or equal to a preset collision rate, and determining whether the collision rate for transmitting the second type of packet is less than or equal to the preset collision rate, if so, performing step S404, and if not, performing step S406.
Step S404, if the collision rate for transmitting the first type of message is judged to be less than or equal to the preset collision rate, and the collision rate for transmitting the second type of message is judged to be less than or equal to the preset collision rate, determining not to switch the communication channel.
In an exemplary embodiment of the present disclosure, as shown in fig. 4, determining whether the communication channel is switched according to the collision rate of transmitting the first type of packet and the collision rate of transmitting the second type of packet further includes:
step S402, judging whether the collision rate for transmitting the first type of messages is less than or equal to a preset collision rate, and judging whether the collision rate for transmitting the second type of messages is less than or equal to the preset collision rate.
Step S406, if it is determined that the collision rate for transmitting the first type of message is greater than the preset collision rate, or it is determined that the collision rate for transmitting the second type of message is greater than the preset collision rate, determining whether the communication channel is switched according to a collision rate difference between the collision rate for transmitting the first type of message and the collision rate for transmitting the second type of message.
In an exemplary embodiment of the present disclosure, the preset collision rate may be 40%.
In an exemplary embodiment of the present disclosure, as shown in fig. 5, if it is determined that the collision rate for transmitting the first type of packet is greater than the preset collision rate, or that the collision rate for transmitting the second type of packet is greater than the preset collision rate, determining whether to switch the communication channel according to a collision rate difference between the collision rate for transmitting the first type of packet and the collision rate for transmitting the second type of packet includes:
step S502, if the collision rate for transmitting the first type of messages is judged to be larger than the preset collision rate, or the collision rate for transmitting the second type of messages is judged to be larger than the preset collision rate, calculating a collision rate difference value between the collision rate for transmitting the first type of messages and the collision rate for transmitting the second type of messages.
And step S504, comparing the size relationship between the collision rate difference value and a preset collision rate difference value.
Step S506, determining whether the communication channel is switched according to a magnitude relationship between the collision rate difference and the preset collision rate difference.
In an exemplary embodiment of the present disclosure, the preset collision rate difference may be 20%.
In an exemplary embodiment of the disclosure, as shown in fig. 6, determining whether the communication channel is switched according to a magnitude relationship between the collision rate difference value and the preset collision rate difference value includes:
step S602, if it is determined that the collision rate difference is greater than the preset collision rate difference, it is determined that the communication channel is switched.
In an exemplary embodiment of the disclosure, as shown in fig. 6, determining whether the communication channel is switched according to a magnitude relationship between the collision rate difference value and the preset collision rate difference value includes:
step S604, if it is determined that the collision rate difference is smaller than or equal to the preset collision rate difference, determining that the communication channel is not switched.
In an exemplary embodiment of the present disclosure, as shown in fig. 7, there is one access point AP 702, one terminal 708 equipped with a dual network card, and one channel control center 710 in the wireless local area network.
The AP 702 may support simultaneous communication with the terminals 708 at two frequency points f1 and f2, each terminal 708 is equipped with two wireless network cards, namely a network card 1704 and a network card 2706, and the two frequency points are connected to the two network cards of the terminals 708, respectively, to form two transmission channels, which are respectively denoted as a channel with frequency f1 and a channel with frequency f 2. All TCP sessions between a terminal 708 and the AP 702 use both channels simultaneously, where TCP data messages and ACK messages are transmitted using different channels.
The datagram generated by the upper layer application of the terminal 708 is sent out through the network card 1704 or the network card 2706, the AP 702 sends the data packet through the channel with the frequency f1 or the channel with the frequency f2, and the terminal 708 sends the data packet received from the two network cards to the upper layer application through the virtual switch (v-switch) software.
The channel control center 710 performs a channel switching decision on the TCP data message and the ACK message transmitted between the AP 702 and the terminal 708 according to the channel congestion information reported by the AP 702, and instructs, if necessary, to switch the TCP data message and the ACK message to the original channels of the TCP data message and the ACK message, respectively, for transmission.
The above-mentioned system for implementing the management scheme of the communication channel of the present disclosure has the following working flows:
(1) the AP 702 is connected to the network card 1704 and the network card 2706 of the terminal 708 by using two frequency points f1 and f2, continuously counts the collision rate of the two channels, and reports the collision rate to the channel control center 710 at intervals.
(2) The channel control center 710 transmits control information to the AP 702 and the terminal 708 according to the information reported by the AP 702, so that the TCP data packet is transmitted on the channel with a small collision rate, and the TCP ACK packet is transmitted on the channel with a large collision rate.
For example, if the designated time f1 is less than the f2, the AP 702 receives the control information, recognizes the TCP datagram from the external network, changes the destination IP address to the IP of the network card 1704, and transmits the TCP datagram through the f1 channel, and recognizes the ACK packet from the external network, changes the destination IP address to the IP of the network card 2706, and transmits the ACK packet through the f2 channel.
Similarly, the terminal 708 is also the same, and the data packets of the network card 1704 and the network card 2706 are processed by the v-switch and then forwarded to the terminal 708, when data is sent, the v-switch recognizes a TCP data message and forwards the TCP data message to the network card 1704, and recognizes an ACK message of the TCP and forwards the TCP data message to the network card 2706. The AP 702 counts the collision rate on two channels every T seconds and sends the collision information to the channel control center 710.
Further, the channel control center 710 determines whether to switch channels according to the following rule according to the collision information of the last T seconds: when the collision rate of any one channel exceeds a certain set threshold α and the absolute value of the difference between the collision rates of the two channels is greater than a certain set threshold β, channel switching is performed, and at this time, the channel control center 710 sends a channel switching signaling to control the AP 702 and the terminal 708 to perform channel switching.
As shown in fig. 8, the terminal 802 performs data communication with the AP 804 in the wireless network, and performs TCP data packet transmission through the channel with the frequency f1 and ACK packet transmission through the channel with the frequency f2, and after performing channel switching according to the embodiment of the present disclosure, performs TCP data packet transmission through the channel with the frequency f2 and ACK packet transmission through the channel with the frequency f 1.
Specifically, the AP 804 connects with two network cards of the terminal 802 through two frequency points, and in the authentication process of establishing connection, the AP 804 recognizes that the IP addresses of the two network cards belong to one device, and establishes a mapping relationship between the terminal 802 and the two IP addresses thereof in the operating data of the AP 804. The TCP datagram is transmitted to the network card 1 through the channel with the frequency f1, the ACK packet of the TCP is transmitted to the network card 2 through the channel with the frequency f2, when the AP 804 receives the TCP datagram of the external network, the destination IP address is changed to the network card 1, and when the ACK of the external network is received, the destination IP address is changed to the network card 2. The AP 804 continuously monitors the collision rate of the data packets on the two frequency channels, and transmits channel congestion information to the channel switching control management center every 2 s.
The terminal 802 with the double network cards realizes the received TCP data integration of the two network cards by deploying v-switch software, a channel with frequency f1 is connected with the network card 1 to transmit TCP datagrams, a channel with frequency f2 is connected with the network card 2 to transmit ACK packets of TCP, the v-switch adopts a full disk acceptance strategy for the data packets transmitted by the two network cards, the TCP data packets transmitted from the terminal 802 are forwarded to the network card 1 according to the types of the data packets, the ACK packets of TCP are forwarded to the network card 2, and the network card 1 and the network card 2 transmit the respective datagrams on respective wireless channels.
The channel control center decides the channel switching according to the channel congestion condition of the first 2s reported by the AP 804, and the channel switching is possible only when the collision rate of any one channel is higher than 40%, and this parameter is recommended to be set between 35% and 55%, and this parameter is an absolute limit for channel switching.
If the channel collision rate is low, channel switching is not necessary, and if the value is set too high, the sensitivity of channel switching is reduced, and the user experiences obvious network congestion. When the collision rate of any channel is higher than 40%, the channel switching is relatively limited, when the collision rate of the TCP datagram transmission channel is higher than 20% of the other channel, the channel switching is executed, the parameter is recommended to be set between 10% and 20%, if the value is set to be too small, the channel switching is too frequent, and according to the practical view, if the collision rates of the two channels are close, the channel switching is not necessary. If the value is set too large, channel switching will be sluggish and the user will experience a noticeable network upset.
The embodiment of the disclosure not only changes the transmission mode of data and data ACK of one terminal 802 in the same channel, that is, one terminal 802 is used to configure a dual network card to establish channels with different APs 804, but also allows the data and the data ACK to be transmitted in different channels, thereby greatly improving the TCP throughput in the WLAN.
Corresponding to the above method embodiment, the present disclosure further provides a management apparatus for a communication channel, which may be used to execute the above method embodiment.
Fig. 9 is a block diagram of a management apparatus of a communication channel in an exemplary embodiment of the present disclosure.
Referring to fig. 9, the management apparatus 900 of a communication channel may include:
the detecting module 902 is configured to detect collision rates of two communication channels of a terminal, where frequency points of the two communication channels are different.
The determining module 904 is configured to determine a communication channel with a high collision rate of the two communication channels to be used for transmitting the message.
The determining module 904 is configured to determine a communication channel with a low collision rate of the two communication channels for transmitting the data packet.
A switching module 906 configured to determine whether to switch the communication channel according to a collision rate of transmitting the packet and a collision rate of transmitting the data packet.
In an exemplary embodiment of the disclosure, the detecting module 902 is further configured to: detecting the collision rate of a first communication channel between a first network card and an access end of the terminal in a first preset time period; and detecting the collision rate of a second communication channel between a second network card of the terminal and an access end in the first preset time period, wherein the communication channel comprises the first communication channel and the second communication channel.
In an exemplary embodiment of the disclosure, the determining module 904 is further configured to: judging whether the collision rate of the transmitted messages is less than or equal to a preset collision rate or not, and judging whether the collision rate of the transmitted data packets is less than or equal to the preset collision rate or not; and if the collision rate of transmitting the message is judged to be less than or equal to the preset collision rate and the collision rate of transmitting the data packet is judged to be less than or equal to the preset collision rate, determining not to switch the communication channel.
In an exemplary embodiment of the disclosure, the switching module 906 is further configured to: judging whether the collision rate of the transmitted messages is less than or equal to a preset collision rate or not, and judging whether the collision rate of the transmitted data packets is less than or equal to the preset collision rate or not; and if the collision rate for transmitting the message is judged to be greater than the preset collision rate, or the collision rate for transmitting the data packet is judged to be greater than the preset collision rate, determining whether the communication channel is switched according to a collision rate difference value between the collision rate for transmitting the message and the collision rate for transmitting the data packet.
In an exemplary embodiment of the disclosure, the switching module 906 is further configured to: if the collision rate for transmitting the message is judged to be greater than the preset collision rate, or the collision rate for transmitting the data packet is judged to be greater than the preset collision rate, calculating a collision rate difference value between the collision rate for transmitting the message and the collision rate for transmitting the data packet; comparing the size relation between the collision rate difference value and a preset collision rate difference value; and determining whether the communication channel is switched or not according to the size relation between the collision rate difference value and the preset collision rate difference value.
In an exemplary embodiment of the disclosure, the switching module 906 is further configured to: and if the collision rate difference value is larger than the preset collision rate difference value, determining that the communication channel is switched.
In an exemplary embodiment of the disclosure, the switching module 906 is further configured to: and if the collision rate difference value is smaller than or equal to the preset collision rate difference value, determining that the communication channel is not switched.
Since the functions of the management device 900 for communication channels have been described in detail in the corresponding method embodiments, the disclosure is not repeated herein.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 1000 according to this embodiment of the invention is described below with reference to fig. 10. The electronic device 1000 shown in fig. 10 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 10, the electronic device 1000 is embodied in the form of a general purpose computing device. The components of the electronic device 1000 may include, but are not limited to: the at least one processing unit 1010, the at least one memory unit 1020, and a bus 1030 that couples various system components including the memory unit 1020 and the processing unit 1010.
Wherein the storage unit stores program code that is executable by the processing unit 1010 to cause the processing unit 1010 to perform steps according to various exemplary embodiments of the present invention as described in the "exemplary methods" section above in this specification. For example, the processing unit 1010 may perform a method as shown in embodiments of the present disclosure.
The storage unit 1020 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)10201 and/or a cache memory unit 10202, and may further include a read-only memory unit (ROM) 10203.
The memory unit 1020 may also include a program/utility 10204 having a set (at least one) of program modules 10205, such program modules 10205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 1030 may be any one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, and a local bus using any of a variety of bus architectures.
The electronic device 1000 may also communicate with one or more external devices 1040 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 1000, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 1000 to communicate with one or more other computing devices. Such communication may occur through input/output (I/O) interfaces 1050. Also, the electronic device 1000 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) via the network adapter 1060. As shown, the network adapter 1060 communicates with the other modules of the electronic device 1000 over the bus 1030. It should be appreciated that although not shown, other hardware and/or software modules may be used in conjunction with the electronic device 1000, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, there is also provided a computer-readable storage medium having stored thereon a program product capable of implementing the above-described method of the present specification. In some possible embodiments, aspects of the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to various exemplary embodiments of the invention described in the above section "exemplary methods" of the present description, when said program product is run on the terminal device.
The program product for implementing the above method according to an embodiment of the present invention may employ a portable compact disc read only memory (CD-ROM) and include program codes, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
Furthermore, the above-described figures are merely schematic illustrations of processes involved in methods according to exemplary embodiments of the invention, and are not intended to be limiting. It will be readily understood that the processes shown in the above figures are not intended to indicate or limit the chronological order of the processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, e.g., in multiple modules.
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.

Claims (10)

1. A method for managing a communication channel, comprising:
detecting collision rates of two communication channels of a terminal, wherein the frequency points of the two communication channels are different;
determining a communication channel with high collision rate in the two communication channels to be used for transmitting a first type of message;
determining a communication channel with low collision rate in the two communication channels to be used for transmitting a second type of message;
and determining whether the communication channel is switched according to the collision rate of the first type of messages and the collision rate of the second type of messages.
2. The method for managing communication channels of claim 1, wherein the detecting the collision rate of the two communication channels of the terminal comprises:
detecting the collision rate of a first communication channel between a first network card and an access end of the terminal in a first preset time period;
detecting the collision rate of a second communication channel between a second network card of the terminal and the access end in the first preset time period,
the communication channel includes the first communication channel and the second communication channel.
3. The method for managing a communication channel according to claim 1 or 2, wherein determining whether the communication channel is switched according to the collision rate of the first type of packet and the collision rate of the second type of packet comprises:
judging whether the collision rate of the first type of messages is less than or equal to a preset collision rate or not, and judging whether the collision rate of the second type of messages is less than or equal to the preset collision rate or not;
and if the collision rate for transmitting the first type of messages is judged to be less than or equal to the preset collision rate, and the collision rate for transmitting the second type of messages is judged to be less than or equal to the preset collision rate, determining not to switch the communication channel.
4. The method for managing a communication channel according to claim 1 or 2, wherein determining whether the communication channel is switched according to the collision rate of the first type of packet and the collision rate of the second type of packet further comprises:
judging whether the collision rate of the first type of messages is less than or equal to a preset collision rate or not, and judging whether the collision rate of the second type of messages is less than or equal to the preset collision rate or not;
and if the collision rate for transmitting the first type of messages is judged to be greater than the preset collision rate, or the collision rate for transmitting the second type of messages is judged to be greater than the preset collision rate, determining whether the communication channel is switched according to a collision rate difference value between the collision rate for transmitting the first type of messages and the collision rate for transmitting the second type of messages.
5. The method according to claim 4, wherein if it is determined that the collision rate for transmitting the first type of packet is greater than the preset collision rate or that the collision rate for transmitting the second type of packet is greater than the preset collision rate, determining whether the communication channel is switched according to a collision rate difference between the collision rate for transmitting the first type of packet and the collision rate for transmitting the second type of packet comprises:
if the collision rate for transmitting the first type of messages is judged to be greater than the preset collision rate, or the collision rate for transmitting the second type of messages is judged to be greater than the preset collision rate, calculating a collision rate difference value between the collision rate for transmitting the first type of messages and the collision rate for transmitting the second type of messages;
comparing the size relation between the collision rate difference value and a preset collision rate difference value;
and determining whether the communication channel is switched or not according to the size relation between the collision rate difference value and the preset collision rate difference value.
6. The method for managing a communication channel according to claim 5, wherein the determining whether the communication channel is switched according to the magnitude relationship between the collision rate difference value and the preset collision rate difference value comprises:
and if the collision rate difference value is larger than the preset collision rate difference value, determining that the communication channel is switched.
7. The method for managing a communication channel according to claim 5 or 6, wherein the determining whether the communication channel is switched according to the magnitude relationship between the collision rate difference value and the preset collision rate difference value comprises:
and if the collision rate difference value is smaller than or equal to the preset collision rate difference value, determining that the communication channel is not switched.
8. An apparatus for managing a communication channel, comprising:
the detection module is arranged for detecting the collision rate of two communication channels of the terminal, wherein the frequency points of the two communication channels are different;
the determining module is arranged for determining a communication channel with high collision rate in the two communication channels to be used for transmitting the first type of messages;
the determining module is configured to determine a communication channel with a low collision rate in the two communication channels to be used for transmitting a second type of message;
and the switching module is set to determine whether the communication channel is switched according to the collision rate of the first type of messages and the collision rate of the second type of messages.
9. An electronic device, comprising:
a memory; and
a processor coupled to the memory, the processor configured to perform the method of managing a communication channel of any of claims 1-7 based on instructions stored in the memory.
10. A computer-readable storage medium on which a program is stored, which program, when executed by a processor, implements the management method of a communication channel according to any one of claims 1 to 7.
CN202111680200.2A 2021-12-23 2021-12-23 Communication channel management method and device, electronic equipment and readable medium Pending CN114337971A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111680200.2A CN114337971A (en) 2021-12-23 2021-12-23 Communication channel management method and device, electronic equipment and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111680200.2A CN114337971A (en) 2021-12-23 2021-12-23 Communication channel management method and device, electronic equipment and readable medium

Publications (1)

Publication Number Publication Date
CN114337971A true CN114337971A (en) 2022-04-12

Family

ID=81022045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111680200.2A Pending CN114337971A (en) 2021-12-23 2021-12-23 Communication channel management method and device, electronic equipment and readable medium

Country Status (1)

Country Link
CN (1) CN114337971A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110310790A1 (en) * 2010-06-18 2011-12-22 Buffalo Inc. Wireless communications system, wireless terminal device, and channel switching method
CN106027492A (en) * 2016-04-29 2016-10-12 努比亚技术有限公司 Data transmission terminal and method
CN106063345A (en) * 2014-03-27 2016-10-26 英特尔Ip公司 Apparatus, system and method of selecting a wireless communication channel
CN106255230A (en) * 2016-07-29 2016-12-21 广东美的厨房电器制造有限公司 Data transmission method and data transmission device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110310790A1 (en) * 2010-06-18 2011-12-22 Buffalo Inc. Wireless communications system, wireless terminal device, and channel switching method
CN106063345A (en) * 2014-03-27 2016-10-26 英特尔Ip公司 Apparatus, system and method of selecting a wireless communication channel
CN106027492A (en) * 2016-04-29 2016-10-12 努比亚技术有限公司 Data transmission terminal and method
CN106255230A (en) * 2016-07-29 2016-12-21 广东美的厨房电器制造有限公司 Data transmission method and data transmission device

Similar Documents

Publication Publication Date Title
US10868767B2 (en) Data transmission method and apparatus in optoelectronic hybrid network
US10826830B2 (en) Congestion processing method, host, and system
US8289988B2 (en) Wireless communication methods utilizing a single antenna with multiple channels and the devices thereof
JP7154399B2 (en) DATA TRANSMISSION METHOD, APPARATUS, COMPUTER-READABLE MEDIUM AND ELECTRONIC DEVICE
JP7230225B2 (en) Transmission resource detection method, transmission resource determination method, and communication equipment
CA2841511A1 (en) System and method for reliable virtual bi-directional data stream communications with single socket point-to-multipoint capability
US20210274516A1 (en) Communication method and apparatus, computer-readable medium, and electronic device
US9729269B2 (en) Wireless communication system including communication apparatus and data communication method thereof
CN110913441B (en) Data transmission method and device
EP4287591A1 (en) Data transmission method and apparatus, and server, storage medium and program product
US20230090622A1 (en) Network Congestion Control Method and Network Device
JP4322231B2 (en) COMMUNICATION METHOD, COMMUNICATION SYSTEM, RELAY DEVICE, AND COMPUTER PROGRAM
WO2019015036A1 (en) Repeater bridging method and gateway
WO2019041371A1 (en) Internet of things number-of-connections-based router switching method and device
CN112994848B (en) MCS (modulation and coding scheme) adjusting method and device, storage medium and wireless node
CN114337971A (en) Communication channel management method and device, electronic equipment and readable medium
US20180359727A1 (en) Wireless communication apparatus, wireless communication method, and computer readable medium
US20220286532A1 (en) Method and apparatus for obtaining shared maximum segment size mss
US20040223478A1 (en) Acknowledging data transmissions in the presence of multiple shared-communications channels
WO2019054112A1 (en) Communication apparatus, wireless communication system and data flow control method
CN114189890A (en) Method, device, equipment and storage medium for updating network service quality model
CN107786310B (en) Data packet transmission method and node
CN115038127B (en) Resource scheduling method and device, storage medium and electronic equipment
US20230137775A1 (en) Base station, wireless communication system, and wireless communication method
US11589151B1 (en) Audio data communication method and wireless audio system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination