CN114158104A - Network selection method, device, terminal and storage medium - Google Patents

Network selection method, device, terminal and storage medium Download PDF

Info

Publication number
CN114158104A
CN114158104A CN202111538631.5A CN202111538631A CN114158104A CN 114158104 A CN114158104 A CN 114158104A CN 202111538631 A CN202111538631 A CN 202111538631A CN 114158104 A CN114158104 A CN 114158104A
Authority
CN
China
Prior art keywords
network
determining
flow
contextual model
test data
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.)
Granted
Application number
CN202111538631.5A
Other languages
Chinese (zh)
Other versions
CN114158104B (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.)
Tianyi Telecom Terminals Co Ltd
Original Assignee
Tianyi Telecom Terminals 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 Tianyi Telecom Terminals Co Ltd filed Critical Tianyi Telecom Terminals Co Ltd
Priority to CN202111538631.5A priority Critical patent/CN114158104B/en
Publication of CN114158104A publication Critical patent/CN114158104A/en
Application granted granted Critical
Publication of CN114158104B publication Critical patent/CN114158104B/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/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service

Landscapes

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

Abstract

The embodiment of the invention discloses a network selection method, a device, equipment and a storage medium, wherein the method comprises the following steps: determining a current network use contextual model, determining corresponding network connection information according to access equipment information during last shutdown, and accessing a wireless network according to the network connection information to acquire wireless network test data; accessing a cellular network to obtain 5G network test data; acquiring corresponding network parameters according to the network use scene mode, and calculating the size relation among the network parameters, wireless network test data and 5G network test data; and determining the connected network according to the size relationship, calculating unit time flow corresponding to the network use contextual model when the connected network is a 5G network, calculating network selection duration according to the unit time flow to determine next network selection time, and returning to the step of determining the current network use contextual model at the next network selection time.

Description

Network selection method, device, terminal and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a network selection method, apparatus, device, and storage medium.
Background
The high-speed network communication can access the bearer network and the core network in a wireless broadband mode. Due to the reasons of route congestion, unstable upper-level route or failure of providing better service by broadband service agents, etc., the wireless broadband has low data rate, long time delay and poor support for the mobile characteristics of the terminal.
Cellular technology is another solution for wireless access, and with the increase in cellular technology capabilities, 5G communication technology can even achieve data transmission rates that are not weaker than wireless broadband access. The wireless access technology of 5G is generally considered to provide an ultra-high rate of 1Gbps under a standard bandwidth of 100M, and even a data rate of 20Gbps can be achieved if a millimeter wave frequency band of 5G is adopted. In many scenarios, 5G access may achieve better performance than broadband. The method has the advantages of comparison especially under different local network environments or different scene requirements.
In the process of implementing the invention, the inventor finds the following technical problems: when a terminal with cellular and broadband access capabilities selects a network, a user often needs to manually select the network or give priority to the user to access the broadband network. However, the above method requires the user to have good communication knowledge to make a correct selection and determine the network suitable for the current use situation. There is a high demand for users.
Disclosure of Invention
The embodiment of the invention provides a network selection method, a network selection device, a terminal device and a storage medium, which aim to solve the technical problem that a communication network cannot be automatically and reasonably selected according to the actual use condition of a terminal in the prior art.
In a first aspect, an embodiment of the present invention provides a network selection method, including:
determining a current network usage profile, the network usage profile comprising: a speed priority mode, a time delay priority mode and a charge priority mode;
determining corresponding network connection information according to the access equipment information when the power is off last time, and accessing a wireless network according to the network connection information to acquire wireless network test data;
accessing a cellular network to obtain 5G network test data;
acquiring corresponding network parameters according to the use scene mode, and calculating the size relation among the network parameters, wireless network test data and 5G network test data;
and determining the connected network according to the size relationship, calculating unit time flow corresponding to the network use contextual model when the connected network is a 5G network, calculating network selection duration according to the unit time flow to determine next network selection time, and returning to the step of determining the current network use contextual model at the next network selection time.
And calculating a screening result according to the output result.
In a second aspect, an embodiment of the present invention further provides a network selection apparatus, including:
a determination module configured to determine a current network usage profile, the network usage profile comprising: a speed priority mode, a time delay priority mode and a charge priority mode;
the wireless network testing module is used for determining corresponding network connection information according to the access equipment information when the power is off last time, and accessing the wireless network according to the network connection information to acquire wireless network testing data;
the 5G network testing module is used for accessing a cellular network to obtain 5G network testing data;
the calculation module is used for acquiring corresponding network parameters according to the use scene mode and calculating the size relation among the network parameters, the wireless network test data and the 5G network test data;
and the return module is used for determining the connected network according to the size relationship, calculating unit time flow corresponding to the network use contextual model when the connected network is a 5G network, calculating network selection duration according to the unit time flow to determine next network selection time, and returning to the step of determining the current network use contextual model at the next network selection time.
In a third aspect, an embodiment of the present invention further provides a terminal, including:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the network selection method provided in the above embodiments.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the network selection method provided in the above embodiments.
In the network selection method, the network selection device, the terminal and the storage medium provided by the embodiment of the invention, the current network usage contextual model is determined, and the network usage contextual model comprises the following steps: a speed priority mode, a time delay priority mode and a charge priority mode; determining corresponding network connection information according to the access equipment information when the power is off last time, and accessing a wireless network according to the network connection information to acquire wireless network test data; accessing a cellular network to obtain 5G network test data; acquiring corresponding network parameters according to the use scene mode, and calculating the size relation among the network parameters, wireless network test data and 5G network test data; and determining the connected network according to the size relationship, calculating unit time flow corresponding to the network use contextual model when the connected network is a 5G network, calculating network selection duration according to the unit time flow to determine next network selection time, and returning to the step of determining the current network use contextual model at the next network selection time. The corresponding contextual model can be determined according to the current actual use condition of the terminal, the corresponding network connection parameters can be determined according to the contextual model, the wireless network and the 5G network are tested to determine the communication network meeting the contextual model, the charge problem of the 5G network is fully considered, and the time necessary for next network selection is determined according to the current application scene, so that the network charge is reduced as far as possible while the network requirements of users are met. The dependence on the communication knowledge of the user is reduced, and a proper communication network can be reasonably selected, so that the use requirement can be met, and meanwhile, the expense condition is fully considered. The use experience of the user using the communication network is improved.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
fig. 1 is a schematic flowchart of a network selection method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a network selection method according to a second embodiment of the present invention;
fig. 3 is a schematic flowchart of a network selection method according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a network selection apparatus according to a fourth embodiment of the present invention;
fig. 5 is a structural diagram of a terminal according to a fifth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a network selection method according to an embodiment of the present invention, where this embodiment is applicable to automatically selecting a communication network according to a scene mode corresponding to a terminal, and the method may be executed by a network selection device and may be integrated in the terminal, and specifically includes the following steps:
s110, determining a current network use contextual model, wherein the network use contextual model comprises: a speed priority mode, a delay priority mode and a tariff priority mode.
The scene mode is a whole set of strategy modes selected according to different scenes. Generally referred to as a profile of the handset. In this embodiment, the terminal profile may be a whole set of network communication policy rules stored by the terminal. Optionally, the network usage scenario may include: a speed priority mode, a delay priority mode and a tariff priority mode.
Illustratively, considering the data speed case, a speed preference may be set; setting a time delay priority option by considering the time delay condition; 3. considering the charge condition, and setting a WIFI priority option on the premise of not knowing a cellular network charging mode and the residual flow; traffic usage is considered comprehensively with the known cellular network traffic limits. In order to avoid exceeding the set tariff.
Optionally, the current network usage contextual model may be determined according to an operation of the network usage contextual model selected by the user.
And S120, determining corresponding network connection information according to the access equipment information during the last shutdown, and accessing the wireless network according to the network connection information to acquire wireless network test data.
After the terminal device access device is started up, the wired broadband network can be set to be accessed again according to the access device information when the terminal device is shut down last time, the wired broadband network is tested while normal network communication is carried out, and wireless network test data is obtained, wherein the wireless network test data can comprise: wireless network latency and wireless network traffic. Illustratively, the network speed can be obtained by downloading and uploading temporary files, and the time delay is measured by a ping mode with a set server. And, the test time should be as short as possible, and optionally, the wireless network test data may be obtained through measurement of T0 ═ 5 seconds.
S130, accessing the cellular network to obtain the 5G network test data.
Illustratively, after accessing a cellular network, the network speed is obtained by downloading and uploading temporary files, and the time delay is measured by ping with a set server. And further test data of the 5G network are obtained. Similarly, wireless network test data may be obtained through a measurement of T0 for 5 seconds.
S140, acquiring corresponding network parameters according to the network use contextual model, and calculating the size relationship among the network parameters, the wireless network test data and the 5G network test data.
In this embodiment, each network usage scenario is correspondingly provided with corresponding network parameters, particularly a speed priority mode and a delay priority mode, and in these two modes, corresponding network speed and delay parameters are correspondingly provided. Therefore, in the two modes, the network parameters corresponding to the current network usage scenario mode, namely the corresponding network speed and the corresponding time delay, are respectively compared with the tested wireless network test data and the 5G network test data. And determining the size relationship between the network parameters and the wireless network test data and between the network parameters and the 5G network test data.
S150, determining the connected network according to the size relationship, calculating unit time flow corresponding to the network use contextual model when the connected network is a 5G network, calculating network selection duration according to the unit time flow to determine next network selection time, and returning to the step of determining the current network use contextual model at the next network selection time.
And determining the network which can meet the corresponding contextual model according to the size relationship. And preferentially adopting wireless network connection under the condition that the wireless network can meet the requirement of the contextual model. When the wireless network connection cannot be satisfied, a 5G network connection can be adopted. Namely, on the premise of not knowing the charging mode and the residual flow of the cellular network, setting a WIFI priority option; traffic usage is considered comprehensively with the known cellular network traffic limits. Because cellular users typically use monthly fixed flow packages, the price is higher beyond the package, or a reduced volume occurs. Under the scenario of speed priority or delay priority, the setting of daily limitation of cellular traffic can be made. I.e. the daily maximum flow.
In this embodiment, the unit time traffic corresponding to the current network usage scenario is measured and calculated, and the next network selection duration is determined according to the daily maximum traffic. For example, the average calculation may be performed from the current time, and the mode duration corresponding to the current contextual model may be determined according to the history. And determining the corresponding total flow according to the total mode time length, calculating the ratio of the total flow to the current residual flow, determining the time length corresponding to the 5G flow in each hour according to the ratio, and further determining the network selection time length. And timing from the current time, selecting time for the next network after the network selection duration, and re-determining the current network use contextual model at the next network time. Until the flow is completely used up today or the time is tomorrow.
The embodiment of the invention determines the current network use contextual model, and the network use contextual model comprises the following steps: a speed priority mode, a time delay priority mode and a charge priority mode; determining corresponding network connection information according to the access equipment information when the power is off last time, and accessing a wireless network according to the network connection information to acquire wireless network test data; accessing a cellular network to obtain 5G network test data; acquiring corresponding network parameters according to the use scene mode, and calculating the size relation among the network parameters, wireless network test data and 5G network test data; and determining the connected network according to the size relationship, calculating unit time flow corresponding to the network use contextual model when the connected network is a 5G network, calculating network selection duration according to the unit time flow to determine next network selection time, and returning to the step of determining the current network use contextual model at the next network selection time. The corresponding contextual model can be determined according to the current actual use condition of the terminal, the corresponding network connection parameters can be determined according to the contextual model, the wireless network and the 5G network are tested to determine the communication network meeting the contextual model, the charge problem of the 5G network is fully considered, and the time necessary for next network selection is determined according to the current application scene, so that the network charge is reduced as far as possible while the network requirements of users are met. The dependence on the communication knowledge of the user is reduced, and a proper communication network can be reasonably selected, so that the use requirement can be met, and meanwhile, the expense condition is fully considered. The use experience of the user using the communication network is improved.
Example two
Fig. 2 is a flowchart illustrating a network selection method according to a second embodiment of the present invention. In this embodiment, the determining of the current network usage scenario mode is specifically optimized as follows: and determining the network use contextual model according to the currently running application program.
Correspondingly, the network selection method provided by the embodiment specifically includes:
and S210, determining a network use contextual model according to the currently running application program.
Typically, the network usage profile may be user selectable, but this approach requires the user to have full knowledge of the terminal usage and network communication. The requirements for the user are high. The network usage scenario corresponds to that various application programs are not jammed due to network reasons when running, and therefore, in this embodiment, the network usage scenario may be determined according to the application program currently running in the terminal. So that various application programs can smoothly run in the network use profile. Optionally, the application programs may be classified into a low latency requirement class and a high traffic requirement class. Therefore, the network usage profile can be determined from the above two types of applications. For example, the currently running application may be determined according to the running process of the terminal. And then determining a network usage profile.
Optionally, the determining the network usage scenario according to the currently running application includes: and when the UDP connection number corresponding to the currently running application program exceeds the preset UDP connection number, determining the mode as a time delay priority mode. The User Datagram Protocol (UDP) is used to process packets like the TCP Protocol, and in the OSI model, both are located at the transport layer, which is one layer above the IP Protocol, UDP has the disadvantage of not providing packet packetization, assembly and ordering, i.e. it cannot be known whether a packet arrives safely and completely after the message is sent.
Optionally, a corresponding mode may also be determined according to the application type, for example, when determining that the current application is a video type, for example: when the Youkao and the Aiqiyi are applied, the flow priority mode can be determined.
S220, determining corresponding network connection information according to the access equipment information when the power is off last time, and accessing the wireless network according to the network connection information to acquire wireless network test data.
And S230, acquiring 5G network test data for the access cellular network.
S240, acquiring corresponding network parameters according to the network use contextual model, and calculating the size relation among the network parameters, the wireless network test data and the 5G network test data.
And S250, determining the connected network according to the size relationship, calculating unit time flow corresponding to the network use contextual model when the connected network is a 5G network, calculating network selection duration according to the unit time flow to determine next network selection time, and returning to the step of determining the current network use contextual model at the next network selection time.
In this embodiment, the determining of the current network usage scenario mode is specifically optimized as follows: and determining the network use contextual model according to the currently running application program. The corresponding network use contextual model can be determined according to the actual use condition of the user terminal, so that the application operated by the user terminal can be well supported by the communication network, the normal operation of the application program is ensured, and the use experience of a client in using the communication network is improved. Meanwhile, the situation that the network use scene mode is selected wrongly due to the user cognition error can be avoided.
EXAMPLE III
Fig. 3 is a flowchart illustrating a network selection method according to a third embodiment of the present invention. In this embodiment, after calculating the unit time traffic corresponding to the network usage scenario, the method may further include the following steps: receiving cellular data remaining traffic; and judging whether the current flow meets the limiting principle at the present day, wherein when the current flow meets the limiting principle, the connected network is a 5G network, and otherwise, the connected network is a wireless network.
Correspondingly, the network selection method provided by the embodiment specifically includes:
s310, determining a current network use contextual model, wherein the network use contextual model comprises: a speed priority mode, a delay priority mode and a tariff priority mode.
S320, determining corresponding network connection information according to the access equipment information when the power is off last time, and accessing the wireless network according to the network connection information to acquire wireless network test data.
S330, accessing the cellular network to obtain the 5G network test data.
S340, acquiring corresponding network parameters according to the network use contextual model, and calculating the size relation among the network parameters, the wireless network test data and the 5G network test data.
And S350, determining the connected network according to the size relationship, and calculating unit time flow corresponding to the network use contextual model when the connected network is a 5G network.
And S360, receiving the remaining flow of the cellular data on the current day.
Because cellular users typically use monthly fixed flow packages, the price is higher beyond the package, or a reduced volume occurs. Under the scenario of speed priority or delay priority, the setting of daily limitation of cellular traffic can be made. Typically, a user will enter a total flow amount after purchasing a corresponding flow package. The daily traffic may also be allocated according to corresponding rules. The terminal generates statistics of used traffic according to the cellular network used today. The remaining flow of the cellular data on the day can be determined according to the two.
And S370, judging whether the residual flow of the day meets the limiting principle, wherein when the residual flow meets the limiting principle, the connected network is a 5G network, otherwise, the connected network is a wireless network.
Correspondingly, whether the residual flow of the day is smaller than the maximum flow distributed on the day or not is judged. Optionally, the maximum flow rate on the current day is generated according to a decreasing rule of the flow rate day by day.
Generally, the principle of even distribution is adopted for package flow, but the inventor finds out in the process of realizing the invention: by adopting the principle of average distribution, the use of the flow rate at the beginning of the month is cautious, which can result in more flow rate remaining in the last few days and generate flow rate waste. Therefore, the daily allocated flow needs to be optimized to better fit the actual use situation. Illustratively, the day maximum flow rate should be generated according to a day-by-day decreasing rule of flow rate. Illustratively, a square function implementation may be employed. For example
Figure BDA0003413660780000101
x is 1,2,3^30 or 31. And drawing a corresponding function curve according to the function, and utilizing the total area of the function to correspond to the monthly flow of the package. Package traffic is allocated with 31 or 30 as the first day traffic. Furthermore, the daily flow cannot be strictly performed according to the actual distribution. There will be a deviation from the maximum flow rate assigned daily. Therefore, in this embodiment, the method for calculating the daily flow rate is optimized, and optionally, the daily maximum flow rate may be calculated according to the following method:
Figure BDA0003413660780000111
UDnfor the maximum flow on this day, UDiFlow rate on day i, SDnThe maximum data flow for the first n days.
I.e. quite far limiting principle: the total monthly amount is limited to D, i.e. when the month is calculated to be 30 days, then SDn should be limited to D. There should be a margin for each day and the restriction should be relaxed at the front of each month and tightened gradually at the back, without limiting the daily flow on average or running out of flow completely for the first few days. The limitation requirement of SDn is resolved according to the total amount D. Data flow SD of previous n daysnForm a series of SD1、SD2、SD3、……、SDnThe derivative of the fitted curve should be monotonically decreasing. Therefore, the user data usage amount at the nth day is required
Figure BDA0003413660780000112
By using the method, the maximum data flow S380 of the current day can be calculated according to the actual use condition of the flow, the network selection time length is calculated according to the unit time flow and the residual cellular data flow so as to determine the next network selection time, and the step of determining the current network use contextual model is returned at the next network selection time.
In this embodiment, after calculating the unit time traffic corresponding to the network usage scenario, the following steps are added: receiving cellular data remaining traffic; and judging whether the current flow meets the limiting principle at the present day, wherein when the current flow meets the limiting principle, the connected network is a 5G network, and otherwise, the connected network is a wireless network. By reasonably optimizing the maximum flow distribution distributed every day, the package flow is not exceeded, and meanwhile, the requirement that network communication meets the network use contextual model is guaranteed as far as possible.
Example four
Fig. 4 is a schematic structural diagram of a network selection apparatus according to a fourth embodiment of the present invention, and as shown in fig. 4, the apparatus includes:
a determining module 410, configured to determine a current network usage profile, where the network usage profile includes: a speed priority mode, a time delay priority mode and a charge priority mode;
the wireless network testing module 420 is configured to determine corresponding network connection information according to the access device information when the power is turned off last time, and access a wireless network according to the network connection information to obtain wireless network testing data;
the 5G network testing module 430 is configured to access a cellular network to obtain 5G network testing data;
the calculating module 440 is configured to obtain corresponding network parameters according to the usage profile, and calculate a size relationship between the network parameters, the wireless network test data, and the 5G network test data;
a returning module 450, configured to determine a connected network according to the size relationship, and when the connected network is a 5G network, calculate a unit time traffic corresponding to the network usage scenario, calculate a network selection time according to the unit time traffic to determine a next network selection time, and return to the step of determining the current network usage scenario at the next network selection time.
The network selection apparatus provided in this embodiment, by determining a current network usage scenario, the network usage scenario includes: a speed priority mode, a time delay priority mode and a charge priority mode; determining corresponding network connection information according to the access equipment information when the power is off last time, and accessing a wireless network according to the network connection information to acquire wireless network test data; accessing a cellular network to obtain 5G network test data; acquiring corresponding network parameters according to the use scene mode, and calculating the size relation among the network parameters, wireless network test data and 5G network test data; and determining the connected network according to the size relationship, calculating unit time flow corresponding to the network use contextual model when the connected network is a 5G network, calculating network selection duration according to the unit time flow to determine next network selection time, and returning to the step of determining the current network use contextual model at the next network selection time. The corresponding contextual model can be determined according to the current actual use condition of the terminal, the corresponding network connection parameters can be determined according to the contextual model, the wireless network and the 5G network are tested to determine the communication network meeting the contextual model, the charge problem of the 5G network is fully considered, and the time necessary for next network selection is determined according to the current application scene, so that the network charge is reduced as far as possible while the network requirements of users are met. The dependence on the communication knowledge of the user is reduced, and a proper communication network can be reasonably selected, so that the use requirement can be met, and meanwhile, the expense condition is fully considered. The use experience of the user using the communication network is improved.
On the basis of the foregoing embodiments, the determining module includes:
and the determining unit is used for determining the current network use contextual model according to the operation of selecting the contextual model by the user.
On the basis of the foregoing embodiments, the determining unit includes:
and the determining subunit is used for determining the network use contextual model according to the currently running application program.
On the basis of the foregoing embodiments, the determining subunit is configured to:
and when the UDP connection number corresponding to the currently running application program exceeds the preset UDP connection number, determining the mode as a time delay priority mode.
On the basis of the foregoing embodiments, the determining unit includes:
and the determining subunit is used for determining the speed priority mode when the currently running application program is a video program.
On the basis of the foregoing embodiments, the return module further includes:
a receiving unit, configured to receive a cellular data remaining traffic;
and the judging unit is used for judging whether the current flow meets the limiting principle at the present day, and when the current flow meets the limiting principle, the connected network is a 5G network, otherwise, the connected network is a wireless network.
On the basis of the above embodiments, the limiting principle includes:
the residual flow of the day is smaller than the set maximum flow of the day, and the maximum flow of the day is generated according to a day-by-day decreasing rule of the flow.
On the basis of the above embodiments, the daily maximum flow rate is calculated as follows:
Figure BDA0003413660780000141
UDnfor the maximum flow on this day, UDiFlow rate on day i, SDnThe maximum data flow for the first n days.
The network selection device provided by the embodiment of the invention can execute the network selection method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a terminal according to a fifth embodiment of the present invention. Fig. 5 illustrates a block diagram of an exemplary terminal 12 suitable for use in implementing embodiments of the present invention. The terminal 12 shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 5, the terminal 12 is embodied in the form of a general purpose computing device. The components of the terminal 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Terminal 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by terminal 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The terminal 12 can further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
The terminal 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with the device/terminal 12, and/or with any devices (e.g., network card, modem, etc.) that enable the terminal 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the terminal 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet) via the network adapter 20. As shown, the network adapter 20 communicates with the other modules of the terminal 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the terminal 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing, such as implementing a network selection method provided by an embodiment of the present invention, by running a program stored in the system memory 28.
EXAMPLE six
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the network selection method provided in the above embodiment.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or terminal. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for selecting a network, comprising:
determining a current network usage profile, the network usage profile comprising: a speed priority mode, a time delay priority mode and a charge priority mode;
determining corresponding network connection information according to the access equipment information when the power is off last time, and accessing a wireless network according to the network connection information to acquire wireless network test data;
accessing a cellular network to obtain 5G network test data;
acquiring corresponding network parameters according to the network use scene mode, and calculating the size relation among the network parameters, wireless network test data and 5G network test data;
and determining the connected network according to the size relationship, calculating unit time flow corresponding to the network use contextual model when the connected network is a 5G network, calculating network selection duration according to the unit time flow to determine next network selection time, and returning to the step of determining the current network use contextual model at the next network selection time.
2. The method of claim 1, wherein determining the current network usage profile comprises:
and determining the current network use contextual model according to the operation of selecting the contextual model by the user.
3. The method of claim 1, wherein determining the current network usage profile comprises:
and determining the network use contextual model according to the currently running application program.
4. The method of claim 2, wherein determining the network usage profile from the currently running application comprises:
and when the UDP connection number corresponding to the currently running application program exceeds the preset UDP connection number, determining the mode as a time delay priority mode.
5. The method of claim 1, wherein determining a network usage profile based on a currently running application comprises:
when the currently running application program is a video program, determining the currently running application program as a speed priority mode;
after the unit time flow corresponding to the network usage scenario mode is calculated, the method further includes:
receiving cellular data remaining traffic;
and judging whether the current flow meets the limiting principle at the present day, wherein when the current flow meets the limiting principle, the connected network is a 5G network, and otherwise, the connected network is a wireless network.
6. The method of claim 5, wherein the limiting principle comprises:
the residual flow of the day is smaller than the set maximum flow of the day, and the maximum flow of the day is generated according to a day-by-day decreasing rule of the flow.
7. The method of claim 6, wherein the daily maximum flow rate is calculated according to:
Figure FDA0003413660770000021
UDnfor the maximum flow on this day, UDiFlow rate on day i, SDnThe maximum data flow for the first n days.
8. A network selection apparatus, comprising:
a determination module configured to determine a current network usage profile, the network usage profile comprising: a speed priority mode, a time delay priority mode and a charge priority mode;
the wireless network testing module is used for determining corresponding network connection information according to the access equipment information when the power is off last time, and accessing the wireless network according to the network connection information to acquire wireless network testing data;
the 5G network testing module is used for accessing a cellular network to obtain 5G network testing data;
the calculation module is used for acquiring corresponding network parameters according to the use scene mode and calculating the size relation among the network parameters, the wireless network test data and the 5G network test data;
and the return module is used for determining the connected network according to the size relationship, calculating unit time flow corresponding to the network use contextual model when the connected network is a 5G network, calculating network selection duration according to the unit time flow to determine next network selection time, and returning to the step of determining the current network use contextual model at the next network selection time.
9. A terminal, characterized in that the terminal comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the network selection method of any one of claims 1-7.
10. A storage medium containing computer-executable instructions for performing the network selection method of any one of claims 1-7 when executed by a computer processor.
CN202111538631.5A 2021-12-15 2021-12-15 Network selection method, device, terminal and storage medium Active CN114158104B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111538631.5A CN114158104B (en) 2021-12-15 2021-12-15 Network selection method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111538631.5A CN114158104B (en) 2021-12-15 2021-12-15 Network selection method, device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN114158104A true CN114158104A (en) 2022-03-08
CN114158104B CN114158104B (en) 2023-09-22

Family

ID=80451356

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111538631.5A Active CN114158104B (en) 2021-12-15 2021-12-15 Network selection method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN114158104B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115052323A (en) * 2022-08-15 2022-09-13 晨越建设项目管理集团股份有限公司 Smart city mobile service system based on big data

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102932862A (en) * 2012-10-17 2013-02-13 南京云恒瑞通网络科技有限责任公司 Method for selecting network connection mode based on business use condition of user
CN104602311A (en) * 2014-12-29 2015-05-06 北京奇虎科技有限公司 Terminal connected with a plurality of wireless networks simultaneously and switching method for terminal
CN104703254A (en) * 2013-12-06 2015-06-10 ***通信集团公司 Method and device for network access
CN106717040A (en) * 2015-09-29 2017-05-24 华为技术有限公司 Method, device for automatically selecting networks based on charging standard, server and terminal
CN109246741A (en) * 2018-11-07 2019-01-18 上海连尚网络科技有限公司 Wireless network connecting method for terminal
CN112929942A (en) * 2021-02-09 2021-06-08 惠州Tcl移动通信有限公司 Intelligent routing method, system, storage medium and terminal equipment
WO2021169497A1 (en) * 2020-02-24 2021-09-02 华为技术有限公司 Network selection method and electronic device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102932862A (en) * 2012-10-17 2013-02-13 南京云恒瑞通网络科技有限责任公司 Method for selecting network connection mode based on business use condition of user
CN104703254A (en) * 2013-12-06 2015-06-10 ***通信集团公司 Method and device for network access
CN104602311A (en) * 2014-12-29 2015-05-06 北京奇虎科技有限公司 Terminal connected with a plurality of wireless networks simultaneously and switching method for terminal
CN106717040A (en) * 2015-09-29 2017-05-24 华为技术有限公司 Method, device for automatically selecting networks based on charging standard, server and terminal
CN109246741A (en) * 2018-11-07 2019-01-18 上海连尚网络科技有限公司 Wireless network connecting method for terminal
WO2021169497A1 (en) * 2020-02-24 2021-09-02 华为技术有限公司 Network selection method and electronic device
CN112929942A (en) * 2021-02-09 2021-06-08 惠州Tcl移动通信有限公司 Intelligent routing method, system, storage medium and terminal equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115052323A (en) * 2022-08-15 2022-09-13 晨越建设项目管理集团股份有限公司 Smart city mobile service system based on big data
CN115052323B (en) * 2022-08-15 2022-11-08 晨越建设项目管理集团股份有限公司 Smart city mobile service system based on big data

Also Published As

Publication number Publication date
CN114158104B (en) 2023-09-22

Similar Documents

Publication Publication Date Title
US9100854B2 (en) Quality of service application controller and user equipment application profiler
CN111628847B (en) Data transmission method and device
US11166330B2 (en) Data-stream allocation method for link aggregation and related devices
US10757033B2 (en) Traffic control method, traffic control apparatus and server
US7693077B2 (en) Method for estimating available bandwidth of network
CN110445722B (en) Congestion control method, device, equipment and storage medium
CN111490947B (en) Data packet sending method, data packet receiving method, system, equipment and medium
WO2020026018A1 (en) Method for downloading file, device, apparatus/terminal/ server, and storage medium
US11160097B2 (en) Enforcing station fairness with MU-MIMO deployments
CN111147395B (en) Network resource adjusting method and device
CN114158104B (en) Network selection method, device, terminal and storage medium
EP3585013A1 (en) Data transmission method and apparatus
CN117014379A (en) Code rate control method, device, electronic equipment and storage medium
US20130060960A1 (en) Optimizing software applications in a network
CN111614526A (en) Method, device, storage medium and terminal for rapidly maintaining HINOC link
US11683722B2 (en) Fine timing measurements in enterprise deployments using high bandwidth channels
CN111628902A (en) Rate testing method and apparatus, electronic device, and computer-readable storage medium
CN113453285B (en) Resource adjusting method, device and storage medium
US8699347B2 (en) Communication apparatus, communication system, communication method, and a computer-readable medium
CN111416802B (en) TCP-based data processing method and device, electronic equipment and readable medium
CN117042041B (en) Data transmission method, device, electronic equipment, storage medium and program product
US10169115B1 (en) Predicting exhausted storage for a blocking API
US11044186B2 (en) Technologies for link capability estimation
CN116346743A (en) Bandwidth control method, device, equipment and storage medium
CN115617528A (en) Load balancing method, apparatus, electronic device, storage medium, and program product

Legal Events

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