CN106922006A - A kind of network preference pattern changing method and device - Google Patents

A kind of network preference pattern changing method and device Download PDF

Info

Publication number
CN106922006A
CN106922006A CN201710257539.9A CN201710257539A CN106922006A CN 106922006 A CN106922006 A CN 106922006A CN 201710257539 A CN201710257539 A CN 201710257539A CN 106922006 A CN106922006 A CN 106922006A
Authority
CN
China
Prior art keywords
network
preference pattern
timer
value
network preference
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
CN201710257539.9A
Other languages
Chinese (zh)
Other versions
CN106922006B (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.)
Shanghai Lianhong Technology Co ltd
Original Assignee
TP Link Technologies 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 TP Link Technologies Co Ltd filed Critical TP Link Technologies Co Ltd
Priority to CN201710257539.9A priority Critical patent/CN106922006B/en
Publication of CN106922006A publication Critical patent/CN106922006A/en
Application granted granted Critical
Publication of CN106922006B publication Critical patent/CN106922006B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/0085Hand-off measurements
    • H04W36/0094Definition of hand-off measurement parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services

Abstract

The invention discloses a kind of network preference pattern changing method and device, method includes:Under first network preference pattern, whether detection network parameter meets the second network preference pattern switching condition;When being unsatisfactory for, historical position information is removed;When meeting, the second network preference pattern is set to;Under the second network preference pattern, judge whether there is historical position information;If it is not, the value for setting second timer is initial value;If so, setting the value of second timer as not less than a upper setting value according to current location information and historical position information;Value according to second timer periodically detects whether network parameter meets first network preference pattern switching condition;When meeting, first network preference pattern is set to, and obtain current location information as historical position information preservation.By above method, realize the intelligence switching of network preference pattern, when solving the problems, such as to set manually frequent switching with can not in time be set to more excellent network preference pattern.

Description

A kind of network preference pattern changing method and device
Technical field
The present invention relates to communication technical field, and in particular to a kind of network preference pattern changing method and device.
Background technology
With the fast development of mobile communication technology, G mobile communication (3G), forth generation mobile communication technology The birth of (4G) sends and receives data using mobile terminal with popularization, increasing people by mobile data network.It is theoretical On, the network quality of 4G networks can be better than 3G network, thus when network preference pattern is selected, people can often select 4G The pattern of prefer, i.e., it is preferential when using mobile data network to select 4G networks.
Build unbalanced yet with carrier network, occur that 4G network qualities are not good but 3G network matter in certain areas Amount preferably phenomenon, when terminal current network preference pattern is set to 4G prefer patterns, if detecting the signal of 4G networks Quality be less than a threshold value, and now the signal quality of 3G network be more than a threshold value when, terminal automatically from 4G network switchings to 3G network;When 3G network is in, the signal quality of 4G networks can be detected at regular intervals, when the signal for detecting 4G networks When quality is more than a threshold value, terminal is switched to 4G networks from 3G network;If the signal quality for detecting 4G networks again is not good When, 3G network is switched to once more.Frequently network switching, can cause the network connection of terminal unstable, user's online experience Difference, therefore now user needs to manually select 3G prefer patterns, current network is rested on 3G network, so as to solve terminal The problem of frequent switching network.But when user leaves the not good region of 4G network qualities, the network quality of 4G networks can be better than 3G network, user needs that current network preference pattern is chosen to be into 4G prefer patterns manually again again, can just reconnect to 4G Network.
When user is in a certain region, user needs manually more in the case where the network quality of current connection network is not good Change network preference pattern, to obtain more preferably network quality, meanwhile, when user manually selects in the not good region of 4G network qualities After 3G prefer patterns, improved because user cannot determine when 4G network qualities, therefore user can frequently manually more Change network preference pattern to obtain more preferably network quality in time, or terminal is maintained under 3G prefer patterns for a long time, But in this case, even if 4G network qualities have been improved, terminal can only also connect 3G network, without can connect to 4G Network.
The content of the invention
It is an object of the present invention to provide a kind of method for switching network and device, can realize the intelligence of network preference pattern Switching, and different detection cycles can be set according to different situations, when solving to set network preference pattern manually frequent switching and The problem of more excellent network preference pattern can not be in time set to.
To achieve these goals, one aspect of the present invention provides a kind of network preference pattern changing method, including:
When current network preference pattern is first network preference pattern, the timing according to default first timer is on weekly duty Whether network parameter of the phase property ground detection under first network meets the second network preference pattern switching condition;
When the network parameter under the first network is unsatisfactory for the second network preference pattern switching condition, communication is removed The historical position information of equipment;
When the network parameter under the first network meets the second network preference pattern switching condition, will be described current Network preference pattern is set to the second network preference pattern;
When the current network preference pattern is the second network preference pattern, judge whether there is the history bit confidence Breath;
When there not being the historical position information, the timing value for setting second timer is default initial value;
When there being the historical position information, current location information and the historical position information according to communication equipment The timing value for setting second timer is the upper setting value not less than the second timer;
Timing value according to the second timer periodically detects whether the network parameter under the second network meets First network preference pattern switching condition;
When the network parameter under second network meets first network preference pattern switching condition, will be described current Network preference pattern is set to first network preference pattern, and obtains current location information as historical position information preservation.
It is described when there being the historical position information in a kind of optional implementation method, according to working as communication equipment Front position information sets the timing value of the second timer as not less than the second timer with the historical position information A upper setting value, including:
When there is the historical position information, the current location information of communication equipment is obtained;
The displacement of communication equipment is calculated with the historical position information according to the current location information;
Judge the displacement of the communication equipment whether more than default distance threshold;
When the displacement of the communication equipment is more than default distance threshold, set the timing value of second timer as N times of a upper setting value of the second timer;Wherein, N > 1;
When the displacement of the communication equipment is less than default distance threshold, set the timing value of second timer as Default maximum.
It is described when there being the historical position information in a kind of optional implementation method, according to working as communication equipment Front position information sets the timing value of the second timer as not less than the second timer with the historical position information A upper setting value, also include:
When the timing value of the second timer exceedes the default maximum, by the timing of the second timer Value is set as the default maximum.
It is described when current network preference pattern is first network preference pattern in a kind of optional implementation method, root Periodically detect whether the network parameter under first network meets the second network according to the timing value of default first timer Preference pattern switching condition, including:
When current network preference pattern is first network preference pattern, the timing according to default first timer is on weekly duty The current network speed of phase property ground detection first network;
When the current network speed of the first network is more than network speed threshold value, judge that the network parameter under first network is discontented with The second network preference pattern switching condition of foot.
It is described when current network preference pattern is first network preference pattern in a kind of optional implementation method, root Periodically detect whether the network parameter under first network meets the second network according to the timing value of default first timer Preference pattern switching condition, also includes:
When the current network speed of the first network is less than network speed threshold value, first network is carried out detection of connectivity to obtain Average number of dropped packets and average delay;
When the average number of dropped packets is less than packet loss threshold value and the average delay is less than delay threshold, judge in the first net Network parameter under network is unsatisfactory for the second network preference pattern switching condition;
When the average number of dropped packets is more than delay threshold more than packet loss threshold value or the average delay, judge in the first net Network parameter under network meets the second network preference pattern switching condition.
In order to realize identical purpose, another aspect of the present invention provides a kind of network preference pattern switching device, and it is special Levy and be, described device is configured in a communications device, including:
First network detection module, for when current network preference pattern is first network preference pattern, according to default The timing value of first timer periodically detect whether the network parameter under first network meets the preferred mould of the second network Formula switching condition;
Historical position removes module, for being unsatisfactory for the preferred mould of the second network when the network parameter under the first network During formula switching condition, the historical position information of communication equipment is removed;
First mode handover module, for meeting the second network preference pattern when the network parameter under the first network During switching condition, the current network preference pattern is set to the second network preference pattern;
Historical position judge module, for when the current network preference pattern is the second network preference pattern, judging Whether the historical position information is had;
First timing value setting module, for when there not being the historical position information, setting determining for second timer Duration is default initial value;
Second timing value setting module, for when there being the historical position information, according to the present bit of communication equipment Confidence breath sets the timing value of second timer as upper not less than the second timer sets with the historical position information Definite value;
Second network detection module, for periodically being detected in the second network according to the timing value of the second timer Under network parameter whether meet first network preference pattern switching condition;
Second mode handover module, for meeting first network preference pattern when the network parameter under second network During switching condition, the current network preference pattern is set to first network preference pattern, and obtain current location information with Preserved as historical position information.
In a kind of optional implementation method, the second timing value setting module, including:
Present location obtaining unit, for when there is the historical position information, obtaining the current location of communication equipment Information;
Metrics calculation unit, for calculating communication equipment with the historical position information according to the current location information Displacement;
Distance Judgment unit, for judging the displacement of the communication equipment whether more than default distance threshold;
First timing value setting unit, for when the communication equipment displacement be more than default distance threshold when, The timing value of second timer is set as N times of a upper setting value of the second timer;Wherein, N > 1;
Second timing value setting unit, for when the communication equipment displacement be less than default distance threshold when, The timing value for setting second timer is default maximum.
In a kind of optional implementation method, the second timing value setting module also includes:
Timing value sets control unit, and the default maximum is exceeded for the timing value when the second timer When, the timing value of the second timer is set as the default maximum.
In a kind of optional implementation method, the first network detection module, including:
First network speed detection unit, for when current network preference pattern be first network preference pattern when, according to The timing value of default first timer periodically detects the current network speed of first network;
First detection identifying unit, for when the current network speed of the first network is more than network speed threshold value, judging the Network parameter under one network is unsatisfactory for the second network preference pattern switching condition.
In a kind of optional implementation method, the first network detection module also includes:
Detection of connectivity unit, for when the current network speed of the first network is less than network speed threshold value, to first network Detection of connectivity is carried out to obtain average number of dropped packets and average delay;
Second detection identifying unit, for when the average number of dropped packets is less than packet loss threshold value and the average delay is less than When prolonging threshold value, judge that the network parameter under first network is unsatisfactory for the second network preference pattern switching condition;
3rd detection identifying unit, for when the average number of dropped packets is more than more than packet loss threshold value or the average delay When prolonging threshold value, judge that the network parameter under first network meets the second network preference pattern switching condition.
Compared to prior art, the beneficial effect of the embodiment of the present invention is:It is excellent that the embodiment of the present invention provides a kind of network Lectotype changing method and device, method include:When current network preference pattern is first network preference pattern, according to default The timing value of first timer periodically detect whether the network parameter under first network meets the preferred mould of the second network Formula switching condition;When the network parameter under the first network is unsatisfactory for the second network preference pattern switching condition, remove The historical position information of communication equipment;When the network parameter under the first network meets the second network preference pattern switching bar During part, the current network preference pattern is set to the second network preference pattern;When the current network preference pattern is the During two network preference patterns, judge whether there is the historical position information;When there not being the historical position information, setting The timing value of second timer is default initial value;When there being the historical position information, according to the current of communication equipment The timing value that positional information sets second timer with the historical position information is upper not less than the second timer Setting value;Timing value according to the second timer periodically detects whether the network parameter under the second network meets One network preference pattern switching condition;When the network parameter under second network meets first network preference pattern switching bar During part, the current network preference pattern is set to first network preference pattern, and obtain current location information as going through History positional information is preserved.By above method, communication equipment under current network preference pattern, when the net for detecting current network When network parameter meets network preference pattern switching condition, the switching of network preference pattern is carried out automatically, and according to history bit confidence The presence or absence of breath and the size of displacement, set the timing value of different second timers, optimization second timer with Different detection cycles are set, the intelligence switching of network preference pattern is realized, solve to set manually frequent during network preference pattern Switch and can not be set in time the problem of more excellent network preference pattern.
Brief description of the drawings
In order to illustrate more clearly of technical scheme, the accompanying drawing to be used needed for implementation method will be made below Simply introduce, it should be apparent that, drawings in the following description are only some embodiments of the present invention, general for this area For logical technical staff, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of the network preference pattern changing method in the embodiment of the present invention;
Fig. 2 is a kind of structural representation of the network preference pattern switching device in the embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
Fig. 1 is referred to, it is a kind of schematic flow sheet of the network preference pattern changing method in the embodiment of the present invention.This Inventive embodiments provide a kind of network preference pattern changing method, including:
S1, when current network preference pattern is first network preference pattern, according to the timing of default first timer Value periodically detects whether the network parameter under first network meets the second network preference pattern switching condition;
S2, when the network parameter under the first network is unsatisfactory for the second network preference pattern switching condition, removes The historical position information of communication equipment;
S3, when the network parameter under the first network meets the second network preference pattern switching condition, will be described Current network preference pattern is set to the second network preference pattern;
S4, when the current network preference pattern is the second network preference pattern, judges whether there is the history bit Confidence ceases;
S5, when there not being the historical position information, the timing value for setting second timer is default initial value;
S6, when there being the historical position information, current location information and the historical position according to communication equipment The timing value of information setting second timer is the upper setting value not less than the second timer;
S7, the timing value according to the second timer periodically detects whether the network parameter under the second network is full Sufficient first network preference pattern switching condition;
S8, when the network parameter under second network meets first network preference pattern switching condition, will be described Current network preference pattern is set to first network preference pattern, and obtains current location information as historical position information guarantor Deposit.
Method described in the embodiment of the present invention, under current network preference pattern, when the network for detecting current network is joined When number meets network preference pattern switching condition, the switching of network preference pattern is carried out automatically, and when current network preference pattern It is the second network preference pattern, different the can be set according to the presence or absence of historical position information and the size of displacement The timing value of two timers, optimizes second timer to set different detection cycles, realizes the intelligence of network preference pattern Switching, solves frequent switching and can not in time be set to asking for more excellent network preference pattern when setting network preference pattern manually Topic.
It should be appreciated that the network parameter when under the first network is unsatisfactory for the second network preference pattern cutting When changing condition, current network preference pattern be the first network preference pattern, and the communication equipment keep and first network Connection;When the network parameter under second network is unsatisfactory for first network preference pattern switching condition, current network is excellent Lectotype be the second network preference pattern, and the communication equipment keep with the second network connection.
It should be noted that due to the network parameter detected in the present invention under first network, whether to meet the second network excellent Lectotype switching condition is periodically carried out, therefore the network parameter once detected under the first network is unsatisfactory for Second network preference pattern switching condition, that is, remove the historical position information of communication equipment.Such as:When detecting first time, inspection Measure the network parameter under first network and be unsatisfactory for the second network preference pattern switching condition, remove the history bit of communication equipment Confidence ceases;When detecting for second, detect the network parameter under first network and meet the second network preference pattern switching bar Part, the second network preference pattern is set to by current network preference pattern, now logical due to having been removed in first time detection The historical position information of letter equipment, therefore described when current network preference pattern is the second network preference pattern, judgement is It is no the step of have the historical position information in, do not have the historical position information, i.e., in this case, be judged to There is not the historical position information.
In a kind of optional implementation method, the step S1 includes:
When current network preference pattern is first network preference pattern, the timing according to default first timer is on weekly duty The current network speed of phase property ground detection first network;
When the current network speed of the first network is more than network speed threshold value, judge that the network parameter under first network is discontented with The second network preference pattern switching condition of foot.
When the current network speed of first network is more than network speed threshold value, i.e., the Internet speed of current network is more than network speed threshold value And user has larger traffic demand to current network, therefore, current network preference pattern is not switched over now, that is, communicate Equipment keeps the connection with the first network, is avoided that the handover network in the case where user has larger flow demand to network And cause the unstable networks of communication equipment.
In a kind of optional implementation method, the step S1 also includes:
When the current network speed of the first network is less than network speed threshold value, first network is carried out detection of connectivity to obtain Average number of dropped packets and average delay;
When the average number of dropped packets is less than packet loss threshold value and the average delay is less than delay threshold, judge in the first net Network parameter under network is unsatisfactory for the second network preference pattern switching condition;
When the average number of dropped packets is more than delay threshold more than packet loss threshold value or the average delay, judge in the first net Network parameter under network meets the second network preference pattern switching condition.
When the current network speed of first network is less than network speed threshold value, i.e., the Internet speed of current network is less than network speed threshold value Or active user is smaller to the traffic demand of network, it is therefore desirable to further judged by continuity testing;When described When the average number of dropped packets got in continuity testing is less than delay threshold less than packet loss threshold value and average delay, show current the The reason for current network speed of one network is less than network speed threshold value is active user smaller to the traffic demand of network, therefore without switching Network preference pattern, even if communication equipment keeps being connected with the first network;When what is got in the continuity testing When average number of dropped packets is more than delay threshold more than packet loss threshold value or average delay, show that the current network speed of now first network is less than net The reason for fast threshold value be the Internet speed of current network less than network speed threshold value, therefore current network preference pattern is switched to the Two network preference patterns, even if communication equipment is produced with second network being connected.
In another optional implementation method, the step S1 also includes:
When the current network speed of first network is less than network speed threshold value, M secondary connectivity detections, and correspondence are carried out to first network Obtain every time the average number of dropped packets and average delay of the detection of connectivity;Wherein, M > 1;
When the average number of dropped packets in the detection of connectivity is more than delay threshold more than packet loss threshold value or average delay, sentence The fixed first network is tested by when secondary connectivity;
When the average number of dropped packets in the detection of connectivity is less than packet loss threshold value and average delay is less than delay threshold, sentence The fixed first network is not tested by when secondary connectivity;
It is judged to that number of times of the current network not by being tested when secondary connectivity is less than K in being tested in the M secondary connectivities When secondary, judge that the network parameter under first network is unsatisfactory for the second network preference pattern switching condition;
When be judged in the M secondary connectivities test current network be not more than by the number of times tested when secondary connectivity or During equal to K times, judge that the network parameter under first network meets the second network mode switching condition, wherein, 1 < K≤M.
Such as:M=3, K=2, i.e., when the current network speed of first network is less than network speed threshold value, carried out 3 times to first network Detection of connectivity, when the detection of 3 secondary connectivities is all judged to current network by when secondary connectivity is detected, then judging in first network Under network parameter be unsatisfactory for the second network mode switching condition;It is judged to current network when having 2 times in the detection of 3 secondary connectivities Do not detected by when secondary connectivity, then judge that the network parameter under first network meets the second network mode switching condition.
Multiple detection of connectivity is carried out by the first network, be prevented effectively from causes because of of short duration network failure Judge the situation of error, improve the accuracy for judging.
In a kind of optional implementation method, the detection of connectivity is specially:The default destination addresses of ping.Pass through The default destination addresses of ping, can obtain average number of dropped packets and average delay, to reflect the speed of current network layer speed, together When, the default destination addresses of ping are a kind of consumption less network speed measuring methods of customer flow, help to reduce to user's Influence.
In a kind of optional implementation method, the default destination address includes default first destination address and presets The second destination address.When default first destination addresses of ping return to abnormal information, default second destination addresses of ping To obtain average number of dropped packets and average delay, by setting the different destination address of two priority, it is to avoid because of in network Other server exception and cause judge malfunction, improve judge accuracy rate.
In a kind of optional implementation method, the step S6 includes:
When there is the historical position information, the current location information of communication equipment is obtained;
The displacement of communication equipment is calculated with the historical position information according to the current location information;
Judge the displacement of the communication equipment whether more than default distance threshold;
When the displacement of the communication equipment is more than default distance threshold, set the timing value of second timer as N times of a upper setting value of the second timer;Wherein, N > 1;
When the displacement of the communication equipment is less than default distance threshold, set the timing value of second timer as Default maximum.
When there being the historical position information, show that communication equipment is not only that first network is preferred in network preference pattern During pattern, the second network preference pattern switching condition is met in the detection of the network parameter under the first network, and work as net Network preference pattern is changed in the detection of the first time of the first network preference pattern from the second network preference pattern, in institute The detection for stating the network parameter under first network also meets the second network preference pattern switching condition, also just reflects presently described The network parameter of first network is not improved, is now calculated with the historical position information according to current location information The displacement of the communication equipment for coming, by judging that whether the displacement of the communication equipment, less than distance threshold, is described Second timer sets the timing value of different time length.
In the construction of existing carrier network, the network parameter change of consolidated network is smaller in the range of certain distance, I.e. when the displacement of communication equipment is in the range of the certain distance, the network parameter change of consolidated network is not too large;When In the range of the certain distance, the network parameter of consolidated network there may be large change to the displacement of communication equipment. Therefore when the displacement of the communication equipment is less than distance threshold, the network parameter under the first network does not have too big Improve, the timing value of the second timer is set as default maximum, current network preference pattern can be made considerably long The second network preference pattern is maintained in a period of time, it is to avoid the frequent switching of network preference pattern;In the communication When the displacement of equipment is more than distance threshold, the network parameter of the first network there may be large change, now by institute The timing value for stating second timer is set as N times of a upper setting value of the second timer, wherein, N > 1, appropriate increase The timing value of the second timer, can suitably reduce network switching frequency, and being avoided that long-time is not detected again causes network Preference pattern switches not in time.
In a kind of optional implementation method, the step S6 also includes:
When the timing value of the second timer exceedes the default maximum, by the timing of the second timer Value is set as the default maximum.
In the setting of the timing value of second timer, the timing value of the second timer is controlled in default maximum In value, the network parameter detection cycle caused because of the timing value of second timer constantly increase to the second network is effectively prevent It is long, improve practicality.
In a kind of optional implementation method, the step S7 includes:
Timing value according to the second timer periodically detects the current network speed of the second network;
When the current network speed of second network is less than network speed threshold value, judge that the network parameter under the second network meets First network preference pattern switching condition;
When the current network speed of second network is more than network speed threshold value, judge that the network parameter under the second network is discontented with Sufficient first network preference pattern switching condition.
When the current network speed of the second network is less than network speed threshold value, show that active user is smaller to the traffic demand of network, It is smaller to customer impact if now carrying out the switching of network preference pattern to realize the switching of current network, therefore, it is determined that to meet First network preference pattern switching condition;When the current network speed of the second network is more than network speed threshold value, show active user to net The traffic demand of network is larger, if now carrying out the switching of network preference pattern, communication equipment network can be caused to connect unstable, It is larger to customer impact, therefore, it is determined that to be unsatisfactory for first network preference pattern switching condition.
In a kind of optional implementation method, the first network preference pattern is 4G prefer patterns, first net Network is 4G networks;The second network preference pattern is 3G prefer patterns, and second network is 3G network.Below will be with Present embodiment is example, illustrates present invention specific implementation process in varied situations:
During mobile data network is connected using communication equipment, the network parameter of 4G networks is unsatisfactory for 3G all the time In the case of prefer mode changeover conditions:When current network pattern is 4G prefer patterns, according to determining for first timer Duration periodically detects whether the network parameter of 4G networks meets 3G prefer mode changeover conditions, due to the net of 4G networks When network parameter is unsatisfactory for 3G prefer mode changeover conditions, communication equipment keeps the connection with 4G networks and removes communication equipment Historical position information.When detecting 4G network parameters and being unsatisfactory for 3G prefer mode changeover conditions all the time, show current 4G Network parameter is preferable all the time, therefore, it is 4G prefer patterns by the preferred mould freeze mode of current network, communication equipment keeps and 4G Network connection.
During mobile data network is connected using communication equipment, the displacement of communication equipment is more than apart from threshold Value, and communication equipment movement cause 4G networks network parameter pass through from meet 3G prefer mode changeover conditions become turn to In the case of being unsatisfactory for 3G prefer mode changeover condition processes:When current network preference pattern is 4G prefer patterns, Timing value according to first timer periodically detects whether the network parameter of 4G networks meets 3G prefer pattern switching bars Part, when meeting 3G prefer mode changeover conditions due to the network parameter of now 4G networks, current network preference pattern is set It is 3G prefer patterns;Under 3G prefer patterns, determine whether there is historical position information, when just using communication equipment In do not exist the historical position information, therefore, it is determined that there is not the historical position information, thus setting second timer Timing value be default initial value and according to the timing value of second timer periodically detect 3G network network parameter whether Satisfaction is switched to 4G prefer patterns;When the network parameter for detecting 3G network meets is switched to 4G prefer patterns, will Current network preference pattern is set to 4G prefer patterns, and obtains current location information as historical position information preservation; Under 4G prefer patterns, the timing value according to first timer periodically detects whether the network parameter of 4G networks meets 3G prefer mode changeover conditions, because now communication equipment is changed the network parameter of 4G networks because of its change in location It is apt to and is unsatisfactory for 3G prefer mode changeover conditions, therefore the historical position information will be removed, current network preference pattern is 4G prefer patterns, communication equipment keeps and 4G network connections.Under 4G prefer patterns, according to the timing of first timer When value periodically detects whether the network parameter of 4G networks meets 3G prefer mode changeover conditions, once detect 4G nets The network parameter of network is unsatisfactory for 3G prefer mode changeover conditions, that is, remove the historical position information, therefore in such case Even if if when the network parameter of lower 4G networks later has large change and meets 3G prefer mode changeover conditions, will judge not There is the historical position information, the timing value for setting the second timer is default initial value.
During mobile data network is connected using communication equipment, the displacement of communication equipment is more than apart from threshold Value, in the case that the network parameter of 4G networks meets 3G prefer mode changeover conditions all the time:When current network preference pattern is During 4G prefer patterns, the timing value according to first timer periodically detects whether the network parameter of 4G networks meets 3G Prefer mode changeover conditions, when meeting 3G prefer mode changeover conditions due to the network parameter of 4G networks, by current network Preference pattern is set to 3G prefer patterns;Under 3G prefer patterns, determine whether there is historical position information, make just Do not exist the historical position information in during with communication equipment, therefore, it is determined that do not have the historical position information, thus setting The timing value of second timer is default initial value and periodically detects 3G network according to the timing value of second timer Whether network parameter meets is switched to 4G prefer patterns;4G is switched to when the network parameter for detecting 3G network meets During prefer patterns, current network preference pattern is set to 4G prefer patterns, and obtain current location information as going through History positional information is preserved;Under 4G prefer patterns, the timing value according to first timer periodically detects the net of 4G networks Whether network parameter meets 3G prefer mode changeover conditions, because the network parameter of now 4G networks still meets 3G prefer moulds Formula switching condition, and now have the historical position information, thus current location information according to communication equipment goes through with described History positional information calculation displacement, calculates the displacement of communication equipment more than distance threshold, therefore, it is determined that 4G networks are joined Number is possible to be improved, and sets the timing value of second timer as N times of a upper setting value of the second timer, i.e., this The timing value of Shi Suoshu second timers than N times of default initial value, periodically examine by the timing value according to second timer Whether the network parameter of survey 3G network meets is switched to 4G prefer patterns.Meet 3G prefer 4G network parameters are detected Mode changeover condition and when having the historical position information, the displacement of communication equipment is more than distance threshold, shows 4G nets Network parameter is possible to be improved, therefore the timing value of the second timer is set into N times of initial value, can reduce net Network preference pattern switching frequency, can guarantee that and current network can be set into 4G prefer patterns within a short period of time again.
The above three kinds is three kinds enumerated to more preferably illustrate the implementation method of the embodiment of the present invention using scene Scene is all used using scene, rather than the embodiment of the present invention.
Compared to prior art, the beneficial effect of the embodiment of the present invention is:It is excellent that the embodiment of the present invention provides a kind of network Lectotype changing method, including:When current network preference pattern is first network preference pattern, according to the default first timing The timing value of device periodically detects whether the network parameter under first network meets the second network preference pattern switching condition; When the network parameter under the first network is unsatisfactory for the second network preference pattern switching condition, going through for communication equipment is removed History positional information;When the network parameter under the first network meets the second network preference pattern switching condition, will be described Current network preference pattern is set to the second network preference pattern;When the current network preference pattern is the preferred mould of the second network During formula, judge whether there is the historical position information;When there not being the historical position information, setting second timer Timing value is default initial value;When there being the historical position information, current location information and institute according to communication equipment It is the upper setting value not less than the second timer to state historical position information and set the timing value of second timer;According to institute State whether the network parameter that the timing value of second timer periodically detected under the second network meets the preferred mould of first network Formula switching condition;When the network parameter under second network meets first network preference pattern switching condition, will be described Current network preference pattern is set to first network preference pattern, and obtains current location information as historical position information guarantor Deposit.By above method, communication equipment under current network preference pattern, when the network parameter for detecting current network meets net During network preference pattern switching condition, the switching of network preference pattern is carried out automatically, and according to the presence or absence of historical position information And the size of displacement, the timing value of different second timers is set, it is different to set to optimize second timer Detection cycle, realizes the intelligence switching of network preference pattern, frequent switching and can not when solving to set network preference pattern manually The problem of more excellent network preference pattern is set in time.
In order to realize identical purpose, another aspect of the present invention provides a kind of network preference pattern switching device, described Device is configured in a communications device.Fig. 2 is referred to, it is a kind of network preference pattern switching device in the embodiment of the present invention Structural representation.A kind of network preference pattern switching device provided in an embodiment of the present invention, including:
First network detection module 1, for when current network preference pattern is first network preference pattern, according to default The timing value of first timer periodically detect whether the network parameter under first network meets the preferred mould of the second network Formula switching condition;
Historical position removes module 2, for when network parameter under the first network, to be unsatisfactory for the second network preferred During mode changeover condition, the historical position information of communication equipment is removed;
First mode handover module 3, for meeting the preferred mould of the second network when the network parameter under the first network During formula switching condition, the current network preference pattern is set to the second network preference pattern;
Historical position judge module 4, for when the current network preference pattern is the second network preference pattern, judging Whether the historical position information is had;
First timing value setting module 5, for when there not being the historical position information, setting determining for second timer Duration is default initial value;
Second timing value setting module 6, for when there being the historical position information, according to the present bit of communication equipment Confidence breath sets the timing value of second timer as upper not less than the second timer sets with the historical position information Definite value;
Second network detection module 7, for periodically being detected in the second net according to the timing value of the second timer Whether the network parameter under network meets first network preference pattern switching condition;
Second mode handover module 8, for meeting the preferred mould of first network when the network parameter under second network During formula switching condition, the current network preference pattern is set to first network preference pattern, and obtain current location information Preserved as historical position information.
In a kind of optional implementation method, the first network detection module 1 includes:
First network speed detection unit, for when current network preference pattern be first network preference pattern when, according to The timing value of default first timer periodically detects the current network speed of first network;
First detection identifying unit, for when the current network speed of the first network is more than network speed threshold value, judging the Network parameter under one network is unsatisfactory for the second network preference pattern switching condition.
In a kind of optional implementation method, the first network detection module 1 also includes:
Detection of connectivity unit, for when the current network speed of the first network is less than network speed threshold value, to first network Detection of connectivity is carried out to obtain average number of dropped packets and average delay;
Second detection identifying unit, for when the average number of dropped packets is less than packet loss threshold value and the average delay is less than When prolonging threshold value, judge that the network parameter under first network is unsatisfactory for the second network preference pattern switching condition;
3rd detection identifying unit, for when the average number of dropped packets is more than more than packet loss threshold value or the average delay When prolonging threshold value, judge that the network parameter under first network meets the second network preference pattern switching condition.
In a kind of optional implementation method, the second timing value setting module 6 includes:
Present location obtaining unit, for when there is the historical position information, obtaining the current location of communication equipment Information;
Metrics calculation unit, for calculating communication equipment with the historical position information according to the current location information Displacement;
Distance Judgment unit, for judging the displacement of the communication equipment whether more than default distance threshold;
First timing value setting unit, for when the communication equipment displacement be more than default distance threshold when, The timing value of second timer is set as N times of a upper setting value of the second timer;Wherein, N > 1;
Second timing value setting unit, for when the communication equipment displacement be less than default distance threshold when, The timing value for setting second timer is default maximum.
In a kind of optional implementation method, the second timing value setting module 6 also includes:
Timing value sets control unit, and the default maximum is exceeded for the timing value when the second timer When, the timing value of the second timer is set as the default maximum.
It should be noted that a kind of network preference pattern switching device provided in an embodiment of the present invention is excellent for above-mentioned network In lectotype changing method, its operation principle and beneficial effect are corresponded prevents touch-screen false touch forwarding method in above-mentioned, thus Repeat no more.
Above disclosed is only presently preferred embodiments of the present invention, can not limit the right of the present invention with this certainly Scope, one of ordinary skill in the art will appreciate that all or part of flow of above-described embodiment is realized, and according to right of the present invention It is required that the equivalent variations made, still fall within the covered scope of invention.
One of ordinary skill in the art will appreciate that all or part of flow in realizing above-described embodiment method, can be The hardware of correlation is instructed to complete by computer program, described program can be stored in a computer read/write memory medium In, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..

Claims (10)

1. a kind of network preference pattern changing method, it is characterised in that methods described includes:
When current network preference pattern is first network preference pattern, the timing value according to default first timer is periodically Whether network parameter of the ground detection under first network meets the second network preference pattern switching condition;
When the network parameter under the first network is unsatisfactory for the second network preference pattern switching condition, communication equipment is removed Historical position information;
When the network parameter under the first network meets the second network preference pattern switching condition, by the current network Preference pattern is set to the second network preference pattern;
When current network preference pattern is the second network preference pattern, judge whether there is the historical position information;
When there not being the historical position information, the timing value for setting second timer is default initial value;
When there being the historical position information, the current location information according to communication equipment sets with the historical position information The timing value of second timer is the upper setting value not less than the second timer;
Timing value according to the second timer periodically detects whether the network parameter under the second network meets first Network preference pattern switching condition;
When the network parameter under second network meets first network preference pattern switching condition, by the current network Preference pattern is set to first network preference pattern, and obtains current location information as historical position information preservation.
2. network preference pattern changing method as claimed in claim 1, it is characterised in that described when there being the historical position During information, the current location information according to communication equipment sets the timing value of the second timer with the historical position information It is the upper setting value not less than the second timer, including:
When there is the historical position information, the current location information of communication equipment is obtained;
The displacement of communication equipment is calculated with the historical position information according to the current location information;
Judge the displacement of the communication equipment whether more than default distance threshold;
When the displacement of the communication equipment is more than default distance threshold, the value for setting second timer is described second N times of a upper setting value of timer;Wherein, N > 1;
When the displacement of the communication equipment is less than default distance threshold, set the value of second timer as it is default most Big value.
3. network preference pattern changing method as claimed in claim 2, it is characterised in that described when there being the historical position During information, the current location information according to communication equipment sets the timing value of the second timer with the historical position information It is the upper setting value not less than the second timer, also includes:
When the timing value of the second timer exceedes the default maximum, the timing value of the second timer is set It is set to the default maximum.
4. network preference pattern changing method as claimed in claim 1, it is characterised in that described when current network preference pattern During for first network preference pattern, the timing value according to default first timer periodically detects the net under first network Whether network parameter meets the second network preference pattern switching condition, including:
When current network preference pattern is first network preference pattern, the timing value according to default first timer is periodically The current network speed of ground detection first network;
When the current network speed of the first network is more than network speed threshold value, judge that network parameter under first network is unsatisfactory for the Two network preference pattern switching conditions.
5. network preference pattern changing method as claimed in claim 4, it is characterised in that described when current network preference pattern During for first network preference pattern, the timing value according to default first timer periodically detects the net under first network Whether network parameter meets the second network preference pattern switching condition, also includes:
When the current network speed of the first network is less than network speed threshold value, it is average to obtain that detection of connectivity is carried out to first network Number of dropped packets and average delay;
When the average number of dropped packets is less than packet loss threshold value and the average delay is less than delay threshold, judge under first network Network parameter be unsatisfactory for the second network preference pattern switching condition;
When the average number of dropped packets is more than delay threshold more than packet loss threshold value or the average delay, judge under first network Network parameter meet the second network preference pattern switching condition.
6. a kind of network preference pattern switching device, it is characterised in that described device is configured in a communications device, including:
First network detection module, for when current network preference pattern is first network preference pattern, according to default the The timing value of one timer periodically detects whether the network parameter under first network meets the second network preference pattern and cut Change condition;
Historical position removes module, for being cut when the network parameter under the first network is unsatisfactory for the second network preference pattern When changing condition, the historical position information of communication equipment is removed;
First mode handover module, for meeting the switching of the second network preference pattern when the network parameter under the first network During condition, the current network preference pattern is set to the second network preference pattern;
Historical position judge module, for when the current network preference pattern is the second network preference pattern, judging whether There is the historical position information;
First timing value setting module, for when there not being the historical position information, setting the timing value of second timer It is default initial value;
Second timing value setting module, for when there being the historical position information, the present bit confidence according to communication equipment The timing value that breath sets second timer with the historical position information is the upper setting value not less than the second timer;
Second network detection module, for periodically being detected under the second network according to the timing value of the second timer Whether network parameter meets first network preference pattern switching condition;
Second mode handover module, for meeting the switching of first network preference pattern when the network parameter under second network During condition, the current network preference pattern is set to first network preference pattern, and obtain current location information as Historical position information is preserved.
7. network preference pattern switching device as claimed in claim 6, it is characterised in that the second timing value setting module Including:
Present location obtaining unit, for when there is the historical position information, obtaining the current location information of communication equipment;
Metrics calculation unit, the movement for calculating communication equipment with the historical position information according to the current location information Distance;
Distance Judgment unit, for judging the displacement of the communication equipment whether more than default distance threshold;
First timing value setting unit, for when the displacement of the communication equipment is more than default distance threshold, setting The timing value of second timer is N times of a upper setting value of the second timer;Wherein, N > 1;
Second timing value setting unit, for when the displacement of the communication equipment is less than default distance threshold, setting The timing value of second timer is default maximum.
8. network preference pattern switching device as claimed in claim 7, it is characterised in that the second timing value setting module Also include:
Timing value sets control unit, for when the timing value of the second timer exceedes the default maximum, inciting somebody to action The timing value of the second timer is set as the default maximum.
9. network preference pattern switching device as claimed in claim 6, it is characterised in that the first network detection module bag Include:
First network speed detection unit, for when current network preference pattern is first network preference pattern, according to default The timing value of first timer periodically detect the current network speed of first network;
First detection identifying unit, for when the current network speed of the first network is more than network speed threshold value, judging in the first net Network parameter under network is unsatisfactory for the second network preference pattern switching condition.
10. network preference pattern switching device as claimed in claim 9, it is characterised in that the first network detection module Also include:
Detection of connectivity unit, for when the current network speed of the first network is less than network speed threshold value, being carried out to first network Detection of connectivity is obtaining average number of dropped packets and average delay;
Second detection identifying unit, for when the average number of dropped packets is less than packet loss threshold value and the average delay is less than time delay threshold During value, judge that the network parameter under first network is unsatisfactory for the second network preference pattern switching condition;
3rd detection identifying unit, for being more than time delay threshold more than packet loss threshold value or the average delay when the average number of dropped packets During value, judge that the network parameter under first network meets the second network preference pattern switching condition.
CN201710257539.9A 2017-04-19 2017-04-19 Network preferred mode switching method and device Active CN106922006B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710257539.9A CN106922006B (en) 2017-04-19 2017-04-19 Network preferred mode switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710257539.9A CN106922006B (en) 2017-04-19 2017-04-19 Network preferred mode switching method and device

Publications (2)

Publication Number Publication Date
CN106922006A true CN106922006A (en) 2017-07-04
CN106922006B CN106922006B (en) 2020-03-24

Family

ID=59567379

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710257539.9A Active CN106922006B (en) 2017-04-19 2017-04-19 Network preferred mode switching method and device

Country Status (1)

Country Link
CN (1) CN106922006B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109151711A (en) * 2018-08-21 2019-01-04 新华三技术有限公司 A kind of connection method for building up and device
CN110035409A (en) * 2018-01-12 2019-07-19 联发科技股份有限公司 Method and electronic device for being communicated on high-speed railway
CN113055962A (en) * 2021-03-05 2021-06-29 南昌黑鲨科技有限公司 Multi-network switching method and system of intelligent terminal and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610521A (en) * 2008-06-19 2009-12-23 中国移动通信集团公司 A kind of method and device of measuring report cycle of adjusting
CN106257952A (en) * 2015-06-16 2016-12-28 西安中兴新软件有限责任公司 A kind of method switching mobile network and mobile terminal
CN106412983A (en) * 2016-11-18 2017-02-15 宇龙计算机通信科技(深圳)有限公司 Terminal-flow-based control method and apparatus
WO2017053742A1 (en) * 2015-09-23 2017-03-30 Convida Wireless, Llc Aggregated handover in integrated small cell and wifi networks

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101610521A (en) * 2008-06-19 2009-12-23 中国移动通信集团公司 A kind of method and device of measuring report cycle of adjusting
CN106257952A (en) * 2015-06-16 2016-12-28 西安中兴新软件有限责任公司 A kind of method switching mobile network and mobile terminal
WO2017053742A1 (en) * 2015-09-23 2017-03-30 Convida Wireless, Llc Aggregated handover in integrated small cell and wifi networks
CN106412983A (en) * 2016-11-18 2017-02-15 宇龙计算机通信科技(深圳)有限公司 Terminal-flow-based control method and apparatus

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110035409A (en) * 2018-01-12 2019-07-19 联发科技股份有限公司 Method and electronic device for being communicated on high-speed railway
CN109151711A (en) * 2018-08-21 2019-01-04 新华三技术有限公司 A kind of connection method for building up and device
CN113055962A (en) * 2021-03-05 2021-06-29 南昌黑鲨科技有限公司 Multi-network switching method and system of intelligent terminal and computer readable storage medium
CN113055962B (en) * 2021-03-05 2022-07-26 南昌黑鲨科技有限公司 Multi-network switching method and system of intelligent terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN106922006B (en) 2020-03-24

Similar Documents

Publication Publication Date Title
CN106922006A (en) A kind of network preference pattern changing method and device
CN102769879B (en) A kind of method that mobile terminal is switched fast, mobile terminal and base station
CN105474602B (en) The method, apparatus and equipment of attack stream are identified in software defined network
CN107466079B (en) Automatic relay switching method and device
CN107547507A (en) A kind of anti-attack method, device, router device and machinable medium
CN101483592A (en) Method and apparatus for inhibiting bidirectional forwarding detection link oscillation
CN108012301A (en) A kind of mobile terminal and its method for connecting network, computer-readable recording medium
CN103702348B (en) A kind of detection method and device of Home eNodeB lower network quality
CN105792301B (en) A kind of terminal of handover network, method and system
CN105659666A (en) Mobile terminal controlling method and mobile terminal
CN106034339A (en) Method and device for blind handover or blind redirection in mobile communication system
CN109413701A (en) A kind of VoLTE business switch method and system
CN109039799A (en) Link state detection method, device and the network equipment
CN110049528A (en) Mobile trust data collection method based on trust value effectiveness in a kind of Sensor Network
EP2893737B1 (en) Method, device and program for validation of sleeping cells in a communications network
CN114828125A (en) Voice service switching method and device, electronic equipment and storage medium
CN105898873B (en) The distribution method and device and data transmission method and device of data frame
WO2024037070A1 (en) Method and apparatus for implementing a switch between networks, and electronic device
CN109661012A (en) Information collection and processing method, apparatus and system
CN105721190B (en) Fault detection method, device and the server of data transfer path
Vaezian et al. MSE-RPL: mobility support enhancement in RPL for IoT mobile applications
CN105491633B (en) Wireless network vertical handoff method and device
Kampitaki et al. Evaluating selfishness impact on MANETs
CN113766455B (en) Shipborne communication network switching control method and controller
CN113676408B (en) Routing method, system, device and storage medium for virtual private network

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
TR01 Transfer of patent right

Effective date of registration: 20220615

Address after: 200000 5th floor, No. 1 and 5, Lane 168, Xumin Road, Qingpu District, Shanghai

Patentee after: Shanghai LianHong Technology Co.,Ltd.

Address before: 518000 the 1st and 3rd floors of the south section of building 24 and the 1st-4th floor of the north section of building 28, Shennan Road Science and Technology Park, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: TP-LINK TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right