CN108696859B - Method for accessing Internet by double-card mobile terminal and double-card mobile terminal - Google Patents

Method for accessing Internet by double-card mobile terminal and double-card mobile terminal Download PDF

Info

Publication number
CN108696859B
CN108696859B CN201811032060.6A CN201811032060A CN108696859B CN 108696859 B CN108696859 B CN 108696859B CN 201811032060 A CN201811032060 A CN 201811032060A CN 108696859 B CN108696859 B CN 108696859B
Authority
CN
China
Prior art keywords
sim card
target
result
address
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811032060.6A
Other languages
Chinese (zh)
Other versions
CN108696859A (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201811032060.6A priority Critical patent/CN108696859B/en
Publication of CN108696859A publication Critical patent/CN108696859A/en
Application granted granted Critical
Publication of CN108696859B publication Critical patent/CN108696859B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • 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
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier

Landscapes

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

Abstract

The invention provides a method for accessing the Internet by a double-card mobile terminal and the double-card mobile terminal. The method for accessing the Internet by the dual-card mobile terminal comprises the following steps: receiving a DNS request sent by an application system; controlling any SIM card in the double cards to send a DNS request to a DNS server, and receiving a target IP address corresponding to the DNS request fed back by the DNS server; respectively accessing the two SIM cards into a target IP address, and testing the access performance of the two SIM cards; and selecting the Internet access service with the SIM card with better access performance to bear the target IP address according to the test result of the access performance. According to the method for accessing the Internet by the dual-card mobile terminal, the access performance of two SIM cards accessing the target IP address is tested, and then the SIM card with the better access performance is selected to bear the Internet access service of the target IP address, so that the dual-card mobile terminal can automatically obtain the best access effect, and the user experience is improved.

Description

Method for accessing Internet by double-card mobile terminal and double-card mobile terminal
Technical Field
The invention relates to the technical field of communication, in particular to a method for accessing the Internet by a dual-card mobile terminal and the dual-card mobile terminal.
Background
At present, a dual-card dual-standby mobile terminal is a relatively popular configuration, a dual card refers to a mobile terminal having two card slots, and capable of installing two SIM cards, each SIM card can support one or more network systems, the two SIM cards can belong to the same operator or different operators, and a dual standby function refers to that when the two SIM cards support different network systems, the mobile terminal supports the two SIM cards to register successfully on two networks respectively and to standby simultaneously; when the two SIM cards support the same network system, the mobile terminal supports the two SIM cards to register successfully on the same network respectively and stand by at the same time.
The dual cards of the dual-card dual-standby mobile terminal are divided into a main card and an auxiliary card, and the main card is generally selected to carry the service when the mobile terminal is in a call or is on the internet, and the auxiliary card can also be selected to carry the service manually. Because the network condition of the main card is not necessarily better than that of the auxiliary card, the current default main card bearer service configuration often causes that the dual-card mobile terminal cannot obtain the best access effect, and the user experience is not good.
Therefore, how to select the SIM card actually carrying the service according to the actual network conditions of the primary card and the secondary card has become a problem to be solved urgently at present.
Disclosure of Invention
Aiming at the technical problems in the prior art, the invention provides a method for accessing the Internet by a double-card mobile terminal and the double-card mobile terminal. According to the method for accessing the Internet by the dual-card mobile terminal, the access performance of two SIM cards accessing the target IP address is tested, and then the SIM card with the better access performance is selected to bear the Internet access service of the target IP address, so that the dual-card mobile terminal can automatically obtain the best access effect, and the user experience is improved.
The invention provides a method for accessing the Internet by a double-card mobile terminal, which comprises the following steps: receiving a DNS request sent by an application system;
controlling any SIM card in the dual cards to send the DNS request to a DNS server, and receiving a target IP address corresponding to the DNS request fed back by the DNS server;
respectively accessing the two SIM cards to the target IP address, and testing the access performance of the two SIM cards;
and selecting the SIM card with better access performance to bear the Internet access service of the target IP address according to the test result of the access performance.
Preferably, the two SIM cards are a first SIM card and a second SIM card; the step of respectively accessing the two SIM cards to the target IP address and testing the access performance of the two SIM cards comprises the following steps:
sending an access test packet to the target IP address through the first SIM card, and acquiring first test information of the first SIM card accessing the target IP address; the first test information comprises time delay, jitter and packet loss rate test information;
sending an access test packet to the target IP address through the second SIM card, and acquiring second test information of the second SIM card accessing the target IP address; the second test information comprises time delay, jitter and packet loss rate test information;
respectively carrying out normalization processing on each item of test information in the first test information and the second test information to obtain first result information of the first SIM card accessing the target IP address and second result information of the second SIM card accessing the target IP address;
the first result information comprises time delay, jitter and packet loss rate result information, and the second result information comprises time delay, jitter and packet loss rate result information.
Preferably, the accessing the two SIM cards to the target IP address respectively, and the testing the access performance of the two SIM cards further includes:
monitoring the respective current flow usage amounts of the first SIM card and the second SIM card in real time;
respectively calculating the current traffic utilization rates of the first SIM card and the second SIM card according to the current traffic utilization rate;
and normalizing the current traffic utilization rate of the first SIM card and the current traffic utilization rate of the second SIM card to obtain respective traffic utilization rate results of the first SIM card and the second SIM card.
Preferably, the selecting, according to the test result of the access performance, the internet access service of the target IP address carried by the SIM card with the better access performance includes:
calculating an access performance test result of the first SIM card according to the first result information and the flow utilization rate result of the first SIM card;
calculating an access performance test result of the second SIM card according to the second result information and the flow utilization rate result of the second SIM card;
comparing the access performance test result of the first SIM card with the access performance test result of the second SIM card;
and determining the SIM card with the smaller access performance test result value as the SIM card with the better access performance, and selecting the SIM card with the better access performance to bear the Internet access service of the target IP address.
Preferably, the selecting, according to the test result of the access performance, the internet access service in which the SIM card with the better access performance carries the target IP address further includes:
determining the weight parameters of each item of result information in the first result information and the weight parameters of the flow utilization rate result of the first SIM card according to the port number of the first SIM card accessing the target IP address;
recording the weight parameters of each item of result information in the first result information and the weight parameters of the traffic utilization rate result of the first SIM card into the calculation of the access performance test result of the first SIM card;
determining the weight parameters of each item of result information in the second result information and the weight parameters of the flow utilization rate result of the second SIM card according to the port number of the second SIM card accessing the target IP address;
and recording the weight parameters of each item of result information in the second result information and the weight parameters of the flow utilization rate result of the second SIM card into the calculation of the access performance test result of the second SIM card.
The present invention also provides a dual card mobile terminal, comprising:
the receiving module is used for receiving a DNS request sent by an application system;
the control receiving module is used for controlling any SIM card in the double cards to send the DNS request to a DNS server and receiving a target IP address corresponding to the DNS request fed back by the DNS server;
the access testing module is used for respectively accessing the two SIM cards into the target IP address and testing the access performance of the two SIM cards;
and the selection module is used for selecting the SIM card with better access performance to bear the Internet access service of the target IP address according to the test result of the access performance.
Preferably, the two SIM cards are a first SIM card and a second SIM card; the access test module comprises:
a first obtaining unit, configured to send an access test packet to the target IP address through the first SIM card, and obtain first test information of the first SIM card accessing the target IP address; the first test information comprises time delay, jitter and packet loss rate test information;
the second obtaining unit is used for sending an access test packet to the target IP address through the second SIM card and obtaining second test information of the second SIM card accessing the target IP address; the second test information comprises time delay, jitter and packet loss rate test information;
the first processing unit is configured to perform normalization processing on each item of test information in the first test information and the second test information, and obtain first result information that the first SIM card accesses the target IP address and second result information that the second SIM card accesses the target IP address;
the first result information comprises time delay, jitter and packet loss rate result information, and the second result information comprises time delay, jitter and packet loss rate result information.
Preferably, the access testing module further comprises:
the monitoring unit is used for monitoring the respective current flow usage amount of the first SIM card and the second SIM card in real time;
the first calculating unit is used for respectively calculating the current flow utilization rates of the first SIM card and the second SIM card according to the current flow utilization rate;
a second processing unit, configured to perform normalization processing on the current traffic usage rate of the first SIM card and the current traffic usage rate of the second SIM card, and obtain respective traffic usage rate results of the first SIM card and the second SIM card.
Preferably, the selection module comprises:
a second calculating unit, configured to calculate an access performance test result of the first SIM card according to the first result information and a traffic usage result of the first SIM card;
a third calculating unit, configured to calculate an access performance test result of the second SIM card according to the second result information and the traffic utilization result of the second SIM card;
a comparing unit, configured to compare an access performance test result of the first SIM card with an access performance test result of the second SIM card;
and the determining and selecting unit is used for determining the SIM card with the smaller access performance test result value as the SIM card with the better access performance and selecting the SIM card with the better access performance to bear the Internet access service of the target IP address.
Preferably, the selection module further comprises:
a first determining unit, configured to determine, according to a port number of the first SIM card accessing the target IP address, a weight parameter of each item of result information in the first result information and a weight parameter of a traffic utilization result of the first SIM card;
the second calculating unit is further configured to count the weight parameters of each item of result information in the first result information and the weight parameters of the traffic utilization result of the first SIM card into the calculation of the access performance test result of the first SIM card;
a second determining unit, configured to determine, according to a port number of the second SIM card accessing the target IP address, a weight parameter of each item of result information in the second result information and a weight parameter of a traffic utilization result of the second SIM card;
the third calculating unit is further configured to count the weight parameters of each item of result information in the second result information and the weight parameters of the traffic utilization result of the second SIM card into the calculation of the access performance test result of the second SIM card.
The invention has the beneficial effects that: according to the method for accessing the Internet by the dual-card mobile terminal, provided by the invention, the access performance of two SIM cards accessing the target IP address is tested, and then the SIM card with better access performance is selected to bear the Internet access service of the target IP address, so that the dual-card mobile terminal can automatically obtain the best access effect, and the user experience is improved.
According to the dual-card mobile terminal provided by the invention, by arranging the receiving module, the control receiving module, the access testing module and the selecting module, the access performance of two SIM cards accessing the target IP address can be tested firstly, and then the SIM card with better access performance is selected to bear the internet access service of the target IP address, so that the dual-card mobile terminal can automatically obtain the best access effect, and further the user experience is improved.
Drawings
Fig. 1 is a flowchart of a method for a dual-card mobile terminal to access the internet in embodiment 1 of the present invention;
fig. 2 is a flowchart of a method for accessing the internet by a dual-card mobile terminal in embodiment 2 of the present invention;
fig. 3 is a schematic block diagram of a dual-card mobile terminal in embodiment 3 of the present invention.
Wherein the reference numbers indicate:
1. a receiving module; 2. a control receiving module; 3. accessing a test module; 31. a first acquisition unit; 32. a second acquisition unit; 33. a first processing unit; 34. a monitoring unit; 35. a first calculation unit; 36. a second processing unit; 4. a selection module; 41. a second calculation unit; 42. a third calculation unit; 43. a comparison unit; 44. determining a selection unit; 45. a first determination unit; 46. a second determination unit.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the method for accessing internet by using a dual-card mobile terminal and the dual-card mobile terminal provided by the present invention are described in further detail below with reference to the accompanying drawings and the detailed description.
Example 1:
the embodiment provides a method for accessing internet by a dual-card mobile terminal, as shown in fig. 1, including:
step S10: a DNS request by an application system is received.
In this step, the application system is an application system in the dual-card mobile terminal. When the mobile terminal starts the internet service access, firstly, a DNS request is sent through an application system to inquire the IP address of the target internet service.
Step S11: and controlling any SIM card in the dual cards to send a DNS request to a DNS server and receiving a target IP address corresponding to the DNS request fed back by the DNS server.
In this step, the SIM card used in the last access to the internet service may be selected to send a DNS request to the DNS server, or another SIM card may be selected to send a DNS request to the DNS server.
Step S12: and respectively accessing the two SIM cards to the target IP address, and testing the access performance of the two SIM cards.
Step S13: and selecting the Internet access service with the SIM card with better access performance to bear the target IP address according to the test result of the access performance.
According to the method for accessing the Internet by the dual-card mobile terminal, the access performance of two SIM cards accessing the target IP address is tested, and then the SIM card with the better access performance is selected to bear the Internet access service of the target IP address, so that the dual-card mobile terminal can automatically obtain the best access effect, and the user experience is improved.
Example 2:
the embodiment provides a method for accessing internet by a dual-card mobile terminal, as shown in fig. 2, including:
step S10: a DNS request by an application system is received.
In this step, the application system is an application system in the dual-card mobile terminal. When the mobile terminal starts the internet service access, firstly, a DNS request is sent through an application system to inquire the IP address of the target internet service.
Step S11: and controlling any SIM card in the dual cards to send a DNS request to a DNS server and receiving a target IP address corresponding to the DNS request fed back by the DNS server.
In this embodiment, the two SIM cards are a first SIM card and a second SIM card.
In this step, the first SIM card used when accessing the internet service last time may be selected to send a DNS request to the DNS server, or the second SIM card may be selected to send a DNS request to the DNS server.
Step S12: and respectively accessing the two SIM cards to the target IP address, and testing the access performance of the two SIM cards.
The method specifically comprises the following steps:
step S120: sending an access test packet to a target IP address through a first SIM card, and acquiring first test information of the first SIM card accessing the target IP address; the first test information comprises time delay, jitter and packet loss rate test information.
Such as: the first test information comprises time delay A1, jitter B1 and packet loss rate C1 test information.
Step S121: sending an access test packet to the target IP address through the second SIM card, and acquiring second test information of the second SIM card accessing the target IP address; the second test information comprises time delay, jitter and packet loss rate test information.
Such as: the second test information comprises time delay A2, jitter B2 and packet loss rate C2 test information.
It should be noted that the sequence of step S120 and step S121 may be interchanged, or step S120 and step S121 may be performed simultaneously.
Step S122: and respectively carrying out normalization processing on each item of test information in the first test information and the second test information to obtain first result information of the first SIM card accessing the target IP address and second result information of the second SIM card accessing the target IP address.
The first result information comprises time delay, jitter and packet loss rate result information, and the second result information comprises time delay, jitter and packet loss rate result information.
The specific process of respectively carrying out normalization processing on the time delay, jitter and packet loss rate test information in the first test information and the second test information is as follows:
comparing A1 with A2, if A1 is greater than A2, the time delay value from the first SIM card to the target IP address after normalization is A1/A1, and the time delay value from the second SIM card to the target IP address after normalization is A2/A1. If A1 is less than A2, the time delay value from the first SIM card to the target IP address after normalization is A1/A2, and the time delay value from the second SIM card to the target IP address after normalization is A2/A2. And respectively carrying out normalization processing on the jitter and packet loss rate test information according to the method. After the time delay, jitter and packet loss rate test information is normalized, the first result information, namely the time delay, jitter and packet loss rate result information of the first SIM card accessing the target IP address, is respectively A3, B3 and C3, and the second result information, namely the time delay, jitter and packet loss rate result information of the second SIM card accessing the target IP address, is respectively a4, B4 and C4.
Step S12 further includes:
step S123: and monitoring the respective current flow usage amount of the first SIM card and the second SIM card in real time.
Step S124: and respectively calculating the current flow utilization rates of the first SIM card and the second SIM card according to the current flow utilization rate.
In the step, for example: the total available flow of the first SIM card is D1, and the current flow usage is E1, then the current flow usage of the first SIM card is E1/D1; and the total available flow of the second SIM card is D2, and the current flow usage is E2, then the current flow usage of the second SIM card is E2/D2.
Step S125: and normalizing the current flow utilization rate of the first SIM card and the current flow utilization rate of the second SIM card to obtain respective flow utilization rate results of the first SIM card and the second SIM card.
The specific process of normalizing the current traffic utilization rate of the first SIM card and the current traffic utilization rate of the second SIM card is as follows:
such as: the traffic utilization results obtained after the current traffic utilization normalization processing of the first SIM card and the second SIM card are F1 and F2, respectively.
If (E1/D1) > (E2/D2), F1 ═ (E1/D1)/(E1/D1), F2 ═ (E2/D2)/(E1/D1);
if (E1/D1) < (E2/D2), F1 is (E1/D1)/(E2/D2), and F2 is (E2/D2)/(E2/D2).
Step S13: and selecting the Internet access service with the SIM card with better access performance to bear the target IP address according to the test result of the access performance.
The method specifically comprises the following steps:
step S130: and calculating an access performance test result of the first SIM card according to the first result information and the flow utilization rate result of the first SIM card.
Step S131: and calculating the access performance test result of the second SIM card according to the second result information and the flow utilization rate result of the second SIM card.
Step S13 further includes:
step S132: and determining the weight parameters of each item of result information in the first result information and the weight parameters of the traffic utilization rate result of the first SIM card according to the port number of the first SIM card accessing the target IP address.
Step S133: and recording the weight parameters of each item of result information in the first result information and the weight parameters of the traffic utilization rate result of the first SIM card into the calculation of the access performance test result of the first SIM card.
Step S134: and determining the weight parameters of each item of result information in the second result information and the weight parameters of the flow utilization rate result of the second SIM card according to the port number of the second SIM card accessing the target IP address.
It should be noted that the sequence of step S132 and step S134 may be interchanged, or step S120 and step S121 may be performed simultaneously.
Step S135: and recording the weight parameters of each item of result information in the second result information and the weight parameters of the flow utilization rate result of the second SIM card into the calculation of the access performance test result of the second SIM card.
Step S136: and comparing the access performance test result of the first SIM card with the access performance test result of the second SIM card.
Step S137: and determining the SIM card with the smaller value of the access performance test result as the SIM card with the better access performance, and selecting the SIM card with the better access performance to bear the Internet access service of the target IP address.
Such as: the calculation formula of the access performance test result of the first SIM card is as follows: g1 ═ I1 × A3+ J1 × B3+ M1 × C3+ N1 × F1, wherein G1 is an access performance test result of the first SIM card; a3, B3 and C3 are the delay, jitter and packet loss rate result information of the first SIM card accessing the target IP address respectively; i1, J1 and M1 are weight parameters of time delay, jitter and packet loss rate result information of the first SIM card accessing the target IP address respectively; f1 is the traffic usage result of the first SIM card; n1 is a weighting parameter of the traffic usage result of the first SIM card.
The calculation formula of the access performance test result of the second SIM card is as follows: g2 ═ I2 × a4+ J2 × B4+ M2 × C4+ N2 × F2, wherein G2 is the access performance test result of the second SIM card; a4, B4 and C4 are the result information of time delay, jitter and packet loss rate of the second SIM card accessing the target IP address respectively; i2, J2 and M2 are weight parameters of time delay, jitter and packet loss rate result information of the second SIM card accessing the target IP address respectively; f2 is the traffic usage result of the second SIM card; n2 is a weighting parameter for the traffic usage result of the second SIM card.
Comparing G1 with G2, and if G1< G2, selecting the first SIM card to carry the Internet access service of the target IP address; if G1> G2, the second SIM card is selected to carry the Internet access service of the target IP address.
Advantageous effects of examples 1 to 2: in the method for accessing the internet by the dual-card mobile terminal provided in embodiment 1-2, the access performance of two SIM cards accessing the target IP address is tested, and then the SIM card with the better access performance is selected to carry the internet access service of the target IP address, so that the dual-card mobile terminal can automatically obtain the best access effect, thereby improving the user experience.
Example 3:
based on the method for accessing the internet by using the dual-card mobile terminal provided in embodiment 2, this embodiment provides a dual-card mobile terminal, as shown in fig. 3, including: the receiving module 1 is used for receiving a DNS request sent by an application system. And the control receiving module 2 is used for controlling any SIM card in the dual cards to send a DNS request to the DNS server and receiving a target IP address corresponding to the DNS request fed back by the DNS server. And the access testing module 3 is used for respectively accessing the two SIM cards into the target IP address and testing the access performance of the two SIM cards. And the selection module 4 is used for selecting the Internet access service of the target IP address borne by the SIM card with better access performance according to the test result of the access performance.
According to the dual-card mobile terminal, the access performance of two SIM cards accessing a target IP address can be tested firstly by arranging the access testing module 3 and the selecting module 4, and then the SIM card with the better access performance is selected to bear the internet access service of the target IP address, so that the dual-card mobile terminal can automatically obtain the best access effect, and further the user experience is improved.
In this embodiment, the two SIM cards are a first SIM card and a second SIM card. The access test module 3 includes: a first obtaining unit 31, configured to send an access test packet to a target IP address through a first SIM card, and obtain first test information that the first SIM card accesses the target IP address; the first test information comprises time delay, jitter and packet loss rate test information. A second obtaining unit 32, configured to send an access test packet to the target IP address through the second SIM card, and obtain second test information of the second SIM card accessing the target IP address; the second test information comprises time delay, jitter and packet loss rate test information. The first processing unit 33 is configured to perform normalization processing on each item of test information in the first test information and the second test information, respectively, to obtain first result information of the first SIM card accessing the target IP address and second result information of the second SIM card accessing the target IP address. The first result information comprises time delay, jitter and packet loss rate result information, and the second result information comprises time delay, jitter and packet loss rate result information.
Wherein, the access test module 3 further comprises: and the monitoring unit 34 is configured to monitor current traffic usage of the first SIM card and the second SIM card in real time. The first calculating unit 35 is configured to calculate current traffic usage rates of the first SIM card and the second SIM card according to the current traffic usage rates. The second processing unit 36 is configured to perform normalization processing on the current traffic usage rate of the first SIM card and the current traffic usage rate of the second SIM card, and obtain respective traffic usage rate results of the first SIM card and the second SIM card.
In this embodiment, the selection module 4 includes: the second calculating unit 41 is configured to calculate an access performance test result of the first SIM card according to the first result information and the traffic utilization result of the first SIM card. And a third calculating unit 42, configured to calculate an access performance test result of the second SIM card according to the second result information and the traffic utilization result of the second SIM card. A comparing unit 43, configured to compare the access performance test result of the first SIM card with the access performance test result of the second SIM card. And the determining and selecting unit 44 is configured to determine the SIM card with the smaller access performance test result value as the SIM card with the better access performance, and select the SIM card with the better access performance to carry the internet access service of the target IP address.
In this embodiment, the selecting module 4 further includes: a first determining unit 45, configured to determine, according to a port number of the first SIM card accessing the target IP address, a weight parameter of each item of result information in the first result information and a weight parameter of a traffic usage result of the first SIM card. The second calculating unit 41 is further configured to count the weight parameters of each item of result information in the first result information and the weight parameters of the traffic usage result of the first SIM card into the calculation of the access performance test result of the first SIM card. A second determining unit 46, configured to determine, according to a port number of the second SIM card accessing the target IP address, a weight parameter of each item of result information in the second result information and a weight parameter of a traffic utilization result of the second SIM card. The third calculating unit 42 is further configured to count the weight parameters of each item of result information in the second result information and the weight parameters of the traffic usage result of the second SIM card into the calculation of the access performance test result of the second SIM card.
According to the double-card mobile terminal, the receiving module, the control receiving module, the access testing module and the selection module are arranged, so that the access performance of two SIM cards accessing a target IP address can be tested firstly, and then the SIM card with the better access performance is selected to bear the internet access service of the target IP address, so that the double-card mobile terminal can automatically obtain the best access effect, and further the user experience is improved.
It will be understood that the above embodiments are merely exemplary embodiments taken to illustrate the principles of the present invention, which is not limited thereto. It will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the spirit and substance of the invention, and these modifications and improvements are also considered to be within the scope of the invention.

Claims (8)

1. A method for accessing Internet by a dual-card mobile terminal is characterized by comprising the following steps: receiving a DNS request sent by an application system;
controlling any SIM card in the dual cards to send the DNS request to a DNS server, and receiving a target IP address corresponding to the DNS request fed back by the DNS server;
respectively accessing the two SIM cards to the target IP address, and testing the access performance of the two SIM cards to obtain first result information of accessing a first SIM card of the two SIM cards to the target IP address and second result information of accessing a second SIM card of the two SIM cards to the target IP address;
selecting the SIM card with better access performance to bear the Internet access service of the target IP address according to the test result of the access performance; the step of selecting the SIM card with better access performance to bear the Internet access service of the target IP address according to the test result of the access performance comprises the following steps:
determining the weight parameters of each item of result information in the first result information and the weight parameters of the flow utilization rate result of the first SIM card according to the port number of the first SIM card accessing the target IP address;
recording the weight parameters of each item of result information in the first result information and the weight parameters of the traffic utilization rate result of the first SIM card into the calculation of the access performance test result of the first SIM card;
determining the weight parameters of each item of result information in the second result information and the weight parameters of the flow utilization rate result of the second SIM card according to the port number of the second SIM card accessing the target IP address;
and recording the weight parameters of each item of result information in the second result information and the weight parameters of the flow utilization rate result of the second SIM card into the calculation of the access performance test result of the second SIM card.
2. The method for accessing internet of a dual-card mobile terminal of claim 1, wherein the two SIM cards are a first SIM card and a second SIM card; the step of respectively accessing the two SIM cards to the target IP address and testing the access performance of the two SIM cards comprises the following steps:
sending an access test packet to the target IP address through the first SIM card, and acquiring first test information of the first SIM card accessing the target IP address; the first test information comprises time delay, jitter and packet loss rate test information;
sending an access test packet to the target IP address through the second SIM card, and acquiring second test information of the second SIM card accessing the target IP address; the second test information comprises time delay, jitter and packet loss rate test information;
respectively carrying out normalization processing on each item of test information in the first test information and the second test information to obtain first result information of the first SIM card accessing the target IP address and second result information of the second SIM card accessing the target IP address;
the first result information comprises time delay, jitter and packet loss rate result information, and the second result information comprises time delay, jitter and packet loss rate result information.
3. The method of claim 2, wherein the accessing the two SIM cards to the target IP address respectively and the testing the access performance of the two SIM cards further comprises:
monitoring the respective current flow usage amounts of the first SIM card and the second SIM card in real time;
respectively calculating the current traffic utilization rates of the first SIM card and the second SIM card according to the current traffic utilization rate;
and normalizing the current traffic utilization rate of the first SIM card and the current traffic utilization rate of the second SIM card to obtain respective traffic utilization rate results of the first SIM card and the second SIM card.
4. The method of claim 3, wherein the selecting the SIM card with better access performance to carry the internet access service of the target IP address according to the test result of the access performance further comprises:
calculating an access performance test result of the first SIM card according to the first result information and the flow utilization rate result of the first SIM card;
calculating an access performance test result of the second SIM card according to the second result information and the flow utilization rate result of the second SIM card;
comparing the access performance test result of the first SIM card with the access performance test result of the second SIM card;
and determining the SIM card with the smaller access performance test result value as the SIM card with the better access performance, and selecting the SIM card with the better access performance to bear the Internet access service of the target IP address.
5. A dual card mobile terminal, comprising:
the receiving module is used for receiving a DNS request sent by an application system;
the control receiving module is used for controlling any SIM card in the double cards to send the DNS request to a DNS server and receiving a target IP address corresponding to the DNS request fed back by the DNS server;
the access testing module is used for respectively accessing the two SIM cards to the target IP address and testing the access performance of the two SIM cards to obtain first result information of accessing a first SIM card of the two SIM cards to the target IP address and second result information of accessing a second SIM card of the two SIM cards to the target IP address;
the selection module is used for selecting the SIM card with better access performance to bear the Internet access service of the target IP address according to the test result of the access performance;
the selection module comprises:
a first determining unit, configured to determine, according to a port number of the first SIM card accessing the target IP address, a weight parameter of each item of result information in the first result information and a weight parameter of a traffic utilization result of the first SIM card;
a second calculating unit, configured to count weight parameters of each item of result information in the first result information and weight parameters of a traffic utilization result of the first SIM card into calculation of an access performance test result of the first SIM card;
a second determining unit, configured to determine, according to a port number of the second SIM card accessing the target IP address, a weight parameter of each item of result information in the second result information and a weight parameter of a traffic utilization result of the second SIM card;
and the third calculating unit is used for calculating the weight parameters of each item of result information in the second result information and the weight parameters of the flow utilization rate result of the second SIM card into the calculation of the access performance test result of the second SIM card.
6. The dual-card mobile terminal of claim 5, wherein the two SIM cards are a first SIM card and a second SIM card; the access test module comprises:
a first obtaining unit, configured to send an access test packet to the target IP address through the first SIM card, and obtain first test information of the first SIM card accessing the target IP address; the first test information comprises time delay, jitter and packet loss rate test information;
the second obtaining unit is used for sending an access test packet to the target IP address through the second SIM card and obtaining second test information of the second SIM card accessing the target IP address; the second test information comprises time delay, jitter and packet loss rate test information;
the first processing unit is configured to perform normalization processing on each item of test information in the first test information and the second test information, and obtain first result information that the first SIM card accesses the target IP address and second result information that the second SIM card accesses the target IP address;
the first result information comprises time delay, jitter and packet loss rate result information, and the second result information comprises time delay, jitter and packet loss rate result information.
7. The dual-card mobile terminal of claim 6, wherein the access test module further comprises:
the monitoring unit is used for monitoring the respective current flow usage amount of the first SIM card and the second SIM card in real time;
the first calculating unit is used for respectively calculating the current flow utilization rates of the first SIM card and the second SIM card according to the current flow utilization rate;
a second processing unit, configured to perform normalization processing on the current traffic usage rate of the first SIM card and the current traffic usage rate of the second SIM card, and obtain respective traffic usage rate results of the first SIM card and the second SIM card.
8. The dual-card mobile terminal of claim 7, wherein the selection module further comprises:
the second calculating unit is further configured to calculate an access performance test result of the first SIM card according to the first result information and the traffic utilization result of the first SIM card;
the third calculating unit is further configured to calculate an access performance test result of the second SIM card according to the second result information and the traffic utilization result of the second SIM card;
a comparing unit, configured to compare an access performance test result of the first SIM card with an access performance test result of the second SIM card;
and the determining and selecting unit is used for determining the SIM card with the smaller access performance test result value as the SIM card with the better access performance and selecting the SIM card with the better access performance to bear the Internet access service of the target IP address.
CN201811032060.6A 2018-09-05 2018-09-05 Method for accessing Internet by double-card mobile terminal and double-card mobile terminal Active CN108696859B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811032060.6A CN108696859B (en) 2018-09-05 2018-09-05 Method for accessing Internet by double-card mobile terminal and double-card mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811032060.6A CN108696859B (en) 2018-09-05 2018-09-05 Method for accessing Internet by double-card mobile terminal and double-card mobile terminal

Publications (2)

Publication Number Publication Date
CN108696859A CN108696859A (en) 2018-10-23
CN108696859B true CN108696859B (en) 2021-12-14

Family

ID=63841481

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811032060.6A Active CN108696859B (en) 2018-09-05 2018-09-05 Method for accessing Internet by double-card mobile terminal and double-card mobile terminal

Country Status (1)

Country Link
CN (1) CN108696859B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110557795B (en) * 2019-09-04 2022-05-17 广东以诺通讯有限公司 Method, system and storage medium for dual-card terminal voice service domain selection
CN115835371A (en) * 2022-12-08 2023-03-21 中国联合网络通信集团有限公司 Test method, system, electronic device and medium for simulating network multi-card access

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105101164A (en) * 2015-07-23 2015-11-25 努比亚技术有限公司 Dual-card dual-standby terminal and data communication method
CN105142168A (en) * 2015-07-23 2015-12-09 努比亚技术有限公司 Method and device for switching mobile terminal among multiple SIM cards
CN105682077A (en) * 2015-12-31 2016-06-15 宇龙计算机通信科技(深圳)有限公司 Virtual SIM (Subscriber Identity Module) card switching method and device
CN106341856A (en) * 2015-07-10 2017-01-18 西安中兴新软件有限责任公司 Method and device for automatically switching card using of dual-card terminal
CN106658629A (en) * 2015-10-28 2017-05-10 小米科技有限责任公司 Network switching method and apparatus
CN107426043A (en) * 2016-05-23 2017-12-01 中兴通讯股份有限公司 Traffic monitoring processing method and processing device
CN108184247A (en) * 2017-12-29 2018-06-19 奇酷互联网络科技(深圳)有限公司 Communication means, device, communication equipment and readable storage medium storing program for executing

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9735821B2 (en) * 2014-11-25 2017-08-15 Red Hat, Inc. Subscriber identity module (SIM) selection in multi-SIM communication devices
WO2016095980A1 (en) * 2014-12-17 2016-06-23 Telefonaktiebolaget Lm Ericsson (Publ) Sim selection

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106341856A (en) * 2015-07-10 2017-01-18 西安中兴新软件有限责任公司 Method and device for automatically switching card using of dual-card terminal
CN105101164A (en) * 2015-07-23 2015-11-25 努比亚技术有限公司 Dual-card dual-standby terminal and data communication method
CN105142168A (en) * 2015-07-23 2015-12-09 努比亚技术有限公司 Method and device for switching mobile terminal among multiple SIM cards
CN106658629A (en) * 2015-10-28 2017-05-10 小米科技有限责任公司 Network switching method and apparatus
CN105682077A (en) * 2015-12-31 2016-06-15 宇龙计算机通信科技(深圳)有限公司 Virtual SIM (Subscriber Identity Module) card switching method and device
CN107426043A (en) * 2016-05-23 2017-12-01 中兴通讯股份有限公司 Traffic monitoring processing method and processing device
CN108184247A (en) * 2017-12-29 2018-06-19 奇酷互联网络科技(深圳)有限公司 Communication means, device, communication equipment and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN108696859A (en) 2018-10-23

Similar Documents

Publication Publication Date Title
US10594783B2 (en) Wireless network cloud computing resource management
CN106302434B (en) Server adaptation method, device and system
CN106068673B (en) The application method of multiple SIM cards, device and system
EP3876607A1 (en) Intelligent scheduling method, terminal device, edge node cluster and intelligent scheduling system
CN104703254B (en) network access method and device
CN106068665B (en) More SIM communication devices and the method for being wirelessly connected to base station
CN110225137B (en) Service request processing method, system, server and storage medium
WO2019164864A1 (en) Dynamic selection of network elements
CN108696859B (en) Method for accessing Internet by double-card mobile terminal and double-card mobile terminal
CN112218386B (en) Application program service path establishing method and device for multi-card terminal, storage medium and terminal
CN109714190A (en) A kind of load balancing based on application level and failure transfer system and its method
US10257759B2 (en) Load balancing among wireless access points
CN111669285A (en) Network detection data processing method, system and storage medium
CN110730472A (en) Communication certificate state detection method and server
AU2019213431B2 (en) Network service exchange system and method of using same
CN112492618A (en) Network sharing method and device, electronic equipment and storage medium
CN103607731B (en) A kind of processing method and processing device of measurement report
CN101437271B (en) Method, apparatus and system for determining roaming location of mobile communication equipment
US9077735B2 (en) Method and related device for controlling service charging
CN112671813A (en) Server determination method, device, equipment and storage medium
CN110380981B (en) Flow distribution method and equipment
CN107018088B (en) Transmission link selection method and device
CN112350845B (en) Wide area network port configuration method, network device and computer readable storage medium
US20170019327A1 (en) Heterogeneous network system, network apparatus, and rendezvous path selection method thereof
CN103152801B (en) The method and apparatus being connected is set up with wireless access device

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