TSN generation device based on network card and switch
Through the TSN generation device based on network cards and switches, the problem of insufficient time information certainty in TSN network communication is solved, multi-channel generation and time information verification are realized, and the reliability and time certainty of the system are improved.
Patent Information
- Application Number
- CN202510806126.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-17
- Publication Date
- 2025-08-08
AI Technical Summary
The existing TSN network communication technology cannot obtain deterministic and accurate time information and cannot meet the requirements of strong real-timeness.
Design a TSN generation device based on network cards and switches. Through CPU D2000/8, TSN GMAC KD6530, TSN SWITCH KD6630, PHY KD3002, PHY KD3004, RJ45 network interfaces and host computers, the generation, verification and broadcast of TSN protocol network packets is realized to ensure the accuracy of time information.
Multi-channel TSN generation is realized, and the system reliability and time certainty are improved, ensuring the correctness of the time information verification of TSN network packets.
Smart Images

Figure CN120454912A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of TSN network communication, and in particular relates to a TSN generating device based on a network card and a switch. Background Art
[0002] Time-Sensitive Networking (TSN), a new industrial communications technology being actively promoted internationally, aims to establish a universal time-sensitive mechanism for Ethernet protocols to ensure the time determinism of network data transmission. Designing a TSN generator has become increasingly urgent. Summary of the Invention
[0003] (1) Technical issues to be resolved
[0004] The technical problem to be solved by the present invention is: to solve the problems of existing TSN network communication technology, specifically the problem that TSN network communication cannot obtain deterministic and accurate time information and cannot meet the requirements of strong real-time performance, a TSN generation device based on a network card and a switch is designed.
[0005] (2) Technical solution
[0006] In order to solve the above technical problems, the present invention provides a TSN generation device based on a network card and a switch, including a CPU D2000 / 8, a TSN GMAC KD6530, a TSN SWITCH KD6630, a PHY KD3002, a PHY KD3004, an RJ45 network interface and a host computer;
[0007] CPU D2000 / 8 is used to respond to TNS communication instructions and generate TSN protocol network messages through the TSN GMAC KD6530 mounted on PCIE. If the TSN protocol network message can be sent directly, the MAC layer message is converted into the physical layer through the network PHY KD3002 and sent out through the RJ45 network interface; if the TSN protocol network message cannot be sent directly, the MAC layer message is converted into the physical layer through the network PHY KD3002 and connected to the physical layer of the network PHY KD3004; the network PHY KD3004 converts the physical layer message into a MAC layer message and then sends it to the TSNSWITCH KD6630 through SGMI; the host computer is used to access the TSN SWITCH KD6630 through the RS232 UART serial port, print out the received TSN protocol network message and verify it. If the time information verification is incorrect, the next frame is received again; if the time information verification is correct, the TSN SWITCH KD6630 broadcasts TSN protocol network messages to multiple RJ45 network interfaces through PHY KD3004.
[0008] The present invention also provides a method for operating and using the device, comprising the following steps:
[0009] Step 1. CPU D2000 / 8 responds to TNS communication instructions and generates TSN protocol network messages through the TSN GMAC KD6530 mounted on PCIE;
[0010] Step 2. If the TSN protocol network message is sent directly, execute steps 3 to 4; otherwise, execute steps 5 to 9.
[0011] Step 3. Network PHY KD3002 converts the MAC layer message into the physical layer and sends it out through the RJ45 network interface;
[0012] Step 4. The external network device obtains the network message of the TSNTSN protocol through the RJ45 network interface;
[0013] Step 5. The network PHY KD3002 converts the MAC layer message into a physical layer and connects it to the physical layer of the network PHY KD3004;
[0014] Step 6. The network PHY KD3004 converts the physical layer message into a MAC layer message, and then sends it to the TSN SWITCH KD6630 through the SGMI;
[0015] Step 7. The host computer accesses the TSN SWITCH KD6630 through the RS232 UART serial port, prints out the received TSN protocol network message and verifies it;
[0016] Step 8. If the time information verification is incorrect, receive a new frame and return to step 5. If the time information verification is correct, the TSN SWITCH KD6630 broadcasts the TSN protocol network message to multiple RJ45 network interfaces through the PHY KD3004.
[0017] Step 9. External network devices obtain TSN network messages through any RJ45 network interface.
[0018] The present invention also provides a TSN network communication method implemented based on the device.
[0019] (3) Beneficial effects
[0020] This invention provides a TSN generation device based on a network card and a switch. In this device, the network card allows the CPU to generate TSN network messages through the TSN GMAC, convert them from the MAC layer to the physical layer, and then transmit them through an RJ45 interface. In the switch, an external host computer can obtain TSN switch information through an RS232 UART, verify the TSN network messages sent by the CPU, and broadcast the verified messages to three RJ45 network interfaces via the TSN switch. This device can achieve multi-channel TSN generation and verify the specific time information of TSN network messages, improving system reliability and time certainty. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] Figure 1 A functional block diagram of the device according to an embodiment of the present invention;
[0022] Figure 2 Flowchart of the operation and use method of the device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0023] In order to make the purpose, content and advantages of the present invention more clear, the specific implementation methods of the present invention are further described in detail below with reference to the accompanying drawings and examples.
[0024] In order to achieve high reliability and deterministic network communication, the present invention provides a TSN generation device based on a network card and a switch, such as Figure 1 As shown in the figure, the TSN generating device mainly consists of CPU D2000 / 8, TSN GMAC KD6530, TSNSWITCH KD6630, CPU host computer display module (CPU host computer interface), PHY KD3002, PHY KD3004, RJ45 network port, host computer and other peripheral configuration chips.
[0025] Based on the network card part (TSN GMAC KD6530), the CPU host computer display module can directly use instructions to schedule the CPU to generate TSN network messages through TSN GMAC, and after conversion from the MAC layer to the physical layer, send it out through RJ45; based on the switch part (TSN SWITCH KD6630), the host computer can obtain TSN SWITCH information through RS232 UART, verify the TSN network messages sent by the CPU, and broadcast the verified messages to the three RJ45 network interfaces through TSN SWITCH. The details are as follows:
[0026] The CPU host computer display module directly dispatches CPU D2000 / 8 to generate TSN protocol network messages through TSN GMACKD6530 through TNS communication instructions. That is, CPU D2000 / 8 responds to TNS communication instructions and generates TSN protocol network messages through TSNGMAC KD6530 mounted on PCIE. If the TSN protocol network message can be sent directly, the network PHY KD3002 converts the MAC layer message into the physical layer and sends it out through the network RJ45. The external network device can obtain the TSN network message through the RJ45 interface; if the TSN protocol network message cannot be sent directly, the network PHY KD3002 converts the MAC layer message into the physical layer and connects it to the physical layer of the network PHY KD3004; the network PHY KD3004 converts the physical layer message into a MAC layer message and then sends it to the TSN SWITCH KD6630 through SGMI; the host computer accesses the TSN SWITCH through the RS232 UART serial port KD6630 prints out the received TSN protocol network message and verifies it; if the time information verification is incorrect, it receives a new frame; if the time information verification is correct, the TSN SWITCH KD6630 broadcasts the TSN protocol network message to the three network RJ45 interfaces through the PHY KD3004.
[0027] The CPU D2000 / 8 has 8 physical cores, a main frequency of 2.0GHz, and a maximum frequency of 2.6GHz. It has excellent computing performance and good energy efficiency, and is suitable for scenarios with high performance requirements such as edge computing and network security.
[0028] The TSN GMAC KD6530 has a total switching performance of 32Gbps, an integrated general-purpose dual-core CPU with a maximum frequency of 800MHz, and supports external DDR4 memory, external QSPI / SPI FLASH storage, and EMMC storage.
[0029] The TSN SWITCH KD6630 has a built-in functional safety dual-core CPU (600MHz) and a rich set of external management interfaces (PCIE, SPI, RGMII, I2C, UART) to implement embedded controller application support, and supports a variety of TSN features and Layer 2 and Layer 3 switching functions.
[0030] Combine Figure 2 The specific working and use process of the above device are as follows:
[0031] Step 1. The CPU host computer display module sends a TNS communication instruction;
[0032] Step 2. CPU D2000 / 8 responds to the TNS communication instruction and generates TSN protocol network messages through the TSN GMAC KD6530 mounted on PCIE;
[0033] Step 3. If the TSN protocol network message is sent directly, execute steps 4 to 5; otherwise, execute steps 6 to 10.
[0034] Step 4. The network PHY KD3002 converts the MAC layer message into the physical layer and sends it out through the network RJ45;
[0035] Step 5. The external network device obtains the network message of TSNTSN protocol through the RJ45 interface;
[0036] Step 6. The network PHY KD3002 converts the MAC layer message into a physical layer and connects it to the physical layer of the network PHY KD3004;
[0037] Step 7. The network PHY KD3004 converts the physical layer message into a MAC layer message, and then sends it to the TSN SWITCH KD6630 through the SGMI;
[0038] Step 8. The host computer accesses the TSN SWITCH KD6630 through the RS232 UART serial port, prints out the received TSN protocol network message and verifies it;
[0039] Step 9. If the time information verification is incorrect, receive a new frame and return to step 6. If the time information verification is correct, the TSN SWITCH KD6630 broadcasts the TSN protocol network message to the three network RJ45 interfaces through the PHY KD3004.
[0040] Step 10. External network devices obtain TSN network messages through any RJ45 interface.
[0041] It can be seen that compared with the existing technology, the device can realize multi-channel TSN generation and verify the specific time information of TSN network messages, thereby improving the reliability and time certainty of the system.
[0042] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A TSN generation device based on a network card and a switch, characterized in that: Includes CPU D2000 / 8, TSN GMACKD6530, TSN SWITCH KD6630, PHY KD3002, PHY KD3004, RJ45 network interface and host computer; CPU D2000 / 8 is used to respond to TNS communication instructions and generate TSN protocol network messages through the TSN GMAC KD6530 mounted on PCIE. If the TSN protocol network messages can be sent directly, the network PHY KD3002 converts the MAC layer messages into physical layer messages and sends them through the RJ45 network interface. If the network message of the TSN protocol cannot be sent directly, the MAC layer message is converted into the physical layer through the network PHY KD3002 and connected to the physical layer of the network PHY KD3004; The network PHY KD3004 converts the physical layer message into a MAC layer message, and then sends it to the TSN SWITCHKD6630 through the SGMI. The host computer is used to access the TSN SWITCH KD6630 through the RS232 UART serial port, print out the received TSN protocol network message and verify it. If the time information verification is incorrect, the next frame is received again. If the time information is verified correctly, the TSN SWITCH KD6630 broadcasts the TSN protocol network message to multiple RJ45 network interfaces through the PHY KD3004.
2. The device according to claim 1, wherein The CPU D2000 / 8 has 8 physical cores and a main frequency of 2.0 GHz.
3. The device according to claim 1, wherein The TSN GMAC KD6530 has a total switching performance of 32 Gbps, an integrated dual-core CPU, a maximum frequency of 800 MHz, and supports external DDR4 memory, external QSPI / SPIFLASH storage, and EMMC storage.
4. The device according to claim 1, wherein The TSN SWITCH KD6630 has a built-in dual-core CPU and supports layer 2 and layer 3 switching functions.
5. The device according to claim 1, wherein The TSN GMAC KD6530 and PHY KD3002 communicate via two SGMIs.
6. The device according to claim 1, wherein The TSN SWITCH KD6630 and PHY KD3004 communicate via 4-way SGMI.
7. The device according to claim 1, wherein The device is used in TSN network communication.
8. A method for operating and using the device according to any one of claims 1 to 7, characterized in that: The following steps are involved: Step 1. CPU D2000 / 8 responds to TNS communication instructions and generates TSN protocol network messages through the TSN GMAC KD6530 mounted on PCIE; Step 2. If the TSN protocol network message is sent directly, execute steps 3 to 4; otherwise, execute steps 5 to 9. Step 3. Network PHY KD3002 converts the MAC layer message into the physical layer and sends it out through the RJ45 network interface; Step 4. The external network device obtains the network message of the TSNTSN protocol through the RJ45 network interface; Step 5. The network PHY KD3002 converts the MAC layer message into a physical layer and connects it to the physical layer of the network PHY KD3004; Step 6. The network PHY KD3004 converts the physical layer message into a MAC layer message, and then sends it to the TSNSWITCH KD6630 through the SGMI; Step 7. The host computer accesses the TSN SWITCH KD6630 through the RS232 UART serial port, prints out the received TSN protocol network message and verifies it; Step 8. If the time information verification is incorrect, receive a new frame and return to step 5. If the time information verification is correct, the TSN SWITCH KD6630 broadcasts the TSN protocol network message to multiple RJ45 network interfaces through the PHY KD3004. Step 9. External network devices obtain TSN network messages through any RJ45 network interface.
9. The method according to claim 8, wherein This method is applied in TSN network communication.
10. A TSN network communication method implemented based on the device according to any one of claims 1 to 7.