Data transmission method and device, electronic equipment and readable storage medium

By establishing network slicing on the terminal and dynamically switching based on data transmission quality, performance problems caused by network environment changes in QUIC protocol data transmission are solved and more efficient data transmission is achieved.

CN118694831APending Publication Date: 2024-09-24VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410739242.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

In data transmission based on the QUIC protocol, the application end cannot sense and adapt to changes in the network environment in real time, resulting in packet loss easily occurring when the network is congested, resulting in poor data transmission performance.

Method used

By establishing a network slice on the terminal and dynamically switching to an appropriate network slice for data transmission based on data transmission quality conditions, it ensures that the data transmission process can adapt to changes in the network environment.

Benefits of technology

Improved data transmission performance, reduced packet loss rate and delay through real-time monitoring and adaptation to network conditions, and improved the quality and reliability of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000
    Figure 00000000_0000
Patent Text Reader

Abstract

The invention discloses a data transmission method and device, electronic equipment and a readable storage medium, and belongs to the technical field of communication. The method comprises the steps that under the condition that a terminal transmits data of a first application through a first network, if the transmission quality of the data meets a first condition, a first network slice is established, and the data is data transmitted based on a QUIC protocol; and when the duration satisfying the first condition is greater than or equal to the first duration, establishing a connection between the terminal and the first network slice, and transmitting data through the first network slice.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to a data transmission method, device, electronic device and readable storage medium. Background Art

[0002] The Quick UDP Internet Connections (QUIC) protocol is widely used in various applications, especially in scenarios with high requirements for latency and throughput, such as real-time audio and video communications, online games, etc. The QUIC protocol significantly improves application performance and user experience by simplifying the connection establishment process, implementing multiplexing, and encrypting transmission.

[0003] In the related art, when the application data is transmitted based on the QUIC protocol, the data transmission control is performed by the application side, that is, the entire transmission process depends on the control logic of the application side. Since the control logic of the application side is usually pre-set based on the network environment and business requirements, however, the actual network environment is complex and changeable, the control logic of the application side cannot perceive and adapt to the changes in the network environment, resulting in the transmission process being unable to adapt to the changes in the network environment. For example, packet loss is prone to occur when the network is congested. This results in poor data transmission performance. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a data transmission method, device, electronic device and readable storage medium, which can enable the data transmission process to adapt to changes in the network environment, thereby improving data transmission performance.

[0005] In a first aspect, an embodiment of the present application provides a data transmission method, the method comprising: when a terminal transmits data of a first application through a first network, if the transmission quality of the data meets a first condition, a first network slice is established, and the data is data transmitted based on the QUIC protocol; when the duration of meeting the first condition is greater than or equal to the first duration, a connection between the terminal and the first network slice is established, and the data is transmitted through the first network slice.

[0006] In a second aspect, an embodiment of the present application provides a data transmission device, which includes: a processing module, which is used to: when a terminal transmits data of a first application through a first network, if the transmission quality of the data meets a first condition, establish a first network slice, and the above data is data transmitted based on the QUIC protocol; when the duration of meeting the first condition is greater than or equal to the first duration, establish a connection between the terminal and the first network slice, and transmit data through the first network slice.

[0007] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

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

[0009] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0010] In a 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.

[0011] In an embodiment of the present application, when a terminal transmits data of a first application through a first network, if the transmission quality of the data meets a first condition, a first network slice is established, and the data is transmitted based on the QUCI protocol. When the duration of meeting the first condition is greater than or equal to the first duration, a connection between the terminal and the first network slice is established, and data is transmitted through the first network slice. Through this method, when the terminal transmits application data based on the QUIC protocol, a network slice can be established when the transmission quality of the data meets the condition, and when the condition is met for a certain period of time, a connection with the network slice is established and switched to the network slice to transmit the application data. In this way, for applications that use the QUIC protocol for communication, the terminal can pre-establish a usable network slice based on the actual transmission situation of the data, and switch to the network slice for data transmission at an appropriate time, so that the data transmission process can adapt to changes in the network environment, thereby improving data transmission performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 An architecture diagram of a communication system provided in an embodiment of the present application;

[0013] Figure 2 A flowchart of a data transmission method provided in an embodiment of the present application;

[0014] Figure 3 One of the schematic diagrams for establishing a connection for a network slice provided in an embodiment of the present application;

[0015] Figure 4A schematic diagram of network switching provided in an embodiment of the present application;

[0016] Figure 5 A second schematic diagram of establishing a connection for a network slice provided in an embodiment of the present application;

[0017] Figure 6 A schematic diagram of the structure of a data transmission device provided in an embodiment of the present application;

[0018] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0019] Figure 8 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0020] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0021] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, 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 one type, 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 represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0022] The terms "at least one (item)", "at least one of" and the like in the specification and claims of the present application refer to any one, any two or a combination of more than two of the objects included therein. For example, at least one (item) of a, b, and c can be represented by: "a", "b", "c", "a and b", "a and c", "b and c" and "a, b and c", where a, b, and c can be single or multiple. Similarly, "at least two (items)" refers to two or more, and its meaning is similar to that of "at least one (item)".

[0023] The QUIC protocol is a new network protocol proposed in recent years. According to the characteristics of the QUIC protocol, traffic control is implemented on the application side and the server. As 5G technology matures, the corresponding applications of 5G technology are also constantly spreading. As one of the 5G technologies, network slicing (Network Slices), operators are also actively deploying it. So, when data is transmitted based on the QUIC protocol, how to combine 5G network slicing to make reasonable use of network resources is a future network optimization direction.

[0024] The data transmission method provided in the embodiment of the present application is reasonably optimized by means of terminal participation control in view of the characteristics of the QUIC protocol and 5G network slices. That is, the terminal dynamically switches between the general network and the 5G network slice for applications that use the QUIC protocol for communication, thereby more reasonably controlling the flow of applications that use QUIC.

[0025] Figure 1 An architecture diagram of a communication system provided in an embodiment of the present application, such as Figure 1 As shown, the communication system may include App1-App6, an application layer framework (Framework), a kernel layer (kernel), a modem (Modem), and a network side device (Network), wherein the application layer framework includes an application listening service (App Listen Service), a data stream management service (Stream Listen Service) and a slice management service (Slicing Management Service), and the modem includes a slice bearer service (Slicing Bear Service).

[0026] Among them, App1-App6 refer to applications installed on the terminal, and each application has a link with the application layer framework; there is a link between the application listening service and the modem, and the application listening service is used to collect App-related information, and the modem is used to establish network slices; there is a link between the data flow management service and the kernel layer, and the data flow management service is used to pass application information to the kernel layer, and listen to and collect the communication quality of each data flow in the kernel layer, and the kernel layer is used to identify the QUIC stream of the application; there is a link between the slice management service and the modem, and the slice management service is used to manage the establishment and release of network slices, and there is a link between the modem and the application listening service, the data flow management service and the network, and the network is used to manage network connections, configure network settings, transmit data, etc.

[0027] It should be noted that the above App1-App6 is only an example of the applications installed in the terminal. The applications installed in the terminal may not be limited to App1-App6. The applications in the terminal may also be other numbers and other applications, which is not limited in this application.

[0028] It should be noted that the above-mentioned link may be a connection.

[0029] The data transmission method provided in the embodiment of the present application can be executed by a terminal or at least one of a functional module and an entity module in the terminal that can implement the data transmission method. The specific execution can be determined according to actual use requirements and is not limited in the embodiment of the present application. This application takes the execution of the data transmission method by a terminal as an example to explain the data transmission method provided in the embodiment of the present application.

[0030] The data transmission method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0031] Figure 2 A flow chart of a data transmission method provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the data transmission method may include the following steps 201 and 202:

[0032] Step 201: When a terminal transmits data of a first application through a first network, if the transmission quality of the data meets a first condition, a first network slice is established.

[0033] Among them, the above data is data transmitted based on the QUIC protocol.

[0034] In some embodiments of the present application, the first network may be a cellular network, which is also called a mobile network.

[0035] In some embodiments of the present application, the above-mentioned first network may be a 5G (New Radio) network, a 6G network, or a network that supports network slicing after 6G, which is not limited by the embodiments of the present application.

[0036] In some embodiments of the present application, the first network is a network that is not divided for specific business scenarios and provides a unified data transmission service.

[0037] It should be noted that the cellular network may also be referred to as a traditional network or a universal network.

[0038] In some embodiments of the present application, the first application may be a system application, a third-party application, a mini-program, etc. in the terminal. Furthermore, the third-party application may be any type of application such as an instant messaging application, a multimedia application, an office application, a game application, etc.

[0039] It should be noted that the above-mentioned first application can also be other applications, and the embodiments of the present application are not limited to this.

[0040] In some embodiments of the present application, the above data may be data transmitted by the first application based on the QUIC protocol.

[0041] In some embodiments of the present application, the carrier of the above data is a data packet, that is, the data can be transmitted in the form of a data packet.

[0042] In some embodiments of the present application, the above data may be QUIC data.

[0043] In some embodiments of the present application, the above data may be transmitted in the form of a data stream.

[0044] It should be noted that, when transmitted in the form of a data stream, the data can be a QUIC data stream.

[0045] It should be noted that a data stream is an ordered sequence of bytes with a starting point and an end point. It is a dynamic form of data that continues to flow and change during communication or processing.

[0046] In some embodiments of the present application, the above data may be business data or non-business data of the first application.

[0047] Exemplarily, taking the first application as a shopping application, the business data of the first application may include: user's purchase records, browsing history, shopping cart contents, payment information, etc. The non-business data of the first application may include system logs generated during the operation of the application, recording the application's start, stop, errors, warnings and other information.

[0048] As another example, taking the first application as a social application, the business data of the first application may include: on the social platform, the user's personal information, friend relationships, chat records, published content and other data; the non-business data of the first application may be user device information, such as device model, operating system version, screen resolution and other information.

[0049] It should be noted that the above is only an exemplary description of the business data and non-business data of the application. The business data and non-business data of the application in actual application may also include other data, which is not limited in the embodiments of the present application.

[0050] In some embodiments of the present application, the terminal may obtain the transmission protocol used when transmitting data of the first application, and determine the data transmitted using the QUIC protocol as data.

[0051] It should be noted that for the same application, different transmission protocols may be used to transmit different data of the application. For example, for an instant messaging application, some of its data may be transmitted using the Transmission Control Protocol (TCP) protocol, while some of its data may be transmitted using the QUIC protocol.

[0052] In some embodiments of the present application, the transmission quality of data may include but is not limited to at least one of the following: packet loss rate, transmission delay, and transmission rate.

[0053] In some embodiments of the present application, the first condition includes at least one of the following:

[0054] The packet loss rate is greater than or equal to a first threshold;

[0055] The transmission delay is greater than or equal to a second threshold;

[0056] The transmission rate is less than a third threshold.

[0057] It can be understood that when the quality information meets the first condition, it indicates that the current transmission quality is poor, indicating that the terminal may currently be in a network environment with limited bandwidth or high congestion, that is, the network environment in which the terminal is located is poor.

[0058] It should be noted that the above-mentioned first threshold, second threshold and third threshold can be set according to actual needs, and the embodiments of the present application are not limited to this.

[0059] In some embodiments of the present application, the above-mentioned first network slice may be a plurality of logically independent virtual networks obtained by logically dividing the physical network.

[0060] It should be noted that network slicing is the division of a physical network into multiple virtual networks. Each virtual network serves a specific business type or industry user. This division enables network resources to be personalized according to different needs, thereby meeting the specific requirements of various application scenarios.

[0061] It is understandable that traditional networks provide unified data transmission services, which are suitable for most common application scenarios. Compared with traditional networks, network slicing is a more advanced and flexible network architecture. Each network slice can be customized according to specific business scenarios and requirements, so that different business scenarios can use different network slices to meet their differentiated requirements for data transmission rate, security, reliability, etc.

[0062] In some embodiments of the present application, the terminal may monitor the transmission quality of the first application when transmitting data, and establish a first network slice if it is determined that the transmission quality meets the first condition.

[0063] Exemplarily, taking the first application as APP1 and the transmission quality including packet loss rate as an example, the terminal can monitor the packet loss rate of APP1 data in real time or periodically, and establish a network slice when the packet loss rate is greater than or equal to a threshold (e.g., 2%).

[0064] It should be noted that packet loss rate is an important indicator to measure the quality of data transmission. It reflects the proportion of data packets lost during data transmission. When the packet loss rate is high, it means that more data packets are lost during network transmission, which means that data transmission is incomplete or erroneous.

[0065] As another example, taking the first application as APP1 and the transmission quality including latency as an example, the terminal can monitor the latency of APP1 data in real time or periodically, and establish a network slice when the latency is greater than or equal to a threshold (for example, 100ms).

[0066] It should be noted that when the transmission delay is high, it means that the efficiency of data transmission is reduced, which may cause real-time performance to be damaged and affect the user experience.

[0067] As another example, taking the first application as APP1, and the transmission quality including packet loss rate and transmission rate as an example, the terminal can monitor the delay and transmission rate of APP1 data in real time or periodically, and establish a network slice when the delay is greater than or equal to the threshold, or the transmission rate is less than the threshold.

[0068] It should be noted that the transmission rate determines the amount of data that can be transmitted per unit time. When the transmission rate is lower than a certain threshold, it means that the efficiency of data transmission is reduced and cannot meet the needs of the application.

[0069] In an embodiment of the present application, during the process of transmitting application data through a traditional network, when the packet loss rate of the data is high, the latency is high, or the transmission rate is low, the terminal establishes a network slice, so as to switch to the network slice at an appropriate time to continue transmitting the data. In this way, when the transmission quality continues to be poor, the terminal can quickly switch to the network slice for data transmission, thereby improving the quality and reliability of data transmission.

[0070] In some embodiments of the present application, the terminal may obtain configuration information of the first network slice, and establish the first network slice according to the configuration information of the first network slice. Exemplarily, the configuration information may include configurations such as a logical network architecture, a network function, and a protocol stack.

[0071] In some embodiments of the present application, the terminal may also monitor the overall transmission quality of the first network, and establish a first network slice based on the fact that the overall transmission quality is good and the data transmission quality is poor.

[0072] Step 202: When the duration of satisfying the first condition is greater than or equal to the first duration, the terminal establishes a connection with the first network slice and transmits data through the first network slice.

[0073] In some embodiments of the present application, the first duration may be 5s, 10s, or 15s, etc.

[0074] It should be noted that the first duration can be set according to actual needs, and the embodiment of the present application does not limit this.

[0075] Exemplarily, in combination with the above example, taking the first duration of 10s as an example, the terminal can establish a network slice when the transmission quality of data transmitted based on the QUIC protocol in APP1 is poor. Then, if the transmission quality of the data of APP1 continues to be poor within 10s, a connection with the network slice is established, and the data of APP1 continues to be transmitted through the network slice.

[0076] In this way, when there is data transmitted based on the QUIC protocol in the application, the terminal can obtain the transmission quality of the data and establish a network slice when the transmission quality is poor. Then, after the above-mentioned poor transmission quality state persists for a period of time, for example, when the transmission quality continues to be poor for 10 seconds, the connection between the terminal and the network slice is established, so that when a continuous abnormal state is detected, it can quickly respond and switch to the pre-established network slice. In this way, the instant switching of the network slice is realized, avoiding the delay in establishing a new slice, thereby ensuring the continuity and stability of data transmission.

[0077] The data transmission method provided in the embodiment of the present application, when the terminal transmits the data of the first application through the first network, if the transmission quality of the data meets the first condition, then a first network slice is established, and the data is data transmitted based on the QUCI protocol. When the duration of satisfying the first condition is greater than or equal to the first duration, the terminal establishes a connection with the first network slice and transmits the data through the first network slice. Through this method, when the terminal transmits application data based on the QUIC protocol, it can establish a network slice when the transmission quality of the data meets the condition, and when the condition is met for a certain period of time, establish a connection with the network slice and switch to the network slice to transmit the application data. In this way, for applications that use the QUIC protocol for communication, the terminal can pre-establish a usable network slice according to the data transmission status, and switch to the network slice for data transmission at an appropriate time, so that the data transmission process can adapt to changes in network conditions, thereby improving data transmission performance.

[0078] In some embodiments of the present application, after the first network slice is established in the above step 201, the data transmission method provided in the embodiment of the present application may further include the following step 203:

[0079] Step 203: When the duration of satisfying the first condition is less than the first duration, the terminal releases the first network slice.

[0080] In some embodiments of the present application, the terminal may delete the configuration information of the first network slice. For example, the logical network architecture, network functions, protocol stack and other related configurations of the network slice may be deleted to ensure that the network slice no longer occupies any system resources.

[0081] Exemplarily, in combination with the above example, taking the first duration of 10s as an example, the terminal can establish a network slice when the transmission quality of APP1 data is poor, and then release the network slice when good transmission quality is detected in the 5th second.

[0082] In this way, when the quality of subsequent data transmission improves, the terminal can release the established network slice to reclaim the resources occupied by the network slice, provide support for subsequent network slice creation and service deployment, and thus improve the utilization efficiency of network resources.

[0083] In some embodiments of the present application, the first application is an application in the terminal that subscribes to the network slice. Exemplarily, before establishing the first network slice in the above step 201, the data transmission method provided in the embodiment of the present application may also include the following step 204:

[0084] Step 204: The terminal obtains data of the first application and obtains the transmission quality of the data.

[0085] In some embodiments of the present application, the terminal can obtain data transmitted in the first application using the QUIC protocol through the kernel layer, and obtain the transmission quality of the data.

[0086] In some embodiments of the present application, the terminal can obtain data transmitted based on the QUIC protocol in the terminal through the kernel layer, and determine whether each data comes from the first application, and then obtain the data and the transmission quality of the data if the data comes from the first application.

[0087] Exemplarily, the terminal can obtain the attributes of the data packet (such as source address, destination address, port number, protocol type, etc.) through the kernel layer, and determine the application to which the data packet belongs based on the attributes of the data packet, thereby determining whether the data packet comes from the first application.

[0088] It should be noted that when the application data packets arrive at the terminal in the form of data streams, the kernel's network stack will process these data packets, including decapsulation, routing, etc. The kernel is also responsible for passing the data packets to the corresponding application or process. Therefore, the kernel can obtain the application to which the application data belongs.

[0089] Specifically, the terminal can find the corresponding data stream through the characteristics of QUIC. Since each data stream is created through an interface (socket), the kernel can obtain the user ID (uid), protocol (protocol), source port and destination port corresponding to the socket. The application where the corresponding data stream is located can be obtained through uid, and whether the data stream uses TCP or UDP protocol can be obtained through protocol. And because the QUIC protocol is based on the evolution of HyperText Transfer Protocol (HTTP) 3.0, all data segments need to be encrypted, and UDP is used as the underlying carrier. Therefore, QUIC is sent through destination port 443, and the destination port can be obtained from the UDP header (Header). The UDP data stream with destination port 443 can be considered a QUIC data stream. In addition, according to the characteristics of the QUIC Header itself, the QUIC public packet Header structure, the QUIC Header part of the QUIC stream immediately following the UDP Header, in which the flag field (Public Flags) 8 bits and the CID 64 bits (bit) are unchanged, thereby further locating whether it is a QUIC data stream.

[0090] In some embodiments of the present application, the terminal can analyze data of the transport layer, network layer, etc. to obtain statistical information about the transmission quality of the data; or, the terminal can use a performance monitoring tool in the terminal to collect and analyze data in the network to obtain data transmission quality information.

[0091] It should be noted that in the related art, when using the QUIC protocol to transmit data, it is not controlled by the terminal, but by the application, and the application cannot obtain the network transmission quality. Therefore, the data transmission flexibility based on the QUIC protocol in the prior art is poor. The data transmission method provided in the embodiment of the present application increases the control of the terminal over the entire transmission process. Since the terminal can obtain the network transmission quality during the actual transmission process in real time, the transmission process can be controlled according to the real-time network transmission quality, that is, when the transmission quality is poor, the network slice is switched for data transmission, so that the entire transmission process can adapt to the changes in the actual network environment, thereby improving the transmission performance.

[0092] In some embodiments of the present application, before obtaining data from a first application and obtaining the transmission quality of the data, the terminal can obtain a second application of a subscribed network slice in the terminal through an application monitoring service, and determine the second application as the first application.

[0093] In some embodiments of the present application, the above-mentioned second application may be an application that sends a registration message to the network slice through a terminal to request to sign up for the network slice.

[0094] Exemplarily, the terminal can obtain a registration message through an application monitoring service, where the registration message is used to request registration of a network slice, and then obtain the APP that requests registration of the network slice based on the registration message, thereby obtaining a list of APPs that have signed up for the network slice.

[0095] It should be noted that when an APP signs a contract for a network slice, it needs to send a registration message through the application monitoring service. The application monitoring service obtains the identifier (uid) of the APP that has signed a contract for the network slice based on the registration message, thereby obtaining a list of APPs that have signed a contract for the network slice.

[0096] In some embodiments of the present application, the terminal may send the identifier of the first application to the kernel layer through a data monitoring service, for example, by synchronizing the kernel layer through Netlink. After acquiring the data, the kernel layer may match the identifier of the application corresponding to the data with the identifier of the first application to determine whether the application is the first application.

[0097] In some embodiments of the present application, the terminal can update the APP list of the contracted network slice when there is application deletion, application termination of the network slice, application installation, and application contracted network slice.

[0098] In some embodiments of the present application, the process of establishing the first network slice in the above step 201 may include the following steps 201a:

[0099] Step 201a: The terminal establishes a first network slice corresponding to the business demand information based on the business demand information of the data through the slice management service.

[0100] In some embodiments of the present application, the service demand information of the data may include at least one of the following: bandwidth, delay, packet loss rate, reliability, and throughput, etc.

[0101] It should be noted that the above-mentioned business demand information may be quality of service (QoS), and the above-mentioned business demand information may also be other parameters and indicators, such as QoS Class Identifier (QCI), allocation and retention priority (ARP), guaranteed bit rate (GBR), maximum bit rate (MBR), etc., which is not limited to the embodiments of the present application.

[0102] In some embodiments of the present application, the terminal can obtain business demand information of the data through the slice management service, and then determine the architecture of the logical network based on the above business demand information, including determining the network functions, protocol stacks and key performance indicators, and then configure the necessary network functions and resources for the determined logical network, thereby establishing a network slice corresponding to the business needs.

[0103] In an embodiment of the present application, the terminal can establish corresponding network slices according to the business requirements of the application data, so that the network slices can be customized according to the actual business needs, and better network resource configuration can be provided for different business scenarios, thereby meeting the customized needs of the business.

[0104] In some embodiments of the present application, after the above step 201, the data transmission method provided by the embodiment of the present application may further include the following step 205:

[0105] Step 205: The terminal establishes a packet data network (PDN) connection between the modem and the first network slice.

[0106] In combination with the above step 205, the above step 202 can be specifically implemented through the following step 202a.

[0107] Step 202a: When the duration of satisfying the first condition is greater than or equal to the first duration, the terminal establishes a connection between the application layer framework of the terminal and the modem of the terminal.

[0108] In some embodiments of the present application, after establishing the first network slice, the terminal can establish a PDN connection between the modem and the first network slice.

[0109] In some embodiments of the present application, the terminal may send a connection request to the first network slice, where the connection request is used to request to establish a PDN connection with the first network slice. After receiving the connection request, the first network slice performs corresponding authentication and authorization processes to verify the legitimacy and authority of the terminal, and after the verification is passed, allocates the required network resources and establishes a PDN connection with the terminal.

[0110] It should be noted that the PDN connection provides a reliable data transmission channel for the terminal, allowing the terminal to communicate with the network side device, and the PDN connection can adapt to different rates and types of data transmission requirements, thereby supporting a variety of services and applications.

[0111] Exemplarily, in combination with the above example, when the data transmission quality of the APP is poor, the terminal requests the modem to establish a network slice through the slice management service, such as Figure 3 As shown, after the network slice is established, a connection request is sent to the network slice. After the network slice receives the connection request of the terminal, a PDN connection is established between the terminal and the modem. The terminal can maintain the PDN connection. Then, after monitoring that the data transmission quality of the APP is poor for a certain period of time, the terminal establishes a connection between the application layer framework and the modem, thereby establishing a complete connection between the terminal and the network slice.

[0112] It should be noted that Figure 3 The dotted line in the figure indicates that no connection has been established between the application layer framework and the modem.

[0113] It should be noted that the strategy adopted in the embodiment of the present application is that the App does not actively pull up the network slice, but the slice management service monitors the notification of the service based on the data. For example, when it is found that the overall network quality is good, but the network quality of a single slice contracted application is not good, the slice management server is used to request the modem to establish a network slice and maintain a slice PDN connection for waiting.

[0114] In an embodiment of the present application, when the network quality of the slice-signed application is poor, the terminal can request the modem to establish a network slice through the slice management server, and maintain a slice connection for waiting, and then establish a connection between the Framework and the Modem when the network quality of the application continues to be poor. In this way, since the network slice exists at the bottom layer, it is possible to quickly establish a connection with the network slice, and at the same time prevent the Framework's application from misusing the network slice. When this abnormal state persists for a period of time, such as 10 seconds, the link from the Framework to the Modem is truly established at this time. By pre-establishing the network slice and maintaining the PDN connection with the network slice, it is possible to quickly switch to the network slice during subsequent network switching, thereby achieving seamless switching.

[0115] In some embodiments of the present application, the terminal can establish a connection between the application layer framework of the terminal and the modem of the terminal through the slice management service.

[0116] It should be noted that when the terminal establishes a connection between the application layer framework and the terminal's modem, a PDN connection already exists between the terminal's modem and the first network slice.

[0117] In an embodiment of the present application, after the terminal establishes the first slice network, it can first establish a connection between the first network slice and the modem, and then, when it is necessary to switch to the first slice network for data transmission, establish a connection between the application layer framework and the modem, thereby establishing a complete connection between the terminal and the first network slice.

[0118] For example, Figure 4 As shown, when a PDN connection exists between the modem and the network slice, the terminal establishes a connection between the application layer framework and the modem to establish a connection between the terminal and the network slice.

[0119] In some embodiments of the present application, after establishing a connection with the first network slice, the terminal switches from the first network to the first network slice, and transmits data of the first application through the first network slice. Specifically, when performing network switching, the terminal can first establish a connection between the application layer framework and the modem, and then switch to the network port of the first network slice through policy routing to complete the network switching.

[0120] It should be noted that since the data stream service monitors the APP that has signed the network slice and can identify the data stream of the APP, and since the QUIC stream of the application can be seamlessly switched, it can be directly switched to the current slice through policy routing, so that the user will not be aware of it, and the APP will not feel that the socket is disconnected. This switching is a seamless switching without perception. Due to the advantages of QUIC, there is no limitation of the quadruple, but communication is carried out through the connection ID, so seamless switching can be performed on multiple networks.

[0121] It should be noted that the connection ID refers to the ID of the connection between the terminal and the network, which can be a normal cellular network or the first network slice.

[0122] like Figure 5As shown, the connection between the terminal and the cellular network (i.e., the first network) is identified as Connection IDA. When the terminal needs to switch from the cellular network to the 5G network slice (i.e., the first network slice), since the system is preloaded with the 5G network slice, the switching time is further reduced. Moreover, when switching is required, the terminal has already identified the corresponding QUIC data stream, and the kernel performs marking (Mark) processing on the socket corresponding to the QUIC data stream. If it is marked with 0xffcc, a policy route with mark 0xffcc is added to point to the network port of the network slice. Since the policy routing changes, the route of the QUIC data stream changes, the source address changes, and it is sent to the corresponding server address through the source address of the network port of the network slice. Due to the characteristics of the QUIC protocol, the connection ID (Connection ID) between the terminal and the network slice remains unchanged. At this time, there is no need for the application to disconnect the socket and re-establish it, thereby achieving a seamless connection.

[0123] It should be noted that in the QUIC protocol, Connection ID is an identifier used to uniquely identify a connection. It is an important component of the QUIC protocol and is used to establish and maintain connections between different endpoints in the network. The QUIC protocol manages connections through Connection IDs instead of the traditional four-tuple method (source IP address, source port number, destination IP address, destination port number). By using Connection IDs to identify connections, network connections can be handled more flexibly. When the network environment changes, such as changes in the IP address or port number, as long as the Connection ID remains unchanged, the connection can continue to be maintained, thereby achieving a seamless communication experience when the network switches.

[0124] Exemplarily, in combination with the above example, taking the first application as APP1, the terminal can establish a 5G network slice when the transmission quality of APP1 data is poor, and establish a PDN connection between the 5G network slice and the terminal's modem, and then establish a connection between the terminal's modem and the Framework when the transmission quality is detected to be continuously poor for 10 seconds, and switch to the network port of the 5G network slice through policy routing.

[0125] It should be noted that the prior art is that after the network slice is established, a connection between the modem and the network slice and a connection between the application layer framework and the modem are established, that is, a complete connection between the terminal and the network slice is established. In the embodiment of the present application, the process of establishing a connection with the network slice includes two stages. The first stage is that after the network slice is established, a PDN connection between the modem and the network slice is first established. Then, when the first condition is continuously met, that is, when network slicing is required, a connection between the application layer framework and the modem of the terminal is established, that is, a complete connection between the terminal and the network slice is truly established. Since the network slice has been preloaded and the connection between the network slice and the modem of the terminal has been established when network switching is required, there is no need to execute the establishment of the network slice and the establishment of the PDN connection during switching. Instead, the connection between the application layer framework and the modem can be quickly established, and the network slice can be quickly switched to through policy routing, thereby reducing the delay of network switching and realizing seamless network switching.

[0126] In some embodiments of the present application, after the above step 202, the data transmission method provided in the embodiment of the present application may include the following steps 207 and 208:

[0127] Step 207: The terminal obtains the transmission quality of the data.

[0128] Step 208: The terminal sends the quality information to the first application.

[0129] The quality information represents the transmission quality of the data, and the quality information is used by the first application to select a transmission protocol or adjust transmission parameters.

[0130] In some embodiments of the present application, the terminal may obtain transmission quality information of data of the first application through the kernel layer.

[0131] In some embodiments of the present application, the terminal may send the transmission quality information to the first application through a data flow management service.

[0132] In some embodiments of the present application, the above-mentioned transmission quality information includes but is not limited to at least one of the following: delay, packet loss rate, bandwidth, rate, bit error rate, jitter and reliability, etc.

[0133] It should be noted that bandwidth determines the capacity and speed of data transmission, while rate reflects the amount of data transmitted per unit time. Bit error rate measures the proportion of errors in the data transmission process, while jitter reflects the uncertainty of delay changes. Reliability focuses on the accuracy and completeness of data transmission.

[0134] For example, taking the first application as APP1, after the data flow of APP1 reaches the kernel layer of the terminal, the terminal counts the communication quality information of the data flow of APP1 through the kernel layer, and then, Figure 5 As shown, the terminal reports the communication quality information to APP1 through the data flow management service, and APP1 can select a transmission protocol or adjust transmission parameters according to the communication quality information.

[0135] In some embodiments of the present application, the first application may perform at least one of transmission protocol selection and transmission parameter adjustment according to the transmission quality information sent by the terminal.

[0136] In some embodiments of the present application, the transmission parameters include but are not limited to at least one of the following: transmission rate, data packet size, transmission timeout, flow control parameters, etc. Exemplarily, the flow control parameters may include: initialia_max_stream_data_bidi_local, initial_max_stream_data_bidi_remote, initial_max_stream_data_uni, etc.

[0137] It should be noted that initial_max_stream_data_bidi_local indicates the maximum amount of data that a local endpoint (such as a terminal) can send; initial_max_stream_data_bidi_remote indicates the maximum amount of data that a remote endpoint (such as a network device) can send in a bidirectional stream; initial_max_stream_data_uni indicates the maximum amount of data that a terminal can send in a unidirectional stream.

[0138] It should be noted that since the terminal can more accurately count the communication quality of the current data flow in the kernel, the data flow management service will report the information about the communication quality through the kernel to the application. The reason for this is that the QUIC protocol uses UDP transmission, and there is no congestion control and flow control in the kernel. The congestion control and flow control of QUIC are implemented in the application network library, so the system needs to update the status of some networks to the application to assist the application to adjust its own parameters. The QUIC protocol currently uses the Cubic congestion control algorithm of the TCP protocol by default, and also supports congestion control algorithms such as CubicBytes, Reno, RenoBytes, Bottleneck Bandwidth and Round-trip propagation time (BBR) algorithm, and Proportional Fair Congestion Control (PCC) algorithm. For example, for the QUIC congestion control algorithm, the default is also adopted, and these algorithms are plug-and-play. In addition, if it is for QUIC download, you can update the traffic initia_max_stream_data_bidi_local, initial_max_stream_data_bidi_remote, and initial_max_stream_data_uni control parameters in QUIC to the other end. Since the system has a data stream monitoring service, it can monitor the application and the overall network transmission quality, and can distinguish the transmission quality of the application TCP and QUIC. This information can be fed back to the APP, and the APP can select the TCP or QUIC protocol and adjust the parameters.

[0139] In an embodiment of the present application, the terminal can obtain the transmission quality of the QUIC data stream of the application through the kernel, and report the transmission quality to the application, so that the application can select the transmission protocol or adjust the transmission parameters according to the transmission quality, thereby making network resource utilization more reasonable.

[0140] In some embodiments of the present application, when the transmission quality represented by the quality information satisfies the first condition, the quality information is used for the first application to select the QUIC protocol, or for the first application to perform any of the following transmission parameter adjustments:

[0141] Reduce the transmission rate;

[0142] Reduce the size of transmitted packets;

[0143] Increase the transmission timeout;

[0144] Reduce the value of the flow control parameter;

[0145] In some embodiments of the present application, the first condition includes at least one of the following:

[0146] The packet loss rate is greater than or equal to a first threshold;

[0147] The transmission delay is greater than or equal to a second threshold;

[0148] The transmission rate is less than a third threshold.

[0149] Exemplarily, when the transmission quality meets the first condition, the first application may use the QUIC protocol for data transmission; alternatively, when the transmission quality does not meet the first condition, the first application may use TCP for data transmission.

[0150] It should be noted that since the QUIC protocol uses a lighter header and payload encryption compression mechanism, the size of the data packet and the transmission delay are reduced. Therefore, in a network environment with limited bandwidth or high latency, the QUIC protocol can more effectively utilize network resources and improve data transmission efficiency. TCP has wide support and compatibility. Through its congestion control mechanism and reliability guarantee, it ensures stable and reliable data transmission when the network conditions are good. Therefore, in an environment with good network conditions, TCP can be selected for data transmission.

[0151] Exemplarily, when the transmission quality meets the first condition, the first application can adopt at least one of the following processing strategies: lowering the transmission rate, reducing the size of the transmitted data packet, increasing the transmission timeout, and reducing the value of the flow control parameter to ensure the stability of data transmission.

[0152] In an embodiment of the present application, when the network environment is poor, the transmission rate can be appropriately lowered to reduce the probability of packet loss and ensure the stability of data transmission; or, the size of the transmitted data packet can be reduced to reduce the risk of data packet loss; or, the transmission timeout period can be increased to reduce the number of unnecessary retransmissions.

[0153] It should be noted that when the network condition is poor, larger data packets are more likely to fail or be lost due to network congestion, jitter or high latency. Since smaller data packets are more likely to be successfully transmitted when the network is unstable, the risk of packet loss can be reduced by reducing the size of the data packet. Also, when the network latency is high, if the timeout is set too short, the data packet may be mistakenly considered lost due to a slight delay, thereby triggering a retransmission mechanism. By increasing the timeout, data packets can be allowed to be considered valid within a wider delay range, thereby reducing the need for retransmission and improving transmission efficiency.

[0154] In an embodiment of the present application, when the network condition is poor, by reducing the value of the flow control parameter, that is, by limiting the amount of data sent, it is possible to more effectively utilize limited network resources and improve the efficiency of data transmission.

[0155] The above-mentioned method embodiments, or various possible implementation methods in each method embodiment, can be executed separately, or, under the premise that there is no contradiction, can also be executed in combination with each other. The specific implementation can be determined according to actual usage requirements, and the embodiments of the present application do not limit this.

[0156] The data transmission method provided in the embodiment of the present application can be executed by a data transmission device. In the embodiment of the present application, the data transmission method executed by a data transmission device is taken as an example to illustrate the data transmission device provided in the embodiment of the present application.

[0157] Figure 6 A schematic diagram of the structure of a data transmission device provided in an embodiment of the present application is shown in FIG. Figure 6 As shown, the data transmission device 600 may include: a processing module 601, wherein the processing module 601 is used to: when the terminal transmits data of a first application through a first network, if the transmission quality of the data meets a first condition, establish a first network slice, and the data is data transmitted based on the QUIC protocol; when the duration of meeting the first condition is greater than or equal to the first duration, establish a connection between the terminal and the first network slice, and transmit data through the first network slice.

[0158] In some embodiments of the present application, the above-mentioned transmission quality includes at least one of the following: packet loss rate, delay, and transmission rate;

[0159] The first condition includes at least one of the following:

[0160] The packet loss rate of the data is greater than or equal to a first threshold;

[0161] The delay of the data is greater than or equal to a second threshold;

[0162] The data transmission rate is less than a third threshold.

[0163] In some embodiments of the present application, the above-mentioned first application is an application of a subscribed network slice in the terminal; the device also includes: an acquisition module, which is used to obtain data of the first application and obtain the transmission quality of the data before establishing the first network slice.

[0164] In some embodiments of the present application, the above-mentioned processing module is also used to establish a PDN connection between the modem and the first network slice after the first network slice is established; the above-mentioned processing module is specifically used to establish a connection between the application layer framework of the terminal and the modem of the terminal when the duration of satisfying the first condition is greater than or equal to the first duration.

[0165] In some embodiments of the present application, the above-mentioned device also includes: an acquisition module and an execution module; wherein the acquisition module is used to obtain the transmission quality of the data after switching from the first network to the first network slice to transmit the data; the execution module is used to send quality information to the first application, the quality information characterizes the transmission quality of the data, and the quality information is used by the first application to select a transmission protocol or adjust transmission parameters.

[0166] In some embodiments of the present application, when the transmission quality represented by the quality information satisfies the first condition, the quality information is used for the first application to select the QUIC protocol, or for the first application to perform any of the following transmission parameter adjustments:

[0167] Reduce the transmission rate;

[0168] Reduce the size of transmitted packets;

[0169] Increase the transmission timeout;

[0170] Reduce the value of the flow control parameter;

[0171] The first condition includes at least one of the following:

[0172] The packet loss rate is greater than or equal to a first threshold;

[0173] The transmission delay is greater than or equal to a second threshold;

[0174] The transmission rate is less than a third threshold.

[0175] In some embodiments of the present application, the above-mentioned processing module is also used to release the first network slice after the first network slice is established if the duration of satisfying the first condition is less than the first duration.

[0176] The data transmission device provided in the embodiment of the present application, when a terminal transmits data of a first application through a first network, if the transmission quality of the data meets a first condition, a first network slice is established, and the data is data transmitted based on the QUCI protocol. When the duration of satisfying the first condition is greater than or equal to the first duration, a connection between the terminal and the first network slice is established, and data is transmitted through the first network slice. Through this method, when the data transmission device transmits application data based on the QUIC protocol, a network slice can be established when the transmission quality of the data meets the condition, and when the condition is met for a certain period of time, a connection with the network slice is established and the network slice is switched to transmit the application data. In this way, for applications that use the QUIC protocol for communication, the data transmission device can pre-establish a usable network slice based on the actual transmission situation of the data, and switch to the network slice for data transmission at an appropriate time, so that the data transmission process can adapt to changes in the network environment, thereby improving data transmission performance.

[0177] The data transmission device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or it can be other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0178] The data transmission device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0179] The data transmission device provided in the embodiment of the present application can achieve Figures 1 to 5 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0180] Alternatively, if Figure 7 As shown, an embodiment of the present application also provides an electronic device 700, including a processor 701 and a memory 702, wherein the memory 702 stores programs or instructions that can be executed on the processor 701, and when the program or instructions are executed by the processor 701, the various steps of the above-mentioned data transmission method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not repeated here.

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

[0182] Figure 8 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0183] The electronic device 100 includes but is not limited to components such as a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.

[0184] Those skilled in the art will appreciate that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 8 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0185] Among them, the processor 110 is used to: when transmitting data of a first application through a first network, if the transmission quality of the data meets a first condition, establish a first network slice, and the data is data transmitted based on the Fast User Datagram Protocol network connection QUIC protocol; when the duration of meeting the first condition is greater than or equal to the first duration, establish a connection between the electronic device and the first network slice, and transmit data through the first network slice.

[0186] In some embodiments of the present application, the above-mentioned transmission quality includes at least one of the following: packet loss rate, delay, and transmission rate;

[0187] The first condition includes at least one of the following:

[0188] The packet loss rate of the data is greater than or equal to a first threshold;

[0189] The delay of the data is greater than or equal to a second threshold;

[0190] The data transmission rate is less than a third threshold.

[0191] In some embodiments of the present application, the first application is an application of a contracted network slice in an electronic device; the processor 110 is further used to obtain the data of the first application and determine the transmission quality of the data before establishing the first network slice.

[0192] In some embodiments of the present application, the above-mentioned processing module is also used to establish a PDN connection between the modem and the first network slice after the first network slice is established; the above-mentioned processing module is specifically used to establish a connection between the application layer framework of the terminal and the modem of the terminal when the duration of satisfying the first condition is greater than or equal to the first duration.

[0193] In some embodiments of the present application, the above-mentioned processor 110 is also used to obtain the transmission quality of the data after switching from the first network to the first network slice to transmit the data; send quality information to the first application, the quality information characterizes the transmission quality of the data, and the quality information is used by the first application to select a transmission protocol or adjust transmission parameters.

[0194] In some embodiments of the present application, when the transmission quality represented by the quality information satisfies the first condition, the quality information is used for the first application to select the QUIC protocol, or for the first application to perform any of the following transmission parameter adjustments:

[0195] Reduce the transmission rate;

[0196] Reduce the size of transmitted packets;

[0197] Increase the transmission timeout;

[0198] Reduce the value of the flow control parameter;

[0199] The first condition includes at least one of the following:

[0200] The packet loss rate is greater than or equal to a first threshold;

[0201] The transmission delay is greater than or equal to a second threshold;

[0202] The transmission rate is less than a third threshold.

[0203] In some embodiments of the present application, the processor 110 is further used to release the first network slice after establishing the first network slice if the duration for which the first condition is satisfied is less than the first duration.

[0204] The electronic device provided in the embodiment of the present application, when the electronic device transmits the data of the first application through the first network, if the transmission quality of the data meets the first condition, a first network slice is established, and the data is data transmitted based on the QUCI protocol. When the duration of satisfying the first condition is greater than or equal to the first duration, a connection between the electronic device and the first network slice is established, and data is transmitted through the first network slice. Through this method, when the data transmission device transmits application data based on the QUIC protocol, it can establish a network slice when the transmission quality of the data meets the condition, and when the condition is met for a certain period of time, establish a connection with the network slice and switch to the network slice to transmit the application data. In this way, for applications that use the QUIC protocol for communication, the data transmission device can pre-establish a usable network slice based on the actual transmission situation of the data, and switch to the network slices for data transmission at an appropriate time, so that the data transmission process can adapt to changes in the network environment, thereby improving data transmission performance.

[0205] It should be understood that in the embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 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 a joystick, which will not be repeated here.

[0206] The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 109 may include a volatile memory or a non-volatile memory, or the memory 109 may include both volatile and non-volatile memories. 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 (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0207] The processor 110 may include one or more processing units; optionally, the processor 110 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 110.

[0208] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned data transmission method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0209] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0210] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned data transmission method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0211] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0212] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned data transmission method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0213] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes 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 one..." do not exclude the presence of other identical elements in the process, method, article or device including the 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, and may also include performing functions in a substantially simultaneous manner or in 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 also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

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

[0215] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A data transmission method, characterized in that: The method comprises: In the case where the terminal transmits data of a first application through a first network, if the transmission quality of the data meets a first condition, a first network slice is established, where the data is data transmitted based on a fast user datagram protocol network connection QUIC protocol; When the duration of satisfying the first condition is greater than or equal to the first duration, a connection between the terminal and the first network slice is established, and the data is transmitted through the first network slice.

2. The method according to claim 1, characterized in that: The transmission quality includes at least one of the following: packet loss rate, delay, and transmission rate; The first condition includes at least one of the following: The packet loss rate is greater than or equal to a first threshold; The transmission delay is greater than or equal to a second threshold; The transmission rate is less than a third threshold.

3. The method according to claim 1 or 2, characterized in that: The first application is an application of the network slice subscribed in the terminal; before establishing the first network slice, the method further includes: The data of the first application is obtained, and transmission quality of the data is obtained.

4. The method according to claim 1, characterized in that: After establishing the first network slice, the method further includes: Establishing a packet data network (PDN) connection between the modem and the first network slice; The establishing a connection between the terminal and the first network slice when the duration for which the first condition is satisfied is greater than or equal to a first duration includes: In a case where the duration of satisfying the first condition is greater than or equal to the first duration, a connection is established between the application layer framework of the terminal and the modem of the terminal.

5. The method according to claim 1, characterized in that After switching from the first network to the first network slice to transmit the data, the method further includes: Acquiring transmission quality of the data; Quality information is sent to the first application, where the quality information represents the transmission quality of the data, and the quality information is used by the first application to select a transmission protocol or adjust a transmission parameter.

6. The method according to claim 5, characterized in that When the transmission quality represented by the quality information satisfies the first condition, the quality information is used by the first application to select the QUIC protocol, or is used by the first application to adjust any of the following transmission parameters: Reduce the transmission rate; Reduce the size of transmitted packets; Increase the transmission timeout; Reduce the value of the flow control parameter; The first condition includes at least one of the following: The packet loss rate is greater than or equal to a first threshold; The transmission delay is greater than or equal to a second threshold; The transmission rate is less than a third threshold.

7. The method according to claim 1, characterized in that After establishing the first network slice, the method further includes: When the duration for which the first condition is met is less than the first duration, the first network slice is released.

8. A data transmission device, characterized in that: The transmission device comprises: a processing module, wherein the processing module is used to: In the case where the terminal transmits data of the first application through the first network, if the transmission quality of the data meets the first condition, a first network slice is established, and the data is data transmitted based on the QUIC protocol; When the duration of satisfying the first condition is greater than or equal to the first duration, a connection between the terminal and the first network slice is established, and the data is transmitted through the first network slice.

9. The device according to claim 8, characterized in that The transmission quality includes at least one of the following: packet loss rate, delay, and transmission rate; The first condition includes at least one of the following: The packet loss rate is greater than or equal to a first threshold; The transmission delay is greater than or equal to a second threshold; The transmission rate is less than a third threshold.

10. The device according to claim 8 or 9, characterized in that The first application is an application of the subscribed network slice in the terminal; the device also includes: an acquisition module, which is used to obtain the data of the first application and the transmission quality of the data before establishing the first network slice.

11. The device according to claim 8, characterized in that The processing module is further configured to establish a packet data network (PDN) connection between the modem and the first network slice after establishing the first network slice; The processing module is specifically configured to establish a connection between the application layer framework of the terminal and the modem of the terminal when the duration of satisfying the first condition is greater than or equal to a first duration.

12. The device according to claim 8, characterized in that The device further comprises: an acquisition module and an execution module, wherein; The acquisition module is used to obtain the transmission quality of the data after switching from the first network to the first network slice to transmit the data; The execution module is used to send quality information to the first application, where the quality information represents the transmission quality of the data, and the quality information is used by the first application to select a transmission protocol or adjust transmission parameters.

13. The device according to claim 12, characterized in that When the transmission quality represented by the quality information satisfies the first condition, the quality information is used by the first application to select the QUIC protocol, or is used by the first application to adjust any of the following transmission parameters: Reduce the transmission rate; Reduce the size of transmitted packets; Increase the transmission timeout; Reduce the value of the flow control parameter; The first condition includes at least one of the following: The packet loss rate is greater than or equal to a first threshold; The transmission delay is greater than or equal to a second threshold; The transmission rate is less than a third threshold.

14. The device according to claim 8, characterized in that The processing module is also used to release the first network slice after establishing the first network slice if the duration for which the first condition is met is less than the first duration.

15. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the data transmission method according to any one of claims 1 to 7 are implemented.

16. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the data transmission method according to any one of claims 1 to 7 are implemented.