WO2015143863A1 - Flow-based network switching method and apparatus and terminal - Google Patents

Flow-based network switching method and apparatus and terminal Download PDF

Info

Publication number
WO2015143863A1
WO2015143863A1 PCT/CN2014/088403 CN2014088403W WO2015143863A1 WO 2015143863 A1 WO2015143863 A1 WO 2015143863A1 CN 2014088403 W CN2014088403 W CN 2014088403W WO 2015143863 A1 WO2015143863 A1 WO 2015143863A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
data packets
networks
switching
access
Prior art date
Application number
PCT/CN2014/088403
Other languages
French (fr)
Chinese (zh)
Inventor
张红
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015143863A1 publication Critical patent/WO2015143863A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters

Definitions

  • the present invention relates to the field of mobile communication technologies, and in particular, to a traffic-based network switching method, apparatus, and terminal.
  • Cellular mobile communication adopts a cellular wireless networking mode, and is connected between a terminal and a network device through a wireless channel, so that users can communicate with each other during activities.
  • the cellular mobile communication network has a wide coverage and can meet the high mobility of the terminal.
  • the data transmission rate in a cellular mobile communication network is not high.
  • Wi-Fi is an important part of Wireless Local Area Nerworks (WLAN). Wi-Fi is a technology that connects multiple terminals to each other wirelessly, and has a high data transmission rate.
  • Wi-Fi can take advantage of the high transmission rate of Wi-Fi data to compensate for the limitations of their data transmission rate.
  • Wi-Fi can utilize the perfect authentication mechanism of cellular mobile communication networks, and combines the characteristics of cellular mobile communication networks to carry out switching in multiple access modes. In this way, the fusion of the Wi-Fi network and the cellular mobile communication network can be realized.
  • the embodiments of the present invention provide a traffic-based network switching method, apparatus, and terminal.
  • An embodiment of the present invention provides a traffic-based network switching method, including: performing network access based on multiple preset networks to access one of the multiple networks; according to the accessed network The number of transmitted data packets, determining to perform a network handover; switching the accessed network to another network; the other network being included in the plurality of networks.
  • the method further includes: determining to perform network switching when the network switching is not performed.
  • the method before determining to perform network handover according to the number of data packets transmitted in the accessed network, the method further includes: identifying, among the plurality of data packets transmitted in the uplink and/or the downlink Acknowledgement of an ACK packet; based on the identified ACK packet, obtaining a number of packets between two adjacent ACK packets in the uplink and/or downlink as the network in the access The number of packets transmitted.
  • Performing network access to access one of the plurality of networks based on a plurality of networks set in advance including: setting priorities for the plurality of networks in advance; according to the plurality of networks Priority, attempting to perform network access in sequence until access to one of the networks.
  • the embodiment of the present invention further provides a traffic-based network switching apparatus, including: an access module, configured to perform network access based on multiple preset networks to access one of the multiple networks;
  • the determining module is configured to determine to perform network switching according to the number of data packets transmitted in the accessed network, and the switching module is configured to: when the determining module determines to perform network switching, switch the accessed network to Another network; the other network is included in the plurality of networks.
  • the determining module is further configured to: when it is determined that the network switching is not performed, continue to determine whether to perform network switching.
  • the apparatus further includes: the identification and acquisition module configured to identify an ACK packet in the plurality of data packets transmitted in the uplink and/or the downlink; and based on the identified ACK packet, Obtaining the number of data packets between two adjacent ACK packets in the uplink and/or downlink as the number of data packets transmitted in the accessed network.
  • the identification and acquisition module configured to identify an ACK packet in the plurality of data packets transmitted in the uplink and/or the downlink; and based on the identified ACK packet, Obtaining the number of data packets between two adjacent ACK packets in the uplink and/or downlink as the number of data packets transmitted in the accessed network.
  • the determining module is configured to: in the uplink and/or the downlink, the number of data packets between two adjacent ACK data packets is greater than a preset number threshold, and determining to perform network switching.
  • the judging module is configured to: in the uplink and/or the downlink, consecutively appear that the number of data packets between two adjacent ACK data packets is greater than a preset number threshold, and the number of consecutive occurrences is greater than A threshold number of times is determined to determine the execution of the network switch.
  • the access module is configured to: set priorities for the multiple networks in advance; and sequentially perform network access according to priorities of the multiple networks until accessing one of the networks.
  • the embodiment of the invention further provides a terminal, comprising the above traffic-based network switching device.
  • Embodiments of the present invention also provide a computer storage medium, the computer storage medium comprising a set of instructions that, when executed, cause at least one processor to perform the traffic-based network switching method described above.
  • the embodiment of the invention is based on the TCP/IP protocol, and determines whether the data traffic is too large by monitoring the data packets sent and received, and adaptively performs network switching when the data traffic is large, thereby improving the convenience of the network switching mode.
  • FIG. 1 is a flow chart of a traffic based network switching method according to an embodiment of the invention.
  • FIG. 2 is a flowchart of steps of performing network handover for an uplink, in accordance with an embodiment of the present invention
  • FIG. 3 is a flowchart of steps of performing network handover for a downlink, in accordance with an embodiment of the present invention
  • FIG. 4 is a structural diagram of a traffic based network switching apparatus according to an embodiment of the present invention.
  • the embodiment of the present invention provides a traffic-based network switching method, device, and terminal, which are described below with reference to the accompanying drawings and embodiments. The invention is further described in detail. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
  • TCP Transmission Control Protocol/Internet Protocol
  • TCP/IP Transmission Control Protocol/Internet Protocol
  • the sender To send a data packet, the receiver needs to acknowledge (answer). If the receiver successfully receives the data packet, it sends an acknowledgement (ACK) packet to the sender.
  • ACK acknowledgement
  • the inherent data is monitored by monitoring the ACK data packet by using the inherent TCP/IP, and the network is adaptively switched according to the size of the data traffic, thereby improving the convenience of network switching.
  • FIG. 1 is a flowchart of a traffic-based network switching method according to an embodiment of the present invention. As shown in FIG. 1 , a traffic-based network switching method according to an embodiment of the present invention includes the following steps:
  • Step S110 Perform network access according to a plurality of networks set in advance to access one of the plurality of networks.
  • the plurality of networks include at least: a Long Term Evolution (LTE) network, a Wi-Fi network, and the like.
  • LTE Long Term Evolution
  • Wi-Fi Wireless Fidelity
  • one network may be randomly selected from multiple networks to perform network access, or priority may be set for multiple networks in advance, and network access is sequentially attempted according to the priorities of the multiple networks. Enter one of the networks.
  • the transmission of the data packet is performed.
  • Step S120 determining whether to perform network switching according to the number of data packets transmitted in the accessed network, and if yes, executing step S130; if not, proceeding to step S120.
  • Packets transmitted in the network are divided into uplink data and downlink data. Both the uplink data and the downlink data respectively contain a plurality of data packets, and ACK data packets are included in the plurality of data packets. Further, the ACK data packet in the uplink is used by the terminal to answer the network, and the data packet sent by the network side terminal to the terminal has been successfully received by the terminal; the ACK data packet in the downlink is used for the network response terminal, indicating that the terminal is to the network. The data packet sent by the side has been successfully received by the network side.
  • the step of determining whether to perform network handover includes: obtaining the number of transmitted data packets in the accessed network, and further identifying the ACK data in multiple data packets transmitted in the uplink and/or the downlink. Packet; based on the identified ACK packet, obtaining the number of packets between two adjacent ACK packets in the uplink and/or downlink; according to uplink and/or downlink. The number of packets between two adjacent ACK packets in the link determines whether to perform network switching. If in the uplink and/or downlink, the number of packets between two adjacent ACK packets is greater than a preset number threshold, then it is determined to perform a network switch. Further, the first quantity threshold and the second quantity threshold may be preset.
  • the number of packets between two adjacent ACK packets is greater than a preset first number threshold, and/or if in the downlink, the number of packets between two adjacent ACK packets If it is greater than the preset second number threshold, it is determined to perform network switching.
  • the first quantity threshold and the second quantity threshold may be empirical values.
  • the number of consecutive data packets between two adjacent ACK data packets is greater than a preset number threshold, and the number of consecutive occurrences is greater than the setting.
  • the number of times threshold is determined to perform network switching.
  • the first quantity threshold and the second quantity threshold may be preset, and the first number of times threshold and the second number of times of the threshold.
  • the number of consecutively adjacent ACK packets is greater than a preset first number threshold, and the number of consecutive occurrences is greater than the first threshold, and/or if In the link, if the number of data packets between two adjacent ACK packets is greater than a preset second number threshold, and the number of consecutive occurrences is greater than the second threshold, it is determined that network switching is performed.
  • the first quantity threshold and the second quantity threshold, and the first number of times threshold and the second number of times threshold may be empirical values.
  • Step S130 the accessed network is switched to another network; the other network is included in a plurality of networks set in advance.
  • one network may be selected and the network switching may be performed in a preset plurality of networks; or the network may be switched to the next priority network according to a preset network priority.
  • the embodiment of the invention adaptively performs network switching when the data traffic is large, improves the convenience of the network switching mode, does not need to upgrade the hardware and software of the existing network, and can implement the invention based on the existing TCP/IP.
  • Embodiments, and embodiments of the present invention take into account users access to the Internet The demand for traffic, when the network traffic is large, switch the network, which can improve the speed of the Internet, improve the user experience, and avoid network congestion.
  • the steps of determining whether to perform network switching in the uplink and downlink, respectively will be described in conjunction with a specific embodiment. Further, the embodiment of the present invention may further determine whether to perform network switching by combining the number of data packets transmitted in the uplink and the downlink.
  • FIG. 2 is a flowchart of a step of performing network handover for an uplink according to an embodiment of the present invention. As shown in FIG. 2, a method for performing network handover in an uplink according to an embodiment of the present invention includes the following steps:
  • Step S210 obtaining priorities of a plurality of networks set in advance.
  • the second terminal obtains the priority of the plurality of networks set in advance from the first terminal.
  • the first terminal is a device used by the user.
  • the first terminal is, for example, a mobile phone, a tablet, a computer, or the like.
  • the first terminal can be configured to implement data interaction with the network.
  • the first terminal can upload data to the network, and the first terminal can also download data from the network.
  • the second terminal is located between the first terminal and the network, and is configured to transmit data packets to the first terminal and the network, and determine whether the network needs to be switched according to the number of transmitted data packets. That is to say, the data uploaded or downloaded by the first terminal must pass through the second terminal.
  • the user can set multiple networks that can be accessed through the user interface of the first terminal, and set priorities for each network.
  • the network set by the first terminal and the priority of each network are obtained from the first terminal.
  • the first terminal sends the priority of each network to the second terminal local area network side through an AT (Attention) command, and then sends the second terminal to the second terminal wide area network side.
  • the local area network side of the second terminal refers to the first terminal accessing the second terminal side.
  • the WAN side of the second terminal refers to the second terminal accessing the network side.
  • Step S220 accessing the network with the highest priority.
  • the second terminal performs network access according to the network priority, when the second terminal obtains the most After the high priority network, access to the highest priority network. For example, the user sets the WLAN network and the LTE network in the first terminal, and selects the WLAN network or the LTE network as the highest priority network. If the user chooses to preferentially access the WLAN network, the second terminal preferentially searches for and accesses the Wi-Fi hotspot. If the user chooses to preferentially access the LTE network, the second terminal preferentially accesses the LTE wireless network.
  • the first terminal After the second terminal accesses the network, the first terminal requests data from the network, thereby generating downlink traffic. After receiving the data packet from the network, the first terminal sends an ACK packet to the network. In this process, the first terminal may also send uplink data, such as multiple data packets, to the network, and the multiple data packets and the ACK data packet for replying are mixed together through the local area network side of the second terminal, and the wide area network side network. send.
  • uplink data such as multiple data packets
  • step S230 the number UL of the data packets is accumulated on the wide area network side.
  • the plurality of data packets (including the ACK data packets) sent by the first terminal pass through the local area network side of the second terminal and reach the wide area network side of the second terminal.
  • the initial value of the count can be an empirical value, such as an initial value of zero.
  • step S240 it is determined whether the current data packet is an ACK data packet. If yes, step S250 is performed; if no, step S230 is executed to continue to accumulate the received data packet.
  • the plurality of data packets sent by the first terminal first reach the local area network side of the second terminal, and then reach the wide area network measurement of the second terminal.
  • the second terminal monitors the data packet from the first terminal and identifies the ACK packet therein. Further, the second terminal can mark the ACK packet.
  • the second terminal determines, according to the flag, whether the currently received data packet is an ACK data packet.
  • step S250 it is determined whether the number of packets UL is greater than the first number threshold. If yes, step S270 is performed; if not, step S260 is performed.
  • step S260 the number of packets UL is cleared to cause step S230 to restart counting from the count initial value.
  • step S270 it is determined whether the number of packets UL is twice greater than the first number threshold. If yes, step S130 is performed; if not, step S260 is performed.
  • the two times are preset first time thresholds.
  • the number of packets UL is twice consecutively greater than the first number threshold, indicating that among the three consecutive ACK packets A, B, C, the number of packets transmitted between A and B is greater than the first number threshold, and B and C The number of packets transmitted between them is also greater than the first number threshold.
  • FIG. 3 is a flowchart of a step of performing network handover for a downlink according to an embodiment of the present invention. As shown in FIG. 3, a method for performing network handover on a downlink according to an embodiment of the present invention includes the following steps:
  • Step S310 - step S320 may refer to step S210 - step S220.
  • step S330 the number DL of data packets is accumulated on the wide area network side.
  • the count initial value can be an empirical value.
  • Step S340 determining whether the current data packet is an ACK data packet, if yes, executing step S350; if not, executing step S330 to continue accumulating the received data packet.
  • the second terminal monitors each data packet from the network and identifies an ACK packet therein.
  • step S350 it is determined whether the number of packets DL is greater than the second threshold. If yes, step S370 is performed; if no, step S360 is performed.
  • step S360 the number of packets DL is cleared to cause step S330 to restart counting from the count initial value.
  • Step S370 determining whether the number of data packets DL is twice greater than the second number threshold, if If yes, go to step S130; if no, go to step S360.
  • the two times are preset second time thresholds.
  • the number of data packets DL is twice consecutively greater than the second number threshold, indicating that among the three consecutive ACK packets E, F, G, the number of data packets transmitted between E and F is greater than the second number threshold, and F and G The number of packets transmitted between them is also greater than the second number threshold.
  • the embodiment of the invention further provides a traffic switching based network switching device.
  • 4 is a structural diagram of a traffic based network switching apparatus according to an embodiment of the present invention.
  • the traffic switching device according to the embodiment of the present invention includes: an access module 410, a determining module 420, and a switching module 440;
  • the access module 410 is configured to perform network access based on multiple networks preset to access one of the plurality of networks;
  • the access module 410 is specifically configured to set priorities for multiple networks in advance; and perform network access in sequence according to priorities of multiple networks until accessing one of the networks.
  • the determining module 420 is configured to determine whether to perform network switching according to the number of data packets transmitted in the accessed network; when the determination is no, continue to determine whether to perform network switching;
  • the switching module 440 is configured to switch the accessed network to another network when the determining module determines to be YES; the other network is included in the plurality of networks.
  • the apparatus further includes the identification and acquisition module 430 configured to: identify an ACK packet in the plurality of data packets transmitted in the uplink and/or downlink; and obtain an uplink based on the identified ACK packet And/or the number of data packets between two adjacent ACK packets in the downlink as the number of data packets transmitted in the accessed network;
  • the determining module 420 is specifically configured to determine to perform network switching if the number of data packets between two adjacent ACK data packets is greater than a preset number threshold in the uplink and/or downlink.
  • the determination module 420 is specifically configured to: if on the uplink and/or down In the line link, if the number of data packets between two adjacent ACK data packets continuously exceeds a preset number threshold, and the number of consecutive occurrences is greater than the set number of times threshold, it is determined that network switching is performed.
  • the access module 410 and the switching module 440 may be a central processing unit (CPU), a digital signal processor (DSP), or a programmable logic array (FPGA) in a traffic-based network switching device.
  • the Field-Programmable Gate Array is implemented in conjunction with a specific circuit; the determination module 420 and the identification and acquisition module 430 can be implemented by a CPU, DSP or FPGA in a flow-based network switching device.
  • the network switching device in the embodiment of the present invention basically corresponds to the foregoing second terminal. Since the function of the second terminal has been described in the method embodiment shown in FIG. 1 to FIG. 3, in the description of this embodiment, For details, refer to the related description in the foregoing embodiments, and no further details are provided herein.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Disclosed are a flow-based network switching method and apparatus and a terminal. The method comprises: performing network access according to multiple preset networks so as to access one of the multiple networks; determining to perform network switching according to the number of data packets transmitted in the accessed network; and switching the accessed network to another network comprised in the one or more networks.

Description

一种基于流量的网络切换方法、装置和终端Traffic-based network switching method, device and terminal 技术领域Technical field
本发明涉及移动通讯技术领域,特别是涉及一种基于流量的网络切换方法、装置和终端。The present invention relates to the field of mobile communication technologies, and in particular, to a traffic-based network switching method, apparatus, and terminal.
背景技术Background technique
蜂窝移动通信采用蜂窝无线组网方式,在终端和网络设备之间通过无线通道连接起来,进而用户在活动中可以相互通信。蜂窝移动通信网络的覆盖广,可以满足终端的高移动性。但是,蜂窝移动通信网络中的数据传输速率不高。Cellular mobile communication adopts a cellular wireless networking mode, and is connected between a terminal and a network device through a wireless channel, so that users can communicate with each other during activities. The cellular mobile communication network has a wide coverage and can meet the high mobility of the terminal. However, the data transmission rate in a cellular mobile communication network is not high.
Wi-Fi是无线局域网络(Wireless Local Area Nerworks,WLAN)的重要组成部分,Wi-Fi是将多个终端以无线方式互相连接的技术,具有较高的数据传输速率。Wi-Fi is an important part of Wireless Local Area Nerworks (WLAN). Wi-Fi is a technology that connects multiple terminals to each other wirelessly, and has a high data transmission rate.
蜂窝移动通信网络可以利用Wi-Fi数据传输速率高的特点,来弥补自身数据传输速率受限的不足。Wi-Fi可以利用蜂窝移动通信网络完善的鉴权机制,并结合蜂窝移动通信网络覆盖广的特点,来进行多种接入方式下的切换。这样就可以实现Wi-Fi网络与蜂窝移动通信网络的融合。Cellular mobile communication networks can take advantage of the high transmission rate of Wi-Fi data to compensate for the limitations of their data transmission rate. Wi-Fi can utilize the perfect authentication mechanism of cellular mobile communication networks, and combines the characteristics of cellular mobile communication networks to carry out switching in multiple access modes. In this way, the fusion of the Wi-Fi network and the cellular mobile communication network can be realized.
通过对蜂窝移动通信网络和Wi-Fi网络的合理利用,实现适时的在蜂窝移动通信网络和Wi-Fi网络之间切换。但是,目前提供的蜂窝移动通信网络和Wi-Fi网络之间的切换算法,有些需要升级现有网络的硬件及软件,有些需要对网络协议层的数据做检测算法,这就造成现有的切换方式实现起来比较复杂。 Through reasonable utilization of the cellular mobile communication network and the Wi-Fi network, timely switching between the cellular mobile communication network and the Wi-Fi network is realized. However, some handover algorithms between the cellular mobile communication network and the Wi-Fi network currently provided need to upgrade the hardware and software of the existing network, and some need to detect the data of the network protocol layer, which causes the existing handover. The way to implement it is more complicated.
发明内容Summary of the invention
为解决现有存在的技术问题,本发明实施例提供一种基于流量的网络切换方法、装置和终端。In order to solve the existing technical problems, the embodiments of the present invention provide a traffic-based network switching method, apparatus, and terminal.
为解决上述技术问题,本发明实施例是通过以下技术方案来实现的:To solve the above technical problem, the embodiment of the present invention is implemented by the following technical solutions:
本发明实施例提供了一种基于流量的网络切换方法,包括:基于预先设置的多个网络,执行网络接入,以接入所述多个网络中的一个网络;根据在接入的网络中所传输的数据包的数量,确定执行网络切换;将所述接入的网络切换到另一网络;所述另一网络包含在所述多个网络中。An embodiment of the present invention provides a traffic-based network switching method, including: performing network access based on multiple preset networks to access one of the multiple networks; according to the accessed network The number of transmitted data packets, determining to perform a network handover; switching the accessed network to another network; the other network being included in the plurality of networks.
其中,所述方法还包括:确定不执行网络切换时,继续判断是否执行网络切换。The method further includes: determining to perform network switching when the network switching is not performed.
其中,所述根据在接入的网络中所传输的数据包的数量,确定执行网络切换之前,所述方法还包括:在上行链路和/或下行链路传输的多个数据包中,识别出应答ACK数据包;基于识别出的所述ACK数据包,获得上行链路和/或下行链路中相邻两ACK数据包之间的数据包数量,作为所述在接入的网络中所传输的数据包的数量。Wherein, before determining to perform network handover according to the number of data packets transmitted in the accessed network, the method further includes: identifying, among the plurality of data packets transmitted in the uplink and/or the downlink Acknowledgement of an ACK packet; based on the identified ACK packet, obtaining a number of packets between two adjacent ACK packets in the uplink and/or downlink as the network in the access The number of packets transmitted.
其中,所述根据在接入的网络中所传输的数据包的数量,确定执行网络切换,包括:上行链路和/或下行链路中,相邻两ACK数据包之间的数据包数量大于预设的数量阈值,确定执行网络切换。The determining, according to the number of data packets transmitted in the accessed network, determining to perform network switching, including: in an uplink and/or a downlink, the number of data packets between two adjacent ACK data packets is greater than A preset number threshold is determined to perform a network switch.
其中,所述根据在接入的网络中所传输的数据包的数量,确定执行网络切换,包括:上行链路和/或下行链路中,连续出现相邻两ACK数据包之间的数据包数量大于预设的数量阈值的情况,且连续出现的次数大于设定的次数阈值,确定执行网络切换。The determining, according to the number of data packets transmitted in the accessed network, determining to perform network handover, including: continuously appearing between the two adjacent ACK data packets in the uplink and/or the downlink If the number is greater than the preset number threshold, and the number of consecutive occurrences is greater than the set number of times threshold, it is determined to perform network switching.
其中,所述基于预先设置的多个网络,执行网络接入,以接入所述多个网络中的一个网络,包括:预先为所述多个网络设置优先级;按照所述多个网络的优先级,顺次尝试执行网络接入,直至接入其中一个网络。 Performing network access to access one of the plurality of networks based on a plurality of networks set in advance, including: setting priorities for the plurality of networks in advance; according to the plurality of networks Priority, attempting to perform network access in sequence until access to one of the networks.
本发明实施例还提供了一种基于流量的网络切换装置,包括:接入模块,配置为基于预先设置的多个网络,执行网络接入,以接入所述多个网络中的一个网络;判断模块,配置为根据在接入的网络中所传输的数据包的数量,确定执行网络切换;切换模块,配置为在所述判断模块确定执行网络切换时,将所述接入的网络切换到另一网络;所述另一网络包含在所述多个网络中。The embodiment of the present invention further provides a traffic-based network switching apparatus, including: an access module, configured to perform network access based on multiple preset networks to access one of the multiple networks; The determining module is configured to determine to perform network switching according to the number of data packets transmitted in the accessed network, and the switching module is configured to: when the determining module determines to perform network switching, switch the accessed network to Another network; the other network is included in the plurality of networks.
其中,所述判断模块,还配置为确定不执行网络切换时,继续判断是否执行网络切换。The determining module is further configured to: when it is determined that the network switching is not performed, continue to determine whether to perform network switching.
其中,所述装置还包括:识别与获得模块配置为,在上行链路和/或下行链路传输的多个数据包中,识别出ACK数据包;并基于识别出的所述ACK数据包,获得上行链路和/或下行链路中相邻两ACK数据包之间的数据包数量,作为所述在接入的网络中所传输的数据包的数量。The apparatus further includes: the identification and acquisition module configured to identify an ACK packet in the plurality of data packets transmitted in the uplink and/or the downlink; and based on the identified ACK packet, Obtaining the number of data packets between two adjacent ACK packets in the uplink and/or downlink as the number of data packets transmitted in the accessed network.
其中,所述判断模块配置为:上行链路和/或下行链路中,相邻两ACK数据包之间的数据包数量大于预设的数量阈值,确定执行网络切换。The determining module is configured to: in the uplink and/or the downlink, the number of data packets between two adjacent ACK data packets is greater than a preset number threshold, and determining to perform network switching.
其中,所述判断模块配置为:上行链路和/或下行链路中,连续出现相邻两ACK数据包之间的数据包数量大于预设的数量阈值的情况,且连续出现的次数大于设定的次数阈值,确定执行网络切换。The judging module is configured to: in the uplink and/or the downlink, consecutively appear that the number of data packets between two adjacent ACK data packets is greater than a preset number threshold, and the number of consecutive occurrences is greater than A threshold number of times is determined to determine the execution of the network switch.
其中,所述接入模块配置为:预先为所述多个网络设置优先级;按照所述多个网络的优先级,顺次尝试执行网络接入,直至接入其中一个网络。The access module is configured to: set priorities for the multiple networks in advance; and sequentially perform network access according to priorities of the multiple networks until accessing one of the networks.
本发明实施例又提供了一种终端,包括上述的基于流量的网络切换装置。The embodiment of the invention further provides a terminal, comprising the above traffic-based network switching device.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行上述的基于流量的网络切换方法。Embodiments of the present invention also provide a computer storage medium, the computer storage medium comprising a set of instructions that, when executed, cause at least one processor to perform the traffic-based network switching method described above.
本发明实施例有益效果如下: The beneficial effects of the embodiments of the present invention are as follows:
本发明实施例基于TCP/IP协议,通过监控收发的数据包,来判断数据流量是否过大,并在数据流量大时自适应地进行网络切换,进而提高了网络切换方式的便捷性。The embodiment of the invention is based on the TCP/IP protocol, and determines whether the data traffic is too large by monitoring the data packets sent and received, and adaptively performs network switching when the data traffic is large, thereby improving the convenience of the network switching mode.
附图说明DRAWINGS
在附图(其不一定是按比例绘制的)中,相似的附图标记可在不同的视图中描述相似的部件。具有不同字母后缀的相似附图标记可表示相似部件的不同示例。附图以示例而非限制的方式大体示出了本文中所讨论的各个实施例。In the drawings, which are not necessarily to scale, the Like reference numerals with different letter suffixes may indicate different examples of similar components. The drawings generally illustrate the various embodiments discussed herein by way of example and not limitation.
图1是根据本发明一实施例的基于流量的网络切换方法的流程图;1 is a flow chart of a traffic based network switching method according to an embodiment of the invention;
图2是根据本发明一实施例的针对上行链路执行网络切换的步骤的流程图;2 is a flowchart of steps of performing network handover for an uplink, in accordance with an embodiment of the present invention;
图3是根据本发明一实施例的针对下行链路执行网络切换的步骤的流程图;3 is a flowchart of steps of performing network handover for a downlink, in accordance with an embodiment of the present invention;
图4是根据本发明一实施例的基于流量的网络切换装置的结构图。4 is a structural diagram of a traffic based network switching apparatus according to an embodiment of the present invention.
具体实施方式detailed description
为了解决蜂窝移动通信网络和Wi-Fi网络之间的切换算法,实现方式比较复杂的问题,本发明实施例提供了一种基于流量的网络切换方法、装置和终端,以下结合附图以及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不限定本发明。In order to solve the problem that the switching algorithm between the cellular mobile communication network and the Wi-Fi network is complicated, the embodiment of the present invention provides a traffic-based network switching method, device, and terminal, which are described below with reference to the accompanying drawings and embodiments. The invention is further described in detail. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
在传输控制协议/因特网互联协议(Transmission Control Protocol/Internet Protocol,TCP/IP)中,TCP为了提供可靠的连接服务,采用三次握手建立一个连接;连接建立后,在传输数据包时,发送端每发送一个数据包,都需要接收端进行确认(应答),如果接收方成功地接收到数据包,则向发送端发送一个应答(Acknowledgement,ACK)数据包。基于 此:在本发明的各种实施例中:利用固有的TCP/IP,通过监测ACK数据包来监控网络中的数据流量,根据数据流量的大小来自适应地切换网络,提高网络切换的便捷度。In the Transmission Control Protocol/Internet Protocol (TCP/IP), in order to provide a reliable connection service, TCP uses a three-way handshake to establish a connection. After the connection is established, each time the data packet is transmitted, the sender To send a data packet, the receiver needs to acknowledge (answer). If the receiver successfully receives the data packet, it sends an acknowledgement (ACK) packet to the sender. based on Therefore, in various embodiments of the present invention, the inherent data is monitored by monitoring the ACK data packet by using the inherent TCP/IP, and the network is adaptively switched according to the size of the data traffic, thereby improving the convenience of network switching.
图1是根据本发明一实施例的基于流量的网络切换方法的流程图,如图1所示,本发明实施例基于流量的网络切换方法,包括以下步骤:FIG. 1 is a flowchart of a traffic-based network switching method according to an embodiment of the present invention. As shown in FIG. 1 , a traffic-based network switching method according to an embodiment of the present invention includes the following steps:
步骤S110,根据预先设置的多个网络,执行网络接入,以接入多个网络中的一个网络。Step S110: Perform network access according to a plurality of networks set in advance to access one of the plurality of networks.
该多个网络至少包括:长期演进(Long Term Evolution,LTE)网络、Wi-Fi网络等。The plurality of networks include at least: a Long Term Evolution (LTE) network, a Wi-Fi network, and the like.
具体而言,可以在多个网络中随机选择一个网络,执行网络接入,也可以预先为多个网络设置优先级,按照该多个网络的优先级,顺次尝试执行网络接入,直至接入其中一个网络。Specifically, one network may be randomly selected from multiple networks to perform network access, or priority may be set for multiple networks in advance, and network access is sequentially attempted according to the priorities of the multiple networks. Enter one of the networks.
网络接入成功后,执行数据包的传输。After the network access is successful, the transmission of the data packet is performed.
步骤S120,根据在接入的网络中所传输的数据包的数量,判断是否执行网络切换,若是,则执行步骤S130;若否,则继续执行步骤S120。Step S120: determining whether to perform network switching according to the number of data packets transmitted in the accessed network, and if yes, executing step S130; if not, proceeding to step S120.
在网络中传输的数据包分为上行链路数据和下行链路数据。上行链路数据和下行链路数据都分别包含多个数据包,并且在多个数据包中包含ACK数据包。进一步地,上行链路中的ACK数据包用于终端应答网络,表示网络侧向终端发送的数据包已经被终端成功接收;下行链路中的ACK数据包用于网络应答终端,表示终端向网络侧发送的数据包已经被网络侧成功接收。Packets transmitted in the network are divided into uplink data and downlink data. Both the uplink data and the downlink data respectively contain a plurality of data packets, and ACK data packets are included in the plurality of data packets. Further, the ACK data packet in the uplink is used by the terminal to answer the network, and the data packet sent by the network side terminal to the terminal has been successfully received by the terminal; the ACK data packet in the downlink is used for the network response terminal, indicating that the terminal is to the network. The data packet sent by the side has been successfully received by the network side.
判断是否执行网络切换的步骤,具体包括:在接入的网络中获取传输的数据包的数量,进一步地,在上行链路和/或下行链路传输的多个数据包中,识别出ACK数据包;基于识别出的ACK数据包,获得上行链路和/或下行链路中相邻两ACK数据包之间的数据包数量;根据上行链路和/或下行 链路中相邻两ACK数据包之间的数据包数量,判断是否执行网络切换。如果在上行链路和/或下行链路中,相邻两ACK数据包之间的数据包数量大于预设的数量阈值,则判定执行网络切换。进一步地,可以预设第一数量阈值和第二数量阈值。如果在上行链路中,相邻两ACK数据包之间的数据包数量大于预设的第一数量阈值,和/或如果在下行链路中,相邻两ACK数据包之间的数据包数量大于预设的第二数量阈值,则判定执行网络切换。其中,第一数量阈值和第二数量阈值可以是经验值。The step of determining whether to perform network handover includes: obtaining the number of transmitted data packets in the accessed network, and further identifying the ACK data in multiple data packets transmitted in the uplink and/or the downlink. Packet; based on the identified ACK packet, obtaining the number of packets between two adjacent ACK packets in the uplink and/or downlink; according to uplink and/or downlink The number of packets between two adjacent ACK packets in the link determines whether to perform network switching. If in the uplink and/or downlink, the number of packets between two adjacent ACK packets is greater than a preset number threshold, then it is determined to perform a network switch. Further, the first quantity threshold and the second quantity threshold may be preset. If in the uplink, the number of packets between two adjacent ACK packets is greater than a preset first number threshold, and/or if in the downlink, the number of packets between two adjacent ACK packets If it is greater than the preset second number threshold, it is determined to perform network switching. Wherein, the first quantity threshold and the second quantity threshold may be empirical values.
在一个实施例中,如果在上行链路和/或下行链路中,连续出现相邻两ACK数据包之间的数据包数量大于预设的数量阈值的情况,且连续出现的次数大于设定的次数阈值,则判定执行网络切换。进一步地,可以预设第一数量阈值和第二数量阈值,以及第一次数阈值和第二次数阈值。如果在上行链路中,连续出现相邻两ACK数据包之间的数据包数量大于预设的第一数量阈值的情况,且连续出现的次数大于第一次数阈值,和/或如果在下行链路中,连续出现相邻两ACK数据包之间的数据包数量大于预设的第二数量阈值的情况,且连续出现的次数大于第二次数阈值,则判定执行网络切换。其中:第一数量阈值和第二数量阈值,以及第一次数阈值和第二次数阈值,可以是经验值。In one embodiment, if in the uplink and/or the downlink, the number of consecutive data packets between two adjacent ACK data packets is greater than a preset number threshold, and the number of consecutive occurrences is greater than the setting. The number of times threshold is determined to perform network switching. Further, the first quantity threshold and the second quantity threshold may be preset, and the first number of times threshold and the second number of times of the threshold. If in the uplink, the number of consecutively adjacent ACK packets is greater than a preset first number threshold, and the number of consecutive occurrences is greater than the first threshold, and/or if In the link, if the number of data packets between two adjacent ACK packets is greater than a preset second number threshold, and the number of consecutive occurrences is greater than the second threshold, it is determined that network switching is performed. Wherein: the first quantity threshold and the second quantity threshold, and the first number of times threshold and the second number of times threshold may be empirical values.
步骤S130,将接入的网络切换到另一网络;该另一网络包含在预先设置的多个网络中。Step S130, the accessed network is switched to another network; the other network is included in a plurality of networks set in advance.
当执行网络切换时,可以在预设的多个网络中选择一个网络并执行网络切换;也可以根据预先设置的网络优先级,将网络切换到下一优先级的网络。When performing network switching, one network may be selected and the network switching may be performed in a preset plurality of networks; or the network may be switched to the next priority network according to a preset network priority.
本发明实施例在数据流量大时自适应地进行网络切换,提高了网络切换方式的便捷性,无需对现有网络的硬件和软件进行升级,而且基于现有的TCP/IP就可以实现本发明实施例,并且本发明实施例考虑到用户对上网 流量的需求,在网络流量较大时,切换网络,这样可以提高上网速度,提升用户体验效果,并且可以避免网络拥塞的发生。The embodiment of the invention adaptively performs network switching when the data traffic is large, improves the convenience of the network switching mode, does not need to upgrade the hardware and software of the existing network, and can implement the invention based on the existing TCP/IP. Embodiments, and embodiments of the present invention take into account users access to the Internet The demand for traffic, when the network traffic is large, switch the network, which can improve the speed of the Internet, improve the user experience, and avoid network congestion.
为了更清晰地描述本发明,结合具体的实施例,分别对上行链路和下行链路判断是否执行网络切换的步骤进行描述。进一步地,本发明实施例还可以结合上行链路和下行链路中传输的数据包数量,来判断是否执行网络切换。In order to more clearly describe the present invention, the steps of determining whether to perform network switching in the uplink and downlink, respectively, will be described in conjunction with a specific embodiment. Further, the embodiment of the present invention may further determine whether to perform network switching by combining the number of data packets transmitted in the uplink and the downlink.
图2是根据本发明一实施例的针对上行链路执行网络切换的步骤的流程图,如图2所示,本发明实施例上行链路执行网络切换的方法,包括以下步骤:FIG. 2 is a flowchart of a step of performing network handover for an uplink according to an embodiment of the present invention. As shown in FIG. 2, a method for performing network handover in an uplink according to an embodiment of the present invention includes the following steps:
步骤S210,获得预先设置的多个网络的优先级。Step S210, obtaining priorities of a plurality of networks set in advance.
具体而言,第二终端从第一终端获得预先设置的多个网络的优先级。其中,第一终端是用户所使用的设备。第一终端例如是手机、平板电脑、计算机等。第一终端可以配置为实现与网络的数据交互。例如:第一终端可以上传数据至网络,第一终端也可以从网络下载数据。第二终端处于第一终端和网络之间,配置为向第一终端和网络传输数据包,并根据传输的数据包的数量,判断是否需要切换网络。也即是说,第一终端上传或下载的数据都要通过第二终端。Specifically, the second terminal obtains the priority of the plurality of networks set in advance from the first terminal. The first terminal is a device used by the user. The first terminal is, for example, a mobile phone, a tablet, a computer, or the like. The first terminal can be configured to implement data interaction with the network. For example, the first terminal can upload data to the network, and the first terminal can also download data from the network. The second terminal is located between the first terminal and the network, and is configured to transmit data packets to the first terminal and the network, and determine whether the network needs to be switched according to the number of transmitted data packets. That is to say, the data uploaded or downloaded by the first terminal must pass through the second terminal.
用户可以通过第一终端的用户界面设置多个可以接入的网络,并且为每个网络设置优先级。第二终端开始工作后,从第一终端获得第一终端设置的网络,以及每个网络的优先级。进一步地,第一终端将每个网络的优先级通过AT(Attention)指令发送到第二终端局域网侧,再由局域网侧发送到第二终端广域网侧。第二终端的局域网侧是指第一终端接入第二终端侧。第二终端的广域网侧是指第二终端接入网络侧。The user can set multiple networks that can be accessed through the user interface of the first terminal, and set priorities for each network. After the second terminal starts working, the network set by the first terminal and the priority of each network are obtained from the first terminal. Further, the first terminal sends the priority of each network to the second terminal local area network side through an AT (Attention) command, and then sends the second terminal to the second terminal wide area network side. The local area network side of the second terminal refers to the first terminal accessing the second terminal side. The WAN side of the second terminal refers to the second terminal accessing the network side.
步骤S220,接入最高优先级的网络。Step S220, accessing the network with the highest priority.
若第二终端按照网络优先级执行网络接入,则当第二终端获得具有最 高优先级的网络后,接入该最高优先级的网络。例如:用户在第一终端中设置WLAN网络和LTE网络,并选择WLAN网络或者LTE网络作为最高优先级网络。如果用户选择优先接入WLAN网络,则第二终端优先搜索Wi-Fi热点并接入,如果用户选择优先接入LTE网络,则第二终端优先接入LTE无线网络。If the second terminal performs network access according to the network priority, when the second terminal obtains the most After the high priority network, access to the highest priority network. For example, the user sets the WLAN network and the LTE network in the first terminal, and selects the WLAN network or the LTE network as the highest priority network. If the user chooses to preferentially access the WLAN network, the second terminal preferentially searches for and accesses the Wi-Fi hotspot. If the user chooses to preferentially access the LTE network, the second terminal preferentially accesses the LTE wireless network.
在第二终端接入网络后,第一终端向网络请求数据,从而产生下行流量。第一终端接收到来自网络的数据包后,向网络发送ACK数据包。在此过程中,第一终端还可以向网络发送上行数据,如多个数据包,这多个数据包和用于应答的ACK数据包混合在一起通过第二终端的局域网侧、广域网侧向网络发送。After the second terminal accesses the network, the first terminal requests data from the network, thereby generating downlink traffic. After receiving the data packet from the network, the first terminal sends an ACK packet to the network. In this process, the first terminal may also send uplink data, such as multiple data packets, to the network, and the multiple data packets and the ACK data packet for replying are mixed together through the local area network side of the second terminal, and the wide area network side network. send.
步骤S230,在广域网侧累计数据包的数量UL。In step S230, the number UL of the data packets is accumulated on the wide area network side.
第一终端发送的多个数据包(包含ACK数据包)经过第二终端的局域网侧,到达第二终端的广域网侧。在广域网侧,第二终端每接收到一个数据包就执行一次累计计数操作,如UL=UL+1。计数的初始值可以是一个经验值,例如计数的初始值为0。The plurality of data packets (including the ACK data packets) sent by the first terminal pass through the local area network side of the second terminal and reach the wide area network side of the second terminal. On the WAN side, the second terminal performs a cumulative counting operation every time a packet is received, such as UL=UL+1. The initial value of the count can be an empirical value, such as an initial value of zero.
步骤S240,判断当前数据包是否为ACK数据包,若是,则执行步骤S250;若否,则执行步骤S230,继续对接收的数据包进行累计。In step S240, it is determined whether the current data packet is an ACK data packet. If yes, step S250 is performed; if no, step S230 is executed to continue to accumulate the received data packet.
由于第一终端发送的多个数据包首先到达第二终端的局域网侧,再到达第二终端的广域网测。在局域网侧,第二终端监测来自第一终端的数据包,识别出其中的ACK数据包。进一步地,第二终端可以标记ACK数据包。The plurality of data packets sent by the first terminal first reach the local area network side of the second terminal, and then reach the wide area network measurement of the second terminal. On the LAN side, the second terminal monitors the data packet from the first terminal and identifies the ACK packet therein. Further, the second terminal can mark the ACK packet.
在广域网侧,第二终端根据标记来判断当前接收的数据包是否为ACK数据包。On the WAN side, the second terminal determines, according to the flag, whether the currently received data packet is an ACK data packet.
步骤S250,判断数据包数量UL是否大于第一数量阈值,若是,则执行步骤S270;若否,则执行步骤S260。 In step S250, it is determined whether the number of packets UL is greater than the first number threshold. If yes, step S270 is performed; if not, step S260 is performed.
步骤S260,数据包数量UL清零,以使步骤S230从计数初始值重新开始计数。In step S260, the number of packets UL is cleared to cause step S230 to restart counting from the count initial value.
步骤S270,判断数据包数量UL是否连续两次大于第一数量阈值,若是,则执行步骤S130;若否,则执行步骤S260。In step S270, it is determined whether the number of packets UL is twice greater than the first number threshold. If yes, step S130 is performed; if not, step S260 is performed.
这里,该两次为预设的第一次数阈值。数据包数量UL连续两次大于第一数量阈值,表示在连续出现的三个ACK数据包A、B、C中,A和B之间传输的数据包数量大于第一数量阈值,并且B和C之间传输的数据包数量也大于第一数量阈值。Here, the two times are preset first time thresholds. The number of packets UL is twice consecutively greater than the first number threshold, indicating that among the three consecutive ACK packets A, B, C, the number of packets transmitted between A and B is greater than the first number threshold, and B and C The number of packets transmitted between them is also greater than the first number threshold.
图3是根据本发明一实施例的针对下行链路执行网络切换的步骤的流程图,如图3所示,本发明实施例下行链路执行网络切换的方法,包括以下步骤:FIG. 3 is a flowchart of a step of performing network handover for a downlink according to an embodiment of the present invention. As shown in FIG. 3, a method for performing network handover on a downlink according to an embodiment of the present invention includes the following steps:
步骤S310-步骤S320可以参照步骤S210-步骤S220。Step S310 - step S320 may refer to step S210 - step S220.
步骤S330,在广域网侧累计数据包的数量DL。In step S330, the number DL of data packets is accumulated on the wide area network side.
这里,下行链路中的数据的传输方向是从网络到第一终端。所以,数据包首先到达第二终端的广域网侧。在广域网侧,第二终端对接收到的每个数据包进行累计计数,如,DL=DL+1。计数初始值可以是一个经验值。Here, the transmission direction of the data in the downlink is from the network to the first terminal. Therefore, the data packet first reaches the WAN side of the second terminal. On the WAN side, the second terminal performs a cumulative count on each received packet, for example, DL=DL+1. The count initial value can be an empirical value.
步骤S340,判断当前数据包是否为ACK数据包,若是,则执行步骤S350;若否,则执行步骤S330,继续对接收的数据包进行累计。Step S340, determining whether the current data packet is an ACK data packet, if yes, executing step S350; if not, executing step S330 to continue accumulating the received data packet.
这里,在第二终端的广域网侧,第二终端监测来自网络的每个数据包,识别出其中的ACK数据包。Here, on the wide area network side of the second terminal, the second terminal monitors each data packet from the network and identifies an ACK packet therein.
步骤S350,判断数据包数量DL是否大于第二数量阈值,若是,则执行步骤S370;若否,则执行步骤S360。In step S350, it is determined whether the number of packets DL is greater than the second threshold. If yes, step S370 is performed; if no, step S360 is performed.
步骤S360,数据包数量DL清零,以使步骤S330从计数初始值重新开始计数。In step S360, the number of packets DL is cleared to cause step S330 to restart counting from the count initial value.
步骤S370,判断数据包数量DL是否连续两次大于第二数量阈值,若 是,则执行步骤S130;若否,则执行步骤S360。Step S370, determining whether the number of data packets DL is twice greater than the second number threshold, if If yes, go to step S130; if no, go to step S360.
这里,该两次为预设的第二次数阈值。数据包数量DL连续两次大于第二数量阈值,表示在连续出现的三个ACK数据包E、F、G中,E和F之间传输的数据包数量大于第二数量阈值,并且F和G之间传输的数据包数量也大于第二数量阈值。Here, the two times are preset second time thresholds. The number of data packets DL is twice consecutively greater than the second number threshold, indicating that among the three consecutive ACK packets E, F, G, the number of data packets transmitted between E and F is greater than the second number threshold, and F and G The number of packets transmitted between them is also greater than the second number threshold.
本发明实施例还提供了一种基于流量的网络切换装置。图4是根据本发明一实施例的基于流量的网络切换装置的结构图。如图4所示,本发明实施例基于流量的网络切换装置包括:接入模块410、判断模块420及切换模块440;其中,The embodiment of the invention further provides a traffic switching based network switching device. 4 is a structural diagram of a traffic based network switching apparatus according to an embodiment of the present invention. As shown in FIG. 4, the traffic switching device according to the embodiment of the present invention includes: an access module 410, a determining module 420, and a switching module 440;
接入模块410配置为基于预先设置的多个网络,执行网络接入,以接入多个网络中的一个网络;The access module 410 is configured to perform network access based on multiple networks preset to access one of the plurality of networks;
进一步地,接入模块410具体配置为预先为多个网络设置优先级;按照多个网络的优先级,顺次执行网络接入,直至接入其中一个网络。Further, the access module 410 is specifically configured to set priorities for multiple networks in advance; and perform network access in sequence according to priorities of multiple networks until accessing one of the networks.
判断模块420配置为根据在接入的网络中所传输的数据包的数量,判断是否执行网络切换;当判定为否时,继续判断是否执行网络切换;The determining module 420 is configured to determine whether to perform network switching according to the number of data packets transmitted in the accessed network; when the determination is no, continue to determine whether to perform network switching;
切换模块440配置为在判断模块判定为是时,将接入的网络切换到另一网络;另一网络包含在多个网络中。The switching module 440 is configured to switch the accessed network to another network when the determining module determines to be YES; the other network is included in the plurality of networks.
所述装置还包括:识别与获得模块430配置为:在上行链路和/或下行链路传输的多个数据包中,识别出ACK数据包;基于识别出的ACK数据包,获得上行链路和/或下行链路中相邻两ACK数据包之间的数据包数量,作为所述在接入的网络中所传输的数据包的数量;The apparatus further includes the identification and acquisition module 430 configured to: identify an ACK packet in the plurality of data packets transmitted in the uplink and/or downlink; and obtain an uplink based on the identified ACK packet And/or the number of data packets between two adjacent ACK packets in the downlink as the number of data packets transmitted in the accessed network;
相应地,判断模块420具体配置为:如果在上行链路和/或下行链路中,相邻两ACK数据包之间的数据包数量大于预设的数量阈值,则判定执行网络切换。Correspondingly, the determining module 420 is specifically configured to determine to perform network switching if the number of data packets between two adjacent ACK data packets is greater than a preset number threshold in the uplink and/or downlink.
在一个实施例中,判断模块420具体配置为:如果在上行链路和/或下 行链路中,连续出现相邻两ACK数据包之间的数据包数量大于预设的数量阈值的情况,且连续出现的次数大于设定的次数阈值,则判定执行网络切换。In one embodiment, the determination module 420 is specifically configured to: if on the uplink and/or down In the line link, if the number of data packets between two adjacent ACK data packets continuously exceeds a preset number threshold, and the number of consecutive occurrences is greater than the set number of times threshold, it is determined that network switching is performed.
实际应用时,接入模块410及切换模块440可由基于流量的网络切换装置中的中央处理器(CPU,Central Processing Unit)、数字信号处理器(DSP,Digital Signal Processor)或可编程逻辑阵列(FPGA,Field-Programmable Gate Array)结合具体电路实现;判断模块420及识别与获得模块430可由基于流量的网络切换装置中的CPU、DSP或FPGA实现。In practical applications, the access module 410 and the switching module 440 may be a central processing unit (CPU), a digital signal processor (DSP), or a programmable logic array (FPGA) in a traffic-based network switching device. The Field-Programmable Gate Array is implemented in conjunction with a specific circuit; the determination module 420 and the identification and acquisition module 430 can be implemented by a CPU, DSP or FPGA in a flow-based network switching device.
本发明实施例所述的网络切换装置基本相应于前述的第二终端,由于第二终端的功能已经在图1至图3所示的方法实施例中进行了描述,故本实施例的描述中未详尽之处,可以参见前述实施例中的相关说明,在此不做赘述。The network switching device in the embodiment of the present invention basically corresponds to the foregoing second terminal. Since the function of the second terminal has been described in the method embodiment shown in FIG. 1 to FIG. 3, in the description of this embodiment, For details, refer to the related description in the foregoing embodiments, and no further details are provided herein.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。 The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
尽管为示例目的,已经公开了本发明的优选实施例,本领域的技术人员将意识到各种改进、增加和取代也是可能的,因此,本发明的范围应当不限于上述实施例。 While the preferred embodiments of the present invention have been disclosed for purposes of illustration, those skilled in the art will recognize that various modifications, additions and substitutions are possible, and the scope of the invention should not be limited to the embodiments described above.

Claims (14)

  1. 一种基于流量的网络切换方法,所述方法包括:A traffic-based network switching method, the method comprising:
    基于预先设置的多个网络,执行网络接入,以接入所述多个网络中的一个网络;Performing network access based on a plurality of networks set in advance to access one of the plurality of networks;
    根据在接入的网络中所传输的数据包的数量,确定执行网络切换;Determining to perform network switching according to the number of data packets transmitted in the accessed network;
    将所述接入的网络切换到另一网络;所述另一网络包含在所述多个网络中。Switching the accessed network to another network; the other network is included in the plurality of networks.
  2. 如权利要求1所述的方法,其中,所述方法还包括:确定不执行网络切换时,继续判断是否执行网络切换。The method of claim 1, wherein the method further comprises: determining to determine whether to perform network switching when the network switching is not performed.
  3. 如权利要求1所述的方法,其中,所述根据在接入的网络中所传输的数据包的数量,确定执行网络切换之前,所述方法还包括:The method of claim 1, wherein the method further comprises: before performing the network switching according to the number of data packets transmitted in the accessed network, the method further comprising:
    在上行链路和/或下行链路传输的多个数据包中,识别出应答ACK数据包;Recognizing an ACK packet in a plurality of data packets transmitted in the uplink and/or downlink;
    基于识别出的所述ACK数据包,获得上行链路和/或下行链路中相邻两ACK数据包之间的数据包数量,作为所述在接入的网络中所传输的数据包的数量。Obtaining, according to the identified ACK data packet, the number of data packets between two adjacent ACK data packets in the uplink and/or downlink as the number of data packets transmitted in the accessed network .
  4. 如权利要求3所述的方法,其中,所述根据在接入的网络中所传输的数据包的数量,确定执行网络切换,包括:The method of claim 3, wherein the determining to perform network switching based on the number of data packets transmitted in the accessed network comprises:
    上行链路和/或下行链路中,相邻两ACK数据包之间的数据包数量大于预设的数量阈值,确定执行网络切换。In the uplink and/or downlink, the number of data packets between two adjacent ACK data packets is greater than a preset number threshold, and it is determined that network switching is performed.
  5. 如权利要求3所述的方法,其中,所述根据在接入的网络中所传输的数据包的数量,确定执行网络切换,包括:The method of claim 3, wherein the determining to perform network switching based on the number of data packets transmitted in the accessed network comprises:
    上行链路和/或下行链路中,连续出现相邻两ACK数据包之间的数据包数量大于预设的数量阈值的情况,且连续出现的次数大于设定的次数阈值,确定执行网络切换。 In the uplink and/or downlink, the number of consecutive data packets between two adjacent ACK data packets is greater than a preset number threshold, and the number of consecutive occurrences is greater than a set number of times threshold, and the network switching is determined to be performed. .
  6. 如权利要求1至5任一项所述的方法,其中,所述基于预先设置的多个网络,执行网络接入,以接入所述多个网络中的一个网络,包括:The method according to any one of claims 1 to 5, wherein the performing network access to access one of the plurality of networks based on a plurality of networks set in advance comprises:
    预先为所述多个网络设置优先级;Prioritizing the plurality of networks in advance;
    按照所述多个网络的优先级,顺次尝试执行网络接入,直至接入其中一个网络。According to the priorities of the multiple networks, network access is sequentially attempted until one of the networks is accessed.
  7. 一种基于流量的网络切换装置,所述装置包括:A flow-based network switching device, the device comprising:
    接入模块,配置为基于预先设置的多个网络,执行网络接入,以接入所述多个网络中的一个网络;An access module, configured to perform network access based on multiple preset networks to access one of the multiple networks;
    判断模块,配置为根据在接入的网络中所传输的数据包的数量,确定执行网络切换;The determining module is configured to determine to perform network switching according to the number of data packets transmitted in the accessed network;
    切换模块,配置为在所述判断模块确定执行网络切换时,将所述接入的网络切换到另一网络;所述另一网络包含在所述多个网络中。And a switching module configured to switch the accessed network to another network when the determining module determines to perform a network handover; the another network is included in the multiple networks.
  8. 如权利要求7所述的装置,其中,所述判断模块,还配置为确定不执行网络切换时,继续判断是否执行网络切换。The apparatus according to claim 7, wherein the determining module is further configured to continue to determine whether to perform network switching when it is determined that network switching is not performed.
  9. 如权利要求7所述的装置,其中,所述装置还包括:识别与获得模块,配置为:在上行链路和/或下行链路传输的多个数据包中,识别出ACK数据包;并基于识别出的所述ACK数据包,获得上行链路和/或下行链路中相邻两ACK数据包之间的数据包数量,作为所述在接入的网络中所传输的数据包的数量。The apparatus of claim 7, wherein the apparatus further comprises: an identification and acquisition module configured to: identify ACK packets in a plurality of data packets transmitted in the uplink and/or downlink; Obtaining, according to the identified ACK data packet, the number of data packets between two adjacent ACK data packets in the uplink and/or downlink as the number of data packets transmitted in the accessed network .
  10. 如权利要求9所述的装置,其中,所述判断模块配置为:The apparatus of claim 9, wherein the determining module is configured to:
    上行链路和/或下行链路中,相邻两ACK数据包之间的数据包数量大于预设的数量阈值,确定执行网络切换。In the uplink and/or downlink, the number of data packets between two adjacent ACK data packets is greater than a preset number threshold, and it is determined that network switching is performed.
  11. 如权利要求9所述的装置,其中,所述判断模块配置为:The apparatus of claim 9, wherein the determining module is configured to:
    在上行链路和/或下行链路中,连续出现相邻两ACK数据包之间的数据包数量大于预设的数量阈值的情况,且连续出现的次数大于设定的次数阈 值,确定执行网络切换。In the uplink and/or the downlink, the number of consecutive data packets between two adjacent ACK data packets is greater than a preset number threshold, and the number of consecutive occurrences is greater than a set number of times threshold. The value determines the execution of the network switch.
  12. 如权利要求7至11任一项所述的装置,其中,所述接入模块配置为:预先为所述多个网络设置优先级;并按照所述多个网络的优先级,顺次尝试执行网络接入,直至接入其中一个网络。The apparatus according to any one of claims 7 to 11, wherein the access module is configured to: prioritize priorities of the plurality of networks; and sequentially perform execution according to priorities of the plurality of networks Network access until access to one of the networks.
  13. 一种终端,包括权利要求7-12任一项所述的装置。A terminal comprising the apparatus of any of claims 7-12.
  14. 一种计算机存储介质,所述计算机存储介质包括一组指令,当执行所述指令时,引起至少一个处理器执行如权利要求1至6任一项所述的基于流量的网络切换方法。 A computer storage medium comprising a set of instructions that, when executed, cause at least one processor to perform the flow based network switching method of any one of claims 1 to 6.
PCT/CN2014/088403 2014-03-26 2014-10-11 Flow-based network switching method and apparatus and terminal WO2015143863A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410117631.1 2014-03-26
CN201410117631.1A CN104955119B (en) 2014-03-26 2014-03-26 A kind of method for switching network based on flow, device and terminal

Publications (1)

Publication Number Publication Date
WO2015143863A1 true WO2015143863A1 (en) 2015-10-01

Family

ID=54169379

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/088403 WO2015143863A1 (en) 2014-03-26 2014-10-11 Flow-based network switching method and apparatus and terminal

Country Status (2)

Country Link
CN (1) CN104955119B (en)
WO (1) WO2015143863A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112752318A (en) * 2019-10-30 2021-05-04 深圳市万普拉斯科技有限公司 Network switching method and device, mobile terminal and readable storage medium
US11542493B2 (en) 2012-11-27 2023-01-03 The Children's Medical Center Corporation Targeting BCL11A distal regulatory elements for fetal hemoglobin reinduction

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106454975A (en) * 2016-09-14 2017-02-22 广东欧珀移动通信有限公司 Hotspot network switching method and terminal equipment
CN109309924B (en) * 2017-07-26 2022-06-03 北京小米移动软件有限公司 Data transmission method and device
CN109963312A (en) * 2017-12-26 2019-07-02 飞狐信息技术(天津)有限公司 A kind of method for switching network, system, link switch equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102438288A (en) * 2011-12-02 2012-05-02 深圳市融创天下科技股份有限公司 APN (Access Point Name) switch method and system as well as mobile terminal
US20140080485A1 (en) * 2012-09-19 2014-03-20 Samsung Electronics Co., Ltd Electronic device and method for changing network connection

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668322B (en) * 2009-09-17 2012-06-27 华为终端有限公司 Network switching method of terminal and terminal equipment
US8259680B2 (en) * 2010-01-25 2012-09-04 Qualcomm Incorporated Apparatus and method for facilitating efficient handover
CN102123483A (en) * 2011-02-23 2011-07-13 华为终端有限公司 Method and device for switching communication services of double-module mobile terminal
CN102970675B (en) * 2012-12-21 2016-01-13 东莞宇龙通信科技有限公司 Mobile terminal and data communication processing method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102438288A (en) * 2011-12-02 2012-05-02 深圳市融创天下科技股份有限公司 APN (Access Point Name) switch method and system as well as mobile terminal
US20140080485A1 (en) * 2012-09-19 2014-03-20 Samsung Electronics Co., Ltd Electronic device and method for changing network connection

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11542493B2 (en) 2012-11-27 2023-01-03 The Children's Medical Center Corporation Targeting BCL11A distal regulatory elements for fetal hemoglobin reinduction
CN112752318A (en) * 2019-10-30 2021-05-04 深圳市万普拉斯科技有限公司 Network switching method and device, mobile terminal and readable storage medium
CN112752318B (en) * 2019-10-30 2023-08-22 深圳市万普拉斯科技有限公司 Network switching method and device, mobile terminal and readable storage medium

Also Published As

Publication number Publication date
CN104955119A (en) 2015-09-30
CN104955119B (en) 2019-11-26

Similar Documents

Publication Publication Date Title
RU2658586C2 (en) Pdcp and flow control for divided unidirectional channel
CN104662814B (en) Method and apparatus for the autonomous cluster head selection for machine type communication (MTC)
US9883541B2 (en) Communication switching and establishing method and device
JP4843090B2 (en) Mobile station, base station apparatus, communication control method, and mobile communication system
WO2017117968A1 (en) Method and apparatus for branching data interface, terminal device and computer storage medium
JP2017502545A5 (en)
WO2015168909A1 (en) Data transmission control node, communication system and data transmission management method
WO2019080799A1 (en) Traffic processing method, user plane apparatus, and terminal device
US10165486B2 (en) Multiple-communications-standard transmission method and apparatus
CN110326269B (en) Data message transmission method and device
WO2015143863A1 (en) Flow-based network switching method and apparatus and terminal
CN109274596B (en) Data transmission method and related device
EP2965588B1 (en) Handoff prioritization in multi-rab calls
CN109120524B (en) Link aggregation method and related equipment
JP6454412B2 (en) Control message transmission method, apparatus, and computer storage medium
WO2013166670A1 (en) Method and device for configuring resources of uplink channel
WO2017008701A1 (en) Data transmission method, apparatus, and user device
WO2018058380A1 (en) Data transmission method, network device and terminal device
CN105451337A (en) Clear channel assessment threshold control method and device
WO2018107925A1 (en) Data stream processing method and apparatus, and computer storage medium
CN107302802B (en) Data transmission method and device
CN105338646A (en) Start control method and device for RTS/CTS mechanism
JP6263102B2 (en) WIRELESS TERMINAL, COMMUNICATION SYSTEM, PROGRAM, AND METHOD WHICH CAN SET WINDOW SIZE ACCORDING TO CONDUCTION LEVEL ON BACKHAUL
WO2017008697A1 (en) Data transmission method and device, multi-channel routing method, and user equipment
JP7305780B2 (en) Communication control method and user device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14886829

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14886829

Country of ref document: EP

Kind code of ref document: A1