Network traffic usage amount control method and device of vehicle-mounted terminal, equipment and medium

By obtaining the PLMN identification and IP address of the on-board terminal, querying the IP address range in the preset IP pool, determining the service status, and using the built-in domain name system for access control, the problem of mobile network traffic management in the on-board terminal is solved, and effective control of mobile network traffic and avoiding traffic stealing is achieved.

CN119729635APending Publication Date: 2025-03-28SHANGHAI YOUKA NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411905578.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

The prior art cannot effectively manage the mobile network traffic of vehicle terminals, especially in the underlying state where non-service-related traffic runs, and traffic control cannot be directly carried out through the IP address.

Method used

By obtaining the PLMN identification and IP address of the on-board terminal, querying the IP address range in the preset IP pool, determining the service status of the IP address, and using the built-in domain name system for access control, denying non-service-related traffic access.

Benefits of technology

Active management of mobile network traffic at the vehicle terminal is realized, avoiding the sneaking of non-service-related traffic at the bottom, and ensuring the effective use of network traffic.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119729635A_ABST
    Figure CN119729635A_ABST
Patent Text Reader

Abstract

The invention relates to a network traffic usage amount control method and device of a vehicle-mounted terminal, equipment and a medium, and the method comprises the steps: responding to the access of the vehicle-mounted terminal to an operator network, and obtaining a PLMN identifier and an IP address currently used by the vehicle-mounted terminal; querying an IP address range corresponding to the currently used PLMN identifier in a preset IP pool, and performing matching according to the IP address and the IP address range to determine the service state of the IP address; in response to attempting to access the network address by the vehicle-mounted terminal, performing access control according to the service state and the network address through a built-in domain name system of the vehicle-mounted terminal; wherein under the condition that the service state is a limited state and the network address is not contained in the built-in domain name system, the access to the network address is refused. According to the technical scheme disclosed by the invention, the mobile network flow control of the vehicle-mounted terminal is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of vehicle-mounted terminals, and in particular to a method, device, equipment and medium for controlling network traffic usage of a vehicle-mounted terminal. Background Art

[0002] Each mobile communication network belongs to a specific operator. When using the mobile communication network, the vehicle terminal signs a contract with the operator (hereinafter referred to as the home operator). After signing the contract, the vehicle terminal can access the home operator network, or can access the operator network that has a roaming agreement with the home operator.

[0003] At present, when the vehicle terminal accesses the mobile communication network and establishes service channels such as bearer and service quality flow, the network element in the mobile communication network allocates an IP address to the vehicle terminal, and the vehicle terminal uses the IP address as the source IP address to access the Internet. In the home operator network, the IP address of the vehicle terminal is allocated by the home operator network, and in the roaming operator network, the IP address of the vehicle terminal can be allocated by the home operator network or the roaming operator network.

[0004] The operating system and applications of the vehicle terminal can access specific websites through the Internet to obtain corresponding services. In actual application, the operating system and applications of the vehicle terminal may leak traffic. However, the solution for managing leaked traffic at the application level cannot avoid the leakage of underlying, non-business-related traffic. In addition, the network only counts the network traffic usage of the vehicle terminal and does not intervene in the mobile network traffic usage of the vehicle terminal. Therefore, for some special scenarios related to the vehicle terminal, it is necessary to manage the Internet services that the vehicle terminal can access from the perspective of the vehicle terminal, so as to achieve the management of mobile network traffic. In summary, there is a need for a solution that can actively control mobile network traffic based on the vehicle terminal.

[0005] According to the current IP address allocation principle, the IP address allocated by the network to the vehicle terminal is not a public IP address, but a local area network IP address with the operator network as the granularity. Therefore, it is not possible to simply use the IP address to directly control the mobile network traffic of the vehicle terminal. Summary of the invention

[0006] In order to solve the above technical problems, the present disclosure provides a method, device, equipment and medium for controlling network traffic usage of a vehicle-mounted terminal.

[0007] In a first aspect, an embodiment of the present disclosure provides a method for controlling network traffic usage of a vehicle-mounted terminal, comprising:

[0008] In response to the vehicle-mounted terminal accessing the operator network, obtaining a PLMN identifier and an IP address currently used by the vehicle-mounted terminal;

[0009] Querying the IP address range corresponding to the currently used PLMN identifier in the preset IP pool, and matching the IP address with the IP address range to determine the service status of the IP address;

[0010] In response to the vehicle terminal attempting to access a network address, performing access control according to the service status and the network address through a built-in domain name system of the vehicle terminal;

[0011] Wherein, when the service status is a restricted status and the network address is not included in the built-in domain name system, the built-in domain name system cannot resolve the network address and denies access to the network address.

[0012] In a second aspect, an embodiment of the present disclosure provides a network traffic usage control device for a vehicle-mounted terminal, comprising:

[0013] An acquisition module, configured to acquire a PLMN identifier and an IP address currently used by the vehicle-mounted terminal in response to the vehicle-mounted terminal accessing the operator network;

[0014] A determination module, configured to query a preset IP pool for an IP address range corresponding to the currently used PLMN identifier, and match the IP address with the IP address range to determine the service status of the IP address;

[0015] a control module, for performing access control according to the service status and the network address through a built-in domain name system of the vehicle terminal in response to the vehicle terminal attempting to access the network address;

[0016] Wherein, when the service status is a restricted status and the network address is not included in the built-in domain name system, the built-in domain name system cannot resolve the network address and denies access to the network address.

[0017] In a third aspect, an embodiment of the present disclosure provides an electronic device, comprising: a processor; a memory for storing executable instructions of the processor; the processor is used to read the executable instructions from the memory and execute the instructions to implement the network traffic usage control method of the vehicle-mounted terminal described in the first aspect above.

[0018] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, wherein the storage medium stores a computer program, and when the computer program is executed by a processor, the method for controlling network traffic usage of a vehicle-mounted terminal described in the first aspect above is implemented.

[0019] Compared with the prior art, the technical solution provided by the disclosed embodiment has the following advantages: in response to the vehicle-mounted terminal accessing the operator network, the PLMN identifier and IP address currently used by the vehicle-mounted terminal are obtained, and the IP address is matched with the IP address range corresponding to the PLMN identifier currently used in the preset IP pool to determine the service status of the IP address. Then, in response to the vehicle-mounted terminal attempting to access the network address, access control is performed according to the service status and the network address through the built-in domain name system of the vehicle-mounted terminal. When the service status is restricted and the network address is not included in the built-in domain name system, the built-in domain name system cannot resolve the network address and refuses access to the network address. Therefore, by configuring the preset IP pool and the built-in domain name system, the mobile network traffic is jointly controlled in combination with the IP address of the vehicle-mounted terminal and the PLMN of the current network operator, and active management of the mobile network traffic of the vehicle-mounted terminal is achieved. While controlling the mobile network traffic of the vehicle terminal, the problem of underlying, non-service-related traffic leakage is solved. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0022] Figure 1 A flowchart of a method for controlling network traffic usage of a vehicle terminal provided by an embodiment of the present disclosure;

[0023] Figure 2 A flowchart of another method for controlling network traffic usage of a vehicle-mounted terminal provided by an embodiment of the present disclosure;

[0024] Figure 3 A schematic diagram of the structure of a network traffic usage control device for a vehicle-mounted terminal provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0025] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features in the embodiments can be combined with each other without conflict.

[0026] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0027] First, the preset IP (Internet Protocol) pool in the embodiment of the present disclosure is described.

[0028] In the disclosed embodiment, the vehicle terminal includes a preset IP pool, which may include a PLMN identifier and its corresponding IP address range, or may be empty. The PLMN identifier in the preset IP pool is derived from the PLMN used by the home operator of the vehicle terminal's mobile network service, and / or the PLMN used by a roaming operator that has a roaming agreement with the home operator. The PLMN identifier in the preset IP pool and its corresponding IP address range may be negotiated by the vehicle manufacturer and the operator. The preset IP pool may be configured by the operator. Taking the home operator as an example, the home operator directly configures the PLMN identifier and its corresponding IP address range in the preset IP pool used by the vehicle terminal, or uses OTA (Over the air) to send the PLMN identifier and its corresponding IP address range to the preset IP pool of the vehicle terminal.

[0029] When the vehicle terminal is in a non-roaming scenario, the home operator allocates a restricted IP address range to the vehicle terminal, and the vehicle terminal sets or updates the preset IP pool according to the IP address range allocated by the home operator; the IP address range allocated by the home operator corresponds to the PLMN identifier of the home operator.

[0030] When the vehicle terminal is in the home routing scenario, the home operator allocates a restricted IP address range to the vehicle terminal, and the vehicle terminal sets or updates the preset IP pool according to the IP address range allocated by the home operator; the IP address range allocated by the home operator corresponds to the PLMN identifier of the roaming operator.

[0031] When the vehicle terminal is in a roaming routing scenario, the home operator allocates a restricted IP address range to the vehicle terminal, and the vehicle terminal sets or updates the preset IP pool according to the IP address range allocated by the home operator; the IP address range allocated by the home operator corresponds to the PLMN identifier of the roaming operator. Alternatively, when the vehicle terminal is in a roaming routing scenario, the roaming operator allocates a restricted IP address range to the vehicle terminal, and the vehicle terminal sets or updates the preset IP pool according to the IP address range allocated by the roaming operator; the IP address range allocated by the roaming operator corresponds to the PLMN identifier of the roaming operator.

[0032] Optionally, the operator can pre-allocate at least one IP address range corresponding to a PLMN identifier for a batch or batches of vehicles based on parameters such as IMSI (International Mobile Subscriber Identity), ICCID (Integratecircuit card identity), MSISDN (Mobile SubscriberInternational ISDNnumber, Integrated Service Digital Network) in the user identification module used by the vehicle terminal. If the vehicle terminal does not need to control the network traffic usage within a specific operator's network, the preset IP pool of the vehicle terminal does not include the operator's PLMN identifier and its corresponding IP address range.

[0033] Figure 1 This is a flow chart of a method for controlling network traffic usage of a vehicle-mounted terminal provided in an embodiment of the present disclosure. The method provided in an embodiment of the present disclosure can be executed by a network traffic usage control device of the vehicle-mounted terminal, which can be implemented in software and / or hardware and can be integrated on any electronic device with computing capabilities.

[0034] like Figure 1 As shown, the network traffic usage control method of the vehicle terminal provided by the embodiment of the present disclosure may include:

[0035] Step 101: in response to the vehicle-mounted terminal accessing the operator network, obtaining the PLMN identifier and IP address currently used by the vehicle-mounted terminal.

[0036] In this embodiment, each operator corresponds to at least one PLMN (Public Land Mobile Network), and different PLMNs are distinguished by PLMN identifiers. When the vehicle terminal accesses the operator network, the vehicle terminal selects a PLMN from the PLMN range supported and broadcast by the operator, and the operator network allocates an IP address to the vehicle terminal. Then, in response to the vehicle terminal accessing the operator network, the currently used PLMN identifier and IP address can be obtained.

[0037] As an example, when the vehicle terminal is in a non-roaming scenario, the operator network of the home operator is accessed according to the IP address assigned by the home operator. When the vehicle terminal is in a home routed (HR) scenario, the operator network of the roaming operator is accessed according to the IP address assigned by the home operator. When the vehicle terminal is in a roaming routed (Local Breakout, LBO) scenario, the operator network of the roaming operator is accessed according to the IP address assigned by the home operator, or, according to the IP address assigned by the roaming operator, the operator network of the roaming operator is accessed.

[0038] Optionally, after the vehicle-mounted terminal accesses the operator network to establish a wireless bearer, the IP address allocated to the vehicle-mounted terminal can be any one of a terminal-level IP address, a PDN (Packet Data Network) connection-level IP address, and a PDU (Packet Data Unit) session-level IP address.

[0039] Step 102, querying the preset IP pool for an IP address range corresponding to the currently used PLMN identifier, and matching the IP address with the IP address range to determine the service status of the IP address.

[0040] Among them, the vehicle-mounted terminal includes a preset IP pool. If the preset IP pool includes an IP address range corresponding to at least one PLMN identifier, wherein each PLMN identifier in the preset IP pool corresponds to one or more IP address ranges, and the IP address range corresponds to one or more IP addresses. For example, the preset IP pool is located in the subscriber identification module (Subscriber Identity Module, SIM) used by the vehicle-mounted terminal, and the IP address range is divided according to the granularity of the operator's PLMN.

[0041] In this embodiment, a query is made as to whether the preset IP pool includes an IP address range corresponding to the currently used PLMN identifier. If an IP address range corresponding to the currently used PLMN identifier is found, a match is performed between the IP address and the IP address range to determine the service status of the IP address, wherein the service status includes a restricted status and an unrestricted status.

[0042] As an example, for each IP address in the IP address range corresponding to the currently used PLMN identifier, the currently used IP address is matched with the IP address in the IP address range. If an IP address identical to the currently used IP address is matched, it is determined that the IP address range includes the currently used IP address. In the case where the IP address range corresponding to the currently used PLMN identifier includes the currently used IP address, it is determined that the service state of the currently used IP address is a restricted state. In the case where the IP address range corresponding to the currently used PLMN identifier does not include the currently used IP address, it is determined that the service state of the currently used IP address is an unrestricted state.

[0043] In one embodiment of the present disclosure, after querying the IP address range corresponding to the currently used PLMN identifier in the preset IP pool, if the PLMN identifiers in the preset IP pool are inconsistent with the currently used PLMN identifier, that is, the preset IP pool does not contain the IP address range corresponding to the currently used PLMN identifier, then it is determined that the service status of the currently used IP address is unrestricted.

[0044] In one embodiment of the present disclosure, after querying the IP address range corresponding to the currently used PLMN identifier in the preset IP pool, if the preset IP pool is empty, it is determined that the service status of the currently used IP address is unrestricted.

[0045] Step 103 , in response to the vehicle-mounted terminal attempting to access the network address, access control is performed according to the service status and the network address through the built-in domain name system of the vehicle-mounted terminal.

[0046] In this embodiment, access control is performed based on the service status and network address through the built-in domain name system of the vehicle terminal, including: when the service status is restricted and the network address is not included in the built-in domain name system, the built-in domain name system cannot resolve the network address and denies access to the network address.

[0047] Among them, the vehicle terminal includes a built-in domain name system, and the built-in domain name system is configured to be able to resolve a specific network address, and the network address adopts a URL (Uniform Resource Locator) for example. Optionally, the network address can be added to the built-in domain name system. If the built-in domain name system contains the network address, the built-in domain name system can resolve the network address, otherwise, the built-in domain name system cannot resolve the network address. For example, the built-in domain name system is set with a network address, and the network address attempted to be accessed is matched with the set network address. If the network address that is the same as the network address attempted to be accessed is matched, it is determined that the built-in domain name system contains the network address attempted to be accessed, and the built-in domain name system can resolve the network address. Otherwise, it is determined that the built-in domain name system does not contain the network address attempted to be accessed, and the built-in domain name system cannot resolve the network address.

[0048] As an example, the vehicle manufacturer may set the network address in the built-in domain name system during the installation of the vehicle terminal. In this example, the network address set in the built-in domain name system includes the network address required to be accessed by the Internet of Vehicles service and / or other necessary Internet network addresses, which are not limited here.

[0049] As another example, the user can flexibly set the network address in the built-in domain name system of the vehicle terminal. In this example, the network address set in the built-in domain name system may include an Internet network address set by the user.

[0050] According to the technical solution of the disclosed embodiment, in response to the vehicle-mounted terminal accessing the operator network, the PLMN identifier and IP address currently used by the vehicle-mounted terminal are obtained, and the IP address is matched with the IP address range corresponding to the currently used PLMN identifier in the preset IP pool to determine the service status of the IP address. Furthermore, in response to the vehicle-mounted terminal attempting to access the network address, access control is performed according to the service status and the network address through the built-in domain name system of the vehicle-mounted terminal. When the service status is restricted and the network address is not included in the built-in domain name system, access to the network address is denied. Therefore, by configuring the preset IP pool and the built-in domain name system, the mobile network traffic is controlled in combination with the IP address of the vehicle-mounted terminal and the PLMN of the current network operator, and active management of the mobile network traffic of the vehicle terminal is achieved. While controlling the mobile network traffic of the vehicle terminal, the problem of underlying, non-service-related traffic leakage is solved.

[0051] Based on the above embodiments, Figure 2 A flowchart of another method for controlling network traffic usage of a vehicle terminal provided by an embodiment of the present disclosure is shown in FIG. Figure 2As shown, the built-in domain name system of the vehicle terminal is used to perform access control based on the business status and network address, and also includes:

[0052] Step 201, when the network address is included in the built-in domain name system, the network address is resolved by the built-in domain name system to obtain the target IP address, so as to access the network address according to the target IP address.

[0053] In this embodiment, when the vehicle terminal attempts to access a network address, the vehicle terminal first sends a domain name resolution request to the built-in domain name system of the vehicle terminal, and the built-in domain name system resolves the network address that is attempted to be accessed in combination with the service status of the currently used IP address. If the built-in domain name system contains the network address, the built-in domain name system can resolve the network address, and obtain the corresponding target IP address by resolving the network address to obtain the requested service, thereby enabling access to the network address. If the built-in domain name system does not contain the network address, the built-in domain name system cannot resolve the network address.

[0054] Step 202: When the network address is not included in the built-in domain name system, if the service status is unrestricted, a resolution request for the network address is sent to the external Internet.

[0055] Step 203, receiving the target IP address returned by the external Internet, and accessing the network address according to the target IP address.

[0056] In this embodiment, when the network address is not included in the built-in domain name system, it is determined whether the service status is restricted. If the service status is unrestricted, the vehicle-mounted terminal uses the established bearer to send a domain name resolution request to the external Internet. The external Internet resolves the network address to determine the corresponding target IP address, and returns the target IP address to the vehicle-mounted terminal. Then, the corresponding target IP address is obtained to obtain the requested service, thereby enabling access to the network address.

[0057] In one embodiment of the present disclosure, when a preset traffic control condition is met, a preset IP pool is set or updated, and / or a network address contained in a built-in domain name system is set or updated. The setting or updating of the preset IP pool is triggered and completed by the operator, and the setting or updating of the built-in domain name system is completed by the vehicle manufacturer or the user. Optionally, the prompt information of the vehicle terminal is obtained, and it is determined whether the traffic control condition is met based on the prompt information of the vehicle terminal and the tariff information of different regions / operators. For example, the vehicle terminal generates prompt information based on the statistical traffic usage information to provide to the user, or, when the operator is switched, if the PLMN of the mobile network used by the vehicle terminal changes, prompt information is provided to the user, and the user can learn about the mobile network tariff information of different operators, and then the user can adjust the network address in the built-in domain name system according to the prompt information and tariff information. Currently, the operator network only counts the network traffic usage of the vehicle-mounted terminal and will not interfere with the mobile network traffic usage of the vehicle-mounted terminal. In this embodiment, from the perspective of the vehicle-mounted terminal, the Internet services that the vehicle-mounted terminal can access are managed, thereby realizing the control of mobile network traffic. Furthermore, due to the different mobile network traffic charges in different regions, when the mobile network traffic charge of the vehicle's home operator is higher, or when the vehicle enters the roaming operator network from the home operator network, and the mobile network traffic charge of the roaming operator is higher, the user can be prompted to control the mobile network traffic. For example, the user can continue to use the mobile traffic control strategy of the vehicle terminal in the home operator network.

[0058] The following are examples using actual application scenarios.

[0059] Embodiment 1: The vehicle terminal uses Internet services in the home operator network, and whether or not to restrict Internet services based on the vehicle terminal. Vehicles equipped with vehicle terminals must be used within the coverage of the home operator network. Vehicle users can determine whether it is necessary to control the use of mobile network traffic from the perspective of the vehicle terminal based on their own needs, such as network traffic charges.

[0060] If control is required, the home operator shall allocate a specific IP address range, which corresponds to the PLMN of the home operator. Then, the home operator shall configure the IP address range and its corresponding PLMN identifier into the preset IP pool, and the network address required to be accessed shall be set in the built-in domain name system of the vehicle terminal. The setting of the built-in domain name system can follow the default configuration, or the user can add or reconfigure it in the built-in domain name system according to his or her own Internet usage habits. Based on the above settings, the vehicle terminal can realize the control of mobile network traffic in the network of the home operator.

[0061] When the vehicle terminal accesses the home operator network, the home operator network allocates an IP address for Internet access to the vehicle terminal, and the vehicle terminal determines the service status of the currently used IP address based on the currently used PLMN and the preset IP pool. If the preset IP pool contains the IP address range corresponding to the currently used PLMN, and the currently used IP address is within the IP address range, the service status of the currently used IP address is restricted, otherwise, the service status is unrestricted.

[0062] When the vehicle terminal attempts to access a network address, the vehicle terminal sends the service status and network address to the built-in domain name system. If the network address exists in the built-in domain name system, the built-in domain name system resolves the network address to achieve access. If the network address does not exist in the built-in domain name system, it is determined whether to resolve it based on the service status. If the service status is unrestricted, the network address is resolved through the external Internet to achieve access. If the service status is restricted, the built-in domain name system does not use the established bearer to send a domain name resolution request to the external Internet, and the vehicle terminal cannot obtain the requested service to achieve control.

[0063] If control is not required, the preset IP pool of the vehicle terminal may not include the PLMN identifier of the home operator and its corresponding IP address range, and the user may not modify the network address contained in the built-in domain name system.

[0064] Optionally, for vehicles from the same batch equipped with on-board terminals with the above-mentioned management and control functions, since the vehicles may be sold to different regions, operators in different regions may adopt different mobile network traffic usage strategies. Users can determine whether management and control is needed based on the mobile network traffic usage strategy of the operator in their area and their own needs. Vehicles from the same batch can flexibly configure personalized mobile network traffic control strategies in different operator networks.

[0065] Embodiment 2: The vehicle terminal uses Internet services on the roaming operator network. The IP address used by the vehicle terminal is allocated by the home operator network, and the home operator allocates the IP address range for mobile network traffic control to the vehicle terminal. Vehicles equipped with vehicle terminals can not only be used within the coverage of the home operator network, but also enter areas outside the network coverage of the home operator. If there is a roaming agreement between the home operator and the local operator, the vehicle terminal can access the Internet using the local operator network, that is, using the roaming operator network to access the Internet.

[0066] In this embodiment, when the vehicle terminal accesses the roaming operator network, the home operator network allocates an IP address to the vehicle terminal, such as the following two roaming network architectures: the home operator and the roaming operator adopt a roaming method of home routing, and the IP address is allocated by the home operator network; the home operator and the roaming operator adopt a roaming method of roaming routing, and the IP address is allocated by the home operator network.

[0067] If control is required, the home operator shall allocate a specific IP address range, which corresponds to the PLMN of the roaming operator. The home operator shall configure the IP address range and its corresponding PLMN identifier into the preset IP pool, and the network address required to be accessed shall be set in the built-in domain name system of the vehicle terminal. The settings of the built-in domain name system can follow the default configuration, or the user can add or reconfigure it in the built-in domain name system according to his or her own Internet usage habits. Based on the above settings, the vehicle terminal can realize the control of mobile network traffic in the roaming operator network.

[0068] When the vehicle terminal accesses the roaming operator network, the home operator network allocates an IP address for Internet access to the vehicle terminal, and the vehicle terminal determines the service status of the currently used IP address based on the currently used PLMN and the preset IP pool. If the preset IP pool contains the IP address range corresponding to the currently used PLMN, and the currently used IP address is within the IP address range, the service status of the currently used IP address is restricted, otherwise, the service status is unrestricted.

[0069] In the roaming operator network, when the vehicle terminal attempts to access a network address, the vehicle terminal sends the service status and network address to the built-in domain name system. If the network address exists in the built-in domain name system, the built-in domain name system resolves the network address to achieve access. If the network address does not exist in the built-in domain name system, it is determined whether to resolve it based on the service status. If the service status is unrestricted, the network address is resolved through the external Internet to achieve access. If the service status is restricted, the built-in domain name system does not use the established bearer to send a domain name resolution request to the external Internet, and the vehicle terminal cannot obtain the requested service to achieve control.

[0070] If control is not required, the preset IP pool of the vehicle terminal may not include the PLMN identifier of the roaming operator and its corresponding IP address range, and the user may not modify the network address contained in the built-in domain name system.

[0071] Embodiment 3: The vehicle uses Internet services on the roaming operator network, and the IP address used by the vehicle terminal is allocated by the roaming operator network, and the roaming operator network allocates the IP address range for mobile network traffic control to the vehicle terminal. Vehicles equipped with vehicle terminals can not only be used within the coverage of the home operator network, but also enter areas outside the network coverage of the home operator. If there is a roaming agreement between the home operator and the local operator, the vehicle terminal can access the Internet using the local operator network, that is, using the roaming operator network to access the Internet.

[0072] In this embodiment, when the vehicle terminal accesses the roaming operator network, the roaming operator network allocates an IP address to the vehicle terminal, such as the following roaming network architecture: a roaming method of roaming routing is adopted between the home operator and the roaming operator, and the IP address is allocated by the roaming operator network.

[0073] If control is required, the home operator negotiates with the roaming operator, and the roaming operator allocates a specific IP address range, which corresponds to the PLMN of the roaming operator. The roaming operator configures the IP address range and its corresponding PLMN identifier into the preset IP pool, and the built-in domain name system of the vehicle terminal is set with the network address to be accessed. The settings of the built-in domain name system can use the default configuration, or the user can add or reconfigure it in the built-in domain name system according to his or her own Internet usage habits. Based on the above settings, the vehicle terminal can realize the control of mobile network traffic in the roaming operator network.

[0074] When the vehicle terminal accesses the roaming operator network, the roaming operator network allocates an IP address to the vehicle terminal, and the vehicle terminal determines the service status of the currently used IP address based on the currently used PLMN and the preset IP pool. If the preset IP pool contains the IP address range corresponding to the currently used PLMN, and the currently used IP address is within the IP address range, the service status of the currently used IP address is restricted, otherwise, the service status is unrestricted.

[0075] In the roaming operator network, when the vehicle terminal attempts to access a network address, the vehicle terminal sends the service status and network address to the built-in domain name system. If the network address exists in the built-in domain name system, the built-in domain name system resolves the network address to achieve access. If the network address does not exist in the built-in domain name system, it is determined whether to resolve it based on the service status. If the service status is unrestricted, the network address is resolved through the external Internet to achieve access. If the service status is restricted, the built-in domain name system does not use the established bearer to send a domain name resolution request to the external Internet, and the vehicle terminal cannot obtain the requested service to achieve control.

[0076] If control is not required, the preset IP pool of the vehicle terminal may not include the PLMN identifier of the roaming operator and its corresponding IP address range, and the user may not modify the network address contained in the built-in domain name system.

[0077] As a result, network traffic usage control of the vehicle terminal in non-roaming scenarios and roaming scenarios is achieved.

[0078] Figure 3 A schematic diagram of a network traffic usage control device for a vehicle terminal provided by an embodiment of the present disclosure is shown in FIG. Figure 3 As shown, the network traffic usage control device of the vehicle-mounted terminal includes: an acquisition module 31, a determination module 32, and a control module 33.

[0079] An acquisition module 31 is used to acquire a PLMN identifier and an IP address currently used by the vehicle-mounted terminal in response to the vehicle-mounted terminal accessing the operator network;

[0080] A determination module 32, configured to query the preset IP pool for an IP address range corresponding to the currently used PLMN identifier, and to match the IP address with the IP address range to determine the service status of the IP address;

[0081] A control module 33, for responding to the vehicle terminal attempting to access the network address, and performing access control according to the service status and the network address through the built-in domain name system of the vehicle terminal;

[0082] Among them, when the service status is restricted and the network address is not included in the built-in domain name system, the built-in domain name system cannot resolve the network address and denies access to the network address.

[0083] In one embodiment of the present disclosure, the determination module 32 is specifically configured to:

[0084] Match the IP address with the IP address range to determine the service status of the IP address, including:

[0085] In the case where the IP address range corresponding to the currently used PLMN identifier includes the IP address, determining that the service state of the IP address is a restricted state;

[0086] When the IP address range corresponding to the currently used PLMN identity does not include the IP address, it is determined that the service state of the IP address is an unrestricted state.

[0087] In one embodiment of the present disclosure, the device further includes:

[0088] A matching module is used to determine that the service status of the IP address is unrestricted if the preset IP pool includes an IP address range corresponding to at least one PLMN identifier and if the PLMN identifiers in the preset IP pool are inconsistent with the currently used PLMN identifiers; and to determine that the service status of the IP address is unrestricted if the preset IP pool is empty.

[0089] In one embodiment of the present disclosure, the control module 33 is specifically used to:

[0090] In the case where the network address is included in the built-in domain name system, the network address is resolved by the built-in domain name system to obtain the target IP address, so as to access the network address according to the target IP address.

[0091] In one embodiment of the present disclosure, the control module 33 is specifically used to:

[0092] In the case where the network address is not included in the built-in domain name system, if the service status is unrestricted, a resolution request for the network address is sent to the external Internet;

[0093] Receive the target IP address returned by the external Internet to access the network address according to the target IP address.

[0094] In one embodiment of the present disclosure, the device further includes:

[0095] An update module, used for setting or updating a preset IP pool according to an IP address range allocated by a home operator when the vehicle terminal is in a non-roaming scenario; the IP address range allocated by the home operator corresponds to a PLMN identifier of the home operator;

[0096] When the vehicle terminal is in the home routing scenario, the preset IP pool is set or updated according to the IP address range allocated by the home operator; the IP address range allocated by the home operator corresponds to the PLMN identifier of the roaming operator;

[0097] When the vehicle terminal is in a roaming routing scenario, a preset IP pool is set or updated according to the IP address range allocated by the home operator; the IP address range allocated by the home operator corresponds to the PLMN identifier of the roaming operator; or,

[0098] When the vehicle terminal is in a roaming routing scenario, a preset IP pool is set or updated according to the IP address range allocated by the roaming operator; the IP address range allocated by the roaming operator corresponds to the PLMN identifier of the roaming operator.

[0099] In one embodiment of the present disclosure, the device further includes:

[0100] The prompt module is used to set or update the preset IP pool and / or set or update the network address contained in the built-in domain name system when the preset traffic control conditions are met.

[0101] The network traffic usage control device for the vehicle terminal provided in the embodiment of the present disclosure can execute the network traffic usage control method for any vehicle terminal provided in the embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method. Contents not fully described in the embodiment of the device of the present disclosure can refer to the description in any method embodiment of the present disclosure.

[0102] The present disclosure also provides an electronic device, which includes one or more processors and a memory. The processor may be a central processing unit (CPU) or other forms of processing units with data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device to perform desired functions. The memory may include one or more computer program products, and the computer program product may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. Non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on a computer-readable storage medium, and the processor may run the program instructions to implement the method of the above embodiment of the present disclosure and / or other desired functions. Various contents such as input signals, signal components, noise components, etc. may also be stored in the computer-readable storage medium.

[0103] In one example, the electronic device may further include: an input device and an output device, and these components are interconnected through a bus system and / or other forms of connection mechanisms. In addition, the input device may also include, for example, a keyboard, a mouse, etc. The output device may output various information to the outside, including determined distance information, direction information, etc. The output device may include, for example, a display, a speaker, a printer, and a communication network and a remote output device connected thereto, etc. In addition, according to the specific application, the electronic device may also include any other appropriate components such as a bus, an input / output interface, etc.

[0104] In addition to the above methods and devices, the embodiments of the present disclosure may also be a computer program product, which includes computer program instructions. When the computer program instructions are executed by a processor, the processor executes any method provided by the embodiments of the present disclosure.

[0105] The computer program product may be written in any combination of one or more programming languages ​​to write program code for performing the operations of the disclosed embodiments, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.

[0106] In addition, the embodiments of the present disclosure may also be a computer-readable storage medium on which computer program instructions are stored. When the computer program instructions are executed by a processor, the processor executes any method provided by the embodiments of the present disclosure.

[0107] Computer readable storage media can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0108] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0109] The above description is only a specific embodiment of the present disclosure, so that those skilled in the art can understand or implement the present disclosure. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for controlling network traffic usage of a vehicle-mounted terminal, characterized in that: The method comprises: In response to the vehicle-mounted terminal accessing the operator network, obtaining a PLMN identifier and an IP address currently used by the vehicle-mounted terminal; Querying the IP address range corresponding to the currently used PLMN identifier in the preset IP pool, and matching the IP address with the IP address range to determine the service status of the IP address; In response to the vehicle terminal attempting to access a network address, performing access control according to the service status and the network address through a built-in domain name system of the vehicle terminal; Wherein, when the service status is a restricted status and the network address is not included in the built-in domain name system, the built-in domain name system cannot resolve the network address and denies access to the network address.

2. The method according to claim 1, characterized in that The matching the IP address with the IP address range to determine the service status of the IP address includes: In a case where the IP address range corresponding to the currently used PLMN identifier includes the IP address, determining that the service state of the IP address is a restricted state; In a case where the IP address range corresponding to the currently used PLMN identity does not include the IP address, it is determined that the service state of the IP address is an unrestricted state.

3. The method according to claim 1, characterized in that After querying the preset IP pool for the IP address range corresponding to the currently used PLMN identifier, the method further includes: In the case where the preset IP pool includes an IP address range corresponding to at least one PLMN identifier, if all PLMN identifiers in the preset IP pool are inconsistent with the currently used PLMN identifier, determining that the service state of the IP address is an unrestricted state; When the preset IP pool is empty, it is determined that the service status of the IP address is an unrestricted status.

4. The method according to claim 1, characterized in that The performing access control according to the service status and the network address includes: In the case that the network address is included in the built-in domain name system, the network address is resolved by the built-in domain name system to obtain the target IP address, so as to access the network address according to the target IP address.

5. The method according to claim 1, characterized in that The performing access control according to the service status and the network address includes: In the case where the network address is not included in the built-in domain name system, if the service status is unrestricted, sending a resolution request for the network address to the external Internet; The target IP address returned by the external Internet is received to access the network address according to the target IP address.

6. The method according to claim 1, characterized in that The method further comprises: When the vehicle-mounted terminal is in a non-roaming scenario, the preset IP pool is set or updated according to the IP address range allocated by the home operator; the IP address range allocated by the home operator corresponds to the PLMN identifier of the home operator; When the vehicle-mounted terminal is in a home routing scenario, the preset IP pool is set or updated according to the IP address range allocated by the home operator; the IP address range allocated by the home operator corresponds to the PLMN identifier of the roaming operator; When the vehicle terminal is in a roaming routing scenario, the preset IP pool is set or updated according to the IP address range allocated by the home operator; the IP address range allocated by the home operator corresponds to the PLMN identifier of the roaming operator; or, When the vehicle-mounted terminal is in a roaming routing scenario, the preset IP pool is set or updated according to the IP address range allocated by the roaming operator; the IP address range allocated by the roaming operator corresponds to the PLMN identifier of the roaming operator.

7. The method according to claim 1, characterized in that The method further comprises: When the preset traffic control conditions are met, the preset IP pool is set or updated, and / or the network address included in the built-in domain name system is set or updated.

8. A network traffic usage control device for a vehicle-mounted terminal, characterized in that: include: An acquisition module, configured to acquire a PLMN identifier and an IP address currently used by the vehicle-mounted terminal in response to the vehicle-mounted terminal accessing the operator network; A determination module, configured to query a preset IP pool for an IP address range corresponding to the currently used PLMN identifier, and match the IP address with the IP address range to determine the service status of the IP address; a control module, for performing access control according to the service status and the network address through a built-in domain name system of the vehicle terminal in response to the vehicle terminal attempting to access the network address; Wherein, when the service status is a restricted status and the network address is not included in the built-in domain name system, the built-in domain name system cannot resolve the network address and denies access to the network address.

9. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is used to read the executable instructions from the memory and execute the instructions to implement the network traffic usage control method of the vehicle-mounted terminal as described in any one of claims 1-7 above.

10. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by the processor, the method for controlling the network traffic usage of the vehicle terminal described in any one of claims 1 to 7 is implemented.