A communication method, a communication device and a computer-readable storage medium

By introducing the DDS layer and UDP layer into the service architecture, efficient data interaction between network functions is achieved, and the problems of large overhead and complex interaction processes in the existing technology are solved, and the scalability and transmission efficiency of the architecture are improved.

CN114640729BActive Publication Date: 2025-02-14CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011483797.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-16
Publication Date
2025-02-14
Estimated Expiration
2040-12-16

AI Technical Summary

Technical Problem

In the existing service-oriented architecture, the communication protocol overhead between network functions is large, resulting in increased delays and complex interaction processes.

Method used

Using a service interface protocol stack based on the DDS layer and the UDP layer, efficient data interaction between network functions is achieved through the publish/subscribe mode of the DDS layer and the lightweight data encapsulation of the UDP layer.

Benefits of technology

It reduces the number of network functional entities and interaction complexity, reduces the delay overhead, improves the scalability of the service-oriented architecture, and improves the transmission efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114640729B_ABST
    Figure CN114640729B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a communication method, a communication device and a computer-readable storage medium. The method is applied to a communication device, the communication device communicates based on a service-based interface protocol stack, the service-based interface protocol stack at least includes an application layer, a data distribution service (DDS) layer and a user datagram protocol (UDP) layer; the method includes: the DDS layer receives a first request sent by the application layer, the first request at least includes subject information; the DDS layer determines the recipient information based on the subject information, and sends a request carrying the recipient information; the UDP layer encapsulates data according to the user datagram protocol based on the request, and sends the data according to the recipient information carried in the request.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a communication method, communication equipment and a computer-readable storage medium. Background Art

[0002] In the current service-oriented architecture, each network function (NF) communicates with each other using a service-oriented interface (SBI interface) protocol stack, which has a large protocol overhead.

[0003] The current service-oriented architecture requires many network functional entities and complex interaction processes:

[0004] 1) A network repository function (NRF) is required to manage service providers and service users, which not only has high requirements on NRF performance, but also requires the registration and discovery process to be completed before the actual application programming interface (API) call process can be carried out, resulting in increased latency; 2) A service control point (SCP) is required to forward and route messages, and the interaction process is complicated. Summary of the invention

[0005] To solve the existing technical problems, the embodiments of the present invention provide a communication method, a communication device and a computer-readable storage medium.

[0006] To achieve the above object, the technical solution of the embodiment of the present invention is implemented as follows:

[0007] An embodiment of the present invention provides a communication method, which is applied to a communication device, wherein the communication device communicates based on a service-based interface protocol stack, wherein the service-based interface protocol stack includes at least an application layer, a data distribution service (DDS, Data Distribution Services) layer, and a user datagram protocol (UDP, User Datagram Protocol) layer; the method includes:

[0008] The DDS layer receives a first request sent by the application layer, wherein the first request includes at least subject information;

[0009] The DDS layer determines the recipient information based on the subject information, and sends a request carrying the recipient information;

[0010] The UDP layer encapsulates the data according to the User Datagram Protocol based on the request, and sends the data according to the receiver information carried in the request.

[0011] In the above scheme, the first request also includes quality of service (QoS) information; the sending of the request carrying the recipient information includes: the DDS layer sends a second request, and the second request includes the recipient information, QoS information and security information.

[0012] In the above scheme, the service-oriented interface protocol stack also includes a real-time publish-subscribe (RTPS) layer; the method also includes:

[0013] The RTPS layer receives the second request sent by the DDS layer, performs a QoS guarantee function according to the QoS information in the second request, and performs a security protection function according to the security information in the second request;

[0014] The RTPS layer sends a third request carrying the recipient information.

[0015] In the above scheme, before the UDP layer encapsulates data according to the User Datagram Protocol based on the request, the method further includes: the UDP layer receives the third request sent by the RTPS layer;

[0016] Correspondingly, the UDP layer encapsulates data according to the User Datagram Protocol based on the request, including: the UDP encapsulates data according to the User Datagram Protocol based on the third request.

[0017] In the above solution, the service-oriented interface protocol stack further includes an IP layer and an L2 layer; and sending the data according to the recipient information carried in the request includes:

[0018] The UDP layer sends the data to the receiving party information through the IP layer and the L2 layer.

[0019] In the above scheme, the method further includes: the DDS layer performs a QoS guarantee function that the QoS meets a preset condition according to the QoS information in the first request.

[0020] The embodiment of the present invention further provides a communication device, the communication device comprising: a DDS layer processing unit and a UDP layer processing unit; wherein,

[0021] The DDS layer processing unit is configured to receive a first request sent by the application layer, wherein the first request includes at least subject information; determine recipient information based on the subject information, and send a request carrying the recipient information;

[0022] The UDP layer processing unit is used to encapsulate data according to the User Datagram Protocol based on the request, and send the data according to the receiver information carried in the request.

[0023] In the above scheme, the first request also includes QoS information;

[0024] The DDS layer processing unit is used to send a second request, wherein the second request includes the receiver information, QoS information and security information.

[0025] In the above scheme, the communication device also includes an RTPS layer processing unit, which is used to receive the second request sent by the DDS layer, perform a QoS guarantee function according to the QoS information in the second request, and perform a security protection function according to the security information in the second request; and is also used to send a third request carrying the recipient information.

[0026] In the above scheme, the UDP layer processing unit is also used to receive the third request sent by the RTPS layer; and encapsulate data according to the User Datagram Protocol based on the third request.

[0027] In the above solution, the communication device further includes an IP layer processing unit and an L2 layer processing unit;

[0028] The UDP layer processing unit is used to send the data to the receiving party information through the IP layer processing unit and the L2 layer processing unit.

[0029] In the above solution, the DDS layer processing unit is used to perform a QoS guarantee function that the QoS meets a preset condition according to the QoS information in the first request.

[0030] The embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the method described in the embodiment of the present invention are implemented.

[0031] An embodiment of the present invention further provides a communication device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in the embodiment of the present invention when executing the program.

[0032] The embodiments of the present invention provide a communication method, a communication device, and a computer-readable storage medium. The method is applied to a communication device, and the communication device communicates based on a service-oriented interface protocol stack, and the service-oriented interface protocol stack includes at least an application layer, a DDS layer, and a UDP layer; the method includes: the DDS layer receives a first request sent by an application layer, and the first request includes at least subject information; the DDS layer determines recipient information based on the subject information, and sends a request carrying the recipient information; the UDP layer encapsulates data according to the user datagram protocol based on the request, and sends the data according to the recipient information carried in the request. By adopting the technical solution of the embodiment of the present invention, DDS is applied to the service-oriented interface protocol stack to realize the service-oriented interface of the user plane, and data can be exchanged between network functions based on the publish / subscribe mode provided by DDS, without the need for NRF to manage service providers and service users, that is, there is no need to register and discover with NRF; by utilizing DDS, a service-oriented middleware, the number of network function entities and the complexity of interaction are reduced while ensuring functional integrity, the latency overhead is reduced, and the scalability of the service-oriented architecture is improved; and, in the embodiment of the present invention, data encapsulation is performed through the UDP layer, the UDP control options are relatively few, the transmission latency is small, and the transmission efficiency is also improved from another aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A schematic diagram of the composition of the system architecture in the related technical solution;

[0034] Figure 2 A schematic diagram of interaction for interconnecting network functions in a related technical solution;

[0035] Figure 3 A schematic diagram of a protocol stack in a related technical solution;

[0036] Figure 4 The communication method of the present invention is shown in FIG. Figure 1 ;

[0037] Figure 5 The DDS layer in the communication method of the embodiment of the present invention;

[0038] Figure 6 The communication method of the present invention is shown in FIG. Figure 2 ;

[0039] Figure 7 A schematic diagram of a protocol stack according to an embodiment of the present invention;

[0040] Figure 8 A schematic diagram of an interaction flow of a communication method according to an embodiment of the present invention;

[0041] Fig. 9A schematic diagram of an application scenario of the communication method according to an embodiment of the present invention;

[0042] Fig.10 The structure diagram of the communication device according to the embodiment of the present invention is shown in FIG. Figure 1 ;

[0043] Fig.11 The structure diagram of the communication device according to the embodiment of the present invention is shown in FIG. Figure 2 ;

[0044] Fig.12 The figure is a schematic diagram of the hardware structure of the communication device according to the embodiment of the present invention. DETAILED DESCRIPTION

[0045] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0046] Before describing the embodiments of the present application in detail, a brief description is first given of the service-oriented architecture and protocol stack in the related art.

[0047] Figure 1 It is a schematic diagram of the composition of the system architecture in the related technical solution; Figure 1 As shown, the system may include: user equipment (UE), access network equipment and other core network equipment; wherein the access network equipment is represented by a radio access network (RAN) or an access network (AN) in the figure, and (R)AN is used to represent the access network equipment in the figure.

[0048] The core network equipment may include at least one of the following devices: user plane function (UPF, User Plane Function), access and mobility management function (AMF, Access and Mobility Management Function), session management function (SMF, Session Management Function), policy control function (PCF, Policy Control Function), unified data management function (UDM, Unified Data Management), authentication service function (AUSF, Authentication Server Function), network exposure function (NEF, Network Exposure Function), network slice selection function (NSSF, Network Slice Selection Function), NRF, application function (AF, Application Function), data network (DN, Data Network), and SCP.

[0049] like Figure 1 As shown, the logic control function is abstracted into an independent network function component, called a network function. Multiple network functions are shown above.

[0050] Figure 1 In the system architecture shown in Figure 1, NRF provides network function registration, discovery, network service authorization, etc., to achieve on-demand configuration of network functions and services and interconnection between NFs. Figure 2 shown.

[0051] Each NF interacts with each other according to the service-oriented interface and establishes a link using a unified SBA communication protocol. The service-oriented interaction mode is simplified to two modes: request-response mode and subscription-notify mode.

[0052] Figure 3 is a schematic diagram of a protocol stack in a related technical solution; Figure 3 As shown, the service-oriented interface protocol stack in the related technical solution includes:

[0053] Application layer: The application layer uses JSON as the serialization protocol and OpenAPI as the interface description language to define the service functions provided by each Function.

[0054] HTTP / 2 layer: Hypertext Transfer Protocol 2.0. It was developed by the HTTPBis (Hypertext Transfer Protocol Bis) working group of the Internet Engineering Task Force (IETF). It is mainly to solve the problem of poor performance of HTTP 1.1;

[0055] The Transport Layer Security (TLS) layer, which provides confidentiality and data integrity between two communicating applications;

[0056] Transmission Control Protocol (TCP) layer: a connection-oriented, reliable, byte stream-based communication protocol.

[0057] The service-oriented interface protocol stack also includes an IP layer and an L2 layer.

[0058] The TCP layer is a protocol with a confirmation mechanism, that is, each data packet sent requires confirmation. If a data packet is lost, no confirmation will be received, and the sender must resend the data packet. In order to ensure the reliability of transmission, TCP has established a three-conversation confirmation mechanism, that is, before officially sending or receiving data, a reliable connection must be established with the other party.

[0059] It can be seen that in the current service-oriented system architecture, only the control plane is service-oriented, and the user plane has not achieved true service-oriented. Since the current SBI interface is based on TCP, the TCP protocol overhead for the user plane is large, so the current user plane interface still uses the previous UDP and GTP-U protocol stack structure. In addition, the target service-oriented system architecture has a complex interaction process.

[0060] As a technical specification for distributed real-time communication middleware, DDS can complete real-time interaction of messages based on the UDP transmission protocol with lower overhead, which can reduce latency. At the same time, its automatic discovery function, QoS mechanism and integrity protection function can reduce the functional entities of the service-oriented architecture and simplify the message interaction process between functional entities. Therefore, the present invention proposes to apply DDS to the interface protocol stack of the service-oriented architecture. Based on this, the following embodiments of the present invention are proposed.

[0061] An embodiment of the present invention provides a communication method, which is applied to a communication device, wherein the communication device communicates based on a service-based interface protocol stack, and the service-based interface protocol stack at least includes an application layer, a DDS layer, and a UDP layer. Figure 4 The communication method of the present invention is shown in FIG. Figure 1 ;like Figure 4 As shown, the method includes:

[0062] Step 101: The DDS layer receives a first request sent by the application layer, where the first request includes at least subject information;

[0063] Step 102: The DDS layer determines the recipient information based on the subject information, and sends a request carrying the recipient information;

[0064] Step 103: The UDP layer encapsulates the data according to the User Datagram Protocol based on the request, and sends the data according to the receiver information carried in the request.

[0065] DDS adopts a publish / subscribe model, emphasizes data-centricity, and provides a rich set of QoS strategies to ensure real-time, efficient, and flexible data distribution, meeting the needs of various distributed real-time communication applications.

[0066] In this embodiment, the application layer distributes messages according to specific topics (topic information), that is, the application layer sends requests corresponding to each message to the DDS layer, and the requests include the topic information corresponding to each message. The DDS layer can determine the receiver information based on the topic information, which makes the coupling relationship between the data sender (or publisher) and the data receiver (or subscriber) looser. The application layer does not need to care about the destination address and number of the receiver, and the receiver does not need to care about the sending address and number of the sender. The data sender (or publisher) and the data receiver (or subscriber) only need to exchange data based on the topic information. Figure 2 As shown, publisher A and subscriber C establish a connection based on topic 1 to exchange data; while publisher B establishes a connection with subscribers D and E based on topic 2 to exchange data.

[0067] In some optional embodiments, the DDS layer connects data senders (or publishers) and data receivers (or subscribers) that can communicate with each other through domains, and only data senders (or publishers) and data receivers (or subscribers) in the same domain can interact with data.

[0068] In this embodiment, the subject information can be represented by a subject identifier or a subject symbol. The subject information is used to uniquely identify a certain type of data or a certain functional data. The DDS layer determines the receiver information through the subject information. Optionally, before data interaction, the message sender (such as a publisher) sends information (for example, sending information in the form of broadcast), and the information may include subject information; optionally, the information may also include QoS information; each message; the message receiver (such as a subscriber) receives the information and identifies the subject information in the information. If the message receiver (such as a subscriber) identifies that the subject information in the information matches its own subject information, then the association relationship between the message sender (such as a publisher) and the message receiver (such as a subscriber) can be established, and the data link between the message sender (such as a publisher) and the message receiver (such as a subscriber) can be established. Exemplarily, if the communication device is a message sender (such as a publisher), the DDS layer can establish an association relationship between each subject information and the corresponding receiver (such as a subscriber) information; if the communication device is a message receiver (such as a subscriber), the DDS layer can establish an association relationship between each subject information and the corresponding sender (such as a publisher) information. In any case, when there is a message to be sent at the application layer, the DDS layer can search for the association relationship through the subject information carried in the first request to determine the corresponding recipient information, which can be the above-mentioned subscriber information or the above-mentioned publisher information.

[0069] In this embodiment, the data is encapsulated according to the User Datagram Protocol (UDP) through the UDP layer. The UDP layer provides a method for applications to send encapsulated IP data packets without establishing a connection. UDP has fewer control options, less delay in data transmission, and high data transmission efficiency.

[0070] Based on the above embodiments, an embodiment of the present invention further provides a communication method, which is applied to a communication device, wherein the communication device communicates based on a service-based interface protocol stack, and the service-based interface protocol stack includes at least an application layer, a DDS layer, an RTPS layer, and a UDP layer. Figure 6 The communication method of the present invention is shown in FIG. Figure 2 ;like Figure 6 As shown, the method includes:

[0071] Step 201: The DDS layer receives a first request sent by the application layer, wherein the first request includes at least subject information and QoS information;

[0072] Step 202: The DDS layer determines the recipient information based on the subject information and sends a second request, where the second request includes the recipient information, QoS information and security information;

[0073] Step 203: The RTPS layer receives the second request sent by the DDS layer, performs a QoS guarantee function according to the QoS information in the second request, and performs a security protection function according to the security information in the second request;

[0074] Step 204: The RTPS layer sends a third request carrying the recipient information;

[0075] Step 205: The UDP layer receives the third request sent by the RTPS layer; encapsulates data according to the User Datagram Protocol based on the third request, and sends the data according to the recipient information carried in the request.

[0076] The specific description of steps 201 to 202 of this embodiment can refer to the description of steps 101 to 102 in the above-mentioned embodiment. The difference is that, in this embodiment, the DDS layer provides identity authentication, access control, and security protection (such as security mechanisms such as data encryption and data integrity protection) for data distribution. The DDS security mechanism will not affect the performance of real-time communication and can meet the requirements of the communication system for encryption and integrity protection. Based on this, in this embodiment, the second request sent by the DDS layer includes the recipient information, QoS information and security information; wherein the security information may include encryption and integrity protection information, for example.

[0077] In some optional embodiments of the present invention, the method further comprises: the DDS layer performs a QoS guarantee function that the QoS meets a preset condition according to the QoS information in the first request. In this embodiment, the DDS layer can perform a QoS guarantee function with a lower real-time requirement.

[0078] In this embodiment, since UDP data has no reliability guarantee, sequence guarantee, flow control field, etc., the reliability is guaranteed by a higher layer protocol. Therefore, the QoS guarantee function is performed by the RTPS layer.

[0079] RTPS is designed to support the unique requirements of data distribution systems and is designed to run over multicast and connectionless best-effort transmission methods (such as UDP / IP). The main features of the RTPS protocol include:

[0080] High performance and quality of service attributes, providing best-effort and reliable communications for real-time applications over standard IP networks;

[0081] Fault tolerance, allowing the creation of communication networks with no single point of failure;

[0082] Configurability, balancing the reliability and timeliness requirements of data transmission;

[0083] Type safety to prevent application programming errors from affecting the operation of remote nodes.

[0084] In some optional embodiments of the present invention, the service-oriented interface protocol stack also includes an IP layer and an L2 layer; sending the data according to the recipient information carried in the request includes: the UDP layer sends the data to the recipient information through the IP layer and the L2 layer.

[0085] Figure 7 Schematic diagram of a protocol stack according to an embodiment of the present invention; Figure 7 As shown, compared with the related art, the service-oriented interface protocol stack of the embodiment of the present invention replaces the HTTP / 2 layer, TLS layer and TCP layer in the related art with the DDS layer, RTPS layer and UDP layer, and realizes the service-oriented interface of the user plane by applying DDS to the service-oriented interface protocol stack. Data can be exchanged between network functions based on the publish / subscribe mode provided by DDS, and there is no need for NRF to manage service providers and service users, that is, there is no need to register and discover with NRF; using DDS, a service-oriented middleware, while ensuring functional integrity, reduces the number of network function entities and the complexity of interaction, reduces latency overhead, and improves the scalability of the service-oriented architecture; and, the embodiment of the present invention performs data encapsulation through the UDP layer, has fewer UDP control options, and has a small transmission delay, which also improves transmission efficiency on the other hand, and performs QoS guarantee function through the RTPS layer.

[0086] The communication method according to the embodiment of the present invention is described below with reference to a specific example.

[0087] Figure 8 FIG. 1 is a schematic diagram of an interaction flow of a communication method according to an embodiment of the present invention; Figure 8 As shown, the method includes:

[0088] Step 31: The application layer sends a message sending request by the functional entity as needed. The message sending request must carry at least subject information and QoS information of the message; wherein the subject information is used to determine the message recipient, and the QoS information facilitates the DDS layer and the RTPS layer to perform QoS guarantee.

[0089] Here, the message sending request is equivalent to the first request in the aforementioned embodiment.

[0090] Step 32: The DDS layer receives the message sending request sent by the application layer, determines the corresponding recipient information according to the subject information carried in the message sending request, and completes the QoS guarantee function for messages with low real-time requirements.

[0091] Among them, the DDS layer determines the message receiver corresponding to the subject information in the domain, and completes part or all of the QoS functions according to the capabilities.

[0092] Step 33: After the processing is completed, the DDS layer sends a message sending request, which carries the recipient information, QoS information, and security information for encryption and integrity protection;

[0093] Here, the message sending request is equivalent to the second request in the aforementioned embodiment.

[0094] Step 34: The RTPS layer receives the message sending request sent by the DDS layer, provides a real-time QoS guarantee function according to the QoS information in the message sending request, and performs a security protection function according to the security information in the message sending request.

[0095] Step 35: The RTPS layer sends a message carrying the receiver information to the UDP layer, notifying the bottom layer to send the message.

[0096] Step 36: The transport layers such as the UDP layer, IP layer, and L2 layer finally send the message.

[0097] It should be noted that the processing methods of the IP layer and the L2 layer adopt the relevant technical solutions (for example Figure 3 The processing methods of the IP layer and L2 layer of the protocol stack shown in the figure will not be repeated here.

[0098] Fig. 9 Schematic diagram of application scenario of the communication method according to an embodiment of the present invention; Fig. 9 As shown, using Figure 1 The system architecture shown in the figure, the registration / discovery process of adding, deleting, and modifying network functions requires NRF identification and control. By adopting the new service-oriented interface shown in the embodiment of the present invention, by applying the DDS layer to the service-oriented interface protocol stack, its dynamic automatic discovery mechanism can be used to discover changes in network functions (including the addition, deletion, and modification of network functions), without the need for the NRF entity to control and manage each network function.

[0099] The domain in DDS connects all functional entities that can communicate with each other, and it represents a communication plane: only publishers and subscribers in the same domain can interact with each other. The domain isolation function can realize the slicing function required by the communication network, so the technical solution of the embodiment of the present invention does not need Figure 1 The NSSF entity in manages slices.

[0100] The embodiment of the present invention uses the data distribution function of the DDS layer to dynamically calculate the message recipients and intelligently notify the participants of the changes, so there is no need for SCP to forward and route the messages.

[0101] Based on this, Fig. 9The system architecture shown reduces NRF, NSSF, and SCP. For the control plane, it reduces the complexity of interaction between functional entities and reduces the message interaction delay. The DDS layer and RTPS layer can also use the real-time QoS guarantee mechanism to further reduce the message interaction delay.

[0102] For the user plane, due to the current Figure 2 The SBI interface shown is based on the TCP protocol, and the user plane uses a large amount of TCP protocol overhead, which is the main reason why the user plane does not currently use a service-oriented interface. Figure 7 The new service-oriented interface shown is based on UDP, and the user plane can also use the new interface to implement the service-oriented architecture. In this way, by implementing the service-oriented architecture of the user plane, the overall architecture is improved and the scalability of the entire architecture is truly realized.

[0103] The embodiments of the present invention are not limited to Fig. 9 The network function division method shown in the figure only uses the existing network functions as an example to illustrate the architectural changes and benefits brought by the new interface.

[0104] The embodiment of the present invention also provides a communication device. Fig.10 The structure diagram of the communication device according to the embodiment of the present invention is shown in FIG. Figure 1 ;like Fig.10 As shown, the communication device includes: a DDS layer processing unit 41 and a UDP layer processing unit 42; wherein,

[0105] The DDS layer processing unit 41 is configured to receive a first request sent by the application layer, wherein the first request includes at least subject information; determine recipient information based on the subject information, and send a request carrying the recipient information;

[0106] The UDP layer processing unit 42 is used to encapsulate data according to the User Datagram Protocol based on the request, and send the data according to the recipient information carried in the request.

[0107] In some optional embodiments of the present invention, the first request further includes QoS information; the DDS layer processing unit 41 is used to send a second request, wherein the second request includes the recipient information, QoS information and security information.

[0108] In some optional embodiments of the present invention, Fig.11 As shown, the communication device also includes an RTPS layer processing unit 43, which is used to receive the second request sent by the DDS layer processing unit, perform a QoS guarantee function according to the QoS information in the second request, and perform a security protection function according to the security information in the second request; and is also used to send a third request carrying the recipient information.

[0109] In some optional embodiments of the present invention, the UDP layer processing unit 42 is further configured to receive the third request sent by the RTPS layer processing unit; and encapsulate data according to the User Datagram Protocol based on the third request.

[0110] In some optional embodiments of the present invention, the communication device further includes an IP layer processing unit and an L2 layer processing unit;

[0111] The UDP layer processing unit 42 is used to send the data to the receiving party through the IP layer processing unit and the L2 layer processing unit.

[0112] In some optional embodiments of the present invention, the DDS layer processing unit 41 is used to perform a QoS guarantee function that the QoS meets a preset condition according to the QoS information in the first request.

[0113] In the embodiment of the present invention, the DDS layer processing unit 41, the RTPS layer processing unit 43, the UDP layer processing unit 42, the IP layer processing unit and the L2 layer processing unit in the communication device can all be implemented by a central processing unit (CPU), a digital signal processor (DSP), a microcontroller unit (MCU) or a programmable gate array (FPGA) in the communication device in actual applications.

[0114] It should be noted that: when the communication device provided in the above embodiment performs communication, only the division of the above program modules is used as an example. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the communication device is divided into different program modules to complete all or part of the above-described processing. In addition, the communication device and the communication method embodiment provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0115] The embodiment of the present invention also provides a communication device. Fig.12 FIG. 1 is a schematic diagram of the hardware structure of a communication device according to an embodiment of the present invention. Fig.12 As shown, the communication device includes a memory 52, a processor 51, and a computer program stored in the memory 52 and executable on the processor 51. When the processor 51 executes the program, the steps of the communication method described in the embodiment of the present invention are implemented.

[0116] Optionally, the communication device further includes a network interface 53. The various components in the communication device are coupled together via a bus system 54. It is understood that the bus system 54 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 54 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Fig.12 Various buses are labeled as bus system 54 .

[0117] It can be understood that the memory 52 can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The memory 52 described in the embodiments of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.

[0118] The method disclosed in the above embodiment of the present invention can be applied to the processor 51, or implemented by the processor 51. The processor 51 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 51 or the instruction in the form of software. The above processor 51 can be a general-purpose processor, a DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The processor 51 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiment of the present invention. The general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor can be combined to execute. The software module can be located in a storage medium, which is located in the memory 52. ​​The processor 51 reads the information in the memory 52 and completes the steps of the above method in combination with its hardware.

[0119] In an exemplary embodiment, the communication device may be implemented by one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), FPGA, general purpose processor, controller, MCU, microprocessor, or other electronic components to execute the aforementioned method.

[0120] In an exemplary embodiment, the present invention also provides a computer-readable storage medium, such as a memory 52 including a computer program, which can be executed by a processor 51 of a communication device to complete the steps of the aforementioned method. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM; or it can be various devices including one or any combination of the above memories.

[0121] The computer-readable storage medium provided by the embodiment of the present invention stores a computer program, which implements the steps of the communication method described in the embodiment of the present invention when executed by a processor.

[0122] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0123] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0124] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0125] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

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

[0127] In addition, all functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately used as a unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0128] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium, which, when executed, executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, disks or optical disks.

[0129] Alternatively, if the above-mentioned integrated unit of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention can be essentially or partly reflected in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, RAM, magnetic disks or optical disks.

[0130] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A communication method, characterized in that: The method is applied to a communication device, the communication device communicates based on a service-based interface protocol stack, the service-based interface protocol stack at least includes an application layer, a data distribution service DDS layer, a real-time publishing and subscription RTPS layer, a user datagram protocol UDP layer, an IP layer and an L2 layer; the method includes: The DDS layer receives a first request sent by the application layer, wherein the first request includes at least subject information; the first request also includes quality of service QoS information; The DDS layer determines the recipient information based on the subject information and sends a second request; the second request includes the recipient information, QoS information and security information; The RTPS layer receives the second request sent by the DDS layer, performs a QoS guarantee function according to the QoS information in the second request, and performs a security protection function according to the security information in the second request; The RTPS layer sends a third request carrying the recipient information; The UDP layer receives the third request sent by the RTPS layer; The UDP layer encapsulates the data according to the User Datagram Protocol based on the third request, and sends the data to the receiving party information through the IP layer and the L2 layer.

2. The method according to claim 1, characterized in that The method further comprises: The DDS layer performs a QoS guarantee function that the QoS meets a preset condition according to the QoS information in the first request.

3. A communication device, characterized in that: The communication device communicates based on a service-based interface protocol stack, which includes at least an application layer, a data distribution service DDS layer, a real-time publishing and subscription RTPS layer, a user datagram protocol UDP layer, an IP layer, and an L2 layer; the communication device includes: a DDS layer processing unit, an RTPS layer processing unit, a UDP layer processing unit, an IP layer processing unit, and an L2 layer processing unit; wherein, The DDS layer processing unit is configured to receive a first request sent by the application layer, wherein the first request includes at least subject information and also includes quality of service (QoS) information; determine recipient information based on the subject information and send a second request; the second request includes the recipient information, QoS information and security information; The RTPS layer processing unit is used to receive the second request sent by the DDS layer processing unit, perform a QoS guarantee function according to the QoS information in the second request, and perform a security protection function according to the security information in the second request; and is also used to send a third request carrying the recipient information; The UDP layer processing unit is used to receive the third request sent by the RTPS layer processing unit; encapsulate data according to the user datagram protocol based on the third request, and send the data to the receiving party information through the IP layer processing unit and the L2 layer processing unit.

4. The communication device according to claim 3, characterized in that The DDS layer processing unit is used to perform a QoS guarantee function that the QoS meets a preset condition according to the QoS information in the first request.

5. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 2 are implemented.

6. A communication device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps of the method according to any one of claims 1 to 2 are implemented.