Resource scheduling method, device, equipment and product
By analyzing the port information sent by user equipment and network equipment, obtaining the delay parameters of TSN service flow and performing resource scheduling, the problem of low resource scheduling efficiency in the 5G-TSN architecture is solved, and effective control of the delay of service flow is achieved. Improved service quality.
Patent Information
- Application Number
- CN202411251865.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2024-12-31
AI Technical Summary
The existing 5G-TSN architecture does not consider resource scheduling from the full path, resulting in low resource scheduling efficiency and cannot meet the TSN service delay requirements.
By receiving the port information sent by user equipment and network equipment, the delay parameters of the TSN service flow are parsed and resource scheduling is performed based on these parameters to ensure that the service flow meets strict delay requirements.
It improves the efficiency of resource scheduling, meets the deterministic transmission requirements of TSN services, ensures that the delay of the service flow meets the strict requirements, and provides better services.
Smart Images

Figure CN119233417A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communication technology, and in particular to a resource scheduling method, device, equipment and product. Background Art
[0002] As a networking architecture that effectively solves deterministic transmission, 5G-TSN makes it possible for 5G to meet the requirements of low latency and low jitter in the industrial field. Therefore, how to achieve better resource allocation and priority scheduling under this architecture is the key to truly realizing deterministic transmission.
[0003] The existing 5G-TSN architecture mainly focuses on the collaboration between the cloud side and the end side, but there is no end-to-end collaboration solution. At the same time, resource scheduling processing is mostly for the optimization of some paths. For example, the base station side dynamically adjusts resource allocation according to latency requirements to achieve wireless resource optimization, Delay Sensitive-Time Triggered mechanism DS-TT and Network Time Triggered mechanism NW-TT end-side scheduling optimization, UPF (an important component in the 5G core network architecture) resource scheduling optimization, etc. Resource scheduling is not considered from the perspective of the entire path, resulting in insufficient resource scheduling effectiveness and failure to meet the TSN service latency requirements.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of this application is to provide a resource scheduling method, device, equipment, medium and product, aiming to solve the technical problem that resource scheduling is not considered from the whole path in the existing networking architecture, resulting in low resource scheduling efficiency.
[0006] To achieve the above object, the present application proposes a resource scheduling method, which is applied to a time-sensitive TSN device, and includes:
[0007] Receiving first port information sent by a user device and second port information sent by a network device;
[0008] Parsing the first port information and the second port information to obtain a delay parameter of the TSN service flow;
[0009] Based on the delay parameter, resources are scheduled for the service flow.
[0010] In one embodiment, the step of parsing the first port information and the second port information to obtain the latency parameter of the TSN service flow includes:
[0011] Parsing the first port information and the second port information through a preset TSN application to obtain a bridge identifier corresponding to the first port information and the second port information;
[0012] Based on the bridge identifier, information is collected from a network-side TSN converter of the network device and a terminal-side TSN converter of the user device to obtain a TSN service flow;
[0013] According to the TSN service flow, collecting session data of a protocol data unit PDU through the TSN application;
[0014] The session data and TSN service flow are analyzed to obtain latency parameters.
[0015] In one embodiment, before the step of parsing the first port information and the second port information to obtain the latency parameter of the TSN service flow, the method further includes:
[0016] Receiving the summary port information sent by the user equipment, and constructing a TSN service flow based on the summary port information and the network-side TSN converter;
[0017] According to the TSN service flow, a bridge is constructed through a preset local area network, and an identifier of the bridge is defined and then written into the TSN application.
[0018] In one embodiment, the steps of constructing a bridge through a preset local area network according to the TSN service flow, defining an identifier for the bridge and writing the identifier into the TSN application include:
[0019] Based on the aggregated port information, the network-side TSN converter of the user plane function component UPF allocates the corresponding port to obtain the network-side port;
[0020] A network bridge is constructed based on the port information and the network side port;
[0021] Defining an identifier for the bridge to obtain a bridge identifier;
[0022] The UPF identifier is associated with the bridge identifier to obtain an association result, and the association result is written into the TSN application.
[0023] In one embodiment, the step of scheduling resources for the service flow through a preset TSN application based on the delay parameter includes:
[0024] If the communication resources of the TSN device meet the preset usage resources, the TSN service flow is scheduled by the TSN application based on the session resources of the PDU;
[0025] If the communication resources of the TSN device do not meet the preset usage resources, based on the priority of the TSN service flow, the TSN service flow is scheduled by the TSN application using the session resources of the PDU and the bridge resources in the TSN device.
[0026] The present application also proposes a resource scheduling method, which is applied to a user equipment and includes:
[0027] The first port information is sent to the TSN device, and the TSN device receives the first port information and the second port information sent by the network device, and parses the first port information and the second port information to obtain the delay parameter of the TSN service flow, and performs resource scheduling on the service flow based on the delay parameter.
[0028] In one embodiment, before the step of sending the first port information to the TSN device, the method further includes:
[0029] Connect the TSN terminal to the converter port of the TSN converter on the terminal side through the TSN router;
[0030] The terminal-side TSN converter is connected to the user equipment and accessed to the user plane function component UPF through a preset local area network.
[0031] In addition, to achieve the above purpose, the present application also proposes a resource scheduling device, wherein the resource scheduling is applied to a time-sensitive TSN device, and the device includes:
[0032] A receiving module, used for receiving first port information sent by a user device and second port information sent by a network device;
[0033] A parsing module, used for parsing the first port information and the second port information to obtain a delay parameter of a TSN service flow;
[0034] The scheduling module is used to schedule resources for the service flow based on the delay parameter.
[0035] In addition, to achieve the above objectives, the present application also proposes a resource scheduling device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the resource scheduling method described above.
[0036] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the resource scheduling method described above are implemented.
[0037] One or more technical solutions proposed in this application have at least the following technical effects:
[0038] The embodiment of the present application proposes a resource scheduling method, device, equipment and product, which receives the first port information sent by the user device and the second port information sent by the network device; parses the first port information and the second port information to obtain the delay parameter of the TSN service flow; and performs resource scheduling on the service flow based on the delay parameter. Thus, the first port information sent by the user device and the second port information sent by the network device are parsed by the TSN device to obtain the delay parameter of the TSN service flow, and finally, based on the obtained delay parameter, the service flow is resource scheduled, which solves the problem that the resource scheduling efficiency is low due to the lack of consideration of resource scheduling from the whole path in the existing networking architecture, and improves the efficiency of resource scheduling. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0041] Figure 1 A schematic diagram of a process flow provided for the first embodiment of the resource scheduling method of the present application;
[0042] Figure 2 A schematic diagram of a resource scheduling method of the present application involving binding a user device to a local area network;
[0043] Figure 3 A schematic diagram of a flow chart provided for Embodiment 2 of the resource scheduling method of this application;
[0044] Figure 4 A schematic diagram of a TSN terminal connected to a user device in the resource scheduling method of this application;
[0045] Figure 5 A brief flowchart of the resource scheduling method provided in Example 2 of the present application;
[0046] Figure 6 This is a schematic diagram of an actual business scenario involving the resource scheduling method of this application;
[0047] Figure 7 This is a schematic diagram of the module structure of the resource scheduling device according to an embodiment of the present application;
[0048] Figure 8 Schematic diagram of the device structure of the hardware operating environment involved in the resource scheduling method in the embodiment of the present application.
[0049] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0050] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0051] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0052] The main solution of the embodiment of the present application is: parse the first port information and the second port information through a preset TSN application to obtain the bridge identifier corresponding to the first port information and the second port information; collect information from the network-side TSN converter of the network device and the terminal-side TSN converter of the user device based on the bridge identifier to obtain the TSN service flow; according to the TSN service flow, collect the session data of the protocol data unit PDU through the TSN application; analyze the session data and the TSN service flow to obtain the delay parameter. Receive the aggregated port information sent by the user device, and construct a TSN service flow based on the aggregated port information and the network-side TSN converter; according to the TSN service flow, construct a bridge through a preset local area network, and define the identifier of the bridge and write it into the TSN application. Based on the aggregated port information, the network side TSN converter of the user plane functional component UPF allocates the corresponding port to obtain the network side port; based on the port information and the network side port, a bridge is constructed; an identifier is defined for the bridge to obtain a bridge identifier; the identifier of the UPF is associated with the bridge identifier to obtain an association result, and the association result is written into the TSN application. If the communication resources of the TSN device meet the preset usage resources, the TSN service flow is resource-scheduled by the TSN application based on the session resources of the PDU; if the communication resources of the TSN device do not meet the preset usage resources, the TSN service flow is resource-scheduled by the TSN application using the session resources of the PDU and the bridge resources in the TSN device based on the priority of the TSN service flow. Send the first port information to the TSN device, the TSN device receives the first port information and the second port information sent by the network device, and parses the first port information and the second port information to obtain the delay parameter of the TSN service flow, and performs resource scheduling on the service flow based on the delay parameter. The TSN terminal is connected to the converter port of the terminal-side TSN converter through a TSN router; the terminal-side TSN converter is connected to the user equipment and accesses the user plane function component UPF through a preset local area network.Therefore, the problem that resource scheduling is not considered from the whole path in the existing networking architecture, resulting in low resource scheduling efficiency is solved, resource scheduling is realized, and the efficiency of resource scheduling is improved. Based on the solution of the present invention, the existing 5G-TSN architecture in reality mainly focuses on the collaboration between the cloud side and the terminal side, but there is no end-to-end collaboration solution. At the same time, resource scheduling processing is mostly optimized for part of the path, and resource scheduling is not considered from the whole path, resulting in insufficient resource scheduling effectiveness, and still unable to meet the TSN service delay requirements, thereby starting from the problem of low efficiency, a resource scheduling method is designed, and the effectiveness of the resource scheduling method of the present invention is verified when scheduling resources. Finally, the efficiency of resource scheduling performed by the method of the present invention is significantly improved.
[0053] In this embodiment, for the convenience of description, the resource scheduling device is used as the execution subject for explanation below.
[0054] Since 5G-TSN is an effective networking architecture for deterministic transmission, it makes it possible for 5G to meet the requirements of low latency and low jitter in the industrial field. Therefore, how to achieve better resource allocation and priority scheduling under this architecture is the key to truly realizing deterministic transmission. However, the existing 5G-TSN architecture mainly focuses on the collaboration between the cloud side and the end side, but there is no end-to-end collaboration solution. At the same time, resource scheduling processing is mostly optimized for some paths. For example, the base station side dynamically adjusts resource allocation according to latency requirements to achieve wireless resource optimization, DS-TT and NW-TT end-side scheduling optimization, UPF resource scheduling optimization, etc. Resource scheduling is not considered from the perspective of the entire path, resulting in insufficient resource scheduling effectiveness, and still cannot meet the TSN service latency requirements, and efficiency will also decrease.
[0055] This application provides a solution that combines TSN service priority, 5G LAN grouping, and 5G-TSN bridges to optimize the resource scheduling method to meet the deterministic transmission requirements of TSN services accessed through 5G. This method can achieve end-to-end latency control, ensure that the service flow meets strict latency requirements, and provide users with better quality services.
[0056] It can be seen from the above embodiments that the present application receives the first port information sent by the user device and the second port information sent by the network device; parses the first port information and the second port information to obtain the delay parameters of the TSN service flow; and performs resource scheduling on the service flow based on the delay parameters. Thus, the first port information sent by the user device and the second port information sent by the network device are parsed by the TSN device to obtain the delay parameters of the TSN service flow, and finally, based on the obtained delay parameters, the service flow is resource scheduled, which solves the problem that the existing networking architecture does not consider resource scheduling from the entire path, resulting in low resource scheduling efficiency, and improves the efficiency of resource scheduling.
[0057] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, a resource scheduling device, etc. The following takes the resource scheduling device as an example to illustrate this embodiment and the following embodiments.
[0058] Based on this, the embodiment of the present application provides a resource scheduling method, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the resource scheduling method of the present application.
[0059] In this embodiment, the resource scheduling method is applied to a time-sensitive TSN device, and the method includes steps S01 to S05:
[0060] Step S01, receiving first port information sent by user equipment;
[0061] Before describing this embodiment, it should be clear that 5G-TSN, as a networking architecture that effectively solves deterministic transmission, makes it possible for 5G to meet the requirements of low latency and low jitter in the industrial field. Therefore, how to achieve better resource allocation and priority scheduling under this architecture is the key to truly realizing deterministic transmission. Among them, TSN (Time Sensitive Network) is a set of standards for enhanced Ethernet technology, which aims to provide high reliability and low latency data transmission. The main features of TSN include (1) time synchronization, which ensures that data transmission between network devices is carried out within a strict time window through precise time synchronization; (2) traffic shaping, which manages network traffic to reduce latency and jitter and ensure that data packets are transmitted within the specified time; and (3) traffic scheduling: optimize the transmission order of data packets to reduce network congestion and data loss.
[0062] However, in the existing 5G-TSN architecture, the main focus is on the collaboration between the cloud side and the terminal side, but there is no end-to-end collaboration solution. At the same time, resource scheduling processing is mostly for the optimization of some paths. For example, the base station side dynamically adjusts resource allocation according to the latency requirements to achieve wireless resource optimization, DS-TT and NW-TT end-side scheduling optimization, UPF resource scheduling optimization, etc., without considering resource scheduling from the entire path, resulting in insufficient resource scheduling effectiveness, and it is still possible that the TSN service latency requirements cannot be met. Among them, DS-TT (Dynamic Stream-Timeslot) is a scheduling mechanism for time-sensitive networks (TSN). It is used to dynamically allocate time slots to network flows to ensure efficient and predictable data transmission. The terminal-side TSN converter DS-TT supports the real-time requirements of different flows by adjusting the allocation of time slots on demand, thereby improving the flexibility and resource utilization of the network. The network-side TSN converter NW-TT (Network-Wide Time-Traffic is a scheduling strategy in Time-Sensitive Network (TSN), which provides the ability to synchronize time and schedule traffic across the entire network, ensuring that different traffic is transmitted within the scheduled time to meet high-precision delay and bandwidth requirements. NW-TT supports time-sensitive applications, reduces delays and congestion, and improves network performance and reliability through a unified time and scheduling mechanism across the entire network. The User Plane Function (UPF) is a key component in the 5G core network architecture, which is responsible for processing user data plane traffic, including packet forwarding, routing, traffic management, and network slicing support. The main function of UPF is to improve the flexibility and efficiency of the network while achieving low-latency and high-bandwidth data transmission.
[0063] After understanding the composition of the time-sensitive TSN network architecture, it can be known that data transmission causes resource consumption in the terminal-side TSN converter, the network-side TSN converter and the UPF. Therefore, in this embodiment, after receiving the MAC address (first port information) sent by the terminal-side TSN converter, the user device sends the first port information to the TSN device. It should be clear that the user device here refers to multiple TSN terminals that are first connected to the terminal-side TSN converter, and then connected to the user device by the terminal-side TSN converter to achieve networking through the user device access to the corresponding network architecture. Therefore, the user device here is not limited in number and should be set according to actual business needs. The MAC address table (also called MAC address table or forwarding table) is an important data structure in the network switch for efficiently forwarding data packets. Its function is to determine the forwarding path of the data packet based on the MAC address of the device. Its main functions include (1) address learning. The switch monitors the network traffic and records the MAC address of each device. AC address and its corresponding port. When a data packet arrives at the switch, the switch stores the mapping relationship between the source MAC address and the receiving port in the MAC address table. (2) Forwarding decision: When the switch receives a data packet, it searches the MAC address table to determine the port corresponding to the destination MAC address. If the destination MAC address exists in the table, the switch forwards the data packet to the corresponding port. If the destination MAC address does not exist in the table, the switch broadcasts the data packet to all ports to find the destination device. (3) Update and aging. The entries in the MAC address table are updated regularly to adapt to changes in network devices. The aging mechanism deletes MAC address entries that have not received data packets within a certain period of time, thereby preventing the information in the table from becoming outdated. In actual use, the management and maintenance of the MAC address table is crucial to network performance. It helps reduce network broadcast traffic and improve data transmission efficiency. At the same time, it provides a mapping from device addresses to ports, so that data packets can reach the target device accurately and efficiently.
[0064] Step S04, receiving the second port information sent by the network-side TSN converter, and parsing the first port information and the second port information to obtain the delay parameter of the TSN service flow;
[0065] Before performing resource scheduling, in addition to knowing the resource usage of the TSN converter on the terminal side, it is necessary to obtain the port information (second port) of the TSN converter on the network side. Therefore, in this embodiment, the port information sent by the TSN converter on the network side is received by UPF. It should be clear that in the connection of each port, due to transmission needs, each TSN converter on the terminal side sends to the TSN converter on the network side. It will be sent to the corresponding port, so the corresponding port information can be obtained through UPF at this time.
[0066] Step S05: Based on the delay parameter, resource scheduling is performed on the service flow through a preset TSN application.
[0067] The above process can be understood as the TSN device acquiring the first port information and the second port information in real time. In addition, the TSN application of user resource scheduling will also synchronously acquire the session data of the protocol data unit. Subsequently, the first port information and the second port information can be parsed to obtain the delay parameters of the TSN service flow, and based on the delay parameters, the TSN application performs corresponding resource scheduling for the TSN service. Among them, the TSN application refers to the TSN network architecture through TSN-AF (Time-Sensitive Networking Application The TSN-AF framework is designed to provide application-level support and standardized interfaces for time-sensitive networking (TSN). TSN-AF enables developers to build and deploy time-sensitive applications based on TSN, ensuring that these applications can take advantage of the high-precision time synchronization and low-latency data transmission features provided by TSN. The key functions of TSN-AF include (1) application layer interface, which provides standardized interfaces so that applications can access and utilize the time synchronization and traffic scheduling functions of TSN; (2) configuration and management, which supports the configuration and management of TSN devices and networks and simplifies the deployment and maintenance of applications; (3) performance optimization, which provides tools and mechanisms to optimize the performance of applications and ensure the efficient transmission and processing of time-sensitive data; and (4) interoperability, which ensures interoperability between different vendors and devices so that different TSN devices and applications can be seamlessly integrated.
[0068] Specifically, the above step S04, the step of parsing the first port information and the second port information to obtain the delay parameter of the TSN service flow includes:
[0069] Step S041, parsing the first port information and the second port information through a preset TSN application to obtain a bridge identifier corresponding to the first port information and the second port information;
[0070] Step S042, collecting information from the network-side TSN converter of the network device and the terminal-side TSN converter of the user device based on the bridge identifier to obtain a TSN service flow;
[0071] Step S043, collecting session data of a protocol data unit PDU through the TSN application according to the TSN service flow;
[0072] Step S044: Analyze the session data and TSN service flow to obtain latency parameters.
[0073] It is clear from the above embodiments that the transmission will be carried out through the corresponding TSN service flow and bridge during the transmission of the port, and the identifiers of the bridge and UPF have been associated before. Therefore, after receiving the first port information and the second port information, the corresponding bridge identifier for data transmission can be obtained. Subsequently, information is collected from the network side TSN converter and the terminal side TSN converter of the user equipment through the bridge identifier to determine the corresponding TSN service flow. Then, according to the TSN service flow, the session data of the protocol data unit PDU is collected through the TSN application. Finally, the delay parameters can be obtained by analyzing the session data and the TSN service flow.
[0074] More specifically, the user equipment in the above embodiment includes at least a first user equipment and a second user equipment. In addition, the TSN device should also include a local area network (5G LAN). Before the step S04 of parsing the first port information and the second port information to obtain the delay parameter of the TSN service flow, the method further includes:
[0075] Step S02, receiving the summary port information sent by the user equipment, and constructing a TSN service flow based on the summary port information and the network-side TSN converter;
[0076] Step S03: According to the TSN service flow, a bridge is constructed through a preset local area network, and an identifier is defined for the bridge and then written into the TSN application.
[0077] It should be clear that the user devices in this embodiment are multiple. The first user device and the second user device are used as examples in this embodiment. In the industrial field, for production lines that require the coordination of multiple production devices (such as multiple industrial computers cooperating in production processes), high real-time requirements are often required. These devices are usually equipped with TSN industrial core boards to ensure latency stability. In terms of corresponding functional requirements, these devices are grouped to obtain several groups of TSN terminals. Because the first user device and the second user device are used as examples in this embodiment, the several groups of TSN terminals also include at least the first group of TSN terminals and the second group of TSN terminals.
[0078] In order to be able to connect to the Internet, the first group of TSN terminals and the second group of TSN terminals are connected to the DS-TT, and then connected to the user equipment by the DS-TT, and then connected to the local area network through the user equipment;
[0079] At this time, since multiple TSN terminals are connected in DS-TT, DS-TT will also send the data to be transmitted to the user equipment through multiple ports, and the ports of multiple DS-TTs are the summary port information;
[0080] The TSN service flow is as follows Figure 3 As shown, the TSN terminals that need to communicate with each other (including the first group of TSN terminals and the second group of TSN terminals) are added to a 5G LAN (network local area network) through UE (first user equipment and second user equipment). UE1 and UE2 can communicate within a UPF or across UPFs, without the need to forward data through DN (data network), which can shorten the link path and reduce the transmission delay.
[0081] It should be clear that among multiple groups of TSN devices, it is possible that the TSN devices of the first group need to exchange data with the devices of the second group, for example Figure 2 TSN1 and TSN5 in the data exchange, then the interaction between TSN1 and TSN5 is the service flow. In this embodiment, there are multiple TSN devices, so there are corresponding service flows between multiple devices. At this time, analysis can be performed based on the first group of TSN devices and the second group of TSN devices to obtain multiple service flows;
[0082] Furthermore, the above step S03, according to the TSN service flow, constructs a bridge through a preset local area network, and defines an identifier for the bridge and then writes it into the TSN application, comprises:
[0083] Step S031, based on the aggregated port information, the network side TSN converter of the user plane function component UPF allocates the corresponding port to obtain the network side port;
[0084] Step S032, constructing a network bridge based on the port information and the network side port;
[0085] Step S033, defining an identifier for the bridge to obtain a bridge identifier;
[0086] Step S034, associating the UPF identifier with the bridge identifier to obtain an association result, and writing the association result into the TSN application.
[0087] In order to facilitate the subsequent TSN application to call the information, in this embodiment, multiple 5G-TSN bridges are established in the 5G LAN, each bridge includes a DS-TT port (including the corresponding delay t ds-tt-n ), PDU (Protocol Data Unit) Session ID (corresponding delay t pdu-n ) and NW-TT port (corresponding delay t nw-tt-n ).
[0088] Bridge IDb tsnAssociated with the ID of the user plane function UPF, for example, UPF ID|port>>4, the lower 4 bytes are the UPF ID, and the upper 4 bytes are the port ID. In this way, TS-AF (functional module for time-sensitive applications) can accurately manage UPF through the bridge ID.
[0089] Then the CNC (Centralized Network Controller) controls TSN-AF to connect the bridge b tsn and TSN service flow tsn-i To associate, bridge b tsn-m and bridge b tsn-n Corresponding to a TSN service flow f tsn-i , assuming b tsn-m The corresponding link delay is t m =t ds-tt-m =t pdu-m +t nw-tt-m , b tsn-n The corresponding link delay is t n =t ds-tt-n =t pdu-n +t nw-tt-n , then f tsn-i The total link delay is t total-i =t m +t n .
[0090] After the bridge is established and the association is completed, the identifiers of several TSN bridges need to be written into the TSN application so that it can be scheduled faster when making resource calls.
[0091] Furthermore, the above step S05, based on the delay parameter, the step of scheduling resources for the service flow through the preset TSN application includes:
[0092] Step S051, if the communication resources of the TSN device meet the preset usage resources, then based on the session resources of the PDU, the TSN service flow is scheduled through the TSN application;
[0093] Step S052: If the communication resources of the TSN device do not meet the preset usage resources, based on the priority of the TSN service flow, the TSN application uses the session resources of the PDU and the bridge resources in the TSN device to schedule the TSN service flow.
[0094] DS-TT sends the port's MAC address table to AF through UE, and NW-TT sends port information to AF through UPF. AF itself also obtains PDU session information. AF uses the obtained information to monitor and calculate the forwarding delay of each logical TSN bridge in real time, and then dynamically adjusts the bridge parameters through CNC control.
[0095] Therefore, the transmission quality of the TSN bridge is mapped from high to low to the priority of the TSN data flow from high to low. TSN-AF dynamically adjusts the bridge link by monitoring the real-time delay of the TSN service flow. The adjustment rules are as follows:
[0096] When resources are sufficient, TSN-AF monitors the real-time latency of TSN service flows. If it finds that the TSN service flow f tsn-i , the total link delay is greater than the required delay, that is, f tsn-i t total-i >t delay-i , TSN-AF comprehensively analyzes the transmission delay of all TSN service flows and automatically adjusts the bridge link resources:
[0097] First, prioritize the adjustment of PDU session resources. Assume that the link processing delay corresponding to each bridge PDU session is {t pdu-1 , t pdu-2 ...t pdu-n}, AF delays according to the TSN service flow requirements t delay-i , calculate the delay buffer of each PDU session t remind-i , we get Max(t remind-1 , t remind-2 ...t remind-i ), allocate the PDU session resources of this largest buffer to the PDU session whose latency cannot meet the requirement, and so on, until the latency requirements of all TSN service flows are met;
[0098] Finally, when there is no buffer in the PDU session resources, the gating configuration of the DS-TT and NW-TT ports is adjusted. Similarly, according to the method in (1), the threshold of the gating queue and the maximum buffer of the delay requirement is preferentially reduced, and the threshold of the port that does not meet the current delay is increased, and so on, until the delay requirements of all TSN service flows are met.
[0099] In addition to the situation where communication resources are sufficient, there may also be a situation where communication resources are tight. If the current resources cannot meet the latency requirements of all business flows, they need to be scheduled according to the TSN business priority, and the idle buffer should be scheduled to the bridge corresponding to the high-priority TSN business flow. If the high-priority business flow still loses packets after the idle buffer is fully scheduled, it is necessary to forcibly allocate bridge resources to the high-priority business in order of business priority from low to high, to ensure that the network transmits deterministically the TSN business flow priority from high to low.
[0100] This embodiment adopts the above scheme, specifically by receiving the first port information sent by the user device and the second port information sent by the network device; parsing the first port information and the second port information to obtain the delay parameter of the TSN service flow; and scheduling the service flow resources based on the delay parameter. Thus, the first port information sent by the user device and the second port information sent by the network device are parsed by the TSN device to obtain the delay parameter of the TSN service flow, and finally, based on the obtained delay parameter, the service flow is scheduled for resources, which solves the problem that the existing networking architecture does not consider resource scheduling from the whole path, resulting in low resource scheduling efficiency, and improves the efficiency of resource scheduling.
[0101] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 3 This embodiment further proposes a resource scheduling method, which is applied to a user equipment and includes step S08:
[0102] Step S08, sending the first port information to the TSN device, the TSN device receives the first port information and the second port information sent by the network device, and parses the first port information and the second port information to obtain the delay parameters of the TSN service flow, and performs resource scheduling on the service flow based on the delay parameters.
[0103] It should be clear that the user equipment of this embodiment can be multiple user equipment. For example, in an actual operation scenario, the TSN terminal in one user equipment needs to exchange information with the TSN terminal in another user equipment. At this time, the corresponding first port information will be sent to the TSN device. At this time, in addition to the information of its own TSN terminal, the first port information also includes information of another user equipment and its TSN terminal. The TSN device then receives the second port information sent by the TSN converter on the network side. It should be clear that in order to enable the two user equipment to interact, they are connected through the port in the TSN converter on the network side. At this time, the data will flow through the terminal side TSN device, UPF and the network side TSN device. Therefore, the TSN device can parse the first port information and the second port information to obtain the delay parameters of the TSN service flow, and then perform resource scheduling for the service flow based on the obtained delay parameters through the TSN device.
[0104] Specifically, before the above step S08, the step of sending the first port information to the TSN device, the method further includes:
[0105] Step S06, connecting the TSN terminal to the converter port of the terminal-side TSN converter through the TSN router;
[0106] Step S07: Connect the terminal-side TSN converter to the user equipment and access the user plane function component UPF through a preset local area network.
[0107] like Figure 4 As shown in the figure, in order to enable the TSN terminal to be connected to the Internet, the TSN terminal (such as the industrial computer mentioned above) is connected to the DS-TT through the TSN router, and then connected to the UE device, and the UE device is connected to the 5G network. Through the routing and other configurations of the TSN router, the TSN service flows of different service priorities are forwarded to different TSN router outbound ports, and then forwarded to different DS-TT ports, and then connected to the UE device. The process can be as follows: Based on different priorities, TSN service flows are connected to different DS-TT ports, and then connected to UE (user equipment) by different DS-TTs. For the convenience of subsequent description, different priority TSN service flows are defined as f tsn-i , the delay requirement is defined as t delay-i ;
[0108] After the user equipment is connected to the local area network, in order to transmit data faster, it is also necessary to connect the user equipment to the user plane function component UPF.
[0109] This embodiment uses the above solution, specifically by sending the first port information to the TSN device, the TSN device receives the first port information and the second port information sent by the network device, and parses the first port information and the second port information to obtain the delay parameter of the TSN service flow, and performs resource scheduling on the service flow based on the delay parameter. Thus, the TSN device parses the first port information sent by the user device and the second port information sent by the network device to obtain the delay parameter of the TSN service flow, and finally performs resource scheduling on the service flow based on the obtained delay parameter, which solves the problem that the existing networking architecture does not consider resource scheduling from the whole path, resulting in low resource scheduling efficiency, and improves the efficiency of resource scheduling.
[0110] For example, to help understand the implementation process of the resource scheduling method obtained by combining this embodiment with the above-mentioned embodiment 1, please refer to Figure 5 , Figure 5 A brief flow chart of a resource scheduling method is provided, specifically:
[0111] (1) The TSN terminal (511) and the TSN terminal (512) are respectively connected to different ports of the DS-TT (525);
[0112] (2) DS-TT (525), serving as the ingress and egress of the 5G system bridge, is connected to the UE (526) and connected to the RAN for the transmission of TSN data;
[0113] (3) NW-TT (5281) is deployed in the UPF (528) entity as the egress or ingress of the 5G system bridge for transmitting TSN data;
[0114] (4) In addition to DS-TT and NW-TT, the 5G-TSN bridge also includes AMF (523), SMF (524), PCF (521), TSN-AF (522), and PDU sessions negotiated by the above network elements. Among them, AMF (Access Management Function) is responsible for managing user access and authentication, processing user identity authentication, authorization and session management, SMF (Session Management Function) is mainly responsible for session management, and PCF (Policy Control Function) is responsible for the formulation and implementation of network policies.
[0115] (5) The UE (526) is added to the 5G LAN group through the UPF (528) configuration, which is equivalent to adding the TSN terminals 511 and 512 to a 5G LAN. The implementation method of 5G LAN and TSN fusion scheduling is described below for different entities;
[0116] (6) Setting a service performance indicator in the TSN-AF (522) entity to indicate the service delay requirement between the TSN terminal (511) and the TSN terminal (512), and marking the service flow ID;
[0117] (7) DS-TT (525) sends the port MAC address table to AF through UE (526), and NW-TT (5281) sends the port information to TSN-AF through UPF. TSN-AF itself also obtains 5G PDU session information;
[0118] (8) TSN-AF allocates two 5G-TSN bridges (550) as the transmission path between the two TSN terminals 511 and 512 according to the performance indicator requirements of the service flow ID and the algorithm described in the above embodiment through the acquired link information;
[0119] (9) TSN-AF monitors the real-time latency of each service flow ID (equivalent to monitoring the forwarding latency of each logical TSN bridge), compares it with the performance indicators of the service flow, and dynamically adjusts the bridge entity parameters according to the algorithm mentioned in the above embodiment;
[0120] It should be clear that Figure 5 The CUC (530) shown in the figure refers to a centralized unit controller, which is mainly responsible for coordinating and managing the operations of distributed units, while the CNC (540) Centralized Network Controller is responsible for centrally managing network resources and services.
[0121] Furthermore, if Figure 6 As shown, an actual business scenario is used to illustrate:
[0122] (1) 5G LAN networking: First, according to the 5G-TSN architecture, TSN devices (such as TSN1 to TSN5, TSN routers) are connected to DS-TT (including DS-TT1 and DS-TT2), and then connected to UE devices (including UE1 and UE2). Then, UE1 and UE2 are added to a 5G LAN group, which is equivalent to adding TSN1 to TSN5 to a 5G LAN.
[0123] (2) 5G-TSN bridge creation: Each DS-TT and NW-TT has multiple ports. The transmission path from a DS-TT port to a NW-TT port can form a bridge. A bridge ID is defined for each bridge. Therefore, a TSN service flow between two TSN devices (TSN1 to TSN5) needs to correspond to two bridges (for example, the TSN service flow between TSN1 and TSN3 devices has the following complete forwarding path: (TSN1--Bridge 1 (DS-TT1 port 1--PDU session 1--NW-TT port 1)-- Forwarding within UPF--Bridge 2 (NW-TT port 2--PDU session 2--DS-TT2 port 1)--TSN3), TSN-AF is responsible for monitoring the link delay of each bridge, and then calculating the uplink and downlink delays and whether the delay requirements of the TSN service flow can be met. When the delay requirements cannot be met, TSN-AF can adjust the PDU session QOS rules in the 5G-TSN bridge, the GCL threshold configuration on the DS-TT side and the NW-TT side, etc. to ensure the TSN service transmission priority. Among them, QoS (Quality of Service) in the network refers to a series of mechanisms and strategies to ensure the quality of service, and GCL (Guard Channel List) refers to the protection channel list, whose main function is to ensure that sufficient resources are reserved for high-priority communications or services in the network.
[0124] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the resource scheduling method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0125] This application also provides a resource scheduling device, please refer to Figure 7 , the resource scheduling is applied to time-sensitive TSN equipment, and the device includes:
[0126] The receiving module 10 is used to receive the first port information sent by the user equipment;
[0127] The parsing module 20 is used to receive the second port information sent by the TSN converter on the network side, and parse the first port information and the second port information to obtain the delay parameter of the TSN service flow;
[0128] The scheduling module 30 is used to schedule resources for the service flow through a preset TSN application based on the delay parameter.
[0129] The resource scheduling device provided by the present application adopts the resource scheduling method in the above embodiment, which can solve the technical problem that the resource scheduling efficiency is low because the existing networking architecture does not consider resource scheduling from the whole path. Compared with the prior art, the beneficial effects of the resource scheduling device provided by the present application are the same as the beneficial effects of the resource scheduling method provided by the above embodiment, and the other technical features in the resource scheduling device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0130] The present application provides a resource scheduling device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the resource scheduling method in the above-mentioned embodiment 1.
[0131] Reference below Figure 8 , which shows a schematic diagram of the structure of a resource scheduling device suitable for implementing the embodiment of the present application. The resource scheduling device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 8 The resource scheduling device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0132] like Figure 8As shown, the resource scheduling device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the resource scheduling device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the resource scheduling device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a resource scheduling device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0133] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0134] The resource scheduling device provided by the present application adopts the resource scheduling method in the above embodiment, which can solve the technical problem that the resource scheduling efficiency is low because the existing networking architecture does not consider resource scheduling from the whole path. Compared with the prior art, the beneficial effects of the resource scheduling device provided by the present application are the same as the beneficial effects of the resource scheduling method provided by the above embodiment, and the other technical features in the resource scheduling device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0135] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0136] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0137] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the resource scheduling method in the above-mentioned embodiment.
[0138] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0139] The computer-readable storage medium may be included in the resource scheduling device; or may exist independently without being assembled into the resource scheduling device.
[0140] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are executed by the resource scheduling device, the resource scheduling device: receives the MAC address table sent by the corresponding terminal-side TSN converter through the several user devices; receives the port information sent by the network-side TSN converter through the UPF; based on the MAC address table, port information and protocol data unit session data obtained by the TSN application record, performs resource scheduling on the pre-constructed service flow set through the TSN application to obtain a scheduling result.
[0141] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0142] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0143] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0144] The readable storage medium provided in the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned resource scheduling method, and can solve the technical problem that the existing networking architecture does not consider resource scheduling from the full path, resulting in low resource scheduling efficiency. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in the present application are the same as the beneficial effects of the resource scheduling method provided in the above-mentioned embodiment, and will not be repeated here.
[0145] The present application also provides a computer program product, including a computer program, which implements the steps of the resource scheduling method as described above when executed by a processor.
[0146] The computer program product provided by the present application can solve the technical problem that the existing networking architecture does not consider resource scheduling from the whole path, resulting in low resource scheduling efficiency. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the resource scheduling method provided by the above embodiment, which will not be repeated here.
[0147] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A resource scheduling method, characterized in that: The method is applied to a time-sensitive TSN device, and the method comprises: Receiving first port information sent by a user device and second port information sent by a network device; Parsing the first port information and the second port information to obtain a delay parameter of the TSN service flow; Based on the delay parameter, resources are scheduled for the service flow.
2. The method according to claim 1, characterized in that The step of parsing the first port information and the second port information to obtain the delay parameter of the TSN service flow includes: Parsing the first port information and the second port information through a preset TSN application to obtain a bridge identifier corresponding to the first port information and the second port information; Based on the bridge identifier, information is collected from a network-side TSN converter of the network device and a terminal-side TSN converter of the user device to obtain a TSN service flow; According to the TSN service flow, collecting session data of a protocol data unit PDU through the TSN application; The session data and TSN service flow are analyzed to obtain latency parameters.
3. The method according to claim 2, characterized in that Before the step of parsing the first port information and the second port information to obtain the delay parameter of the TSN service flow, the method further includes: Receiving the summary port information sent by the user equipment, and constructing a TSN service flow based on the summary port information and the network-side TSN converter; According to the TSN service flow, a bridge is constructed through a preset local area network, and an identifier of the bridge is defined and then written into the TSN application.
4. The method according to claim 3, characterized in that The steps of constructing a bridge through a preset local area network according to the TSN service flow, defining an identifier for the bridge and writing the identifier into the TSN application include: Based on the aggregated port information, the network-side TSN converter of the user plane function component UPF allocates the corresponding port to obtain the network-side port; A network bridge is constructed based on the port information and the network side port; Defining an identifier for the bridge to obtain a bridge identifier; The UPF identifier is associated with the bridge identifier to obtain an association result, and the association result is written into the TSN application.
5. The method according to claim 2, characterized in that The step of scheduling resources for the service flow through a preset TSN application based on the delay parameter includes: If the communication resources of the TSN device meet the preset usage resources, the TSN service flow is scheduled by the TSN application based on the session resources of the PDU; If the communication resources of the TSN device do not meet the preset usage resources, based on the priority of the TSN service flow, the TSN service flow is scheduled by the TSN application using the session resources of the PDU and the bridge resources in the TSN device.
6. A resource scheduling method, characterized in that: The method is applied to a user equipment, and the method comprises: The first port information is sent to the TSN device, and the TSN device receives the first port information and the second port information sent by the network device, and parses the first port information and the second port information to obtain the delay parameter of the TSN service flow, and performs resource scheduling on the service flow based on the delay parameter.
7. The method according to claim 6, characterized in that Before the step of sending the first port information to the TSN device, the method further includes: Connect the TSN terminal to the converter port of the TSN converter on the terminal side through the TSN router; The terminal-side TSN converter is connected to the user equipment and accessed to the user plane function component UPF through a preset local area network.
8. A resource scheduling device, characterized in that: The device is applied to a time-sensitive TSN device, and the device includes: A receiving module, used for receiving first port information sent by a user device and second port information sent by a network device; A parsing module, used for parsing the first port information and the second port information to obtain a delay parameter of a TSN service flow; The scheduling module is used to schedule resources for the service flow based on the delay parameter.
9. A resource scheduling device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the resource scheduling method according to any one of claims 1 to 7.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the resource scheduling method according to any one of claims 1 to 7 are implemented.
