A lightweight communication system, authentication and authorization method for TSN

By establishing an authentication and authorization communication framework in TSN communication, using the central gateway and end controller modules for identity authentication and authorization, combined with the lightweight LwIP protocol stack and time-aware shaper, the problem of abnormal traffic security and delay is solved, and the implementation Efficient and secure TSN communication.

CN116232609BActive Publication Date: 2024-10-29HUNAN UNIV CHONGQING RES INST
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310248953.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-15
Publication Date
2024-10-29
Estimated Expiration
2043-03-15

AI Technical Summary

Technical Problem

In the existing technology, in TSN communication, communication security cannot be guaranteed after abnormal traffic breaks through the protective barrier, and the traffic generates computing overhead and transmission delay through the protection module.

Method used

A lightweight communication system for TSN is designed. Through hardware modules and software modules that work together with software and hardware, an authentication and authorization communication framework is established. The central gateway module and end controller module are used for identity authentication and authorization, and lightweight The LwIP protocol stack and time-aware shaper prioritize the use of TT streams for authorization and AVB streams for authentication, reducing overhead and delay.

Benefits of technology

It realizes node identity authentication and authorization communication in TSN communication, reduces computing overhead and transmission delay, ensures communication security and high bandwidth, and improves the real-time and deterministic nature of the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116232609B_ABST
    Figure CN116232609B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of computer communication network security, and discloses a TSN lightweight communication system, authentication and authorization method. It includes: a hardware module and a software module that realize the collaborative working mode of software and hardware, the software module saves the management configuration, configures the gate control list, and completes the configuration time calculation; the hardware module saves the operation configuration, completes the configuration switching and gate execution operations; the hardware module includes a central gateway module, which is composed of a master node and a TSN switch, and communicates with the end controller module through a lightweight TSN protocol; the end controller module is composed of multiple slave nodes, and receives the public key information of the master node for authentication. The present invention designs an authentication and authorization communication framework based on TSN communication. A node identity authentication and authorization communication mechanism is built, and the traffic is configured: a lightweight TSN communication is designed to ensure high bandwidth and low consumption of network communication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer communication network security, and in particular to a TSN-oriented lightweight communication system, authentication and authorization method. Background Art

[0002] Traditional Ethernet avoids DoS attacks and limits the number and throughput of simultaneous connections to the network by setting up firewalls at Layer 3 and Layer 4 of the OSI model. In addition, there are ways to use cryptography. The cryptographic IEEE802.1AEMAC Security (MAC-Sec) provides specifications for verifying the content of message payloads in fixed networks and specifies how to encrypt the content of message payloads to provide confidentiality in addition to message authentication. In addition to these traditional Ethernet security protocols, there are also protocols such as Secure Sockets Layer (SSL), Transport Layer Security (TLS), and Datagram Transport Layer Security (DTLS) that can be used to improve security.

[0003] As an extension of the Ethernet data link layer, TSN needs to protect the second layer, so it is necessary to consider flow filtering and supervision (this depends on how to use different detection parameters, such as MAC addresses, VLAN IDs, etc.). The 802.1Qci protocol (Per-Stream Filtering and Policing, PSFP) proposed by TSN provides flow filtering and supervision functions for messages arriving at the ingress port of the bridge to prevent traffic overload, thereby improving network security.

[0004] The PSFP protocol of the prior art mainly includes: a stream filter module (StreamFilters), a stream gating module (StreamGates) and a stream meter module (FlowMeters). The specific steps are as follows:

[0005] Step 1: The stream filter module identifies whether the traffic is controlled by the filter in the stream filter table according to the stream filter identifier (StreamID, which defines the order of the stream filter table) and priority information defined therein. If it matches, it passes through the stream filter. If it does not match the stream filter, it is discarded. If the length of the data packet entering the stream filter exceeds the defined maximum service data unit (SDU) size, it will be discarded.

[0006] Step 2: After the traffic passes through the flow filter module, it enters the specified flow gate and is transmitted in sequence according to the flow gate status. When the gate is open, the frame is allowed to pass, and when the gate is closed, the frame is not allowed to pass. If the frame is not sent on time within the correct time window, it will be discarded when the gate is closed.

[0007] Step 3: After passing through the flow gating module, the traffic flows into the flow meter module. The parameters in the flow meter module determine whether the traffic rate exceeds the limit. If it exceeds the limit, the traffic is controlled by limiting or blocking according to the configuration.

[0008] The PSFP protocol in the prior art is similar to the mechanism of a firewall, which can screen and filter data before forwarding and control data frames with specific identifiers. It can effectively implement filtering and control strategies for each data flow to ensure that the input traffic meets the specifications, thereby avoiding abnormal traffic problems caused by faults or malicious attacks (such as Dos attacks) and improving network reliability.

[0009] However, there are still the following shortcomings:

[0010] 1. The implementation mechanism of the existing technology is similar to that of a firewall, which detects abnormal traffic and blocks or limits it. Once abnormal traffic breaks through this protective barrier, network security will be threatened.

[0011] 2. Each flow needs to pass through three layers of protection modules: flow filter, flow gate, and flow meter, which will incur additional computing overhead and transmission delay. Summary of the invention

[0012] In view of the above-mentioned defects of the prior art, the technical problem to be solved by the present invention is: once the abnormal traffic passes through the security boundary of the existing protection technology, the communication security cannot be guaranteed, and it is necessary to build an authentication and authorization communication framework based on TSN communication, perform identity authentication on each node, and authorize communication between nodes; traffic passing through the protection module will incur overhead, and authentication and authorization communication will also bring overhead, and it is necessary to minimize the overhead and the transmission delay caused by the overhead.

[0013] To achieve the above-mentioned object, the present invention provides a TSN-oriented lightweight communication system, including a hardware module and a software module for realizing the software-hardware collaborative working mode, wherein the software module saves the management configuration, configures the gate control list, and completes the configuration time calculation; the hardware module saves the operation configuration, completes the configuration switching and gate execution operations; the hardware module includes:

[0014] The central gateway module, which consists of a master node and a TSN switch, communicates with the end controller module through a lightweight TSN protocol;

[0015] The end controller module is composed of multiple slave nodes and receives the public key information of the master node for authentication;

[0016] The central gateway module uses the audio-video bridging flow in TSN communication to broadcast the public key certificate to the slave nodes, and uses the time-triggered flow to authorize the communication between the slave nodes;

[0017] The end controller module uses an audio-video bridge stream to send the identity authentication information of the slave node to the central gateway module, and the slave nodes use a time-triggered stream to send a communication request to the central gateway module when communicating with each other.

[0018] Preferably, the software module includes an STM32 encryption and decryption algorithm library and a TSN switch configuration file.

[0019] Preferably, a media independent interface and / or a simplified media independent interface is used between the slave node and the TSN switch to implement Ethernet MAC driving PHY.

[0020] The present invention also provides a communication method, comprising the following steps:

[0021] Establish TSN communication between master and slave nodes;

[0022] Performing identity authentication between the master node and the slave node;

[0023] The master node authorizes communication between slave nodes;

[0024] The slave nodes communicate with each other.

[0025] The present invention also provides an authentication communication method for a central gateway module, comprising the following steps:

[0026] Establishing TSN communication between the master node and the slave node;

[0027] Broadcasting the digital certificate of the master node to the slave node, completing the sending of the master node public key to the slave node;

[0028] Receiving the encrypted information sent by the slave node;

[0029] Decrypt the slave node authorization key using the master node private key, perform hash operation on the slave node authorization key to obtain a new hash value, decrypt the old hash value using the slave node public key, compare the new hash value with the decrypted old hash value, if they are consistent, it indicates that the message has not been tampered with and the verification is successful, otherwise the authentication communication is stopped;

[0030] After the verification is passed, the slave node authorization key is obtained, the confirmation information is encrypted by the slave node authorization key, and the confirmation information is sent to each slave node.

[0031] The present invention also provides an authentication communication method for a slave node, comprising the following steps:

[0032] Establish TSN communication with the master node;

[0033] After receiving the digital certificate from the master node, verify it: if the verification is successful, indicating that the transmitted content is legal and credible, encrypt the authorization key of the slave node using the master node public key, and encrypt the hash value of the slave node authorization key using the slave node private key, and then send the encrypted information to the central gateway module;

[0034] Receive the confirmation information from the central gateway module, decrypt the confirmation information using the authorization key of the slave node, and complete the identity confirmation of the slave node.

[0035] Preferably, the digital certificate of the master node marks the identity information of the communication party, including the public key and identifier of the node.

[0036] The present invention also provides a method for authorized communication between a master node and slave nodes, which is used for a first slave node and includes the following steps:

[0037] Encrypting the message stream ID of the message to be sent using the first slave node authorization key, and then sending the encrypted message stream ID to the central gateway module;

[0038] After receiving the authorization message from the central gateway module, the first slave node uses the authorization key to decrypt the authorization information to obtain the stream key. The first slave node uses the stream key to encrypt the message to be sent, and generates an HMAC value of the encrypted message. The HMAC value is sent together with the encrypted message to the second slave node.

[0039] The present invention also provides a method for authorized communication between a master node and a slave node, which is used in a central gateway module and includes the following steps:

[0040] After receiving the message stream ID of the first slave node, the central gateway module uses the first node authorization key to decrypt and obtain the message stream IDs of the first slave node and the second slave node;

[0041] The central gateway module verifies the legitimacy of the message stream ID through the access control list: if the message stream ID is legal, the central gateway module uses the authorization keys of the first slave node and the second slave node to encrypt the stream key respectively, generate authorization information, and send it to the first slave node and the second slave node respectively; if it is illegal, the authorized communication is stopped.

[0042] The present invention also provides a method for authorized communication between a master node and a slave node, which is used for a second slave node and includes the following steps:

[0043] Receive the authorization message of the central gateway module, and use the authorization key of the second node to decrypt the authorization information to obtain the second node stream key;

[0044] Receive the message sent by the first slave node, decrypt it using the second node stream key, calculate the HMAC value of the message, and compare it with the received HMAC value. If they are consistent, it indicates that the message has not been tampered with and communication continues, otherwise communication stops.

[0045] The beneficial effects of the present invention are:

[0046] 1. Designed an authentication and authorization communication framework based on TSN communication. Built a node authentication and authorization communication mechanism, and configured the traffic: the highest priority TT flow is used for communication during the authorization communication process to ensure real-time performance; the second-priority AVB flow is used for data transmission during the authentication process.

[0047] 2. The lightweight LwIP protocol stack (LightWeightIP, lightweight IP protocol) is used to replace the TCP / IP protocol, and the lightweight TSN communication is designed. The communication between the central gateway and the end controller is established through the LwIP protocol stack and TSN to ensure high bandwidth and low consumption of network communication; the time-aware shaper (TAS) is introduced to control data flow transmission through the gate control list (GCL) to achieve low latency and deterministic behavior of data packet transmission.

[0048] The concept, specific structure and technical effects of the present invention will be further described below in conjunction with the accompanying drawings to fully understand the purpose, characteristics and effects of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 is a schematic diagram of the communication system architecture of an embodiment of the present invention;

[0050] Figure 2 It is a schematic diagram of the hardware composition of an embodiment of the present invention;

[0051] Figure 3 is a flow chart of a communication method according to an embodiment of the present invention;

[0052] Figure 4 It is a component structure diagram of an embodiment of the present invention. DETAILED DESCRIPTION

[0053] The following describes several preferred embodiments of the present invention with reference to the drawings in the specification, so that the technical content is clearer and easier to understand. The present invention can be embodied in many different forms of embodiments, and the protection scope of the present invention is not limited to the embodiments mentioned in the text.

[0054] In the embodiment of the present invention, the following definitions are made: time-sensitive networking (TSN). The TSN protocol can simultaneously meet the application needs of different real-time and security levels in a single network, and supports three different message types: time-triggered (TT) communication, audio-video bridging (AVB) flow, and best effort (BE) message. TT flow belongs to hard real-time communication, has the highest priority, does not allow any errors that exceed the time limit, and must complete the specified application within the specified time. The authorization mechanism is time-sensitive, so TT flow is used for authorization to ensure the real-time and deterministic nature of authorization. AVB flow belongs to soft real-time communication, which can allow occasional time deviations. It has a higher priority than BE flow and lower than TT flow. The authentication process occurs before communication, and the time limit requirement is lower than the authorization process. Therefore, AVB flow is used for authentication in the embodiment of the present invention, which saves overhead while ensuring the accuracy of the authentication process. Time-aware shaper (TAS) is a core mechanism in TSN. Its application provides ultra-low latency and jitter guarantees for time-sensitive data. TAS controls the gate status of each queue at a certain moment through the gate control list (GCL) of the gate opening and closing mechanism, and then controls the transmission of data. Data can only be sent when the gate is open; Ethernet controller: network card; Central switch: central switch, Central Gateway: central gateway, Master node: master node, Slave node: slave node.

[0055] In one embodiment of the present invention, Figure 1 The figure shows a schematic diagram of the communication system architecture of an embodiment of the present invention, which includes hardware modules: a central gateway module and an end controller module; and software modules: an STM32 encryption and decryption algorithm library and a TSN switch configuration file. The embodiment of the present invention is implemented in a software-hardware collaborative manner, where the hardware saves the operation configuration and the software saves the management configuration. The software configures configuration objects such as GCL and completes the configuration time calculation; the hardware completes operations such as configuration switching and gated execution. The secure communication mechanism of the present invention is applied between the central gateway module and the end controller module. The specific configuration is as follows:

[0056] The central gateway module is composed of a master node and a TSN switch, and the end controller module is composed of multiple slave nodes. The central gateway module communicates with the end controller module through a lightweight TSN protocol. The central gateway module uses the AVB stream in TSN communication to broadcast digital certificates to each slave node for identity authentication; and uses the TT stream to authorize communication between each slave node. The end controller module receives the public key information of the master node for authentication, and uses the AVB stream to send the identity authentication information of the slave node to the central gateway module; when the slave nodes communicate with each other, the TT stream is used to send communication requests to the central gateway module.

[0057] The embodiment of the present invention adopts the lightweight LwIP protocol stack (LightWeightIP, lightweight IP protocol) to replace the TCP / IP protocol and designs lightweight TSN communication. The communication between the central gateway and the end controller is established through the LwIP protocol stack and TSN to ensure high bandwidth and low consumption of network communication; the time-aware shaper (TAS) is introduced to control data flow transmission through the gate control list (GCL) to achieve low latency and deterministic behavior of data packet transmission.

[0058] The TSN switch parses the software configuration message to complete the configuration of local registers and gating tables, etc.; parses the read request message sent by the software, encapsulates the contents of the register and gating table into a response message and reports it to the software. At the same time, in the TAS shaper, the GCL periodically controls the switching action of the gate. TAS needs to synchronize the time of all bridges between the data sender and the receiver. For each port in the bridge, TAS performs switch driving actions according to a known and agreed schedule, and defines data scheduling according to the priority of each node and queue. The switch obtains the gating status information of the current time slice according to the global time, and writes the GCL in the management configuration to the RAM according to the configuration switching command sent by the software to realize the switching of the GCL, thereby controlling the transmission of different data streams (TT stream, AVB stream, BE stream) in TSN communication.

[0059] The central gateway module and the end controller module jointly implement TSN-oriented authentication and authorization.

[0060] Figure 2 This is the implementation form of the embodiment of the present invention in hardware. The product implementation form of the embodiment of the present invention is an authentication and authorization mechanism deployed on the TSN switch and the STM32H743 development board hardware. The TSN switch communicates with the master and slave nodes through the lightweight TSN designed by the present invention. The part shown in the dotted box is the central gateway module of the present invention, in which the Ethernet switch SJA1105Q performs the TSN message reception and forwarding functions between the end nodes.

[0061] In a second embodiment of the present invention, a communication method is provided, such as Figure 3 As shown, it is a flow chart of the communication method, comprising the following steps:

[0062] Establish TSN communication between master and slave nodes;

[0063] Performing identity authentication between the master node and the slave node;

[0064] The master node authorizes communication between slave nodes;

[0065] The slave nodes communicate with each other.

[0066] The STM32H743 MCU series provides 1 to 2MB flash memory, 1MB SRAM, and has the following architecture: 192KBTCMRAM (including 64KBITCMRAM and 128KBDTCMRAM for time-critical routines and data), 512KB, 288KB, and 64KB user SRAM, and 4KB SRAM in the backup domain. Considering the small memory space of STM32, we use the LwIP (LightweightIP) protocol to complete the end-to-end communication of STM32->SJA1105->STM32. LwIP is ported to the STM32H7 development board. After booting, the program initializes LwIP, initializes LAN8720, applies for memory, turns on DHCP service, and adds and turns on the network card. The STM32H7 development board comes with an RJ45 network socket, so an external Ethernet converter is required when connecting to the SJA1105Q-EVB (to realize the function of converting twisted pair cable to network cable). Among them, STM32H743 is the development board chip model, LAN8720A and TJA1102 are PHY chips, and SJA1105Q is the switch chip model.

[0067] In the present invention, the MII interface (Media Independent Interface) and RMII interface (Reduced Media Independent Interface) are used between the end node and the switch to realize Ethernet MAC driving PHY. MAC accesses the relevant registers of PHY through the SMI interface, and then obtains the PHY state and configures PHY.

[0068] TSN is a point-to-point communication network that relies on switches for networking. The end node is connected to the port of the switch through the onboard MAC driver TJA1102. The configuration of the TSN switch is relatively complex. The present invention uses the basic Python suite provided by NXP to complete the basic configuration, path planning configuration (routing configuration, priority mapping configuration, etc.), onboard PHY configuration, and TSN related feature configuration (such as TAS configuration, CBS configuration, etc.) on a PC. Then plan the traffic in the network, configure it according to the TSN related features, generate a configuration stream, send the configuration stream to the onboard controller, and implement the final configuration of the SJA1105Q switch chip through the SPI interface.

[0069] The above steps are the process of establishing communication between the master node and the slave node. After the communication between the master and slave nodes is established, identity authentication can begin.

[0070] In a third embodiment of the present invention, an authentication communication method for a TSN lightweight communication system is provided, and the identity authentication process adopts an encryption and decryption algorithm library of the STM32H7 series.

[0071] The central gateway module broadcasts the digital certificate of the master node to all end controllers. The digital certificate marks the identity information of the communication party, including the node's public key, identifier and other information. This step completes the function of sending the master node public key to each end controller.

[0072] Each node has a trusted identity certificate list for verifying the identities of other nodes. After receiving the digital certificate of the master node from the central gateway module, the end controller module verifies it. If the verification is successful, indicating that the transmitted content is legal and credible, the authorization key of the slave node is encrypted using the public key of the master node, and the hash value of the authorization key is encrypted using the private key of the slave node, and then the encrypted information is sent to the central gateway module. The encrypted information includes the slave node authorization key and the slave node digital signature. This step realizes the function of the end controller slave node sending its own authorization key and slave node public key to the central gateway, completing the identity confirmation of the central gateway.

[0073] The central gateway module uses the master node private key to decrypt the slave node authorization key, performs a hash operation on the authorization key to obtain a new hash value, uses the slave node public key to decrypt the old hash value, and compares the two hash values. If they are consistent, it indicates that the message has not been tampered with, otherwise the authentication communication is stopped. After the verification is passed, the central gateway module obtains the slave node authorization key, and the central gateway module encrypts the confirmation information with the authorization key and sends it to each slave node. This step completes the function of the central gateway module obtaining the authorization key and public key of the end controller module.

[0074] After receiving the confirmation information from the central gateway module, the end controller module uses the authorization key of the slave node to decrypt the confirmation information and complete the identity confirmation of each slave node.

[0075] The above steps are the implementation part of the identity authentication mechanism in the present invention. The AVB stream in the TSN protocol is used for data transmission. The priority of the AVB stream is lower than the TT stream and higher than the BE stream. The real-time requirement in the authentication process is lower than that in the authentication process. Therefore, the use of the AVB stream can save overhead while meeting the security mechanism.

[0076] In a fourth embodiment of the present invention, Figure 4 As shown, an authorization communication method between a master node and a slave node for a TSN lightweight communication system is provided, and the authorization process adopts the encryption and decryption algorithm library of the STM32H7 series.

[0077] When the first slave node sends a message to the second slave node, it needs to send a request message to the central gateway module. The first slave node encrypts the message stream ID of the message using the authorization key, and then sends the encrypted message stream ID to the central gateway module. The message stream ID includes the ID values ​​of the end controller from the first slave node and the second slave node. This step completes the function of the end controller module sending a communication request.

[0078] After receiving the message from the end controller module, the central gateway module uses the authorization key to decrypt the information and obtain the message stream ID of the first slave node and the second slave node. The central gateway module verifies the legitimacy of the message stream ID through the access control list. If the message stream ID is legal, the central gateway module will use the authorization keys of the first slave node and the second slave node to encrypt the stream key respectively, generate authorization information, and send it to the first slave node and the second slave node respectively. If it is illegal, the authorized communication is stopped. This step completes the authorization function of the central gateway module to the end controller module.

[0079] After receiving the authorization message, the end controller module uses the authorization key to decrypt the authorization information and obtain the stream key. The first slave node uses the stream key to encrypt the message to be sent, and generates the HMAC value of the message at the same time, and sends the HMAC value and the encrypted message to the second slave node. After the second slave node receives the message sent by the first slave node, it uses the stream key to decrypt it. At the same time, the HMAC value of the message is calculated and compared with the received HMAC value. If they are consistent, it indicates that the message has not been tampered with and communication continues, otherwise communication stops. This step completes the secure communication between the end controllers.

[0080] The above steps are the authorization communication implementation part of the present invention, and the TT stream in the TSN protocol is used for data transmission. The authorization process has a high requirement for real-time performance, so the TT stream with the highest priority needs to be used.

[0081] In a fourth embodiment of the present invention, TSN communication between slave nodes is provided.

[0082] After the central gateway module authorizes the communication request sent by the slave node, the first slave node sends a message to the second slave node. The data packet decides which priority data stream (TT stream, AVB stream, BE stream) in TSN communication is used according to the actual situation.

[0083] The preferred specific embodiments of the present invention are described in detail above. It should be understood that ordinary technicians in the field can make many modifications and changes based on the concept of the present invention without creative work. Therefore, all technical solutions that can be obtained by technicians in the technical field based on the concept of the present invention through logical analysis, reasoning or limited experiments on the basis of the prior art should be within the scope of protection determined by the claims.

Claims

1. A TSN-oriented lightweight communication system, characterized in that: include: A hardware module and a software module that implement the hardware-software collaborative working mode. The software module stores the management configuration, configures the door control list, and completes the configuration time calculation; The hardware module saves the operation configuration and completes the configuration switching and gated execution operations; the hardware module includes: The central gateway module, which consists of a master node and a TSN switch, communicates with the end controller module through a lightweight TSN protocol; The end controller module is composed of multiple slave nodes and receives the public key information of the master node for authentication; The central gateway module uses the audio-video bridging flow in TSN communication to broadcast the public key certificate to the slave nodes, and uses the time-triggered flow to authorize the communication between the slave nodes; The end controller module uses an audio-video bridge stream to send the identity authentication information of the slave node to the central gateway module, and the slave nodes use a time-triggered stream to send a communication request to the central gateway module when communicating with each other; The software module includes STM32 encryption and decryption algorithm library and TSN switch configuration file; The slave node and the TSN switch use a media independent interface and / or a simplified media independent interface to implement Ethernet MAC driving PHY; The communication method comprises the following steps: Establish TSN communication between master and slave nodes; Performing identity authentication between the master node and the slave node; The master node authorizes communication between slave nodes; The slave nodes communicate with each other; The authentication communication method of the central gateway module includes the following steps: Establishing TSN communication between the master node and the slave node; Broadcasting the digital certificate of the master node to the slave node, completing the sending of the master node public key to the slave node; Receiving the encrypted information sent by the slave node; Decrypt the slave node authorization key using the master node private key, perform hash operation on the slave node authorization key to obtain a new hash value, decrypt the old hash value using the slave node public key, compare the new hash value with the decrypted old hash value, if they are consistent, it indicates that the message has not been tampered with and the verification is successful, otherwise the authentication communication is stopped; After the verification is passed, the slave node authorization key is obtained, confirmation information is encrypted by the slave node authorization key, and the confirmation information is sent to each slave node; The authentication communication method of the slave node includes the following steps: Establish TSN communication with the master node; After receiving the digital certificate from the master node, verify it: if the verification is successful, indicating that the transmitted content is legal and credible, encrypt the authorization key of the slave node using the master node public key, and encrypt the hash value of the slave node authorization key using the slave node private key, and then send the encrypted information to the central gateway module; Receive confirmation information from the central gateway module, decrypt the confirmation information using the authorization key of the slave node, and complete the identity confirmation of the slave node; The digital certificate of the master node marks the identity information of the communication party, including the public key and identifier of the node; The master node of the first slave node is an authorized communication method between slave nodes, comprising the following steps: Encrypting the message stream ID of the message to be sent using the first slave node authorization key, and then sending the encrypted message stream ID to the central gateway module; After receiving the authorization message from the central gateway module, the first slave node uses the authorization key to decrypt the authorization information to obtain the stream key, the first slave node uses the stream key to encrypt the message to be sent, and generates an HMAC value of the encrypted message, and sends the HMAC value together with the encrypted message to the second slave node; The master node of the central gateway module is an authorized communication method between slave nodes, including the following steps: After receiving the message stream ID of the first slave node, the central gateway module uses the first node authorization key to decrypt and obtain the message stream IDs of the first slave node and the second slave node; The central gateway module verifies the legitimacy of the message stream ID through the access control list: if the message stream ID is legal, the central gateway module uses the authorization keys of the first slave node and the second slave node to encrypt the stream key respectively, generate authorization information, and send it to the first slave node and the second slave node respectively; if it is illegal, the authorized communication is stopped; The master node of the second slave node is an authorized communication method between slave nodes, comprising the following steps: Receive the authorization message of the central gateway module, and use the authorization key of the second node to decrypt the authorization information to obtain the second node stream key; Receive the message sent by the first slave node, decrypt it using the second node stream key, calculate the HMAC value of the message, and compare it with the received HMAC value. If they are consistent, it indicates that the message has not been tampered with and communication continues, otherwise communication stops.

Citation Information

Patent Citations

  • Multi-level service scheduling engine oriented to time-sensitive network and implementation method

    CN114448894A

  • Vehicle-mounted network security communication system oriented to CAN-Ethernet

    CN115633060A