CN105592515B - Network switching device and method - Google Patents

Network switching device and method Download PDF

Info

Publication number
CN105592515B
CN105592515B CN201610061811.1A CN201610061811A CN105592515B CN 105592515 B CN105592515 B CN 105592515B CN 201610061811 A CN201610061811 A CN 201610061811A CN 105592515 B CN105592515 B CN 105592515B
Authority
CN
China
Prior art keywords
network
data
communication network
terminal
mobile terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610061811.1A
Other languages
Chinese (zh)
Other versions
CN105592515A (en
Inventor
马英超
叶伟龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhongshan Power Supply Bureau of Guangdong Power Grid Co Ltd
Original Assignee
Zhongshan Power Supply Bureau of Guangdong Power Grid Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhongshan Power Supply Bureau of Guangdong Power Grid Co Ltd filed Critical Zhongshan Power Supply Bureau of Guangdong Power Grid Co Ltd
Priority to CN201610061811.1A priority Critical patent/CN105592515B/en
Publication of CN105592515A publication Critical patent/CN105592515A/en
Application granted granted Critical
Publication of CN105592515B publication Critical patent/CN105592515B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/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/22Performing reselection for specific purposes for handling the traffic

Landscapes

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

Abstract

The invention discloses a network switching device, which comprises: the first detection module is used for detecting the wireless signal intensity of a wireless network connected with the mobile terminal at the current moment; and the first starting module is used for starting a mobile data network channel of the mobile terminal when detecting that the wireless signal strength is smaller than a first preset threshold value and lasts for a first preset duration. The invention also provides a network switching method. When the wireless network connected with the mobile terminal has faults, is invalid and has poor network conditions, the method and the device can help the user to automatically open the mobile data network channel of the mobile terminal so as to realize automatic network switching, avoid the mobile terminal from breaking the network due to the instability of the wireless network, ensure the smooth and stable network surfing of the user, avoid the user from missing important network information, network notification and the like due to network problems, and improve the network surfing experience of the user.

Description

Network switching device and method
Technical Field
The present invention relates to the field of mobile communications technologies, and in particular, to a network switching apparatus and method.
Background
With the continuous development of mobile communication technology and the continuous abundance of network applications of mobile terminals (such as smart phones and the like), people have higher and higher requirements on the quality of network resources, and no longer seek free network resources one by one, particularly in areas with dense personnel and huge areas, such as high-speed railway stations, airports and the like, wireless network signals in partial areas are poor, the interference is large, the network resources which can be obtained by users are few, the users can not be guaranteed to surf the internet smoothly and stably, and the surfing behavior of the users is seriously influenced.
Disclosure of Invention
The invention mainly aims to provide a split screen display device and a split screen display method for a mobile terminal, and aims to solve the technical problem that the existing split screen technology cannot pointedly display related applications for a user to select.
To achieve the above object, an embodiment of the present invention provides a network switching apparatus, including:
the first detection module is used for detecting the wireless signal intensity of a wireless network connected with the mobile terminal at the current moment;
and the first starting module is used for starting a mobile data network channel of the mobile terminal when detecting that the wireless signal strength is smaller than a first preset threshold value and lasts for a first preset duration.
Preferably, the network switching apparatus further includes:
the second detection module is used for detecting the external wireless signal intensity of a wireless network which can be connected with the outside of the mobile terminal;
and the connection speed-limiting module is used for connecting the corresponding wireless network and closing or limiting the speed of the mobile data network channel of the mobile terminal when detecting that the intensity of the external wireless signal is greater than a second preset threshold value and lasts for a second preset duration.
Preferably, the network switching apparatus further includes:
the traffic counting module is used for counting the traffic consumed by the mobile terminal through the mobile data network channel;
and the prompting module is used for closing or limiting the mobile data network channel of the mobile terminal when the flow consumed by statistics reaches a preset flow threshold value, and prompting the current residual flow of the user.
In order to achieve the above object, an embodiment of the present invention provides a network switching method, where the network switching method includes:
detecting the wireless signal intensity of a wireless network connected with the mobile terminal at the current moment;
and when the wireless signal strength is detected to be smaller than a first preset threshold value and lasts for a first preset duration, a mobile data network channel of the mobile terminal is opened.
Preferably, the step of opening the mobile data network path of the mobile terminal further includes:
detecting external wireless signal intensity of a wireless network which can be connected with the outside of the mobile terminal;
and when detecting that the intensity of the external wireless signal is greater than a second preset threshold value and the second preset duration lasts, connecting the corresponding wireless network, and closing or limiting the mobile data network channel of the mobile terminal.
Preferably, the step of opening the mobile data network path of the mobile terminal further includes:
counting the flow consumed by the mobile terminal through a mobile data network channel;
and when the flow consumed by statistics reaches a preset flow threshold value, closing or limiting the mobile data network channel of the mobile terminal, and outputting preset prompt information.
The method comprises the steps that the wireless signal intensity of a wireless network connected with a mobile terminal at the current moment is detected through a first detection module; then, when the wireless signal intensity is detected to be smaller than a first preset threshold value and the first preset time duration lasts, the first starting module starts a mobile data network channel of the mobile terminal, namely when a wireless network connected with the mobile terminal breaks down, is invalid and has poor network conditions, the mobile data network channel of the mobile terminal can be automatically started by a user to realize automatic network switching, the phenomenon that the mobile terminal breaks down due to instability of the wireless network is avoided, smooth and stable internet surfing of the user is guaranteed, the phenomenon that the user omits important network information, network notification and the like due to network problems is avoided, and internet surfing experience of the user is improved.
Drawings
FIG. 1 is a schematic diagram of a network topology of a multi-channel data download system of a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 3 is a flowchart of a terminal end of a multi-channel data downloading method according to a second embodiment of the present invention;
FIG. 4 is a flow chart of a server side of a multi-channel data downloading method according to a second embodiment of the present invention
FIG. 5 is a flowchart illustrating an exception handling mechanism incorporated in a multi-channel data download method according to a second embodiment of the present invention;
FIG. 6 is a network topology diagram of a multi-channel data download system of a third embodiment of the present invention;
fig. 7 is a flowchart of a terminal side of a multi-channel data download method according to a fourth embodiment of the present invention;
FIG. 8 is a flow chart of a server side of a multi-channel data download method according to a fourth embodiment of the present invention;
FIG. 9 is a timing diagram of a multi-channel data download method according to a fourth embodiment of the present invention;
FIG. 10 is a flowchart illustrating a multi-channel data downloading method according to a fourth embodiment of the present invention after adding an exception handling mechanism;
FIG. 11 is a timing diagram of a multi-channel data download method according to a fourth embodiment of the present invention;
fig. 12 is a functional block diagram of a fifth embodiment of the network switching device according to the present invention;
fig. 13 is a functional block diagram of a network switching device according to a sixth embodiment of the invention;
fig. 14 is a functional block diagram of a network switching device according to a seventh embodiment of the invention;
fig. 15 is a flowchart illustrating a network handover method according to a fifth embodiment of the present invention;
fig. 16 is a flowchart illustrating a network handover method according to a sixth embodiment of the present invention;
fig. 17 is a flowchart illustrating a network handover method according to a seventh embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The mobile terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a smart phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a navigation device, and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. In the following, it is assumed that the terminal is a mobile terminal. However, it will be understood by those skilled in the art that the configuration according to the embodiment of the present invention can be applied to a fixed type terminal in addition to elements particularly used for moving purposes.
In the embodiment of the present invention, the multichannel data downloading system and the communication protocol are described with reference to fig. 1 to 11:
referring to fig. 1, a schematic diagram of a network topology structure of a multi-channel data downloading system according to an embodiment of the present invention includes: a terminal 100, at least two communication stations connected with the terminal 100 through a communication network, and a server 400 communicatively connected with the communication stations.
It should be understood that the communication station may be: an LTE site, a GSM site, a GPRS site, a CDMA site, an EDGE site, a WLAN site, a CDMA-2000 site, a TD-SCDMA site, a WCDMA site or a WIFI site. Correspondingly, the communication network may be: an LTE communication network, a GSM communication network, a GPRS communication network, a CDMA communication network, an EDGE communication network, a WLAN communication network, a CDMA-2000 communication network, a TD-SCDMA communication network, a WCDMA communication network, or a WIFI communication network.
The server 400 may comprise suitable hardware, logic, circuitry and/or code that may be operable to store and provide data to be downloaded by the terminal, including app applications, games, etc. Furthermore, in the embodiment of the present invention, the server 400 includes a decision module 401 for splitting the data packet and distributing the data download traffic according to the network quality measurement report.
The communication station may comprise suitable hardware, logic, circuitry and/or code that may be operable to provide a data transmission channel. The data transmission channel is a physical data connection channel between the terminal 100 and the server 400.
Referring to fig. 2, the terminal 100 of an embodiment of the present invention may include a communication unit 110, an audio/video (a/V) input unit 120, a user input unit 130, a sensing unit 140, an output unit 150, a memory 160, an interface unit 170, a controller 180, a power supply unit 190, and the like. Fig. 2 shows a terminal having various components, but it is to be understood that not all of the shown components are required to be implemented. More or fewer components may alternatively be implemented.
The communication unit 110 typically includes one or more components that allow communication between the terminal 100 and a communication system or communication network. For example, the communication unit 110 may include a broadcast receiving module 111, a mobile communication module 112, a wireless internet module 113, a short-range communication module 114, and a location information module 115. In an embodiment of the present invention, the communication unit 110 includes at least one mobile communication module 112 and at least one wireless internet module 113.
The broadcast receiving module 111 receives a broadcast signal and/or broadcast associated information from an external broadcast management server via a broadcast channel. The broadcast channel may include a satellite channel and/or a terrestrial channel.
The mobile communication module 112 transmits and/or receives radio signals to and/or from at least one of a base station (e.g., access point, node B, etc.), an external terminal, and a server. Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received according to text and/or multimedia messages.
The wireless internet module 113 supports wireless internet access of the mobile terminal. The module may be internally or externally coupled to the terminal. The wireless internet Access technology related to the module may include Wireless Local Area Network (WLAN) (Wi-Fi), wireless broadband (Wibro), worldwide interoperability for microwave Access (Wimax), High Speed Downlink Packet Access (HSDPA), and the like.
The short-range communication module 114 is a module for supporting short-range communication. Some examples of short-range communication technologies include bluetooth, Radio Frequency Identification (RFID), infrared data Association (IrDA), Ultra Wideband (UWB), zigbee, and the like.
The location information module 115 is a module for checking or acquiring location information of the mobile terminal. A typical example of the position information module is a Global Positioning System (GPS).
In an embodiment of the present invention, the communication unit 110 includes at least one mobile communication module 112 and at least one wireless internet module 113. Thus, the terminal 100 of embodiments of the present invention may be in at least two different communication networks.
In the embodiment of the present invention, when the terminal 100 has a data download task, the terminal 100 performs channel quality measurement on a plurality of communication networks in which the terminal is currently located. In the embodiment of the present invention, specifically, when the terminal has a data download task, an available communication network is detected; if only one communication network is available, the data downloading task is completed by the communication network alone. If there are two or more available communication networks, the channel quality measurement is performed on a plurality of communication networks where the terminal is currently located, respectively.
The channel quality measurement includes at least one of: measuring the signal strength of the communication network, measuring the signal-to-noise ratio of the communication network, measuring the link estimation delay of the communication network, measuring the network bandwidth of the communication network, and acquiring the bandwidth support capability of the terminal.
Preferably, the terminal may estimate and measure the link delay by sending the preamble packet. Namely: the terminal sends a ping packet or a custom test data packet similar to the ping packet through the communication network, and records the time of returning ACK, thereby obtaining the link estimation delay. The ping packet and the custom test packet herein do not contain user data and are only used for link quality measurement. In addition, the signal strength, the signal-to-noise ratio, and the network bandwidth can be obtained from a broadcast message (a broadcast message issued by a base station site or the like).
The bandwidth support capability of the terminal 100 is determined by its own software, hardware environment (e.g., carrier aggregation manner adopted by the terminal 100, etc.), and information thereof may be stored in the terminal 100.
In the embodiment of the present invention, the terminal 100 generates a channel quality measurement result according to a protocol rule agreed with the server 400 in advance, and combines the channel quality measurement result with the data download request to generate a first data packet, and sends the first data packet to the server 400.
The data download request includes identification information for identifying an index of the data resource (e.g., an index ID of the APP1 to be downloaded) that the terminal 100 needs to download. The index may be an index primary key in a database table.
Preferably, the first data packet may adopt a message structure of TCP/IP or UDP. When the first data packet is sent, the communication network with the best channel quality can be selected for online data access according to the channel quality measurement result. For example, if the first communication network (e.g., WIFI network) has the strongest signal strength, the smallest link delay, and the highest signal-to-noise ratio, the first communication network is preferentially selected for uplink data access, and the first data packet is sent to the server 400 via the first communication network.
In the embodiment of the present invention, in addition to measuring the channel quality in real time, the channel quality measurement result may be obtained by:
(1) after the channel quality is measured in real time for the first time, the channel quality measurement result of the communication network where the terminal is located is stored, and when the terminal is located in the same communication network environment again, the channel quality measurement result can be directly obtained.
(2) Through statistical analysis, the estimated values of the signal intensity, the signal-to-noise ratio, the link estimation delay and the network bandwidth of each communication network are obtained, and the estimated values are stored in the terminal, so that the information of the signal intensity, the signal-to-noise ratio, the link estimation delay and the network bandwidth can be obtained by inquiring the stored information.
The server 400 allocates a data download task to each communication network according to the channel quality measurement result. Specifically, when the server 400 receives the first data packet, the unpacking operation is performed according to the agreed protocol rule to obtain the channel quality measurement result and the data downloading request, so that the server 400 can obtain the channel quality measurement result, the data resource required to be downloaded by the terminal, the size of the data resource, and other information.
Preferably, in the embodiment of the present invention, the server 400 allocates the data downloading task to each communication network according to the following preset algorithm:
step 10: allocating weights for signal strength, signal-to-noise ratio, link estimation delay, network bandwidth and bandwidth support capacity in advance;
step 11: calculating the channel quality of each communication network according to the received channel quality measurement result and the corresponding weight value;
step 12: and normalizing the channel quality of each communication network to determine the data downloading task of each communication network.
The assignment of data download tasks by the server 400 is described in detail below with reference to an example:
in this example, it is assumed that the terminal 100 is in two available communication networks (a first communication network and a second communication network).
The server 400 allocates the following weights to the signal strength, the signal-to-noise ratio, and the link estimation delay in advance, respectively: 0.4, 0.1, 0.2. In practice, the smaller the network bandwidth and the bandwidth support capability of the terminal, the smaller the network bandwidth and the bandwidth support capability, so that the network bandwidth and the bandwidth support capability are distributed as a whole with the weight: 0.3. if the network bandwidth is smaller than the bandwidth supporting capability, the weight of the network bandwidth is 0.3 and the weight of the bandwidth supporting capability is 0; if the bandwidth supporting capability is smaller than the network bandwidth, the weight of the bandwidth supporting capability is 0.3 and the weight of the network bandwidth is 0; if the two are equal, the network bandwidth or bandwidth support capability is arbitrarily selected to allocate a weight of 0.3, and the other weight is 0.
According to the weight setting, if the received channel quality measurement results of the first communication network are respectively: the signal strength is 4, the signal-to-noise ratio is 12db, the link estimation delay is 0.1ms, the network bandwidth is 20MHz, and the bandwidth support capability is 20MHz, then the channel quality of the first communication network is:
P1=0.4×4+0.1×12+0.2×0.1+0.3×20+0×20=8.82
the received channel quality measurement results of the second communication network are respectively: the signal strength is 4, the signal-to-noise ratio is 10db, the link estimation delay is 0.5ms, the network bandwidth is 5MHz, and the bandwidth support capability is 20MHz, then the channel quality of the second communication network is:
P2=0.4×4+0.1×10+0.2×0.5+0.3×5+0×20=4.2
then, P1 and P2 were normalized separately as follows:
the data download task for the first communication network is 68% and the data download task for the second communication network is 32%.
It should be understood that the data download tasks may be distributed to each communication network according to other algorithms, for example, an average distribution manner (for example, when the channel quality of two communication networks where the user is located is close, the data download tasks are distributed to each communication network by 50%), or a direct distribution manner according to the link estimation delay (for example, if the channel quality of one communication network is poor, for example, the link estimation delay is greater than 1ms, all the data download tasks are distributed to the other communication network). The assignment of the data download task may be set by the user, for example, the user may set the data download task of the first communication network to be fixed to 20% and the data download task of the second communication network to be fixed to 80% in order to save the traffic of the first communication network.
Therefore, after the data downloading task of each communication network is determined, the server divides the data required to be downloaded by the terminal into a plurality of data packets according to the data downloading task of each communication network. Preferably, the server splits the data packets according to a rule agreed with the terminal in advance, adds a packet header to each data packet after splitting to form a plurality of new data packets, and loads the plurality of data packets into the cache queue. In one embodiment, the data packets in the buffer queue are buffered, and the server does not delete the data packets until the terminal is confirmed to completely download the data packets.
For example, according to the above data downloading tasks of 68% and 32%, the data can be divided into a second data packet and a third data packet, which are downloaded through the first communication network and the second communication network respectively, wherein the data amount of the second data packet accounts for 68% of the total data amount, and the data amount of the third data packet accounts for 32% of the total data amount.
The server 400 divides the data to be downloaded by the terminal into a plurality of data packets according to the data download task of each communication network and loads the data packets into the cache queue. The terminal 100 downloads the corresponding data packet from the buffer queue through each communication network.
After the data packets are completely downloaded, the terminal 100 reassembles the data packets downloaded through each communication network to obtain the data that the terminal needs to download. Preferably, after the terminal 100 finishes downloading the data, unpacking the data according to a rule agreed with the server to obtain a data packet, and recombining (e.g., overlapping) the data packet according to an agreed server identifier to obtain complete data, thereby implementing downloading of the multi-channel data.
In this embodiment, according to the channel quality measurement result of the terminal, the channel quality of each communication network is analyzed, and the link quality, the link delay, the maximum bandwidth supported by the link, and the terminal capability (mainly, the bandwidth support capability, the carrier aggregation scheme, and the like) are comprehensively considered to comprehensively consider the more optimal communication network, so that the data download task (data load) of each communication network is adjusted, and the more optimal node is enabled to undertake more data packet download tasks. The received data packets are recombined at the terminal by splitting the data packets and then transmitting the data packets through multiple channels. Therefore, multichannel downloading of data is achieved, idle resources are fully utilized, the peak rate which can be achieved in the downloading process is the sum of multiple channels, the splitting of a large data packet is reduced, the overall transmission rate is improved, the throughput of the terminal is improved, and the user experience is improved.
In order to avoid the problems of data downloading failure and the like caused by communication network abnormality, an abnormality processing mechanism is added to the multi-channel data downloading system in the embodiment of the present invention, that is, in the data downloading process, when the terminal 100 detects that the communication network connection is abnormal (for example, the terminal 100 is disconnected from the WIFI communication network or the LTE communication network), the abnormality processing mechanism is started to download data. Specifically, the exception handling mechanism of this embodiment may be implemented in several ways:
the first method is as follows: the terminal 100 detects whether there is an abnormal communication network during data downloading, and if so, detects a time length during which the abnormal communication network (e.g., WIFI communication network) is abnormal, and if the time length exceeds a preset time length T1, sends a status packet to the server 400 through another normal communication network (e.g., LTE communication network) to notify the server 400 that there is an abnormality in the communication network and an interruption position for downloading through the abnormal communication network.
The server 400 receives the status packet, i.e. extracts the data packet to be downloaded (i.e. the data that has not been downloaded) from the cache, so that the terminal 100 switches to other normal communication networks, and continues downloading the data packet from the interrupt position to complete the downloading of the data resource (breakpoint resume).
The second method comprises the following steps: the server 400 compares the downloaded data amount with the abnormal download threshold value when receiving the status packet, and if the downloaded data amount is smaller than the abnormal download threshold value, notifies the terminal 100 to delete the data packet downloaded through the abnormal communication network, switches to the normal communication network, and downloads data again; and if the data is larger than the abnormal downloading threshold, downloading the data according to the first mode.
The third method comprises the following steps: the terminal 100 deletes the data packet downloaded through the abnormal communication network and switches to the normal communication network to download the data again.
Specifically, if there are 2 or more normal communication networks, the switching may be performed according to the above-mentioned channel quality measurement result (for example, switching to the communication network with the best channel quality measurement result), or according to the size of the data download amount completed by the normal communication network (for example, switching to the communication network with the largest data download amount), or performing the switching by considering the channel quality measurement result and the size of the completed data download amount comprehensively.
In this embodiment, the communication network anomaly includes the terminal being out of its coverage, a communication network service outage, and the like.
After the data is completely downloaded, the terminal 100 reassembles a plurality of data packets downloaded through different communication networks to obtain the data that the terminal needs to download.
By adding an exception handling mechanism, the problem of data downloading caused by network environment mutation can be avoided, the situation of data downloading failure under the abnormal condition of a communication network can be avoided, the high-speed and complete downloading of data is further ensured, the throughput of the terminal is improved, and the user experience is optimized.
Second embodiment
Referring to fig. 3 and 4, a flowchart of a multi-channel data downloading method according to a first embodiment of the present invention is shown. As shown in fig. 3, in the multi-channel data downloading method according to the first embodiment of the present invention, at the terminal, in step S01, the terminal performs channel quality measurement on each of the plurality of communication networks where the terminal is currently located. And after the channel quality measurement result is obtained, the terminal combines the channel quality measurement result into the data downloading request to generate a first data packet and sends the first data packet to the server. In step S02, the terminal downloads data through the plurality of communication networks according to the data download task assigned by the server to each communication network based on the channel quality measurement result. Specifically, the terminal downloads corresponding data packets through each communication network, wherein the data packets are data packets corresponding to each communication network, and the data packets are obtained by splitting data to be downloaded by the terminal into a plurality of data packets corresponding to each communication network based on a data downloading task of each communication network. In step S03, the terminal reassembles the plurality of data packets downloaded through different communication networks to obtain the data that the terminal needs to download.
Referring to fig. 4, at the side of the server, in step S101, a channel quality measurement result from the terminal is received. In step S102, a data download task is allocated for each communication network based on the channel quality measurement result. Specifically, after the server determines the data downloading task of each communication network, the server splits the data to be downloaded by the terminal into a plurality of data packets according to the data downloading task of each communication network, and loads the data packets into a cache queue for the terminal to download. When in use
It should be understood that the implementation principle and details of the multi-channel data downloading method of the second embodiment of the present invention are the same as those of the first embodiment described above, and are not described herein again.
In addition, in order to avoid the problem of communication network abnormality in the data downloading process, an abnormality processing mechanism is added in the multi-channel data downloading method in the embodiment of the present invention, that is, in the data downloading process, when the terminal 100 detects that the communication network connection is abnormal (for example, the terminal 100 is separated from the WIFI communication network or the LTE communication network), the abnormality processing mechanism is started to perform data downloading. Referring to fig. 5, specifically, after adding the exception handling mechanism, the method for downloading multi-channel data according to the embodiment of the present invention includes:
s11, the terminal measures the channel quality of each of the plurality of communication networks in which the terminal is currently located, and sends the channel quality measurement result to the server.
And S12, the server receives the channel quality measurement result from the terminal and distributes data downloading tasks for each communication network based on the channel quality measurement result.
And S13, the terminal downloads data through the plurality of communication networks according to the data downloading tasks distributed by the server for each communication network based on the channel quality measurement result.
S14, the terminal detects whether the data download is completed, if so, executes step S20, and if not, executes step S15.
S15, the terminal detects whether there is an abnormal communication network, if so, detects the abnormal time length of the abnormal communication network in step S16, and determines that the time length exceeds the preset time length T1 (e.g., 1 second) in step S17, otherwise, continues to execute step S14. If the preset time duration is exceeded, a status packet is sent to the server through other normal communication networks in step S18 to notify the server that there is an abnormality in the communication network and an interruption location for downloading through the abnormal communication network, and step S19 is executed, otherwise, step S14 is continued.
In step S19, when the server receives the status packet, it extracts the data packet to be downloaded from the buffer queue, and performs breakpoint transmission, or notifies the terminal to delete the data downloaded via the abnormal network and re-download the data packet, and then performs step S14. Specifically, the data can be continuously downloaded in any one of the following three ways:
the first method is as follows: carrying out breakpoint continuous transmission through a normal communication network, namely: and the server receives the state packet, extracts the data packet to be downloaded from the buffer queue, switches to a normal communication network, and continues to download the data packet from the interrupt position.
The second method comprises the following steps: the server 400 compares the downloaded data volume with the abnormal download threshold value when receiving the status packet, and if the downloaded data volume is smaller than the abnormal download threshold value, notifies the terminal 100 to delete the data packet downloaded through the abnormal communication network, and switches to the normal communication network to download the data again; and if the data is larger than the abnormal downloading threshold, downloading the data according to the first mode.
The third method comprises the following steps: the terminal 100 deletes the data packet downloaded through the abnormal communication network and switches to the normal communication network to download the data again.
Specifically, if there are 2 or more normal communication networks, the switching may be performed according to the above-mentioned channel quality measurement result (for example, switching to the communication network with the best channel quality measurement result), or according to the size of the data download amount completed by the normal communication network (for example, switching to the communication network with the largest data download amount), or performing the switching by considering the channel quality measurement result and the size of the completed data download amount comprehensively.
In this embodiment, the communication network anomaly includes the terminal being out of its coverage, a communication network service outage, and the like.
In step S20, the terminal reassembles the plurality of data packets downloaded through different communication networks to obtain the data that the terminal needs to download.
Before data downloading is not finished, if an abnormal communication network is recovered to be normal, the downloading position at the moment can be recorded, the communication network is switched to carry out breakpoint continuous transmission, and the network can be ignored, and other networks finish downloading. It should be understood that other ways may be used, and the embodiment of the present invention is not limited thereto.
The multichannel data downloading method of the embodiment of the invention analyzes the channel quality of each communication network according to the channel quality measurement result of the terminal, comprehensively considers the link quality, the link delay, the maximum bandwidth supported by the link and the terminal capability (mainly bandwidth supporting capability, carrier aggregation scheme and the like) to comprehensively consider the more optimal communication network, thereby adjusting the data downloading task (data load) of each communication network and leading the more optimal node to bear more data packet downloading tasks. The received data packets are recombined at the terminal by splitting the data packets and then transmitting the data packets through multiple channels. Therefore, multichannel downloading of data is achieved, idle resources are fully utilized, the peak rate which can be achieved in the downloading process is the sum of multiple channels, the splitting of a large data packet is reduced, the overall transmission rate is improved, the throughput of the terminal is improved, and the user experience is improved. And by adding an exception handling mechanism, the problem of data downloading caused by network environment mutation can be avoided, the situation of data downloading failure under the abnormal condition of a communication network can be avoided, the high-speed and complete downloading of data is further ensured, the throughput of the terminal is improved, and the user experience is optimized.
Third embodiment
Fig. 6 is a network topology diagram of a multi-channel data downloading system according to a third embodiment of the present invention. In this embodiment, the communication networks available to the terminal 100 include an LTE communication network and a WIFI communication network, and the terminal 100 implements multi-channel data downloading through the LTE communication network and the WIFI communication network. Specifically, the multichannel data download system of the embodiment includes: server 400, LTE communication network 301, WIFI communication network 302, LTE station 201, WIFI station 202, and terminal 100. The terminal 100 is in communication connection with an LTE site 201 and a WIFI site 202 respectively; the LTE station 201 and the WIFI station 202 are respectively in communication connection with the server 400.
The LTE station 201 may comprise suitable hardware, logic, circuitry, and/or code that may be operable to provide a first data transmission channel. The first data transmission path establishes a first physical data connection path between the terminal 100 and the server 400. Specifically, the LTE station 201 faces the terminal 100, and the LTE communication network 301 faces the server 400.
The WIFI station 202 may comprise suitable hardware, logic, circuitry, and/or code that may be operable to provide a second data transmission channel. The second data channel is a second physical data connection channel between the terminal 100 and the server 400. The physical data channel includes: wireless channels and wired channels (between WIFI sites and servers). Specifically, the WIFI station 202 faces the terminal 100, and the WIFI communication network 302 faces the server 400.
The terminal 100 is configured to perform channel quality measurement on the LTE communication network 301 and the WIFI communication network 302 where the terminal is currently located.
In the embodiment of the invention, the terminal generates the channel measurement result according to the protocol rule agreed with the server in advance, combines the channel quality measurement result into the data downloading request to generate the first data packet, and sends the first data packet to the server.
The data downloading request contains identification information for identifying the index (for example, the index ID of the APP 1) of the data needing to be downloaded by the terminal. The index may be an index primary key in a database table.
Preferably, the first data packet may adopt a message structure of TCP/IP or UDP. When the first data packet is sent, a communication network (e.g., the WIFI communication network 302) with the best channel quality may be selected for online data access according to the channel quality measurement result.
The server 400 allocates data download tasks to the LTE communication network 301 and the WIFI communication network 302 according to the channel quality measurement result.
Specifically, the server receives the first data packet, performs unpacking operation according to the agreed protocol rule to obtain the channel measurement result and the data download request, so that the server can obtain the channel measurement result, the data resource required to be downloaded by the terminal, the size of the data resource, and the like.
Preferably, the server 400 may distribute the data downloading task by the weighting method, the average distribution, the distribution based on the estimated delay of the link, the distribution based on the user setting, and the like.
Thus, after determining the data download task of each communication network, the server 400 divides the data to be downloaded by the terminal 100 into the second data packet and the third data packet according to the data download task of each communication network. Preferably, the server 400 splits the data packets according to a rule agreed with the terminal in advance, adds a packet header to each data packet after splitting, forms a second data packet and a third data packet, and loads the second data packet and the third data packet into the cache queue. In one embodiment, the server 40 does not delete the buffered packets in the buffer queue until it is confirmed that the terminal 100 has completely downloaded.
For example, according to the data download tasks of 68% and 32%, the data can be split into a second data packet and a third data packet, wherein the data amount of the second data packet accounts for 68% of the total data amount, and the data amount of the third data packet accounts for 32% of the total data amount.
According to the data downloading task, the terminal 100 downloads the second data packet and the third data packet from the cache queue through the LTE communication network 301 and the WIFI communication network 302, respectively.
After the data packets are completely downloaded, the terminal 100 reassembles the data packets downloaded through the LTE communication network 301 and the WIFI communication network 302 to obtain data that the terminal needs to download. Preferably, after the terminal finishes downloading the data, unpacking the data according to a rule agreed with the server to obtain a data packet, and recombining (for example, overlapping) the data packet according to an agreed server identifier to obtain complete data, thereby realizing downloading of the multi-channel data.
In order to avoid data downloading failure caused by abnormality of the WIFI communication network or the LTE communication network in the data downloading process, an abnormality handling mechanism is added in the embodiment of the present invention, that is, in the data downloading process, when the terminal 100 detects that the communication network connection is abnormal (for example, the terminal 100 is disconnected from the WIFI communication network or the LTE communication network), the abnormality handling mechanism is started to download data. Specifically, the exception handling mechanism of this embodiment may be implemented in several ways:
the first method is as follows: the terminal 100 detects whether there is an abnormal communication network during data downloading, and if so, detects a time length during which the abnormal communication network (e.g., WIFI communication network) is abnormal, and if the time length exceeds a preset time length T1, sends a status packet to the server 400 through another normal communication network (e.g., LTE communication network) to notify the server 400 that there is an abnormality in the communication network and an interruption position for downloading through the abnormal communication network.
The server 400 receives the status packet, i.e. extracts the data packet to be downloaded (i.e. the data that has not been downloaded) from the cache, so that the terminal 100 switches to other normal communication networks, and continues downloading the data packet from the interrupt position to complete the downloading of the data resource (breakpoint resume).
The second method comprises the following steps: the server 400 compares the downloaded data amount with the abnormal download threshold value when receiving the status packet, and if the downloaded data amount is smaller than the abnormal download threshold value, notifies the terminal 100 to delete the data packet downloaded through the abnormal communication network, switches to the normal communication network, and downloads data again; and if the data is larger than the abnormal downloading threshold, downloading the data according to the first mode.
The third method comprises the following steps: the terminal 100 deletes the data packet downloaded through the abnormal communication network and switches to the normal communication network to download the data again.
The multichannel data download system of this embodiment realizes the multichannel download of data through LTE communication network and WIFI communication network, has realized LTE + WIFI's data aggregation, make full use of idle resource for can reach the peak rate and be the multichannel sum in the download process, through reducing big data packet split, improve holistic transmission rate, improve the throughput at terminal, promote user experience. And by adding an exception handling mechanism, the problem of data downloading caused by network environment mutation can be avoided, the situation of data downloading failure under the abnormal condition of a communication network can be avoided, the high-speed and complete downloading of data is further ensured, the throughput of the terminal is improved, and the user experience is optimized.
Fourth embodiment
Referring to fig. 7 and 8, a flowchart of a multi-channel data downloading method according to a fourth embodiment of the present invention is shown. Referring to fig. 7, in this embodiment, at one end of the terminal, in step S21, the terminal performs channel quality measurement on the LTE communication network and the WIFI communication network where the terminal is currently located, respectively. And after the channel quality measurement result is obtained, the terminal combines the channel quality measurement result into the data downloading request to generate a first data packet and sends the first data packet to the server. In step S22, the terminal downloads data through the LTE communication network and the WIFI communication network, respectively, according to the data download task allocated by the server to the LTE communication network and the WIFI communication network based on the channel quality measurement result. Specifically, the terminal downloads corresponding data packets through each communication network, wherein the data packets are data packets corresponding to the LTE communication network and the WIFI communication network, and the data packets are split into a plurality of data packets corresponding to the LTE communication network and the WIFI communication network by the server based on a data downloading task of each communication network. In step S23, the terminal reassembles the multiple data packets downloaded through the LTE communication network and the WIFI communication network to obtain the data that the terminal needs to download.
Referring to fig. 8, at the side of the server, in step S201, a channel quality measurement result from the terminal is received. In step S202, data download tasks are allocated for the LTE communication network and the WIFI communication network based on the channel quality measurement result. After determining the data downloading task of each communication network, the server divides the data to be downloaded by the terminal into two data packets (a second data packet and a third data packet) according to the data downloading task of each communication network, and loads the data packets into a cache queue for the terminal to download.
In the embodiment, the data aggregation of LTE + WIFI is realized, the multichannel downloading of data is realized, idle resources are fully utilized, the peak rate which can be reached in the downloading process is the sum of multiple channels, the large data packet is split and reduced, the overall transmission rate is improved, the throughput of the terminal is improved, and the user experience is improved.
Fig. 9 is a timing chart of a multi-channel data downloading method according to a fourth embodiment of the present invention. Terminal 100 establishes a first network connection with LTE site 201 and terminal 100 establishes a second network connection with WIFI site 202, such that terminal 100 is in both the LTE communication network and the WIFI communication network. When the terminal 100 has data to be downloaded, channel quality measurement is performed, and the channel quality measurement result is incorporated into the download request to generate a first data packet. The terminal 100 transmits the first data packet to the server 400 through the WIFI communication network or the LTE communication network (shown in fig. 6 as being transmitted through the LTE network). After receiving the first data packet, the server 400 returns an acknowledgement frame ACK to the terminal 100. The server 400 analyzes the first data packet to obtain a channel quality measurement result, and allocates a data download task for the LTE communication network and the WIFI communication network according to the channel quality measurement result. The server 400 allocates the data to be downloaded by the terminal 100 to the second data packet and the third data packet according to the data download task, and loads the second data packet and the third data packet into the buffer queue. The terminal 100 downloads the second data packet and the third data packet through the LTE communication network and the WIFI communication network, respectively. After the second data packet and the third data packet are downloaded through the dual channels, the terminal 100 performs unpacking and reassembly to obtain a complete data packet, so that the terminal 100 completes data downloading and returns an acknowledgement frame ACK to the server through the WIFI communication network or the LTE communication network.
In order to avoid data downloading failure caused by abnormality of the WIFI communication network or the LTE communication network in the data downloading process, an abnormality processing mechanism is added, that is, in the data downloading process, when the terminal 100 detects that the communication network connection is abnormal (for example, the terminal 100 is separated from the WIFI communication network or the LTE communication network), the abnormality processing mechanism is started to download data.
Referring to fig. 10, after the exception handling mechanism is added, in step S31, the terminal performs channel quality measurement on the LTE communication network and the WIFI communication network where the terminal is currently located, and sends the channel quality measurement result to the server. And after the channel quality measurement result is obtained, the terminal combines the channel quality measurement result into the data downloading request to generate a first data packet and sends the first data packet to the server. In step S32, the server receives the channel quality measurement result from the terminal, and allocates a data download task for the LTE communication network and the WIFI communication network based on the channel quality measurement result. After determining the data downloading task of each communication network, the server divides the data to be downloaded by the terminal into two data packets (a second data packet and a third data packet) according to the data downloading task of each communication network, and loads the two data packets into a cache queue. In step S33, the terminal downloads data through the LTE communication network and the WIFI communication network, respectively, according to the data download task allocated by the server to the LTE communication network and the WIFI communication network based on the channel quality measurement result.
In step S34, the terminal detects whether the data download is completed, and if so, executes step S40, and if not, executes step S35.
In step S35, the terminal detects whether there is an abnormal communication network, if so, detects the abnormal time length of the abnormal communication network in step S36, and determines that the time length exceeds a preset time length T1 (e.g., 1 second) in step S37, otherwise, continues to execute step S34. If the preset time duration is exceeded, a status packet is sent to the server through other normal communication networks in step S38 to notify the server that there is an abnormality in the communication network and an interruption location for downloading through the abnormal communication network, and step S39 is executed, otherwise, step S34 is continued.
In step S39, when the server receives the status packet, it extracts the data packet to be downloaded from the buffer queue, and performs breakpoint transmission, or notifies the terminal to delete the data downloaded via the abnormal network and re-download the data packet, and then performs step S34. Specifically, the data can be continuously downloaded in any one of the following three ways:
the first method is as follows: carrying out breakpoint continuous transmission through a normal communication network, namely: and the server receives the state packet, extracts the data packet to be downloaded from the buffer queue, switches to a normal communication network, and continues to download the data packet from the interrupt position.
The second method comprises the following steps: the server 400 compares the downloaded data volume with the abnormal download threshold value when receiving the status packet, and if the downloaded data volume is smaller than the abnormal download threshold value, notifies the terminal 100 to delete the data packet downloaded through the abnormal communication network, and switches to the normal communication network to download the data again; and if the data is larger than the abnormal downloading threshold, downloading the data according to the first mode.
The third method comprises the following steps: the terminal 100 deletes the data packet downloaded through the abnormal communication network and switches to the normal communication network to download the data again.
In step S40, the terminal reassembles the plurality of data packets downloaded through different communication networks to obtain the data that the terminal needs to download.
Fig. 11 is a timing chart of a multi-channel data downloading method according to a fourth embodiment of the present invention. Terminal 100 establishes a first network connection with LTE site 201 and terminal 100 establishes a second network connection with WIFI site 202, such that terminal 100 is in both the LTE communication network and the WIFI communication network. When the terminal 100 has data to be downloaded, channel quality measurement is performed, and the channel quality measurement result is incorporated into the download request to generate a first data packet. The terminal 100 transmits the first data packet to the server 400 through the WIFI communication network or the LTE communication network (shown in fig. 6 as being transmitted through the LTE network). After receiving the first data packet, the server 400 returns an acknowledgement frame ACK to the terminal 100. The server 400 analyzes the first data packet to obtain a channel quality measurement result, and allocates a data download task for the LTE communication network and the WIFI communication network according to the channel quality measurement result. The server 400 allocates the data to be downloaded by the terminal 100 to the second data packet and the third data packet according to the data download task, and loads the second data packet and the third data packet into the buffer queue. The terminal 100 downloads the second data packet and the third data packet through the LTE communication network and the WIFI communication network, respectively. In the downloading process, if it is detected that the communication network is abnormal and the abnormal duration exceeds the preset value, a status packet is generated and sent to the server 400 through the normal communication network (shown as the LTE communication network in fig. 9). The status packet contains the interrupt location. After receiving the status packet, the server 400 extracts the data packet to be downloaded from the cache queue, and switches to the normal communication network to enable the terminal 100 to continue downloading the data packet from the interrupted location (or continue downloading the data packet in the above-mentioned manner two or three). Therefore, after the second data packet and the third data packet are downloaded through the dual channels, the terminal 100 performs unpacking and reassembly to obtain a complete data packet. The terminal 100 completes the data download, and the normal communication network (shown as the LTE communication network in fig. 9) returns an acknowledgement frame ACK to the server.
Before data downloading is not finished, if an abnormal communication network is recovered to be normal, the downloading position at the moment can be recorded, the communication network is switched to carry out breakpoint continuous transmission, and the network can be ignored, and other networks finish downloading. It should be understood that other ways may be used, and the embodiment of the present invention is not limited thereto.
The multichannel data download system of this embodiment realizes the multichannel download of data through LTE communication network and WIFI communication network, has realized LTE + WIFI's data aggregation, make full use of idle resource for can reach the peak rate and be the multichannel sum in the download process, through reducing big data packet split, improve holistic transmission rate, improve the throughput at terminal, promote user experience. And by adding an exception handling mechanism, the problem of data downloading caused by network environment mutation can be avoided, the situation of data downloading failure under the abnormal condition of a communication network can be avoided, the high-speed and complete downloading of data is further ensured, the throughput of the terminal is improved, and the user experience is optimized.
By the multichannel data downloading method and the multichannel data downloading system, according to the channel quality measurement result of the terminal, the channel quality of each communication network is analyzed, the link quality, the link delay, the maximum bandwidth supported by the link and the terminal capability (mainly bandwidth supporting capability, a carrier aggregation scheme and the like) are comprehensively considered, and a better communication network is comprehensively considered, so that the data downloading task (data load) of each communication network is adjusted, a better node bears more data packet downloading tasks, multichannel downloading of data is realized, idle resources are fully utilized, the peak rate can be the sum of multiple channels in the downloading process, the integral transmission rate is improved by splitting a large data packet to be small, the throughput of the terminal is improved, and the user experience is improved. And by adding an exception handling mechanism, the problem of data downloading caused by network environment mutation can be avoided, the situation of data downloading failure under the abnormal condition of a communication network can be avoided, the high-speed and complete downloading of data is further ensured, the throughput of the terminal is improved, and the user experience is optimized. On the other hand, the data aggregation of LTE + WIFI is realized, idle resources are fully utilized, the downlink rate peak value of the terminal can break through the rate limit of LTE or WIFI under the existing network, the downlink rate reaches the superposition of the rate peak values of the LTE and the WIFI, and the throughput rate of the existing terminal is greatly improved; the download rate of the user can be increased exponentially, and the user experience is improved.
Based on the hardware structure and the communication device structure of the mobile terminal, the invention provides various embodiments of the split-screen display device of the mobile terminal, and the network switching device is a part of the mobile terminal.
Referring to fig. 12, the present invention provides a network switching apparatus, in a fifth embodiment of the network switching apparatus, the apparatus comprising:
the first detection module 10 is configured to detect a wireless signal strength of a wireless network to which the mobile terminal is connected at the current time;
the WIreless network providing the WIreless signal may be a wifi (WIreless-Fidelity) hotspot, a zigbee (zigbee protocol) hotspot, or other WIreless hotspots, taking the wifi hotspot as an example, a wifi hotspot list is obtained, and if the mobile terminal is connected to only one wifi hotspot, the first detection module 10 detects the WIreless signal intensity provided by the wifi hotspot in real time to compare with a first preset threshold; if the mobile terminal is connected to a plurality of wifi hotspots at the same time, the first detection module 10 detects the wireless signal intensity provided by all the wifi hotspots in real time, and compares the wireless signal with the maximum signal intensity with a preset first preset threshold value as a reference. For example, the mobile terminal is simultaneously connected to wifi hotspots a and B, the signal strength of wifi hotspot a is 10 units (for example, the unit may be decibel), the signal strength of wifi hotspot B is 20 units, and the wireless signal strength of wifi hotspot B is compared with the first preset threshold.
The first starting module 20 is configured to start a mobile data network channel of the mobile terminal when detecting that the wireless signal strength is smaller than a first preset threshold and lasts for a first preset duration.
When the intensity of the wireless signal received by the mobile terminal is detected to be smaller than a first preset threshold value, timing is started, and the intensity of the wireless signal received by the mobile terminal is continuously detected; when detecting that the intensity of the wireless signal received by the mobile terminal is less than the first preset threshold value for a first preset duration (for example, 10s), the first enabling module 20 enables the mobile data network channel of the mobile terminal, for example, if a 4G (fourth generation mobile communication technology) card is installed inside the mobile terminal, the 4G network of the mobile terminal is enabled. And if the intensity of the wireless signal received by the mobile terminal is recovered to be normal within the first preset time length, namely the intensity is greater than a first preset threshold value, timing is cancelled.
Furthermore, to avoid a situation: the wireless signal intensity of the wireless hotspot is high, but the bandwidth provided by the wireless hotspot is low, that is, the download speed of the mobile terminal after receiving the wireless signal is low, so that when the wireless signal intensity of the wireless network connected with the mobile terminal at the current moment is detected, the download speed provided by the wireless signal is detected at the same time, if the download speed is lower than a preset download speed (for example, 10Kb/s) and lasts for a third preset time (for example, 10s), the user can use the wireless network to ensure the operation of the related network application, so that the mobile data network channel of the mobile terminal is also opened at this time to ensure the network bandwidth required by internet access, and the situation of network disconnection is avoided.
In this embodiment, the first detection module 10 detects the wireless signal strength of the wireless network connected to the mobile terminal at the current moment; then, when it is detected that the wireless signal intensity is smaller than the first preset threshold and lasts for the first preset duration, the first opening module 20 opens the mobile data network channel of the mobile terminal, that is, when a wireless network (such as wifi) connected to the mobile terminal fails, is invalid and has poor network status, the mobile data network channel of the mobile terminal can be automatically opened by a user to realize automatic network switching, thereby avoiding network disconnection of the mobile terminal due to instability of the wireless network, ensuring smooth and stable network access of the user, avoiding the user from missing important network information, network notification and the like due to network problems, and improving the user experience of network access.
Further, on the basis of the fifth embodiment of the network switching apparatus of the present invention, a sixth embodiment of the network switching apparatus is proposed, in the sixth embodiment, the network switching apparatus further includes:
a second detection module 30 for detecting an external wireless signal strength of a wireless network externally connectable to the mobile terminal;
and the connection speed-limiting module 40 is used for connecting the corresponding wireless network and closing or limiting the mobile data network channel of the mobile terminal when detecting that the intensity of the external wireless signal is greater than the second preset threshold value and continues for a second preset duration.
After the mobile data network channel of the mobile terminal is opened, the external wireless signal intensity of the wireless network connectable outside the scene where the mobile terminal is located is detected by the second detection module 30, if the detected external wireless signal intensity is greater than the second preset duration, that is, if the mobile terminal detects that the signal intensity of the external wireless network is greater and the network environment is better, the connection speed-limiting module 40 controls the mobile terminal to connect to the corresponding wireless network, and simultaneously closes or limits the mobile data network channel of the mobile terminal, so that when the external wireless network returns to normal, the mobile data network channel of the mobile terminal is closed or limited in time, and the user is helped to save the mobile network traffic needing to be paid.
In addition, the download speed allowed by the mobile data network channel of the mobile terminal may be correspondingly adjusted according to the magnitude of the external wireless signal strength, where the adjustment range of the download speed is 0 to V (preset maximum download speed), for example, when the external wireless signal strength is greater than a second preset threshold, the external wireless signal strength is divided into three levels, i.e., low, medium and high, according to a preset rule, and when the external wireless signal strength is at a low level, the download speed of the mobile data network channel of the mobile terminal is limited to 0.8V; when the intensity of the external wireless signal is in a medium level, the download speed of the mobile data network channel of the mobile terminal is limited to 0.5V, and when the intensity of the external wireless signal is in a high level, the download speed of the mobile data network channel of the mobile terminal is limited to 0, so that the download speed of the mobile data network channel of the mobile terminal is intelligently and dynamically adjusted according to the intensity of the external wireless signal.
Further, on the basis of the fifth embodiment of the network switching apparatus of the present invention, a seventh embodiment of the network switching apparatus is proposed, and in the seventh embodiment, the network switching apparatus further includes:
a traffic statistic module 50, configured to count traffic consumed by the mobile terminal through the mobile data network channel;
and the prompting module 60 is configured to close or limit the mobile data network channel of the mobile terminal when the flow consumed by statistics reaches a preset flow threshold, and prompt the user of the current remaining flow.
After the mobile data network channel of the mobile terminal is opened, the traffic counting module 50 counts the traffic consumed by the mobile data network channel of the mobile terminal, when the counted consumed traffic reaches a preset traffic threshold (for example, 100M), which indicates that the network behavior performed by the user using the mobile terminal consumes more traffic at this time, the user needs to be reminded, at this time, the prompt module 60 outputs a preset prompt message (the prompt message may be in the form of one or more of voice, image, video, and vibration), the content of the hint information may include the current remaining traffic of the user, a prompt to the user to check if there is a heavy traffic consuming application that is running hidden, meanwhile, the prompt module 60 closes or limits the mobile data network channel of the mobile terminal, so as to prevent the mobile terminal from consuming too much mobile network traffic to cause that the monthly traffic consumed by the user exceeds the standard.
In addition, on the basis of the sixth embodiment of the network switching apparatus of the present invention, the network switching apparatus further includes:
a traffic statistic module 50, configured to count traffic consumed by the mobile terminal through the mobile data network channel;
and the prompting module 60 is configured to close or limit the mobile data network channel of the mobile terminal when the flow consumed by statistics reaches a preset flow threshold, and prompt the user of the current remaining flow.
The present invention also provides a network switching method, which is mainly applied to a mobile terminal, and in a fifth embodiment of the network switching method, referring to fig. 8, the network switching method includes:
step S10, detecting the wireless signal intensity of the wireless network connected with the mobile terminal at the current moment;
the WIreless network providing the WIreless signal can be a wifi (WIreless-Fidelity) hotspot, a zigbee (zigbee protocol) hotspot and other WIreless hotspots, taking the wifi hotspot as an example, a wifi hotspot list is obtained, and if the mobile terminal is connected with only one wifi hotspot, the WIreless signal intensity provided by the wifi hotspot is detected in real time to be compared with a first preset threshold; if the mobile terminal is connected with a plurality of wifi hotspots simultaneously, the wireless signal intensity provided by all the wifi hotspots is detected in real time, and the wireless signal with the maximum signal intensity is used as a reference to be compared with a preset first preset threshold value. For example, the mobile terminal is simultaneously connected to wifi hotspots a and B, the signal strength of wifi hotspot a is 10 units (for example, the unit may be decibel), the signal strength of wifi hotspot B is 20 units, and the wireless signal strength of wifi hotspot B is compared with the first preset threshold.
Step S20, when it is detected that the wireless signal strength is less than the first preset threshold and lasts for the first preset duration, the mobile data network channel of the mobile terminal is opened.
When the intensity of the wireless signal received by the mobile terminal is detected to be smaller than a first preset threshold value, timing is started, and the intensity of the wireless signal received by the mobile terminal is continuously detected; when detecting that the intensity of the wireless signal received by the mobile terminal is less than a first preset threshold value for a first preset duration (for example, 10s), opening a mobile data network channel of the mobile terminal, for example, if a 4G (fourth generation mobile communication technology) card is installed inside the mobile terminal, opening a 4G network of the mobile terminal. And if the intensity of the wireless signal received by the mobile terminal is recovered to be normal within the first preset time length, namely the intensity is greater than a first preset threshold value, timing is cancelled.
Furthermore, to avoid a situation: the wireless signal intensity of the wireless hotspot is high, but the bandwidth provided by the wireless hotspot is low, that is, the download speed of the mobile terminal after receiving the wireless signal is low, so that when the wireless signal intensity of the wireless network connected with the mobile terminal at the current moment is detected, the download speed provided by the wireless signal is detected at the same time, if the download speed is lower than a preset download speed (for example, 10Kb/s) and lasts for a third preset time (for example, 10s), the user can use the wireless network to ensure the operation of the related network application, so that the mobile data network channel of the mobile terminal is also opened at this time to ensure the network bandwidth required by internet access, and the situation of network disconnection is avoided.
In the embodiment, the wireless signal strength of the wireless network connected with the mobile terminal at the current moment is detected; then, when the wireless signal intensity is detected to be smaller than a first preset threshold value and the first preset duration lasts, a mobile data network channel of the mobile terminal is started, namely when a wireless network (such as wifi) connected with the mobile terminal breaks down, is invalid and has poor network conditions, the mobile data network channel of the mobile terminal can be automatically started by a user to realize automatic network switching, the phenomenon that the mobile terminal breaks down due to instability of the wireless network is avoided, smooth and stable internet surfing of the user is guaranteed, the phenomenon that the user omits important network information, network notification and the like due to network problems is avoided, and internet surfing experience of the user is improved.
Further, on the basis of the fifth embodiment of the network handover method of the present invention, a sixth embodiment of the network handover method is proposed, and in the sixth embodiment, after the step of opening the mobile data network channel of the mobile terminal, the method further includes:
step S30, detecting the external wireless signal intensity of the wireless network which can be connected with the outside of the mobile terminal;
and step S40, when the external wireless signal strength is detected to be greater than the second preset threshold value and the second preset duration continues, connecting the corresponding wireless network, and closing or limiting the mobile data network channel of the mobile terminal.
After a mobile data network channel of the mobile terminal is opened, detecting the external wireless signal intensity of a wireless network which can be connected outside a scene where the mobile terminal is located in real time, and if the detected external wireless signal intensity is greater than a second preset duration, namely the mobile terminal detects that the signal intensity of the external wireless network is greater and the network environment is better, controlling the mobile terminal to be connected with the corresponding wireless network and simultaneously closing or limiting the mobile data network channel of the mobile terminal, so that when the external wireless network is recovered to be normal, the mobile data network channel of the mobile terminal is closed or limited in time, and the mobile network flow needing to be paid is saved for a user.
In addition, the download speed allowed by the mobile data network channel of the mobile terminal may be correspondingly adjusted according to the magnitude of the external wireless signal strength, where the adjustment range of the download speed is 0 to V (preset maximum download speed), for example, when the external wireless signal strength is greater than a second preset threshold, the external wireless signal strength is divided into three levels, i.e., low, medium and high, according to a preset rule, and when the external wireless signal strength is at a low level, the download speed of the mobile data network channel of the mobile terminal is limited to 0.8V; when the intensity of the external wireless signal is in a medium level, the download speed of the mobile data network channel of the mobile terminal is limited to 0.5V, and when the intensity of the external wireless signal is in a high level, the download speed of the mobile data network channel of the mobile terminal is limited to 0, so that the download speed of the mobile data network channel of the mobile terminal is intelligently and dynamically adjusted according to the intensity of the external wireless signal.
Further, on the basis of the fifth embodiment of the network handover method of the present invention, a seventh embodiment of the network handover method is proposed, and in the seventh embodiment, after the step of opening the mobile data network channel of the mobile terminal, the method further includes:
step S50, counting the flow consumed by the mobile terminal through the mobile data network channel;
and step S60, when the flow consumed by statistics reaches a preset flow threshold, closing or limiting the mobile data network channel of the mobile terminal, and outputting preset prompt information.
After a mobile data network channel of a mobile terminal is opened, flow consumed by the mobile data network channel of the mobile terminal is counted, when the counted flow reaches a preset flow threshold (for example, 100M), it is indicated that a user consumes more flow by using a network behavior performed by the mobile terminal at the moment, the user needs to be reminded of paying attention, preset prompt information (the prompt information can be in one or more of voice, image, video and vibration) is output at the moment, the content of the prompt information can comprise the current residual flow of the user, the user is reminded of whether an application consuming large flow exists or not to carry out hidden operation, meanwhile, the mobile data network channel of the mobile terminal is closed or limited, and the phenomenon that the monthly consumed flow of the user exceeds the standard due to the fact that the mobile terminal consumes too much mobile network flow is prevented.
In addition, on the basis of the sixth embodiment of the network switching method of the present invention, after the step of opening the mobile data network path of the mobile terminal, the method further includes:
step S50, counting the flow consumed by the mobile terminal through the mobile data network channel;
and step S60, when the flow consumed by statistics reaches a preset flow threshold, closing or limiting the mobile data network channel of the mobile terminal, and outputting preset prompt information.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A network switching apparatus, comprising:
the first detection module is used for detecting the wireless signal intensity of a wireless network connected with the mobile terminal at the current moment;
the first starting module is used for starting a mobile data network channel of the mobile terminal when detecting that the wireless signal strength is smaller than a first preset threshold value and lasts for a first preset duration;
the second detection module is used for detecting the external wireless signal intensity of a wireless network which can be connected with the outside of the mobile terminal;
the connection speed-limiting module is used for detecting the downloading speed of the connected wireless network when the wireless signal strength is detected to be greater than a first preset threshold value, and starting a mobile data network channel of the mobile terminal when the downloading speed is less than a preset downloading speed and lasts for a third preset duration;
and when the external wireless signal strength is detected to be greater than a second preset threshold value and the second preset duration lasts, connecting the corresponding wireless network, and correspondingly adjusting the download speed allowed by the mobile data network channel of the mobile terminal according to the external wireless signal strength.
2. The network switching apparatus of claim 1, wherein the network switching apparatus further comprises:
the second detection module is used for detecting the external wireless signal intensity of a wireless network which can be connected with the outside of the mobile terminal;
and the connection speed-limiting module is used for connecting the corresponding wireless network and closing or limiting the speed of the mobile data network channel of the mobile terminal when detecting that the intensity of the external wireless signal is greater than a second preset threshold value and lasts for a second preset duration.
3. The network switching apparatus according to claim 1 or 2, wherein the network switching apparatus further comprises:
the traffic counting module is used for counting the traffic consumed by the mobile terminal through the mobile data network channel;
and the prompting module is used for closing or limiting the mobile data network channel of the mobile terminal when the flow consumed by statistics reaches a preset flow threshold value, and prompting the current residual flow of the user.
4. The network switching apparatus of claim 1, wherein the network switching apparatus further comprises:
the quality detection module is used for respectively measuring the channel quality of the LTE communication network and the WIFI communication network where the terminal is located and sending the channel quality measurement result to the server;
and the data downloading module is used for downloading data through the LTE communication network and the WIFI communication network respectively according to data downloading tasks distributed by the server for the LTE communication network and the WIFI communication network based on the channel quality measurement result.
5. The network switching apparatus of claim 4, wherein the data download module downloads data over an LTE communication network and a WIFI communication network, respectively, and comprises:
the terminal downloads corresponding data packets through each communication network, wherein the data packets are data packets corresponding to the LTE communication network and the WIFI communication network, and the data packets are data packets which are divided into two by the server based on the data downloading task of each communication network and are required to be downloaded by the terminal;
the terminal recombines the data packets downloaded through the LTE communication network and the WIFI communication network to obtain the data required to be downloaded by the terminal.
6. A network switching method, characterized in that the network switching method comprises:
detecting the wireless signal intensity of a wireless network connected with the mobile terminal at the current moment;
when the wireless signal intensity is detected to be greater than a first preset threshold value, detecting the downloading speed of a connected wireless network, and when the downloading speed is less than the preset downloading speed and lasts for a third preset duration, starting a mobile data network channel of the mobile terminal;
when the wireless signal strength is detected to be smaller than a first preset threshold value and lasts for a first preset duration, a mobile data network channel of the mobile terminal is opened;
after the step of opening the mobile data network channel of the mobile terminal, the method further comprises the following steps:
detecting external wireless signal intensity of a wireless network which can be connected with the outside of the mobile terminal;
and when the external wireless signal intensity is detected to be greater than the second preset threshold value and the second preset duration lasts, connecting the corresponding wireless network, and correspondingly adjusting the download speed allowed by the mobile data network channel of the mobile terminal according to the external wireless signal intensity of the connected network.
7. The network handover method of claim 6, wherein the step of opening the mobile data network tunnel of the mobile terminal is followed by further comprising:
detecting external wireless signal intensity of a wireless network which can be connected with the outside of the mobile terminal;
and when detecting that the intensity of the external wireless signal is greater than a second preset threshold value and the second preset duration lasts, connecting the corresponding wireless network, and closing or limiting the mobile data network channel of the mobile terminal.
8. The network handover method according to claim 6 or 7, wherein the step of opening the mobile data network tunnel of the mobile terminal further comprises:
counting the flow consumed by the mobile terminal through a mobile data network channel;
and when the flow consumed by statistics reaches a preset flow threshold value, closing or limiting the mobile data network channel of the mobile terminal, and outputting preset prompt information.
9. The network handover method of claim 6, wherein the method further comprises:
respectively measuring the channel quality of an LTE communication network and a WIFI communication network where the terminal is located, and sending the channel quality measurement result to a server;
and respectively downloading data through the LTE communication network and the WIFI communication network according to data downloading tasks distributed to the LTE communication network and the WIFI communication network by the server based on the channel quality measurement result.
10. The network handover method according to claim 9, wherein the method further comprises:
downloading corresponding data packets through each communication network respectively, wherein the data packets are data packets which are divided into two data packets corresponding to an LTE communication network and a WIFI communication network by a server based on a data downloading task of each communication network;
the terminal recombines the data packets downloaded through the LTE communication network and the WIFI communication network to obtain the data required to be downloaded by the terminal.
CN201610061811.1A 2016-01-28 2016-01-28 Network switching device and method Active CN105592515B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610061811.1A CN105592515B (en) 2016-01-28 2016-01-28 Network switching device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610061811.1A CN105592515B (en) 2016-01-28 2016-01-28 Network switching device and method

Publications (2)

Publication Number Publication Date
CN105592515A CN105592515A (en) 2016-05-18
CN105592515B true CN105592515B (en) 2020-01-10

Family

ID=55931624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610061811.1A Active CN105592515B (en) 2016-01-28 2016-01-28 Network switching device and method

Country Status (1)

Country Link
CN (1) CN105592515B (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105722133A (en) * 2016-01-28 2016-06-29 努比亚技术有限公司 Network switching device and method
CN105939381B (en) * 2016-06-14 2019-10-29 Tcl移动通信科技(宁波)有限公司 A kind of controlling terminal automatically switches the method and system of downloading file mode
CN106131904A (en) * 2016-09-14 2016-11-16 中国联合网络通信集团有限公司 A kind of method for switching network, network switching device and mobile terminal
CN106358225B (en) * 2016-09-20 2017-08-11 广东欧珀移动通信有限公司 A kind of processing method of network data, device and mobile terminal
CN106413049A (en) * 2016-10-13 2017-02-15 四川速宝网络科技有限公司 Mobile phone wifi network accelerator and method thereof
CN106792956A (en) * 2017-01-20 2017-05-31 深圳前海弘稼科技有限公司 Plantation equipment and method for switching network
CN107317862A (en) * 2017-06-27 2017-11-03 昝立民 The system of chain terminal system, distribution management method and the shared equipment of management
CN107454639B (en) * 2017-09-21 2020-07-14 惠州Tcl移动通信有限公司 Network automatic switching method, mobile terminal and storage medium
CN108337699B (en) * 2018-01-23 2020-08-18 上海载德信息科技股份有限公司 Internet surfing method and device, mobile terminal and storage medium
CN109756940B (en) * 2018-06-19 2021-06-01 北京字节跳动网络技术有限公司 Network switching method and mobile terminal
CN109041101B (en) * 2018-08-24 2022-03-18 北京小米移动软件有限公司 WIFI cut-off processing method, terminal, server and storage medium
CN110113597A (en) * 2019-04-08 2019-08-09 视联动力信息技术股份有限公司 A kind of view networking data channel detection methods and system
CN111093235B (en) * 2019-11-05 2021-06-18 珠海格力电器股份有限公司 Network switching method, equipment and storage medium
CN111405624A (en) * 2020-04-07 2020-07-10 上海闻泰信息技术有限公司 Network signal adjusting method, device, equipment and storage medium
CN113067770B (en) * 2020-05-28 2024-02-06 深圳市宏博宇通信科技有限公司 System for switching network when network communication is interrupted
CN113242456B (en) * 2021-03-26 2023-05-09 卡莱特云科技股份有限公司 GPS data reporting method, playing box and regional advertisement putting system
CN113347675B (en) * 2021-05-14 2022-02-18 华中科技大学 Network switching method and network switching device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103501507A (en) * 2013-09-05 2014-01-08 小米科技有限责任公司 Method and terminal for automatically switching over infinite signal
CN104902527A (en) * 2015-06-29 2015-09-09 小米科技有限责任公司 Communication network switching method and communication network switching device
CN105188098A (en) * 2015-09-30 2015-12-23 努比亚技术有限公司 Mobile terminal network switching apparatus and network switching method
CN105228133A (en) * 2015-07-10 2016-01-06 努比亚技术有限公司 Multi-channel data method for down loading and system
CN105554831A (en) * 2016-01-28 2016-05-04 努比亚技术有限公司 Network switching device and method
CN105611594A (en) * 2016-01-28 2016-05-25 努比亚技术有限公司 Network switching device and method
CN105722133A (en) * 2016-01-28 2016-06-29 努比亚技术有限公司 Network switching device and method
CN105813148A (en) * 2016-01-28 2016-07-27 努比亚技术有限公司 Network switching apparatus and method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060034220A1 (en) * 2004-08-12 2006-02-16 Eiji Shinshou Digital wireless communication device
EP2445268A1 (en) * 2010-10-22 2012-04-25 Thomson Licensing Method for managing an hybrid wired/wireless network

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103501507A (en) * 2013-09-05 2014-01-08 小米科技有限责任公司 Method and terminal for automatically switching over infinite signal
CN104902527A (en) * 2015-06-29 2015-09-09 小米科技有限责任公司 Communication network switching method and communication network switching device
CN105228133A (en) * 2015-07-10 2016-01-06 努比亚技术有限公司 Multi-channel data method for down loading and system
CN105188098A (en) * 2015-09-30 2015-12-23 努比亚技术有限公司 Mobile terminal network switching apparatus and network switching method
CN105554831A (en) * 2016-01-28 2016-05-04 努比亚技术有限公司 Network switching device and method
CN105611594A (en) * 2016-01-28 2016-05-25 努比亚技术有限公司 Network switching device and method
CN105722133A (en) * 2016-01-28 2016-06-29 努比亚技术有限公司 Network switching device and method
CN105813148A (en) * 2016-01-28 2016-07-27 努比亚技术有限公司 Network switching apparatus and method

Also Published As

Publication number Publication date
CN105592515A (en) 2016-05-18

Similar Documents

Publication Publication Date Title
CN105592515B (en) Network switching device and method
CN105554831B (en) Network switching device and method
US11647422B2 (en) Adaptable radio access network
CN105722247B (en) Network speed superposition device and method
CN105611594B (en) Network switching device and method
US9380508B2 (en) System, apparatus and method for managing network device connectivity on heterogenous networks
US10575317B2 (en) Distributed media classification algorithm in a service controller platform
US20200413284A1 (en) Systems and methods for classifying traffic flows to enable intelligent use of spectrum
US9705802B2 (en) Adaptive non-real-time traffic control method and terminal for same
US8520538B2 (en) Method and system for managing traffic in a wireless communication system
US8249505B1 (en) Method and apparatus for selecting a mode in a multi-mode communications client
CN102905315B (en) Non-real-time service dispatching method, equipment and system
US20210258385A1 (en) Configuring quality of service
CN104796960A (en) Flexible connection control femtocell access point (FAP) device of small cell and method of driving same
CN103987088A (en) Dynamic upstream and downstream flow unloading method and system based on heterogeneous network convergence
US10212048B2 (en) Service offloading method, device, and system
CN103686826A (en) Admission control method of carrier aggregation system
JPWO2011148487A1 (en) Wireless communication system, base station, terminal, and wireless communication method
US9788249B2 (en) Wireless communication apparatus, wireless communication method, and computer-readable recording medium
CN105682161B (en) Network connection device and method
US11265771B2 (en) AT commands for supporting session and service continuity modes of 5G protocol data unitsession operations
CN107409353B (en) System and method for controlling network signaling load in a wireless network
US9635586B2 (en) Method and apparatus for using call admission control for client balancing
US10736027B2 (en) Method and apparatus for distributing load
RU2632930C1 (en) Methods, wireless device, base radio station and second network node for controlling unidirectional eps-channel

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20191220

Address after: 528400, No. 68, No. six, Pok Oi Road, Eastern District, Guangdong, Zhongshan

Applicant after: ZHONGSHAN POWER SUPPLY BUREAU OF GUANGDONG POWER GRID CORPORATION

Address before: 518057 Guangdong Province, Shenzhen high tech Zone of Nanshan District City, No. 9018 North Central Avenue's innovation building A, 6-8 layer, 10-11 layer, B layer, C District 6-10 District 6 floor

Applicant before: Nubian Technologies Ltd.

CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Lin Guoming

Inventor after: Ma Yingchao

Inventor after: Ye Weilong

Inventor before: Ma Yingchao

Inventor before: Ye Weilong