CN112333800A - Network switching method and device, storage medium and electronic equipment - Google Patents

Network switching method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN112333800A
CN112333800A CN202011270032.5A CN202011270032A CN112333800A CN 112333800 A CN112333800 A CN 112333800A CN 202011270032 A CN202011270032 A CN 202011270032A CN 112333800 A CN112333800 A CN 112333800A
Authority
CN
China
Prior art keywords
network
tcp
data transmission
sub
network performance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011270032.5A
Other languages
Chinese (zh)
Inventor
刘伟
彭昊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202011270032.5A priority Critical patent/CN112333800A/en
Publication of CN112333800A publication Critical patent/CN112333800A/en
Priority to PCT/CN2021/117699 priority patent/WO2022100255A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/16Performing reselection for specific purposes
    • H04W36/18Performing reselection for specific purposes for allowing seamless reselection, e.g. soft reselection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W80/00Wireless network protocols or protocol adaptations to wireless operation
    • H04W80/08Upper layer protocols

Landscapes

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

Abstract

The application discloses a network switching method, a network switching device, a storage medium and electronic equipment. The method comprises the following steps: establishing a first multi-path transmission control protocol (MPTCP) connection of the electronic equipment and the network equipment under a first network, wherein the first MPTCP connection comprises one or more first TCP subflows; transmitting data through the one or more first TCP sub-streams; if the network performance parameter of the first network meets a first condition, establishing a second MPTCP connection between the electronic device and the network device in a second network, where the second MPTCP connection includes one or more second TCP subflows, and the network performance parameter is used to indicate validity and/or reliability of data transmission; and performing data transmission by adopting the one or more second TCP sub-flows. The method and the device can realize seamless network switching.

Description

Network switching method and device, storage medium and electronic equipment
Technical Field
The present application belongs to the technical field of electronic devices, and in particular, to a network switching method, apparatus, storage medium, and electronic device.
Background
With the development of the technology, the functions of the communication module and the data transmission configured on the electronic device are more and more powerful. Based on this, the user often uses the electronic device to perform data communication with an external device, such as the user uses the electronic device to perform communication with a gateway or a server through WiFi. However, in the related art, the electronic device cannot implement seamless network handover during WiFi roaming handover.
Disclosure of Invention
The embodiment of the application provides a network switching method, a network switching device, a storage medium and an electronic device, which can realize seamless network switching.
In a first aspect, an embodiment of the present application provides a network switching method, applied to an electronic device, including:
establishing a first multi-path transmission Control protocol (MPTCP) (multipath tcp) connection between the electronic device and a network device in a first network, wherein the first MPTCP connection comprises one or more first transmission Control protocol (tcp) (transmission Control protocol) subflows (subflows);
transmitting data through the one or more first TCP sub-streams;
if the network performance parameter of the first network meets a first condition, establishing a second MPTCP connection between the electronic device and the network device in a second network, where the second MPTCP connection includes one or more second TCP subflows, and the network performance parameter is used to indicate validity and/or reliability of data transmission;
and performing data transmission by adopting the one or more second TCP sub-flows.
In a second aspect, an embodiment of the present application provides a network switching apparatus, applied to an electronic device, including:
a first connection module, configured to establish a first MPTCP connection between the electronic device and a network device over a first network, where the first MPTCP connection includes one or more first TCP subflows;
a first transmission module, configured to perform data transmission through the one or more first TCP sub-streams;
a second connection module, configured to establish a second MPTCP connection between the electronic device and the network device in a second network if a network performance parameter of the first network meets a first condition, where the second MPTCP connection includes one or more second TCP subflows, and the network performance parameter is used to indicate validity and/or reliability of data transmission;
and the second transmission module is used for carrying out data transmission by adopting the one or more second TCP sub-flows.
In a third aspect, an embodiment of the present application provides a storage medium, on which a computer program is stored, and when the computer program is executed on a computer, the computer is caused to execute a flow in a network handover method provided in an embodiment of the present application.
In a fourth aspect, an embodiment of the present application further provides an electronic device, which includes a memory, a processor, and a communication module, where the processor is configured to execute a procedure in the network handover method provided in the embodiment of the present application by calling a computer program stored in the memory.
In this embodiment, the electronic device may establish, under the first network, a first MPTCP connection with the network device, where the first MPTCP connection includes one or more first TCP subflows, and may perform data transmission through the one or more first TCP subflows. When the network performance parameters of the first network meet a first condition, establishing a second MPTCP connection between the electronic device and the network device in a second network, wherein the second MPTCP connection comprises one or more second TCP subflows, and the network performance parameters are used for indicating the validity and/or reliability of data transmission; one or more second TCP sub-streams are then employed for data transmission. That is, in the embodiment of the present application, when the network performance of the first network is poor, that is, when the validity and/or reliability of data transmission of the first network is poor, the electronic device may establish the second TCP sub-stream in advance, so that when the data transmission link is switched from the first TCP sub-stream to the second TCP sub-stream, no delay is generated, and thus, an unaware switching may be implemented. Therefore, the embodiment of the application can realize seamless network switching.
Drawings
The technical solutions and advantages of the present application will become apparent from the following detailed description of specific embodiments of the present application when taken in conjunction with the accompanying drawings.
Fig. 1 is a schematic flowchart of a network handover method according to an embodiment of the present application.
Fig. 2 is another schematic flow chart of a network handover method according to an embodiment of the present application.
Fig. 3 is a schematic view of a scenario in which an electronic device transmits data to a server in a dual WiFi network according to an embodiment of the present application.
Fig. 4 is a schematic view of a scenario in which an electronic device transmits data to a server under a WiFi network and a cellular wireless communication network according to an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a network switching device according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Fig. 7 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
It can be understood that the execution subject of the embodiment of the present application may be an electronic device with a communication module, such as a smart phone or a tablet computer.
Referring to fig. 1, fig. 1 is a schematic flow chart of a network handover method according to an embodiment of the present application, where the flow chart may include:
101. a first multi-path transmission control protocol (MPTCP) connection of the electronic device and the network device is established under a first network, wherein the first MPTCP connection comprises one or more first Transmission Control Protocol (TCP) subflows.
With the development of the technology, the functions of the communication module and the data transmission configured on the electronic device are more and more powerful. Based on this, the user often uses the electronic device to perform data communication with an external device, such as the user uses the electronic device to perform communication with a gateway or a server through WiFi. However, in the related art, the electronic device cannot implement seamless network handover during WiFi roaming handover.
For example, in the related art, WiFi seamless roaming may be achieved through a redundancy technology, and by setting a wireless redundancy WiFi subsystem and a data transmission mode WiFi subsystem, where the wireless redundancy WiFi subsystem may continuously track WiFi signal strength in an effective range, and according to conditions of a roaming dynamic switching policy, smooth, automatic, and delay-free Access Point switching may be achieved, and during identity authentication and association with a new wireless Access Point (AP) by the redundancy mode WiFi subsystem, data collected by a mobile WiFi station is transmitted to a workstation by the data transmission mode WiFi subsystem through a currently associated old wireless AP.
And adopting an advanced dynamic switching strategy, initially setting a lowest limit of Received Signal Strength and a lowest limit X of a Signal Strength difference value between the new wireless AP and the current associated wireless AP, and starting roaming switching if a Received Signal Strength Indication (RSSI) of the workstation and the current associated wireless AP is smaller than the lowest limit of the Received Signal Strength or the Signal Strength difference value between the new wireless AP and the current associated wireless AP is larger than the lowest limit X of the Signal Strength difference value. The scheme can provide a better solution for the industrial real-time data acquisition application of the mobile WiFi station.
However, in the WiFi switching process, the TCP flow originally established in the WiFi link needs to be reconstructed, and the reconstructed delay needs at least 1 or several Round-Trip delays (rtt), which is not a seamless switching in the true sense.
For example, in the related art, for TCP, in a scenario of a dual WiFi network, a WiFi network and a WiFi2 network each have a TCP path, and if a data stream starts to be transmitted on the TCP path of the WiFi1 network, when the signal strength of the WiFi1 network becomes worse, there are two processing manners.
The first processing mode is to continue data transmission on the TCP path of the WiFi1 network, and does not establish the TCP path on the WiFi2 network, which may cause unsuccessful data transmission, and may cause problems such as packet loss, and may also cause a delay in data transmission to a network device, thereby causing a pause phenomenon in the played video data.
The second way is to cut off the data transmission of the TCP path of the WiFi1 network and then re-establish a TCP path for data transmission on the WiFi2 network, however, the re-establishment of the TCP path transmission on the WiFi2 network requires an establishment time, during which the data on the TCP path that has been sent to the WiFi1 network may not be transmitted to the network device, and the data may be lost. This lost data needs to be retransmitted over the TCP path of the WiFi2 network, which causes a delay and therefore a seamless handoff cannot be achieved.
In the embodiment of the application, a first MPTCP connection between the electronic device and the network device is established in a first network, where the first network may be a network with the best current network performance, may also be another network with good network performance, or may be a network capable of normal communication, and so on. For example, the electronic device detects that a network with the best current network performance is the first network, for example, when the signal strength of the first network is greater than a minimum signal strength threshold, it indicates that the current signal of the first network is good, and therefore the network performance is good, if the minimum signal strength threshold is-80 dBm, and when the signal strength of the first network is greater than-80 dBm, it indicates that the current signal of the first network is good, and therefore the network performance is good, then the first MPTCP connection between the electronic device and the network device is established under the first network. For example, the network device may be a device such as a gateway, server, etc. The embodiment of the present application does not limit the types of network devices. It should be noted that the first MPTCP connection includes one or more first TCP subflows (subflows).
It can be understood that MPTCP is an extended evolution of TCP, allowing both communicating parties to establish multiple TCP links for data transmission at the same time, and fully utilize multiple paths to improve throughput (aggregation) or improve reliability (redundancy).
MPTCP works much like standard TCP, but the core idea of MPTCP is to define a way to establish a connection between two hosts, rather than between two interfaces (e.g. standard TCP). In standard TCP, a connection should be established between two IP addresses. Each TCP connection is identified by a quadruplet of addresses and ports that mark the source and destination. Because of this limitation, applications can only create one TCP connection over a single connection, it can happen that while multiple connections may be established simultaneously between two hosts, only a single connection is utilized by an application at a time, whereas MPTCP allows multiple paths to be used simultaneously by the connections. For this purpose, MPTCP creates a TCP connection called a subflow on each path that needs to be used.
102. Data transmission is performed through one or more first TCP sub-streams.
For example, after a first MPTCP connection between the electronic device and the network device is established in the first network, data transmission may be performed through one or more first TCP subflows in the first MPTCP connection. That is, data may be transmitted between the electronic device and the network device, data may be transmitted from the electronic device to the network device via the one or more first TCP sub-streams, and data may be transmitted from the network device to the electronic device via the one or more first TCP sub-streams. For example, when transmitting data, the data is transmitted through one first TCP sub-stream, or the data is distributed to a plurality of first TCP sub-streams to be transmitted in parallel. Such as: for a network bandwidth of 100M, there is no difference basically in the effect of using one first TCP sub-stream for transmission or using a plurality of first TCP sub-streams for transmission, when one first TCP sub-stream is used for data transmission, the first TCP sub-stream alone occupies a bandwidth of 100M when transmitting data, when a plurality of first TCP sub-streams are used for transmission, the sum of the bandwidths occupied by each first TCP sub-stream when transmitting data is 100M bandwidth, and when a plurality of first TCP sub-streams are used for data transmission, the electronic device needs to perform data allocation and calculation additionally.
It should be noted that, preferably, one TCP sub-stream is used for data transmission, which can save the trouble of data allocation and calculation compared to using a plurality of first TCP sub-streams for data transmission.
103. And if the network performance parameters of the first network meet the first condition, establishing a second MPTCP connection between the electronic equipment and the network equipment under a second network, wherein the second MPTCP connection comprises one or more second TCP subflows, and the network performance parameters are used for indicating the effectiveness and/or reliability of data transmission.
For example, since the network performance parameters of the network are detected in real time, the network performance parameters are used to indicate the validity and/or reliability of the data transmission. If it is detected that the network performance parameter of the first network meets the first condition, and at this time, the current network performance of the first network is poor, that is, the validity and/or reliability of data transmission of the first network is poor, a second MPTCP connection between the electronic device and the network device is established in the second network, where the second MPTCP connection includes one or more second TCP subflows, so that an alternative data transmission link is established in advance before the current network performance of the first network becomes worse, that is, the second TCP subflow is established in advance on the alternative switching second network for standby, and at this time, the first TCP subflow continues to transmit data to ensure that data transmission is not interrupted.
104. One or more second TCP sub-streams are employed for data transmission.
For example, after the second MPTCP connection between the electronic device and the network device is established in the second network, because the current network performance of the first network is poor, in order to avoid unsuccessful data transmission of the first TCP sub-stream, the data transmission link may be switched to one or more second TCP sub-streams, and then one or more second TCP sub-streams are used for data transmission. That is, data may be transmitted between the electronic device and the network device, from the electronic device to the network device via the one or more second TCP sub-streams, or from the network device to the electronic device via the one or more second TCP sub-streams.
It is understood that, in the embodiment of the present application, the electronic device may establish, under the first network, a first MPTCP connection with the network device, where the first MPTCP connection includes one or more first TCP subflows through which data transmission may be performed. When the network performance parameters of the first network meet a first condition, establishing a second MPTCP connection between the electronic device and the network device in a second network, wherein the second MPTCP connection comprises one or more second TCP subflows, and the network performance parameters are used for indicating the validity and/or reliability of data transmission; one or more second TCP sub-streams are then employed for data transmission. That is, in the embodiment of the present application, when the network performance of the first network is poor, that is, when the validity and/or reliability of data transmission of the first network is poor, the electronic device may establish the second TCP sub-stream in advance, so that when the data transmission link is switched from the first TCP sub-stream to the second TCP sub-stream, no delay is generated, and thus, an unaware switching may be implemented. Therefore, the embodiment of the application can realize seamless network switching.
In an embodiment, before performing step 101, the network handover method may further include:
acquiring network performance parameters of a first network and a second network;
determining whether the first network is used for data transmission according to network performance parameters of the first network and the second network;
if so, determining that the first network is used for data transmission.
Specifically, for example, network performance parameters of the first network and network performance parameters of the second network are obtained. Wherein the network performance parameter may include at least one of: signal strength, round trip delay of sub-streams, network bandwidth, degree of network congestion, packet loss rate, rate and throughput. I.e., the network performance parameters may include any one or more of signal strength, round trip delay of sub-streams, network bandwidth, network congestion level, packet loss rate, and throughput. For example, when the signal strength is enhanced, the network performance is improved, when the round trip delay of the sub-stream is reduced, the network performance is improved, when the network bandwidth is increased, the network performance is improved, when the network congestion degree is reduced, the network performance is improved, when the packet loss rate is reduced, when the rate is increased, the network performance is improved, and when the throughput is increased, the network performance is improved.
For example, in one embodiment, the network performance parameter may include signal strength. By detecting the signal strength of the first network and the signal strength of the second network, the network performance parameters of the first network and the network performance parameters of the second network can be obtained. When the detected signal strength is stronger, the network performance of the network is better, the corresponding network performance parameter is larger, and conversely, when the detected signal strength is weaker, the network performance of the network is worse, the corresponding network performance parameter is smaller.
For example, in one embodiment, the network performance parameter may include round trip delay of the sub-streams. By detecting the round trip delay of the first TCP sub-flow of the first network and the round trip delay of the second TCP sub-flow of the second network, the network performance parameters of the first network and the network performance parameters of the second network can be obtained. When the round-trip delay of the detected sub-flow is smaller, the network performance of the network is better, the corresponding network performance parameter is larger, and conversely, when the round-trip delay of the detected sub-flow is larger, the network performance of the network is worse, the corresponding network performance parameter is smaller.
For example, in one embodiment, the network performance parameters may include signal strength and round trip delay of the sub-streams, or the network performance parameters may include signal strength and network bandwidth, or the network performance parameters may include signal strength and network congestion degree, or the network performance parameters may include signal strength and packet loss rate, or the network performance parameters may include signal strength and throughput, or the network performance parameters may include signal strength, round trip delay of the sub-streams, and network bandwidth, or the network performance parameters may include signal strength, round trip delay of the sub-streams, and network congestion degree, or the network performance parameters may include signal strength, round trip delay of the sub-streams, and packet loss rate, or the network performance parameters may include signal strength, round trip delay of the sub-streams, and network congestion degree, The network performance parameters may include signal strength, network bandwidth, and network congestion level, or the network performance parameters may include signal strength, network bandwidth, and packet loss rate, or the network performance parameters may include signal strength, signal bandwidth, signal congestion level, and packet loss rate, or the network performance parameters may include signal strength, signal bandwidth, signal congestion level, and packet loss rate, or the network performance parameters may include signal strength, signal strength, Packet loss rate, rate and throughput, etc., and of course, the network performance parameters may also include any two, three, four, five or six of signal strength, round trip delay of sub-streams, network bandwidth, network congestion level, packet loss rate, rate and throughput, etc.
For example, after the network performance parameters of the first network and the second network are obtained, if the network performance of the first network is better than the network performance of the second network, if the signal strength of the first network is greater than the signal strength of the second network, and if the round-trip delay of the sub-stream of the first network is smaller than the round-trip delay of the sub-stream of the second network, the first network is considered as the network with the optimal current network performance, and it is determined that the first network acts on data transmission.
It should be noted that, in one embodiment, the first network is a WiFi network, and the second network may be a WiFi network or a cellular wireless communication network. When the second network is a WiFi network, a dual WiFi network is formed at this time, for example, the electronic device connects two WiFi hotspots at the same time, and the two WiFi hotspots may be hotspots in the same frequency band or in different frequency bands, for example, one WiFi hotspot is a 2.4G hotspot, and the other WiFi hotspot is a 5G hotspot. The two WiFi hotspots may be the same Service Set Identifier (SSID) or different SSIDs. The two WiFi hotspots may be the same routing device or different routing devices (e.g., home dual-band routing). By establishing two WiFi paths, the two paths can be used for surfing the internet through a policy routing and a link aggregation/distribution technology, and the network speed multiplication and the network seamless switching are realized.
The link aggregation refers to enabling the electronic device to simultaneously use two or more network ports to simultaneously surf the internet, for example, using a WiFi network and a cellular wireless communication network to perform network access while performing link aggregation on the electronic device. After link aggregation is realized, the internet access requests of the users can be intelligently distributed to different internet access interfaces through a certain algorithm.
In another embodiment, the first network is a cellular wireless communication network and the second network is a WiFi network. The cellular wireless communication network may be a 4G network, a 5G network, etc., among others. TCP sub-flows are respectively established in channels of a WiFi network and a cellular wireless communication network, data are transmitted on two data transmission links, different scheduling strategies are adopted on the TCP sub-flows to achieve different effects, a polymerization scheduling strategy is adopted to achieve high throughput, and a redundancy scheduling strategy is adopted to achieve low delay and high reliability.
Referring to fig. 2, fig. 2 is another flow chart illustrating a network handover method according to an embodiment of the present application. In fig. 2, the process may include:
201. a first MPTCP connection of the electronic device with the network device is established under the first network, the first MPTCP connection containing one or more first transmission control protocol TCP subflows.
For example, when it is determined that the network with the best network performance is the first network, that is, after it is determined that the first network is used for data transmission, a first MPTCP connection between the electronic device and the network device is established in the first network, where the first MPTCP connection includes one or more first transmission control protocol TCP subflows. The specific implementation of step 201 can refer to the embodiment of step 101, and is not described herein again.
202. Data transmission is performed through one or more first TCP sub-streams.
For example, data is transmitted via one or more first TCP subflows. The specific implementation of step 202 can refer to the embodiment of step 102, and is not described herein again.
203. And if the network performance parameters of the first network meet the first condition, establishing a second MPTCP connection between the electronic equipment and the network equipment under a second network, wherein the second MPTCP connection comprises one or more second TCP subflows, and the network performance parameters are used for indicating the effectiveness and/or reliability of data transmission.
For example, in the process of actually obtaining the network performance parameter, if the network performance parameter of the first network meets the first condition, a second MPTCP connection between the electronic device and the network device is established in the second network, where the second MPTCP connection includes one or more second TCP subflows, and the network performance parameter is used to indicate validity and/or reliability of data transmission.
It should be noted that, when the network performance parameter includes one of the following: the signal strength, round trip delay of the sub-streams, network bandwidth, network congestion degree, packet loss rate, rate and throughput, the network performance parameter satisfying the first condition may include: the network performance parameter satisfies a first preset threshold. For example, when the network performance parameter includes signal strength, the network performance parameter satisfying the first condition may include: the signal strength is less than or equal to a first preset threshold, the first preset threshold at this time is a first preset signal threshold, and when the signal strength is less than or equal to the first preset signal threshold, the network performance is poor.
For example, when the network performance parameter includes round-trip delay of a sub-flow, the network performance parameter satisfying the first condition may include: when the round-trip delay of the sub-stream is greater than or equal to the first preset delay threshold, the network performance is poor.
For example, when the network performance parameter comprises network bandwidth, the network performance parameter satisfying the first condition may comprise: the network bandwidth is less than or equal to a first preset threshold, the first preset threshold at this time is a first preset bandwidth threshold, and when the network bandwidth is less than or equal to the first preset bandwidth threshold, the network performance is poor.
For example, when the network performance parameter includes a network congestion level, the network performance parameter satisfying the first condition may include: the network congestion degree is greater than or equal to a first preset threshold, the first preset threshold at the moment is a first preset congestion threshold, and when the network congestion degree is greater than or equal to the first preset congestion threshold, the network performance is poor.
For example, when the network performance parameter includes a packet loss rate, the network performance parameter satisfying the first condition may include: the packet loss rate is greater than or equal to a first preset threshold, the first preset threshold at this time is a first preset packet loss threshold, and when the packet loss rate is greater than or equal to the first preset packet loss threshold, the network performance is poor.
For example, when the network performance parameter comprises a rate, the network performance parameter satisfying the first condition may comprise: the rate is less than or equal to a first preset threshold, the first preset threshold at this time is a first preset rate threshold, and when the rate is less than or equal to the first preset rate threshold, the network performance is poor.
For example, when the network performance parameter comprises throughput, the network performance parameter satisfying the first condition may comprise: the throughput is less than or equal to a first preset threshold, the first preset threshold at this time is a first preset throughput threshold, and when the throughput is less than or equal to the first preset throughput threshold, the network performance is poor.
It should be noted that, when the network performance parameters include at least two of the following: the signal strength, round trip delay of the sub-streams, network bandwidth, network congestion degree, packet loss rate, rate and throughput, the network performance parameter satisfying the first condition may include: the overall performance parameter, which is determined by at least two network performance parameters, satisfies a first preset threshold.
It is understood that, for example, when the network performance parameters include signal strength and round trip delay of the sub-streams, when determining the overall performance parameter according to the signal strength and the round trip delay of the sub-streams, different weights are assigned to the signal strength and the round trip delay of the sub-streams, and then according to the magnitude of the signal strength and the magnitude of the round trip delay of the sub-streams, the respective weights are combined to obtain an overall performance parameter.
For example, when the network performance parameters include signal strength and network bandwidth, when determining the overall performance parameter according to the signal strength and the network bandwidth, different weights are assigned to the signal strength and the network bandwidth, and then according to the magnitude of the signal strength and the magnitude of the network bandwidth, the respective weights are combined to obtain an overall performance parameter. The network performance parameter satisfying the first condition may include: the comprehensive performance parameter meets a first preset threshold, the comprehensive performance parameter is determined by signal intensity and network bandwidth, the first preset threshold is a first preset comprehensive performance threshold, and when the comprehensive performance parameter is smaller than or equal to the first preset comprehensive performance threshold, the network performance is poor.
For another example, when the network performance parameters include round trip delay of the sub-stream, network congestion degree and packet loss rate, and when the comprehensive performance parameters are determined according to the round trip delay of the sub-stream, the network congestion degree and the packet loss rate, different weights are assigned to the round trip delay of the sub-stream, the network congestion degree and the packet loss rate, and then according to the size of the round trip delay of the sub-stream, the size of the network congestion degree and the size of the packet loss rate, a comprehensive performance parameter can be obtained by combining the respective weights. The network performance parameter satisfying the first condition may include: the comprehensive performance parameter meets a first preset threshold, the comprehensive performance parameter is determined by the round-trip delay of the sub-flow, the network congestion degree and the packet loss rate, the first preset threshold at the moment is a first preset comprehensive performance threshold, and when the comprehensive performance parameter is larger than or equal to the first preset comprehensive performance threshold, the network performance is poor.
For another example, when the network performance parameters include signal strength, network bandwidth, rate, and throughput, and when the overall performance parameters are determined according to the signal strength, the network bandwidth, the rate, and the throughput, different weights may be assigned to the signal strength, the network bandwidth, the rate, and the throughput, and then an overall performance parameter may be obtained by combining the respective weights according to the magnitude of the signal strength, the magnitude of the network bandwidth, the magnitude of the rate, and the magnitude of the throughput. The network performance parameter satisfying the first condition may include: the comprehensive performance parameter satisfies a first preset threshold, the comprehensive performance parameter is determined by signal strength, network bandwidth, rate and throughput, the first preset threshold at the moment is a first preset comprehensive performance threshold, and when the comprehensive performance parameter is smaller than or equal to the first preset comprehensive performance threshold, the network performance is poor.
For example, when the network performance of the first network is poor, the second TCP sub-stream may be established in advance on the alternative handover second network (e.g., WiFi network) for standby by using the dual WiFi technology and MPTCP, and the first TCP sub-stream still continues to transmit data. The specific implementation of step 203 can refer to the embodiment of step 103, which is not described herein again.
204. And if the network performance parameter of the first network meets a second condition, switching the data transmission link to one or more second TCP sub-streams for data transmission.
For example, because the network performance parameters of the network are detected in real time, if it is detected that the network performance parameters of the first network meet the second condition, that is, the network performance parameters of the first network meet the second condition, it can be understood that the first network reaches the network disconnection threshold, that is, the current network performance of the first network becomes poor, at this time, the first TCP sub-stream is no longer used for data transmission, but the second TCP sub-stream that is standby on the second network link is enabled, and the data transmission link is switched to one or more second TCP sub-streams for data transmission.
It should be noted that, preferably, one second TCP sub-stream is used for data transmission, which can save the trouble of data allocation and calculation compared to using a plurality of second TCP sub-streams for data transmission. Note that, at this time, the first TCP sub-stream is not cut off, and only the first TCP sub-stream is not used for data transmission.
It should be noted that, when the network performance parameter includes one of the following: the signal strength, round trip delay of the sub-streams, network bandwidth, network congestion degree, packet loss rate, rate and throughput, the network performance parameter satisfying the second condition may include: the network performance parameter satisfies a second preset threshold. For the specific implementation, refer to the embodiment of the first condition and the first preset threshold in step 203, which is not described herein again.
It should be noted that, when the network performance parameters include at least two of the following: the signal strength, round trip delay of the sub-streams, network bandwidth, network congestion degree, packet loss rate, rate and throughput, the network performance parameter satisfying the second condition may include: the overall performance parameter, which is determined by the at least two network performance parameters, satisfies a second preset threshold. For the specific implementation, refer to the embodiment of the first condition and the first preset threshold in step 203, which is not described herein again.
It is understood that, in the embodiment of the present application, the electronic device may establish, under the first network, a first MPTCP connection with the network device, where the first MPTCP connection includes one or more first TCP subflows through which data transmission may be performed. When the network performance parameters of the first network meet a first condition, establishing a second MPTCP connection between the electronic device and the network device in a second network, wherein the second MPTCP connection comprises one or more second TCP subflows, and the network performance parameters are used for indicating the validity and/or reliability of data transmission; and if the network performance parameter of the first network meets a second condition, switching the data transmission link to one or more second TCP sub-streams for data transmission. That is, in the embodiment of the present application, the electronic device may establish the second TCP sub-stream in advance when the network performance of the first network is poor, and when the network performance of the first network is poor, no delay may be generated when the data transmission link is switched from the first TCP sub-stream to the second TCP sub-stream, so that the switching without sensing may be implemented. Therefore, the embodiment of the application can realize seamless network switching.
In one embodiment, the switching the data transmission link to the one or more second TCP sub-streams for data transmission if the network performance parameter of the first network satisfies a second condition may include:
if the network performance parameter of the first network meets a second condition, detecting the network performance parameter of the second network;
and if the network performance parameters of the second network meet a third condition, switching the data transmission link to one or more second TCP sub-streams for data transmission.
It should be noted that, when the network performance parameter includes one of the following: the signal strength, round trip delay of the sub-streams, network bandwidth, network congestion degree, packet loss rate, rate and throughput, and the network performance parameter satisfying the third condition may include: the network performance parameter satisfies a third preset threshold. For the specific implementation, refer to the embodiment of the first condition and the first preset threshold in step 203, which is not described herein again.
It should be noted that, when the network performance parameters include at least two of the following: the signal strength, round trip delay of the sub-streams, network bandwidth, network congestion degree, packet loss rate, rate and throughput, and the network performance parameter satisfying the third condition may include: the overall performance parameter, which is determined by the at least two network performance parameters, satisfies a third preset threshold. For the specific implementation, refer to the embodiment of the first condition and the first preset threshold in step 203, which is not described herein again.
For example, in the process of detecting the network performance in real time, if it is detected that the network performance parameter of the first network satisfies the second condition, and the network performance corresponding to the second condition is worse than the network performance corresponding to the first condition, that is, the current network performance of the first network is very poor, the network performance parameter of the second network needs to be detected at this time.
For example, if the network performance parameter of the second network satisfies the third condition, and the network performance corresponding to the third condition is better than the network performance corresponding to the second condition, that is, the network performance of the second network is better than the network performance of the first network, the data transmission link is switched to one or more second TCP sub-streams, and data transmission is performed through the second TCP sub-streams. Preferably, one second TCP subflow is used for data transmission, which can save the trouble of data distribution and calculation compared to using a plurality of second TCP subflows for data transmission.
It can be understood that, in the embodiment of the present application, when the network performance of the first network is poor, the electronic device may establish the second TCP sub-stream in advance in the second network, so that no delay is generated when the data transmission link is switched from the first TCP sub-stream to the second TCP sub-stream, and when both the first network and the second network are WiFi networks, the technology of combining dual WiFi and MPTCP may be utilized to implement WiFi seamless switching in the true sense of the electronic device (which may be a WiFi terminal device), thereby ensuring service unaware switching. When one of the first network and the second network is a WiFi network and the other is a cellular wireless communication network, seamless handover of the WiFi network to the cellular wireless communication network can also be achieved. Therefore, the embodiment of the application can realize seamless network switching.
Please refer to fig. 3, which is a schematic view illustrating a scenario that an electronic device transmits data to a server in a dual WiFi network according to an embodiment of the present application. In fig. 3, dual WiFi networks, i.e., a WiFi1 network and a WiFi2 network, are used.
For example, in an embodiment, whether both sides support MPTCP may be obtained between the electronic device and the gateway through a private protocol, if the electronic device and the gateway support MPTCP and the dual WiFi connection successfully enables MPTCP, an MPTCP connection is established between the electronic device and the gateway, where the MPTCP connection may include two TCP subflows, one TCP subflow is a first TCP subflow whose physical link is the electronic device, the WiFi1 network, the WiFi access device 1, and the gateway, and the other TCP subflow is a second TCP subflow whose physical link is the electronic device, the WiFi2 network, the WiFi access device 2, and the gateway.
When data transmission is performed, the electronic device may select a TCP sub-stream with the optimal network performance to transmit data to the gateway, for example, select a network with the highest signal strength, the smallest round-trip delay of the sub-stream, the largest network bandwidth, the smallest network congestion procedure, the smallest packet loss rate, the largest rate, or the largest throughput as the network with the optimal network performance. If the current network performance of the WiFi1 network is optimal, the data is transmitted to the gateway using the first TCP sub-flow, i.e. the electronic device transmits the data to the gateway via the WiFi1 network and the WiFi access device 1 in sequence. In the data transmission process, reference may be made to the embodiments in steps 101 to 104, or refer to the embodiments in steps 201 to 204, which are not described herein again. The gateway will transmit the received data to the server via the ethernet.
For another example, in another embodiment, whether both sides support MPTCP may be obtained through a private protocol between the electronic device and the server, if the electronic device and the server support MPTCP and the dual WiFi connection succeeds to enable MPTCP, an MPTCP connection is established between the electronic device and the server, where the MPTCP connection may include two TCP subflows, one TCP subflow is a first TCP subflow whose physical link is the electronic device, the WiFi1 network, the WiFi access device 1, the gateway, the ethernet and the server, and the other TCP subflow is a second TCP subflow whose physical link is the electronic device, the WiFi2 network, the WiFi access device 2, the gateway, the ethernet and the server.
When data transmission is performed, the electronic device selects a TCP sub-stream with the best network performance at present, and transmits the data to the server, for example, a network with the highest signal strength, the smallest round-trip delay of the sub-stream, the largest network bandwidth, the smallest network congestion procedure, the smallest packet loss rate, the largest rate, or the largest throughput is selected as the network with the best network performance. If the current network performance of the WiFi1 network is optimal, the first TCP sub-stream is used to transmit data to the server, that is, the electronic device transmits data to the WiFi access device 1 through the WiFi1 network, the WiFi access device 1 transmits the data to the gateway, and the gateway transmits the data to the server through the ethernet, that is, the electronic device transmits the data to the server through the WiFi1 network, the WiFi access device 1, the gateway and the ethernet in sequence, and finally transmits the data to the server. In the data transmission process, reference may be made to the embodiments in steps 101 to 104, or refer to the embodiments in steps 201 to 204, which are not described herein again.
Under the scene, by utilizing the technology of combining double WiFi and MPTCP, when the performance parameters of the current TCP substream are poor, the TCP substream is established on the alternative WiFi network for standby in advance, so that the WiFi network seamless switching of the electronic equipment in the true sense is realized, and the service non-perception switching is ensured.
In addition, it can be understood that two data transmission links are used in a policy, the second data transmission link (the second TCP sub-stream) is established for standby, and the second link is enabled only when the first data transmission link (the first TCP sub-stream) is detected to be out of service requirements (for example, rtt becomes larger, and bandwidth does not meet the requirements), so that power consumption can be reduced.
Referring to fig. 4, fig. 4 is a schematic view of a scenario in which an electronic device transmits data to a server under a WiFi network and a cellular wireless communication network according to an embodiment of the present application. In this fig. 4, the electronic device and the server support MPTCP, and an MPTCP connection is established between the electronic device and the server, and the MPTCP connection may include two TCP subflows, where one TCP subflow is a first TCP subflow whose physical link is the electronic device, the WiFi network, the WiFi access device, the first gateway, the ethernet, and the server, and the other TCP subflow is a second TCP subflow whose physical link is the electronic device, the cellular wireless communication network, the base station, the second gateway, the ethernet, and the server.
When data transmission is performed, the electronic device selects a TCP sub-stream with the optimal current network performance parameters to transmit data to the server, for example, a network with the highest signal strength, the smallest round-trip delay of the sub-stream, the largest network bandwidth, the smallest network congestion procedure, the smallest packet loss rate, the largest rate, or the largest throughput is selected as the network with the optimal network performance. If the current communication network performance of the WiFi network is optimal, the first TCP substream is used for transmitting data to the server, namely the electronic equipment transmits the data to the WiFi access equipment through the WiFi network, the WiFi access equipment transmits the data to the first gateway, the first gateway transmits the data to the server through the Ethernet, namely the electronic equipment transmits the data to the server after sequentially passing through the WiFi network, the WiFi access equipment, the first gateway and the Ethernet. In the data transmission process, reference may be made to the embodiments in steps 101 to 104, or refer to the embodiments in steps 201 to 204, which are not described herein again.
Similarly, if the current network performance of the cellular wireless communication network is optimal, the second TCP sub-stream is used to transmit the data to the server, that is, the electronic device transmits the data to the base station through the cellular wireless communication network, the base station transmits the data to the second gateway, and the second gateway transmits the data to the server through the ethernet, that is, the electronic device transmits the data to the server after sequentially passing through the cellular wireless communication network, the base station, the second gateway, and the ethernet. In the data transmission process, reference may be made to the embodiments in steps 101 to 104, or refer to the embodiments in steps 201 to 204, which are not described herein again.
Under the scene, by utilizing the technology of combining the WiFi network, the cellular wireless communication network and the MPTCP, when the performance of the current TCP substream network is poor, the seamless switching between the WiFi network and the cellular wireless communication network in the true sense of the electronic equipment is realized by establishing the TCP substream on the alternative switching network in advance for standby, so that the service unaware switching is ensured.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a network switching device according to an embodiment of the present disclosure. The network switching apparatus 300 may include: a first connection module 301, a first transmission module 302, a second connection module 303 and a second transmission module 304.
The first connection module 301 is configured to establish a first MPTCP connection between the electronic device and a network device over a first network, where the first MPTCP connection includes one or more first TCP subflows;
a first transmission module 302, configured to perform data transmission through the one or more first TCP sub-streams;
a second connection module 303, configured to establish a second MPTCP connection between the electronic device and the network device in a second network if a network performance parameter of the first network meets a first condition, where the second MPTCP connection includes one or more second TCP subflows, and the network performance parameter is used to indicate validity and/or reliability of data transmission;
a second transmission module 304, configured to perform data transmission using the one or more second TCP sub-streams.
In one embodiment, the second transmission module 304 may be configured to: and if the network performance parameter of the first network meets a second condition, switching the data transmission link to one or more second TCP sub-streams for data transmission.
In one embodiment, the network performance parameters include at least one of: signal strength, round trip delay of sub-streams, network bandwidth, degree of network congestion, packet loss rate, rate and throughput. .
In one embodiment, when the network performance parameter comprises one of: the method comprises the following steps that signal strength, round-trip delay of sub-flows, network bandwidth, network congestion degree, packet loss rate, rate and throughput are met, and the network performance parameters meet a first condition, wherein the network performance parameters comprise: the network performance parameter satisfies a first preset threshold.
In one embodiment, when the network performance parameters include at least two of: the method comprises the following steps that signal strength, round-trip delay of sub-flows, network bandwidth, network congestion degree, packet loss rate, rate and throughput are met, and the network performance parameters meet a first condition, wherein the network performance parameters comprise: the overall performance parameter satisfies a first preset threshold, the overall performance parameter being determined by at least two network performance parameters.
In one embodiment, the first network is a WiFi network and the second network is a WiFi network or a cellular wireless communication network.
In one embodiment, the first network is a cellular wireless communication network and the second network is a WiFi network.
In one embodiment, the second transmission module 304 may be configured to: if the network performance parameter of the first network meets a second condition, detecting the network performance parameter of the second network; and if the network performance parameters of the second network meet the third condition, switching the data transmission link to the one or more second TCP sub-streams for data transmission.
An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed on a computer, the computer is caused to execute a flow in a network handover method as provided in this embodiment.
The embodiment of the present application further provides an electronic device, which includes a memory, a processor and a communication module, where the processor is configured to execute the procedure in the network switching method provided in this embodiment by calling the computer program stored in the memory.
For example, the electronic device may be a mobile terminal such as a tablet computer or a smart phone. Referring to fig. 6, fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
The electronic device 400 may include components such as a communication module 401, memory 402, processor 403, and the like. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 6 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The communication module 401 may implement a data transmission function. The communication module 401 may include components such as a WiFi module or a cellular wireless communication module.
The memory 402 may be used to store applications and data. The memory 402 stores applications containing executable code. The application programs may constitute various functional modules. The processor 403 executes various functional applications and data processing by running an application program stored in the memory 402.
The processor 403 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing an application program stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device.
In this embodiment, the processor 403 in the electronic device loads the executable code corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 403 runs the application programs stored in the memory 402, so as to execute:
establishing a first multi-path transmission control protocol (MPTCP) connection between the electronic equipment and network equipment under a first network, wherein the first MPTCP connection comprises one or more first TCP subflows;
transmitting data through the one or more first TCP sub-streams;
if the network performance parameter of the first network meets a first condition, establishing a second MPTCP connection between the electronic device and the network device in a second network, where the second MPTCP connection includes one or more second TCP subflows, and the network performance parameter is used to indicate validity and/or reliability of data transmission;
and performing data transmission by adopting the one or more second TCP sub-flows.
Referring to fig. 7, fig. 7 is another schematic structural diagram of an electronic device according to an embodiment of the present disclosure. The electronic device 400 may include components such as a communication module 401, memory 402, processor 403, input unit 404, output unit 405, speaker 406, and the like.
The communication module 401 may implement a data transmission function. The communication module 401 may include components such as a WiFi module or a cellular wireless communication module.
The memory 402 may be used to store applications and data. The memory 402 stores applications containing executable code. The application programs may constitute various functional modules. The processor 403 executes various functional applications and data processing by running an application program stored in the memory 402.
The processor 403 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing an application program stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device.
The input unit 404 may be used to receive input numbers, character information, or user characteristic information, such as a fingerprint, and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
The output unit 405 may be used to display information input by or provided to a user and various graphical user interfaces of the electronic device, which may be made up of graphics, text, icons, video, and any combination thereof. The output unit may include a display panel.
The speaker 406 may be used to play sound signals.
Furthermore, the electronic device may also include components such as a battery, a microphone, and the like. The battery is used to supply power to the various modules of the electronic device and the microphone may be used to pick up sound signals in the surrounding environment.
In this embodiment, the processor 403 in the electronic device loads the executable code corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 403 runs the application programs stored in the memory 402, so as to execute:
establishing a first multi-path transmission control protocol (MPTCP) connection between the electronic equipment and network equipment under a first network, wherein the first MPTCP connection comprises one or more first TCP subflows;
transmitting data through the one or more first TCP sub-streams;
if the network performance parameter of the first network meets a first condition, establishing a second MPTCP connection between the electronic device and the network device in a second network, where the second MPTCP connection includes one or more second TCP subflows, and the network performance parameter is used to indicate validity and/or reliability of data transmission;
and performing data transmission by adopting the one or more second TCP sub-flows.
In one embodiment, when executing the data transmission using the one or more second TCP sub-streams, processor 403 may further execute: and if the network performance parameter of the first network meets a second condition, switching the data transmission link to the one or more second TCP sub-streams for data transmission.
In one embodiment, the network performance parameters include at least one of:
signal strength, round trip delay of sub-streams, network bandwidth, degree of network congestion, packet loss rate, rate and throughput.
In one embodiment, when the network performance parameter comprises one of: the method comprises the following steps that signal strength, round-trip delay of sub-flows, network bandwidth, network congestion degree, packet loss rate, rate and throughput are met, and the network performance parameters meet a first condition, wherein the network performance parameters comprise: the network performance parameter satisfies a first preset threshold.
In one embodiment, when the network performance parameters include at least two of: the signal strength, round trip delay of the sub-streams, network bandwidth, network congestion degree, packet loss rate, rate and throughput, the network performance parameter satisfying the first condition may include: the overall performance parameter satisfies a first preset threshold, the overall performance parameter being determined by at least two network performance parameters.
In one embodiment, the first network is a WiFi network and the second network is a WiFi network or a cellular wireless communication network.
In one embodiment, the first network is a cellular wireless communication network and the second network is a WiFi network.
In an embodiment, when executing the switching the data transmission link to the one or more second TCP sub-streams for data transmission if the network performance parameter of the first network satisfies the second condition, the processor 403 may further execute: if the network performance parameter of the first network meets a second condition, detecting the network performance parameter of the second network; and if the network performance parameters of the second network meet the third condition, switching the data transmission link to the one or more second TCP sub-streams for data transmission.
In the above embodiments, the descriptions of the embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the network handover method, and are not described herein again.
The network switching device provided in the embodiment of the present application and the network switching method in the above embodiments belong to the same concept, and any method provided in the embodiment of the network switching method may be run on the network switching device, and a specific implementation process thereof is described in the embodiment of the network switching method in detail, and is not described herein again.
It should be noted that, for the network handover method described in the embodiment of the present application, it can be understood by those skilled in the art that all or part of the process for implementing the network handover method described in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor, and during the execution process, the process of the embodiment of the network handover method can be included. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the network switching device according to the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The network switching method, device, storage medium, and electronic device provided in the embodiments of the present application are described in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (11)

1. A network switching method is applied to electronic equipment and is characterized by comprising the following steps:
establishing a first multi-path transmission control protocol (MPTCP) connection between the electronic equipment and network equipment under a first network, wherein the first MPTCP connection comprises one or more first TCP subflows;
transmitting data through the one or more first TCP sub-streams;
if the network performance parameter of the first network meets a first condition, establishing a second MPTCP connection between the electronic device and the network device in a second network, where the second MPTCP connection includes one or more second TCP subflows, and the network performance parameter is used to indicate validity and/or reliability of data transmission;
and performing data transmission by adopting the one or more second TCP sub-flows.
2. The network switching method according to claim 1, wherein said employing the one or more second TCP sub-flows for data transmission comprises:
and if the network performance parameter of the first network meets a second condition, switching the data transmission link to the one or more second TCP sub-streams for data transmission.
3. The network handover method according to claim 2, wherein the network performance parameter comprises at least one of:
signal strength, round trip delay of sub-streams, network bandwidth, degree of network congestion, packet loss rate, rate and throughput.
4. The network handover method of claim 3, wherein when the network performance parameter comprises one of: the method comprises the following steps that signal strength, round-trip delay of sub-flows, network bandwidth, network congestion degree, packet loss rate, rate and throughput are met, and the network performance parameters meet a first condition, wherein the network performance parameters comprise: the network performance parameter satisfies a first preset threshold.
5. The network handover method of claim 3, wherein when the network performance parameters comprise at least two of: the method comprises the following steps that signal strength, round-trip delay of sub-flows, network bandwidth, network congestion degree, packet loss rate, rate and throughput are met, and the network performance parameters meet a first condition, wherein the network performance parameters comprise: the overall performance parameter satisfies a first preset threshold, the overall performance parameter being determined by at least two network performance parameters.
6. The method according to any of claims 1 to 5, wherein the first network is a WiFi network and the second network is a WiFi network or a cellular wireless communication network.
7. The method according to any of claims 1 to 5, wherein the first network is a cellular wireless communication network and the second network is a WiFi network.
8. The method according to claim 2, wherein switching the data transmission link to the one or more second TCP sub-streams for data transmission if the network performance parameter of the first network satisfies a second condition comprises:
if the network performance parameter of the first network meets a second condition, detecting the network performance parameter of the second network;
and if the network performance parameters of the second network meet the third condition, switching the data transmission link to the one or more second TCP sub-streams for data transmission.
9. A network switching device applied to electronic equipment is characterized by comprising:
a first connection module, configured to establish a first MPTCP connection between the electronic device and a network device over a first network, where the first MPTCP connection includes one or more first TCP subflows;
a first transmission module, configured to perform data transmission through the one or more first TCP sub-streams;
a second connection module, configured to establish a second MPTCP connection between the electronic device and the network device in a second network if a network performance parameter of the first network meets a first condition, where the second MPTCP connection includes one or more second TCP subflows, and the network performance parameter is used to indicate validity and/or reliability of data transmission;
and the second transmission module is used for carrying out data transmission by adopting the one or more second TCP sub-flows.
10. A computer-readable storage medium, on which a computer program is stored, which, when executed on a computer, causes the computer to carry out the method according to any one of claims 1 to 8.
11. An electronic device comprising a memory, a processor and a communication module, wherein the processor is configured to perform the method of any one of claims 1 to 8 by invoking a computer program stored in the memory.
CN202011270032.5A 2020-11-13 2020-11-13 Network switching method and device, storage medium and electronic equipment Pending CN112333800A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011270032.5A CN112333800A (en) 2020-11-13 2020-11-13 Network switching method and device, storage medium and electronic equipment
PCT/CN2021/117699 WO2022100255A1 (en) 2020-11-13 2021-09-10 Network switching method and apparatus, storage medium, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011270032.5A CN112333800A (en) 2020-11-13 2020-11-13 Network switching method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN112333800A true CN112333800A (en) 2021-02-05

Family

ID=74318613

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011270032.5A Pending CN112333800A (en) 2020-11-13 2020-11-13 Network switching method and device, storage medium and electronic equipment

Country Status (2)

Country Link
CN (1) CN112333800A (en)
WO (1) WO2022100255A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113747203A (en) * 2021-09-01 2021-12-03 腾讯科技(深圳)有限公司 Video information transmission method and device, electronic equipment and storage medium
CN114285792A (en) * 2021-12-20 2022-04-05 东土科技(宜昌)有限公司 Data transmission method, device, equipment and storage medium based on redundant link
WO2022100255A1 (en) * 2020-11-13 2022-05-19 Oppo广东移动通信有限公司 Network switching method and apparatus, storage medium, and electronic device
WO2022205633A1 (en) * 2021-03-30 2022-10-06 捷开通讯(深圳)有限公司 Network switching method, storage medium, and electronic device

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116390142B (en) * 2023-02-23 2023-11-28 荣耀终端有限公司 Network detection method and electronic equipment
CN116347570B (en) * 2023-02-27 2023-11-21 荣耀终端有限公司 Data transmission method and related equipment
CN116456344A (en) * 2023-03-21 2023-07-18 广东南方电信规划咨询设计院有限公司 Wireless connection authorization management method, device and system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101588617A (en) * 2009-05-14 2009-11-25 中兴通讯股份有限公司 A kind of method for switching network and multi-module mobile terminal
WO2015174901A1 (en) * 2014-05-15 2015-11-19 Telefonaktiebolaget L M Ericsson (Publ) Method and devices for controlling usage of multi-path tcp
CN105188101A (en) * 2015-07-21 2015-12-23 努比亚技术有限公司 Network switching device and method
CN106102098A (en) * 2016-05-27 2016-11-09 华为技术有限公司 A kind of method and device accessing WIFI network
CN106332201A (en) * 2015-07-07 2017-01-11 西安中兴新软件有限责任公司 Wireless hotspot switching method and mobile terminal
CN107708163A (en) * 2017-09-18 2018-02-16 深圳市信锐网科技术有限公司 A kind of roving link switching method, mobile terminal, network modules and storage medium
CN110768900A (en) * 2019-09-18 2020-02-07 华为技术有限公司 Data transmission method and electronic equipment
CN110798869A (en) * 2018-08-02 2020-02-14 华为技术有限公司 Network switching method, electronic equipment and chip subsystem
CN111148170A (en) * 2019-12-26 2020-05-12 苏宁智能终端有限公司 Multi-hot-spot network distribution method and device, network card, computer equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101395021B1 (en) * 2013-03-05 2014-05-16 서강대학교산학협력단 Vertical handover method using mptcp with initial throughput improvement and mobile terminal using the method
EP3243309B1 (en) * 2015-01-06 2019-12-18 Telefonaktiebolaget LM Ericsson (publ) A method for controlling multipoint tcp in wireless communications networks and devices for use therein
CN107182097A (en) * 2017-06-28 2017-09-19 努比亚技术有限公司 A kind of method for switching network, terminal and computer-readable recording medium
CN108834203B (en) * 2018-06-29 2021-01-26 Oppo(重庆)智能科技有限公司 Network switching method, device, terminal and storage medium
CN112333800A (en) * 2020-11-13 2021-02-05 Oppo广东移动通信有限公司 Network switching method and device, storage medium and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101588617A (en) * 2009-05-14 2009-11-25 中兴通讯股份有限公司 A kind of method for switching network and multi-module mobile terminal
WO2015174901A1 (en) * 2014-05-15 2015-11-19 Telefonaktiebolaget L M Ericsson (Publ) Method and devices for controlling usage of multi-path tcp
CN106332201A (en) * 2015-07-07 2017-01-11 西安中兴新软件有限责任公司 Wireless hotspot switching method and mobile terminal
CN105188101A (en) * 2015-07-21 2015-12-23 努比亚技术有限公司 Network switching device and method
CN106102098A (en) * 2016-05-27 2016-11-09 华为技术有限公司 A kind of method and device accessing WIFI network
CN107708163A (en) * 2017-09-18 2018-02-16 深圳市信锐网科技术有限公司 A kind of roving link switching method, mobile terminal, network modules and storage medium
CN110798869A (en) * 2018-08-02 2020-02-14 华为技术有限公司 Network switching method, electronic equipment and chip subsystem
CN110768900A (en) * 2019-09-18 2020-02-07 华为技术有限公司 Data transmission method and electronic equipment
CN111148170A (en) * 2019-12-26 2020-05-12 苏宁智能终端有限公司 Multi-hot-spot network distribution method and device, network card, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孙茂鑫等: "SDN环境下基于MPTCP协议的切换管理", 《应用科学学报》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022100255A1 (en) * 2020-11-13 2022-05-19 Oppo广东移动通信有限公司 Network switching method and apparatus, storage medium, and electronic device
WO2022205633A1 (en) * 2021-03-30 2022-10-06 捷开通讯(深圳)有限公司 Network switching method, storage medium, and electronic device
CN113747203A (en) * 2021-09-01 2021-12-03 腾讯科技(深圳)有限公司 Video information transmission method and device, electronic equipment and storage medium
CN114285792A (en) * 2021-12-20 2022-04-05 东土科技(宜昌)有限公司 Data transmission method, device, equipment and storage medium based on redundant link

Also Published As

Publication number Publication date
WO2022100255A1 (en) 2022-05-19

Similar Documents

Publication Publication Date Title
CN112333800A (en) Network switching method and device, storage medium and electronic equipment
CN110798869B (en) Network switching method, electronic equipment and chip subsystem
JP7234404B2 (en) Roaming method in multilink scene, multilink device and storage medium
US10484921B2 (en) Wireless hotspot handover method, mobile terminal and storage medium
US8885504B2 (en) Method, apparatus and system for bandwidth aggregation of mobile internet access node
CN111492679A (en) Apparatus and method for multiple access offload/offload operation
US20200092210A1 (en) Policy Based Dual Connectivity Traffic Steering
US10034243B2 (en) Method and device for interworking between access technology networks
CN112399484B (en) Data transmission method and device, storage medium and electronic equipment
CN112291366A (en) Data transmission method, device, storage medium and electronic equipment
CN108353334A (en) Business transmitting method, device and equipment
CN112383948B (en) Data transmission method, device, storage medium and electronic equipment
JP2021528894A (en) Ability interaction method and related equipment
US20230156115A1 (en) Electronic device and method for reducing current consumption in electronic device connected with communication network
WO2022100211A1 (en) Data processing method and apparatus, storage medium, terminal, and network access point device
CN112867069B (en) Interference processing method and device, storage medium and electronic equipment
JP2006345158A (en) Wireless lan terminal device, and wireless lan system and program
CN104105117A (en) Method for achieving VoIP service in ad hoc network
JP2018148478A (en) Controller, mobile communication system, and control method
US10531510B2 (en) Method for service transmission and transmission device
WO2022155853A1 (en) Wireless communication method, communication apparatus and communication system
CN104780577B (en) A kind of method and apparatus that data resource switches over transmission in minizone
WO2024009397A1 (en) Wireless terminal device and wireless communication method
Asakura et al. A traffic distribution system among multiple terminals using MPTCP in multihomed network environment
WO2023010987A1 (en) Communication method and device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210205