Data transmission method, nonvolatile storage medium and computer equipment

By receiving the target data packet in the data plane of the 5G system and determining its service type, obtaining the scheduler's scheduling capability and the remaining transmission time of the data packet, the problem of inability to forward data packets reasonably is solved, and reducing data backlog and improving resources are achieved. Effect of utilization.

CN119449735APending Publication Date: 2025-02-14PURPLE MOUNTAIN LAB

Patent Information

Application Number
CN202411659583.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-19
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

In the data plane of the 5G system, the remaining transmission time of the data packet cannot be sensed, resulting in the inability to reasonably forward data packets according to the urgency, increase the working pressure of other network elements in the system to control delay and jitter, and the system's scheduling capabilities cannot be sensed in real time. This leads to data backlog and waste of system resources.

Method used

By receiving the target data packet, determine its service type, and if it is a time-sensitive network type, obtain the scheduler's scheduling capability and the remaining transmission time of the data packet. If the remaining transmission time is less than the preset threshold, the data packet is added to the first transmission queue, and the data packet is transmitted based on the preset channel according to the scheduling capability.

Benefits of technology

Reasonable data transmission is realized based on the remaining transmission time of the data packet and the scheduler's scheduling ability, reducing data backlog, improving the utilization rate of transmission resources, and solving the problem of waste of system resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119449735A_ABST
    Figure CN119449735A_ABST
Patent Text Reader

Abstract

The invention discloses a data transmission method, a nonvolatile storage medium and computer equipment. The method comprises the following steps: receiving a target data packet; determining a service type of the target data packet; under the condition that the service type of the target data packet is the time-sensitive network type, acquiring the scheduling capability of a scheduler and the residual transmission time of the target data packet; under the condition that the residual transmission time is smaller than a preset threshold value, adding the target data packet into a first transmission queue; and transmitting the data packet in the first transmission queue based on the first preset channel according to the scheduling capability. The invention solves the problems that the remaining transmission time of data cannot be perceived during data packet transmission at present, and the data packet is reasonably forwarded according to the emergency degree of the data packet, so that the working pressure of other network elements for controlling time delay and jitter in the system is increased, and the scheduling capability of the system cannot be perceived in real time; and the technical problem of system resource waste caused by data backlog in a scheduler is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a data transmission method, a non-volatile storage medium and a computer device. Background Art

[0002] The data plane of the 5G system usually adopts a first-come, first-served forwarding strategy when transmitting downlink data. When TSN services and ordinary services exist in the system at the same time, the priority transmission of TSN data cannot be guaranteed, resulting in transmission timeout of TSN services. At the same time, the data plane cannot perceive the remaining transmission time of TSN data, and forwards it reasonably according to the urgency of the data packet, which increases the working pressure of other network elements in the system to control delay and jitter. In addition, because the data plane cannot perceive the scheduling capability of the system in real time, it is easy to cause data backlog in the scheduler or waste of system resources.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] The embodiments of the present invention provide a data transmission method, a non-volatile storage medium and a computer device to at least solve the technical problem that the remaining transmission time of data cannot be perceived when transmitting data packets, and the data packets are reasonably forwarded according to their urgency, which increases the working pressure of other network elements in the system to control delay and jitter, and cannot perceive the scheduling capability of the system in real time, which easily causes data backlog in the scheduler and wastes system resources.

[0005] According to one aspect of an embodiment of the present invention, a data transmission method is provided, including: receiving a target data packet; determining a service type of the target data packet; when the service type of the target data packet is a time-sensitive network type, obtaining a scheduling capability of a scheduler and a remaining transmission time of the target data packet; when the remaining transmission time is less than a preset threshold, adding the target data packet to a first transmission queue, wherein the data packets in the first transmission queue are of a time-sensitive network type; and transmitting the data packets in the first transmission queue based on a first preset channel according to the scheduling capability.

[0006] Optionally, determining the service type of the target data packet includes: obtaining a source IP address and a port number of the target data packet; and determining the service type of the target data packet based on the source IP address and the port number.

[0007] Optionally, obtaining the scheduling capability of the scheduler includes: obtaining the historical scheduling status and scheduling feedback results corresponding to the scheduler; determining the number of data packets that the scheduler can transmit within a preset time period based on the historical scheduling status; and determining the scheduling capability based on the number of data packets that the scheduler can transmit within the preset time period and the scheduling feedback results.

[0008] Optionally, obtaining the remaining transmission time of the target data packet includes: obtaining the expected arrival time of the target data packet and the channel status of a preset channel; determining multiple predicted delays corresponding to the target data packet based on the channel status and scheduling capability, wherein the multiple predicted delays include air interface transmission delay, waiting scheduling delay and device processing delay; determining the remaining transmission time based on the multiple predicted delays corresponding to the target data packet and the expected arrival time.

[0009] Optionally, when the remaining transmission time is less than a preset threshold, the target data packet is added to the first transmission queue, including: obtaining the remaining transmission time corresponding to each data packet in the first transmission queue; based on the remaining transmission time corresponding to the target data packet and the remaining transmission time corresponding to each data packet in the first transmission queue, sorting in ascending order of the remaining transmission time, and adding the target data packet to the first transmission queue.

[0010] Optionally, the method further includes: storing the target data packet in a cache when the remaining transmission time is not less than a preset threshold.

[0011] Optionally, according to the scheduling capability, based on the first preset channel, the data packets in the first transmission queue are transmitted, including: when the scheduling capability does not meet the number of data packets in the first transmission queue, based on the order of the remaining transmission time corresponding to the data packets in the first transmission queue, the data packets in the first transmission queue are sent in ascending order of the remaining transmission time through the first preset channel, and the first transmission queue is updated.

[0012] Optionally, according to the scheduling capability and based on the first preset channel, the data packets in the first transmission queue are transmitted, including: when the scheduling capability meets the number of data packets in the first transmission queue, all the data packets in the first transmission queue are transmitted through the first preset channel and the first transmission queue is cleared.

[0013] Optionally, when the target data packet is of a non-time-sensitive network type, the target data packet is added to a second transmission queue, wherein the data packets in the second transmission queue are of a non-time-sensitive network type; when the scheduling capacity satisfies the number of data packets in the first transmission queue, after all the data packets in the first transmission queue are transmitted, the data packets in the second transmission queue are transmitted based on a second preset channel.

[0014] According to another aspect of an embodiment of the present invention, a non-volatile storage medium is provided, the non-volatile storage medium including a stored program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute any one of the above-mentioned data transmission methods.

[0015] According to yet another aspect of an embodiment of the present invention, a computer device is provided. The computer device includes a processor, and the processor is used to run a program. When the program is run, any one of the above data transmission methods is executed.

[0016] According to yet another aspect of an embodiment of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, any one of the above-mentioned data transmission methods is implemented.

[0017] In an embodiment of the present invention, a data transmission method is adopted, by receiving a target data packet; determining the service type of the target data packet; when the service type of the target data packet is a time-sensitive network type, obtaining the scheduling capability of the scheduler and the remaining transmission time of the target data packet; when the remaining transmission time is less than a preset threshold, adding the target data packet to a first transmission queue, wherein the data packets in the first transmission queue are of a time-sensitive network type; according to the scheduling capability, based on a first preset channel, transmitting the data packets in the first transmission queue, achieving the purpose of data transmission based on the remaining transmission time of the data packet and the scheduling capability of the scheduler, thereby achieving the technical effect of reducing data backlog and improving the utilization rate of transmission resources, and further solving the current problem that the remaining transmission time of the data cannot be perceived when transmitting the data packet, and the data packet is reasonably forwarded according to its urgency, resulting in increased working pressure on other network elements in the system to control delay and jitter and the inability to perceive the scheduling capability of the system in real time, which easily causes data backlog in the scheduler and leads to waste of system resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0019] Figure 1 A hardware structure block diagram of a computer terminal for implementing a data transmission method is shown;

[0020] Figure 2 is a flow chart of a data transmission method provided according to an embodiment of the present invention;

[0021] Figure 3 is a schematic diagram of a wireless protocol stack architecture of a data transmission method provided according to an optional embodiment of the present invention;

[0022] Figure 4 is a schematic diagram of a type differentiation flow chart of a data transmission method provided according to an optional embodiment of the present invention;

[0023] Figure 5is a schematic diagram of a logical architecture for determining remaining transmission time and scheduling capability of a data transmission method provided in an optional embodiment of the present invention;

[0024] Figure 6 is a schematic diagram of a data transmission process of a data transmission method provided according to an optional embodiment of the present invention;

[0025] Figure 7 It is a schematic diagram of a system architecture for a deterministic wireless access network of a data transmission method provided according to an optional embodiment of the present invention. DETAILED DESCRIPTION

[0026] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0028] First, some nouns or terms that appear in the description of the embodiments of the present application are subject to the following interpretations:

[0029] TSN (Time-Sensitive Networking) is an Ethernet-based technology designed to provide deterministic and reliable network transmission for industrial automation, automotive, avionics and other real-time applications. TSN enhances the real-time communication capabilities of traditional Ethernet through a series of IEEE standards (such as 802.1AS, 802.1Qbv, 802.1Qcr, etc.), and can support the transmission of time-sensitive data such as audio, video and control data, ensuring that these data arrive at the destination within a specific time window, thereby meeting the requirements of low latency, low jitter and high reliability.

[0030] NW-TT (Network-side TSN Translator): Network-side TSN converter.

[0031] 3GPP (3rd Generation Partnership Project): Third Generation Partnership Project.

[0032] 5GC (5G Core Network): 5G core network.

[0033] UPF (User Plane Function): user plane function.

[0034] gNB (gNodeB): 5G base station.

[0035] UE (User Equipment): user terminal.

[0036] CPE (Customer Premise Equipment): Customer Premise Equipment.

[0037] BBU (Base Band Unit): baseband processing unit.

[0038] RRU (Remote Radio Unit): Remote Radio Unit.

[0039] QoS (Quality of Service): Quality of service.

[0040] SDAP (Service Data Adaptation Protocol): Service Data Adaptation Protocol.

[0041] PDCP (Packet Data Convergence Protocol): Packet Data Convergence Protocol.

[0042] RLC (Radio Link Control): Radio link control.

[0043] RRC (Radio Resource Control): Radio resource control.

[0044] MAC (Medium Access Control): Medium Access Control.

[0045] DRB (Data Radio Bearer): wireless data bearer.

[0046] DS-TT (Device-side TSN Translator): Terminal-side TSN converter.

[0047] SA (Standalone): Independent networking.

[0048] CU (Centralized Unit): centralized unit.

[0049] DU (Distributed Unit): distributed unit.

[0050] GPS (Global Positioning System): Global Positioning System.

[0051] UDP (User Datagram Protocol): User Datagram Protocol.

[0052] According to an embodiment of the present invention, a method embodiment of a data transmission method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0053] The method embodiment provided in the first embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 FIG. 1 shows a hardware structure block diagram of a computer terminal for implementing a data transmission method. Figure 1 As shown, the computer terminal 10 may include one or more (102a, 102b, ..., 102n are used to illustrate) processors (the processor may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0054] It should be noted that the one or more processors and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10. As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

[0055] The memory 104 can be used to store software programs and modules of application software, such as program instructions / data storage devices corresponding to the data transmission method in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, realizing the data transmission method of the above-mentioned application program. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0056] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 .

[0057] Figure 2 is a flow chart of a data transmission method according to an embodiment of the present invention. Figure 2 As shown, the method comprises the following steps:

[0058] Figure 3 is a schematic diagram of a wireless protocol stack architecture of a data transmission method according to an optional embodiment of the present invention, such as Figure 3As shown in the figure, the architecture of a wireless protocol stack in a 5G NR network is presented, in which the 5G system adopts the networking mode of 5GC (core network) + 5G base station, which is SA networking. The 5G base station consists of two functional entities, CU and DU. CU is a centralized node, which is connected to the core network NGC through the NG interface in the uplink. It can control and coordinate multiple cells within the access network, including high-level control and data functions of the protocol stack. The main protocol layers involved include the RRC function of the control plane and the IP, SDAP, and PDCP sublayer functions of the user plane; DU is a distributed unit. In a broad sense, DU implements RF processing functions and baseband processing functions such as RLC, MAC, and physical layer; due to the separation of functions, the F1 interface between CU and DU is added on the 5G RAN side, and 3GPP has also standardized the definition and message interaction of this interface. Among them, the data packet will first be processed in the user plane function (UPF) of the core network (5GC), and the data type can be distinguished, which can be divided into TSN data and non-TSN data, and then mapped to different QoS flows according to different types of data. TSN data and non-TSN data will be allocated to different flows according to their characteristics. The data packet is transmitted from the 5GC to the central unit (CU) of the 5G base station through the NG interface (NextGeneration Interface). At the SDAP layer, the QoS flow is mapped to the corresponding DRB according to the service type. Then the data is received at the PDCP layer of the CU, and the header compression, decompression, encryption, decryption, etc. are performed, and the data is mapped to the correct channel according to the DRB (Data Radio Bearer). Among them, after the data is transmitted from the CU to the DU through the F1 interface, the data is received by the RLC layer of the DU, and segmentation, reassembly, and ARQ (automatic repeat request) processing are performed. Arriving at the MAC layer is responsible for scheduling, logical channel priority processing and HARQ (hybrid automatic repeat request), etc. The physical layer (PHY) is responsible for encoding, modulating, and processing the data and sending it on the air interface through the radio frequency unit (RRU). The data is transmitted from the base station to the UE after the air interface transmission delay (T_tx). The physical layer of the UE receives the signal and performs demodulation and decoding. The upper layer protocol stack repeats the data processing process similar to that of the base station, but in the opposite direction. Finally, the data reaches the application layer of the UE, completing the transmission of the downlink data.

[0059] Step S202, receiving a target data packet.

[0060] In this step, the target data packet may be a data packet to be forwarded. Figure 4 is a schematic diagram of a type differentiation flow chart of a data transmission method provided according to an optional embodiment of the present invention, such as Figure 4As shown in the figure, the service data, i.e., the target data packet, will be received at the NW-TT. The service data can be TSN data or non-TSN data. The main difference between TSN services and non-TSN services lies in the different requirements for the delay, jitter, and reliability of data transmission. TSN services are based on time-sensitive network technology. Such services have strict delay and jitter requirements for data transmission to ensure that data can reach the destination within the preset time and the transmission process is highly reliable. Non-TSN services do not have such strict requirements. They usually refer to traditional data services, and the control of specific transmission delay and jitter is not as demanding as TSN services.

[0061] Step S204: determine the service type of the target data packet.

[0062] In this step, because different service types have different requirements for data transmission, the service type of the target data packet is distinguished on the data plane to facilitate the subsequent corresponding data transmission strategy. Determining the service type, that is, distinguishing TSN data from non-TSN data, can be achieved by the following steps: First, establish end-to-end TSN bearers and other service bearers for each terminal (UE, CPE). This means that different transmission channels are created for TSN data and non-TSN data in the network, which is the physical basis for distinguishing the two. Then NW-TT (Network-side TSN translator) identifies TSN services and non-TSN services according to pre-configured strategies, such as the source IP address and port number of the service data. This identification mechanism is based on the source information of the service data and can accurately distinguish different types of service data. After identification, the core network maps TSN data and non-TSN data to different QoS flows. QoS flows are data flows used to provide different service quality levels in 5G networks. TSN data usually requires higher service quality, such as lower latency and higher reliability. On the base station data plane, the terminal's DRB is divided into carrying TSN services and non-TSN services. SDAP maps QoS flows of different service types to corresponding DRBs.

[0063] Specifically, Figure 4 As shown, the process of distinguishing TSN services from non-TSN services on the data plane is as follows:

[0064] Step 401: Establish end-to-end TSN bearers and other service bearers for each UE.

[0065] Step 402: NW-TT distinguishes TSN services from non-TSN services according to the configured policy (for example, based on the source IP address and port number of the received service data), and marks the downlink TSN data packet with "expected arrival time T_exp". The core network maps TSN data and non-TSN data to different QoS flows.

[0066] Step 403: In the base station data plane, the terminal includes DRBs for TSN services and DRBs for non-TSN services, each DRB corresponds to a PDCP entity, and SDAP maps QoS flows carrying different service types to corresponding DRBs.

[0067] Step 404: PDCP forwards the data in the DRB to the RLC entity.

[0068] Step 405: RLC maps the data to a logical channel according to the service type and notifies MAC.

[0069] Because TSN data and non-TSN data have different transmission requirements, determining the service type of the target data packet facilitates subsequent priority transmission of TSN data and avoids transmission timeout of TSN services.

[0070] As an optional embodiment, the service type of the target data packet can be determined based on the IP address and port number of the target data packet, which includes: obtaining the source IP address and port number of the target data packet; and determining the service type of the target data packet based on the source IP address and port number.

[0071] The service type is determined based on the source IP address and port number of the data packet because the IP address and port number can provide information about the source address and application layer protocol of the data packet, thereby helping network devices to determine the service type of the data packet.

[0072] A set of rules can be configured or predefined in NW-TT first, which associate different source IP addresses and port numbers with specific business types. For example, control data in a smart grid may come from a specific IP address range and use a specific port number for communication. This information can be used to identify TSN business data. When a data packet arrives at NW-TT, its source IP address and port number will be checked. This is usually done by the packet filtering or classification function of the network device, which can identify the type of data packet based on a five-tuple (source IP, destination IP, source port, destination port, protocol) or specific fields such as source IP and source port. Based on the inspection results, if the source IP address and port number of the data packet match the predefined TSN business rules, then this data packet will be marked as TSN business data. Otherwise, it will be regarded as non-TSN business data.

[0073] In the above steps, in downlink data transmission, PDCP can prioritize TSN services by classifying the services that carry data in different DRBs and distinguishing between TSN data and other data.

[0074] Step S206: When the service type of the target data packet is a time-sensitive network type, the scheduling capability of the scheduler and the remaining transmission time of the target data packet are obtained.

[0075] In this step, when the service type of the target data packet is a time-sensitive network type, that is, a TSN type, the scheduling capability of the scheduler and the remaining transmission time of the target data packet can be obtained, wherein the remaining transmission time can be determined based on the prediction of various delays in the transmission process of the TSN data packet and the expected arrival time, and the remaining transmission time refers to the time that the data packet is theoretically allowed to be transmitted in the network before it departs from the current network node and reaches its destination. In deterministic wireless access networks, especially in application scenarios involving time-sensitive networks (TSN), the remaining transmission time is a key parameter used to ensure that the data packet can meet its time constraints, that is, arrive at the destination within a specified time window. Among them, when the type of the data packet is identified, when it is detected that the data packet is of the TSN type, the downlink TSN data packet can be marked with "expected arrival time T_exp". In wireless communication networks, especially in the MAC (Medium Access Control) layer of base stations (such as 5G gNB), the scheduler is mainly used to manage and control the allocation of wireless resources to ensure that multiple users and services in the network can effectively share limited spectrum and time resources. The specific scheduler allocates wireless resources, such as frequency resource blocks and time slots, to different users or service flows according to the wireless environment (such as channel quality, interference, etc.) and user requirements (such as data rate, QoS requirements, etc.). Therefore, obtaining the scheduler's capabilities in advance can be used to determine the remaining transmission time of the target data packet and then perform reasonable scheduling to avoid data backlogs causing additional waiting scheduling delays. On the other hand, subsequent data packet transmission based on the scheduler's scheduling capabilities can ensure the reasonable use of transmission resources. Among them, the scheduling capability of the scheduler includes the amount of data that the scheduler can process, that is, the number of data packets or data volume that can be forwarded or processed per unit time, and also includes the wireless resources that the scheduler can allocate to each user or service in wireless communication, including frequency bands, time slots, and power. And the ability of the scheduler to ensure that the delay and jitter of data transmission are within a certain range. For TSN services, the scheduler needs to be able to ensure that the data packet is transmitted within the specified time to meet the requirements of low latency and low jitter. Therefore, the scheduling capability of the scheduler includes the amount of data waiting for scheduling in the logical channel corresponding to the terminal, the average amount of data sent, and the statistics of scheduling feedback results. This information helps the data forwarding module to make more reasonable forwarding decisions to ensure the deterministic transmission of TSN services and make rational use of system resources.

[0076] As an optional embodiment, obtaining the scheduling capability of the scheduler includes: obtaining the historical scheduling status and scheduling feedback results corresponding to the scheduler; determining the number of data packets that the scheduler can transmit within a preset time period based on the historical scheduling status; and determining the scheduling capability based on the number of data packets that can be transmitted within the preset time period and the scheduling feedback results.

[0077] Optionally, if you want to obtain the scheduling capability of the scheduler, you can determine it based on the historical scheduling situation and scheduling feedback results of the scheduler. You can determine the scheduling capability of the scheduler based on system configuration parameters such as time slot ratio, data forwarding cycle, power allocation, etc. combined with past data scheduling records.

[0078] Specifically, the data forwarding module of PDCP queries the scheduler for the scheduling capability of the system. The scheduler feeds back the scheduling capability of the system to the data forwarding module of PDCP. The scheduling capability includes the amount of data waiting for scheduling in the logical channel corresponding to each terminal, the average amount of data sent in n radio frames (10ms), and the statistics of scheduling feedback results, where n is related to the data forwarding period of PDCP. Then, the data forwarding module of PDCP calculates the TSN traffic volume D_tsn_wait_sch and non-TSN traffic volume D_nontsn_wait_sch waiting for scheduling in the current scheduler based on the amount of data waiting for scheduling in the logical channel corresponding to each terminal fed back by the scheduler; and calculates the average scheduling capability D_avg_sch of each radio frame of the system based on the statistics of the average amount of data sent and scheduling feedback results in n radio frames.

[0079] As an optional embodiment, obtaining the remaining transmission time of a target data packet includes: obtaining the expected arrival time of the target data packet and the channel status of a preset channel; determining multiple predicted delays corresponding to the target data packet based on the channel status and scheduling capability, wherein the multiple predicted delays include air interface transmission delay, waiting scheduling delay and device processing delay; determining the remaining transmission time based on the multiple predicted delays corresponding to the target data packet and the expected arrival time.

[0080] Optionally, the calculation of the remaining transmission time is based on the prediction of various delays in the TSN data packet transmission process and the expected arrival time. The channel state and scheduling capability of the preset channel can be obtained to predict various delays, such as air interface transmission delay, waiting scheduling delay, and device processing delay, where the device processing delay can be the processing delay of the base station and the terminal. Based on the expected arrival time and various delays, the remaining transmission time of the target data packet can be determined.

[0081] Specifically, the data forwarding module of PDCP can request time prediction information from the AI ​​model prediction module. The AI ​​model prediction module predicts the air interface transmission delay T_tx based on the channel state information and scheduling information provided by the scheduler; predicts the waiting scheduling delay T_wait_sch based on the scheduling capability and system time slot ratio fed back by the scheduler; and predicts the processing delays T_gnb_proc and T_ue_proc of the base station and the terminal. Based on the expected arrival time T_exp of the TSN data packet and the current system time T_now, the remaining transmission time of the TSN data packet T_remain = T_exp-T_now-T_tx-T_wait_sch-T_gnb_proc-T_ue_proc is calculated. According to the above method, the remaining transmission time of the TSN data packet of all terminals is calculated respectively.

[0082] Among them, predict air interface transmission delay (T_tx): This refers to the wireless transmission time of the data packet from the base station to the terminal. The AI ​​model predicts this delay based on the channel state information and scheduling information provided by the scheduler, including factors such as the status of the wireless channel, the size of the data packet, and the transmission rate. Predict waiting scheduling delay (T_wait_sch): This is the time the data packet waits to be scheduled in the scheduler, which depends on the system's scheduling capabilities and time slot allocation. The scheduler will feedback the current waiting queue length and average scheduling time, and the AI ​​model predicts the waiting scheduling delay based on this information. Predict base station processing delay (T_gnb_proc): This refers to the time the data packet is processed inside the base station, including but not limited to the protocol stack processing time and buffering time of the base station. Predict terminal processing delay (T_ue_proc): This refers to the time the terminal processes the data packet after it arrives at the terminal, including decoding, processing protocol and other steps. Get current system time (T_now): This is the time point of the current network system, used to calculate the remaining transmission time of the data packet. Get the expected arrival time of the packet (T_exp): This is the time point at which the TSN packet must arrive at the terminal to meet the deterministic transmission requirements of TSN.

[0083] Figure 5 is a schematic diagram of a logical architecture for determining remaining transmission time and scheduling capability of a data transmission method provided in an optional embodiment of the present invention, such as Figure 5 As shown, the logical architecture involves the BBU protocol stack (PDCP layer and MAC layer) and the wireless intelligent platform, wherein the information forwarding between modules can select the UDP SOCKET mode.

[0084] The data forwarding module is located at the PDCP layer. According to the set data forwarding cycle, it regularly requests time prediction information from the AI ​​model prediction module and queries the system's scheduling capabilities from the scheduler. It then sorts the TSN data packets by sensing their remaining transmission time, and then forwards data for TSN services and non-TSN services in turn according to the system's scheduling capabilities.

[0085] The data buffer module is located at the PDCP layer and is mainly responsible for storing data waiting to be sent.

[0086] The scheduler is located at the MAC layer and is responsible for feeding back the system's scheduling capabilities to the data forwarding module of the PDCP layer. The system's scheduling capabilities include the amount of data waiting to be scheduled in the logical channel corresponding to each terminal, the average amount of data sent in n wireless frames, and statistics on scheduling feedback results; it provides channel status, system configuration, and scheduling capabilities to the AI ​​model prediction module of the wireless intelligent platform.

[0087] The AI ​​model prediction module is located in the wireless intelligent platform and is responsible for training and reasoning the segmented delay of TSN services of each terminal. It predicts the air interface transmission delay based on the channel state information and scheduling information provided by the scheduler; predicts the waiting scheduling delay based on the scheduling capability and system configuration fed back by the scheduler; and predicts the data processing delay of the base station and the terminal. These delays can be used to determine the remaining transmission time.

[0088] Step S208: when the remaining transmission time is less than a preset threshold, the target data packet is added to a first transmission queue, wherein the data packets in the first transmission queue are of a time-sensitive network type.

[0089] The relationship between the remaining transmission time corresponding to the target data packet and the preset threshold value can be determined. When the remaining transmission time is less than the preset threshold value, it is considered that the transmission of the target data packet is relatively urgent at this time, so the target data packet is placed in the first transmission queue, wherein the data packets in the first transmission queue are all TSN type data packets. The preset threshold value can be a threshold value set according to the TSN service type. The threshold value can be used to determine whether the remaining transmission time of the TSN (time sensitive network) data packet is urgent enough to be forwarded immediately. Specifically, the method for setting the threshold value is as follows: First, the TSN service requirements, such as deterministic delay, delay jitter and reliability requirements, can be analyzed. These requirements will directly affect the setting of the threshold value. Then, based on historical data or simulation, the average transmission time, jitter and fluctuation of the system scheduling capability of the TSN data packet can be analyzed. The threshold value needs to cover the transmission time requirements of the TSN data packet in most cases, but it should not be too loose to cause resource waste. At the same time, considering the uncertainty and emergencies of the network, the threshold value should be set with a certain safety margin to ensure that the TSN data packet can be transmitted within the specified time even when the network conditions are poor. The purpose of setting the threshold value is to avoid unnecessary waste of resources or data backlog while ensuring the determinism of TSN data transmission latency and jitter.

[0090] As an optional embodiment, when the remaining transmission time is less than a preset threshold, the target data packet is added to the first transmission queue, including: obtaining the remaining transmission time corresponding to each data packet in the first transmission queue; based on the remaining transmission time corresponding to the target data packet and the remaining transmission time corresponding to each data packet in the first transmission queue, sorting in ascending order of the remaining transmission time, and adding the target data packet to the first transmission queue.

[0091] When the remaining transmission time corresponding to the target data packet is less than the preset threshold, the target data packet needs to be added to the first transmission queue. The remaining transmission time corresponding to each data packet in the first transmission queue can be obtained first, because the remaining transmission time can reflect the urgency of the TSN data packet transmission. The smaller the remaining transmission time, the more urgent it is to send the TSN data packet. Therefore, according to the remaining transmission time corresponding to the target data packet and the remaining transmission time corresponding to each data packet in the first transmission queue, the target data packet can be placed in the appropriate position in the first transmission queue in order from small to large, that is, the smaller the remaining transmission time, the higher the priority of the data packet, and the earlier it will be sent. When there are two data packets with the same remaining transmission time, they can be sorted according to the priority of the data packet itself, and the data packet with a higher priority will be transmitted first.

[0092] As an optional embodiment, when the remaining transmission time is not less than a preset threshold, the target data packet is stored in a cache.

[0093] Optionally, when the remaining transmission time of the target data packet is not less than a preset threshold, it is considered that the target data packet is not in a hurry to be transmitted at this time. Therefore, the target data packet can be first stored in the cache and then added to the first transmission queue when the remaining transmission time is less than the preset threshold. This saves transmission resources and improves the utilization rate of transmission resources.

[0094] The above steps can predict the remaining transmission time of TSN data according to the AI model and the scheduling ability feedback by the current scheduler, and preferentially forward the TSN data with the remaining transmission time lower than the threshold value, and cache the TSN data with the remaining transmission time higher than the threshold value. This not only ensures the certainty of the transmission delay and jitter of TSN data, but also avoids the backlog of data in the scheduler, resulting in additional waiting scheduling delay.

[0095] Step S210, transmit the data packets in the first transmission queue based on the first preset channel according to the scheduling ability.

[0096] Transmitting the data packets in the first transmission queue based on the first preset channel according to the scheduling ability includes: when the scheduling ability does not meet the number of data packets in the first transmission queue, based on the order of the remaining transmission times corresponding to the data packets in the first transmission queue, send the data packets in the first transmission queue in ascending order of the remaining transmission time through the first preset channel, and update the first transmission queue.

[0097] Optionally, when the scheduling ability does not meet the number of data packets in the first transmission queue, at this time, all the data packets in the first transmission queue cannot be forwarded. Therefore, according to the order of the remaining transmission times corresponding to the data packets, starting from the data packet with the smallest remaining transmission time, they can be transmitted sequentially through the first preset channel. And update the data packets included in the first transmission queue.

[0098] Specifically, the average scheduling ability of the scheduler system for each radio frame is D_avg_sch; the data forwarding period of PDCP is T_pdcp. Determine whether the current system scheduling ability meets the TSN data D_tsn_wait_pdcp waiting to be transmitted: if D_avg_sch*(T_pdcp / 10ms)-D_tsn_wait_sch<D_tsn_wait_pdcp, it means that the scheduling system does not meet the number of data packets in the first transmission queue, then forward the TSN data packets according to the priority and update the TSN transmission queue, where the priority can be determined based on the remaining transmission time, and the shorter the remaining transmission time, the higher the priority.

[0099] According to the scheduling capability and based on the first preset channel, data packets in the first transmission queue are transmitted, including: when the scheduling capability meets the number of data packets in the first transmission queue, all data packets in the first transmission queue are transmitted through the first preset channel and the first transmission queue is cleared.

[0100] Optionally, when the scheduling capacity satisfies the number of data packets in the first transmission queue, all data packets in the first transmission queue can be transmitted through the first preset channel, and the first transmission queue can be cleared. Specifically, if D_avg_sch*(T_pdcp / 10ms)-D_tsn_wait_sch>D_tsn_wait_pdcp, it means that it is satisfied, then the TSN data packets in all queues are transmitted, and the TSN transmission queue is cleared.

[0101] As an optional embodiment, when the target data packet is of a non-time-sensitive network type, the target data packet is added to a second transmission queue, wherein the data packets in the second transmission queue are of a non-time-sensitive network type; when the scheduling capacity satisfies the number of data packets in the first transmission queue, after all the data packets in the first transmission queue are transmitted, the data packets in the second transmission queue are transmitted based on a second preset channel.

[0102] Optionally, when the target data packet is of non-TSN type, the target data packet will be added to the second transmission queue. Because non-TSN type data has lower transmission requirements, when the scheduling capacity can meet the number of data packets in the first transmission queue and there are surplus, the TSN data packets in the first transmission queue can be transmitted first, and then the data packets in the second transmission queue can be transmitted based on the second preset channel.

[0103] Specifically, if D_avg_sch*(T_pdcp / 10ms)-D_tsn_wait_sch-D_tsn_wait_pdcp-D_nontsn_wait_sch>0, it means that the system has remaining scheduling capacity, and the data packets in the DRB carrying non-TSN are transmitted in a polling manner.

[0104] After transmitting TSN data, the above steps transmit other business data according to the remaining scheduling capacity of the scheduler to ensure the rational use of system resources.

[0105] In the embodiment of the present invention, different end-to-end bearers are first established according to the service type, and the data plane distinguishes the priority of TSN services and non-TSN services. Then, based on the remaining transmission time of the predicted TSN data and the current system scheduling capacity fed back by the scheduler, data forwarding aware of the transmission time and scheduling capacity is performed, which not only ensures the certainty of TSN data transmission delay and jitter, but also avoids data backlog in the scheduler, causing additional waiting scheduling delay. Finally, based on the remaining scheduling capacity of the scheduler, other service data is transmitted to ensure the rational use of system resources.

[0106] Figure 6 is a schematic diagram of a data transmission process of a data transmission method provided according to an optional embodiment of the present invention, such as Figure 6 As shown, the process is implemented at the PDCP layer and includes:

[0107] Step 601: Calculate the remaining transmission time of the TSN data packets of all terminals. The data forwarding module of PDCP requests time prediction information from the AI ​​model prediction module. The AI ​​model prediction module predicts the air interface transmission delay T_tx based on the channel state information and scheduling information provided by the scheduler; predicts the waiting scheduling delay T_wait_sch based on the scheduling capability and system time slot ratio fed back by the scheduler; and predicts the processing delays T_gnb_proc and T_ue_proc of the base station and the terminal. Based on the expected arrival time T_exp of the TSN data packet and the current system time T_now, the remaining transmission time T_remain of the TSN data packet is calculated as T_exp-T_now-T_tx-T_wait_sch-T_gnb_proc-T_ue_proc. According to the above method, the remaining transmission time of the TSN data packets of all terminals is calculated respectively.

[0108] Step 602: According to the TSN service type, a threshold value T_thr is set for the remaining transmission time of the TSN data packet. If the remaining transmission time T_remain is greater than the threshold value T_thr, it is put into the cache and waits for the next data forwarding opportunity. Otherwise, it is put into the transmission queue. To ensure the certainty of the transmission delay, the forwarding priority of the TSN data packet is sorted according to the urgency of the data packet.

[0109] Step 603: Obtain the capability feedback of the scheduler. The data forwarding module of PDCP queries the scheduling capability of the system from the scheduler. The scheduling capability of the system includes the amount of data waiting to be scheduled in the logical channel corresponding to each terminal, the average amount of data sent in n (related to the data forwarding period of PDCP) radio frames, and the statistics of scheduling feedback results.

[0110] Step 604: The data forwarding module of PDCP calculates the TSN traffic volume D_tsn_wait_sch and non-TSN traffic volume D_nontsn_wait_sch waiting for scheduling in the logical channels corresponding to each terminal according to the traffic volume waiting for scheduling in the logical channels feedback by the scheduler; calculates the average scheduling capacity D_avg_sch of each radio frame in the system according to the statistics of the average data transmission volume and the scheduling feedback result in n (related to the PDCP data forwarding period) radio frames (10 ms); the PDCP data forwarding period is T_pdcp. Determine whether the current system scheduling capacity meets the TSN data D_tsn_wait_pdcp waiting for transmission: If D_avg_sch*(T_pdcp / 10ms)-D_tsn_wait_sch<D_tsn_wait_pdcp, it means it does not meet the requirement, then forward the TSN data packets according to the priority and update the TSN transmission queue; otherwise, it means it meets the requirement, then transmit all the TSN data packets in the queue and empty the TSN transmission queue.

[0111] Step 605: If D_avg_sch*(T_pdcp / 10ms)-D_tsn_wait_sch-D_tsn_wait_pdcp-D_nontsn_wait_sch>0, it means the system has remaining scheduling capacity, then transmit the data packets in the DRB carrying non-TSN in a round-robin manner.

[0112] Through the above steps, the purpose of data transmission is achieved based on the remaining transmission time of the data packets and the scheduling capacity of the scheduler, thus realizing the technical effect of reducing data backlog and improving the utilization rate of transmission resources. Furthermore, it solves the technical problems that currently, when transmitting data packets, it is impossible to perceive the remaining transmission time of the data, and reasonably forward the data packets according to the urgency of the data packets, resulting in an increase in the working pressure of the control delay and jitter of other network elements in the system and being unable to perceive the scheduling capacity of the system in real time, which easily causes data backlog in the scheduler and leads to waste of system resources.

[0113] Figure 7 is a schematic diagram of the system architecture for a deterministic radio access network according to the data transmission method of an optional embodiment of the present invention, as Figure 7 shown, the system architecture includes a basic network, a radio intelligent platform, NW-TT, DS-TT, a time synchronization module, and terminal devices (UE, CPE).

[0114] Basic network: Adopt a basic network based on cell-free radio access, including 5G base stations and a core network.

[0115] Wireless intelligent platform: Mainly responsible for the formulation of resource management and control strategies on the RAN side. Its functional modules include wireless network database, AI model training and reasoning, RAN policy generator, and RAN policy controller.

[0116] NW-TT: Network-side TSN translator maps related ports, protocol data units, and QoS mechanisms between the core network and the business system, and supports TSN-related traffic scheduling features.

[0117] DS-TT: The device-side TSN translator (DS-TT) is deployed on the UE side to map the relevant ports, protocol data units, and QoS mechanisms between the UE and the business system, and supports TSN-related traffic scheduling features.

[0118] Time synchronization module: includes GPS, clock synchronization server and 1588 switch. After the clock synchronization server obtains the clock from the GPS satellite, it uses the IEEE 1588 specification to pass the clock to gNB, UPF, NW-TT, etc. through the switch. In this way, high-precision synchronization of each network element in the 5G system is achieved.

[0119] Through the collaborative work of the above components, the system can achieve deterministic data transmission, especially for time-sensitive TSN services, and can provide low-latency and high-reliability data transmission services. This involves data classification, priority setting, time prediction, scheduling capability perception, and orderly forwarding of data, ensuring that the needs of TSN services are met while making reasonable use of system resources.

[0120] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence, because according to the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

[0121] Through the description of the above implementation methods, those skilled in the art can clearly understand that the data transmission method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (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 invention.

[0122] An embodiment of the present invention may provide a computer device. Optionally, in this embodiment, the computer device may be located in at least one network device among multiple network devices of a computer network. The computer device includes a memory and a processor.

[0123] Among them, the memory can be used to store software programs and modules, such as the program instructions / modules corresponding to the data transmission method and device in the embodiment of the present invention. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned data transmission method. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories can be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0124] The processor can call the information and application stored in the memory through the transmission device to perform the following steps: receive a target data packet; determine the service type of the target data packet; when the service type of the target data packet is a time-sensitive network type, obtain the scheduling capability of the scheduler and the remaining transmission time of the target data packet; when the remaining transmission time is less than a preset threshold, add the target data packet to the first transmission queue, wherein the data packets in the first transmission queue are of a time-sensitive network type; and transmit the data packets in the first transmission queue based on the first preset channel according to the scheduling capability.

[0125] Optionally, the processor may also execute program code of the following steps: determining the service type of the target data packet, including: obtaining the source IP address and port number of the target data packet; and determining the service type of the target data packet based on the source IP address and port number.

[0126] Optionally, the processor may also execute program code for the following steps: obtaining the scheduling capability of the scheduler, including: obtaining the historical scheduling status and scheduling feedback results corresponding to the scheduler; determining the number of data packets that the scheduler can transmit within a preset time period based on the historical scheduling status; and determining the scheduling capability based on the number of data packets that can be transmitted within the preset time period and the scheduling feedback results.

[0127] Optionally, the processor may also execute program code of the following steps: obtaining the remaining transmission time of the target data packet, including: obtaining the expected arrival time of the target data packet and the channel status of a preset channel; determining multiple predicted delays corresponding to the target data packet based on the channel status and scheduling capability, wherein the multiple predicted delays include air interface transmission delay, waiting scheduling delay and device processing delay; determining the remaining transmission time based on the multiple predicted delays corresponding to the target data packet and the expected arrival time.

[0128] Optionally, the processor may also execute program code for the following steps: when the remaining transmission time is less than a preset threshold, adding the target data packet to the first transmission queue, including: obtaining the remaining transmission time corresponding to each data packet in the first transmission queue; based on the remaining transmission time corresponding to the target data packet and the remaining transmission time corresponding to each data packet in the first transmission queue, sorting in ascending order of the remaining transmission time, and adding the target data packet to the first transmission queue.

[0129] Optionally, the processor may also execute the program code of the following steps: when the remaining transmission time is not less than a preset threshold, storing the target data packet in a cache.

[0130] Optionally, the processor may also execute program code for the following steps: transmitting data packets in the first transmission queue based on the first preset channel according to scheduling capability, including: when the scheduling capability does not meet the number of data packets in the first transmission queue, based on the order of the remaining transmission time corresponding to the data packets in the first transmission queue, sending the data packets in the first transmission queue in the order of the remaining transmission time from small to large through the first preset channel, and updating the first transmission queue.

[0131] Optionally, the processor may also execute program code for the following steps: transmitting data packets in the first transmission queue based on the first preset channel according to scheduling capability, including: when the scheduling capability meets the number of data packets in the first transmission queue, transmitting all data packets in the first transmission queue through the first preset channel and clearing the first transmission queue.

[0132] Optionally, the processor may also execute the program code of the following steps: when the target data packet is of a non-time-sensitive network type, adding the target data packet to a second transmission queue, wherein the data packets in the second transmission queue are of a non-time-sensitive network type; when the scheduling capacity satisfies the number of data packets in the first transmission queue, after all the data packets in the first transmission queue are transmitted, the data packets in the second transmission queue are transmitted based on a second preset channel.

[0133] By adopting the embodiment of the present invention, a data transmission method is provided, which receives a target data packet; determines the service type of the target data packet; when the service type of the target data packet is a time-sensitive network type, obtains the scheduling capability of the scheduler and the remaining transmission time of the target data packet; when the remaining transmission time is less than a preset threshold, adds the target data packet to a first transmission queue, wherein the data packets in the first transmission queue are of a time-sensitive network type; according to the scheduling capability, based on a first preset channel, transmits the data packets in the first transmission queue, thereby achieving the purpose of data transmission based on the remaining transmission time of the data packet and the scheduling capability of the scheduler, thereby achieving the technical effect of reducing data backlog and improving the utilization rate of transmission resources, and further solves the current problem that the remaining transmission time of the data cannot be perceived when the data packet is transmitted, and the data packet is reasonably forwarded according to its urgency, resulting in increased working pressure on other network elements in the system to control delay and jitter, and the scheduling capability of the system cannot be perceived in real time, which easily causes data backlog in the scheduler and wastes system resources.

[0134] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a non-volatile storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0135] The embodiment of the present invention further provides a non-volatile storage medium. Optionally, in this embodiment, the non-volatile storage medium can be used to store the program code executed by the data transmission method provided in the above embodiment.

[0136] Optionally, in this embodiment, the non-volatile storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.

[0137] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: receiving a target data packet; determining a service type of the target data packet; when the service type of the target data packet is a time-sensitive network type, obtaining a scheduling capability of the scheduler and a remaining transmission time of the target data packet; when the remaining transmission time is less than a preset threshold, adding the target data packet to a first transmission queue, wherein the data packets in the first transmission queue are of a time-sensitive network type; and transmitting the data packets in the first transmission queue based on a first preset channel according to the scheduling capability.

[0138] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: determining the service type of the target data packet, including: obtaining the source IP address and port number of the target data packet; determining the service type of the target data packet based on the source IP address and port number.

[0139] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: obtaining the scheduling capability of the scheduler, including: obtaining the historical scheduling status and scheduling feedback results corresponding to the scheduler; determining the number of data packets that the scheduler can transmit within a preset time period based on the historical scheduling status; determining the scheduling capability based on the number of data packets that can be transmitted within the preset time period and the scheduling feedback results.

[0140] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: obtaining the remaining transmission time of the target data packet, including: obtaining the expected arrival time of the target data packet and the channel status of a preset channel; based on the channel status and scheduling capability, determining multiple predicted delays corresponding to the target data packet, wherein the multiple predicted delays include air interface transmission delay, waiting scheduling delay and device processing delay; determining the remaining transmission time based on the multiple predicted delays corresponding to the target data packet and the expected arrival time.

[0141] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for executing the following steps: when the remaining transmission time is less than a preset threshold, adding the target data packet to the first transmission queue, including: obtaining the remaining transmission time corresponding to each data packet in the first transmission queue; based on the remaining transmission time corresponding to the target data packet and the remaining transmission time corresponding to each data packet in the first transmission queue, sorting in ascending order of the remaining transmission time, and adding the target data packet to the first transmission queue.

[0142] Optionally, in this embodiment, the non-volatile storage medium is configured to store a program code for executing the following steps: when the remaining transmission time is not less than a preset threshold, storing the target data packet in a cache.

[0143] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: according to scheduling capacity, based on a first preset channel, transmitting data packets in a first transmission queue, including: in a case where the scheduling capacity does not meet the number of data packets in the first transmission queue, based on the order of the remaining transmission time corresponding to the data packets in the first transmission queue, sending the data packets in the first transmission queue in ascending order of the remaining transmission time through the first preset channel, and updating the first transmission queue.

[0144] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: according to scheduling capability, based on a first preset channel, transmitting data packets in a first transmission queue, including: when the scheduling capability meets the number of data packets in the first transmission queue, transmitting all data packets in the first transmission queue through the first preset channel and clearing the first transmission queue.

[0145] Optionally, in this embodiment, the non-volatile storage medium is configured to store program code for performing the following steps: when the target data packet is of a non-time-sensitive network type, adding the target data packet to a second transmission queue, wherein the data packets in the second transmission queue are of a non-time-sensitive network type; when the scheduling capacity satisfies the number of data packets in the first transmission queue, after all the data packets in the first transmission queue are transmitted, the data packets in the second transmission queue are transmitted based on a second preset channel.

[0146] An embodiment of the present invention also provides a computer program product, including a computer program. Optionally, in this embodiment, when the computer program is executed by a processor, it can achieve: receiving a target data packet; determining the service type of the target data packet; when the service type of the target data packet is a time-sensitive network type, obtaining the scheduling capability of the scheduler and the remaining transmission time of the target data packet; when the remaining transmission time is less than a preset threshold, adding the target data packet to a first transmission queue, wherein the data packets in the first transmission queue are of a time-sensitive network type; and transmitting the data packets in the first transmission queue based on a first preset channel according to the scheduling capability.

[0147] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0148] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0149] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0150] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0151] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0152] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

[0153] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A data transmission method, characterized in that: include: Receive target data packets; Determining the service type of the target data packet; When the service type of the target data packet is a time-sensitive network type, obtaining a scheduling capability of a scheduler and a remaining transmission time of the target data packet; When the remaining transmission time is less than a preset threshold, adding the target data packet to a first transmission queue, wherein the data packets in the first transmission queue are of a time-sensitive network type; According to the scheduling capability, based on a first preset channel, data packets in the first transmission queue are transmitted.

2. The method according to claim 1, characterized in that The determining the service type of the target data packet comprises: Obtain the source IP address and port number of the target data packet; Based on the source IP address and the port number, the service type of the target data packet is determined.

3. The method according to claim 1, characterized in that The obtaining of the scheduling capability of the scheduler includes: Obtaining the historical scheduling status and scheduling feedback results corresponding to the scheduler; Determining the number of data packets that the scheduler can transmit within a preset time period according to the historical scheduling situation; The scheduling capability is determined based on the number of data packets that the scheduler can transmit within a preset time period and the scheduling feedback result.

4. The method according to claim 1, characterized in that: Obtaining the remaining transmission time of the target data packet, including: Acquire the expected arrival time of the target data packet and the channel status of the preset channel; Based on the channel state and the scheduling capability, determine multiple predicted delays corresponding to the target data packet, wherein the multiple predicted delays include air interface transmission delay, waiting scheduling delay and device processing delay; The remaining transmission time is determined based on a plurality of predicted delays corresponding to the target data packet and the expected arrival time.

5. The method according to claim 1, characterized in that When the remaining transmission time is less than a preset threshold, adding the target data packet to the first transmission queue comprises: Obtaining the remaining transmission time corresponding to each of the data packets in the first transmission queue; Based on the remaining transmission time corresponding to the target data packet and the remaining transmission time corresponding to each of the data packets in the first transmission queue, the target data packet is sorted in ascending order of the remaining transmission time, and added to the first transmission queue.

6. The method according to claim 1, characterized in that Also includes: When the remaining transmission time is not less than the preset threshold, the target data packet is stored in a cache.

7. The method according to claim 1, characterized in that The transmitting, according to the scheduling capability and based on the first preset channel, the data packets in the first transmission queue comprises: When the scheduling capacity does not meet the number of data packets in the first transmission queue, based on the order of the remaining transmission time corresponding to the data packets in the first transmission queue, the data packets in the first transmission queue are sent in ascending order of the remaining transmission time through the first preset channel, and the first transmission queue is updated.

8. The method according to claim 1, characterized in that: The transmitting, according to the scheduling capability and based on the first preset channel, the data packets in the first transmission queue comprises: When the scheduling capability satisfies the number of data packets in the first transmission queue, all data packets in the first transmission queue are transmitted through the first preset channel and the first transmission queue is cleared.

9. The method according to any one of claims 1 to 8, characterized in that: Also includes: In the case where the target data packet is of a non-time-sensitive network type, adding the target data packet to a second transmission queue, wherein the data packets in the second transmission queue are of a non-time-sensitive network type; In a case where the scheduling capacity satisfies the number of data packets in the first transmission queue, after all the data packets in the first transmission queue are transmitted, the data packets in the second transmission queue are transmitted based on a second preset channel.

10. A non-volatile storage medium, characterized in that: The non-volatile storage medium includes a stored program, wherein when the program is executed, the device where the non-volatile storage medium is located is controlled to execute the data transmission method according to any one of claims 1 to 9.

11. A computer device, characterized in that: include: Memory and processor, The memory stores a computer program; The processor is used to execute the computer program stored in the memory, and when the computer program is run, the processor executes the data transmission method according to any one of claims 1 to 9.

12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the data transmission method according to any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Data transmission method and device

    CN104918281A

  • Software-defined industrial heterogeneous time-sensitive network system and resource scheduling method

    CN112511462A

  • Traffic scheduling method for time-sensitive data frames and related equipment

    CN113783793A

  • Reordering scheduling method in time-sensitive network queue

    CN114650261A

  • Service demand sensing and scheduling method and system, electronic equipment and storage medium

    CN116017375A

Cited By

  • Video transmission method and device, electronic device and storage medium

    CN120639751A