Network Connection Management Method, Device, Electronic Device, and Readable Storage Medium

By obtaining the IP triplet in the user routing policy, intercepting the data connection establishment request of the target application, and establishing a network slice when the IP address matches, the network lag caused by IP address changes during the use of IP triplet network slice is solved, and faster network connections are achieved.

CN116133154BActive Publication Date: 2025-06-27VIVO MOBILE COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211191040.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-28
Publication Date
2025-06-27
Estimated Expiration
2042-09-28

AI Technical Summary

Technical Problem

During the use of IP triple network slicing, the network lags for a long time due to changes in IP address during application startup.

Method used

Get the IP triple in the user's routing policy, intercept the data connection establishment request of the target application, establish a network slice when the IP address matches, and establish a data connection based on the slice.

Benefits of technology

Avoid network lag caused by changes in IP address. By establishing network slices in advance, directly using the changed network, reducing the connection timeout waiting time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116133154B_ABST
    Figure CN116133154B_ABST
Patent Text Reader

Abstract

The present application discloses a network connection management method, apparatus, electronic device, and readable storage medium, belonging to the field of communication technologies. Among them, the method includes: obtaining a user routing selection policy, where the user routing selection policy includes IP triples; intercepting a first data connection establishment request of a target application when the IP address accessed by the target application is the same as the IP address in the IP triples; establishing a network slice according to the IP triples; and establishing the first data connection according to the network slice.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of communication technologies, and particularly relates to a network connection management method, apparatus, electronic device, and readable storage medium. Background Art

[0002] With the continuous development and popularization of the fifth-generation mobile communication technology (5G), network slicing, a service deployment solution based on 5G, has emerged as the times require.

[0003] Generally, when a terminal requests to establish a data connection, it carries network slice selection assistance information (NSSAI) for establishing a network slice, and then combines with the UE route selection policy (USRP for short) sent by the network received by the terminal to trigger the establishment of the corresponding network slice. Then, the corresponding service is bound to the network slice through the terminal routing policy, and finally the function of performing the service on the specified slice is completed.

[0004] Among them, based on different traffic descriptors (TD) in the USRP, the establishment of the corresponding network slice is triggered. Commonly, user scenarios such as game applications, ride-hailing codes, and nucleic acid codes may all require network slices of Internet Protocol (IP) triples. During the use of the IP triple network slice, there will be a long-term network lag phenomenon due to IP address changes during the application startup period. Summary of the Invention

[0005] The purpose of the embodiments of this application is to provide a network connection management method, which can solve the problem that during the use of the IP triple network slice, there will be a long-term network lag phenomenon due to IP address changes during the application startup period.

[0006] In a first aspect, the embodiments of this application provide a network connection management method, which includes: obtaining a user route selection policy, where the user route selection policy includes an IP triple; intercepting a first data connection establishment request of a target application when the IP address accessed by the target application is the same as the IP address in the IP triple; establishing a network slice according to the IP triple; and establishing the first data connection according to the network slice.

[0007] Second aspect, an embodiment of the present application provides a network connection management device, which includes: a first acquisition module, configured to acquire a user routing selection policy, where the user routing selection policy includes an IP triple; an interception module, configured to intercept a first data connection establishment request of a target application when an IP address accessed by the target application is the same as the IP address in the IP triple; a first establishment module, configured to establish a network slice according to the IP triple; and a second establishment module, configured to establish the first data connection according to the network slice.

[0008] Third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory. The memory stores a program or instruction that can run on the processor. When the program or instruction is executed by the processor, the steps of the method described in the first aspect are implemented.

[0009] Fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0010] Fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor, and the processor is configured to run a program or instruction to implement the method described in the first aspect.

[0011] Sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0012] In the embodiments of the present application, a user routing selection policy is acquired to intercept a first data connection establishment request of a target application when an IP address accessed by the target application is the same as the IP triple in the user routing selection policy. Further, when the establishment request is intercepted, the establishment of a network slice is completed, and then the first data connection is established according to the network slice. It can be seen that in the embodiments of the present application, after the network slice is established, the network used by the target application changes, so as to control the establishment of a data connection directly using the changed network (i.e., the network slice), without waiting for the connection to time out, thereby avoiding a long-time network lag in the target application. Description of the Drawings

[0013] Figure 1 is a flowchart of the network connection management method according to the embodiment of the present application;

[0014] Figure 2 is one of the block diagrams of the electronic device according to the embodiment of the present application;

[0015] Figure 3 It is the second block diagram of the electronic device according to an embodiment of the present application;

[0016] Figure 4 It is the block diagram of the network connection management device according to an embodiment of the present application;

[0017] Figure 5 It is one of the schematic diagrams of the hardware structure of the electronic device according to an embodiment of the present application;

[0018] Figure 6 It is the second schematic diagram of the hardware structure of the electronic device according to an embodiment of the present application. Detailed implementation manners

[0019] Next, the technical solutions of the embodiments of the present application will be clearly described in conjunction with the accompanying drawings of the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art belong to the scope protected by the present application.

[0020] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, rather than to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same category, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims means at least one of the connected objects, and the character " / " generally indicates an "or" relationship between the associated objects before and after.

[0021] The network connection management method provided by the embodiments of the present application may be executed by the network connection management device provided by the embodiments of the present application, or an electronic device integrated with the network connection management device, where the network connection management device may be implemented in a hardware or software manner.

[0022] Next, in conjunction with the accompanying drawings, the network connection management method provided by the embodiments of the present application will be described in detail through specific embodiments and their application scenarios.

[0023] Figure 1 The flowchart of the network connection management method according to an embodiment of the present application is shown. Taking the application of this method to an electronic device as an example, it includes:

[0024] Step 110: Obtain a user routing selection policy, and the user routing selection policy includes IP triples.

[0025] The user routing selection policy is issued by the operator, so that the electronic device can obtain the user routing selection policy.

[0026] Among them, the IP triple includes an IP address, a protocol, and a port.

[0027] Step 120: When the IP address accessed by the target application is the same as the IP address in the IP triple, intercept the first data connection establishment request of the target application.

[0028] Before this step, the electronic device listens to the IP address accessed by the target application and queries whether the IP address accessed by the target application is the same as the IP triple in the user routing selection policy. Thus, in this step, if the IP address accessed by the target application is the same as the IP triple in the user routing selection policy, a network slice is about to be established, and the first data connection establishment request is intercepted first.

[0029] Among them, the first data connection establishment request is used to establish the first data connection.

[0030] Optionally, the first data connection is a Transmission Control Protocol (TCP) connection.

[0031] Optionally, the intercepted first data connection establishment request is in the BLOCK state, and the first data connection establishment request will not be sent to the kernel.

[0032] Application scenarios are as follows. When the target application is started, the IP address accessed by the target application is the same as the IP triple in the user routing selection policy.

[0033] Step 130: Establish a network slice according to the IP triple.

[0034] In this step, a network slice is established based on the TD of the user routing selection policy.

[0035] Among them, in this embodiment, TD is the IP triple.

[0036] Step 140: Establish the first data connection according to the network slice.

[0037] In this step, the first data connection is established based on the established network slice.

[0038] In this way, in the embodiments of the present application, a user routing selection policy is obtained to intercept the first data connection establishment request of the target application when the IP address accessed by the target application is the same as the IP triple in the user routing selection policy. Further, in the case of intercepting the establishment request, the establishment of the network slice is completed, and then the first data connection is established according to the network slice. In the embodiments of the present application, after the network slice is established, the network used by the target application changes, so as to control the direct use of the changed network (i.e., the network slice) to establish a data connection, without waiting for the connection to time out, thereby avoiding long-term network lags in the target application.

[0039] In the process of the network connection management method in another embodiment of the present application, before step 120, the method further includes:

[0040] Step A1: When the target application sends a first data connection establishment request, obtain the IP address accessed by the target application.

[0041] The target application sends out a first data connection establishment request through the electronic device to establish a data connection according to the network and implement the Internet access function.

[0042] In this step, when the target application sends the first data connection, correspondingly, obtain the IP address accessed by the target application.

[0043] In this embodiment, by listening to the behavior of the target application sending a data connection establishment request, the IP address accessed by the target application can be correspondingly obtained, so as to be able to identify the scenario where the IP address accessed by the target application is the same as the IP triple in the user routing selection policy. In this scenario, the network slice will be established soon, and then the corresponding first data connection establishment request can be intercepted.

[0044] In the process of the network connection management method in another embodiment of the present application, the method further includes:

[0045] Step B1: When the establishment duration of the network slice is greater than the preset duration, disconnect the data connection of the target mobile network and establish the first data connection based on the network slice.

[0046] Among them, after the modem receives the network slice establishment request, it matches the slice corresponding to the IP triple according to the user routing selection policy and establishes a data connection based on this slice to complete the establishment of the network slice.

[0047] Optionally, the electronic device sends a network slice establishment request carrying the IP triple and starts a first timer, and the first timer is used to record the preset duration.

[0048] In this embodiment, the preset duration is the estimated establishment duration of the network slice, so as to compare the actual establishment duration of the network slice with the estimated establishment duration of the network slice. If the actual establishment duration of the network slice is greater than the estimated establishment duration of the network slice, it is considered that the establishment of the network slice times out; on the contrary, if the actual establishment duration of the network slice is less than or equal to the estimated establishment duration of the network slice, it is considered that the establishment of the network slice does not time out.

[0049] In this embodiment, for the situation where the establishment of the network slice times out, a processing method is proposed.

[0050] Correspondingly, after the preset duration is reached, the first timer is turned off. If the network slice has not been established yet at this time, after resuming the transmission of the intercepted first data connection establishment request, the first data connection can be continuously established based on the target mobile network until the establishment of the network slice is completed, and then the data connection of the target mobile network is actively disconnected, so that a data connection can be established using the newly established network slice.

[0051] Among them, in the case where the network slice is not established, the target application establishes a data connection through the target mobile network.

[0052] Optionally, the target mobile network is the default mobile network in the electronic device.

[0053] Among them, in the case where the target application is not started, the target application establishes a data connection according to the default mobile network in the electronic device. After the target application is started, that is, during the operation of the target application, the target application establishes a data connection according to the network slice.

[0054] Among them, when the data transmission and reception of the target application use the route of the newly established network slice, data can be transmitted and received through the interface of the network slice.

[0055] In this embodiment, if the establishment duration of the network slice is greater than the preset duration, the establishment of the network slice times out. Therefore, after the establishment of the network slice is completed, the data connection of the target mobile network is actively disconnected, and the target application will receive this exception and trigger an operation to re - establish the first data connection. At this time, the first data connection is automatically established using the newly established network slice, so that the target application can realize the Internet access function. It can be seen that in this embodiment, when the establishment of the network slice is completed, the data connection of the target mobile network is actively disconnected, so as to ensure that the first data connection is established using the newly established network slice, without waiting for the first data connection to time out before sending a data connection establishment request, thus avoiding a long - time network lag phenomenon in the target application.

[0056] In the process of the network connection management method in another embodiment of this application, the method further includes:

[0057] Step C1: When the establishment duration of the network slice is greater than the preset duration, establish a first data connection based on the target mobile network.

[0058] Step C2: When the target application sends a second data connection establishment request, establish a second data connection for the target application based on the network slice.

[0059] Optionally, the electronic device sends a network slice establishment request carrying an IP triple and starts a first timer, where the first timer is used to record the preset duration.

[0060] In this embodiment, the preset duration is the expected establishment duration of the network slice, so as to compare the actual establishment duration of the network slice with the expected establishment duration of the network slice. If the actual establishment duration of the network slice is greater than the expected establishment duration of the network slice, it is considered that the establishment of the network slice times out; on the contrary, if the actual establishment duration of the network slice is less than or equal to the expected establishment duration of the network slice, it is considered that the establishment of the network slice does not time out.

[0061] In this embodiment, another processing method is proposed for the situation where the establishment of the network slice times out.

[0062] Correspondingly, after reaching the preset duration, the first timer is turned off. At this time, if the network slice has not been completed yet, after resuming the transmission of the intercepted first data connection establishment request, the first data connection can continue to be established based on the target mobile network until the establishment of the network slice is completed, and the control is to continue using the target mobile network to establish the first data connection. Further, when the target application sends a data connection establishment request again (i.e., the second data connection establishment request), the newly established network slice will be automatically used to establish the second data connection.

[0063] Among them, when the data transceiver of the target application uses the route of the newly established network slice, data can be sent and received through the interface of the network slice.

[0064] In this embodiment, if the establishment duration of the network slice is greater than the preset duration, the establishment of the network slice times out. Therefore, after the establishment of the network slice is completed, the control is actively to continue using the target mobile network to establish the first data connection; further, when the target application sends a second data connection establishment request, since the network slice has been established, the newly established network slice will be automatically used to establish the second data connection. It can be seen that in this embodiment, when the establishment of the network slice is completed, the target mobile network is actively selected to establish the first data connection to ensure that the target application can access the Internet normally. After the data connection establishment request is sent again, the newly established network slice is used to establish the data connection, so there is no need to wait for the first data connection to time out, thereby avoiding the phenomenon of long-term network lag in the target application.

[0065] In the process of the network connection management method according to another embodiment of the present application, step 140 includes:

[0066] Sub-step D1: When the establishment duration of the network slice is less than or equal to the preset duration, a first data connection is established according to the network slice.

[0067] Optionally, the electronic device sends a network slice establishment request carrying an IP triple and starts a first timer, where the first timer is used to record the preset duration.

[0068] In this embodiment, the preset duration is the expected establishment duration of the network slice, so as to compare the actual establishment duration of the network slice with the expected establishment duration of the network slice. If the actual establishment duration of the network slice is greater than the expected establishment duration of the network slice, it is considered that the establishment of the network slice times out; otherwise, if the actual establishment duration of the network slice is less than or equal to the expected establishment duration of the network slice, it is considered that the establishment of the network slice does not time out.

[0069] In this embodiment, a processing method is proposed for the situation where the establishment of the network slice does not time out.

[0070] Correspondingly, after reaching the preset duration, the first timer is turned off. At this time, the network slice has been established, so after resuming the transmission of the intercepted first data connection establishment request, the first data connection can be automatically established using the network slice.

[0071] Among them, when the data transmission and reception of the target application use the route of the newly established network slice, data can be transmitted and received through the interface of the network slice.

[0072] In this embodiment, if the establishment duration of the network slice is less than or equal to the preset duration, the establishment of the network slice does not time out. Therefore, after resuming the transmission of the first data connection establishment request, the first data connection can be directly established using the newly established network slice. It can be seen that in this embodiment, during the interception of the first data connection establishment request, waiting for the network slice to be established. Thus, after the network slice is established, resuming the transmission of the first data connection establishment request, the first data connection can be directly established using the network slice, and thus there is no need to wait for the first data connection to time out, thereby avoiding a long-time network lag phenomenon in the target application.

[0073] Combined with the above embodiments, see Figure 2, which shows a structure of an electronic device. When the target application 201 starts, it obtains relevant settings from the local library 202, so that the system 203 can send a first data connection establishment request based on these settings. The system 203 compares the IP address accessed by the target application with the IP triple obtained from the modem 204. If the two are the same, the first data connection establishment request is intercepted. Further, the modem 204 establishes a network slice. At the same time, starting from the establishment of the network slice, after a preset duration is satisfied, the first data connection establishment request is continuously sent to the kernel 205. At this time, the system 203 can use the network slice established by the modem 203 to implement the Internet access function of the target application 201 according to the result of comparing the duration consumed for establishing the network slice with the preset duration.

[0074] In the network connection management method according to another embodiment of the present application, the preset duration is: one second to two seconds.

[0075] Among them, one second to two seconds is set based on the tolerance limit of network latency for a large number of users. That is, during the process of starting the target application, users can generally accept a network latency of 1s to 2s.

[0076] In this embodiment, considering that establishing a network slice takes a certain amount of time, in order to avoid a long-term lag phenomenon during this period, a preset duration is set so that after the preset duration is reached, corresponding processing methods are adopted according to the actual situation, thereby avoiding a long-term lag phenomenon during the establishment of the network slice.

[0077] In the process of the network connection management method according to another embodiment of the present application, after step 130, the method further includes:

[0078] Step E1: Release the network slice when the target application exits or the application interface of the target application stops accessing the IP address.

[0079] In this embodiment, the system monitors the running state of the target application and the display situation of the application interface. When the target application exits or the application interface no longer accesses the corresponding IP address, the network slice is released.

[0080] Optionally, when the target application exits or the application interface no longer accesses the corresponding IP address, a second timer is started, and the second timer is used to record the target duration.

[0081] Among them, big data corresponding to the application behavior in which the application interface of the target application stops accessing the corresponding IP address can be obtained, so that by statistically analyzing the big data, the characteristics of the target application when the above application behavior occurs can be obtained, so that in this embodiment, the application behavior in which the application interface of the target application stops accessing the IP address can be monitored.

[0082] Optionally, the target duration is obtained based on big data statistics. For example, after counting the IP address corresponding to the exit of the target application and the stop of access to the application interface of the target application, the duration within which the user generally no longer uses the target application is counted, and the counted duration is used as the target duration.

[0083] Among them, the system also monitors the changes in the IP address accessed by the target application and the application behavior status, and updates the statistical data maintained by the system.

[0084] Further, after reaching the target duration, the second timer is turned off, thereby releasing the network slice, and the target application continues to use the target mobile network to establish a data connection.

[0085] In this embodiment, the relationship between the running state of the target application and the accessed IP address can be counted. Based on the running state of the target application and the relationship that the IP address accessed by the target application is the same as the IP triple, without waiting for the target application to send a data connection establishment request, the network slice of the IP triple can be directly established. Similarly, during the use of the network slice, the relationship between the running state of the target application and the accessed IP address is continuously counted. Based on the running state of the target application and the relationship that the IP address accessed by the target application is different from the IP triple, the network slice is automatically released. It can be seen that this embodiment combines the relationship between the application running state and the accessed IP address, reasonably releases the network slice, avoids frequent establishment and release of the network slice, and improves the user's Internet experience.

[0086] See Figure 3 , based on the previous embodiment, a structure of an electronic device is shown. The target application 301 establishes a relationship with the modem 303 through the kernel 302, so that the target application 301 can use the network slice established based on the modem 303 to establish a data connection and implement the Internet access function. In addition, during the process of receiving and sending data by the target application 301, the system 304 can also monitor the application running state, so that when the application exits and the application interface no longer accesses the corresponding IP address, it is monitored that the accessed IP address is different from the IP triple in the URSP reported by the modem 303, thereby releasing the network slice.

[0087] In summary, the purpose of the present application is to provide a method for managing network slices of IP triples, which can not only solve the problem of long-term network lag during the establishment of network slices, but also reasonably release network slices. In the present application, the system listens for data connection establishment requests sent by applications. When the IP address accessed by the application is the same as the address of the IP triple, the request is intercepted. At the same time, a slice establishment request is sent, and a timeout mechanism is set to send the data connection after the timeout. Among them, if the establishment of the network slice times out, the application is allowed to continue using the default network to establish a data connection, and after the network slice is established, the slice is used to establish a data connection. For the timeout of establishing the network slice, there are two solutions: after the network slice is established, directly disconnect the data connection of the application and send an RST (one of the six flag bits in the TCP header, indicating reset connection) to the network to notify the network of the receipt of this data interaction, and the application side throws an exception and re-establishes a data connection through the network slice; or, after the network slice is established, continue to maintain the original data connection of the application, and this data connection continues to use the default network to access the Internet. In addition, frequently establishing and releasing network slices will not only increase unnecessary work, but also reduce the user's Internet experience. Therefore, the time for releasing network slices is dynamically adjusted in combination with the running state of the application and the IP address accessed by the application interface.

[0088] For the network connection management method provided by the embodiment of the present application, the execution subject may be a network connection management device. In the embodiment of the present application, taking the network connection management device as an example to execute the network connection management method, the network connection management device provided by the embodiment of the present application is described.

[0089] Figure 4 The block diagram of the network connection management device according to another embodiment of the present application is shown. The device includes:

[0090] The first acquisition module 10 is used to acquire the user routing selection policy, and the user routing selection policy includes IP triples;

[0091] The interception module 20 is used to intercept the first data connection establishment request of the target application when the IP address accessed by the target application is the same as the IP address in the IP triple;

[0092] The first establishment module 30 is used to establish a network slice according to the IP triple;

[0093] The second establishment module 40 is used to establish a first data connection according to the network slice.

[0094] In this way, in the embodiments of the present application, a user routing selection policy is obtained to intercept a first data connection establishment request of a target application when the IP address accessed by the target application is the same as the IP triple in the user routing selection policy. Further, in the case of intercepting the establishment request, the establishment of a network slice is completed, and then the first data connection is established according to the network slice. It can be seen that in the embodiments of the present application, after the network slice is established, the network used by the target application changes, so as to control the data connection to be directly established using the changed network (i.e., the network slice) without waiting for the connection to time out, thereby avoiding a long-time network lag in the target application.

[0095] Optionally, the device further includes:

[0096] A second acquisition module, configured to acquire the IP address accessed by the target application when the target application sends a first data connection establishment request

[0097] Optionally, the device further includes:

[0098] A third establishment module, configured to disconnect the data connection of the target mobile network and establish a first data connection based on the network slice when the establishment duration of the network slice is greater than a preset duration.

[0099] Optionally, the device further includes:

[0100] A fourth establishment module, configured to establish a first data connection based on the target mobile network when the establishment duration of the network slice is greater than a preset duration;

[0101] A fifth establishment module, configured to establish a second data connection of the target application based on the network slice when the target application sends a second data connection establishment request.

[0102] Optionally, the second establishment module 40 includes:

[0103] An establishment unit, configured to establish a first data connection according to the network slice when the establishment duration of the network slice is less than or equal to a preset duration.

[0104] Optionally, the device further includes:

[0105] A release module, configured to release the network slice when exiting the target application or the application interface of the target application stops accessing the IP address.

[0106] The network connection management device in the embodiments of the present application may be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device may be a terminal or other devices other than terminals. Exemplarily, the electronic device may be a mobile phone, a tablet computer, a laptop computer, a handheld computer, an in-vehicle electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. It may also be a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc. The embodiments of the present application do not make specific limitations.

[0107] The network connection management device in the embodiments of the present application may be a device with an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems. The embodiments of the present application do not make specific limitations.

[0108] The network connection management device provided in the embodiments of the present application can implement each process implemented in the above method embodiments. To avoid repetition, it will not be elaborated here.

[0109] Optionally, as Figure 5 shown, the embodiments of the present application further provide an electronic device 100, including a processor 101, a memory 102, a program or instruction stored on the memory 102 and executable on the processor 101. When the program or instruction is executed by the processor 101, it implements each step of any of the above network connection management method embodiments and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

[0110] It should be noted that the electronic device in the embodiments of the present application includes the above-mentioned mobile electronic devices and non-mobile electronic devices.

[0111] Figure 6 Schematic diagram of the hardware structure of an electronic device for implementing the embodiments of the present application.

[0112] The electronic device 1000 includes, but is not limited to, components such as a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.

[0113] Those skilled in the art can understand that the electronic device 1000 may further include a power source (such as a battery) for supplying power to each component. The power source can be logically connected to the processor 1010 through a power management system, so as to implement functions such as management of charging, discharging, and power consumption management through the power management system. Figure 6 The structure of the electronic device shown does not limit the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.

[0114] Among them, the processor 1010 is used to obtain a user routing selection policy, and the user routing selection policy includes an IP triple; when the IP address accessed by the target application is the same as the IP address in the IP triple, intercept the first data connection establishment request of the target application; establish a network slice according to the IP triple; and establish the first data connection according to the network slice.

[0115] In this way, in the embodiment of the present application, a user routing selection policy is obtained to intercept the first data connection establishment request of the target application when the IP address accessed by the target application is the same as the IP triple in the user routing selection policy. Further, when the establishment request is intercepted, the establishment of the network slice is completed, and then the first data connection is established according to the network slice. It can be seen that in the embodiment of the present application, after the network slice is established, the network used by the target application changes, so as to control the establishment of the data connection directly using the changed network (i.e., the network slice), without waiting for the connection to time out, thereby avoiding a long network lag in the target application.

[0116] Optionally, the processor 1010 is further used to obtain the IP address accessed by the target application when the target application sends a first data connection establishment request.

[0117] Optionally, the processor 1010 is further used to disconnect the data connection of the target mobile network when the establishment duration of the network slice is greater than a preset duration, and establish the first data connection based on the network slice.

[0118] Optionally, the processor 1010 is further configured to establish the first data connection based on the target mobile network when the establishment duration of the network slice is greater than a preset duration; and establish the second data connection of the target application based on the network slice when the target application sends a second data connection establishment request.

[0119] Optionally, the processor 1010 is further configured to establish the first data connection according to the network slice when the establishment duration of the network slice is less than or equal to the preset duration.

[0120] Optionally, the processor 1010 is further configured to release the network slice when exiting the target application or when the application interface of the target application stops accessing the IP address.

[0121] It should be understood that in the embodiments of the present application, the input unit 1004 may include a graphics processing unit (GPU) 10041 and a microphone 10042. The graphics processing unit 10041 processes the image data of static pictures or video images obtained by an image capture device (such as a camera) in a video image capture mode or an image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. The other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and an action bar, which will not be elaborated here. The memory 1009 may be used to store software programs and various data, including but not limited to application programs and operating systems. The processor 1010 may integrate an application processor and a modulation and demodulation processor. Among them, the application processor mainly processes the operating system, user interfaces, and application programs, etc., and the modulation and demodulation processor mainly processes wireless communications. It can be understood that the above modulation and demodulation processor may not be integrated into the processor 1010.

[0122] The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data. Among them, the first storage area may store an operating system, application programs or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 1009 may include a volatile memory or a non-volatile memory, or the memory 1009 may include both a volatile memory and a non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synch link dynamic random access memory (SLDRAM), and a direct rambus random access memory (DRRAM). The memory 1009 in the embodiments of the present application includes, but is not limited to, these and any other suitable types of memories.

[0123] The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor. Among them, the application processor mainly processes operations related to the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above modem processor may not be integrated into the processor 1010.

[0124] The embodiments of the present application also provide a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, it implements each process of the above embodiment of the network connection management method and can achieve the same technical effect. To avoid repetition, it will not be elaborated here.

[0125] Among them, the processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media such as computer read-only memory ROM, random access memory RAM, magnetic disks, or optical discs, etc.

[0126] Another embodiment of the present application provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement each process of the above embodiment of the network connection management method, and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.

[0127] It should be understood that the chip mentioned in the embodiments of the present application may also be referred to as a system-on-chip, system chip, chip system, or system-on-chip, etc.

[0128] The embodiments of the present application provide a computer program product. The program product is stored in a storage medium. The program product is executed by at least one processor to implement each process of the above embodiment of the network connection management method, and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.

[0129] It should be noted that in this article, the term "including", "comprising", or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article, or device including a series of elements not only includes those elements, but also includes other elements that are not explicitly listed, or further includes elements inherent to such process, method, article, or device. Without more limitations, the element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article, or device including that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed. It may also include performing functions in a substantially simultaneous manner or in the reverse order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, the features described with reference to certain examples may be combined in other examples.

[0130] Through the description of the above embodiments, those skilled in the art can clearly understand that the above-described embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present application, in essence or the part that contributes to the prior art, can be embodied in the form of a computer software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions for causing a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.

[0131] The embodiments of the present application have been described above in conjunction with the accompanying drawings. However, the present application is not limited to the above specific implementation manners. The above specific implementation manners are merely illustrative and not restrictive. Under the inspiration of the present application, those of ordinary skill in the art can also make many forms without departing from the purpose of the present application and the scope protected by the claims, and all of them belong to the protection scope of the present application.

Claims

1. A network connection management method, characterized in that, The method includes: Obtaining a user routing selection policy, where the user routing selection policy includes an IP triple; Intercepting a first data connection establishment request of the target application when the IP address accessed by the target application is the same as the IP address in the IP triple; Establishing a network slice according to the IP triple; Establishing the first data connection according to the network slice.

2. The method according to claim 1, characterized in that Before intercepting the first data connection establishment request of the target application, the method further includes: Obtaining the IP address accessed by the target application when the target application sends a first data connection establishment request.

3. The method according to claim 1, wherein The method further includes: When the establishment duration of the network slice is greater than a preset duration, disconnecting the data connection of the target mobile network and establishing the first data connection based on the network slice.

4. The method according to claim 1, characterized in that The method further includes: When the establishment duration of the network slice is greater than a preset duration, establishing the first data connection based on the target mobile network; When the target application sends a second data connection establishment request, establishing the second data connection of the target application based on the network slice.

5. The method according to claim 1, wherein The establishing the first data connection according to the network slice includes: When the establishment duration of the network slice is less than or equal to the preset duration, establishing the first data connection according to the network slice.

6. The method according to claim 1, characterized in that, After establishing the network slice, the method further includes: Releasing the network slice when exiting the target application or when the application interface of the target application stops accessing the IP address.

7. A network connection management device, characterized in that, The device includes: A first obtaining module, configured to obtain a user routing selection policy, where the user routing selection policy includes an IP triple; An intercepting module, configured to intercept a first data connection establishment request of the target application when the IP address accessed by the target application is the same as the IP address in the IP triple; A first establishing module, configured to establish a network slice according to the IP triple; A second establishing module, configured to establish the first data connection according to the network slice.

8. The device according to claim 7, characterized in that The device further includes: A third establishing module, configured to disconnect the data connection of the target mobile network and establish the first data connection based on the network slice when the establishment duration of the network slice is greater than a preset duration.

9. The device according to claim 7, characterized in that, The device further includes: A fourth establishing module, configured to establish the first data connection based on the target mobile network when the establishment duration of the network slice is greater than a preset duration; A fifth establishing module, configured to establish the second data connection of the target application based on the network slice when the target application sends a second data connection establishment request.

10. The device according to claim 7, characterized in that, The second establishing module includes: An establishing unit, configured to establish the first data connection according to the network slice when the establishment duration of the network slice is less than or equal to the preset duration.

11. An electronic device, characterized in that, It includes a processor and a memory, where the memory stores a program or instruction that can run on the processor, and when the program or instruction is executed by the processor, the steps of the network connection management method as described in any one of claims 1 to 6 are implemented.

12. A readable storage medium, characterized in that, The program or instruction is stored on the readable storage medium, and when the program or instruction is executed by the processor, the steps of the network connection management method described in any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Route selection strategy management method and system of application program, equipment and medium

    CN113422725A

  • Communication method and communication apparatus

    WO2022183497A1