Servicinization communication method and device based on time-sensitive network

By introducing time-sensitive network-based communication methods and devices in service-based communication technology, the shortcomings of the existing technology in real-time and reliability are solved, efficient and flexible management and scheduling of TSN network resources are achieved, and the system is improved real-time and reliability.

CN119449776APending Publication Date: 2025-02-14LUOYANG INST OF ELECTRO OPTICAL EQUIP OF AVIC
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing service-oriented communication technology has shortcomings in real-time and reliability, and it is difficult to effectively utilize time-sensitive network (TSN) technology to meet the needs of different scenarios.

Method used

By providing a service-based communication method and device based on a time-sensitive network, a service-based interface is built to provide TSN transmission capabilities for upper-layer applications, and efficient and flexible management and scheduling of TSN network resources are achieved.

Benefits of technology

It improves the real-time and reliability of the system, makes the application development more concise, and realizes efficient management and scheduling of TSN network resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119449776A_ABST
    Figure CN119449776A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of network communication. The invention provides a service communication method and device based on a time sensitive network. According to the embodiment of the invention, a first servitization communication component is constructed, and the first servitization communication component provides a servitization interface for an upper-layer application; through the first network transmission configuration module and the second network transmission configuration module, it is ensured that the upper layer application can transmit information through the TSN. And a registration center module is constructed to provide service registration and service discovery, so that access between services is more flexible. And the TSN technology can be provided for an upper layer application in a servitization manner, so that efficient and flexible management and scheduling of TSN network resources are realized, and the development of the application is simpler.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of network communication technology, and in particular to a service-oriented communication method and device based on a time-sensitive network. Background Art

[0002] With the development of the Industrial Internet and the Internet of Things, higher requirements are placed on the real-time and reliability of network communications. Traditional Ethernet often has difficulty ensuring determinism and low latency in data transmission when facing application scenarios with high real-time requirements. Time-Sensitive Networking (TSN), as a standard set of IEEE 802.1, aims to solve this problem and ensure the time determinism of data transmission through a series of mechanisms.

[0003] There are still challenges in the efficient use and flexible management of TSN technology. In particular, how to provide the high-performance characteristics of TSN to upper-layer applications in a simpler and more flexible form to meet the needs of different scenarios has become an urgent problem to be solved. Existing service-oriented communication technologies, such as remote procedure call (RPC), publish / subscribe (Pub / Sub), and registration centers, although widely used in distributed systems, still have certain deficiencies in real-time and reliability. Therefore, combining TSN technology with service-oriented communication technology to improve the real-time and reliability of the system has important application value and practical significance.

[0004] Therefore, it is necessary to improve one or more problems existing in the above-mentioned related technical solutions.

[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0006] The purpose of the embodiments of the present disclosure is to provide a service-oriented communication method and device based on a time-sensitive network, thereby overcoming one or more problems caused by limitations and defects of related technologies at least to a certain extent.

[0007] According to a first aspect of an embodiment of the present disclosure, a service-based communication method based on a time-sensitive network is provided, the method comprising: Respond to business instructions, generate and send service information; Receive registration information, generate a service request according to the registration information and service data, and send the service request; wherein the registration information includes address information and TSN parameters, the service data includes request data and subscription topics, and the service request includes a request message and a subscription message; Receive service response information, process the service response information, obtain a service message, and send the service message; wherein the service message includes a response message and a release message.

[0008] Further, when the service request is the request message, the request data is serialized, the request data is added to the unresponse queue, the registration information and the request data are encapsulated, and the request message is generated and sent; the response message is received and parsed to obtain the response data, the response data is deserialized, and the next step of processing is performed according to the response data; When the service request is the subscription message, the registration information and the subscription topic are encapsulated, and the subscription message is generated and sent; the publishing message is parsed and deserialized, and the publishing subscription message callback function is called to perform the next step of processing.

[0009] According to a second aspect of an embodiment of the present disclosure, a service-based communication device based on a time-sensitive network is provided, the device comprising: A service information sending module is used to respond to business instructions, generate and send service information; A first client service communication component, used to generate a service request according to registration information and service data, and send the service request; wherein the registration information includes address information and TSN parameters, the service data includes request data and subscription topics, and the service request includes a request message and a subscription message; The second client service communication component is used to receive service response information, process the service response information, obtain a service message, and send the service message; wherein the service message includes a response message and a release message.

[0010] Furthermore, the device also includes: The first network transmission configuration module includes a first time synchronization configuration submodule, a first traffic scheduling configuration submodule and a first traffic shaping configuration submodule; wherein, The first time synchronization configuration submodule is used to implement time synchronization between network devices; The first traffic scheduling configuration submodule is used to implement time-aware scheduling of data packets; The first traffic shaping configuration submodule is used to implement traffic control and shaping of data streams.

[0011] According to a third aspect of an embodiment of the present disclosure, a service-oriented communication method based on a time-sensitive network is provided, the method comprising: Sending registration information; wherein the registration information includes address information and TSN parameters; Respond to the service request, process the service request, generate and send service response information; wherein the service request includes a request message and a subscription message, and the service message includes a response message and a publishing message.

[0012] Further, when the service request is the request message, the request message is received and parsed to obtain request data; the corresponding service call is searched in the service mapping table according to the request data, and the request data is deserialized to obtain response data; the response data is serialized and encapsulated, and the response message is generated and sent; When the service request is the subscription message, The subscription message is received and parsed to obtain the subscription topic; the subscription topic is added to the subscription list to obtain the published data; the published data is encapsulated, and the publication message is generated and sent.

[0013] According to a fourth aspect of an embodiment of the present disclosure, a service-based communication device based on a time-sensitive network is provided, the device comprising: A service registration sending end, used to send registration information; wherein the registration information includes address information and TSN parameters; The service-side service communication component is used to respond to the service request, process the service request, generate and send service response information; wherein the service request includes a request message and a subscription message, and the service message includes a response message and a publishing message.

[0014] Furthermore, the device also includes: The second network transmission configuration module includes a second time synchronization configuration submodule, a second traffic scheduling configuration submodule and a second traffic shaping configuration submodule; wherein, The second time synchronization configuration submodule is used to implement time synchronization between network devices; The second traffic scheduling configuration submodule is used to implement time-aware scheduling of data packets; The second traffic shaping configuration submodule is used to implement traffic control and shaping of data streams.

[0015] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects: In the embodiments of the present disclosure, through the above-mentioned service-oriented communication method and device based on time-sensitive network, on the one hand, the first service-oriented communication component and the first service-oriented communication component are constructed to provide a service-oriented interface for the upper-layer application; through the first network transmission configuration module and the second network transmission configuration module, it is ensured that the upper-layer application can transmit information through TSN. On the other hand, TSN technology can be provided to the upper-layer application in a service-oriented manner to achieve efficient and flexible management and scheduling of TSN network resources, making application development more concise.

[0016] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0018] Figure 1 A step diagram showing a service-based communication method based on a time-sensitive network in an exemplary embodiment of the present disclosure; Figure 2 A schematic diagram showing a service-oriented communication device based on a time-sensitive network in an exemplary embodiment of the present disclosure; Figure 3 A step diagram showing another service-oriented communication method based on a time-sensitive network in an exemplary embodiment of the present disclosure; Figure 4 A schematic diagram showing another service-oriented communication device based on a time-sensitive network in an exemplary embodiment of the present disclosure; Figure 5 A diagram showing a message header structure in an exemplary embodiment of the present disclosure is shown; Figure 6 A logic flow chart of issuing an RPC request in an exemplary embodiment of the present disclosure is shown; Figure 7 A logical flow chart of publishing and subscribing in an exemplary embodiment of the present disclosure is shown; Figure 8 The figure shows the overall structure of a service-oriented communication device based on a time-sensitive network in an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0019] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0020] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0021] In this example implementation, a service-oriented communication method based on a time-sensitive network is first provided. The method can be applied to a terminal device, such as a mobile phone, a personal digital assistant, a laptop, a tablet computer, a smart watch, or other mobile terminal [flexibly adjusted according to specific circumstances, such as the terminal device is a server, etc.]. Figure 1 As shown in , the method may include the following steps: Step S101: Respond to a business instruction, generate and send service information; Step S102: receiving registration information, generating a service request according to the registration information and service data, and sending the service request; wherein the registration information includes address information and TSN parameters, the service data includes request data and subscription topics, and the service request includes a request message and a subscription message; Step S103: receiving service response information, processing the service response information, obtaining a service message, and sending the service message; wherein the service message includes a response message and a release message.

[0022] Specifically, when the service is started, the server sends registration information to the management node to register relevant information; wherein the registration information includes address information and TSN parameters.

[0023] The client responds to the business instruction, generates and sends service information.

[0024] The management node receives and stores registration information, wherein the registration information includes address information and TSN parameters; the management node responds to the service request, obtains the corresponding registration information according to the service request query, and sends the registration information.

[0025] The client receives the registration information, generates a service request according to the registration information and service data, and sends the service request; wherein the registration information includes address information and TSN parameters, the service data includes request data and subscription topics, and the service request includes a request message and a subscription message.

[0026] The server responds to the service request, processes the service request, generates and sends service response information; wherein the service request includes a request message and a subscription message, and the service message includes a response message and a publishing message.

[0027] The client receives the service response information, processes the service response information, obtains the service message, and sends the service message; wherein the service message includes a response message and a release message.

[0028] Through the above service-oriented communication method based on time-sensitive network, on the one hand, the first service-oriented communication component and the first service-oriented communication component are constructed to provide a service-oriented interface for the upper-layer application; through the first network transmission configuration module and the second network transmission configuration module, it is ensured that the upper-layer application can transmit information through TSN. On the other hand, TSN technology can be provided to the upper-layer application in a service-oriented manner to achieve efficient and flexible management and scheduling of TSN network resources, making application development more concise.

[0029] Next, we will refer to Figure 1 Each step of the above method in this example implementation is described in more detail.

[0030] In one embodiment, when sending an RPC request (i.e., a request message), the specific steps of the service-based communication method based on a time-sensitive network are as follows: When the service is started, the server sends registration information to the management node to register relevant information; wherein the registration information includes address information and TSN parameters.

[0031] The client responds to the business instruction, generates and sends service information.

[0032] The management node receives and stores the address information of the service provider and the attribute information related to service release; the management node responds to service requests, actively queries and obtains the address information of the service provider, realizes service discovery, obtains the corresponding registration information, and sends the registration information.

[0033] The client receives the registration information, serializes the request data, adds the client callback function to the unresponse queue, encapsulates the registration information and request data, generates and sends the request message.

[0034] The server receives and parses the request message to obtain the request data; searches the service mapping table for the corresponding service call according to the request data, and deserializes the request data to obtain the response data; serializes the response data, encapsulates it, generates and sends the response message.

[0035] The client receives the response message and parses it to obtain the response data; queries the callback function in the unresponse queue, deserializes the response data, and performs the next step of processing based on the response data.

[0036] In one embodiment, when publishing and subscribing (i.e., subscribing to a message), the specific steps of the service-based communication method based on a time-sensitive network are as follows: When the service is started, the server sends registration information to the management node to register relevant information; wherein the registration information includes address information and TSN parameters.

[0037] The client responds to the business instruction, generates and sends service information.

[0038] The management node receives and stores the address information of the service provider and the attribute information related to service release; the management node responds to service requests, actively queries and obtains the address information of the service provider, realizes service discovery, obtains the corresponding registration information, and sends the registration information.

[0039] The client encapsulates the registration information and subscription topic, generates and sends the subscription message.

[0040] The server receives and parses the subscription message to obtain the subscription topic; adds the subscription topic to the subscription list to obtain the published data; encapsulates the published data, generates and sends the publication message.

[0041] The client parses and deserializes the publish message and calls the publish-subscribe message callback function for the next step of processing.

[0042] It should be noted that, although the steps of the method in the present disclosure are described in a specific order in the accompanying drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step for execution, and / or one step may be decomposed into multiple steps for execution, etc. In addition, it is also easy to understand that these steps may be, for example, executed synchronously or asynchronously in multiple modules / processes / threads.

[0043] Furthermore, in this exemplary embodiment, a service-oriented communication device based on a time-sensitive network is also provided. Figure 2As shown in , the apparatus 100 may include a service information sending module 110, a first client service-oriented communication component 120, and a second client service-oriented communication component 139. Among them: The service information sending module 110 is used to generate and send service information in response to a business instruction; The first client service communication component 120 is used to generate a service request according to the registration information and the service data, and send the service request; wherein the registration information includes address information and TSN parameters, the service data includes request data and subscription topics, and the service request includes a request message and a subscription message; The second client service-oriented communication component 130 is used to receive service response information, process the service response information, obtain a service message, and send the service message; wherein the service message includes a response message and a release message.

[0044] In one embodiment, the device also includes: a first network transmission configuration module, including a first time synchronization configuration submodule, a first traffic scheduling configuration submodule and a first traffic shaping configuration submodule; wherein, the first time synchronization configuration submodule is used to realize time synchronization between network devices; the first traffic scheduling configuration submodule is used to realize time-aware scheduling of data packets; the first traffic shaping configuration submodule is used to realize traffic control and shaping of data flows.

[0045] Specifically, the first network transmission configuration is used to support TSN communication, including: a first time synchronization configuration, which implements time synchronization between network devices based on the IEEE 802.1AS standard; a first traffic scheduling configuration, which implements time-aware scheduling of data packets based on the IEEE 802.1Qbv standard; and a first traffic shaping configuration, which implements traffic control and shaping of data flows based on the IEEE 802.1Qci standard.

[0046] In one embodiment, the first client service-based communication component 120 includes a first client remote procedure call module and a first client publish-subscribe module; the second client service-based communication component includes a second client remote procedure call module and a second client publish-subscribe module; A first client remote procedure call module, used for, when the service request is the request message, serializing the request data, adding the request data to an unresponse queue, encapsulating the registration information and the request data, and generating and sending the request message; A second client remote procedure call module is used to receive and parse the response message to obtain response data, deserialize the response data, and perform further processing according to the response data; A first client publishing and subscription module, configured to encapsulate the registration information and the subscription topic, generate and send the subscription message when the service request is the subscription message; The second client publish-subscribe module is used to parse and deserialize the publish message and call the publish-subscribe message callback function to perform the next step of processing.

[0047] The first client publish-subscribe module and the second client publish-subscribe module both include a publish unit, a subscription unit and a message queue unit. Publishing unit, used by publishers to send messages to specific topics; Subscription unit, used for subscribers to subscribe to specific topics and receive related messages; The message queue unit is used to cache and schedule published messages to ensure the orderly and reliable transmission of messages.

[0048] Message Queue Unit: Priority queue, used to cache and schedule messages in priority order; Time-aware queues are used to schedule messages based on time sensitivity, ensuring low-latency delivery of critical messages.

[0049] Furthermore, in this example implementation, a service-oriented communication method based on a time-sensitive network is also provided. The method can be applied to a terminal device, such as a mobile phone, a personal digital assistant, a laptop, a tablet computer, a smart watch, or other mobile terminal [flexibly adjusted according to specific circumstances, such as the terminal device is a server, etc.]. Reference Figure 3 As shown in , the method may include the following steps: Sending registration information; wherein the registration information includes address information and TSN parameters; Respond to the service request, process the service request, generate and send service response information; wherein the service request includes a request message and a subscription message, and the service message includes a response message and a publishing message.

[0050] Furthermore, in this exemplary embodiment, a service-oriented communication device based on a time-sensitive network is also provided. Figure 4 As shown in , the apparatus 200 may include a service registration sending end 210 and a service-side service-oriented communication component 220. Among them: The service registration sending end 210 is used to send registration information; wherein the registration information includes address information and TSN parameters; The server-side service-oriented communication component 220 is used to respond to the service request, process the service request, generate and send service response information; wherein the service request includes a request message and a subscription message, and the service message includes a response message and a publishing message.

[0051] In one embodiment, a second network transmission configuration is used to support TSN communication, including: a second time synchronization configuration, which implements time synchronization between network devices based on the IEEE 802.1AS standard; a second traffic scheduling configuration, which implements time-aware scheduling of data packets based on the IEEE802.1Qbv standard; and a second traffic shaping configuration, which implements traffic control and shaping of data flows based on the IEEE 802.1Qci standard.

[0052] In one embodiment, the server-side service-oriented communication component 220 includes a server-side remote procedure call module and a server-side publish-subscribe module.

[0053] The server-side remote procedure call module is used to, when the service request is the request message, receive and parse the request message to obtain request data; query the corresponding service call in the service mapping table according to the request data, and deserialize the request data to obtain response data; serialize the response data, encapsulate it, generate and send the response message; The server-side publish-subscribe module is used to, when the service request is the subscription message, receive and parse the subscription message to obtain the subscription subject; add the subscription subject to the subscription list to obtain the published data; encapsulate the published data, generate and send the publication message.

[0054] Furthermore, the present application also includes a management node, including: a registration center module and a third network transmission configuration module.

[0055] The registration center module specifically includes: The service registration unit is used to register the metadata and network address of a service instance when it is started; Service discovery unit, used by clients to query address information of available service instances; The heartbeat detection unit is used to periodically check the health status of the registered service, trigger the fault handling mechanism when the service is unavailable, and clear the metadata and network address provided by the service.

[0056] The heartbeat detection unit includes: Heartbeat sender, used to periodically send heartbeat signals to detect the active status of service instances; Heartbeat receiver, which is used to receive and monitor heartbeat signals, detect status changes of service instances and trigger fault handling mechanisms when necessary.

[0057] The third network transmission configuration is used to support TSN communication, including: a third time synchronization configuration, which implements time synchronization between network devices based on the IEEE802.1AS standard; a third traffic scheduling configuration, which implements time-aware scheduling of data packets based on the IEEE 802.1Qbv standard; and a third traffic shaping configuration, which implements traffic control and shaping of data flows based on the IEEE 802.1Qci standard.

[0058] In a specific embodiment, a service-based communication device based on a time-sensitive network includes a management node, several clients (ie, device 100 ) and several servers (ie, device 200 ); wherein, The management node includes a registration module and a third network transmission configuration module.

[0059] The client includes a service information sending module 110, a first client service-oriented communication component 120, a second client service-oriented communication component 130 and a first network transmission configuration module.

[0060] The server includes a service registration sending end 210, a server service communication component 220 and a second network transmission configuration module.

[0061] Lightweight design: low communication overhead, using concise and easy-to-parse JSON data format to avoid lengthy XML or complex binary formats; supporting data compression to reduce the amount of data transmitted over the network and improve transmission efficiency; concise protocol header, simple protocol header information to reduce unnecessary metadata transmission; easy to integrate and deploy, does not rely on any third-party libraries, and is easy to integrate into various applications.

[0062] Client request: Synchronous RPC request will block the current process until receiving a response from the server or timing out; asynchronous RPC request uses asynchronous callback method, the client does not wait for the server to respond, and processes the result returned to the server in the callback function.

[0063] Network transmission configuration (i.e., first network transmission configuration module, first network transmission configuration module, and first network transmission configuration module) The network transmission configuration provides the TSN communication capability for nodes. Mission-critical areas have precise time requirements for network transmission. The TSN network aims to make the non-deterministic Ethernet have deterministic minimum latency, emphasizing ultra-low latency and high availability of transmission. Key technologies include time and synchronization, data adjustment and traffic shaping.

[0064] Timing and synchronization technology: TSN network ensures the time synchronization of each node in the network by using GPTP (Precision Time Protocol). This technology supports the time synchronization compatibility of different TSN devices and enhances the robustness of the clock synchronization system, allowing seamless switching to redundant clock sources when the main clock source fails. Through the GPTP protocol, the master clock in the TSN network regularly sends synchronization messages, and each node adjusts its own clock to synchronize with the master clock after receiving the message. This ensures that each node in the entire network has a common time reference.

[0065] Data scheduling and traffic shaping: By running scheduling algorithms such as 802.1Qbu and 802.1Qbv, TSN can shape the transmitted data to ensure that the delay of the data flow in different scenarios is limited to a controllable range. Using specific scheduling algorithms, such as 802.1Qbu and 802.1Qbv, TSN can shape the data flow and give priority to the transmission of key data, thereby ensuring that applications with high real-time requirements are met and the delay is controlled within a predetermined range.

[0066] Service-based communication components (i.e., first client service-based communication component 120, second client service-based communication component 130, and server service-based communication component 220) The service-oriented communication component consists of an RPC module and a publish-subscribe module. The component adopts a lightweight design and has the characteristics of simple architecture, small resource usage, and fast service response speed.

[0067] like Figure 5 As shown, the message header occupies a total of 24 bytes, including the message size, method length, method identifier, sequence number, message priority, and status code. The protocol header information is simple, reducing unnecessary metadata transmission.

[0068] like Figure 6 As shown, the process of RPC request is shown: a) The client serializes the request data, adds the request to the unresponse queue, and sends the request message; b) The server parses and deserializes the request data and searches the service mapping table for the corresponding service call; c) The server serializes the response data and sends a response message; d) The client parses and deserializes the response data and performs the next step based on the response data.

[0069] like Figure 7 As shown, the process of publishing and subscribing is shown: a) The client encapsulates the subscription topic and sends it to the server; b) The server adds the subscription topic to the subscription list (the server creates a subscription list for each connected client and queries the subscription list to see if there is a corresponding topic when publishing); c) The server serializes the published data and sends a published message; d) The client parses the published message and calls the publish-subscribe callback function for further processing.

[0070] In addition, the registration center can store the address information of the service provider and the attribute information related to service release. When the service is started, the relevant information is registered with the service registration unit. The client actively queries and obtains the address information of the service provider through the service discovery unit to realize service discovery. The registration center should monitor the effectiveness of the service and regularly check the health status of the registered service through the heartbeat detection unit. When the service is redeployed due to external factors, the invalid service address information should be removed from the registration center in a timely manner, and the valid service information should be updated. In a specific embodiment, Figure 8 As shown in the figure, it is a schematic diagram of the overall structure of service-oriented communication based on time-sensitive network. Its specific workflow is divided into: System initialization and service registration a) TSN network transmission configuration: The TSN network scheduler configures the priority, time window, and transmission plan of the TSN flow for each service based on the time sensitivity and bandwidth requirements of the service to ensure that the network transmission of different services meets the latency and reliability requirements.

[0071] b) Registration center initialization: When the system starts, the registration center module is initialized first, providing a centralized registration and query platform for each service node.

[0072] c) Service node registration: When each service node is started (such as Node B (i.e., the server)), it registers its service information with the registration center, including the service name, network address, port number, and TSN required parameters such as latency and bandwidth. The registration center stores this information in the service directory for subsequent queries.

[0073] Service-oriented communication a)RPC: When a node (such as node A (i.e., client) needs to call the service of another node (such as node B), node A first queries the registration center for the network address and TSN parameters of node B. After obtaining the TSN parameters of node B, node A selects the optimal TSN path based on these parameters to send a request to node B. After receiving the request, node B processes and generates a response, and finally returns the result to node A through the TSN network.

[0074] b) Publish and subscribe: Like RPC, when node A needs the published data of node B, node A first queries the network address and TSN parameters of node B, and sends subscription information such as TOPIC and subscription frequency to node B. After node B generates new data or events, it publishes the data or event message to node A through the TSN network.

[0075] Service health check and status monitoring a) Heartbeat detection: The registration center regularly sends heartbeat detection requests to each service node through the TSN network to monitor the operating status of each node.

[0076] Fault handling: If a service node fails to respond to a heartbeat request on time, the registry will determine that the node may be faulty and mark its status as unavailable. At the same time, the registry will notify related dependent services or subscribers.

[0077] Through the above-mentioned service-oriented communication method and device based on time-sensitive network, on the one hand, the first service-oriented communication component and the first service-oriented communication component are constructed to provide a service interface for the upper-layer application; through the first network transmission configuration module and the second network transmission configuration module, it is ensured that the upper-layer application can transmit information through TSN. Construct a registration center module to provide service registration and service discovery, so that access between services is more flexible. On the other hand, TSN technology can be provided to upper-layer applications in a service-oriented manner to achieve efficient and flexible management and scheduling of TSN network resources, making application development more concise.

[0078] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0079] It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiment of the present disclosure, the features and functions of two or more modules or units described above can be concretized in one module or unit. Conversely, the features and functions of a module or unit described above can be further divided into multiple modules or units for concretization. The components displayed as modules or units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the disclosed solution. Those of ordinary skill in the art can understand and implement it without paying creative work.

Claims

1. A service-oriented communication method based on a time-sensitive network, characterized in that: The method includes: Respond to business instructions, generate and send service information; Receive registration information, generate a service request according to the registration information and service data, and send the service request; wherein the registration information includes address information and TSN parameters, the service data includes request data and subscription topics, and the service request includes a request message and a subscription message; Receive service response information, process the service response information, obtain a service message, and send the service message; wherein the service message includes a response message and a release message.

2. The service-oriented communication method based on a time-sensitive network according to claim 1, characterized in that: When the service request is the request message, serialize the request data, add the request data to the unresponse queue, encapsulate the registration information and the request data, generate and send the request message; Receive and parse the response message to obtain response data, deserialize the response data, and perform further processing according to the response data; When the service request is the subscription message, encapsulating the registration information and the subscription topic, generating and sending the subscription message; Parse and deserialize the publish message, and call the publish-subscribe message callback function for the next step of processing.

3. A service-oriented communication device based on a time-sensitive network, characterized in that: The system includes: A service information sending module is used to respond to business instructions, generate and send service information; A first client service communication component, used to generate a service request according to registration information and service data, and send the service request; wherein the registration information includes address information and TSN parameters, the service data includes request data and subscription topics, and the service request includes a request message and a subscription message; The second client service communication component is used to receive service response information, process the service response information, obtain a service message, and send the service message; wherein the service message includes a response message and a release message.

4. The service-oriented communication method based on a time-sensitive network according to claim 3, characterized in that: The device also includes: The first network transmission configuration module includes a first time synchronization configuration submodule, a first traffic scheduling configuration submodule and a first traffic shaping configuration submodule; wherein, The first time synchronization configuration submodule is used to implement time synchronization between network devices; The first traffic scheduling configuration submodule is used to implement time-aware scheduling of data packets; The first traffic shaping configuration submodule is used to implement traffic control and shaping of data streams.

5. A service-oriented communication method based on a time-sensitive network, characterized in that: The method includes: Sending registration information; wherein the registration information includes address information and TSN parameters; Respond to the service request, process the service request, generate and send service response information; wherein the service request includes a request message and a subscription message, and the service message includes a response message and a publishing message.

6. The service-oriented communication method based on a time-sensitive network according to claim 5, characterized in that: When the service request is the request message, receiving and parsing the request message to obtain request data; searching the service mapping table for a corresponding service call according to the request data, and deserializing the request data to obtain response data; Serialize the response data, encapsulate it, generate and send the response message; When the service request is the subscription message, receiving and parsing the subscription message to obtain a subscription topic; The subscription topic is added to the subscription list to obtain the published data; the published data is encapsulated, and the published message is generated and sent.

7. A service-oriented communication device based on a time-sensitive network, characterized in that: The system includes: A service registration sending end, used to send registration information; wherein the registration information includes address information and TSN parameters; The service-side service communication component is used to respond to the service request, process the service request, generate and send service response information; wherein the service request includes a request message and a subscription message, and the service message includes a response message and a publishing message.

8. The service-oriented communication method based on a time-sensitive network according to claim 7, characterized in that: The device also includes: The second network transmission configuration module includes a second time synchronization configuration submodule, a second traffic scheduling configuration submodule and a second traffic shaping configuration submodule; wherein, The second time synchronization configuration submodule is used to implement time synchronization between network devices; The second traffic scheduling configuration submodule is used to implement time-aware scheduling of data packets; The second traffic shaping configuration submodule is used to implement traffic control and shaping of data streams.