[go: up one dir, main page]

CN109819476B - Network optimization method, terminal and storage medium - Google Patents

Network optimization method, terminal and storage medium Download PDF

Info

Publication number
CN109819476B
CN109819476B CN201711168847.0A CN201711168847A CN109819476B CN 109819476 B CN109819476 B CN 109819476B CN 201711168847 A CN201711168847 A CN 201711168847A CN 109819476 B CN109819476 B CN 109819476B
Authority
CN
China
Prior art keywords
network
data
local area
wireless local
data channel
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
CN201711168847.0A
Other languages
Chinese (zh)
Other versions
CN109819476A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201711168847.0A priority Critical patent/CN109819476B/en
Publication of CN109819476A publication Critical patent/CN109819476A/en
Application granted granted Critical
Publication of CN109819476B publication Critical patent/CN109819476B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a network optimization, a terminal and a storage medium, wherein the method comprises the following steps: under the condition that a first data channel of a user terminal is accessed to a wireless local area network currently, detecting network signal state information of the wireless local area network through the first data channel; when detecting that the network signal state information of the wireless local area network does not meet the first network signal quality condition, receiving and transmitting service data through a second data channel of the user terminal, wherein the second data channel is accessed to a cellular data network; and when the network signal state information of the wireless local area network is detected to meet the first network signal quality condition, receiving and transmitting service data through the first data channel. The invention can improve the network conversion efficiency and further improve the network communication quality during network conversion.

Description

Network optimization method, terminal and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a network optimization method, a terminal, and a storage medium.
Background
With the rapid development of internet technology, Wi-Fi (Wireless Fidelity) as a technology for allowing an electronic device to be connected to a Wireless Local Area Network (WLAN) has become one of the most popular network access technologies due to its characteristics of high efficiency, convenience, and low cost, and has penetrated into various public places (e.g., restaurants, hotels, malls, etc.) and user homes. However, when using Wi-Fi networking, Wi-Fi signal weakening often occurs due to the user's movement (e.g., going into an elevator, going into and out of a company or home), resulting in a disruption of the network being connected, or the user may not be able to connect to the network or break the network connection being used when accessing unauthorized Wi-Fi. In the prior art, when a Wi-Fi signal is weak or access to unauthorized Wi-Fi occurs, the Wi-Fi connection can be manually switched to a mobile communication network (for example, a 4G network), however, due to the time delay characteristic of manual operation, the efficiency of network switching is reduced, and the network communication quality during network switching is affected.
Disclosure of Invention
Embodiments of the present invention provide a network optimization method, a terminal, and a storage medium, which implement automatic switching of a transceiving channel of service data according to network signal state information by analyzing current connection network signal state information, and can improve network switching efficiency, thereby improving network communication quality during network switching.
A first aspect of an embodiment of the present invention provides a network optimization method, which may include:
under the condition that a first data channel of a user terminal is accessed to a wireless local area network currently, detecting network signal state information of the wireless local area network through the first data channel;
when detecting that the network signal state information of the wireless local area network does not meet the first network signal quality condition, receiving and transmitting service data through a second data channel of the user terminal, wherein the second data channel is accessed to a cellular data network;
and when the network signal state information of the wireless local area network is detected to meet the first network signal quality condition, receiving and transmitting service data through the first data channel.
In one possible design, the method further includes:
and in the process of receiving and sending service data through a second data channel of the user terminal, detecting the network signal state information of the wireless local area network through the first data channel, and switching to receiving and sending the service data through the first data channel when detecting that the network signal state information of the wireless local area network meets the first network signal quality condition.
In one possible design, the transceiving traffic data via the second data channel of the user terminal further includes:
detecting network signal status information of the cellular data network over the second data channel;
and when detecting that the network signal state information of the cellular data network meets the second network signal quality condition, receiving and transmitting service data through a second data channel of the user terminal.
In one possible design, in a case that the first data channel of the user terminal is currently accessed to the wireless local area network, before detecting the network signal status information of the wireless local area network through the first data channel, the method further includes:
and when detecting that the first data channel of the user terminal is successfully accessed to the wireless local area network, receiving and transmitting service data through the second data channel of the user terminal.
In one possible design, the detecting that the first data channel of the ue successfully accesses the wlan is:
it is detected that the first data channel of the user terminal is handed over from accessing the cellular data network to accessing the wireless local area network.
In one possible design, the network signal status information for the wireless local area network includes: transmission delay or transmission delay variance;
the first network signal quality condition comprises at least one first quality condition threshold, the first quality condition threshold comprises a transmission delay threshold or a transmission delay variance threshold, and if the transmission delay of the wireless local area network reaches the transmission delay threshold or the transmission delay variance of the wireless local area network reaches the transmission delay variance threshold, the network signal state information of the wireless local area network does not meet the first network signal quality condition.
In one possible design, further comprising:
and when the current network of the network to which the first data channel is currently accessed is a wireless local area network, determining a first quality condition threshold value of the first network signal quality condition according to the data type of the service data to be received and transmitted.
In one possible design, the detecting network signal status information of the wireless local area network through the first data channel includes: and sending a data detection packet to the access equipment of the wireless local area network by adopting the first data channel based on a preset time interval, and determining the network signal state information of the wireless local area network according to the received feedback message, wherein the feedback message is the message returned by the access equipment of the wireless local area network according to the data detection packet.
In one possible design, the network signal state information for the wireless local area network includes a transmission delay or a transmission delay variance;
the determining the network signal state information of the wireless local area network according to the received feedback message includes:
detecting the round-trip transmission time delay from the sending of the data detection packet to the receiving of a feedback message returned by the access equipment of the wireless local area network;
and determining the transmission delay or the transmission delay variance according to the round-trip transmission delay obtained by at least two detections.
In one possible design, the network signal status information of the cellular data network includes: any one or more of transmission delay, transmission delay variance, transmission rate, transmission bandwidth, throughput, and delay-bandwidth product;
the second network signal quality condition comprises at least one second quality condition threshold, the second quality condition threshold comprises a transmission delay threshold, and if the transmission delay of the cellular data network does not reach the transmission delay threshold, the network signal state information of the cellular data network meets the second network signal quality condition.
In one possible design, further comprising:
and when the current network of the network to which the first data channel is currently accessed is a cellular data network, determining a second quality condition threshold value of the second network signal quality condition according to the data type of the service data to be transmitted and received.
In one possible design, the detecting network signal status information of the cellular data network over the second data channel includes:
and sending a data detection packet to the access equipment of the cellular data network by adopting the second data channel based on a preset time interval, and determining the network signal state information of the cellular data network according to the received feedback message, wherein the feedback message is a message returned by the access equipment of the cellular data network according to the data detection packet.
In one possible design, the network signal status information of the cellular data network is a transmission delay;
said determining network signal status information of said cellular data network from received feedback messages comprises:
detecting a round trip transmission delay from sending the data probe packet to receiving a feedback message returned by an access device of the cellular data network;
and analyzing the round-trip transmission delay obtained by at least two detections to determine the transmission delay.
A second aspect of an embodiment of the present invention provides a user terminal, which may include:
a first information detection unit, configured to detect network signal state information of a wireless local area network through a first data channel of a user terminal when the first data channel is currently accessed to the wireless local area network;
a first channel switching unit, configured to receive and transmit service data through a second data channel of the user terminal when detecting that the network signal status information of the wireless local area network does not satisfy a first network signal quality condition, where the second data channel is accessed to a cellular data network;
and the second channel switching unit is used for receiving and transmitting service data through the first data channel when detecting that the network signal state information of the wireless local area network meets the first network signal quality condition.
In one possible design, further comprising:
and a third channel switching unit, configured to detect the network signal status information of the wireless local area network through the first data channel in a process of receiving and sending service data through a second data channel of the user terminal, and switch to receiving and sending service data through the first data channel when it is detected that the network signal status information of the wireless local area network meets the first network signal quality condition.
In one possible design, further comprising:
a second information detection unit for detecting network signal status information of the cellular data network via the second data channel;
the first channel switching unit is specifically configured to receive and transmit service data through a second data channel of the user terminal when it is detected that the network signal state information of the cellular data network satisfies a second network signal quality condition.
In one possible design, further comprising:
and the fourth channel switching unit is used for receiving and sending the service data through the second data channel of the user terminal when detecting that the first data channel of the user terminal is successfully accessed into the wireless local area network.
In one possible design, the detecting that the first data channel of the ue successfully accesses the wlan is:
it is detected that the first data channel of the user terminal is handed over from accessing the cellular data network to accessing the wireless local area network.
In one possible design, the network signal status information for the wireless local area network includes: any one or more of transmission delay, transmission delay variance, transmission rate, transmission bandwidth, throughput, delay-bandwidth product, and bandwidth utilization;
the first network signal quality condition comprises at least one first quality condition threshold comprising at least one of a transmission delay threshold, a transmission delay variance threshold, a rate threshold, a bandwidth threshold, a throughput threshold, a delay-bandwidth product threshold, and a bandwidth utilization threshold.
In one possible design, further comprising:
a first threshold determining unit, configured to determine a first quality condition threshold of the first network signal quality condition according to a data type of service data to be received and transmitted when a current network of a network to which the first data channel is currently accessed is a wireless local area network.
In one possible design, the first information detecting unit is specifically configured to:
and sending a data detection packet to the access equipment of the wireless local area network by adopting the first data channel based on a preset time interval, and determining the network signal state information of the wireless local area network according to the received feedback message, wherein the feedback message is the message returned by the access equipment of the wireless local area network according to the data detection packet.
In one possible design, the network signal state information for the wireless local area network includes a transmission delay or a transmission delay variance;
the determining, by the first information detection unit, network signal status information of the cellular data network according to the received feedback message includes:
a first time delay detection subunit, configured to detect a round-trip transmission time delay from sending the data probe packet to receiving a feedback message returned by the access device of the wireless local area network;
and the first information detection subunit is used for determining the transmission delay or the transmission delay variance according to the round-trip transmission delay obtained by at least two detections.
In one possible design, the network signal status information of the cellular data network includes: any one or more of transmission delay, transmission delay variance, transmission rate, transmission bandwidth, throughput, and delay-bandwidth product;
the second network signal quality condition comprises at least one second quality condition threshold comprising at least one of a transmission delay threshold, a transmission delay variance threshold, a rate threshold, a bandwidth threshold, a throughput threshold, and a delay-bandwidth product threshold.
In one possible design, further comprising:
and a second threshold determining unit, configured to determine, when the current network of the network to which the first data channel is currently accessed is a cellular data network, a second quality condition threshold of the second network signal quality condition according to a data type of service data to be received and transmitted.
In one possible design, the second information detecting unit is specifically configured to:
and sending a data detection packet to the access equipment of the cellular data network by adopting the second data channel, and determining the network signal state information of the cellular data network according to the received feedback message, wherein the feedback message is a message returned by the access equipment of the cellular data network according to the data detection packet.
In one possible design, the network signal status information of the cellular data network is a transmission delay;
the determining, by the second information detection unit, the network signal status information of the cellular data network according to the received feedback message includes:
a second delay detection subunit, configured to detect a round-trip transmission delay from sending the data probe packet to receiving a feedback message returned by the access device of the cellular data network;
a second information detection subunit, configured to analyze round-trip transmission delay obtained by at least two detections, and determine the transmission delay
A third aspect of embodiments of the present invention provides a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the following steps:
under the condition that a first data channel of a user terminal is accessed to a wireless local area network currently, detecting network signal state information of the wireless local area network through the first data channel;
when detecting that the network signal state information of the wireless local area network does not meet the first network signal quality condition, receiving and transmitting service data through a second data channel of the user terminal, wherein the second data channel is accessed to a cellular data network;
and when the network signal state information of the wireless local area network is detected to meet the first network signal quality condition, receiving and transmitting service data through the first data channel.
A fourth aspect of an embodiment of the present invention provides a terminal, which may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the steps of:
under the condition that a first data channel of a user terminal is accessed to a wireless local area network currently, detecting network signal state information of the wireless local area network through the first data channel;
when detecting that the network signal state information of the wireless local area network does not meet the first network signal quality condition, receiving and transmitting service data through a second data channel of the user terminal, wherein the second data channel is accessed to a cellular data network;
and when the network signal state information of the wireless local area network is detected to meet the first network signal quality condition, receiving and transmitting service data through the first data channel.
In the embodiment of the invention, under the condition that a first data channel of a user terminal is accessed to a wireless local area network currently, network signal state information of the wireless local area network is detected through the first data channel, when the network signal state information of the wireless local area network is detected not to meet a first network signal quality condition, service data is transmitted and received through a second data channel of the user terminal, wherein the second data channel is accessed to a cellular data network, and when the network signal state information of the wireless local area network is detected to meet the first network signal quality condition, the service data is transmitted and received through the first data channel. By analyzing the current connection network signal state information, the receiving and sending channels of the service data are automatically converted according to the network signal state information, the network conversion efficiency is improved, and the network communication quality during network conversion is further improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of an architecture for network optimization according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a network optimization method according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of another network optimization method provided in the embodiment of the present invention;
fig. 4 is a schematic flow chart of another network optimization method provided in the embodiment of the present invention;
fig. 5 is a schematic flow chart of another network optimization method provided in the embodiment of the present invention;
fig. 6 is a schematic flow chart of another network optimization method provided in the embodiment of the present invention;
fig. 7 is a schematic structural diagram of a network optimization system according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a user terminal according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of another ue according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a first information detection unit according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a second information detection unit provided in an embodiment of the present invention;
fig. 12 is a schematic structural diagram of another ue according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of another terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The network optimization method provided by the embodiment of the invention can be applied to scenes that when Wi-Fi signals connected with a mobile phone terminal are weak or unauthorized, service data receiving and sending channels are automatically switched, for example: the method comprises the steps that under the condition that a first data channel of a user terminal is accessed to a wireless local area network currently, network signal state information of the wireless local area network is detected through the first data channel, when the condition that the network signal state information of the wireless local area network does not meet a first network signal quality condition is detected, service data are sent and received through a second data channel of the user terminal, wherein the second data channel is accessed to a cellular data network, and when the condition that the network signal state information of the wireless local area network meets the first network signal quality condition is detected, the service data are sent and received through the first data channel. By analyzing the current connection network signal state information, the receiving and sending channels of the service data are automatically converted according to the network signal state information, the network conversion efficiency is improved, and the network communication quality during network conversion is further improved.
The user terminal related to the embodiment of the invention can be a tablet computer, a smart phone, a palm computer, a Mobile Internet Device (MID) and other terminal devices with multiple network outlets.
The network optimization method provided by the embodiment of the invention will be described in detail below with reference to fig. 1 to 7.
Referring to fig. 2, a flow chart of a network optimization method according to an embodiment of the present invention is shown. As shown in fig. 2, the method of the embodiment of the present invention may include the following steps S101 to S103.
S101, under the condition that a first data channel of a user terminal is accessed to a wireless local area network currently, network signal state information of the wireless local area network is detected through the first data channel;
specifically, the network architecture for implementing network optimization according to the embodiment of the present invention may be as shown in fig. 1, where the user terminal 2 is connected to the Wireless Local Area network 3 and the cellular data network connection 4 through a first data channel and a second data channel, respectively, and it is understood that the Wireless Local Area Network (WLAN) may be a network that transmits data, voice and video signals over the air by using a Wireless technology, for example, a Wireless Fidelity (Wi-Fi) network. The first data channel may be a system default network data channel of the user terminal. The cellular data network may include a 2G, 3G, 4G, LTE (Long Term Evolution ) network, 5G, and other mobile data networks. In a specific implementation, the ue may determine that a network currently accessed by the first data channel or the second data channel is a wireless local area network or a cellular data network by detecting a source IP that sends data to the outside through the first data channel or the second data channel. For example, when the source IP of the service data currently sent by the first data channel is switched from the egress route IP corresponding to the cellular data network to the egress route IP of the Wi-Fi, it may be considered that the network currently accessed by the first data channel is switched from the cellular data network to the wireless local area network.
Under the condition that a first data channel of a user terminal is accessed to a wireless local area network currently, the user terminal can detect network signal state information of the wireless local area network through the first data channel. Optionally, the user terminal may send a data probe packet to an access device (e.g., a router) of the wireless local area network through the first data channel, and detect network signal state information of the wireless local area network according to a feedback message for the data probe packet returned by the access device of the wireless local area network, where the network signal state information may be any one or more of transmission delay, transmission delay variance, transmission rate, transmission bandwidth, throughput, delay-bandwidth product, and bandwidth utilization.
In an alternative embodiment, the first data Channel may be a Default Channel that is adopted by the user terminal by Default, and the first data Channel preferentially connects to a connectable wireless local area network when detecting that the connectable wireless local area network exists, and connects to the cellular data network when the connectable local area network does not exist. The second data Channel may be a Backup data Channel of the ue, and specifically may allocate a special Socket to the ue for always connecting to the cellular data network.
S102, when detecting that the network signal state information of the wireless local area network does not meet the first network signal quality condition, receiving and transmitting service data through a second data channel of the user terminal;
specifically, when the user terminal detects that the network signal state information of the wireless local area network does not satisfy the first network signal quality condition, the user terminal may send and receive service data through the second data channel of the user terminal, it may be understood that the first network signal quality condition may include at least one first quality condition threshold, and the first quality condition threshold may be a threshold for evaluating the quality of the network signal state information of the wireless local area network, and may be, for example, at least one of a transmission delay threshold, a transmission delay variance threshold, a rate threshold, a bandwidth threshold, a throughput threshold, a delay bandwidth product threshold, and a bandwidth utilization threshold. The service data may be various types of application data or multimedia data, such as audio, video, or text data.
In this embodiment of the present invention, when the state information value corresponding to the network signal state information of the wireless lan does not satisfy the first quality condition threshold (for example, when the network signal state information is required to be smaller than the first quality condition threshold, the obtained network signal state information is larger than the first quality condition threshold, and it may be considered that the network signal state information of the wireless lan does not satisfy the first network signal quality condition), that is, the current network signal state of the wireless lan is not good enough.
S103, when detecting that the network signal state information of the wireless local area network meets the first network signal quality condition, receiving and transmitting service data through the first data channel;
specifically, when the ue detects that the network signal status information of the wlan meets the first network signal quality condition (for example, when the network signal status information is required to be smaller than a first quality condition threshold, it is determined that the network signal status information is smaller than the first quality condition threshold), that is, when the network status of the wlan is better, the ue may receive and transmit the service data through the first data channel.
In the embodiment of the invention, under the condition that a first data channel of a user terminal is accessed to a wireless local area network currently, network signal state information of the wireless local area network is detected through the first data channel, when the network signal state information of the wireless local area network is detected not to meet a first network signal quality condition, service data is transmitted and received through a second data channel of the user terminal, wherein the second data channel is accessed to a cellular data network, and when the network signal state information of the wireless local area network is detected to meet the first network signal quality condition, the service data is transmitted and received through the first data channel. By analyzing the current connection network signal state information, the receiving and sending channels of the service data are automatically converted according to the network signal state information, the network conversion efficiency is improved, and the network communication quality during network conversion is further improved.
Referring to fig. 3, a schematic flow chart of another network optimization method according to an embodiment of the present invention is provided. As shown in fig. 3, the method of the embodiment of the present invention may include the following steps S201 to S205.
S201, under the condition that a first data channel of a user terminal is accessed to a wireless local area network currently, network signal state information of the wireless local area network is detected through the first data channel;
specifically, the network architecture for implementing network optimization according to the embodiment of the present invention may be as shown in fig. 1, where the user terminal 2 is connected to the wireless local area network 3 and the cellular data network 4 through a first data channel and a second data channel, respectively, and it is understood that the wireless local area network WLAN may be a network that transmits data, voice and video signals over the air by using wireless technology, for example, a Wi-Fi network. The first data channel may be a system default network data channel of the user terminal. The cellular data network may comprise a 2G, 3G, 4G, LTE network, 5G, etc. mobile data network.
In an alternative embodiment, the first data Channel may be a Default Channel that is adopted by the user terminal by Default, and the first data Channel preferentially connects to a connectable wireless local area network when detecting that the connectable wireless local area network exists, and connects to the cellular data network when the connectable local area network does not exist. The second data Channel may be a Backup data Channel of the ue, and specifically may allocate a special Socket to the ue for always connecting to the cellular data network.
It is understood that, before determining the data channel for transceiving the service data, the user terminal may detect a network type currently accessed by the first data channel, where the network type may include a wireless local area network and a cellular data network, and in a case that the first data channel is currently accessed by the wireless local area network, the step S201 is continuously performed.
Specifically, when it is detected that the first data channel of the user equipment is currently accessed to the wireless local area network, the network signal status information of the wireless local area network may be detected through the first data channel. It is understood that the network signal status information of the wireless local area network includes: any one or more of transmission delay, transmission delay variance, transmission rate, transmission bandwidth, throughput, delay-bandwidth product, and bandwidth utilization.
In an optional embodiment, the user terminal may send a data probe packet to an access device (e.g., a router) of the wireless local area network based on a preset time interval and using the first data channel, and determine network signal state information of the wireless local area network according to a received feedback message, where the feedback message is a message returned by the access device of the wireless local area network according to the data probe packet. It can be understood that the preset time interval may be any set smaller time interval, for example, 1s or 2s, the data probe packet may be any data packet, and after receiving the data probe packet, the access device of the wireless local area network may return a feedback message, that is, data reception confirmation information, to the user terminal, so as to inform the user terminal that the data probe packet is successfully sent.
Optionally, when the network signal status information of the wireless lan does not satisfy the first network signal quality condition, the step S202 may be executed, and when the network signal status information of the wireless lan satisfies the first network signal quality condition, the step S205 may be executed.
S202, when detecting that the network signal state information of the wireless local area network does not meet the first network signal quality condition, detecting the network signal state information of the cellular data network through the second data channel;
specifically, when the ue detects that the network signal status information of the wlan does not satisfy the first network signal quality condition, the ue may detect the network signal status information of the cellular data network through the second data channel. It is to be understood that the first network signal quality condition may include at least one first quality condition threshold, and the first quality condition threshold may be a threshold for evaluating the quality of the network signal status information of the wireless local area network, such as at least one of a transmission delay threshold, a transmission delay variance threshold, a rate threshold, a bandwidth threshold, a throughput threshold, a delay bandwidth product threshold, and a bandwidth utilization threshold, and the second data channel may access the cellular data network.
In an optional embodiment of the present invention, the user terminal may continuously send a Round-trip-delay (RTT) probe packet to the access device of the wireless lan through the first data Channel, i.e., the data Channel Default Channel, at an interval of 2s, to obtain a group of RTT discrete data, and specifically record 5 times of obtained RTT data, calculate a mean value and a variance of the 5 times of obtained RTT data, and finally determine whether the network signal status information of the wireless lan meets a transmission delay threshold and a transmission variance threshold in the first network signal quality condition by comparing a relationship between the mean value and the variance of the RTT data and a preset RTT value and variance, where the Round-trip delay may indicate that data is sent from a sending end until the sending end receives an acknowledgement from a receiving end (the receiving end immediately sends an acknowledgement after receiving the data), total experienced delay.
It can be understood that if the transmission delay of the wireless local area network reaches the transmission delay threshold or the transmission delay variance of the wireless local area network reaches (can be understood to be greater than or equal to) the transmission delay variance threshold, the network signal state information of the wireless local area network does not satisfy the first network signal quality condition. For example, if the transmission delay of the wireless local area network is 1s and the transmission delay threshold is 0.9s, the transmission delay reaches the transmission delay threshold, and it may be determined that the network signal state information of the wireless local area network does not satisfy the first network signal quality condition.
Optionally, when the user terminal detects that the transmission rate of the wireless local area network reaches (may be understood to be less than or equal to) a rate threshold, or the transmission bandwidth reaches (may be understood to be greater than or equal to) a credit threshold, or the delay bandwidth product reaches (may be understood to be greater than or equal to) a delay bandwidth product threshold, or the bandwidth utilization reaches (may be understood to be less than or equal to) a bandwidth utilization threshold, it may be determined that the network signal status information of the wireless local area network does not satisfy the first network signal quality condition. For example, the network signal status information of the wireless local area network may be determined not to satisfy the first network signal quality condition when any of the following conditions is satisfied: the transmission rate of the wireless local area network is 10MB/S, and the rate threshold value is 15 MB/S; or the transmission bandwidth of the wireless local area network is 200M, and the bandwidth threshold is 150M; or the time delay bandwidth product of the wireless local area network is 105bit/s, and the threshold value of the time delay bandwidth product is 100 bit/s; or the bandwidth utilization is 80% and the bandwidth utilization threshold is 85%.
It can be understood that, before the implementation of the embodiment of the present invention, the user terminal may determine the first quality condition threshold of the first network signal quality condition according to a data type of service data to be received and transmitted when a current network of a network to which the first data channel is currently accessed is a wireless local area network, where the service data may be various types of multimedia data, such as audio, video, or text data. Optionally, when the service data is video data or instant fighting game data, a better network signal is needed to realize stable transceiving of the video data, so that the determined first quality condition threshold is larger, and optionally, when the service data is text character data, non-instant fighting game data, or the like, the service data can be transceived without high network signal quality requirements, so that the determined first quality condition threshold is smaller. The first quality condition threshold of the first network signal quality condition may be determined according to the data type of the service data to be received and transmitted by presetting the first quality condition threshold corresponding to the different types of service data.
In this embodiment of the present invention, when the network signal status information of the wireless local area network needs to be smaller than the first quality condition threshold, but the detected network signal status is larger than the first quality condition threshold, it may be considered that the network signal status information of the wireless local area network does not satisfy the first network signal quality condition, that is, the current network signal status of the wireless local area network is not good enough. When the network signal state information of the wireless local area network does not meet the first network signal quality condition, the network signal state information of the cellular data network can be detected through the second data channel, and whether the service data can be transmitted and received through the second data channel is determined.
In an optional embodiment, the user terminal may send a data probe packet to the access device of the cellular data network by using the second data channel, and determine the network signal state information of the cellular data network according to the received feedback message, where the feedback message is a message returned by the access device of the cellular data network according to the data probe packet. It is understood that the network signal status information of the cellular data network comprises: any one or more of transmission delay, transmission delay variance, transmission rate, transmission bandwidth, throughput, and delay-bandwidth product.
S203, when detecting that the network signal state information of the cellular data network meets the second network signal quality condition, receiving and transmitting service data through a second data channel of the user terminal;
specifically, when the user terminal detects that the network signal state information of the cellular data network meets the second network signal quality condition, the service data may be received and transmitted through the second data channel of the user terminal. It is to be appreciated that the second network signal quality condition can include at least one second quality condition threshold comprising at least one of a transmission delay threshold, a transmission delay variance threshold, a rate threshold, a bandwidth threshold, a throughput threshold, and a delay bandwidth product threshold.
It can be understood that, before the embodiment of the present invention is executed, when the current network of the network to which the first data channel is currently accessed is a cellular data network, the user terminal may determine the second quality condition threshold of the second network signal quality condition according to the data type of the service data to be received and transmitted, and a specific determination method may refer to the process of determining the first instruction condition threshold in step S203, which is not described herein again.
It is to be understood that the network signal status information of the cellular data network satisfies the second network signal quality condition if the transmission delay of the cellular data network does not reach (can be understood as being less than or equal to) the transmission delay threshold. For example, if the transmission delay of the cellular data network is 0.5s and the transmission delay threshold is 1s, the transmission delay does not reach the transmission delay threshold and meets the low delay reachable condition, and it may be determined that the network signal state information of the cellular data network meets the second network signal quality condition.
In this embodiment of the present invention, when the network signal status information of the cellular data network is required to be greater than the second quality condition threshold, and the detected network signal status information is also greater than the second quality condition threshold, it may be considered that the network signal status information of the cellular data network satisfies the second network signal quality condition, that is, when the current network signal status of the cellular data network is better, the service data may be received and transmitted through the second data channel of the user terminal.
In an optional embodiment of the present invention, the user terminal may send an RTT detection packet through the second data Channel, that is, the Backup data Channel, determine whether the Backup data Channel is reachable with low latency based on the sent RTT detection packet, and if the Backup data Channel is reachable with low latency, determine that the network signal state information of the cellular data network satisfies a transmission latency threshold in the second network signal quality condition.
In the embodiment of the invention, under the condition that the network signal state information of the wireless local area network is determined not to meet the first network signal quality condition, when the network signal state information of the cellular data network is further determined to meet the second network signal quality condition, the service data is transmitted and received through the second data channel, and the reliability of network switching is improved.
S204, in the process of receiving and sending service data through a second data channel of the user terminal, detecting the network signal state information of the wireless local area network through the first data channel, and switching to receiving and sending the service data through the first data channel when detecting that the network signal state information of the wireless local area network meets the first network signal quality condition;
it is understood that, when it is detected that the network signal status information of the wireless local area network does not satisfy a first network signal quality condition and the network signal status information of the cellular data network satisfies a second network signal quality condition, the service data is transceived by using the second data channel of the user terminal, the network signal status information of the wireless local area network can be detected at any time through the first data channel during the process of transceiving the service data by using the second data channel, when it is detected that the network signal status information of the wireless local area network satisfies the first network signal quality condition, the transceiving of the service data can be switched to transceiving the service data through the first data channel, that is, when the network status of the wireless local area network is good, the transceiving of the service data can be switched from the second data channel to the first data channel, continuing to use the wireless local area network.
In the embodiment of the invention, in the process of receiving and transmitting the service data based on the second data channel, whether the wireless local area network reaches a better state is detected at any time, so that excessive consumption of data flow is avoided when the signal state of the wireless local area network is better.
S205, when detecting that the network signal state information of the wireless local area network meets the first network signal quality condition, receiving and transmitting service data through the first data channel;
specifically, when the ue detects that the network signal status information of the wlan meets the first network signal quality condition (for example, when the network signal status information is required to be smaller than a first quality condition threshold, it is determined that the network signal status information is smaller than the first quality condition threshold), that is, when the network status of the wlan is better, the ue may receive and transmit the service data through the first data channel.
In a specific implementation manner of the embodiment of the present invention, when the network signal status information of the wireless local area network is transmission delay or transmission delay variance, the determining the network signal status information of the wireless local area network according to the received feedback message may include the following steps, as shown in fig. 4:
s301, detecting the round-trip transmission delay from the sending of the data detection packet to the receiving of the feedback message returned by the access equipment of the wireless local area network;
specifically, when the network signal state information of the wireless local area network is transmission delay or transmission delay variance, the ue may detect a round-trip transmission delay from sending the data probe packet to receiving a feedback message returned by the access device of the wireless local area network, where the round-trip transmission delay may indicate a time period from sending the data probe packet to receiving the feedback message by the ue, that is, a round-trip time of service data between the ue and the access device of the wireless local area network.
S302, determining the transmission delay or the transmission delay variance according to the round-trip transmission delay obtained by at least two detections;
it can be understood that the ue may obtain the round trip transmission delay obtained by at least two detections, for example, the ue obtains the round trip transmission delay every 2s for 5 times, and then obtains the delay mean and the delay variance of the round trip transmission delay obtained for 5 times respectively. It is understood that the delay mean and the delay variance may represent network signal status information of the currently accessed wireless local area network.
Further, the ue may determine the delay mean as the network signal state information of the transmission delay in the network signal state information of the wlan, or may determine the delay variance as the network signal state information of the transmission delay variance in the network signal state information of the wlan.
In a specific implementation manner of the embodiment of the present invention, when the network signal status information of the cellular data network is transmission delay, the determining the network signal status information of the cellular data network according to the received feedback message may include the following steps, as shown in fig. 5:
s401, detecting the round-trip transmission delay from the data detection packet sending to the feedback message returned by the access equipment of the cellular data network;
specifically, when the network signal state information of the cellular data network is transmission delay time, the ue may detect a round-trip transmission delay from sending the data probe packet to receiving a feedback message returned by an access device of the cellular data network, where the round-trip transmission delay may indicate a time period from sending the data probe packet to receiving the feedback message by the ue, that is, a round-trip time of service data between the ue and the access device of the cellular data network.
S402, analyzing the round-trip transmission time delay obtained by at least two detections, and determining the transmission time delay;
specifically, the ue may obtain the maximum transmission delay of the round-trip transmission delays obtained by at least two detections, for example, the ue obtains the data transmission delay once every 2s for 5 times, and may compare the 5 obtained data transmission delays for 5 times to obtain the maximum transmission delay therein. It should be noted that, when the maximum transmission delay is smaller than the transmission delay threshold in the second quality condition threshold, it may be considered that the second data channel is satisfied with low delay.
Further, the ue may determine the maximum transmission delay as the network signal status information of the transmission delay in the network signal status information of the cellular data network.
In the embodiment of the invention, under the condition that a first data channel of a user terminal is accessed to a wireless local area network currently, network signal state information of the wireless local area network is detected through the first data channel, when the network signal state information of the wireless local area network is detected not to meet a first network signal quality condition, service data is transmitted and received through a second data channel of the user terminal, wherein the second data channel is accessed to a cellular data network, and when the network signal state information of the wireless local area network is detected to meet the first network signal quality condition, the service data is transmitted and received through the first data channel. By analyzing the state information of the current connection network signal, the receiving and sending channels of the service data are automatically converted according to the state information of the network signal, the network conversion efficiency is improved, and the network communication quality during network conversion is further improved; under the condition that the network signal state information of the wireless local area network is determined not to meet the first network signal quality condition, and when the network signal state information of the cellular data network is further determined to meet the second network signal quality condition, service data is received and transmitted through a second data channel, so that the reliability of network conversion is improved; in the process of receiving and transmitting the service data based on the second data channel, whether the wireless local area network reaches a better state is detected at any time, and excessive consumption of data flow when the wireless local area network has a better signal state is avoided.
Referring to fig. 6, a schematic flow chart of another network optimization method according to an embodiment of the present invention is provided. As shown in fig. 6, the method of the embodiment of the present invention may include the following steps S501 to S503.
S501, under the condition that a first data channel of a user terminal is currently accessed to a cellular data network, detecting whether the network currently accessed to the first data channel is switched to a wireless local area network from the cellular data network;
specifically, the network architecture for implementing network optimization according to the embodiment of the present invention may be as shown in fig. 1, where the user terminal 2 is connected to the wireless local area network 3 and the cellular data network 4 through a first data channel and a second data channel, respectively, and it is understood that the wireless local area network WLAN may be a network that transmits data, voice and video signals over the air by using wireless technology, for example, a Wi-Fi network. The first data channel may be a system default network data channel of the user terminal. The cellular data network may comprise a 2G, 3G, 4G, LTE network, 5G, etc. mobile data network.
In an alternative embodiment, the first data Channel may be a Default Channel that is adopted by the user terminal by Default, and the first data Channel preferentially connects to a connectable wireless local area network when detecting that the connectable wireless local area network exists, and connects to the cellular data network when the connectable local area network does not exist. The second data Channel may be a Backup data Channel of the ue, and specifically may allocate a special Socket to the ue for always connecting to the cellular data network.
It is understood that the user terminal may detect a network type currently accessed by the first data channel before determining the data channel for transceiving the traffic data, and the network type may include a wireless local area network and a cellular data network. Optionally, when the first data channel is currently accessed to the cellular data network, the user terminal may determine that the network to which the first data channel is currently accessed is the wireless local area network or the cellular data network by continuously monitoring a source IP that sends data to the first data channel. For example, when the source IP of the service data currently sent by the first data channel is switched from the egress route IP corresponding to the cellular data network to the egress route IP of the Wi-Fi, it may be considered that the network currently accessed by the first data channel is switched from the cellular data network to the wireless local area network.
S502, when detecting that a first data channel of a user terminal is successfully accessed to a wireless local area network, receiving and transmitting service data through a second data channel of the user terminal;
specifically, when it is detected that a first data Channel of the user terminal successfully accesses the wireless local area network, the user terminal may adopt the first data Channel to receive and transmit the service data, optionally, before adopting the first data Channel to receive and transmit the service data, the user terminal may force the service data to be received and transmitted through a second data Channel, that is, a Backup data Channel, and simultaneously, the network signal state information of the wireless local area network is detected through the first data Channel.
S503, during the process of transceiving service data through the second data channel of the user equipment, detecting the network signal status information of the wireless local area network through the first data channel, and switching to transceiving service data through the first data channel when it is detected that the network signal status information of the wireless local area network meets the first network signal quality condition;
it can be understood that, when the user terminal forcibly uses the second data channel to receive and transmit the service data, the user terminal may detect network signal status information of the wireless local area network at any time through the first data channel, where the network signal status information of the wireless local area network includes: the user terminal may send a data probe packet to an access device (e.g., a router) of the wireless local area network through the first data channel, and detect network signal state information of the wireless local area network according to a feedback message for the data probe packet returned by the access device of the wireless local area network.
When detecting that the network signal state information of the wireless local area network meets the first network signal quality condition, the user terminal may switch to transceiving the service data through the first data channel, that is, when the network state of the wireless local area network is good, the user terminal may switch to transceiving the service data from using the second data channel to using the first data channel, and continue to use the wireless local area network.
In an optional embodiment of the present invention, the user terminal may continuously send an RTT (round trip delay) probe packet to the access device of the wireless lan through the first data Channel, that is, the data Channel Default Channel, at an interval of 2s, obtain a group of RTT discrete data, specifically record RTT data obtained 5 times, calculate a mean value and a variance of the RTT data obtained 5 times, and finally determine whether the network signal status information of the wireless lan meets a transmission delay threshold and a transmission delay variance threshold in the first network signal quality condition by comparing a relationship between the mean value and the variance of the RTT data and a preset RTT value and variance.
In the embodiment of the invention, when a wireless local area network is newly accessed, the newly accessed wireless local area network is not used for receiving and sending the service data, but the cellular data network is used for ensuring the continuation of the service data, and the wireless local area network is switched to the wireless local area network for receiving and sending the data under the condition of ensuring the good network quality of the wireless local area network, so that the interruption of receiving and sending of the service data caused by the wireless local area network which is actually unavailable or unstable is avoided.
The network optimization process according to the embodiment of the present invention will be described with reference to a specific example, where the first network signal quality condition for evaluating the first network signal state is a transmission delay threshold and a transmission delay variance threshold, and a specific implementation process is shown in fig. 7:
s601, setting a round trip delay threshold and a round trip delay variance threshold when a user terminal communicates with a wireless local area network access device;
the embodiment of the invention mainly relates to two network signal quality conditions for judging the network signal state information, namely a round trip delay threshold and a round trip delay variance threshold, and the required round trip delay threshold and the required round trip delay variance threshold can be preset according to the round trip delay and the delay variance under different network states in historical experience before network optimization is carried out. It can be understood that the round trip delay may represent a total time delay from when the transmitting end transmits data to when the transmitting end receives an acknowledgement from the receiving end (the receiving end transmits the acknowledgement immediately after receiving the data), and the delay variance may be a value obtained by calculating a variance of round trip delays for a plurality of times, which may reflect fluctuation of the round trip delay.
S602, initializing a port number of a forced binding cellular data network outlet as a standby data channel;
it can be understood that, in the network optimization method according to the embodiment of the present invention, a backup data channel needs to be set to provide a transceiving channel as service data when different network types are converted, where the backup data channel may be the second data channel in the foregoing method embodiment.
In an alternative embodiment, the port number Socket as the backup data channel may be named backup channel.
S603, judging the network outlet type of the default data channel;
it can be understood that, before determining the data channel for transceiving the service data, the user terminal needs to detect the network type currently accessed by the default data channel, where the default data channel may be the first data channel in the above method embodiment. The network types may include a wireless local area network and a cellular data network, and when the determination result in step S603 is that the current network outlet type is the wireless local area network, the operations in step S604 to step S607 may be correspondingly performed. When the judgment result of step S603 is that the current network outlet type is the cellular data network, the operations in step S611, step S612, and steps S609 to S610 may be correspondingly performed, wherein the two branches corresponding to step 603 may establish a connection through step S607 and step S608.
S604, detecting network signal state information of the wireless local area network based on the round trip delay threshold and the round trip delay variance threshold;
specifically, the ue may detect the network signal status information of the wlan through a default data channel and based on the round trip delay threshold and the round trip delay variance threshold, where a specific implementation process may include step S6041 to step S6043, and the detection process of the network signal status information in step S6041 to step S6043 may refer to relevant descriptions in step S202 in the foregoing method embodiment and is not described here again.
S6041, continuously sending RTT detection packets at an interval of 2S in a default data channel, obtaining a group of RTT discrete data, and recording the latest n-RTT data of 5 times;
s6042, calculating the mean and variance of the latest RTT data where n is 5 times;
s6043, judging whether the mean value of the discrete RTT data is larger than a round trip delay threshold or the variance is larger than a round trip delay variance threshold;
s605, using a cellular data channel to receive and transmit service data;
it can be understood that, when it is detected in step S604 that the network status information of the wireless local area network does not satisfy the first network signal quality condition (i.e. the above-mentioned round trip delay threshold and round trip delay variance threshold), the current network signal status of the wireless local area network may be considered to be poor, and the user terminal may use the cellular data channel to transceive the service data.
S606, detecting the network state of the cellular data network;
it can be understood that, when the cellular data channel is used to receive and transmit the service data, the user terminal may detect a network state of the cellular data network, that is, determine whether the cellular data channel satisfies the low latency reachability, and a specific determination process may refer to related description in step S203 and is not described herein again. It can be understood that, when the detection result of step S606 is that the network state of the cellular data network is better, the ue may perform step S607 to switch the default data channel to the cellular data channel for receiving and sending the service data, and when the detection result is that the network state of the cellular data network is not good enough, the ue may return to perform step S604 to continue to detect the network state of the wlan.
S607, switching the default data channel to the cellular data channel to receive and transmit the service data;
s608, detecting the network state of the wireless local area network through a default data channel;
it can be understood that, while the cellular data channel is used to receive and transmit service data, the network state of the wireless local area network may be detected through the default data channel, when it is detected that the network signal state information of the wireless local area network satisfies the first network signal quality condition, the network state of the wireless local area network may be considered to be better, the step S609 may be performed to switch the cellular data channel to the default data channel to receive and transmit service data, when it is detected that the network signal state information of the wireless local area network does not satisfy the first network signal quality condition, the network state of the wireless local area network may be considered to be poor, and the step S610 may be performed to detect that the network signal state information of the wireless local area network satisfies the first network signal quality condition, the network state of the wireless local area network may be considered to be better. In a specific implementation, the process of step S608 and the process of step S604 may include step S6081 to step S6083, and the detection process and the data channel switching condition may refer to the related description in step S202, which is not described herein again.
S609, switching the cellular data channel into a default data channel to receive and transmit service data;
s610, not using the default data channel, and forcibly using the standby data channel to receive and transmit the service data;
s611, continuously monitoring a source IP of the service data transmitted and received by the default data channel;
it can be understood that, in the case that it is determined in step S603 that the default data channel is currently accessed to the cellular data network, the user terminal may determine that the network to which the default data channel is currently accessed is the wireless local area network or the cellular data network by detecting a source IP of data sent outside through the default data channel, and specific implementation processes of step S611 and step S612 may refer to relevant descriptions in step S501, which is not described herein again.
S612, judging whether the source IP is switched to the exit route of the wireless local area network.
In the embodiment of the invention, under the condition that a first data channel of a user terminal is accessed to a wireless local area network currently, network signal state information of the wireless local area network is detected through the first data channel, when the network signal state information of the wireless local area network is detected not to meet a first network signal quality condition, service data is transmitted and received through a second data channel of the user terminal, wherein the second data channel is accessed to a cellular data network, and when the network signal state information of the wireless local area network is detected to meet the first network signal quality condition, the service data is transmitted and received through the first data channel. By analyzing the state information of the current connection network signal, the receiving and sending channels of the service data are automatically converted according to the state information of the network signal, the network conversion efficiency is improved, and the network communication quality during network conversion is further improved; under the condition that the network signal state information of the wireless local area network is determined not to meet the first network signal quality condition, and when the network signal state information of the cellular data network is further determined to meet the second network signal quality condition, service data is received and transmitted through a second data channel, so that the reliability of network conversion is improved; in the process of receiving and sending service data based on the second data channel, whether the wireless local area network reaches a better state is detected at any time, and excessive consumption of data flow is avoided when the signal state of the wireless local area network is better; when a wireless local area network is newly accessed, the newly accessed wireless local area network is not used for receiving and sending service data, but the cellular data network is used for ensuring the continuation of the service data, and the wireless local area network is switched to the wireless local area network for receiving and sending the data under the condition of ensuring the good network quality of the wireless local area network, so that the interruption of receiving and sending the service data caused by the fact that the access network is unavailable or unstable is avoided.
A user terminal according to an embodiment of the present invention will be described in detail with reference to fig. 8 to 12. It should be noted that, the user terminal shown in fig. 8-12 is used for executing the method of the embodiment shown in fig. 1-7 of the present invention, and for convenience of description, only the portion related to the embodiment of the present invention is shown, and details of the specific technology are not disclosed, please refer to the embodiment shown in fig. 1-7 of the present invention.
Please refer to fig. 8, which provides a schematic structural diagram of a user terminal according to an embodiment of the present invention. As shown in fig. 8, the user terminal 1 according to the embodiment of the present invention may include: a first information detection unit 11, a first channel conversion unit 12, and a second channel conversion unit 13.
A first information detecting unit 11, configured to detect network signal status information of a wireless local area network through a first data channel of a user terminal when the first data channel is currently accessed to the wireless local area network;
in a specific implementation, a network architecture for implementing network optimization according to an embodiment of the present invention may be as shown in fig. 1, where a user terminal 2 is connected to a wireless local area network 3 and a cellular data network connection 4 through a first data channel and a second data channel, respectively, and it is understood that the wireless local area network WLAN may be a network that transmits data, voice and video signals over the air by using wireless technology, for example, a Wi-Fi network. The first data channel may be a system default network data channel of the user terminal. The cellular data network may comprise a 2G, 3G, 4G, LTE network, 5G, etc. mobile data network.
In the case that the first data channel of the user terminal 1 is currently accessed to the wireless local area network, the first information detecting unit 11 may detect the network signal status information of the wireless local area network through the first data channel. Optionally, the first information detecting unit 11 may send a data probe packet to an access device (e.g., a router) of the wireless local area network through the first data channel, and detect network signal state information of the wireless local area network according to a feedback message for the data probe packet returned by the access device of the wireless local area network, where the network signal state information may be any one or more of transmission delay, transmission delay variance, transmission rate, transmission bandwidth, throughput, delay-bandwidth product, and bandwidth utilization.
In an alternative embodiment, the first data Channel may be a Default Channel that is adopted by the user terminal by Default, and the first data Channel preferentially connects to a connectable wireless local area network when detecting that the connectable wireless local area network exists, and connects to the cellular data network when the connectable local area network does not exist. The second data Channel may be a Backup data Channel of the ue, and specifically may allocate a special Socket to the ue for always connecting to the cellular data network.
A first channel switching unit 12, configured to receive and transmit service data through a second data channel of the ue when it is detected that the network signal status information of the wlan does not satisfy a first network signal quality condition;
in a specific implementation, when the first channel switching unit 12 detects that the network signal state information of the wireless local area network does not satisfy the first network signal quality condition, the first channel switching unit may send and receive service data through the second data channel of the user terminal, and it is understood that the first network signal quality condition may include at least one first quality condition threshold, where the first quality condition threshold may be a threshold for evaluating the quality of the network signal state information of the wireless local area network, and may be, for example, at least one of a transmission delay threshold, a transmission delay variance threshold, a rate threshold, a bandwidth threshold, a throughput threshold, a delay-bandwidth product threshold, and a bandwidth utilization threshold.
In this embodiment of the present invention, when the state information value corresponding to the network signal state information of the wireless lan does not satisfy the first quality condition threshold (for example, when the network signal state information is required to be smaller than the first quality condition threshold, the obtained network signal state information is larger than the first quality condition threshold, and it may be considered that the network signal state information of the wireless lan does not satisfy the first network signal quality condition), that is, the current network signal state of the wireless lan is not good enough.
In this embodiment of the present invention, the second data channel may access a cellular data network, for example, a 4G network, and the service data may be various types of multimedia data, for example, data such as audio, video, or text.
A second channel switching unit 13, configured to receive and transmit service data through the first data channel when it is detected that the network signal state information of the wireless local area network satisfies the first network signal quality condition;
in a specific implementation, when the first channel switching unit 12 detects that the network signal status information of the wireless lan satisfies the first network signal quality condition (for example, when the required network signal status information is smaller than a first quality condition threshold, it is determined that the network signal status information is smaller than the first quality condition threshold), that is, when the network status of the wireless lan is better, the second channel switching unit 13 may receive and transmit the service data through the first data channel.
In the embodiment of the invention, under the condition that a first data channel of a user terminal is accessed to a wireless local area network currently, network signal state information of the wireless local area network is detected through the first data channel, when the network signal state information of the wireless local area network is detected not to meet a first network signal quality condition, service data is transmitted and received through a second data channel of the user terminal, wherein the second data channel is accessed to a cellular data network, and when the network signal state information of the wireless local area network is detected to meet the first network signal quality condition, the service data is transmitted and received through the first data channel. By analyzing the current connection network signal state information, the receiving and sending channels of the service data are automatically converted according to the network signal state information, the network conversion efficiency is improved, and the network communication quality during network conversion is further improved.
Referring to fig. 9, a schematic structural diagram of another ue is provided in the embodiment of the present invention. As shown in fig. 9, the user terminal 1 according to the embodiment of the present invention may include: a first information detection unit 11, a first channel conversion unit 12, a second channel conversion unit 13, a third channel conversion unit 14, a second information detection unit 15, a fourth channel conversion unit 16, a first threshold determination unit 17, and a second threshold determination unit 18.
A first information detecting unit 11, configured to detect network signal status information of a wireless local area network through a first data channel of a user terminal when the first data channel is currently accessed to the wireless local area network;
in a specific implementation, a network architecture for implementing network optimization according to an embodiment of the present invention may be as shown in fig. 1, where a user terminal 2 is connected to a wireless local area network 3 and a cellular data network 4 through a first data channel and a second data channel, respectively, and it is understood that the wireless local area network WLAN may be a network that transmits data, voice and video signals over the air by using wireless technology, for example, a Wi-Fi network. The first data channel may be a system default network data channel of the user terminal. The cellular data network may comprise a 2G, 3G, 4G, LTE network, 5G, etc. mobile data network.
In an alternative embodiment, the first data Channel may be a Default Channel that is adopted by the user terminal by Default, and the first data Channel preferentially connects to a connectable wireless local area network when detecting that the connectable wireless local area network exists, and connects to the cellular data network when the connectable local area network does not exist. The second data Channel may be a Backup data Channel of the ue, and specifically may allocate a special Socket to the ue for always connecting to the cellular data network.
It can be understood that, before determining the data channel for transceiving the service data, the user terminal 1 may detect a network type currently accessed by the first data channel, where the network type may include a wireless local area network and a cellular data network, and in a case that the first data channel is currently accessed by the wireless local area network, the process corresponding to the first information detecting unit 11 is continuously performed.
In a specific implementation, when it is detected that a first data channel of the user equipment is currently accessed to a wireless local area network, the first information detecting unit 11 may detect network signal status information of the wireless local area network through the first data channel. It is understood that the network signal status information of the wireless local area network includes: any one or more of transmission delay, transmission delay variance, transmission rate, transmission bandwidth, throughput, delay-bandwidth product, and bandwidth utilization.
In an optional embodiment, the first information detecting unit 11 may send a data probe packet to an access device (e.g., a router) of the wireless local area network based on a preset time interval and using the first data channel, and determine network signal status information of the wireless local area network according to a received feedback message, where the feedback message is a message returned by the access device of the wireless local area network according to the data probe packet. It can be understood that the preset time interval may be any set smaller time interval, for example, 1s or 2s, the data probe packet may be any data packet, and after receiving the data probe packet, the access device of the wireless local area network may return a feedback message, that is, data reception confirmation information, to the user terminal 1, so as to inform the user terminal 1 that the data probe packet is successfully sent.
Optionally, when the network signal status information of the wireless lan does not satisfy the first network signal quality condition, a process corresponding to the second information detecting unit 15 may be performed, and when the network signal status information of the wireless lan satisfies the first network signal quality condition, a process corresponding to the second channel switching unit 13 may be performed.
A second information detecting unit 15, configured to detect network signal status information of the cellular data network through the second data channel when detecting that the network signal status information of the wireless local area network does not satisfy the first network signal quality condition;
in a specific implementation, when the second information detecting unit 15 detects that the network signal status information of the wireless local area network does not satisfy the first network signal quality condition, the network signal status information of the cellular data network may be detected through the second data channel. It is to be understood that the first network signal quality condition may include at least one first quality condition threshold, and the first quality condition threshold may be a threshold for evaluating the quality of the network signal status information of the wireless local area network, such as at least one of a transmission delay threshold, a transmission delay variance threshold, a rate threshold, a bandwidth threshold, a throughput threshold, a delay bandwidth product threshold, and a bandwidth utilization threshold, and the second data channel may access the cellular data network.
In an optional embodiment of the present invention, the user terminal 1 may continuously send RTT detection packets to the access device of the wireless lan through the first data Channel, i.e., the data Channel Default Channel, at intervals of 2s, to obtain a group of RTT discrete data, and specifically record 5 times of obtained RTT data, calculate a mean value and a variance of the 5 times of obtained RTT data, and finally determine whether the network signal status information of the wireless lan meets a transmission delay threshold and a transmission delay variance threshold in the first network signal quality condition by comparing a relationship between the mean value and the variance of the RTT data and a preset RTT value and variance.
It can be understood that if the transmission delay of the wireless local area network reaches the transmission delay threshold or the transmission delay variance of the wireless local area network reaches (can be understood to be greater than or equal to) the transmission delay variance threshold, the network signal state information of the wireless local area network does not satisfy the first network signal quality condition. For example, if the transmission delay of the wireless local area network is 1s and the transmission delay threshold is 0.9s, the transmission delay reaches the transmission delay threshold, and it may be determined that the network signal state information of the wireless local area network does not satisfy the first network signal quality condition.
Alternatively, when the user terminal 1 detects that the transmission rate of the wireless local area network reaches (may be understood to be less than or equal to) a rate threshold, or the transmission bandwidth reaches (may be understood to be greater than or equal to) a credit threshold, or the delay bandwidth product reaches (may be understood to be greater than or equal to) a delay bandwidth product threshold, or the bandwidth utilization reaches (may be understood to be less than or equal to) a bandwidth utilization threshold, it may be determined that the network signal status information of the wireless local area network does not satisfy the first network signal quality condition. For example, the network signal status information of the wireless local area network may be determined not to satisfy the first network signal quality condition when any of the following conditions is satisfied: the transmission rate of the wireless local area network is 100MB/S, and the rate threshold value is 150 MB/S; or the transmission bandwidth of the wireless local area network is 200M, and the bandwidth threshold is 150M; or the time delay bandwidth product of the wireless local area network is 105bit/s, and the threshold value of the time delay bandwidth product is 100 bit/s; or the bandwidth utilization is 80% and the bandwidth utilization threshold is 85%.
It is to be understood that, before the implementation of the embodiment of the present invention, the first threshold determining unit 17 may determine the first quality condition threshold of the first network signal quality condition according to the data type of the service data to be transceived when the current network of the network to which the first data channel is currently accessed is a wireless local area network. The service data may be various types of multimedia data, such as audio, video, or text data. Optionally, when the service data is video data or instant fighting game data, a better network signal is needed to realize stable transceiving of the video data, so that the determined first quality condition threshold is larger, and optionally, when the service data is text character data, non-fighting game data, or the like, the service data can be transceived without high network signal quality requirements, so that the determined first quality condition threshold is smaller. The first quality condition threshold of the first network signal quality condition may be determined according to the data type of the service data to be received and transmitted by presetting the first quality condition threshold corresponding to the different types of service data.
In this embodiment of the present invention, when the network signal status information of the wireless local area network needs to be smaller than the first quality condition threshold, but the detected network signal status is larger than the first quality condition threshold, it may be considered that the network signal status information of the wireless local area network does not satisfy the first network signal quality condition, that is, the current network signal status of the wireless local area network is not good enough. When the network signal status information of the wireless local area network does not satisfy the first network signal quality condition, the second information detecting unit 15 may detect the network signal status information of the cellular data network through the second data channel, and determine whether to transceive the service data through the second data channel.
In an optional embodiment, the second information detecting unit 15 may send a data probe packet to the access device of the cellular data network by using the second data channel, and determine the network signal state information of the cellular data network according to a received feedback message, where the feedback message is a message returned by the access device of the cellular data network according to the data probe packet. It is understood that the network signal status information of the cellular data network comprises: any one or more of transmission delay, transmission delay variance, transmission rate, transmission bandwidth, throughput, and delay-bandwidth product.
A first channel switching unit 12, configured to receive and transmit service data through a second data channel of the user terminal when it is detected that the network signal state information of the cellular data network meets a second network signal quality condition;
in a specific implementation, when the second information detecting unit 15 detects that the network signal status information of the cellular data network meets the second network signal quality condition, the first channel switching unit 12 may receive and transmit the service data through the second data channel of the user terminal. It is to be appreciated that the second network signal quality condition can include at least one second quality condition threshold comprising at least one of a transmission delay threshold, a transmission delay variance threshold, a rate threshold, a bandwidth threshold, a throughput threshold, and a delay bandwidth product threshold.
It can be understood that, before the embodiment of the present invention is executed, when the current network of the network to which the first data channel is currently accessed is a cellular data network, the second threshold determining unit 18 may determine the second quality condition threshold of the second network signal quality condition according to the data type of the service data to be received and transmitted, and a specific determination method may refer to the process of determining the first instruction condition threshold in the first threshold determining unit 17, which is not described herein again.
It is to be understood that the network signal status information of the cellular data network satisfies the second network signal quality condition if the transmission delay of the cellular data network does not reach (can be understood as being less than or equal to) the transmission delay threshold. For example, if the transmission delay of the cellular data network is 0.5s and the transmission delay threshold is 1s, the transmission delay does not reach the transmission delay threshold and meets the low delay reachable condition, and it may be determined that the network signal state information of the cellular data network meets the second network signal quality condition.
In this embodiment of the present invention, when the network signal status information of the cellular data network is required to be greater than the second quality condition threshold, and the detected network signal status information is also greater than the second quality condition threshold, it may be considered that the network signal status information of the cellular data network satisfies the second network signal quality condition, that is, when the current network signal status of the cellular data network is better, the first channel switching unit 12 may receive and transmit the service data through the second data channel of the user terminal.
In an optional embodiment of the present invention, the user terminal 1 may send an RTT detection packet through the second data Channel, that is, the Backup data Channel, determine whether the Backup data Channel is reachable with low latency based on the sent RTT detection packet, and if the Backup data Channel is reachable with low latency, determine that the network signal state information of the cellular data network satisfies a transmission latency threshold in the second network signal quality condition.
In the embodiment of the invention, under the condition that the network signal state information of the wireless local area network is determined not to meet the first network signal quality condition, when the network signal state information of the cellular data network is further determined to meet the second network signal quality condition, the service data is transmitted and received through the second data channel, and the reliability of network switching is improved.
A third channel switching unit 14, configured to detect network signal status information of the wireless local area network through the first data channel in a process of transceiving service data through a second data channel of the user terminal, and switch to transceiving service data through the first data channel when it is detected that the network signal status information of the wireless local area network meets the first network signal quality condition;
it can be understood that, when the first channel switching unit 12 detects that the network signal status information of the wireless local area network does not satisfy the first network signal quality condition and the network signal status information of the cellular data network satisfies the second network signal quality condition, the second data channel of the user terminal is used for transceiving the service data, during the process that the first channel switching unit employs the second data channel for transceiving the service data, the third channel switching unit 14 can detect the network signal status information of the wireless local area network at any time through the first data channel, and when it detects that the network signal status information of the wireless local area network satisfies the first network signal quality condition, it can switch to transceiving the service data through the first data channel, that is, when the network status of the wireless local area network is good, the transceiving of the service data can be switched from the second data channel to the first data channel, and the wireless local area network can be continuously used.
In the embodiment of the invention, in the process of receiving and transmitting the service data based on the second data channel, whether the wireless local area network reaches a better state is detected at any time, so that excessive consumption of data flow is avoided when the signal state of the wireless local area network is better.
A second channel switching unit 13, configured to receive and transmit service data through the first data channel when it is detected that the network signal state information of the wireless local area network satisfies the first network signal quality condition;
in a specific implementation, when the first channel switching unit 12 detects that the network signal status information of the wireless lan satisfies the first network signal quality condition (for example, when the network signal status information is smaller than a first quality condition threshold, the obtained network signal status information is smaller than the first quality condition threshold), that is, when the network status of the wireless lan is better, the second channel switching unit 13 may receive and transmit the service data through the first data channel.
In a specific implementation manner of the embodiment of the present invention, as shown in fig. 10, when the network signal state information of the wireless local area network is transmission delay and transmission delay variance, the first information detecting unit 11 may include:
a first delay detecting subunit 111, configured to detect a round-trip transmission delay from sending the data probe packet to receiving a feedback message returned by the access device of the wireless local area network;
in a specific implementation, when the network signal state information of the wireless local area network is transmission delay or transmission delay variance, the first delay detecting subunit 111 may detect a round-trip transmission delay from sending the data probe packet to receiving a feedback message returned by the access device of the wireless local area network, where the round-trip transmission delay may indicate a time period from sending the data probe packet to receiving the feedback message by the user terminal, that is, a round-trip time of service data between the user terminal and the access device of the wireless local area network.
A first information detection subunit 112, configured to determine the transmission delay or the transmission delay variance according to the round-trip transmission delay obtained through at least two detections;
it is to be understood that the first delay detecting subunit 111 may obtain the round trip transmission delay obtained by at least two detections, for example, the first delay detecting subunit 111 obtains the round trip transmission delay every 2s for 5 times, and the first information detecting subunit 112 may obtain a delay mean and a delay variance of the round trip transmission delay obtained by 5 times respectively. It is understood that the delay mean and the delay variance may represent network signal status information of the currently accessed wireless local area network.
Further, the first information detecting subunit 112 may determine the delay mean as network signal state information of transmission delay in the network signal state information of the wireless local area network, or may determine the delay variance as network signal state information of transmission delay variance in the network signal state information of the wireless local area network.
In a specific implementation manner of the embodiment of the present invention, as shown in fig. 11, when the network signal status information of the cellular data network is a transmission delay, the second information detecting unit 15 may include:
a second delay detection subunit 151, configured to detect a round-trip transmission delay from sending the data probe packet to receiving a feedback message returned by the access device of the cellular data network;
in a specific implementation, when the network signal status information of the cellular data network is transmission delay, the second delay detection subunit 151 may detect a round-trip transmission delay from sending the data probe packet to receiving a feedback message returned by the access device of the cellular data network, where the round-trip transmission delay may indicate a time period from sending the data probe packet to receiving the feedback message by the second delay detection subunit 151, that is, a round-trip time of service data between the user terminal 1 and the access device of the cellular data network.
A second information detection subunit 152, configured to analyze round-trip transmission delay obtained by at least two detections, and determine the transmission delay;
in a specific implementation, the second information detecting subunit 152 may obtain the maximum transmission delay of the round-trip transmission delays obtained through at least two detections, for example, the second delay detecting subunit 151 obtains the data transmission delay once every 2s for 5 times in total, and the second information detecting subunit 152 may analyze and compare the 5 obtained round-trip transmission delays for the 5 times, so as to obtain the maximum transmission delay therein. It should be noted that, when the maximum transmission delay is smaller than the transmission delay threshold in the second quality condition threshold, it may be considered that the second data channel is satisfied with low delay.
Further, the second information detecting subunit 152 may determine the maximum transmission delay as the network signal state information of the transmission delay in the network signal state information of the cellular data network.
In the embodiment of the invention, under the condition that a first data channel of a user terminal is accessed to a wireless local area network currently, network signal state information of the wireless local area network is detected through the first data channel, when the network signal state information of the wireless local area network is detected not to meet a first network signal quality condition, service data is transmitted and received through a second data channel of the user terminal, wherein the second data channel is accessed to a cellular data network, and when the network signal state information of the wireless local area network is detected to meet the first network signal quality condition, the service data is transmitted and received through the first data channel. By analyzing the state information of the current connection network signal, the receiving and sending channels of the service data are automatically converted according to the state information of the network signal, the network conversion efficiency is improved, and the network communication quality during network conversion is further improved; under the condition that the network signal state information of the wireless local area network is determined not to meet the first network signal quality condition, and when the network signal state information of the cellular data network is further determined to meet the second network signal quality condition, service data is received and transmitted through a second data channel, so that the reliability of network conversion is improved; in the process of receiving and transmitting the service data based on the second data channel, whether the wireless local area network reaches a better state is detected at any time, and excessive consumption of data flow when the wireless local area network has a better signal state is avoided.
Fig. 12 is a schematic structural diagram of another ue according to an embodiment of the present invention. As shown in fig. 12, the user terminal 1 according to the embodiment of the present invention may include: a third channel conversion unit 14, a fourth channel conversion unit 16 and a network detection unit 19.
A network detecting unit 19, configured to detect, in a case that a first data channel of a user terminal is currently accessed to a cellular data network, whether a network currently accessed to the first data channel is switched from the cellular data network to a wireless local area network;
in a specific implementation, a network architecture for implementing network optimization according to an embodiment of the present invention may be as shown in fig. 1, where a user terminal 2 is connected to a wireless local area network 3 and a cellular data network 4 through a first data channel and a second data channel, respectively, and it is understood that the wireless local area network WLAN may be a network that transmits data, voice and video signals over the air by using wireless technology, for example, a Wi-Fi network. The first data channel may be a system default network data channel of the user terminal. The cellular data network may comprise a 2G, 3G, 4G, LTE network, 5G, etc. mobile data network.
In an alternative embodiment, the first data Channel may be a Default Channel adopted by the user terminal 1 by Default, and the first data Channel is preferentially connected to a connectable wireless local area network when detecting that the connectable wireless local area network exists, and is connected to the cellular data network when the connectable local area network does not exist. The second data Channel may be a Backup data Channel of the ue, and specifically may allocate a special Socket to the ue for always connecting to the cellular data network.
It will be appreciated that the user terminal 1 may detect the type of network currently accessed by the first data channel, which may include a wireless local area network and a cellular data network, before determining the data channel for transceiving traffic data. Optionally, when the first data channel is currently accessed to the cellular data network, the network detecting unit 19 may determine whether the network currently accessed to the first data channel is switched from the cellular data network to the wireless local area network by continuously monitoring a source IP for sending data to the first data channel. It is to be understood that when the source IP is switched to the egress route of Wi-Fi, it may be considered that the network currently accessed by the first data channel is switched from the cellular data network to the wireless local area network.
A fourth channel switching unit 16, configured to receive and transmit service data through a second data channel of the user terminal when it is detected that the first data channel of the user terminal is successfully accessed to the wireless local area network;
in a specific implementation, when it is detected that a first data Channel of a user terminal successfully accesses a wireless local area network, a fourth Channel switching unit 16 may use the first data Channel to receive and transmit the service data, optionally, before using the first data Channel to receive and transmit the service data, the user terminal 1 may force the service data to be received and transmitted through a second data Channel, that is, a Backup data Channel, and detect network signal state information of the wireless local area network through the first data Channel.
A third channel switching unit 14, configured to detect network signal status information of the wireless local area network through the first data channel in a process of transceiving service data through a second data channel of the user terminal, and switch to transceiving service data through the first data channel when it is detected that the network signal status information of the wireless local area network meets the first network signal quality condition;
it can be understood that, when the user terminal 1 forcibly uses the second data channel to receive and transmit the service data, the third channel switching unit 14 may detect network signal state information of the wireless local area network at any time through the first data channel, where the network signal state information of the wireless local area network includes: the user terminal may send a data probe packet to an access device (e.g., a router) of the wireless local area network through the first data channel, and detect network signal state information of the wireless local area network according to a feedback message for the data probe packet returned by the access device of the wireless local area network.
When it is detected that the network signal state information of the wireless local area network meets the first network signal quality condition, the method can switch to transceiving the service data through the first data channel, that is, when the network state of the wireless local area network is good, the transceiving of the service data can be switched from the second data channel to the first data channel, and the wireless local area network is continuously used.
In an optional embodiment of the present invention, the user terminal may continuously send an RTT (round trip delay) probe packet to the access device of the wireless lan through the first data Channel, that is, the data Channel Default Channel, at an interval of 2s, obtain a group of RTT discrete data, specifically record RTT data obtained 5 times, calculate a mean value and a variance of the RTT data obtained 5 times, and finally determine whether the network signal status information of the wireless lan meets a transmission delay threshold and a transmission delay variance threshold in the first network signal quality condition by comparing a relationship between the mean value and the variance of the RTT data and a preset RTT value and variance.
In the embodiment of the invention, when a wireless local area network is newly accessed, the newly accessed wireless local area network is not used for receiving and sending the service data, but the cellular data network is used for ensuring the continuation of the service data, and the wireless local area network is switched to the wireless local area network for receiving and sending the data under the condition of ensuring the good network quality of the wireless local area network, so that the interruption of receiving and sending of the service data caused by the wireless local area network which is actually unavailable or unstable is avoided.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, where the instructions are suitable for being loaded by a processor and executing the method steps in the embodiments shown in fig. 1 to 7, and a specific execution process may refer to specific descriptions of the embodiments shown in fig. 1 to 7, which are not described herein again.
Fig. 13 is a schematic structural diagram of another terminal according to an embodiment of the present invention. As shown in fig. 13, the terminal 1000 can include: at least one processor 1001, such as a CPU, at least one network interface 1004, a user interface 1003, memory 1005, at least one communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display) and a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a standard wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 13, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a network optimization application program.
In the terminal 1000 shown in fig. 13, the user interface 1003 is mainly used as an interface for providing input for a user, and acquiring data input by the user; the network interface 1004 is used for data communication with the user terminal; and the processor 1001 may be configured to invoke the network optimization application stored in the memory 1005 and specifically perform the following operations:
under the condition that a first data channel of a user terminal is accessed to a wireless local area network currently, detecting network signal state information of the wireless local area network through the first data channel;
when detecting that the network signal state information of the wireless local area network does not meet the first network signal quality condition, receiving and transmitting service data through a second data channel of the user terminal, wherein the second data channel is accessed to a cellular data network;
and when the network signal state information of the wireless local area network is detected to meet the first network signal quality condition, receiving and transmitting service data through the first data channel.
In one embodiment, the processor 1001 is further configured to perform the following operations:
and in the process of receiving and sending service data through a second data channel of the user terminal, detecting the network signal state information of the wireless local area network through the first data channel, and switching to receiving and sending the service data through the first data channel when detecting that the network signal state information of the wireless local area network meets the first network signal quality condition.
In one embodiment, the processor 1001 is further configured to perform the following operations before performing transceiving of traffic data through the second data channel of the user terminal:
detecting network signal status information of the cellular data network over the second data channel;
and when detecting that the network signal state information of the cellular data network meets the second network signal quality condition, receiving and transmitting service data through a second data channel of the user terminal.
In one embodiment, the processor 1001 is further configured to, in a case that it is a wireless local area network that performs the current access of the first data channel of the user terminal, before detecting the network signal status information of the wireless local area network through the first data channel:
and when detecting that the first data channel of the user terminal is successfully accessed to the wireless local area network, receiving and transmitting service data through the second data channel of the user terminal.
In an embodiment, the detecting that the first data channel of the ue successfully accesses the wlan includes:
it is detected that the first data channel of the user terminal is handed over from accessing the cellular data network to accessing the wireless local area network.
In one embodiment, the network signal status information of the wireless local area network comprises: transmission delay or transmission delay variance;
the first network signal quality condition comprises at least one first quality condition threshold, the first quality condition threshold comprises a transmission delay threshold or a transmission delay variance threshold, and if the transmission delay of the wireless local area network reaches the transmission delay threshold or the transmission delay variance of the wireless local area network reaches the transmission delay variance threshold, the network signal state information of the wireless local area network does not meet the first network signal quality condition.
In one embodiment, the processor 1001 is further configured to perform the following operations:
and when the current network of the network to which the first data channel is currently accessed is a wireless local area network, determining a first quality condition threshold value of the first network signal quality condition according to the data type of the service data to be received and transmitted.
In an embodiment, when the processor 1001 performs the detection of the network signal status information of the wireless local area network through the first data channel, specifically perform the following operations:
and sending a data detection packet to the access equipment of the wireless local area network by adopting the first data channel based on a preset time interval, and determining the network signal state information of the wireless local area network according to the received feedback message, wherein the feedback message is the message returned by the access equipment of the wireless local area network according to the data detection packet.
In one embodiment, the network signal status information of the wireless local area network includes a transmission delay or a transmission delay variance, and the processor 1001 specifically performs the following operations when determining the network signal status information of the wireless local area network according to the received feedback message:
detecting the round-trip transmission time delay from the sending of the data detection packet to the receiving of a feedback message returned by the access equipment of the wireless local area network;
and determining the transmission delay or the transmission delay variance according to the round-trip transmission delay obtained by at least two detections.
In one embodiment, the network signal status information of the cellular data network comprises: any one or more of transmission delay, transmission delay variance, transmission rate, transmission bandwidth, throughput, and delay-bandwidth product;
the second network signal quality condition comprises at least one second quality condition threshold, the second quality condition threshold comprises a transmission delay threshold, and if the transmission delay of the cellular data network does not reach the transmission delay threshold, the network signal state information of the cellular data network meets the second network signal quality condition.
In one embodiment, the processor 1001 is further configured to perform the following operations:
and when the current network of the network to which the first data channel is currently accessed is a cellular data network, determining a second quality condition threshold value of the second network signal quality condition according to the data type of the service data to be transmitted and received.
In one embodiment, the processor 1001, when performing the detection of the network signal status information of the cellular data network through the second data channel, specifically performs the following operations:
and sending a data detection packet to the access equipment of the cellular data network by adopting the second data channel based on a preset time interval, and determining the network signal state information of the cellular data network according to the received feedback message, wherein the feedback message is a message returned by the access equipment of the cellular data network according to the data detection packet.
In an embodiment, the network signal status information of the cellular data network is transmission delay, and when the processor 1001 determines the network signal status information of the cellular data network according to the received feedback message, it specifically performs the following operations:
detecting a round trip transmission delay from sending the data probe packet to receiving a feedback message returned by an access device of the cellular data network;
and analyzing the round-trip transmission delay obtained by at least two detections to determine the transmission delay.
In the embodiment of the invention, under the condition that a first data channel of a user terminal is accessed to a wireless local area network currently, network signal state information of the wireless local area network is detected through the first data channel, when the network signal state information of the wireless local area network is detected not to meet a first network signal quality condition, service data is transmitted and received through a second data channel of the user terminal, wherein the second data channel is accessed to a cellular data network, and when the network signal state information of the wireless local area network is detected to meet the first network signal quality condition, the service data is transmitted and received through the first data channel. By analyzing the state information of the current connection network signal, the receiving and sending channels of the service data are automatically converted according to the state information of the network signal, the network conversion efficiency is improved, and the network communication quality during network conversion is further improved; under the condition that the network signal state information of the wireless local area network is determined not to meet the first network signal quality condition, and when the network signal state information of the cellular data network is further determined to meet the second network signal quality condition, service data is received and transmitted through a second data channel, so that the reliability of network conversion is improved; in the process of receiving and sending service data based on the second data channel, whether the wireless local area network reaches a better state is detected at any time, and excessive consumption of data flow is avoided when the signal state of the wireless local area network is better; when a wireless local area network is newly accessed, the newly accessed wireless local area network is not used for receiving and sending service data, but the cellular data network is used for ensuring the continuation of the service data, and the wireless local area network is switched to the wireless local area network for receiving and sending the data under the condition of ensuring the good network quality of the wireless local area network, so that the interruption of receiving and sending the service data caused by the fact that the access network is unavailable or unstable is avoided.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (15)

1. A method for network optimization, comprising:
initializing a port number of a forced binding cellular data network outlet as a second data channel;
detecting network signal state information of a wireless local area network through a first data channel of a user terminal under the condition that the first data channel is accessed to the wireless local area network currently, wherein the first data channel is a default channel which is preferentially connected to the detected connectable wireless local area network, and is connected to a cellular data network when no connectable wireless local area network exists;
detecting network signal state information of the cellular data network through the second data channel when detecting that the network signal state information of the wireless local area network does not satisfy a first network signal quality condition;
when detecting that the network signal state information of the cellular data network meets a second network signal quality condition, transceiving service data through a second data channel of the user terminal, wherein the second network signal quality condition comprises at least one second quality condition threshold, and the second quality condition threshold is determined according to the data type of the service data to be transceived;
and when the network signal state information of the wireless local area network is detected to meet the first network signal quality condition, receiving and transmitting service data through the first data channel.
2. The method for network optimization of claim 1, wherein the method further comprises:
and in the process of receiving and sending service data through a second data channel of the user terminal, detecting the network signal state information of the wireless local area network through the first data channel, and switching to receiving and sending the service data through the first data channel when detecting that the network signal state information of the wireless local area network meets the first network signal quality condition.
3. The network optimization method of claim 1, wherein in case that the first data channel of the user terminal is currently accessed to the wireless local area network, before detecting the network signal status information of the wireless local area network through the first data channel, the method further comprises:
and when detecting that the first data channel of the user terminal is successfully accessed to the wireless local area network, receiving and transmitting service data through the second data channel of the user terminal.
4. The network optimization method of claim 3, wherein the detecting that the first data channel of the ue successfully accesses the wlan comprises:
it is detected that the first data channel of the user terminal is handed over from accessing the cellular data network to accessing the wireless local area network.
5. The network optimization method of claim 1, wherein the network signal status information of the wireless local area network comprises: transmission delay or transmission delay variance;
the first network signal quality condition comprises at least one first quality condition threshold, the first quality condition threshold comprises a transmission delay threshold or a transmission delay variance threshold, and if the transmission delay of the wireless local area network reaches the transmission delay threshold or the transmission delay variance of the wireless local area network reaches the transmission delay variance threshold, the network signal state information of the wireless local area network does not meet the first network signal quality condition.
6. The network optimization method of claim 5, further comprising:
and when the current network of the network to which the first data channel is currently accessed is a wireless local area network, determining a first quality condition threshold value of the first network signal quality condition according to the data type of the service data to be received and transmitted.
7. The network optimization method of claim 1, wherein the detecting network signal status information of the wireless local area network through the first data channel comprises:
and sending a data detection packet to the access equipment of the wireless local area network by adopting the first data channel based on a preset time interval, and determining the network signal state information of the wireless local area network according to the received feedback message, wherein the feedback message is the message returned by the access equipment of the wireless local area network according to the data detection packet.
8. The network optimization method of claim 7, wherein the network signal status information of the wireless local area network comprises a transmission delay or a transmission delay variance;
the determining the network signal state information of the wireless local area network according to the received feedback message includes:
detecting the round-trip transmission time delay from the sending of the data detection packet to the receiving of a feedback message returned by the access equipment of the wireless local area network;
and determining the transmission delay or the transmission delay variance according to the round-trip transmission delay obtained by at least two detections.
9. The network optimization method of claim 1, wherein the network signal status information of the cellular data network comprises: a transmission delay;
the second network signal quality condition comprises at least one second quality condition threshold, the second quality condition threshold comprises a transmission delay threshold, and if the transmission delay of the cellular data network does not reach the transmission delay threshold, the network signal state information of the cellular data network meets the second network signal quality condition.
10. The network optimization method of claim 9, further comprising:
and when the current network of the network to which the first data channel is currently accessed is a cellular data network, determining a second quality condition threshold value of the second network signal quality condition according to the data type of the service data to be transmitted and received.
11. The network optimization method of claim 1, wherein the detecting network signal status information of the cellular data network over the second data channel comprises:
and sending a data detection packet to the access equipment of the cellular data network by adopting the second data channel based on a preset time interval, and determining the network signal state information of the cellular data network according to the received feedback message, wherein the feedback message is a message returned by the access equipment of the cellular data network according to the data detection packet.
12. The network optimization method of claim 11, wherein the network signal status information of the cellular data network is transmission delay;
said determining network signal status information of said cellular data network from received feedback messages comprises:
detecting a round trip transmission delay from sending the data probe packet to receiving a feedback message returned by an access device of the cellular data network;
and analyzing the round-trip transmission delay obtained by at least two detections to determine the transmission delay.
13. A user terminal, comprising:
a first information detection unit, configured to detect network signal status information of a wireless local area network through a first data channel of a user terminal, in a case where the first data channel is currently accessed to the wireless local area network, the first data channel being a default channel preferentially connected to a detected connectable wireless local area network, and being connected to a cellular data network when there is no connectable wireless local area network;
a second information detection unit, configured to detect, when it is detected that the network signal status information of the wireless local area network does not satisfy a first network signal quality condition, network signal status information of the cellular data network through a second data channel, where the second data channel is a port number that is initialized in advance and is used for forcibly binding an outlet of the cellular data network, and a standby channel connected to the cellular data network is always maintained;
a first channel switching unit, configured to receive and transmit service data through a second data channel of a user terminal when it is detected that network signal state information of the cellular data network satisfies a second network signal quality condition;
and the second channel switching unit is used for receiving and transmitting service data through the first data channel when detecting that the network signal state information of the wireless local area network meets the first network signal quality condition.
14. A computer storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor and to perform the steps of:
initializing a port number of a forced binding cellular data network outlet as a second data channel;
detecting network signal state information of a wireless local area network through a first data channel of a user terminal under the condition that the first data channel is accessed to the wireless local area network currently, wherein the first data channel is a default channel which is preferentially connected to the detected connectable wireless local area network, and is connected to a cellular data network when no connectable wireless local area network exists;
detecting network signal state information of the cellular data network through the second data channel when detecting that the network signal state information of the wireless local area network does not satisfy a first network signal quality condition;
when detecting that the network signal state information of the cellular data network meets a second network signal quality condition, receiving and transmitting service data through a second data channel of the user terminal, wherein the second data channel is accessed to the cellular data network;
and when the network signal state information of the wireless local area network is detected to meet the first network signal quality condition, receiving and transmitting service data through the first data channel.
15. A terminal, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the steps of:
initializing a port number of a forced binding cellular data network outlet as a second data channel;
detecting network signal state information of a wireless local area network through a first data channel of a user terminal under the condition that the first data channel is accessed to the wireless local area network currently, wherein the first data channel is a default channel which is preferentially connected to the detected connectable wireless local area network, and is connected to a cellular data network when no connectable wireless local area network exists;
detecting network signal state information of the cellular data network through the second data channel when detecting that the network signal state information of the wireless local area network does not satisfy a first network signal quality condition;
when detecting that the network signal state information of the cellular data network meets a second network signal quality condition, receiving and transmitting service data through a second data channel of the user terminal, wherein the second data channel is accessed to the cellular data network;
and when the network signal state information of the wireless local area network is detected to meet the first network signal quality condition, receiving and transmitting service data through the first data channel.
CN201711168847.0A 2017-11-21 2017-11-21 Network optimization method, terminal and storage medium Active CN109819476B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711168847.0A CN109819476B (en) 2017-11-21 2017-11-21 Network optimization method, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711168847.0A CN109819476B (en) 2017-11-21 2017-11-21 Network optimization method, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN109819476A CN109819476A (en) 2019-05-28
CN109819476B true CN109819476B (en) 2021-11-05

Family

ID=66600665

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711168847.0A Active CN109819476B (en) 2017-11-21 2017-11-21 Network optimization method, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109819476B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110290595B (en) * 2019-06-28 2023-02-21 南昌黑鲨科技有限公司 Network connection control method, system, intelligent terminal, and computer-readable storage medium
CN110267315B (en) * 2019-06-28 2021-03-09 南昌黑鲨科技有限公司 Network connection control method, system, intelligent terminal and computer-readable storage medium
CN110536367A (en) * 2019-08-29 2019-12-03 宇龙计算机通信科技(深圳)有限公司 A kind of method for switching network, device, storage medium and terminal
CN111314163A (en) * 2019-12-03 2020-06-19 深信服科技股份有限公司 Data packet transmission method and system
CN111689314B (en) * 2020-05-14 2023-09-19 拉扎斯网络科技(上海)有限公司 Elevator control system, elevator control method and device
CN111885644B (en) * 2020-06-16 2022-09-30 太原市高远时代科技有限公司 Automatic switching method for wired network and wireless network
CN112333073B (en) * 2020-09-04 2023-07-25 深圳Tcl新技术有限公司 Network acceleration method, system, device and readable storage medium for gateway device
CN113825170A (en) * 2020-11-24 2021-12-21 北京沃东天骏信息技术有限公司 Method and apparatus for determining network channel
CN112752284B (en) * 2020-12-30 2022-11-04 惠州Tcl移动通信有限公司 Application network optimization method, device, equipment and medium under double WIFI
CN115226168B (en) * 2021-04-16 2024-10-11 华为技术有限公司 Working mode adjustment method, device and storage medium
CN115250481B (en) * 2021-04-25 2024-08-23 中国联合网络通信集团有限公司 Method, terminal and storage medium for automatically adapting network according to service requirements
CN113543294B (en) * 2021-07-14 2024-10-18 东莞市小精灵教育软件有限公司 Communication control method of intelligent terminal, intelligent terminal and medium
CN116614848A (en) * 2021-07-30 2023-08-18 荣耀终端有限公司 Network link switching method based on electronic equipment position and electronic equipment
CN114679443A (en) * 2022-03-03 2022-06-28 北京百度网讯科技有限公司 A method, device, electronic device and storage medium for downloading video data
CN115209503A (en) * 2022-08-16 2022-10-18 Oppo广东移动通信有限公司 Method and device for realizing switching between networks and electronic equipment
CN115442873A (en) * 2022-08-31 2022-12-06 联想(北京)有限公司 A control method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102238682A (en) * 2011-07-18 2011-11-09 南京邮电大学 Heterogeneous-convergence-network-based network selection method
CN102497659A (en) * 2011-12-05 2012-06-13 中国电信股份有限公司 Method and system for network selection under dual-network coverage, and dual-mode terminal
CN102917406A (en) * 2012-08-02 2013-02-06 华为技术有限公司 Data flow shunting method and equipment
CN103546933A (en) * 2013-10-22 2014-01-29 惠州Tcl移动通信有限公司 Method and system for intelligently switching network connection
CN105472678A (en) * 2014-07-31 2016-04-06 腾讯科技(深圳)有限公司 Wireless network switching method, wireless network switching device and terminal equipment
CN105554831A (en) * 2016-01-28 2016-05-04 努比亚技术有限公司 Network switching device and method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8130718B2 (en) * 2004-12-09 2012-03-06 Interdigital Technology Corporation Method and system for interworking of cellular networks and wireless local area networks
US8750245B2 (en) * 2010-02-26 2014-06-10 Blackberry Limited Methods and apparatus for use in initiating vertical handover based on comparative evaluation of WLAN and WWAN signal qualities

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102238682A (en) * 2011-07-18 2011-11-09 南京邮电大学 Heterogeneous-convergence-network-based network selection method
CN102497659A (en) * 2011-12-05 2012-06-13 中国电信股份有限公司 Method and system for network selection under dual-network coverage, and dual-mode terminal
CN102917406A (en) * 2012-08-02 2013-02-06 华为技术有限公司 Data flow shunting method and equipment
CN103546933A (en) * 2013-10-22 2014-01-29 惠州Tcl移动通信有限公司 Method and system for intelligently switching network connection
CN105472678A (en) * 2014-07-31 2016-04-06 腾讯科技(深圳)有限公司 Wireless network switching method, wireless network switching device and terminal equipment
CN105554831A (en) * 2016-01-28 2016-05-04 努比亚技术有限公司 Network switching device and method

Also Published As

Publication number Publication date
CN109819476A (en) 2019-05-28

Similar Documents

Publication Publication Date Title
CN109819476B (en) Network optimization method, terminal and storage medium
KR102278510B1 (en) Apparatus and method for serving voice in a wireless network
US9014038B2 (en) Intelligent multi-streaming for enhancing or avoiding dropped and interrupted communication sessions
US8254905B2 (en) Service monitoring and disconnection notification in a wireless gateway device
EP2584757B1 (en) Method, apparatus, and system for carrying out multimedia service in wireless local area network
CN107211158B (en) Method and apparatus for controlling screen sharing among multiple terminals, and recording medium
US8879531B2 (en) Mobile router capable of automatically detecting network connection mode and performing network connection setting, and method thereof
US10492118B2 (en) Apparatus and method for supporting data transmission service over multiple networks
EP2941060B1 (en) Network access method, device, and system
JP2018509790A (en) Redundant link for reliable communication
CN111629452A (en) Data transmission control method and device, storage medium and electronic equipment
US11159978B2 (en) Adaptive multi-link control
WO2016165235A1 (en) Wireless network connection method, device and terminal
CN111830844A (en) Intelligent equipment control method and device and intelligent household control panel
CN108712778B (en) Channel selection method and related product
CN112383948A (en) Data transmission method, device, storage medium and electronic equipment
US20160261483A1 (en) Seamless Session Handover
CN117395715A (en) Multilink data transmission method, device, equipment, storage medium and product
US20160295301A1 (en) Communication protocol control method and device in smart tv apparatus
WO2024002114A1 (en) Communication method and related device
CN114339869A (en) Network management method, device, electronic equipment and storage medium
US20050169294A1 (en) Dynamic network load balancing method and system
CN102984158A (en) VOIP network switching method, system and device
CN102984785A (en) Transmitting data over multiple networks
US20190253961A1 (en) Methods and devices for selecting a communication interface

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