Cross-medium data transparent transmission method based on end-to-end virtual tunnel routing

Through the end-to-end virtual tunnel routing method, the security and reliability problems of data transmission between different media ports between multiple devices are solved, transparent transmission is achieved, and communication capabilities and system robustness between devices are improved.

CN119316353APending Publication Date: 2025-01-14ZHEJIANG YUANCHUANG BUILDING INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411464825.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-21
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

The prior art is difficult to achieve secure and reliable data transmission between different media ports between multiple devices, and the ability to cross-media is limited, and transparent transmission cannot be achieved, which increases additional costs and lacks security.

Method used

采用基于端到端虚拟隧道路由的跨介质数据透传方法,通过控制器获取子设备的端口信息,构建通信路径,发送请求报文并通过中间子设备传递,建立虚拟隧道,实现数据交换。

Benefits of technology

It realizes safe and reliable data transmission between different devices, improves cross-media data interaction capabilities, enhances real-time communication capabilities and system robustness between bus devices, and facilitates remote debugging and field device control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119316353A_ABST
    Figure CN119316353A_ABST
Patent Text Reader

Abstract

The invention discloses a cross-medium data unvarnished transmission method based on end-to-end virtual tunnel routing. The cross-medium data unvarnished transmission method comprises the following steps that S1, a controller obtains port information of all sub-devices in a port broadcast scanning mode; s2, the controller constructs a communication path leading to the terminal equipment and sends request message data; s3, the intermediate sub-equipment analyzes the received request message data and judges whether routing needs to be carried out through a request path or not; if the request message data needs to be transmitted to the next-level sub-equipment, the request message data is transmitted to the terminal equipment through the sub-equipment; s4, the response message of the terminal equipment is sent by the sub-equipment at the tail end, and the response message is transmitted back to the controller through the transmission of each intermediate sub-equipment; and S5, after the virtual tunnel is constructed, data exchange can be carried out through the path. According to the invention, safe and reliable data unvarnished transmission can be carried out at different ports among different devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a license plate erasing device, in particular to a cross-media data transparent transmission method based on end-to-end virtual tunnel routing. Background Art

[0002] At present, the end-to-end data exchange communication between multiple devices is mainly based on communication between two devices. There are few implementation schemes for end-to-end communication technology with more than two devices, and data cannot be accessed across ports of different media. If multiple devices want to exchange data between ports of different media, they basically need to rely on third-party gateway devices for conversion and transmission, and the cross-media capabilities are also limited. It is impossible to transparently transmit between multiple media, and it will also increase additional costs, and security cannot be guaranteed. Therefore, it is urgent to develop a transmission method that can realize safe and reliable data transmission between different ports of multiple devices. Summary of the invention

[0003] The purpose of the present invention is to provide a cross-media data transparent transmission method based on end-to-end virtual tunnel routing. The present invention can perform safe and reliable data transparent transmission between different ports of different devices.

[0004] The technical solution of the present invention is a cross-media data transparent transmission method based on end-to-end virtual tunnel routing, comprising the following steps:

[0005] S1. The controller obtains the port information of all sub-devices through port broadcast scanning;

[0006] S2. After obtaining the port information of the sub-device, the controller builds a communication path to the terminal device and sends the request message data;

[0007] S3, the intermediate sub-device parses the received request message data and determines whether it needs to be routed through the request path; if necessary, it continues to pass the request message data to the next-level sub-device, and finally, after transmission by the sub-device, the request message data reaches the terminal device;

[0008] S4. The response message of the terminal device is sent by the last sub-device, and after being transmitted by each intermediate sub-device, the response message is returned to the controller;

[0009] S5. The virtual tunnel is constructed, and the communication path information is stored in the controller, and data can be exchanged through this path.

[0010] In the aforementioned cross-media data transmission method based on end-to-end virtual tunnel routing, the specific process of step S1 is: the controller sends a broadcast message to each of its existing ports, and the sub-devices connected to each port receive the broadcast message information. By parsing the application layer data in the broadcast message, the sub-device can respond to the port information of the controller itself, and the controller obtains the port information of all sub-devices.

[0011] In the aforementioned cross-media data transmission method based on end-to-end virtual tunnel routing, the communication path construction process of step S2 is: the controller constructs a communication path to the terminal device according to the network architecture diagram, and fills in the request path information according to the port type and port number starting from the starting port of the controller. When passing through the ports of each sub-device in turn, the request path information is also filled in according to the port type and port number. Finally, a complete request path information including the transmission identifier, routing number and routing sequence number is formed, and filled in the message header.

[0012] In the aforementioned cross-media data transparent transmission method based on end-to-end virtual tunnel routing, in step S2, the request message data includes a message header and application data.

[0013] In the aforementioned cross-media data transmission method based on end-to-end virtual tunnel routing, in step S3, after the intermediate sub-device receives the request message data from the controller, it decides whether to route based on the relationship between the routing sequence number and the routing number in the message header. If the routing sequence number is not equal to the routing number, it means that this message needs to be passed to the next-level sub-device. When passing it, it is necessary to parse the request path information according to the routing sequence number, and then increase the routing sequence number by 1 before sending it; otherwise, it means that this message is passed to itself and no longer needs to be routed. Finally, after the transmission of the sub-device, the message reaches the terminal device.

[0014] In the aforementioned cross-media data transmission method based on end-to-end virtual tunnel routing, in step S4, the response message of the terminal device is sent by the last sub-device, and the sent response message will decide whether to route according to the routing sequence number. If the routing sequence number is not 0, the corresponding response path information is parsed, and then the routing sequence number is reduced by 1 before sending. Otherwise, this response message is passed to itself and no longer needs to be routed. Finally, after transmission by the sub-device, the message returns to the controller.

[0015] Compared with the prior art, the present invention constructs a virtual tunnel mainly through the automatic marking and routing transparent transmission capabilities of different port paths of the device, thereby achieving transparent transmission from the starting port to the end port, and improving the real-time communication capabilities across devices. The present invention can enable devices between two sets of different media systems to exchange data transparently through the automatic marking and routing capabilities of the port paths, realize the "transparent transmission" of data between the controller and the terminal device, thereby meeting the long-distance cross-media data interaction capabilities, and compared with traditional technologies, improve the communication capabilities of devices on the bus, facilitate remote debugging of field devices, and improve the real-time communication capabilities between bus devices, so that the communication fault tolerance between the control device and the controlled object is greatly enhanced, and the communication robustness of the entire system is greatly improved.

[0016] The use of this technology allows different ports between devices to perform data transparent transmission, thereby achieving functions such as scanning, online diagnosis, and remote control of different media devices on the bus.

[0017] In summary, the present invention can perform secure and reliable data transparent transmission between different ports of different devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 This is a schematic diagram of a specific device of Example 2 of the present invention;

[0019] Figure 2 It is a flow chart of the present invention. DETAILED DESCRIPTION

[0020] The present invention is further described below in conjunction with the accompanying drawings and embodiments, but they are not intended to limit the present invention.

[0021] Virtual tunnel: full name Virtual Tunnel, is a concept widely used in network communication technology. It allows data to be transmitted between different network architectures and establish secure and fast connections.

[0022] Routing: The full name is Routing, which refers to the network-wide process of determining the end-to-end path of a packet from source to destination. Routing technology is mainly responsible for selecting the best transmission path for data packets based on certain strategies or algorithms at the network layer, and forwarding data packets through routing.

[0023] Cross-medium: The full name is Cross-Medium, which usually refers to a technology that can freely convert between different physical media or adapt to multiple media at the same time.

[0024] Embodiment 1. A cross-media data transparent transmission method based on end-to-end virtual tunnel routing, the process is as follows Figure 2As shown, the following steps are included: 1) The controller sends a broadcast message to each of its existing ports, so that the sub-devices connected to each port can receive the broadcast message information. By parsing the application layer data in the broadcast message, the sub-device can respond to the port information existing in the controller itself.

[0025] 2) After the controller obtains the port information of the sub-device, it can build a communication path to the terminal device according to the network architecture diagram, and fill in the request path information according to the port type and port number starting from the starting port of the controller. The ports of each sub-device in the middle also fill in the request path information according to the port type and port number. Finally, a complete request path information including the transmission identifier, routing number and routing sequence number is formed, and filled in the message header and sent out together with the application data.

[0026] 3) After the intermediate sub-device receives the request message from the controller, it can decide whether to route based on the relationship between the routing number and the routing number in the message header. If the routing number is not equal to the routing number, it means that this message needs to be passed to the next-level device. When passing it, it is necessary to parse the request path information according to the routing number, and then increase the routing number by 1 before sending it. Otherwise, it means that this message is passed to itself and no longer needs to be routed. Finally, after the transmission of the sub-device, the message reaches the terminal device.

[0027] 4) The reply message of the terminal device is sent by the last sub-device. The sent reply message will decide whether to route according to the routing number. If the routing number is not 0, the corresponding response path information is parsed, and then the routing number is reduced by 1 and sent again. Otherwise, this reply message is passed to itself and no routing is required. Finally, after transmission by the sub-device, the message returns to the controller.

[0028] 5) The virtual tunnel is constructed and the path information is stored in the controller. Data can be exchanged through this path.

[0029] The present invention enables devices between two different media systems to exchange data transparently through port path automatic marking and routing capabilities, realizes "transparent transmission" of data between the controller and the terminal device, thereby meeting the long-distance cross-media data interaction capability. Compared with traditional technologies, it improves the communication capability of devices on the bus, facilitates remote debugging of field equipment, improves the real-time communication capability between bus devices, greatly enhances the communication fault tolerance between the control device and the controlled object, and greatly improves the communication robustness of the entire system.

[0030] Example 2. Figure 1 As shown, the controller module in the system can read the data of the terminal device in real time through its own Ethernet port, spanning two sub-devices and two different media.

[0031] The implementation method is as follows: First, the controller module uses the port broadcast scanning protocol function to obtain the port information of all the sub-devices below, and obtains that the port number 0 of sub-device 1 is the Ethernet port, the address is 192.168.101.52, and the port number 1 is the CAN port, the address is 1; the port number 0 of sub-device 2 is the CAN port, the address is 2, and the port number 1 is the RS485 port, the address is 1. Secondly, after obtaining this port information, the controller can construct a request path from the Ethernet port to the RS485 port, which contains two paths in total. Specifically, request path one contains the Ethernet port 0 of sub-device 1, the port address is 192.168.101.52, and request path two contains the CAN port 0 of sub-device 2, and the port address is 2. The controller then sends a request data message, which consists of a message header and application data. The message header contains the routing number, routing sequence number, transmission identifier and request path, where the routing number is as follows Figure 1 The device is shown as 2 times, the routing number is 0, the transmission identifier is a request message, and the request path contains the above two paths. The controller checks that the "routing number" is 0, which is less than the "routing times", then parses the "request path 1", and adds 1 to the "routing number", and sends it to the Ethernet port 0 of the sub-device 1 through the Ethernet port. Then, after the Ethernet port 0 of the sub-device 1 receives the request data message, it checks that the "routing number" is 1, which is less than the "routing times", then parses the "request path 2", and adds 1 to the "routing number", and sends it to the sub-device 2 through the request path of CAN port 1, and then fills the controller's Ethernet port path information into the response path 1. Sub-device 2 receives the request message through CAN port 0, checks that the "routing number" is 2, which is equal to the "routing times", then it can parse the application layer message, and fill the path information of CAN port 1 of sub-device 1 into the response path 2, and then sends the message to the terminal device through the RS485 port, and the request message is sent. Finally, after receiving the reply message from the terminal device, the RS485 port 1 of sub-device 2 checks that the "routing number" is 2. If it is not 0, it will parse the "response path 2" and reduce the "routing number" by 1, and send it from CAN port 0 to CAN port 1 of sub-device 1. After receiving the message, the CAN port 1 of sub-device checks that the "routing number" is 1. If it is not 0, it will parse the "response path 1" and reduce the "routing number" by 1, and send it from Ethernet port 0 to the Ethernet port of the controller. After the Ethernet port of the controller receives the message, it checks that the "routing number" is 0, then it can parse the data of the application layer, and the reply message is sent. So far, the data exchange process from the Ethernet port of the controller to the 485 port of sub-device 2 is completed. After the construction of this "virtual tunnel" is completed, the controller and the terminal device can interact with each other through data transmission, which will not affect the normal operation of the sub-device.

Claims

1. A cross-media data transparent transmission method based on end-to-end virtual tunnel routing, characterized in that: The following steps are involved: S1. The controller obtains the port information of all sub-devices through port broadcast scanning; S2. After obtaining the port information of the sub-device, the controller builds a communication path to the terminal device and sends the request message data; S3, the intermediate sub-device parses the received request message data and determines whether it needs to be routed through the request path; if necessary, it continues to pass the request message data to the next-level sub-device, and finally, after transmission by the sub-device, the request message data reaches the terminal device; S4. The response message of the terminal device is sent by the last sub-device, and after being transmitted by each intermediate sub-device, the response message is returned to the controller; S5. The virtual tunnel is constructed, and the communication path information is stored in the controller, and data can be exchanged through this path.

2. According to claim 1, a cross-media data transparent transmission method based on end-to-end virtual tunnel routing is characterized in that: The specific process of step S1 is: the controller sends a broadcast message to each of its existing ports, and the sub-devices connected to each port receive the broadcast message information. By parsing the application layer data in the broadcast message, the sub-device can respond to the port information of the controller itself, and the controller obtains the port information of all sub-devices.

3. According to claim 1, a cross-media data transparent transmission method based on end-to-end virtual tunnel routing is characterized in that: The communication path construction process of step S2 is as follows: the controller constructs a communication path to the terminal device according to the network architecture diagram, and fills in the request path information according to the port type and port number starting from the starting port of the controller. When passing through the ports of each sub-device in turn, the request path information is also filled in according to the port type and port number. Finally, a complete request path information including the transmission identifier, routing number and routing sequence number is formed and filled in the message header.

4. According to claim 1, a cross-media data transparent transmission method based on end-to-end virtual tunnel routing is characterized in that: In step S2, the request message data includes a message header and application data.

5. The cross-media data transparent transmission method based on end-to-end virtual tunnel routing according to claim 1 is characterized in that: In step S3, after the intermediate sub-device receives the request message data from the controller, it decides whether to route based on the relationship between the routing number in the message header and the routing times. If the routing number is not equal to the routing times, it means that the message needs to be passed to the next-level sub-device. When passing it, it is necessary to parse the request path information according to the routing number, and then increase the routing number by 1 before sending it; otherwise, it means that the message is passed to itself and no longer needs to be routed. Finally, after transmission by the sub-device, the message reaches the terminal device.

6. The cross-media data transparent transmission method based on end-to-end virtual tunnel routing according to claim 1, characterized in that: In step S4, the reply message of the terminal device is sent by the last sub-device. The sent reply message will decide whether to route according to the routing number. If the routing number is not 0, the corresponding response path information is parsed, and then the routing number is reduced by 1 before sending. Otherwise, the reply message is passed to itself and no routing is required. Finally, after transmission by the sub-device, the message returns to the controller.