Encryption equalization communication method of safety data acquisition gateway based on USB interface isolation

By using USB interface isolation and encryption authentication in the digital gateway, the security risk problem in TCP/IP communication is solved, and the isolation and encrypted balanced communication between the sending and receiving ends are realized, which significantly improves security and ensures the communication load. balance.

CN119071054APending Publication Date: 2024-12-03南京富岛软件有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411144201.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-20
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

Existing digital gateways have security risks when utilizing TCP/IP communication. Viruses can attack the network or MES system through operating system vulnerabilities or communication vulnerabilities.

Method used

A secure digital acquisition gateway based on USB interface isolation is adopted, and TCP/IP communication is replaced by USB interface, load balancing scheduling and encryption security authentication are introduced to achieve isolation and encrypted balanced communication between the sending and receiving ends.

Benefits of technology

Effectively prevent illegal node interference and virus attacks, improve communication security, and ensure the balance of two-way communication through load balancing scheduling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071054A_ABST
    Figure CN119071054A_ABST
Patent Text Reader

Abstract

The invention discloses an encryption equalization communication method of a safety data acquisition gateway based on USB interface isolation, and the method comprises the steps: building a communication link between each terminal node and a corresponding transfer node, and carrying out the transmission and reception of data through the link; the data service program receives the data of all local terminal nodes, summarizes and packs the data, and sends the data to the data service of the transfer node on the other side through the isolation card via the USB interface; meanwhile, the data service program receives a summarized data packet transmitted by the transfer node on the other side, splits the summarized data packet and distributes the split summarized data packet to the target terminal node; a load balancing scheduling method is adopted in the communication process of the transfer node on one side and the transfer node on the other side. In order to avoid interference or illegal data generated by adding illegal nodes, encryption security authentication is adopted, and the security of the method is remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication, and in particular to a secure data acquisition gateway based on USB interface isolation and an encrypted balanced communication method. Background Art

[0002] The development of industrialization and informatization has achieved a close integration of traditional computer networks and industrial control networks. More and more enterprise management information systems, such as the production execution system (MES) of typical process industries such as petroleum and chemical industries, use a variety of data interaction devices to collect real-time data from the control system to achieve optimized control. In particular, with the gradual deepening of the application of new technologies such as the Internet of Things and big data, the connection between management networks and industrial control networks has become increasingly close, expanding the access scope of industrial control networks, but also increasing security risks.

[0003] In order to collect production data from the control system into MES, existing data acquisition gateways generally use Windows or Linux operating systems and TCP / IP communication technology similar to industrial control networks or management networks to communicate with control systems or MES systems. Viruses can exploit operating system vulnerabilities or TCP / IP communication vulnerabilities to attack control networks or MES systems. Summary of the invention

[0004] In view of the above problems, the present invention discloses a secure data acquisition gateway based on USB interface isolation, which uses USB interface to replace TCP / IP communication to achieve isolation between the sender and the receiver. As the USB interface cannot achieve full-duplex communication, load balancing scheduling measurement is introduced to ensure the balance of two-way communication load within a period of time. In order to avoid interference or illegal data caused by illegal nodes joining, encrypted security authentication is used. The secure data acquisition gateway based on USB interface isolation finally realizes the encrypted balanced communication function between the sender and the receiver.

[0005] The present invention is achieved through the following technical solutions:

[0006] An encrypted balanced communication method for a secure data acquisition gateway based on USB interface isolation includes an upper mainboard, an isolation card and a lower mainboard, wherein: one end of the lower mainboard communicates bidirectionally with m terminals of a control system through TCP / IP, and one end of the upper mainboard communicates bidirectionally with n terminals of a MES system through TCP / IP, and m and n are natural numbers determined according to an actual industrial environment.

[0007] The isolation card is connected to the upper mainboard and the lower mainboard via a USB interface, and can be regarded as a read-only large-capacity storage device for the lower mainboard and the upper mainboard.

[0008] The lower mainboard uses a general x86 or ARM-based computer mainboard, and reads and writes the isolation card by calling the isolation board API function through the USB interface, and its TCP / IP is connected to the external DCS system.

[0009] The upper mainboard uses a general x86 or ARM-based computer mainboard, and uses the isolation board API function method to read and write the isolation card through the USB interface. Its TCP / IP is connected to the external MES system.

[0010] The upper mainboard and the lower mainboard are preferably SV1-F2026C of Xinbu Technology, and the isolation card is preferably KESDON Kshd-OT005.

[0011] Specifically, the data acquisition gateway communication system includes: m data acquisition program modules, 1 scheduling management program module and a lower data service program module running on the lower mainboard. n data acquisition program modules, 1 scheduling management program module and an upper data service program module running on the upper mainboard. The m terminals of the control system and the n terminals of the MES system are all recorded as terminal nodes of the gateway communication system, and the upper mainboard and the lower mainboard are all recorded as transit nodes of the gateway communication system. Each terminal node establishes a communication link with the corresponding transit node, and sends and receives data through the link. The data service program receives data from all local terminal nodes, aggregates and packages them, and sends them to the data service of the transit node on the other side through the USB interface and the isolation card. At the same time, the data service receives the aggregated data packet from the transit node on the other side, splits it and distributes it to the target terminal node.

[0012] Each terminal node establishes a communication link with the corresponding transit node, through which data is sent and received. The transit node port number is 0, and different terminal nodes are distinguished by port numbers 1 to 65535. The communication steps between the terminal node and the corresponding transit node include:

[0013] 1) After the terminal establishes a channel with the local data service (transit node), it must first register and log in. Only after the data service agrees can it access the communication system.

[0014] The message format of the login process is: composed of a 16-bit port number, a 16-bit type code, a 16-bit result code and an option byte. Among them, the port number is the port number of the terminal applying for access to the system. When the type code is 1, it indicates an application for access; when the type code is 2, it indicates confirmation of the application and requires verification; when the type code is 3, it indicates a request for verification; when the type code is 4, it indicates the end of the process. The result code is only valid when the type code is 4. The result code is 100, which means that the authentication is passed, the result code is 101, which means that the authentication fails, and the result code is 102, which means that the port is occupied. The option byte determines the length according to the type code. When the type code is 2, the length is 128 bytes; when the type code is 3, the length is 16 bytes.

[0015] 2) The terminal establishes a connection with the local data service (transit node) for data communication.

[0016] The data message format of the terminal and local data service is: 16-bit source port number, 16-bit destination port number, 16-bit payload message length, 1-bit connector, 1-bit release, 1-bit query, 1-bit confirmation, 8-bit transmission type, and payload.

[0017] The initiating terminal sends a message, and the connection symbol is set to 1. The receiving terminal returns a response message, and the connection symbol is set to 1. If the confirmation symbol is 1, it means accepting the connection, and if the confirmation symbol is 0, it means rejecting the connection.

[0018] 3) Disconnect

[0019] The initiating terminal sends a message and the release symbol is set to 1.

[0020] Preferably, the specific steps for the terminal node to register and log in to the local data service are:

[0021] 1) The terminal sends an "apply for access" login process message with type code 1 to the local data service;

[0022] 2) The local service parses the login process message to determine whether the port is occupied: if it is occupied, it sends a "process end" login process message with a type code of 4 to the terminal, and then ends the registration login; otherwise, go to step 3);

[0023] 3) Determine whether to configure authentication. If not, send a login process message of "process completed" to the terminal, indicating that the authentication is successful; otherwise, go to step 4);

[0024] 4) The data service generates a random number, encrypts the random number with a private key using the RSA algorithm, and sends a "Confirm Application" login process message with a type code of 2 to the terminal. The option byte of the message is a 128-byte encrypted random number, and waits for the terminal to reply;

[0025] 5) The terminal parses the received message, uses the public key to decrypt the random number, then processes the random number using the MD5 algorithm to generate a 16-byte hash value, and returns the "Request Verification" login process message with a data service type code of 3.

[0026] 6) The data service receives the "request verification" login process message from the terminal, obtains the 16-byte hash value given by the terminal in the message, and at the same time, the data service itself processes the aforementioned random number with the MD5 algorithm to generate a 16-byte hash value, which is compared with the three-column value returned by the terminal. If they are the same, a "process end" and "authentication passed" login process message with a type code of 4 and a result code of 100 is sent to the terminal. Otherwise, a "process end" and "authentication failed" login process message with a type code of 4 and a result code of 101 is sent to the terminal.

[0027] Preferably, the data service program receives data from all local terminal nodes, summarizes and packages them, and sends them to the data service of the transit node on the other side through the USB interface and the isolation card. At the same time, the data service receives the summary data packet from the transit node on the other side, splits it and distributes it to the target terminal node. The summary data packet contains the message header and the data messages between all terminals and the local service. The message header format is: 1 connector, 1 connection confirmation, 1 reset, 1 reset confirmation, 3 reserved bits, 1 waiting to receive, 8 reserved bits, 16 load data packet number, 16 remaining data packet number and 16 to be sent index. Among them, the connector: is set to 1 only when connecting to the slave end, sent by the master end, notifying the slave end to start the connection; the connection confirmation: is only set to 1 when the slave end receives the master end connection request, and is set to 1 when responding to confirm the connection; the reset symbol: is set to 1 when the master end or the slave end needs to reconnect and initialize. After waiting for the other party to respond, release the connection reset. After resetting, the master end resends the request to establish a connection; the reset confirmation symbol: when the master end or the slave end receives the other party's request to reset, it is set to 1 to notify the other party that it has been received. At the same time, this end releases the connection reset; Waiting for reception symbol: when set to 1, it indicates that this end is ready to receive data and the other end can send data packets; Number of payload data packets: the number of virtual network layer data messages in the data packet; Number of remaining data packets: only valid when the waiting for reception symbol is 0, indicating the number of data packets that this end needs to send in this round; To-be-sent index: only valid when the waiting for reception symbol is 1, the size is the quotient of all the to-be-sent summary data packets in the transfer node sending cache divided by the maximum number of summary data packets that can be stored in the transfer node sending cache, which serves as the basis for whether to give up the sending right in this round and determine the number of to-be-sent summary data packets.

[0028] Preferably, the communication process between the transit node on one side and the transit node on the other side adopts a load balancing scheduling method. The load balancing scheduling method runs on the scheduling management program of the upper mainboard and the lower mainboard, and manages and schedules the sending rights and sending order of the two transit nodes through the transmitter:

[0029] 1) During the initial identification, the transit node of the lower main board obtains the sending right as the sending end, and the transit node of the upper main board becomes the receiving end; 2) The sending end sends a data packet. If the waiting reception symbol is set to 1, it means that it gives up the sending right and waits for data reception; 3) The receiving end receives the data packet. If the waiting reception symbol is 1, it obtains the sending right.

[0030] According to the pending index of its own transfer node and the pending index of the other transfer node, it is determined whether to give up the sending right in this round and the number of aggregated data packets to be sent:

[0031] 1) If the pending transmission index H1 of its own transit node is greater than or equal to the pending transmission index H2 received from the other transit node, then its own transit node will accept the transmission right in this round; if H1 is less than H2, then its own transit node will give up the transmission right obtained;

[0032] 2) The actual number of aggregated data packets in the cache of its own transit node is M0, the maximum number of aggregated data packets that can be stored in the cache of its own transit node is M1, and the maximum number of aggregated data packets that can be stored in the cache of its own transit node is M2. Then the number of remaining aggregated data packets L sent by its own transit node in this round is calculated, and its initial value is L0=min(M0, int(0.1*H1*max(M1,M2))), where min() is the minimum value, max() is the maximum value, and int() is the rounding operation.

[0033] 3) After the transit node accepts the sending right, it sets the waiting receiving symbol in the message header to 0, initializes the number of summary data packets to be sent in this round with L0, and packages and sends the summary data packets. For the first L0-1 data packets, the waiting receiving symbol is set to 0. Each time a summary data packet is sent, L is decremented by 1. For the last data packet in this round, the waiting receiving symbol is set to 1, and the transit node is ready to give up the sending right.

[0034] Beneficial Effects of the Invention

[0035] 1) The present invention is a secure data acquisition gateway based on USB interface isolation, which uses USB interface to replace TCP / IP communication to achieve isolation between the sending end and the receiving end, and has strong anti-interference and anti-virus capabilities;

[0036] 2) As the USB interface cannot achieve full-duplex communication, a load balancing scheduling strategy is introduced to ensure the balance of the two-way communication load over a period of time;

[0037] 3) In order to avoid interference or illegal data caused by illegal nodes, encryption security authentication is adopted to significantly improve the security of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 The present invention is a schematic diagram of a secure data acquisition gateway framework structure based on USB interface isolation.

[0039] Figure 2 The present invention discloses an encrypted balanced communication data flow diagram of a secure data acquisition gateway based on USB interface isolation.

[0040] Figure 3 This is a message format diagram of a secure data acquisition gateway encryption balanced communication terminal login process based on USB interface isolation of the present invention.

[0041] Figure 4This is a diagram of the communication message format between a secure data acquisition gateway based on USB interface isolation and a local data service communication terminal.

[0042] Figure 5 The present invention is a flowchart of a secure data acquisition gateway encryption and balanced communication terminal login authentication based on USB interface isolation.

[0043] Figure 6 This is a message format diagram of a secure data acquisition gateway based on USB interface isolation and encrypted balanced communication summary data packet of the present invention.

[0044] Figure 7 This is a diagram of the message header format of a secure data acquisition gateway encrypted and balanced communication summary data packet based on USB interface isolation of the present invention.

[0045] Figure 8 This is an example diagram of communication and switching between transit nodes of a secure data acquisition gateway based on USB interface isolation and encrypted balanced communication according to the present invention. DETAILED DESCRIPTION

[0046] The present invention will be further described below in conjunction with embodiments, but the protection scope of the present invention is not limited thereto:

[0047] like Figure 1 As shown, a secure data acquisition gateway based on USB interface isolation and an encrypted balanced communication method include an upper mainboard, an isolation card and a lower mainboard, wherein: one end of the lower mainboard communicates bidirectionally with m terminals of the control system through TCP / IP, and one end of the upper mainboard communicates bidirectionally with n terminals of the MES system through TCP / IP, and m and n are natural numbers determined according to the actual industrial environment.

[0048] The isolation card is connected to the upper mainboard and the lower mainboard via a USB interface, and can be regarded as a read-only large-capacity storage device for the lower mainboard and the upper mainboard.

[0049] The lower mainboard uses a general x86 or ARM-based computer mainboard, and reads and writes the isolation card by calling the isolation board API function through the USB interface, and its TCP / IP is connected to the external DCS system.

[0050] The upper mainboard uses a general x86 or ARM-based computer mainboard, and uses the isolation board API function method to read and write the isolation card through the USB interface. Its TCP / IP is connected to the external MES system.

[0051] The upper mainboard and the lower mainboard are preferably SV1-F2026C of Xinbu Technology, and the isolation card is preferably KESDON Kshd-OT005.

[0052] like Figure 2The figure shows a data flow diagram of encrypted balanced communication of a secure data acquisition gateway based on USB interface isolation, and provides an encrypted balanced communication method of a secure data acquisition gateway based on USB interface isolation. The data acquisition gateway communication system includes: m data acquisition program modules, 1 scheduling management program module and a lower data service program module running on the lower mainboard. n data acquisition program modules, 1 scheduling management program module and an upper data service program module running on the upper mainboard. The m terminals of the control system and the n terminals of the MES system are all recorded as terminal nodes of the gateway communication system, and the upper mainboard and the lower mainboard are all recorded as transfer nodes of the gateway communication system. Each terminal node establishes a communication link with the corresponding transfer node, and data is sent and received through the link. The data service program receives data from all local terminal nodes, aggregates and packages them, and sends them to the data service of the transfer node on the other side through the USB interface and the isolation card. At the same time, the data service receives the aggregated data packet from the transfer node on the other side, splits them and distributes them to the target terminal node.

[0053] Each terminal node establishes a communication link with the corresponding transit node, through which data is sent and received. The transit node port number is 0, and different terminal nodes are distinguished by port numbers 1 to 65535. The communication steps between the terminal node and the corresponding transit node include:

[0054] 1) After the terminal establishes a channel with the local data service (transit node), it must first register and log in. Only after the data service agrees can it access the communication system.

[0055] like Figure 3 As shown in the figure, the message format of the login process is composed of a 16-bit port number, a 16-bit type code, a 16-bit result code and an option byte. Among them, the port number is the port number of the terminal applying for access to the system. When the type code is 1, it indicates an application for access; when the type code is 2, it indicates confirmation of the application and requires verification; when the type code is 3, it indicates a request for verification; when the type code is 4, it indicates the end of the process. The result code is only valid when the type code is 4. The result code is 100, which indicates that the authentication is passed, the result code is 101, which indicates that the authentication fails, and the result code is 102, which indicates that the port is occupied. The option byte determines the length according to the type code. When the type code is 2, the length is 128 bytes; when the type code is 3, the length is 16 bytes.

[0056] 2) The terminal establishes a connection with the local data service (transit node) for data communication.

[0057] The data message format between the terminal and the local data service is shown in the figure Figure 4 As shown, the specific format is: 16-bit source port number, 16-bit destination port number, 16-bit payload message length, 1-bit connector, 1-bit release, 1-bit query, 1-bit confirmation, 8-bit transmission type, and payload.

[0058] The initiating terminal sends a message, and the connection symbol is set to 1. The receiving terminal returns a response message, and the connection symbol is set to 1. If the confirmation symbol is 1, it means accepting the connection, and if the confirmation symbol is 0, it means rejecting the connection.

[0059] 3) Disconnect

[0060] The initiating terminal sends a message and the release symbol is set to 1.

[0061] like Figure 5 As shown, a secure data acquisition gateway encryption and balanced communication method based on USB interface isolation, the specific steps for the terminal node to register and log in to the local data service are:

[0062] 1) The terminal sends an "apply for access" login process message with type code 1 to the local data service;

[0063] 2) The local service parses the login process message to determine whether the port is occupied: if it is occupied, it sends a "process end" login process message with a type code of 4 to the terminal, and then ends the registration login; otherwise, go to step 3);

[0064] 3) Determine whether to configure authentication. If not, send a login process message of "process completed" to the terminal, indicating that the authentication is successful; otherwise, go to step 4);

[0065] 4) The data service generates a random number, encrypts the random number with a private key using the RSA algorithm, and sends a "Confirm Application" login process message with a type code of 2 to the terminal. The option byte of the message is a 128-byte encrypted random number, and waits for the terminal to reply;

[0066] 5) The terminal parses the received message, uses the public key to decrypt the random number, then processes the random number using the MD5 algorithm to generate a 16-byte hash value, and returns the "Request Verification" login process message with a data service type code of 3.

[0067] 6) The data service receives the "request verification" login process message from the terminal, obtains the 16-byte hash value given by the terminal in the message, and at the same time, the data service itself processes the aforementioned random number with the MD5 algorithm to generate a 16-byte hash value, which is compared with the three-column value returned by the terminal. If they are the same, a "process end" and "authentication passed" login process message with a type code of 4 and a result code of 100 is sent to the terminal. Otherwise, a "process end" and "authentication failed" login process message with a type code of 4 and a result code of 101 is sent to the terminal.

[0068] In a preferred embodiment, the data service program receives data from all local terminal nodes, aggregates and packages them, and sends them to the data service of the transit node on the other side through the USB interface and the isolation card. At the same time, the data service receives the aggregated data packets sent by the transit node on the other side, splits them and distributes them to the target terminal node. Figure 6As shown in , the summary data packet contains the message header and all data messages between the terminal and the local service. Figure 7 As shown in the figure, the message header format is: 1-bit connection symbol, 1-bit connection confirmation symbol, 1-bit reset symbol, 1-bit reset confirmation symbol, 3 reserved bits, 1-bit waiting to receive symbol, 8 reserved bits, 16-bit number of payload data packets, 16-bit number of remaining data packets and 16-bit to-be-sent index. The connection symbol is set to 1 only when connecting to the slave end, and is sent by the master end to notify the slave end to start the connection; the connection confirmation symbol is set to 1 only when the slave end receives the master end connection request and responds to confirm the connection; the reset symbol is set to 1 when the master end or the slave end needs to reconnect and initialize. After waiting for the other party to respond, the connection reset is released. After the reset, the master end resends the request to establish the connection; the reset confirmation symbol is set to 1 when the master end or the slave end receives the reset request from the other party to notify the other party that it has been received. At the same time, this end releases the connection reset; Waiting for reception symbol: when set to 1, it indicates that this end is ready to receive data and the other end can send data packets; Number of payload data packets: the number of virtual network layer data messages in the data packet; Number of remaining data packets: only valid when the waiting for reception symbol is 0, indicating the number of data packets that this end needs to send in this round; To-be-sent index: only valid when the waiting for reception symbol is 1, the size is the quotient of all the to-be-sent summary data packets in the transfer node sending cache divided by the maximum number of summary data packets that can be stored in the transfer node sending cache, which serves as the basis for whether to give up the sending right in this round and determine the number of to-be-sent summary data packets.

[0069] In a preferred embodiment, the communication process between the transit node on one side and the transit node on the other side adopts a load balancing scheduling method. The load balancing scheduling method runs on the scheduling management program of the upper mainboard and the lower mainboard, and manages and schedules the sending rights and sending order of the two transit nodes through the transmitter:

[0070] 1) During the initial identification, the transit node of the lower main board obtains the sending right as the sending end, and the transit node of the upper main board becomes the receiving end; 2) The sending end sends a data packet. If the waiting reception symbol is set to 1, it means that it gives up the sending right and waits for data reception; 3) The receiving end receives the data packet. If the waiting reception symbol is 1, it obtains the sending right.

[0071] like Figure 8 The example of communication and switching between transfer nodes shown in the figure determines whether to give up the right to send in this round and the number of aggregated data packets to be sent according to the to-be-sent index of its own transfer node and the to-be-sent index of the other transfer node:

[0072] 1) If the pending transmission index H1 of its own transit node is greater than or equal to the pending transmission index H2 received from the other transit node, then its own transit node will accept the transmission right in this round; if H1 is less than H2, then its own transit node will give up the transmission right obtained;

[0073] 2) The actual number of aggregated data packets in the cache of its own transit node is M0, the maximum number of aggregated data packets that can be stored in the cache of its own transit node is M1, and the maximum number of aggregated data packets that can be stored in the cache of its own transit node is M2. Then the number of remaining aggregated data packets L sent by its own transit node in this round is calculated, and its initial value is L0=min(M0, int(0.1*H1*max(M1,M2))), where min() is the minimum value, max() is the maximum value, and int() is the rounding operation.

[0074] 3) After the transit node accepts the sending right, it sets the waiting receiving symbol in the message header to 0, initializes the number of summary data packets to be sent in this round with L0, and packages and sends the summary data packets. For the first L0-1 data packets, the waiting receiving symbol is set to 0. Each time a summary data packet is sent, L is decremented by 1. For the last data packet in this round, the waiting receiving symbol is set to 1, and the transit node is ready to give up the sending right.

[0075] The specific embodiments described herein are merely examples of the spirit of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in similar ways, but they will not deviate from the spirit of the present invention or exceed the scope defined by the appended claims.

Claims

1. An encrypted balanced communication method for a secure data acquisition gateway based on USB interface isolation, characterized in that: The secure data acquisition gateway includes an upper mainboard, an isolation card and a lower mainboard, wherein: the isolation card is connected to the upper mainboard and the lower mainboard through a USB interface, and can be regarded as a large-capacity storage device of a read-only nature of the lower mainboard and the upper mainboard; one end of the lower mainboard communicates bidirectionally with m terminals of the control system through TCP / IP, and one end of the upper mainboard communicates bidirectionally with n terminals of the MES system through TCP / IP, where m and n are natural numbers determined according to the actual industrial environment; The secure data acquisition gateway implements encrypted balanced communication based on a data acquisition gateway communication system, and the data acquisition gateway communication system includes: m data acquisition program modules, 1 scheduling management program module and lower data service program module running on the lower mainboard; n data acquisition program modules, 1 scheduling management program module and upper data service program module running on the upper mainboard; The control system m terminals and the MES system n terminals are all recorded as terminal nodes of the gateway communication system, and the upper mainboard and the lower mainboard are all recorded as transfer nodes of the gateway communication system; Each terminal node establishes a communication link with the corresponding transit node, through which data is sent and received; the data service program receives data from all local terminal nodes, aggregates and packages them, and sends them to the data service of the transit node on the other side through the USB interface and the isolation card; at the same time, the data service program receives the aggregated data packet from the transit node on the other side, splits them and distributes them to the target terminal node; The communication process between the transit node on one side and the transit node on the other side adopts a load balancing scheduling method; the load balancing scheduling method runs on the scheduling management program of the upper main board and the lower main board, and manages and schedules the sending rights and sending order of the two transit nodes through the transmitter.

2. The method according to claim 1, characterized in that The load balancing scheduling method specifically includes: 1) During the initial identification, the transit node of the lower main board obtains the sending right as the sending end, and the transit node of the upper main board becomes the receiving end; 2) The sending end sends a data packet. If the waiting reception symbol is set to 1, it means that it gives up the sending right and waits for data reception; 3) The receiving end receives the data packet. If the waiting reception symbol is 1, it obtains the sending right.

3. The method according to claim 2, characterized in that According to the pending index of its own transfer node and the pending index of the other transfer node, it is determined whether to give up the sending right in this round and the number of aggregated data packets to be sent: 1) If the pending transmission index H1 of its own transit node is greater than or equal to the pending transmission index H2 received from the other transit node, then its own transit node will accept the transmission right in this round; if H1 is less than H2, then its own transit node will give up the transmission right obtained; 2) The actual number of aggregated data packets in the cache of its own transit node is M0, the maximum number of aggregated data packets that can be stored in the cache of its own transit node is M1, and the maximum number of aggregated data packets that can be stored in the cache of its own transit node is M2. Then the number of remaining aggregated data packets sent by its own transit node in this round is calculated, and its initial value is L0=min(M0, int(0.1*H1*max(M1,M2))), where min() is the minimum value, max() is the maximum value, and int() is the rounding operation; After the own transit node accepts the sending right, it sets the waiting receive symbol in the message header to 0, initializes the number of summary data packets to be sent in this round with L0, and packages and sends the summary data packets; for the first L0-1 data packets, the waiting receive symbol is set to 0; each time a summary data packet is sent, L is decremented by 1, and for the last data packet in this round, the waiting receive symbol is set to 1, preparing to give up the sending right of its own transit node.

4. The method according to claim 1, characterized in that The transfer node port number is recorded as 0, and different terminal nodes are distinguished by port numbers 1 to 65535. The steps of communicating between the terminal node and the corresponding transfer node include: 1) After the terminal node establishes a channel with the transit node, it must first register and log in. After the local data service of the transit node agrees, it can access the communication system; The message format of the login process is: composed of a 16-bit port number, a 16-bit type code, a 16-bit result code and an option byte; the port number is the port number of the terminal applying for access to the system; when the type code is 1, it indicates an application for access; when the type code is 2, it indicates confirmation of the application and requires verification; when the type code is 3, it indicates a request for verification; when the type code is 4, it indicates the end of the process; the result code is only valid when the type code is 4, the result code is 100 for authentication passed, the result code is 101 for authentication failed, and the result code is 102 for the port already occupied; the option byte determines the length according to the type code. When the type code is 2, the length is 128 bytes; when the type code is 3, the length is 16 bytes; 2) The terminal node establishes a connection with the local data service for data communication; The data message format is: 16-bit source port number, 16-bit destination port number, 16-bit payload message length, 1-bit connection symbol, 1-bit release symbol, 1-bit inquiry symbol, 1-bit confirmation symbol, 8-bit transmission type, and payload; The initiating terminal sends a message, and the connection symbol is set to 1; the receiving terminal returns a response message, and the connection symbol is set to 1. If the confirmation symbol is 1, it means accepting the connection, and if the confirmation symbol is 0, it means rejecting the connection; 3) Disconnect; The initiating terminal sends a message and the release symbol is set to 1.

5. The method according to claim 4, characterized in that: The specific steps for the terminal node to register and log in to the local data service are as follows: 1) The terminal node sends an "apply for access" login process message with type code 1 to the local data service; 2) The local data service parses the login process message to determine whether the port is occupied: if it is occupied, it sends a "process end" login process message with type code 4 to the terminal node, and then ends the registration login; otherwise, go to step 3); 3) Determine whether to configure authentication. If not, send a login process message of "process completed" to the terminal, indicating that the authentication is successful; Otherwise, go to step 4); 4) The local data service generates a random number, encrypts the random number with a private key using the RSA algorithm, and sends a "Confirm Application" login process message with a type code of 2 to the terminal node. The option byte of the message is a 128-byte encrypted random number, and waits for the terminal to reply; 5) The terminal parses the received message, decrypts the random number using the public key, and then processes the random number using the MD5 algorithm to generate a 16-byte hash value, which is returned to the "Request Verification" login process message with a data service type code of 3; 6) The local data service receives the "request verification" login process message from the terminal node, obtains the 16-byte hash value given by the terminal node in the message, and at the same time, the local data service itself processes the aforementioned random number using the MD5 algorithm to generate a 16-byte hash value, which is compared with the three-column value returned by the terminal: if they are the same, a "process end" and "authentication passed" login process message with a type code of 4 and a result code of 100 is sent to the terminal; otherwise, a "process end" and "authentication failed" login process message with a type code of 4 and a result code of 101 is sent to the terminal.

6. The method according to claim 1, characterized in that The data service program receives data from all local terminal nodes, aggregates and packages them, and sends them to the local data service of the transit node on the other side through the USB interface and the isolation card; at the same time, the local data service receives the aggregated data packets from the transit node on the other side, splits them and distributes them to the target terminal node.

7. The method according to claim 6, characterized in that The summary data packet includes a message header and data messages between all terminals and local services, and the message header format is: 1-bit connection symbol, 1-bit connection confirmation symbol, 1-bit reset symbol, 1-bit reset confirmation symbol, 3 reserved bits, 1-bit waiting to receive symbol, 8 reserved bits, 16-bit load data packet number, 16-bit remaining data packet number and 16-bit to-be-sent index; Connector: Set to 1 only when connecting to a slave, sent by the master to notify the slave of the start of the connection; Connection confirmer: It is set to 1 only when the slave receives a connection request from the master, confirming the connection. Reset symbol: When the master or slave needs to reconnect and initialize, it is set to 1; After waiting for the other party to respond, the connection is released and reset; after the reset, the master end resends the request to establish the connection; Reset Confirmation: When the master or slave receives a reset request from the other party, it is set to 1 to notify the other party that it has received it; at the same time, the local end releases the connection reset; Waiting for Receive: When set to 1, it means that the local end is ready to receive data and the other end can send data packets; Number of payload packets: the number of virtual network layer data packets in the packet; Number of remaining data packets: only valid when the waiting reception symbol is 0, indicating the number of data packets that the local end needs to send in this round; Pending index: It is only valid when the waiting reception symbol is 1. Its size is the quotient of all pending summary data packets in the transit node sending cache divided by the maximum number of summary data packets that can be stored in the transit node sending cache. It serves as the basis for whether to give up the sending right in this round and determine the number of pending summary data packets.

8. The method according to claim 1, characterized in that The lower mainboard uses a general x86 or ARM-based computer mainboard, and reads and writes the isolation card by calling the isolation board API function through a USB interface, and its TCP / IP is connected to an external DCS system.

9. The method according to claim 1, characterized in that The upper mainboard uses a general x86 or ARM-based computer mainboard, and uses the isolation board API function method to read and write the isolation card through the USB interface, and its TCP / IP is connected to the external MES system.

10. The method according to claim 1, characterized in that The models of the upper mainboard and the lower mainboard are SV1-F2026C of Xinbu Technology, and the model of the isolation card is Kshd-OT005 of Keston.