CN109121157B - Network speed limit determining method, terminal and storage medium - Google Patents

Network speed limit determining method, terminal and storage medium Download PDF

Info

Publication number
CN109121157B
CN109121157B CN201811252585.0A CN201811252585A CN109121157B CN 109121157 B CN109121157 B CN 109121157B CN 201811252585 A CN201811252585 A CN 201811252585A CN 109121157 B CN109121157 B CN 109121157B
Authority
CN
China
Prior art keywords
apn
data transmission
terminal
transmission rate
nas message
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
CN201811252585.0A
Other languages
Chinese (zh)
Other versions
CN109121157A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811252585.0A priority Critical patent/CN109121157B/en
Publication of CN109121157A publication Critical patent/CN109121157A/en
Application granted granted Critical
Publication of CN109121157B publication Critical patent/CN109121157B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints

Abstract

The embodiment of the application provides a method for determining a network speed limit, a terminal and a storage medium, wherein the method comprises the following steps: when receiving a first non-access stratum (NAS) message, determining the type of an Access Point (APN) according to the first NAS message; when the APN type is a network type, acquiring the maximum data transmission rate carried in the first NAS message; and when the maximum data transmission rate is lower than a preset transmission threshold value, executing a process of network speed limit prompting.

Description

Network speed limit determining method, terminal and storage medium
Technical Field
The present application relates to the field of electronic applications, and in particular, to a method, a terminal, and a storage medium for determining a network speed limit.
Background
In recent years, along with the increasing market competition of domestic operators, three operators successively release a 'unlimited flow' package, when a terminal handles the 'unlimited flow' package, the operator can monitor the flow use condition of the terminal in real time, when the used flow of the terminal exceeds a preset upper limit, the operator can limit the maximum data transmission rate of the terminal in the month, and at the moment, the transmission rate of the terminal during data transmission can be reduced.
Because the factors causing the low maximum data transmission rate of the terminal include the quality problems of the terminal itself, such as poor chip performance, and the like, when the terminal uses an unlimited flow package and the maximum data transmission rate becomes low, the terminal cannot accurately determine the reason causing the low maximum data transmission rate.
Disclosure of Invention
The embodiment of the application provides a method, a terminal and a storage medium for determining a network speed limit, which can accurately determine the reason causing the low maximum data transmission rate when the maximum data transmission rate of the terminal becomes low.
The technical scheme of the application is realized as follows:
the embodiment of the application provides a method for determining a network speed limit, which comprises the following steps:
when receiving a first non-access stratum (NAS) message, determining the type of an Access Point (APN) according to the first NAS message;
when the APN type is a network type, acquiring the maximum data transmission rate carried in the first NAS message;
and when the maximum data transmission rate is lower than a preset transmission threshold value, executing a process of network speed limit prompting.
In the above method, the determining the type of the APN according to the first NAS message includes:
and when the APN name is searched from the first NAS message, determining the APN type according to the APN name.
In the method, an Evolved Packet System (EPS) bearer identifier is searched from the first NAS message;
and storing the APN name and the corresponding EPS bearing identification into a preset EPS bearing identification and APN name relational database.
In the above method, the determining the type of the APN according to the first NAS message includes:
when the APN name is not found in the first NAS message, searching an EPS bearing identifier from the first NAS message;
and searching the APN name matched with the EPS bearing identifier from the preset EPS bearing identifier and APN name relational database.
In the above method, the determining the type of the APN according to the first NAS message includes:
acquiring a user identity identification card for operating the current data service;
and when the current data service runs on a first subscriber identity module card, determining the APN type according to the first NAS message.
In the above method, after obtaining the maximum data transmission rate carried in the first NAS message, the method further includes:
when the maximum data transmission rate is greater than the preset transmission threshold value, acquiring the maximum data transmission rate of the previous round;
and when the maximum data transmission rate of the previous round is smaller than the preset transmission threshold value, executing the process of removing the network speed limit prompt.
In the above method, obtaining the maximum data transmission rate carried in the first NAS message includes:
searching for an APN-Aggregated Maximum Bit Rate (AMBR) value from the first NAS message;
determining the APN-AMBR value as the maximum data transmission rate.
In the above method, the maximum data transmission rate includes at least one of an uplink maximum data transmission rate and a downlink maximum data transmission rate.
An embodiment of the present application provides a terminal, including:
the device comprises a determining unit and a judging unit, wherein the determining unit is used for determining the APN type of an access point according to a first NAS message when the first NAS message is received;
an obtaining unit, configured to obtain a maximum data transmission rate carried in the first NAS message when the APN type is a network type;
and the reminding unit is used for executing the process of network speed limit reminding when the maximum data transmission rate is lower than a preset transmission threshold value.
In the terminal, the determining unit is further configured to determine the APN type according to the APN name when the APN name is found from the first NAS message.
In the above terminal, the terminal further includes: a search unit and a storage unit;
the searching unit is configured to search an EPS bearer identifier of an evolved packet system from the first NAS message;
and the storage unit is used for storing the APN name and the corresponding EPS bearing identifier into a preset EPS bearing identifier and APN name relational database.
In the terminal, the searching unit is further configured to search for an EPS bearer identifier from the first NAS message when the APN name is not found from the first NAS message; and searching the APN name matched with the EPS bearing identifier from the preset EPS bearing identifier and APN name relational database.
In the terminal, the obtaining unit is further configured to obtain a user identification card for running a current data service;
the determining unit is further configured to determine the APN type according to the first NAS message when the current data service operates on a first subscriber identity module card.
In the terminal, the obtaining unit is further configured to obtain a previous round of maximum data transmission rate when the maximum data transmission rate is greater than the preset transmission threshold;
and the reminding unit is also used for executing the process of removing the network speed limit prompt when the maximum data transmission rate of the previous round is less than the preset transmission threshold value.
In the above terminal, the search unit is further configured to search for an APN-aggregated maximum bitrate AMBR value from the first NAS message;
the determining unit is further configured to determine the APN-AMBR value as the maximum data transmission rate.
In the above terminal, the maximum data transmission rate includes at least one of an uplink maximum data transmission rate and a downlink maximum data transmission rate.
An embodiment of the present application provides a terminal, including: a memory, a processor and a computer program stored on the memory and executable on the processor, which when executed by the processor implements a network speed limit determination method as in any one of the above.
The embodiment of the application provides a storage medium, on which a computer program is stored, and the computer program is applied to a terminal, and when the computer program is executed by a processor, the method for determining a network speed limit is implemented as any one of the above methods.
The embodiment of the application provides a method for determining a network speed limit, a terminal and a storage medium, wherein the method comprises the following steps: when receiving a first non-access stratum (NAS) message, determining the type of an Access Point (APN) according to the first NAS message; when the APN type is a network type, acquiring the maximum data transmission rate carried in the first NAS message; and when the maximum data transmission rate is lower than a preset transmission threshold value, executing a process of network speed limit prompting. By adopting the method, when the terminal receives a first Non-access stratum (NAS) message which is sent by a network side and carries the maximum data transmission rate, the terminal compares the maximum data transmission rate with the preset transmission threshold value, and when the terminal judges that the maximum data transmission rate is lower than the preset transmission threshold value, the process of prompting the network speed limit is executed, so that the reason that the current data transmission rate is low can be quickly and accurately determined.
Drawings
Fig. 1 is a first flowchart of a method for determining a network speed limit according to an embodiment of the present application;
fig. 2 is a schematic diagram of an exemplary network speed limit data transmission rate according to an embodiment of the present application;
fig. 3 is a diagram illustrating an exemplary displaying of a network speed limit reminding message on a current display interface according to an embodiment of the present application;
fig. 4 is a second flowchart of a method for determining a network speed limit according to an embodiment of the present application;
fig. 5 is a flowchart of an exemplary network speed limit determination method according to an embodiment of the present application;
fig. 6 is a first schematic structural diagram of a terminal 1 according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a terminal 1 according to an embodiment of the present application.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application. And are not intended to limit the present application.
Example one
An embodiment of the present application provides a method for determining a network speed limit, as shown in fig. 1, the method may include:
s101, when the first non-access stratum (NAS) message is received, determining the APN type of the access point according to the first NAS message.
The method for determining the network speed limit provided by the embodiment of the application is suitable for a scene that an operator limits the data transmission rate when the flow use of the terminal exceeds a preset threshold.
In the embodiment of the application, when a terminal is in a scene of establishing a Public Data Network (PDN) connection or modifying an Evolved Packet System (EPS) bearer, the terminal receives a first NAS message, where the first NAS message carries a maximum Data transmission rate that is issued by a Network side and used when the terminal performs Data transmission.
In the embodiment of the application, when the terminal establishes the PDN connection, the first NAS message received by the terminal is "active default EPS bearer context request Msg"; when the terminal modifies the EPS bearer, the first NAS message received by the terminal is "Modify EPS bearer context request Msg", which is specifically selected according to the actual situation, and the embodiment of the present application is not specifically limited.
In the embodiment of the application, when the terminal performs a switching flight mode, hot-plugging a Subscriber Identity Module (SIM) card, replacing the SIM card, switching the SIM card of the data service, losing the network, and finding the network again for registration, the network side sends an "active default EPS bearer context request Msg" message to the terminal.
In the embodiment of the application, when the network side monitors that the data traffic used by the terminal is greater than a preset threshold, the network side sends a "Modify EPS bearer context request Msg" message to the terminal so as to Modify the maximum data transmission rate at which the terminal can perform data transmission.
In the embodiment of the application, when the terminal receives the first NAS message, the terminal determines the type of an Access Point (APN) according to the first NAS message.
Specifically, the terminal searches an APN name from the first NAS message, when the terminal searches the APN name from the first NAS message, the terminal receives an 'active default EPS bearer context request Msg' message when the terminal is in a scene of establishing PDN connection, the terminal determines the APN type according to the APN name, searches an EPS bearer identifier from the first NAS message, and stores the APN name and the corresponding EPS bearer identifier into a preset EPS bearer identifier and APN name relation library; when the terminal does not find the APN name from the first NAS message, the terminal receives a 'Modify EPS bearer context request Msg' message when the terminal is represented in a scene of modifying an EPS bearer, the terminal searches an EPS bearer identifier from the first NAS message, searches an APN name matched with the EPS bearer identifier from a preset EPS bearer identifier and APN name relation library, and then determines the APN type according to the APN name.
In the embodiment of the present application, the APN type includes an internet type and a wap type, which are specifically selected according to an actual situation, and the embodiment of the present application is not specifically limited.
It should be noted that the terminal sets different APN types for each APN name in advance, so that after the terminal determines an APN name from the first NAS message, the terminal can determine a corresponding APN type, when the terminal receives a "Modify EPS bearer context request Msg" message, because the "Modify EPS bearer context request Msg" message does not carry an APN name, the terminal searches an esp _ bearer _ id value (EPS bearer identifier) from the "Modify EPS bearer context request Msg" message, and searches an APN name matching the EPS bearer identifier from a preset EPS bearer identifier and APN name relationship library, where a correspondence relationship between the EPS bearer identifier recorded by the terminal and the APN name is stored when the terminal receives the "active default EPS bearer context request Msg" message.
Illustratively, the "active default EPS bearer context request Msg" message is:
Figure BDA0001842033500000061
Figure BDA0001842033500000071
Figure BDA0001842033500000081
wherein, "rel _ version _ major ═ 5(0x 5)" is the value of esp _ bearer _ id, the APN name is shown in box 1, and the maximum data transmission rate delivered by the network side is shown in box 2, which are the uplink maximum data transmission rate 8576Kbps and the downlink maximum data transmission rate 0Kbps, respectively.
Illustratively, the "Modify EPS bearer context request Msg" message is:
Figure BDA0001842033500000082
Figure BDA0001842033500000091
the "rel _ version _ major ═ 5(0x 5)" is the value of esp _ bearer _ id, and the maximum data transmission rate delivered by the network side is shown in the box 3, and is 3904Kbps for the uplink maximum data transmission rate and 3904Kbps for the downlink maximum data transmission rate.
Further, when the terminal receives the first NAS message, the terminal determines the subscriber identity module card running the current data service, and when the current data service runs on the main card (the first subscriber identity module card), the terminal determines the APN type according to the first NAS message.
S102, when the APN type is the network type, obtaining the maximum data transmission rate carried in the first NAS information.
And when the terminal determines the APN type according to the first NAS message and the terminal determines that the APN type is the network type, the terminal acquires the maximum data transmission rate carried in the first NAS message.
In the embodiment of the application, when the terminal judges that the APN type is the internet type, the representation terminal processes the PDN connection of the common internet; when the terminal judges that the ANP type is the wap type, the multimedia message application is processed by the representation terminal, and the data transmission Rate required by the multimedia message service is very low under normal conditions, so that the network can allocate a very small APN-Aggregate Maximum Bit Rate (AMBR) value to the multimedia message service, and at the moment, the terminal does not need to perform a judgment process of network speed limit on the multimedia message service.
In the embodiment of the application, when the terminal judges that the APN type is the internet type, the terminal obtains the maximum data transmission rate issued by the network side from the first NAS message.
Optionally, the maximum data transmission rate includes at least one of an uplink maximum data transmission rate and a downlink maximum data transmission rate, which is specifically determined according to an actual situation, and this embodiment of the present application is not specifically limited.
In the embodiment of the application, the terminal searches the APN-AMBR value from the first NAS message, wherein an octet 3 field in the APN-AMBR value represents the downlink maximum data transmission rate, and an octet 4 field represents the uplink maximum data transmission rate.
And S103, when the maximum data transmission rate is lower than a preset transmission threshold value, executing a process of network speed limit prompting.
After the terminal acquires the maximum data transmission rate carried in the first NAS message, the terminal compares the maximum data transmission rate with a preset transmission threshold, and when the terminal judges that the maximum data transmission rate is lower than the preset transmission threshold, the terminal executes a process of prompting the network speed limit.
In the embodiment of the application, the terminal sets a preset uplink transmission threshold value for uplink data in advance, sets a preset downlink transmission threshold value for downlink data, and the preset uplink transmission threshold value and the preset downlink transmission threshold value jointly form the preset transmission threshold value. The preset uplink transmission threshold and the preset downlink transmission threshold may be the same or different, and are specifically set according to actual conditions, which is not specifically limited in the embodiments of the present application.
In the embodiment of the application, the terminal compares the maximum uplink data transmission rate with a preset uplink transmission threshold value respectively, compares the maximum downlink data transmission rate with a preset downlink transmission threshold value, and represents that the terminal is limited by uplink when the maximum uplink data transmission rate is lower than the preset uplink transmission threshold value and the maximum downlink data transmission rate is higher than the preset downlink transmission threshold value; when the maximum uplink data transmission rate is higher than a preset uplink transmission threshold and the maximum downlink data transmission rate is lower than a preset downlink transmission threshold, representing that the terminal is limited by downlink speed; and when the maximum uplink data transmission rate is lower than a preset uplink transmission threshold and the maximum downlink data transmission rate is lower than a preset downlink transmission threshold, representing that the terminal is limited by two sides.
In the embodiment of the application, when the terminal judges that the maximum data transmission rate is higher than a preset transmission threshold value, the terminal acquires the maximum data transmission rate of the previous round; and when the maximum data transmission rate of the previous round is judged to be smaller than the preset transmission threshold value, the terminal executes the process of relieving the network speed limit prompt.
Specifically, when the terminal determines that the maximum uplink data transmission rate is higher than the preset uplink transmission threshold, the terminal obtains the maximum uplink data transmission rate of the previous round, and when the maximum uplink data transmission rate of the previous round is smaller than the preset uplink transmission threshold, the terminal executes a process of removing the uplink speed limit prompt.
It should be noted that the method includes three speed limit types, which are an uplink speed limit, a downlink speed limit and a bilateral speed limit, and the three speed limit types may be changed through a "Modify EPS bearer context request Msg" message sent by a network side, and are specifically selected according to an actual situation, and the embodiment of the present application is not specifically limited.
For example, fig. 2 is a data transmission rate graph of uplink data and downlink data, where for the data transmission rate of the first region, the uplink data transmission rate is lower than a threshold, and the downlink data transmission rate is higher than the threshold, which is an uplink speed limit; for the data transmission rate of the second area, the uplink data transmission rate is higher than the threshold value, and the downlink data transmission rate is lower than the threshold value, so that the downlink speed limit is obtained; for the data transmission rate in the third area, the uplink data transmission rate is lower than the threshold, and the downlink data transmission rate is lower than the threshold, which is a bilateral speed limit.
In the embodiment of the application, the mode of the terminal for reminding the network speed limit and the mode of reminding the terminal for contacting the network speed limit can be pop-up box display, ringing reminding and the like, and are specifically selected according to actual conditions, and the embodiment of the application is not specifically limited.
For example, as shown in fig. 3, when the terminal determines that the operator limits the network speed, the terminal pops up "the traffic usage exceeds 40GB because of your month on the current display interface. China telecom carries out the prompt of network speed limit.
It can be understood that, when receiving the first NAS message carrying the maximum data transmission rate sent by the network side, the terminal compares the maximum data transmission rate with the preset transmission threshold, and when determining that the maximum data transmission rate is lower than the preset transmission threshold, the terminal executes the process of network speed limit prompting, so as to quickly and accurately determine the reason that the current data transmission rate is low.
Example two
An embodiment of the present application provides a method for determining a network speed limit, as shown in fig. 4, the method may include:
s201, when the terminal receives the first non-access stratum NAS message, the terminal acquires a user identity identification card for operating the current data service.
The method for determining the network speed limit provided by the embodiment of the application is suitable for a scene that an operator limits the data transmission rate when the flow use of the terminal exceeds a preset threshold.
In the embodiment of the application, when a terminal is in a scene of establishing a PDN connection or modifying an EPS bearer, the terminal receives a first NAS message, where the first NAS message carries a maximum data transmission rate that is issued by a network side and used when the terminal performs data transmission.
In the embodiment of the application, when the terminal switches a flight mode, hot plugs an SIM card, changes the SIM card, switches the SIM card of a data service, loses a network and finds the network again for registration, the network side sends an 'active default EPS bearer context request Msg' message to the terminal.
In the embodiment of the application, when the network side monitors that the data traffic used by the terminal is greater than a preset threshold, the network side sends a "Modify EPS bearer context request Msg" message to the terminal so as to Modify the maximum data transmission rate at which the terminal can perform data transmission.
In the embodiment of the application, when the terminal receives the first NAS message, the terminal judges the user identity identification card running the current data service.
S202, when the current data service runs on the first user identity identification card, the terminal determines the APN type according to the first NAS message.
And when the terminal acquires the user identification card running the house money data service and judges that the current data service runs on the first user identification card, determining the APN type according to the first NAS message.
In the embodiment of the application, when the current data service runs on a main card (a first subscriber identity module card), the terminal determines the type of the APN according to the first NAS message.
In the embodiment of the application, when the terminal finds the APN name from the first NAS message, the terminal determines the APN type according to the APN name; the terminal searches an EPS bearing identifier of the evolution grouping system from the first NAS message; and then, the terminal stores the APN name and the corresponding EPS bearing identification into a preset EPS bearing identification and APN name relational database.
In the embodiment of the application, when the terminal does not find the APN name from the first NAS message, the terminal searches the EPS bearing identifier from the first NAS message; and then, the terminal searches the APN name matched with the EPS bearing identifier from a preset EPS bearing identifier and APN name relational database.
Specifically, the terminal searches an APN name from the first NAS message, when the terminal searches the APN name from the first NAS message, the terminal receives an 'active default EPS bearer context request Msg' message when the terminal is in a scene of establishing PDN connection, the terminal determines the APN type according to the APN name, searches an EPS bearer identifier from the first NAS message, and stores the APN name and the corresponding EPS bearer identifier into a preset EPS bearer identifier and APN name relation library; when the terminal does not find the APN name from the first NAS message, the terminal receives a 'Modify EPS bearer context request Msg' message when the terminal is represented in a scene of modifying an EPS bearer, the terminal searches an EPS bearer identifier from the first NAS message, searches an APN name matched with the EPS bearer identifier from a preset EPS bearer identifier and APN name relation library, and then determines the APN type according to the APN name.
In the embodiment of the present application, the APN type includes an internet type and a wap type, which are specifically selected according to an actual situation, and the embodiment of the present application is not specifically limited.
It should be noted that the terminal sets different APN types for each APN name in advance, so that after the terminal determines an APN name from the first NAS message, the terminal can determine a corresponding APN type, when the terminal receives a "Modify EPS bearer context request Msg" message, because the "Modify EPS bearer context request Msg" message does not carry an APN name, the terminal searches an esp _ bearer _ id value (EPS bearer identifier) from the "Modify EPS bearer context request Msg" message, and searches an APN name matching the EPS bearer identifier from a preset EPS bearer identifier and APN name relationship library, where a correspondence relationship between the EPS bearer identifier recorded by the terminal and the APN name is stored when the terminal receives the "active default EPS bearer context request Msg" message.
S203, when the APN type is the network type, the terminal searches the APN-aggregation maximum bit rate AMBR value from the first NAS message.
When the terminal determines the APN type according to the first NAS message, the terminal judges the APN type, and when the terminal judges the APN type to be the network type, the terminal searches the APN-AMBR value from the first NAS message.
In the embodiment of the application, when the terminal judges that the APN type is the internet type, the representation terminal processes the PDN connection of the common internet; when the terminal judges that the ANP type is the wap type, the multimedia message application is processed by the representation terminal, and the data transmission rate required by the multimedia message service is very low under the normal condition, so that the network can allocate a very small APN-AMBR value to the multimedia message service, and at the moment, the terminal does not need to perform the judgment process of network speed limit on the multimedia message service.
In the embodiment of the application, when the terminal determines that the APN type is the internet type, the terminal searches for an APN-AMBR value from the first NAS message, wherein an octet 3 field in the APN-AMBR value represents a downlink maximum data transmission rate, and an octet 4 field represents an uplink maximum data transmission rate.
S204, the terminal determines the APN-AMBR value as the maximum data transmission rate.
And after the terminal finds the APN-AMBR value from the first NAS message, the terminal determines the APN-AMBR value as the maximum data transmission rate.
In the embodiment of the application, the terminal determines an octet 3 field and an octet 4 field in the APN-AMBR value as the maximum data transmission rate.
And S205, when the maximum data transmission rate is lower than a preset transmission threshold value, the terminal executes the process of prompting the network speed limit.
When the terminal determines the APN-AMBR value as the maximum data transmission rate, the terminal compares the maximum data transmission rate with a preset transmission threshold value, and when the maximum data transmission rate is lower than the preset transmission threshold value, the terminal executes a process of prompting the network speed limit.
In the embodiment of the application, the terminal sets a preset uplink transmission threshold value for uplink data in advance, sets a preset downlink transmission threshold value for downlink data, and the preset uplink transmission threshold value and the preset downlink transmission threshold value jointly form the preset transmission threshold value. The preset uplink transmission threshold and the preset downlink transmission threshold may be the same or different, and are specifically set according to actual conditions, which is not specifically limited in the embodiments of the present application.
In the embodiment of the application, the terminal compares the maximum uplink data transmission rate with a preset uplink transmission threshold value respectively, compares the maximum downlink data transmission rate with a preset downlink transmission threshold value, and represents that the terminal is limited by uplink when the maximum uplink data transmission rate is lower than the preset uplink transmission threshold value and the maximum downlink data transmission rate is higher than the preset downlink transmission threshold value; when the maximum uplink data transmission rate is higher than a preset uplink transmission threshold and the maximum downlink data transmission rate is lower than a preset downlink transmission threshold, representing that the terminal is limited by downlink speed; and when the maximum uplink data transmission rate is lower than a preset uplink transmission threshold and the maximum downlink data transmission rate is lower than a preset downlink transmission threshold, representing that the terminal is limited by two sides.
It should be noted that the method includes three speed limit types, which are an uplink speed limit, a downlink speed limit and a bilateral speed limit, and the three speed limit types may be changed through a "Modify EPS bearer context request Msg" message sent by a network side, and are specifically selected according to an actual situation, and the embodiment of the present application is not specifically limited.
For example, fig. 2 is a data transmission rate graph of uplink data and downlink data, where for the data transmission rate of the first region, the uplink data transmission rate is lower than a threshold, and the downlink data transmission rate is higher than the threshold, which is an uplink speed limit; for the data transmission rate of the second area, the uplink data transmission rate is higher than the threshold value, and the downlink data transmission rate is lower than the threshold value, so that the downlink speed limit is obtained; for the data transmission rate in the third area, the uplink data transmission rate is lower than the threshold, and the downlink data transmission rate is lower than the threshold, which is a bilateral speed limit.
And S206, when the maximum data transmission rate is greater than the preset transmission threshold value, the terminal acquires the maximum data transmission rate of the previous round.
When the terminal determines the APN-AMBR value as the maximum data transmission rate, the terminal compares the maximum data transmission rate with a preset transmission threshold, and when the maximum data transmission rate is lower than the preset transmission threshold, the terminal acquires the previous round of maximum data transmission rate.
In the embodiment of the application, when the terminal judges that the maximum data transmission rate is higher than the preset transmission threshold, the terminal acquires the maximum data transmission rate of the previous round and is used for judging whether the terminal releases the network speed limit.
And S207, when the maximum data transmission rate of the previous round is smaller than a preset transmission threshold value, the terminal executes the process of relieving the network speed limit prompt.
And when the terminal judges that the maximum data transmission rate of the previous round is less than the preset transmission threshold value, the terminal executes the process of relieving the network speed limit prompt.
In the embodiment of the application, when the maximum uplink data transmission rate of the previous round is judged to be less than the preset uplink transmission threshold, the terminal executes the process of removing the uplink speed limit prompt.
In the embodiment of the application, the mode of the terminal for reminding the network speed limit and the mode of reminding the terminal for contacting the network speed limit can be pop-up box display, ringing reminding and the like, and are specifically selected according to actual conditions, and the embodiment of the application is not specifically limited.
Illustratively, as shown in fig. 5, the process of determining the network speed limit by the terminal is as follows:
1. when a terminal requests to establish an internet APN connection on an LTE network, the terminal receives an 'active default EPS bearer context request Msg' message sent by a network side;
2. the terminal judges whether the current data service is operated on the main card;
3. when the terminal judges that the current data service runs on the main card, the terminal searches the APN name from the 'active default EPS bearer context request Msg' message;
4. when the terminal judges that the APN type is the internet type according to the APN name, the terminal records the EPS _ beaerer _ id value of the current load;
5. the terminal searches apn _ ambr IE value from the 'active default EPS bearer context request Msg' message and executes 8;
6. when the terminal judges that the current data service runs on the main card, the terminal determines an EPS _ beauer _ id value from a modification EPS bearer context request Msg message;
7. when the EPS _ beaurer _ id value is equal to the EPS _ beaurer _ id value in the step 3, the terminal searches apn _ ambr IE value from the 'Modify EPS bearer context request Msg' message;
8. when the apn _ ambr IE value is smaller than a preset threshold value, the terminal prompts the user to limit the network speed on the current display interface;
9. when the total amount of the traffic currently used by the terminal exceeds the upper limit specified by an operator, the terminal receives a "Modify EPS bearer context request Msg" message sent by the network side.
S205 and S206-S207 are two parallel steps after S204, and are specifically selected and executed according to actual situations, and the embodiment of the present application is not specifically limited.
It can be understood that, when receiving the first NAS message carrying the maximum data transmission rate sent by the network side, the terminal compares the maximum data transmission rate with the preset transmission threshold, and when determining that the maximum data transmission rate is lower than the preset transmission threshold, the terminal executes the process of network speed limit prompting, so as to quickly and accurately determine the reason that the current data transmission rate is low.
EXAMPLE III
An embodiment of the present application provides a terminal 1, as shown in fig. 6, where the terminal 1 includes:
a determining unit 10, configured to determine, when a first NAS message is received, an access point APN type according to the first NAS message;
an obtaining unit 11, configured to obtain a maximum data transmission rate carried in the first NAS message when the APN type is a network type;
and the reminding unit 12 is used for executing the process of network speed limit reminding when the maximum data transmission rate is lower than a preset transmission threshold value.
Optionally, the determining unit 10 is further configured to determine the APN type according to the APN name when the APN name is found in the first NAS message.
Optionally, the terminal 1 further includes: a search unit 13 and a storage unit 14.
The search unit 13 is configured to search an EPS bearer identifier of an evolved packet system from the first NAS message;
the storage unit 14 is configured to store the APN name and the corresponding EPS bearer identifier in a preset EPS bearer identifier and APN name relationship library.
Optionally, the searching unit 13 is further configured to search, when the APN name is not found in the first NAS message, an EPS bearer identifier from the first NAS message; and searching the APN name matched with the EPS bearing identifier from the preset EPS bearing identifier and APN name relational database.
Optionally, the obtaining unit 11 is further configured to obtain a user identity card for running a current data service;
the determining unit 10 is further configured to determine the APN type according to the first NAS message when the current data service operates on a first subscriber identity module card.
Optionally, the obtaining unit 11 is further configured to obtain a previous round of maximum data transmission rate when the maximum data transmission rate is greater than the preset transmission threshold;
the reminding unit 12 is further configured to execute a process of removing the network speed limit prompt when the previous round of maximum data transmission rate is smaller than the preset transmission threshold.
Optionally, the searching unit 13 is further configured to search an APN-aggregated maximum bitrate AMBR value from the first NAS message;
the determining unit 10 is further configured to determine the APN-AMBR value as the maximum data transmission rate.
Optionally, the maximum data transmission rate includes at least one of an uplink maximum data transmission rate and a downlink maximum data transmission rate.
In practical applications, based on the same inventive concept of the first and second embodiments, as shown in fig. 7, the terminal 1 may include: a processor 15, a memory 16, a communication interface 17 and a bus 18;
the determining Unit 10, the obtaining Unit 11, the reminding Unit 12, the searching Unit 13 and the storing Unit 14 can be implemented by a Processor 15 located on the terminal 1, and the Processor 15 can be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller and a microprocessor. It will be appreciated that the electronic components for implementing the above-described processor functions may be other devices, and the embodiment of the present application is not particularly limited, and the terminal 1 further includes a memory 16, where the memory 16 is used for storing executable program codes including computer operation instructions, and the memory 16 may include a high-speed RAM memory and may also include a nonvolatile memory, such as at least one disk memory.
The bus 18 is used for connecting the processor 15, the memory 16, the communication interface 17 and the intercommunication among the devices;
the communication interface 17 is configured to perform data transmission with an external network element;
the memory 16 for storing instructions and data;
the processor 15, executing the instructions, is configured to: when a first non-access stratum (NAS) message is received, determining the type of an Access Point (APN) according to the first NAS message; when the APN type is a network type, acquiring the maximum data transmission rate carried in the first NAS message; and when the maximum data transmission rate is lower than a preset transmission threshold value, executing a process of network speed limit prompting.
In practical applications, the Memory 16 may be a volatile first Memory (volatile Memory), such as a Random-Access first Memory (RAM); or a non-volatile first Memory (non-volatile Memory), such as a Read-Only first Memory (ROM), a flash Memory (flash Memory), a Hard Disk (HDD), or a Solid-State Drive (SSD); or a combination of first memories of the kind described above and provides instructions and data to the processor 15.
In addition, each functional module in this embodiment may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware or a form of a software functional module.
Based on the understanding that the technical solution of the present embodiment essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the method of the present embodiment. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The embodiment of the present application provides a storage medium, on which a computer program is stored, and the computer program is applied in the terminal 1, and when the computer program is executed by the processor 15, the method for determining the network speed limit according to the first embodiment and the second embodiment is implemented.
The above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application.

Claims (18)

1. A method for determining a network speed limit, the method comprising:
when receiving a first non-access stratum (NAS) message, determining the type of an Access Point (APN) according to the first NAS message;
when the APN type is a network type, acquiring the maximum data transmission rate carried in the first NAS message;
and when the maximum data transmission rate is lower than a preset transmission threshold value, executing a process of network speed limit prompting.
2. The method of claim 1, wherein the determining an access point APN type from the first NAS message comprises:
and when the APN name is searched from the first NAS message, determining the APN type according to the APN name.
3. The method of claim 2, further comprising:
searching an EPS bearing identifier of an evolved packet system from the first NAS message;
and storing the APN name and the corresponding EPS bearing identification into a preset EPS bearing identification and APN name relational database.
4. The method of claim 3, wherein the determining an access point APN type from the first NAS message comprises:
when the APN name is not found in the first NAS message, searching an EPS bearing identifier from the first NAS message;
and searching the APN name matched with the EPS bearing identifier from the preset EPS bearing identifier and APN name relational database.
5. The method of claim 1, wherein the determining an access point APN type from the first NAS message comprises:
acquiring a user identity identification card for operating the current data service;
and when the current data service runs on a first subscriber identity module card, determining the APN type according to the first NAS message.
6. The method of claim 1, wherein after obtaining the maximum data transmission rate carried in the first NAS message, the method further comprises:
when the maximum data transmission rate is greater than the preset transmission threshold value, acquiring the maximum data transmission rate of the previous round;
and when the maximum data transmission rate of the previous round is smaller than the preset transmission threshold value, executing the process of removing the network speed limit prompt.
7. The method of claim 1, wherein obtaining the maximum data transmission rate carried in the first NAS message comprises:
searching for an APN-Aggregated Maximum Bit Rate (AMBR) value from the first NAS message;
determining the APN-AMBR value as the maximum data transmission rate.
8. The method of claim 1, wherein the maximum data transmission rate comprises at least one of an uplink maximum data transmission rate and a downlink maximum data transmission rate.
9. A terminal, characterized in that the terminal comprises:
the device comprises a determining unit and a judging unit, wherein the determining unit is used for determining the APN type of an access point according to a first NAS message when the first NAS message is received;
an obtaining unit, configured to obtain a maximum data transmission rate carried in the first NAS message when the APN type is a network type;
and the reminding unit is used for executing the process of network speed limit reminding when the maximum data transmission rate is lower than a preset transmission threshold value.
10. The terminal of claim 9,
the determining unit is further configured to determine the APN type according to the APN name when the APN name is found in the first NAS message.
11. The terminal of claim 10, further comprising: a search unit and a storage unit;
the searching unit is configured to search an EPS bearer identifier of an evolved packet system from the first NAS message;
and the storage unit is used for storing the APN name and the corresponding EPS bearing identifier into a preset EPS bearing identifier and APN name relational database.
12. The terminal of claim 11,
the searching unit is further configured to search an EPS bearer identifier from the first NAS message when the APN name is not found from the first NAS message; and searching the APN name matched with the EPS bearing identifier from the preset EPS bearing identifier and APN name relational database.
13. The terminal of claim 9,
the acquiring unit is also used for acquiring a user identity identification card for operating the current data service;
the determining unit is further configured to determine the APN type according to the first NAS message when the current data service operates on a first subscriber identity module card.
14. The terminal of claim 9,
the obtaining unit is further configured to obtain a previous round of maximum data transmission rate when the maximum data transmission rate is greater than the preset transmission threshold;
and the reminding unit is also used for executing the process of removing the network speed limit prompt when the maximum data transmission rate of the previous round is less than the preset transmission threshold value.
15. The terminal of claim 11,
the search unit is further configured to search for an APN-aggregated maximum bitrate AMBR value from the first NAS message;
the determining unit is further configured to determine the APN-AMBR value as the maximum data transmission rate.
16. The terminal of claim 9, wherein the maximum data transmission rate comprises at least one of an uplink maximum data transmission rate and a downlink maximum data transmission rate.
17. A terminal, characterized in that the terminal comprises: memory, processor and computer program stored on the memory and executable on the processor, which when executed by the processor implements the method of any one of claims 1 to 8.
18. A storage medium having stored thereon a computer program for application to a terminal, characterized in that the computer program, when being executed by a processor, is adapted to carry out the method according to any one of claims 1-8.
CN201811252585.0A 2018-10-25 2018-10-25 Network speed limit determining method, terminal and storage medium Active CN109121157B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811252585.0A CN109121157B (en) 2018-10-25 2018-10-25 Network speed limit determining method, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811252585.0A CN109121157B (en) 2018-10-25 2018-10-25 Network speed limit determining method, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN109121157A CN109121157A (en) 2019-01-01
CN109121157B true CN109121157B (en) 2021-11-16

Family

ID=64855387

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811252585.0A Active CN109121157B (en) 2018-10-25 2018-10-25 Network speed limit determining method, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109121157B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111869164A (en) * 2019-03-19 2020-10-30 华为技术有限公司 Intelligent reminding method, device and system for network speed limit
CN113873583A (en) * 2020-06-30 2021-12-31 荣耀终端有限公司 Reminding method, graphical user interface and terminal equipment
CN112312432B (en) * 2020-09-25 2022-02-22 新华三大数据技术有限公司 Network quality optimization method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102595362A (en) * 2011-01-18 2012-07-18 中兴通讯股份有限公司 Modification undertaking system and method
CN103168452A (en) * 2010-08-17 2013-06-19 高通股份有限公司 Systems and methods for traffic policing
US8570944B2 (en) * 2009-05-11 2013-10-29 Zte (Usa) Inc. Internetworking techniques for wireless networks
CN105519151A (en) * 2013-05-31 2016-04-20 华为技术有限公司 Policy control method and network side equipment
CN106465193A (en) * 2014-04-01 2017-02-22 诺基亚通信公司 Enhanced quality of service class identifier modification
CN108174415A (en) * 2016-12-07 2018-06-15 中兴通讯股份有限公司 A kind of notification method, the apparatus and system of the variation of service network rate control strategy

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8570944B2 (en) * 2009-05-11 2013-10-29 Zte (Usa) Inc. Internetworking techniques for wireless networks
CN103168452A (en) * 2010-08-17 2013-06-19 高通股份有限公司 Systems and methods for traffic policing
CN102595362A (en) * 2011-01-18 2012-07-18 中兴通讯股份有限公司 Modification undertaking system and method
CN105519151A (en) * 2013-05-31 2016-04-20 华为技术有限公司 Policy control method and network side equipment
CN106465193A (en) * 2014-04-01 2017-02-22 诺基亚通信公司 Enhanced quality of service class identifier modification
CN108174415A (en) * 2016-12-07 2018-06-15 中兴通讯股份有限公司 A kind of notification method, the apparatus and system of the variation of service network rate control strategy

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"Evolved Universal Terrestrial Radio Access (E-UTRA) and Evolved Universal Terrestrial Radio Access Network (E-UTRAN)";3GPP;《3GPP TS 36.300 V15.4.0》;20180707;全文 *

Also Published As

Publication number Publication date
CN109121157A (en) 2019-01-01

Similar Documents

Publication Publication Date Title
CN110290217B (en) Data request processing method and device, storage medium and electronic device
CN109121157B (en) Network speed limit determining method, terminal and storage medium
US10417014B2 (en) System service reloading method and apparatus
CN110267314B (en) Method and device for switching network slices
US10120872B2 (en) Data caching based on requestor identity
US10021634B2 (en) Method and device for switching SIM cards of communication terminal and computer storage medium
EP3021558A1 (en) Switching method for network interfaces, access device and computer storage medium
US10623405B2 (en) Communication system, access authentication method and system based on communication system
CN113507471A (en) Method, device, router and storage medium for acquiring terminal system type
CN103262611A (en) Gateway relocation control method in mobile communication system, and control device
CN111291252B (en) Method and device for adjusting query rate per second, electronic equipment and storage medium
CN107548098A (en) A kind of method and device of differentiated service processing
US11444998B2 (en) Bit rate reduction processing method for data file, and server
CN110392119B (en) Data transmission method and base station
US20160156724A1 (en) Method, apparatus, and system for determining target user for service policy
CN106453663B (en) Improved storage expansion method and device based on cloud service
CN109429302A (en) Restoration methods and device after a kind of multi-card terminal off-grid
US10291418B2 (en) File size-based toll-free data service
CN106612262B (en) Method, device and system for establishing PCC session
CN106156210B (en) Method and device for determining application identifier matching list
US9634963B2 (en) Method and system for handling message on instant messaging open platform
CN112187481B (en) User online record management method, device and system
CN109246779A (en) A kind of information processing method, terminal device and computer readable storage medium
WO2020258101A1 (en) User similarity calculation method and apparatus, server end, and storage medium
CN106488582B (en) Method, device and system for establishing LTE PCC session

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