Vehicle-mounted Ethernet ring network management method and system
By configuring blocking devices and ports in the vehicle Ethernet ring network, and using loop detection and fault detection messages to quickly detect faults and switch links, the problems of slow link switching and large resource occupation in the existing technology are solved, and the Fast fault detection and link switching ensure stable and real-time communication of the vehicle network.
Patent Information
- Application Number
- CN202410747343.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-09-24
AI Technical Summary
Existing loop management protocols have problems in vehicle communications such as slow link switching, complex configuration, and broadcast messages occupying a large amount of network bandwidth and CPU resources. In addition, the vehicle switching chip does not support congestion control, making it difficult to meet the real-time and stable requirements of the vehicle network. sexual requirements.
Detect and manage loops by configuring blocking devices and blocked ports, using loop detection broadcast messages and fault detection messages to quickly detect faults and switch links, and combine local port status and segmented fault detection of adjacent devices to achieve rapid Fault detection and link switching to avoid network shock.
It achieves rapid discovery and blocking of loops, rapid fault detection and link switching, saves bandwidth, ensures uninterrupted link communication, improves user communication quality, is suitable for the topology stability and real-time requirements of vehicle networks, and reduces system resource occupation. .
Smart Images

Figure CN118694628A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle-mounted Ethernet ring network, and in particular to a vehicle-mounted Ethernet ring network management method and system. Background Art
[0002] With the increase of vehicle communication data, the requirements for data transmission reliability are getting higher and higher. The existing loop management protocol has the disadvantages of slow link switching (STP: second level), complex configuration (ERPS), and broadcast messages occupying a large amount of network bandwidth and CPU resources. In addition, it is generally deployed on switching devices such as switches and routers. At present, the switching chips of vehicle area controllers generally do not support forwarding blocking control such as STP / ERPS.
[0003] In view of the characteristics of vehicle network topology being stable, with few nodes, high real-time requirements, and switch chips not supporting blocking control, the present invention provides an Ethernet ring network management method that can quickly discover faults, quickly switch links, save bandwidth, and facilitate heterogeneous implementation. The Ethernet ring network is managed by configuring blocking devices (DBN) and blocking ports (DBP), detecting and managing loops with blocking devices, and detecting segmented faults between adjacent devices. Summary of the invention
[0004] In view of the defects in the prior art, an object of the present invention is to provide a vehicle-mounted Ethernet ring network management method and system.
[0005] A vehicle-mounted Ethernet ring network management method provided by the present invention includes:
[0006] Step S1: multiple devices form a ring topology structure based on Ethernet lines;
[0007] Step S2: configuring a blocking device based on multiple devices, and configuring a blocking port based on the port of the blocking device;
[0008] Step S3: The blocking device detects and manages loops. When a loop is detected, it notifies other devices in the entire network that a loop has been formed.
[0009] Step S4: After receiving the loop notification, the device starts fault detection;
[0010] Step S5: When a link failure is detected, the blocking device is notified to release the blocked port. When the link failure is detected to be restored, the blocking device is notified to re-block the blocked port. After the failure is restored, steps S3 to S5 are repeatedly triggered.
[0011] Preferably, the step S3 adopts: the blocked port is initially set to a non-blocking state; the blocking device periodically sends a loop detection broadcast message, and when one port of the blocking device receives a loop detection message sent by another port, it notifies other devices that the current topology structure has formed a loop, blocks the blocked port, and stops sending loop detection messages.
[0012] Preferably, the step S4 adopts: discovering local faults by monitoring the local port status, and discovering link faults by performing segment fault detection between adjacent devices.
[0013] Preferably, step S4 adopts: after receiving the loop notification, the device periodically sends a fault detection message to the adjacent device to detect the link fault; the timing starts when the first fault detection message is received, and if no fault detection message is received within a preset detection timeout period, a link fault broadcast message is sent.
[0014] Preferably, the step S5 adopts: when the blocking device receives multiple link failure broadcast messages continuously, it releases the blocked port and replies with confirmation information; the faulty device stops sending link failure broadcast messages after receiving the confirmation information;
[0015] The link failure device sends a fault recovery broadcast message when the faulty link is restored. The blocked device replies with a confirmation message after receiving multiple fault recovery broadcast messages in succession. After receiving the confirmation message, the link failure node stops sending fault recovery broadcast messages and repeatedly triggers steps S3 to S5.
[0016] Preferably, the method further comprises: a redundant backup link, when the link is abnormal, switching to the redundant backup link to ensure that the link communication is not interrupted.
[0017] According to the present invention, a vehicle-mounted Ethernet ring network management system is provided, comprising:
[0018] Module M1: Multiple devices form a ring topology based on Ethernet lines;
[0019] Module M2: configure blocking devices based on multiple devices, and configure blocking ports based on ports of the blocking devices;
[0020] Module M3: Blocking device detects and manages loops. When a loop is detected, it notifies other devices in the entire network that a loop has formed.
[0021] Module M4: The device starts fault detection after receiving the loop notification;
[0022] Module M5: When a link failure is detected, the blocking device is notified to release the blocked port. When the link failure is detected to be restored, the blocking device is notified to re-block the blocked port. After the failure is restored, steps S3 to S5 are repeatedly triggered.
[0023] Preferably, the module M3 adopts: the blocked port is initially set to a non-blocking state; the blocking device periodically sends a loop detection broadcast message, and when one port of the blocking device receives a loop detection message sent by another port, it notifies other devices that the current topology has formed a loop, blocks the blocked port, and stops sending loop detection messages.
[0024] Preferably, the module M4 adopts: discovering local faults by monitoring the local port status, and discovering link faults by performing segmentation fault detection between adjacent devices.
[0025] The module M4 adopts: after receiving the loop notification, the device periodically sends a fault detection message to the adjacent device to detect the link fault; the timing starts when the first fault detection message is received, and if no fault detection message is received within the preset detection timeout period, a link fault broadcast message is sent.
[0026] Preferably, the module M5 adopts: when the blocking device receives multiple link failure broadcast messages continuously, it releases the blocked port and replies with confirmation information; the faulty device stops sending link failure broadcast messages after receiving the confirmation information;
[0027] The link failure device sends a fault recovery broadcast message when the faulty link is restored. The blocked device replies with a confirmation message after receiving multiple fault recovery broadcast messages in succession. The link failure node stops sending fault recovery broadcast messages after receiving the confirmation message, and repeatedly triggers modules M3 to M5.
[0028] Compared with the prior art, the present invention has the following beneficial effects:
[0029] 1. The present invention can quickly discover loops and block them, quickly discover faults and switch links, save bandwidth and facilitate heterogeneous implementation;
[0030] 2. The present invention manages the Ethernet ring network by configuring blocking devices and blocking ports, detecting loops, and detecting segmentation faults between adjacent devices;
[0031] 3. The present invention realizes rapid switching to a redundant backup link when a link is abnormal through rapid fault detection and link switching, and link communication is not interrupted, effectively ensuring the communication quality of users;
[0032] 4. The present invention quickly discovers link failures by combining callback processing of local port status changes with segmentation fault detection between adjacent nodes;
[0033] 5. The present invention is specially designed for the characteristics of stable vehicle network topology, few nodes, and high real-time requirements. The algorithm is concise and occupies less system resources.
[0034] 6. The present invention is designed to address the fact that vehicle-mounted switching chips generally do not support forwarding blocking control, and blocks and releases by controlling the state of the Ethernet port;
[0035] 7. The present invention avoids network oscillation through the design of delayed blocking and delayed release. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0037] Figure 1 This is a schematic diagram of the vehicle-mounted Ethernet ring network management system. DETAILED DESCRIPTION
[0038] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.
[0039] Example 1
[0040] The present invention provides a vehicle-mounted Ethernet ring network management method and system, which avoids loop broadcast storms. The present invention realizes rapid switching to a redundant backup link when a link is abnormal through rapid fault detection and link switching, and link communication is not interrupted, thereby effectively ensuring the communication quality of users.
[0041] The vehicle-mounted Ethernet ring network management method is to statically configure a designated blocking device and a blocking port under the Zonal EEA architecture and the Ethernet ring network topology, and the designated blocking device performs loop detection and blocking control. When a loop is formed, the fault is quickly discovered and reported to the designated blocking device through local port status monitoring and segmentation fault detection between adjacent nodes.
[0042] Specifically, the vehicle-mounted Ethernet ring network management method includes:
[0043] Step S1: multiple devices form a ring topology structure based on Ethernet lines;
[0044] Step S2: configuring a blocking device based on multiple devices, and configuring a blocking port based on the port of the blocking device;
[0045] Step S3: The blocking device detects and manages loops. When a loop is detected, it notifies other devices in the entire network that a loop has been formed.
[0046] Step S4: After receiving the loop notification, the device starts fault detection;
[0047] Step S5: When a link failure is detected, the blocking device is notified to release the blocked port. When the link failure is detected to be restored, the blocking device is notified to re-block the blocked port. After the failure is restored, steps S3 to S5 are repeatedly triggered.
[0048] Specifically, the step S3 adopts: the blocking port DBP is initially set to a non-blocking state, the blocking device DBN periodically sends loop detection broadcast messages, and when a loop detection message is received from other links, the blocking port DBP is blocked and the sending of loop detection messages is stopped.
[0049] Specifically, step S4 adopts: when an Ethernet loop is formed, on the one hand, local faults are quickly discovered by monitoring the local port status; on the other hand, link faults are discovered by periodically sending fault detection messages. The non-blocking port starts timing when the first fault detection message is received. If no fault detection message is received within three sending cycles, a link fault broadcast message is sent.
[0050] Specifically, the step S5 adopts: the blocking device DBN releases the blocked port and replies ACK after receiving five link failure messages in succession, the link failure reporting device stops sending link failure broadcast messages after receiving ACK, the link failure node sends a fault recovery broadcast message when the faulty link is restored, the blocking device DBN re-blocks the blocked port DBP and ACKs, and the link failure node stops sending fault recovery broadcast messages after receiving ACK.
[0051] The present invention also provides a vehicle-mounted Ethernet ring network management system, which can be implemented by executing the process steps of the vehicle-mounted Ethernet ring network management method, that is, those skilled in the art can understand the vehicle-mounted Ethernet ring network management method as a preferred implementation of the vehicle-mounted Ethernet ring network management system.
[0052] Example 2
[0053] Embodiment 2 is a preferred embodiment of Embodiment 1
[0054] like Figure 1 As shown, a vehicle-mounted Ethernet ring network management method provided by the present invention includes:
[0055] ADC\VDC\CDC\LZC\RZC are connected through Ethernet cables to form a ring topology, and LZC is designated as a blocking device (the traffic between LZC and RZC is the smallest), and the port connected to LZC and RZC is designated as a blocking port. After power-on, LZC performs loop detection. If LZC detects a loop, it blocks the blocking port and notifies other devices that a loop has been formed. After ADC\VDC\CDC\RZC receives the loop notification, it immediately starts link fault detection. When ADC or LZC detects a LZC~ADC link failure, LZC releases the blocking port; when the LZC~ADC fault link is restored, LZC re-blocks the designated blocking port. Among them, the ADC represents the intelligent driving domain; VDC represents the vehicle body domain; CDC represents the cockpit domain; LZC represents the left control domain; RZC represents the right controller.
[0056] Specifically, after power-on, LZC periodically sends loop detection messages from two ports. When a loop detection message sent from one port is received from another port, it determines that the topology forms a loop, blocks the blocked port, stops sending loop detection messages, and notifies other devices of loop formation. After receiving the loop formation notification, ADC\VDC\CDC\RZC starts link fault detection between neighbors and periodically sends link detection messages from all ports to adjacent devices. When a link detection message sent by a neighbor is received, the timing starts. If no link detection message is received within the specified time, the link fault is reported. After LZC receives multiple link fault messages in succession, it releases the blocked port and ACKs. The faulty device stops reporting after receiving ACK. When the faulty device receives the fault detection message sent by the neighbor or the faulty port is UP, it reports fault recovery. After LZC receives multiple fault recovery messages in succession, it re-blocks the designated blocked port and ACKs. The fault recovery node stops reporting after receiving ACK.
[0057] In this embodiment, when an Ethernet loop is detected, all non-blocking ports send fault detection messages at a period of 3ms. The port starts timing after receiving the first fault detection message. If no fault detection message is received within 10ms (approximately 3 sending cycles), the link fault notification message is broadcast and sent at a period of 1ms. After receiving 5 link fault notification messages in succession, the blocking device DBN will reply ACK and release the blocked port DBP. The link fault node stops sending link fault notification messages after receiving ACK.
[0058] Those skilled in the art know that, in addition to realizing the system and its various devices, modules, and units provided by the present invention in a purely computer-readable program code, the system and its various devices, modules, and units provided by the present invention can be completely realized in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps to realize the same functions. Therefore, the system and its various devices, modules, and units provided by the present invention can be considered as a hardware component, and the devices, modules, and units included therein for realizing various functions can also be regarded as structures within the hardware component; the devices, modules, and units for realizing various functions can also be regarded as both software modules for realizing the method and structures within the hardware component.
[0059] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.
Claims
1. A vehicle-mounted Ethernet ring network management method, characterized in that: include: Step S1: multiple devices form a ring topology structure based on Ethernet lines; Step S2: configuring a blocking device based on multiple devices, and configuring a blocking port based on the port of the blocking device; Step S3: The blocking device detects and manages loops. When a loop is detected, it notifies other devices in the entire network that a loop has been formed. Step S4: After receiving the loop notification, the device starts fault detection; Step S5: When a link failure is detected, the blocking device is notified to release the blocked port. When the link failure is detected to be restored, the blocking device is notified to re-block the blocked port. After the failure is restored, steps S3 to S5 are repeatedly triggered.
2. The vehicle-mounted Ethernet ring network management method according to claim 1, characterized in that: The step S3 adopts: the blocked port is initially set to a non-blocking state; the blocking device periodically sends a loop detection broadcast message, and when one port of the blocking device receives a loop detection message sent by another port, it notifies other devices that the current topology has formed a loop, blocks the blocked port, and stops sending loop detection messages.
3. The vehicle-mounted Ethernet ring network management method according to claim 1, characterized in that: The step S4 adopts: discovering local faults by monitoring the local port status, and discovering link faults by performing segment fault detection between adjacent devices.
4. The vehicle-mounted Ethernet ring network management method according to claim 3, characterized in that: The step S4 adopts: after receiving the loop notification, the device periodically sends a fault detection message to the adjacent device to detect the link fault; the timing starts when the first fault detection message is received, and if no fault detection message is received within a preset detection timeout period, a link fault broadcast message is sent.
5. The vehicle-mounted Ethernet ring network management method according to claim 1, characterized in that: The step S5 adopts: when the blocking device receives multiple link failure broadcast messages continuously, it releases the blocked port and replies with confirmation information; The faulty device stops sending link fault broadcast messages after receiving the confirmation information; The link failure device sends a fault recovery broadcast message when the faulty link is restored. The blocked device replies with a confirmation message after receiving multiple fault recovery broadcast messages in succession. After receiving the confirmation message, the link failure node stops sending fault recovery broadcast messages and repeatedly triggers steps S3 to S5.
6. The vehicle-mounted Ethernet ring network management method according to claim 1, characterized in that: The method further comprises: a redundant backup link, when the link is abnormal, switching to the redundant backup link to ensure that the link communication is not interrupted.
7. A vehicle-mounted Ethernet ring network management system, characterized in that: include: Module M1: Multiple devices form a ring topology based on Ethernet lines; Module M2: configure blocking devices based on multiple devices, and configure blocking ports based on ports of the blocking devices; Module M3: Blocking device detects and manages loops. When a loop is detected, it notifies other devices in the entire network that a loop has formed. Module M4: The device starts fault detection after receiving the loop notification; Module M5: When a link failure is detected, the blocking device is notified to release the blocked port. When the link failure is detected to be restored, the blocking device is notified to re-block the blocked port. After the failure is restored, modules M3 to M5 are repeatedly triggered.
8. The vehicle-mounted Ethernet ring network management system according to claim 7, characterized in that: The module M3 adopts: the blocked port is initially set to a non-blocking state; the blocking device periodically sends a loop detection broadcast message, and when one port of the blocking device receives a loop detection message sent by another port, it notifies other devices that the current topology has formed a loop, blocks the blocked port, and stops sending loop detection messages.
9. The vehicle-mounted Ethernet ring network management system according to claim 7, characterized in that: The module M4 adopts: discovering local faults by monitoring the local port status, and discovering link faults by performing segmentation fault detection between adjacent devices; The module M4 adopts: after receiving the loop notification, the device periodically sends a fault detection message to the adjacent device to detect the link fault; the timing starts when the first fault detection message is received, and if no fault detection message is received within the preset detection timeout period, a link fault broadcast message is sent.
10. The vehicle-mounted Ethernet ring network management system according to claim 7, characterized in that: The module M5 adopts: when the blocking device receives multiple link failure broadcast messages continuously, it releases the blocked port and replies with confirmation information; the faulty device stops sending link failure broadcast messages after receiving the confirmation information; The link failure device sends a fault recovery broadcast message when the faulty link is restored. The blocked device replies with a confirmation message after receiving multiple fault recovery broadcast messages in succession. The link failure node stops sending fault recovery broadcast messages after receiving the confirmation message, and repeatedly triggers modules M3 to M5.
