WO2022218419A1 - 一种组建网络的方法、以太网系统和车辆 - Google Patents
一种组建网络的方法、以太网系统和车辆 Download PDFInfo
- Publication number
- WO2022218419A1 WO2022218419A1 PCT/CN2022/087157 CN2022087157W WO2022218419A1 WO 2022218419 A1 WO2022218419 A1 WO 2022218419A1 CN 2022087157 W CN2022087157 W CN 2022087157W WO 2022218419 A1 WO2022218419 A1 WO 2022218419A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- backbone
- port
- node
- link
- terminal
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 139
- 230000000903 blocking effect Effects 0.000 claims description 95
- 238000004891 communication Methods 0.000 claims description 42
- 238000003745 diagnosis Methods 0.000 claims description 26
- 238000004590 computer program Methods 0.000 claims description 10
- 230000008521 reorganization Effects 0.000 abstract description 14
- 230000004044 response Effects 0.000 abstract description 13
- 238000012545 processing Methods 0.000 description 44
- 238000010586 diagram Methods 0.000 description 31
- 230000006870 function Effects 0.000 description 23
- 230000008569 process Effects 0.000 description 19
- 230000006855 networking Effects 0.000 description 10
- 238000001514 detection method Methods 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 6
- 230000001360 synchronised effect Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 238000012544 monitoring process Methods 0.000 description 4
- 230000002159 abnormal effect Effects 0.000 description 3
- 230000005856 abnormality Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000008030 elimination Effects 0.000 description 2
- 238000003379 elimination reaction Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 230000010355 oscillation Effects 0.000 description 2
- 238000009966 trimming Methods 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000000446 fuel Substances 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/42—Loop networks
- H04L12/437—Ring fault isolation or reconfiguration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/42—Loop networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/02—Topology update or discovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/18—Loop-free operations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/22—Alternate routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/28—Routing or path finding of packets in data switching networks using route fault recovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
Definitions
- the present application relates to the field of Ethernet, and more particularly, to a method for building a network, an Ethernet system and a vehicle.
- a redundant network is usually involved in the vehicle Ethernet application process for data link backup.
- Typical network topology architectures such as T-shaped network, bilinear network, ring topology.
- the ring network has the lowest cost and is widely used in many application scenarios.
- MAC media access control
- STP Spanning Tree Protocol
- RSTP Rapid Spanning Tree Protocol
- MSTP Multiple Spanning Tree Protocol
- STP Spanning Tree Protocol
- Node election performs link trimming and loop elimination.
- protocols such as STP/RSTP/MSTP are limited by the convergence algorithm and mechanism, so that the network topology establishment time cannot meet the needs of in-vehicle applications.
- the present application provides a method for establishing a network, an Ethernet system and a vehicle, which can improve the response time of switching between active and standby links, realize rapid network reorganization, and ensure the requirements of in-vehicle applications.
- a method for building a network includes M backbone nodes, each of the M backbone nodes includes a first backbone port and a second backbone port, and the M backbone nodes pass through the first backbone port.
- the backbone port and the second backbone port form a ring network, and M is an integer greater than 2.
- the M backbone nodes include the first backbone node, the first backbone port of the first backbone node is in the forwarding state, and the second backbone port of the first backbone node is in the blocking state; among the M backbone nodes, except the first backbone node The first backbone port and the second backbone port of any backbone node are in the forwarding state.
- the method includes: the first backbone node acquires link failure information in the ring network, and the first backbone node switches the second backbone port of the first backbone node to a forwarding state according to the link failure information.
- the first backbone node can obtain the link failure information in the ring network, the link failure information is used as the event trigger source, and when the first backbone node obtains the information, it switches the port in the blocked state to Forwarding state, thereby starting the backup link where the port in the original blocking state is located.
- the ring network can be reorganized into a linear communication network for communication under link failure.
- acquiring the link failure information in the ring network by the first backbone node includes: the first backbone node receives a notification message through the first backbone port of the first backbone node , the notification message is used to indicate that the first link is faulty, and the first link is the link where the first backbone port of the second backbone node is located.
- the notification message is a bridge protocol data unit BPDU message.
- acquiring the link failure information in the ring network by the first backbone node includes: the first backbone node determines that the second link is faulty, and the second link is the first link The link on which the first backbone port of a backbone node is located.
- the method further includes: the first backbone node switches the first backbone port of the first backbone node to a blocking state.
- determining that the second link is faulty by the first backbone node includes: the first backbone node determines that the second link is faulty through differential signal diagnosis.
- each of the M backbone nodes includes a first identifier, and the first identifier is used to identify a backbone node in the network.
- the method further includes: the first backbone node detects the first identifier; the first backbone node determines itself as a backbone node in the network according to the first identifier.
- a method for building a network wherein the network includes M backbone nodes, each of the M backbone nodes includes a first backbone port and a second backbone port, and the M backbone nodes pass through The first backbone port and the second backbone port form a ring network, and M is an integer greater than 2.
- the M backbone nodes include a first backbone node, the first backbone port of the first backbone node is in a forwarding state, and the second backbone port of the first backbone node is in a blocking state.
- the first backbone port and the second backbone port of any backbone node of the M backbone nodes except the first backbone node are in the forwarding state, and the second backbone node is the M backbone node except the first backbone node.
- the method includes: the second backbone node determines that the first link is faulty, and the first link is the link where the first backbone port of the second backbone node is located; and the second backbone node sends the data through the second backbone port of the second backbone node
- the notification message is used to indicate that the first link is faulty.
- the second backbone node when the second backbone node determines that the first link is faulty, it will send a notification message, so that the first backbone node can learn the link fault information in the ring network, and the link fault information is used as the event trigger source, In the case of acquiring the information, the first backbone node switches its port in the blocking state to the forwarding state, thereby starting the backup link where the port in the original blocking state is located. After the port state is switched, the ring network can be reorganized into a linear communication network for communication under link failure. Compared with the prior art, when a link failure occurs, all nodes are silent, and then a new round of node election and link cutting is performed to rebuild the communication connection between the remaining links. The response time of link switching realizes rapid network reorganization and ensures the requirements of in-vehicle applications.
- the method further includes: the second backbone node switches the first backbone port of the second backbone node to a blocking state.
- the first backbone port of the second backbone node is a master port
- the second backbone port of the second backbone node is a slave port
- the second backbone node determining that the first link is faulty includes: the second backbone node determining that the first link is faulty through differential signal diagnosis.
- each of the M backbone nodes includes a first identifier, and the first identifier is used to identify a backbone node in the network.
- the method further includes: the second backbone node detects the first identifier; the second backbone node determines itself as a backbone node in the network according to the first identifier.
- the notification message is a bridge protocol data unit BPDU message.
- a method for forming a network includes M backbone nodes, each of the M backbone nodes includes a first backbone port and a second backbone port, and the M backbone nodes pass through the first backbone port and the second backbone port to form a ring network, where M is an integer greater than 2.
- the M backbone nodes include a first backbone node, the first backbone port of the first backbone node is in a forwarding state, and the second backbone port of the first backbone node is in a blocking state. The first backbone port and the second backbone port of any one of the M backbone nodes except the first backbone node are in the forwarding state.
- the network further includes a terminal node, the terminal node includes a first terminal port and a second terminal port, the first terminal port is in a forwarding state, and the second terminal port is in a blocking state.
- At least two of the M backbone nodes further include third terminal ports, and the first terminal port and the second terminal port are connected to the third terminal ports of the at least two backbone nodes.
- the method includes: the terminal node determines that a third link is faulty, and the third link is the link where the first terminal port is located; and the terminal node switches the second terminal port to a forwarding state.
- the terminal node can learn the fault information of its active and standby links, and the link fault information is used as the event trigger source.
- the terminal node When the terminal node obtains this information, it switches the port in the blocking state to the forwarding state, thereby Start the backup link where the port in the blocked state is located.
- the present application does not require equipment other than the terminal node to participate in control and processing, and completes the fast switching of the active and standby links under the internal configuration logic of the terminal node. Therefore, the response time of the switching of the active and standby links can be improved. , to achieve rapid network reorganization and ensure the needs of in-vehicle applications.
- the method further includes: the terminal node switches the first terminal port to a blocked state.
- the determining by the terminal node that the third link is faulty includes: the terminal node determining that the third link is faulty through differential signal diagnosis.
- the terminal node includes a second identifier, and the second identifier is used to identify the terminal node in the network.
- the method further includes: the terminal node detects the second identifier; and the terminal node determines itself as a terminal node in the network according to the second identifier.
- an apparatus for forming a network includes M backbone nodes, each of the M backbone nodes includes a first backbone port and a second backbone port, and the M backbone nodes pass through the first backbone port and the second backbone port to form a ring network, where M is an integer greater than 2.
- the M backbone nodes include a first backbone node, the first backbone port of the first backbone node is in a forwarding state, and the second backbone port of the first backbone node is in a blocking state.
- the first backbone port and the second backbone port of any backbone node of the M backbone nodes except the first backbone node are in the forwarding state, and the second backbone node is the M backbone node except the first backbone node.
- the device includes a transceiver unit and a processing unit.
- the device is the first backbone node.
- the transceiver unit is used for acquiring the link failure information in the ring network; the processing unit is used for switching the second backbone port of the first backbone node to the forwarding state according to the link failure information.
- the transceiver unit is specifically configured to: receive a notification message through the first backbone port of the first backbone node, where the notification message is used to indicate that the first link is faulty , the first link is the link where the first backbone port of the second backbone node is located.
- the notification message is a bridge protocol data unit BPDU message.
- the processing unit is further configured to: determine that the second link is faulty, and the second link is the link where the first backbone port of the first backbone node is located.
- the processing unit is further configured to: switch the first backbone port of the first backbone node to a blocking state.
- the processing unit is specifically configured to: determine that the second link is faulty through differential signal diagnosis.
- each of the M backbone nodes includes a first identifier, and the first identifier is used to identify a backbone node in the network.
- the processing unit is further configured to: detect the first identifier; and determine itself as a backbone node in the network according to the first identifier.
- a fifth aspect provides an apparatus for forming a network
- the network includes M backbone nodes, each of the M backbone nodes includes a first backbone port and a second backbone port, and the M backbone nodes pass through the first backbone port. and the second backbone port to form a ring network, where M is an integer greater than 2.
- the M backbone nodes include a first backbone node, the first backbone port of the first backbone node is in a forwarding state, and the second backbone port of the first backbone node is in a blocking state.
- the first backbone port and the second backbone port of any backbone node of the M backbone nodes except the first backbone node are in the forwarding state, and the second backbone node is the M backbone node except the first backbone node.
- the device includes a transceiver unit and a processing unit.
- the device is a second backbone node.
- the processing unit is configured to determine that the first link is faulty, and the first link is the link where the first backbone port of the second backbone node is located; the transceiver unit is configured to send a notification message through the second backbone port of the second backbone node message, the notification message is used to indicate that the first link is faulty.
- the processing unit is further configured to: switch the first backbone port of the second backbone node to a blocking state.
- the first backbone port of the second backbone node is a master port
- the second backbone port of the second backbone node is a slave port
- the processing unit is specifically configured to: determine that the first link is faulty through differential signal diagnosis.
- each of the M backbone nodes includes a first identifier, and the first identifier is used to identify a backbone node in the network.
- the processing unit is further configured to: detect the first identifier; and determine itself as a backbone node in the network according to the first identifier.
- the notification message is a bridge protocol data unit BPDU message.
- a sixth aspect provides an apparatus for forming a network
- the network includes M backbone nodes, each of the M backbone nodes includes a first backbone port and a second backbone port, and the M backbone nodes pass through the first backbone port. and the second backbone port to form a ring network, where M is an integer greater than 2.
- the M backbone nodes include a first backbone node, the first backbone port of the first backbone node is in a forwarding state, and the second backbone port of the first backbone node is in a blocking state.
- the first backbone port and the second backbone port of any one of the M backbone nodes except the first backbone node are in the forwarding state.
- the network further includes a terminal node, the terminal node includes a first terminal port and a second terminal port, the first terminal port is in a forwarding state, and the second terminal port is in a blocking state.
- At least two of the M backbone nodes further include third terminal ports, and the first terminal port and the second terminal port are connected to the third terminal ports of the at least two backbone nodes.
- the apparatus includes a processing unit.
- the device is a terminal node.
- the processing unit is configured to determine that the third link is faulty, and the third link is the link where the first terminal port is located.
- the processing unit is further configured to switch the second terminal port to a forwarding state.
- the processing unit is further configured to: switch the first terminal port to a blocked state.
- the processing unit is specifically configured to: determine that the third link is faulty through differential signal diagnosis.
- the terminal node includes a second identifier, and the second identifier is used to identify the terminal node in the network.
- the processing unit is further configured to: detect the second identifier; and determine itself as a terminal node in the network according to the second identifier.
- an apparatus for forming a network comprising: a memory for storing a computer program; a processor for executing the computer program stored in the memory, so that the apparatus executes any possibility of the first aspect
- a chip system in an eighth aspect, includes: a processor for calling and running a computer program from a memory, so that a device installed with the chip system executes any one of the possible implementations of the first aspect method, or perform the method in any possible implementation manner of the second aspect, or perform the method in any possible implementation manner of the third aspect.
- a computer-readable storage medium wherein a computer program is stored on the computer-readable storage medium, and when the computer program runs on a computer, the computer is made to execute any one of the first aspect.
- a tenth aspect provides an Ethernet system, comprising: M backbone nodes, each of the M backbone nodes includes a first backbone port and a second backbone port, and the M backbone nodes pass through the first backbone port and the second backbone port.
- Two backbone ports form a ring network, and M is an integer greater than 2.
- the M backbone nodes include a first backbone node, the first backbone port of the first backbone node is in a forwarding state, and the second backbone port of the first backbone node is in a blocking state.
- the first backbone port and the second backbone port of any backbone node of the M backbone nodes except the first backbone node are in the forwarding state, and the second backbone node is the M backbone node except the first backbone node.
- the first backbone node is used for: acquiring link failure information in the ring network;
- the second backbone port of the first backbone node is switched to the forwarding state according to the link failure information.
- the second backbone node is configured to: determine that the first link is faulty, and the first link is the link where the first backbone port of the second backbone node is located; Send a notification message through the second backbone port of the second backbone node, where the notification message is used to indicate that the first link is faulty;
- the first backbone node is specifically configured to: receive the notification message through the first backbone port of the first backbone node.
- the second backbone node is further configured to: switch the first backbone port of the second backbone node to a blocking state.
- the first backbone port of the second backbone node is a master port
- the second backbone port of the second backbone node is a slave port
- the second backbone node is specifically configured to: determine that the first link is faulty through differential signal diagnosis.
- the notification message is a bridge protocol data unit BPDU message.
- the first backbone node is specifically configured to: determine that the second link is faulty, and the second link is the link where the first backbone port of the first backbone node is located .
- the first backbone node is further configured to: switch the first backbone port of the first backbone node to a blocking state.
- the first backbone node is specifically configured to: determine that the second link is faulty through differential signal diagnosis.
- each of the M backbone nodes includes a first identifier, and the first identifier is used to identify the backbone node in the Ethernet system.
- the Ethernet system further includes a terminal node, the terminal node includes a first terminal port and a second terminal port, the first terminal port is in a forwarding state, and the second terminal port is In the blocking state, at least two of the M backbone nodes further include a third terminal port, and the first terminal port and the second terminal port are connected to the third terminal port of the at least two backbone nodes.
- the terminal node is used to: determine that the third link is faulty, and the third link is the link where the first terminal port is located; and switch the second terminal port to the forwarding state.
- the terminal node is further configured to: switch the first terminal port to a blocked state.
- the terminal node is specifically configured to: determine that the third link is faulty through differential signal diagnosis.
- the terminal node includes a second identifier, and the second identifier is used to identify the terminal node in the Ethernet system.
- a vehicle which is characterized by comprising the tenth aspect or the Ethernet system in any possible implementation manner of the tenth aspect.
- FIG. 1 is a schematic diagram of an application scenario of an embodiment of the present application.
- FIG. 2 is a schematic block diagram of a method for forming a network provided by an embodiment of the present application.
- FIG. 3 is a schematic block diagram of an Ethernet system provided by an embodiment of the present application.
- FIG. 4 is a schematic flowchart of a method for forming a network provided by an embodiment of the present application.
- FIG. 5 is a schematic block diagram of an Ethernet system provided by an embodiment of the present application.
- FIG. 6 is a schematic structural diagram of an apparatus for forming a network provided by an embodiment of the present application.
- FIG. 7 is a schematic structural diagram of an apparatus for forming a network provided by an embodiment of the present application.
- FIG. 9 shows a schematic structural diagram of an apparatus for forming a network provided by an embodiment of the present application.
- FIG. 10 is a schematic diagram of the operation logic of a backbone node provided by an embodiment of the present application.
- FIG. 11 is a schematic diagram of a network architecture 1100 provided by an embodiment of the present application.
- FIG. 12 is a schematic diagram of port state switching in the case of a link failure provided by an embodiment of the present application.
- FIG. 13 is a schematic diagram of port state switching in the case of a failure of a backbone node according to an embodiment of the present application.
- FIG. 14 is a schematic diagram of a transmission path of a BPDU packet in the case of a link failure provided by an embodiment of the present application.
- FIG. 15 is a schematic diagram of a transmission path of a BPDU packet in the case of a backbone node provided by an embodiment of the present application.
- FIG. 16 is a schematic diagram of port state switching in the case of a link failure provided by an embodiment of the present application.
- FIG. 1 is a schematic diagram of an application scenario of an embodiment of the present application. As shown in FIG. 1 , the method provided in this embodiment of the present application may be applied to an Ethernet system 100, where the Ethernet system 100 may include a domain controller (domain controller, DC) 110, a vehicle integrated/integration unit , VIU) 120 and vehicle parts 130 . Communication between the DC 110, the VIU 120, and the vehicle components 130 is via ethernet technology.
- DC domain controller
- VIU vehicle integrated/integration unit
- the DC 110 includes a plurality of DCs, and each DC is used to manage a certain functional domain in the vehicle, that is, there is a communication connection between the DC and a plurality of vehicle components located in the functional domain.
- the DC 110 is used to control the vehicle parts in the corresponding functional domain, or provide data processing functions for the vehicle parts in the corresponding functional domain.
- the DC in the vehicle may include an autonomous driving domain controller, a cockpit domain controller (CDC), a vehicle domain controller (VDC), and the like.
- the autonomous driving domain controller can provide services for vehicle components that realize autonomous driving functions.
- Vehicle components that realize autonomous driving functions include monocular cameras, binocular cameras, millimeter-wave radars, lidars, and ultrasonic radars.
- CDC can provide services for vehicle parts in the cockpit domain, where the vehicle parts in the cockpit domain include head-up displays, instrument displays, radios, navigation, cameras, etc.
- VDC can provide services for vehicle components in the body domain and vehicle components in the chassis domain.
- the vehicle components in the body domain include door and window lift controllers, electric rearview mirrors, air conditioners, and central door locks.
- Vehicle parts in the chassis domain include vehicle parts in the braking system, vehicle parts in the steering system, and vehicle parts in the acceleration system, such as the accelerator.
- the vehicle components 130 include actuators, which are used to implement specific functions, wherein the actuators may be, for example, sensors 133 or actuators 132 in the vehicle.
- the vehicle component 130 may further include an electronic control unit (ECU) 131 .
- the vehicle parts 130 may include one or more of the following vehicle parts, vehicle parts with partial or complete ECU functions; and vehicle parts without electronic control functions. Among them, the vehicle parts 130 with complete electronic control functions can be understood as, the vehicle parts 130 can realize all the electronic control functions required by the vehicle parts 130 by their own ECU 131.
- the vehicle part 130 with part of the electronic control function can be understood as, a part of the electronic control function required by the vehicle part 130 is realized by the ECU in the vehicle part 130, and another part of the electronic control function required by the vehicle part 130 is realized by VIU 120 implementation.
- the vehicle component 130 without electronic control function can be understood as the vehicle component 130 does not have an electronic control unit ECU that realizes the electronic control function, and the electronic control functions required by the vehicle component 130 are all realized by the VIU.
- the ECU 131 located inside the vehicle parts, is used to provide electronic control functions for the vehicle parts. For example, the electronic control unit in the wiper, the electronic control unit in the door, etc.
- VIU 120 There is a communication connection between the VIU 120 and the vehicle component 130, and there is a communication connection between the DC 110 in the vehicle.
- VIU 1 is communicatively connected with vehicle component 1, vehicle component 2, and vehicle component 3, and there is a communication connection between VIU 1 and DC1 and DC2.
- there may be a communication connection between the VIU 120 and a certain DC in the DCs 110 for example, there is a communication connection between the VIU b shown in FIG. 1 and the DC n.
- VIU 120 may also have communication connections with multiple DCs in DC 110.
- VIU 1 shown in FIG. 1 may have communication connections with both DC 1 and DC 2.
- the VIU 120 may send control information acquired from the DC 110 to corresponding components in the vehicle part 130, and control the components in the vehicle part 130 to perform a certain operation based on the acquired control information, for example, control based on the control information Action of the wiper; another example, controlling the switch state of the door lock based on the control information, etc.
- the VIU 120 can also process the data to be processed in the vehicle parts 130, for example, perform data processing on the rainfall information collected by the sensitive element of the wiper, and determine the working state of the wiper, wherein the working state includes the working frequency of the wiper or switch state.
- data processing is performed on the fingerprint information obtained by the sensitive element of the door lock on the vehicle door to determine the opening and closing state information of the vehicle door.
- the VIU 120 can also send the result of the data processing to the DC 110, and the DC 110 generates corresponding control information according to the working state of the area.
- each VIU may be connected to form a ring network through a wired manner, or may also be referred to as a backbone network, and each VIU serves as a backbone node in a ring network.
- the electronic devices in the vehicle for example, the DC110 and the vehicle parts 130 in FIG. 1
- the ring network can be connected to the terminal node, so that the electronic devices in the vehicle can communicate through the ring network, and the devices connected to the ring network can be called is the terminal node.
- spanning tree protocol spanning tree protocol
- RSTP rapid spanning tree protocol
- MSTP Multiple spanning tree protocol
- STP/RSTP/MSTP are limited by the convergence algorithm and mechanism, so that the network topology establishment time cannot meet the needs of in-vehicle applications.
- the present application provides a method for building a network, an Ethernet system and a vehicle, which can improve the response time of switching between active and standby links, realize rapid network reorganization, and ensure the requirements of in-vehicle applications.
- FIG. 2 is a schematic block diagram of a method 200 for forming a network provided by an embodiment of the present application.
- the network includes M backbone nodes, and each of the M backbone nodes includes a first backbone port and a second backbone port.
- a ring network is formed between the backbone nodes through the first backbone port and the second backbone port, and the ring network may also be called a backbone network, and M is an integer greater than 2.
- the M backbone nodes include a first backbone node, the first backbone port of the first backbone node is in a forwarding state, and the second backbone port of the first backbone node is in a blocking state.
- the first backbone port and the second backbone port of any backbone node of the M backbone nodes except the first backbone node are in the forwarding state, and the second backbone node is the M backbone node except the first backbone node.
- the network includes M backbone nodes, each of the M backbone nodes includes a first backbone port and a second backbone port, and a ring can be formed between the M backbone nodes through the first backbone port and the second backbone port network.
- the second backbone port of the first backbone node may be set to a blocking state, and the first backbone port and the second backbone port of any backbone node of the M backbone nodes except the first backbone node are both It is in the forwarding state to avoid Layer 2 loops.
- the link where the port in the blocking state is located may also be called a backup link, and these ports in the forwarding state are connected in pairs to form the primary link.
- the method 200 for forming a network includes the following steps:
- the first backbone node acquires link failure information in the ring network.
- link faults include but are not limited to the following possibilities: link faults caused by loose backbone ports of backbone nodes, link faults caused by power failure of any backbone node connected to the link, short-circuit or open-circuit of communication lines on the link , open circuit, etc. cause link failure.
- a backbone port is a port used to form a ring network among the ports of a backbone node.
- One backbone node may include two backbone ports, and the two backbone ports are respectively connected to one backbone node.
- the link failure information includes a failure of a first link, where the first link is a link where the first backbone port of the second backbone node is located.
- the first backbone node acquires link failure information in the ring network, including:
- the second backbone node determines that the first link is faulty, and the second backbone node sends a notification packet through the second backbone port of the second backbone node, where the notification packet is used to indicate that the first link is faulty.
- the first backbone node may receive the notification message through the first backbone port of the first backbone node.
- the fault information can trigger the second backbone node to send a notification packet, and the notification packet is used to indicate link fault information, and the second backbone node can Send notification messages through its second backbone port.
- the notification message may be forwarded by each backbone node in the ring network, and the first backbone node will receive the notification message on its first backbone port, so as to obtain link failure information in the ring network according to the notification message.
- the failure of the first link includes, but is not limited to, the following possibilities: the loose first backbone port of the second backbone node causes the link to fail, and the backbone node at the other end connected to the first link loses power and causes the link to fail , The communication line on the first link is short-circuited, open-circuited, or open-circuited, etc., resulting in a link failure.
- the two backbone nodes connected to the faulty link or the two backbone nodes connected to the faulty node will detect the link failure information.
- the fault information is used as the trigger source of the notification message. Therefore, the two second backbone nodes will forward the notification message from the port where they can communicate normally. That is to say, in the ring network, there will be two second backbone nodes.
- the two backbone nodes perform the steps of sending notification packets respectively, so that there will be two notification packets in the ring network, and their transmission directions in the ring network are opposite, and one of them will reach the second backbone port of the first backbone node. The port is blocked, so notification packets will be discarded at this port.
- Another notification packet will arrive at the first backbone port of the first backbone node. Since the port is in a forwarding state, the first backbone node can receive the notification packet through its first backbone port. In the case of receiving the notification message, the first backbone node learns that a link failure has occurred in the ring network. In other words, through the notification message, the first backbone node obtains the link failure information.
- the notification message in this application is the notification message under the link failure.
- the sending of the notification message will be triggered, and in the case of no link failure, the notification message will not be It will trigger the sending of the notification message, so that for the first backbone node, when the notification message is received, it is considered that the link in the ring network has failed, and if it is not received, it is considered that the link is normal.
- the specific information included in the notification message the specific information of the faulty link may be carried, that is, which link is faulty, or it may not be carried, which is not limited in this application.
- the link failure information includes a second link failure, where the second link is a link where the first backbone port of the first backbone node is located.
- the first backbone node acquiring the link failure information in the ring network includes: the first backbone node determining that the second link is faulty.
- the first backbone node may acquire fault information of the link where the first backbone port of the first backbone node is located.
- the first backbone node can obtain the fault information of the first backbone port through its own port performance.
- the second backbone port of the first backbone node cannot communicate with external communication, and the first backbone port of the first backbone node is in a blocked state, so no notification message is received.
- the first backbone node can receive the notification message through its first backbone port to obtain link failure information; if the second link fails, then The first backbone node can directly obtain the link failure information.
- the failure of the second link includes but is not limited to the following possibilities: the first backbone port of the first backbone node is loose, resulting in a link failure, and the backbone node at the other end connected to the second link is powered off, resulting in a link failure. , The communication line on the second link is short-circuited, open-circuited, or open-circuited, etc., resulting in a link failure.
- the first backbone node switches the second backbone port of the first backbone node to a forwarding state according to the link failure information.
- the first backbone node When the first backbone node obtains the link failure information, it switches the second backbone port in the blocking state to the forwarding state. That is to say, the first backbone node can learn that there is a link failure in the current ring network according to the link failure information, so it immediately switches the second backbone port that was in the blocking state to the forwarding state, thereby enabling the backup link in the ring network In this way, all normal nodes can continue to communicate normally through the linear communication network formed by the backup link and the undamaged link, complete the communication under the fault state, and ensure the communication security of the Ethernet system.
- the first backbone node can obtain the link failure information in the ring network, the link failure information is used as the event trigger source, and when the first backbone node obtains the information, it switches the port in the blocked state to Forwarding state, thereby starting the backup link where the port in the original blocking state is located.
- the ring network can be reorganized into a linear communication network for communication under link failure.
- the forwarding state (forward) of a port means that the port can transmit physical layer (physical layer) signals, and can also transmit layer 2 and above packets.
- the blocking state of a port (block) means that the port can transmit physical layer signals, but cannot transmit layer 2 and above packets, and layer 2 and above packets will be discarded through the port.
- link in this application refers to a straight link between two nodes, that is, there is no other node between the two nodes.
- the method further includes: S230-a, the second backbone node switches its first backbone port to a blocked state.
- the second backbone node may switch its first backbone port to a blocked state. In this way, when the first link is restored to normal, there is still a port in the blocked state in the ring network, so as to avoid the formation of a network storm.
- the second backbone node sends the notification message
- the first backbone node receives the notification message
- the link between the first and second backbone nodes sends the notification message to the first backbone node, or the second backbone node first sends the notification message to the backbone node connected to it, and forwards the notification message one or more times. Thereby reaching the first backbone node.
- the second backbone node switches its first backbone port to a blocked state.
- the second backbone node switches its first backbone port to the blocking state.
- the first backbone port of the second backbone node is prevented from being blocked before the first backbone port of the second backbone node is switched to the blocking state.
- the second backbone port of the node has been switched to the forwarding state and the first link has returned to normal, which helps to ensure network security.
- the first backbone port of the second backbone node is a master port
- the second backbone port of the second backbone node is a slave port
- the two ports connected by a link will be set as the master port and the slave port respectively, and in a ring network, any link always ends with The master port and slave port are paired to connect. If two master ports are directly connected or two slave ports are directly connected, communication will not be possible. In the link formed by the paired connection between the master port and the slave port, the master port will actively send a handshake signal to the slave port to establish a communication connection with the slave port.
- the two second backbone nodes that send the notification message can detect whether the first backbone port is the primary port, and when the first backbone port is the primary port, the second backbone node sends the notification message to the second backbone node A backbone port is switched to a blocked state. That is to say, when the link fails, the main port connected to the faulty link is set to the blocking state. In this way, when the faulty link returns to normal, the main port in the link is in the blocking state, which can avoid handshake signals on the link, thereby reducing communication overhead.
- the first backbone port of the second backbone node may also be the master port, and the second backbone port of the second backbone node may be the slave port. That is to say, the slave port connected to the faulty link can be switched to the blocked state, which is not limited in this application.
- the second backbone node when configuring the switching logic of the node, when the link fails, can detect whether its second backbone port is the primary port, and when it is the primary port, switch its second backbone port to blocking. state.
- the second backbone node detects whether its second backbone port is a slave port, and when it is a slave port, switches its second backbone port to a blocking state. It should be understood that no matter which configuration mode is described above, the switching logic configured on each backbone node should be the same to avoid switching confusion.
- the first backbone port and the second backbone port are both in the forwarding state.
- the first link may also be where the second backbone port of the second backbone node is located. Therefore, the port for sending the notification message may also be the first backbone port of the second backbone node, which is not limited in this application.
- the notification message is a bridge protocol data unit (bridge protocol data unit, BPDU) message.
- bridge protocol data unit bridge protocol data unit, BPDU
- This application can use the BPDU message in the existing STP/RSTP protocol, and by changing its trigger conditions, while realizing the rapid network reorganization, it can be better compatible with the existing protocol, reduce excessive configuration operations, and is simple and easy. Row.
- the notification message may also be a broadcast message of the Internet Group Management Protocol (IGMP), that is, the link failure information is sent in the form of broadcast.
- IGMP Internet Group Management Protocol
- the notification message can also be a directional multicast message. All backbone nodes are formed into a multicast group and notified by sending a multicast message.
- the notification message can also be a media access control (media access control, MAC) multicast message, and the MAC layer multicast message completes the notification of link failure information.
- the notification message may also be a directional unicast message, which is directionally sent by the backbone node.
- the notification message may be generated by the backbone node before the link failure is detected, that is, the link failure information is only used as a trigger source for the backbone node to send the notification message. It may also be that after detecting the link failure, the backbone node generates a notification message and sends it, which is not limited in this application.
- notification messages are only examples, and this application does not limit the format and name of the notification messages, as long as the functions similar to those of the present application are implemented, that is, notification messages are sent in the case of link failure,
- the notification message can make the port in the blocking state in the ring network switch to the forwarding state, which belongs to the protection scope of the present application.
- the method further includes: S230-b, the first backbone node switches its first backbone port to a blocked state.
- the first backbone node determines that the second link is faulty, the first backbone node switches its first backbone port to a blocking state. In this way, when the second link returns to normal, there is still a port in a blocked state in the ring network, so that network storms can be avoided and communication security can be ensured.
- the first backbone node performs S230-b before S220, that is, the first backbone node switches its first backbone port to a blocking state before switching its second backbone port to a forwarding state.
- its first backbone port may be a master port or a slave port
- its second backbone node may be a slave port or a master port, that is, in the initial state, the ring
- the port in the blocked state in the network may be a master port or a slave port, which is not limited in this application.
- a master port and a slave port in this application are the same, but the configurations of the ports are different.
- a master port and a slave port can be distinguished by configuring different identities for the two ports.
- the fourth link may be a link where the second backbone port of the first backbone node is located, and the second backbone port of the first backbone node is directly connected to the first backbone port of the second backbone node, That is, the fourth link and the first link may be the same link, and when the first link (the fourth link) fails, the first backbone node may detect that the link where the second backbone port is located is faulty In addition, the second backbone node will also send a notification packet through its second backbone node, so that the first backbone node can receive the notification packet through its first backbone port.
- the first backbone node may switch its second backbone port to a forwarding state when detecting that the link on which its second backbone port is located is faulty, or when receiving a notification message.
- the first backbone node may further determine that its second backbone port is a master port (or a slave port), and further switches its second backbone port to a blocking state again.
- the second backbone node may determine its first backbone port as a master port (or a slave port), and further switch its first backbone port to a blocking state.
- the first backbone node when detecting that the fourth link is faulty, the first backbone node confirms that the backup link in the ring network is faulty, so even if the notification message is received, the port state switch may not be performed.
- the second backbone node determining that the first link is faulty includes: the second backbone node diagnosing the first link by using differential signals to determine that the first link is faulty.
- Differential signal diagnosis is a link diagnosis technology of the Ethernet physical layer. Specifically, a node can detect the voltage difference and carrier waveform transmitted on the twisted pair cable connected to its port. When the transmitted voltage difference and/or carrier waveform occurs When abnormal, it can be determined that the link is faulty.
- the second backbone node when the second backbone node determines that the first link is faulty, the second backbone node may determine that the first link is faulty through a connectivity detection message.
- the second backbone node may periodically send connectivity detection packets on its first backbone port, and determine the first link according to whether it receives a response packet from another port connected to the first link within the valid period. Is the road normal.
- connection status of the link is detected by means of link heartbeat.
- determining that the second link is faulty by the first backbone node includes: the first backbone node determines that the second link is faulty through differential signal diagnosis. Or, the first backbone node determines that the second link is faulty through the connectivity detection message. Or in other ways.
- each of the M backbone nodes includes a first identifier, and the first identifier is used to identify a backbone node in the network.
- the backbone node with the first identifier will send a notification message according to the link state, or, when receiving the notification message, will be blocked
- the port in the state switches to the forwarding state. Or, when it receives the notification message, it will continue to forward the notification message in the ring network, so as to realize the switching of the active and standby links and the network reorganization.
- the notification message will not be sent and identified. That is to say, through the first identification, the backbone nodes in the network can be distinguished.
- the method 200 further includes: S240, the first backbone node detects a first identifier, and the first backbone node determines itself as a backbone node in the network according to the first identifier.
- the method 200 further includes: S250, the second backbone node detects the first identifier, and the second backbone node determines itself as a backbone node in the network according to the first identifier.
- the first identifier may be a value written into a register, which is used to identify the backbone node.
- the backbone node When the backbone node is powered on, it is determined to be the backbone node by reading the value in the register, and further, the switching logic of the backbone node is executed.
- the notification message will be sent through another backbone port in the forwarding state. Or, if a certain backbone node has a port in a blocking state, when receiving a notification packet, it can switch the port in the blocking state to a forwarding state. Or, when two backbone ports of a certain backbone node are in the forwarding state, when it receives the notification message, it will continue to forward the notification message in the ring network.
- the following describes the configuration process and power-on detection process of the backbone node.
- Step 1 Configure a device accessing the network as a backbone node, for example, identify the backbone node through a first identifier, and configure two backbone ports of the backbone node.
- Step 2 Configure the port familiarity of all backbone ports of all backbone nodes, identify the status of the backbone ports, specify one port in all backbone nodes to be in the blocking state, and all other ports to be in the forwarding state. Configure the running logic for each backbone node.
- Step 3 Configure the power-on networking time jitter difference register, configure the power-on startup time jitter difference, and eliminate the network switching oscillation caused by the power-on jitter difference.
- Step 4 Power on, and enable the working status and running logic of the backbone nodes.
- the operation logic of the backbone node is also the method 200 for forming a network mentioned above.
- Step 5 If the operation logic includes the switching restriction conditions of the backbone node, when any port of the backbone node reaches the switching restriction condition, the port stops switching state, retains the current last setting state, and issues a network link abnormality notification, and the switching timeout is exceeded. limited port information. After restarting or clearing the software, clear the status warning and return to normal functions.
- FIG. 3 is a schematic block diagram of an Ethernet system 300 provided by an embodiment of the present application.
- Each of the node 310, the node 320, the node 330 and the node 340 includes two backbone ports P1 and P2, and the P1 ports and the P2 ports are connected in pairs to form a ring network.
- the link connecting the P2 port of the node 310 and the P1 port of the node 340 is referred to as the link L1, and L1 may also be referred to as the link where the P2 port of the node 310 is located, or the P1 of the node 340 The link the port is on.
- L4 is the link where the P2 port of the node 320 is located or the link where the P1 port of the node 310 is located
- L2 is the link where the P2 port of the node 330 is located or the link where the P1 port of the node 320 is located
- L3 is the node The link where the P2 port of 340 is located or the link where the P1 port of node 330 is located.
- the P1 port (an example of the first backbone port) of the node 310 (the first backbone node) is in the forwarding state
- the P2 port (an example of the second backbone port) of the node 310 is in the blocking state.
- L1 is the backup link
- L2, L3, and L4 together form the primary link.
- the P2 port of the node 310 is in a blocked state, so that the layer 2 and above packets cannot be forwarded when passing through this port, but the L1 link is normal, that is, the layer 2 and above sent by the node 340 through the P1 port.
- the message can be transmitted to the P2 port of the node 310 through the link L1, but when it reaches the P2 port of the node 310, it will not be forwarded.
- the link L2 (an example of the first link) fails
- the node 320 (an example of the second backbone node) can detect that the link where its P1 port (an example of the second backbone port) is located is faulty
- the fault information is used as a trigger source, and the node 320 will send a BPDU message (an example of a notification message) from its P2 port.
- the BPDU message passes through the link L4, and the node 310 receives the BPDU message through its P1 port.
- the node 310 receives the BPDU message, it knows that a link failure has occurred in the ring network, and therefore immediately switches its P2 port to the forwarding state, thereby enabling the backup link L1.
- the node 330 When the link L2 fails, the node 330 will also detect the failure of the link where its P2 port (an example of the second backbone port) is located. The failure information is used as a trigger source, and the node 330 will also send a BPDU message, and the node 330 will send the BPDU to the The message is sent from its P1 port, and the BPDU message passes through link L3. Node 340 will receive the BPDU message through its P2 port. Node 340 determines that its P1 port is in the forwarding state, so it will send the BPDU message from its P1 port. The port is forwarded out. However, since the P2 port of the node 310 is in a blocked state, the node 310 cannot receive the BPDU packet through its P2 port.
- the node 310 can know that a link failure has occurred in the ring network under the trigger of the notification message, so it will immediately switch its P2 port to the forwarding state, thereby enabling the backup link L1 , and further, the new linear link composed of the links L4, L1, and L3 can still be used for the normal communication of the node 310, the node 320, the node 330 and the node 340.
- the present application can improve the response time of the switching of the active and standby links, realize rapid network reorganization, and ensure the requirements of in-vehicle applications.
- the node 330 will also switch its P2 port to the blocking state, or the node 320 will also switch its P1 port to the blocking state.
- the method further includes: restoring the L2 to normal, and restoring the physical connection between the node 320 and the node 330 through the L2.
- One of the P1 port of the node 320 and the P2 port of the node 330 is in a blocked state and cannot forward data.
- the ring network returns to the initial state, and L2 becomes a new backup link in the ring network.
- the node 330 switches its P2 port to a blocking state.
- the node 320 switches its P1 port to the blocking state.
- the P1 ports in FIG. 3 are all set as master ports, and the P2 ports are all set as slave ports.
- the primary port connected to the faulty link can be switched to the blocking state by default. That is, the P1 port of the node 320 is set to the blocking state, while the state of the P2 port of the node 330 remains unchanged and is still in the forwarding state.
- the slave port connected to the faulty link may be switched to the blocked state by default. That is, the P2 port of the node 330 is set to the blocking state, while the state of the P1 port of the node 320 remains unchanged and is still in the forwarding state.
- the link L2 has a link failure, or the node 330 may fail (eg, power down), thereby causing the links L2 and L3 to fail at the same time.
- the node 340 will detect that the link where its P2 port is located is faulty, so as to send a BPDU packet through its P1 port, and the node 320 will detect that the link where its P1 port is located is faulty, and thus send a BPDU through its P2 port.
- the port sends a BPDU packet.
- the operation logic of the node 340 may refer to the node 330 above.
- the operation logic of the node 320 is similar to the node 320 above, and will not be repeated here.
- the node 310 can determine that the link where the P1 port is located information switches its P2 port to forwarding state, enabling backup link L1.
- the node 310 can also switch its P1 port to a blocking state.
- the node 310 will detect the failure of the link where its P2 port is located, and the node 340 (the second backbone An example of a node) will also detect the failure of the link where its P1 port is located, so it sends a BPDU message through its P2 port.
- the BPDU message is used to notify the link failure in the ring network, and the BPDU message passes through the node 330.
- the node 310 will receive the BPDU message through its P1 node.
- the node 310 may learn that a link failure occurs in the ring network when detecting that the link on which its P2 port is located is faulty or when receiving a BPDU packet, and switch its P2 port to the forwarding state.
- the P1 ports in FIG. 3 are all set as master ports, and the P2 ports are all set as slave ports.
- the master port connected to the faulty link can be switched to the blocked state by default. That is, when the L1 fails, the node 340 can switch its P1 port to the blocking state, and the state of the P2 port of the node 310 remains unchanged, and is still in the forwarding state.
- the slave port connected to the faulty link can be switched to the blocked state by default. That is, when the L1 fails, the node 310 can switch its P2 port to the blocking state again, while the state of the P1 port of the node 340 remains unchanged and is still in the forwarding state. In other words, after state switching, there may be two situations:
- the P2 port of the node 310 is in the forwarding state, and the P1 port of the node 340 is in the blocking state, or,
- the P2 port of the node 310 is still in the blocking state, and the P1 port of the node 340 is still in the forwarding state.
- the node 310 may determine that the link where its P2 port is located is faulty, and its P2 port is in a blocked state, that is, it is determined that the backup link in the ring network is faulty, and therefore the When a BPDU message is received, state switching may not be performed.
- each of node 310 , node 320 , node 330 and node 340 includes an identifier a.
- the node determines that it is a backbone node by reading the value of a in the register, thereby executing the above method 200 .
- the method for determining the link failure by the node 310 , the node 320 , the node 330 , and the node 340 may refer to the above, and will not be repeated here.
- FIG. 3 only takes 4 backbone nodes connected to form a ring network as an example for illustration, and the number of backbone nodes forming a ring network may also be 3, 5, or 128, etc. Do limit.
- FIG. 4 shows a schematic flowchart of a method 400 for forming a network provided by an embodiment of the present application.
- the network includes M backbone nodes, each of the M backbone nodes includes a first backbone port and a second backbone port, and a ring network is formed between the M backbone nodes through the first backbone port and the second backbone port, where M is greater than An integer of 2.
- the M backbone nodes include a first backbone node, the first backbone port of the first backbone node is in a forwarding state, and the second backbone port of the first backbone node is in a blocking state.
- the first backbone port and the second backbone port of any backbone node of the M backbone nodes except the first backbone node are in the forwarding state, and the second backbone node is the M backbone node except the first backbone node.
- the network further includes a terminal node, the terminal node includes a first terminal port and a second terminal port, the first terminal port is in a forwarding state, and the second terminal port is in a blocking state.
- at least two of the M backbone nodes further include a third terminal port, and the first terminal port and the second terminal port are connected to the third terminal port of the at least two backbone nodes.
- the ring network can also be connected to one or more terminal nodes, and the terminal nodes are respectively connected to two backbone nodes in the ring network through the first terminal port and the second terminal port thereof, and the first terminal of the terminal node can be connected
- the port is set to the forwarding state
- the second terminal port is set to the blocking state, that is, the link where the first terminal port is located is the primary link, and the link where the second terminal port is located is the backup link, so as to realize the redundant connection of the terminal node. enter.
- method 400 includes:
- the terminal node determines that a third link is faulty, and the third link is the link where the first terminal port is located.
- the failure of the third link includes, but is not limited to, the following possibilities: the first terminal port of the terminal node is loose, resulting in a link failure; The communication lines on the three links are short-circuited, open-circuited, or open-circuited, etc., resulting in link failures.
- the terminal node switches the second terminal port to a forwarding state.
- the terminal node when the terminal node determines that the third link is faulty, it can switch the second terminal port from the blocking state to the forwarding state, thereby enabling the backup link where the blocked port is located to ensure communication security.
- the terminal node can learn the fault information of its active and standby links, and the link fault information is used as the event trigger source.
- the terminal node When the terminal node obtains this information, it switches the port in the blocking state to the forwarding state, thereby Start the backup link where the port in the blocked state is located.
- the present application does not require equipment other than the terminal node to participate in control and processing, and completes the fast switching of the active and standby links under the internal configuration logic of the terminal node. Therefore, the response time of the switching of the active and standby links can be improved. , to achieve rapid network reorganization and ensure the needs of in-vehicle applications.
- the method 400 further includes: S430, the terminal node switches the first terminal port to the blocking state.
- the terminal node may switch the second terminal port connected to the first link to a blocked state, so that the first link becomes a backup link, and the link where the first terminal port is located becomes the primary link.
- the third link is restored to normal, a new ring network topology and a multi-ring nested complex network will not be constructed by the access of the terminal node, so as to ensure the reliability of the communication system.
- the two links of the terminal node accessing the ring network still have a main link and a backup link.
- both links of the terminal node can communicate with the ring network, thus solving the problem that the redundant access of terminal nodes will build a complex network topology, and improving the reliability of redundant access of important terminal nodes.
- the terminal node determines that the third link is faulty, including: the terminal node determines that the third link is faulty through differential signal diagnosis.
- the present application can realize the switching of the active and standby links at the physical layer, so that the efficiency is higher.
- the terminal node determines that the third link is faulty, which may also be: the terminal node determines that the first link is faulty through a connectivity detection message.
- connection status of the link is detected by means of link heartbeat.
- link failures include, but are not limited to, possible link failures caused by loose ports, link failures due to power failure of backbone nodes, short circuits, open circuits, and open circuits on the links.
- the terminal node includes a second identifier, and the second identifier is used to identify the terminal node in the Ethernet system.
- the terminal node with the second identifier will not recognize or forward the notification message in the Ethernet system, and will not play the role of the notification message Switch the state of the port down. That is, the terminal node with the second identifier only monitors the status of its own active and standby links, and does not participate in the switching logic of the backbone network.
- the method 400 further includes: S440, the terminal node detects the second identifier, and the terminal node determines itself as a terminal node in the network according to the second identifier.
- the second identifier may be a value written into the register, which is used to identify the terminal node.
- the terminal node When the terminal node is powered on, it is determined to be the terminal node by reading the value in the register. Further, Execute the switching logic of the terminal node, that is, if the link where a terminal port is located fails, the standby link will be opened to complete the switchover of the active and standby links to ensure communication security.
- the terminal node determines that the link where the second terminal port is located is faulty, it may not perform any operation.
- the link where the second terminal port is located returns to normal, the second terminal port is still in a blocked state, and the link where the second terminal port is located is still a standby link.
- the switching logic of the terminal node and the backbone node is independent and does not interfere with each other, thereby helping to improve the reliability and simplicity of the Ethernet system.
- Step 1 Configure the device accessing the network as a terminal node, for example, identify the terminal node through a second identifier, and configure two terminal ports of the terminal node.
- Step 2 Set one of the two terminal ports of the terminal node in the blocking state and the other in the forwarding state, configure the operation logic of the terminal node, and connect the terminal node to the backbone node of the ring network.
- Step 3 Configure the power-on networking time jitter difference register, configure the power-on startup time jitter difference, and eliminate the network switching oscillation caused by the power-on jitter difference.
- Step 4 Power on, and enable the working state and running logic of the terminal node.
- the operation logic of the terminal node is also the method 400 for forming a network mentioned above.
- Step 5 If the operating logic includes the switching constraints of the terminal node, when the terminal node reaches the set constraints, the terminal node goes offline or restarts again until the signal quality of the active and standby links returns to good, or until the next restart. It is turned on after the power is turned on, or the follow-up action is set by the management device. If no handover restrictions are set, the end device will perform free diagnosis and handover based on link signal quality and settings.
- FIG. 5 is a schematic block diagram of an Ethernet system 500 provided by an embodiment of the present application.
- Each of the node 310, the node 320, the node 330 and the node 340 includes two backbone ports P1 and P2, and the P1 ports and the P2 ports are connected in pairs to form a ring network.
- the Ethernet system 500 also includes a terminal node, namely a node 510.
- the node 510 includes ports P1 (an example of a first terminal port) and P2 (an example of a second terminal port).
- the P1 port of the node 510 is in a forwarding state, and the node The P2 port of 510 is blocked.
- the node 310 and the node 330 also include a port P3 (an example of a third terminal port), and the P3 port of the node 310 is connected to the P1 port of the node 510, which is denoted as link L5, the P3 port of the node 330 and the P2 port of the node 510. connection, denoted as link L6.
- the node 510 is connected to the ring network through the P3 port (an example of the third terminal port) of the node 310 and the node 330 (that is, an example of at least two backbone nodes), so as to realize redundant access.
- Any terminal port, such as the P2 port, is set to the blocking state, then the link L6 can only transmit physical layer signals and cannot transmit data, so L6 is the standby link, and the P1 port of the node 510 is in the forwarding state, that is, the L5 link is The main link, the node 510 can communicate with the ring network via L5.
- the node 510 detects that the link where its P2 port is located is faulty, and the failure information is used as an event trigger source, so that the node 510 can switch its P2 port to the forwarding state, that is, enable the Standby link, communicates with the ring network through L6. Therefore, the present application can improve the response time of switching between the active and standby links, realize rapid network reorganization, and ensure the requirements of in-vehicle applications.
- L5 can also switch its P1 port to a blocked state, which can prevent both links of the terminal node from being able to communicate with the ring network, thus solving the problem that redundant access of terminal nodes will build a complex network topology, improving The reliability of redundant access of important terminal nodes is improved.
- the failure of the L5 may be caused by the failure of the node 310 or the abnormality of the P3 port of the node 310, or the failure caused by the abnormality of the line of the L5.
- node 510 determines that L5 is faulty through differential signal diagnostics.
- the node 510 includes an identifier b, and when powered on, the node 510 determines that it is a backbone node by reading the b value of the register, so as to execute the above method 400 .
- the method 400 further includes: restoring the L5 to normal, and restoring the physical connection between the node 510 and the node 310 through the L5.
- the P1 port of the node 510 is in a blocked state and cannot forward data.
- the L5 becomes the new backup link of the node 510 .
- FIG. 5 only takes 4 backbone nodes connected to form a ring network as an example for illustration, and the number of backbone nodes forming a ring network may also be 3, 5, or 128, etc. Do limit.
- the connection to the node 510 in FIG. 5 may also be any two backbone nodes among the node 310 , the node 320 , the node 330 and the node 340 .
- two or more terminal nodes may be connected, and the backbone nodes connected to the multiple terminal nodes may be the same or different, which are not limited in this application.
- the above-mentioned method 200 and method 400 may be combined to form another method for forming a network.
- the process in method 200 is used to switch the main and backup links of the backbone network
- the process in method 400 is used to switch the main and backup links of the terminal node.
- the specific process can be Referring to the descriptions in the above-mentioned method 200 and method 400, details are not repeated here.
- FIG. 6 to FIG. 8 The method for forming a network of the present application is described above with reference to FIG. 1 to FIG. 5 .
- the apparatus of the embodiments of the present application will be described below with reference to FIGS. 6 to 8 . It should be understood that the apparatuses shown in FIG. 6 to FIG. 8 can implement each step in the above method, and for brevity, details are not repeated here.
- FIG. 6 is a schematic structural diagram of an apparatus for forming a network provided by an embodiment of the present application.
- the network includes M backbone nodes, each of the M backbone nodes includes a first backbone port and a second backbone port, and a ring network is formed between the M backbone nodes through the first backbone port and the second backbone port, where M is greater than An integer of 2.
- the M backbone nodes include a first backbone node, the first backbone port of the first backbone node is in a forwarding state, and the second backbone port of the first backbone node is in a blocking state.
- the first backbone port and the second backbone port of any backbone node of the M backbone nodes except the first backbone node are in the forwarding state, and the second backbone node is the M backbone node except the first backbone node.
- the apparatus 600 includes a transceiver unit 610 and a processing unit 620 .
- the device is the first backbone node.
- the transceiver unit 610 is configured to acquire link failure information in the ring network;
- the processing unit 620 is configured to switch the second backbone port of the first backbone node to a forwarding state according to the link failure information.
- the transceiver unit 610 is specifically used for:
- a notification packet is received through the first backbone port of the first backbone node, where the notification packet is used to indicate that the first link is faulty, and the first link is the link where the first backbone port of the second backbone node is located.
- the notification message is a bridge protocol data unit BPDU message.
- the processing unit 620 is further configured to: determine that the second link is faulty, and the second link is the link where the first backbone port of the first backbone node is located.
- processing unit 620 is further configured to: switch the first backbone port of the first backbone node to a blocking state.
- the processing unit 620 is specifically configured to: determine that the second link is faulty through differential signal diagnosis.
- each of the M backbone nodes includes a first identifier, and the first identifier is used to identify a backbone node in the network.
- the processing unit 620 is further configured to: detect the first identifier; and determine itself as a backbone node in the network according to the first identifier.
- FIG. 7 is a schematic structural diagram of an apparatus for forming a network provided by an embodiment of the present application.
- the network includes M backbone nodes, each of the M backbone nodes includes a first backbone port and a second backbone port, and a ring network is formed between the M backbone nodes through the first backbone port and the second backbone port, where M is greater than An integer of 2.
- the M backbone nodes include a first backbone node, the first backbone port of the first backbone node is in a forwarding state, and the second backbone port of the first backbone node is in a blocking state.
- the first backbone port and the second backbone port of any backbone node of the M backbone nodes except the first backbone node are in the forwarding state, and the second backbone node is the M backbone node except the first backbone node.
- the apparatus 700 includes a transceiver unit 710 and a processing unit 720 .
- the device is a second backbone node.
- the processing unit 720 is configured to determine that the first link is faulty, and the first link is the link where the first backbone port of the second backbone node is located; the transceiver unit 710 is configured to transmit through the second backbone port of the second backbone node
- the notification message is used to indicate that the first link is faulty.
- processing unit 720 is further configured to: switch the first backbone port of the second backbone node to a blocking state.
- the first backbone port of the second backbone node is a master port
- the second backbone port of the second backbone node is a slave port
- the processing unit 720 is specifically configured to: determine that the first link is faulty through differential signal diagnosis.
- each of the M backbone nodes includes a first identifier, and the first identifier is used to identify a backbone node in the network.
- the processing unit 720 is further configured to: detect the first identifier; and determine itself as a backbone node in the network according to the first identifier.
- the notification message is a bridge protocol data unit BPDU message.
- FIG. 8 is a schematic structural diagram of an apparatus for forming a network provided by an embodiment of the present application.
- the network includes M backbone nodes, each of the M backbone nodes includes a first backbone port and a second backbone port, and a ring network is formed between the M backbone nodes through the first backbone port and the second backbone port, where M is greater than An integer of 2.
- the M backbone nodes include a first backbone node, the first backbone port of the first backbone node is in a forwarding state, and the second backbone port of the first backbone node is in a blocking state.
- the first backbone port and the second backbone port of any one of the M backbone nodes except the first backbone node are in the forwarding state.
- the network further includes a terminal node, the terminal node includes a first terminal port and a second terminal port, the first terminal port is in a forwarding state, and the second terminal port is in a blocking state.
- At least two of the M backbone nodes further include third terminal ports, and the first terminal port and the second terminal port are connected to the third terminal ports of the at least two backbone nodes.
- the apparatus 800 includes a processing unit 810 .
- the device is a terminal node.
- the processing unit 810 is configured to determine that the third link is faulty, and the third link is the link where the first terminal port is located.
- the processing unit 810 is further configured to switch the second terminal port to the forwarding state.
- processing unit 810 is further configured to: switch the first terminal port to a blocked state.
- the processing unit 810 is specifically configured to: determine that the third link is faulty through differential signal diagnosis.
- the terminal node includes a second identifier, and the second identifier is used to identify the terminal node in the network.
- the processing unit 810 is further configured to: detect the second identifier; and determine itself as a terminal node in the network according to the second identifier.
- the apparatus 800 may further include a transceiving unit 820 for performing data transceiving.
- FIG. 9 shows a schematic structural diagram of an apparatus 900 for forming a network provided by an embodiment of the present application.
- the apparatus 900 includes at least one memory 910 and at least one processor 920, the at least one memory 910 is used for storing a program, and the at least one processor 920 is used for running the program, so as to realize the technical solution of the present application.
- the processor in the embodiment of the present application may be a central processing unit (central processing unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (digital signal processors, DSP), application-specific integrated circuits (application specific integrated circuit, ASIC), off-the-shelf programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
- a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
- the memory in the embodiments of the present application may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory.
- the non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically programmable Erase programmable read-only memory (electrically EPROM, EEPROM) or flash memory.
- Volatile memory may be random access memory (RAM), which acts as an external cache.
- RAM random access memory
- SRAM static random access memory
- DRAM dynamic random access memory
- DRAM synchronous dynamic random access memory
- SDRAM synchronous dynamic random access memory
- DDR SDRAM double data rate synchronous dynamic random access memory
- enhanced SDRAM enhanced synchronous dynamic random access memory
- SLDRAM synchronous connection dynamic random access memory Fetch memory
- direct memory bus random access memory direct rambus RAM, DR RAM
- the apparatus 900 may further include a transceiver 930 for performing a function of transmitting and receiving data.
- the apparatus 900 may correspond to the first backbone node in the methods 200 and 400 according to the embodiments of the present application, and the apparatus 900 may include the unit of the method performed by the first backbone node in the method 200 or 400 .
- the apparatus 900 may correspond to the second backbone node in the method 200 or 400 according to the embodiment of the present application, and the apparatus 900 may include the unit of the method performed by the second backbone node in the methods 200 and 400 .
- the apparatus 900 may correspond to a terminal node in the method 400 according to the embodiment of the present application, and the apparatus 900 may include a unit of the method performed by the terminal node in the method 400 . It should be understood that the specific process of each unit performing the above-mentioned corresponding steps has been described in detail in the above-mentioned method embodiments, and for the sake of brevity, it will not be repeated here.
- FIG. 10 is a schematic diagram of the operation logic of a backbone node provided by an embodiment of the present application. As shown in Figure 10, the switching logic includes:
- the configuration information of the current node is loaded, and the configuration includes configuring the node as a backbone node and configuring the port status of the backbone node mentioned above.
- the startup networking wait can be used to implement a countdown to the startup waiting during the network startup process, so as to prevent inconsistent startup times of various nodes or devices, resulting in unexpected network switching and causing errors or false alarms.
- the networking waiting time is not satisfied, or in other words, when the networking countdown is not 0, the networking waiting is continued. If the networking waiting time is satisfied, that is, when the countdown is 0, the state monitoring is entered.
- the backbone node can monitor the status of the port of the backbone node, the status of the link connected to the backbone node, and the notification message.
- the switching condition is satisfied. If the switching conditions are not met, the status monitoring will continue, and if the switching conditions are met, the limit check will be entered.
- the switching condition may be that a notification message is received, or the state of the link connected to the backbone node is faulty, and the like.
- the reset condition may be to clear the accumulated number of switching times to zero after the stable communication reaches a preset duration.
- S1001 will be re-entered.
- the number of switching times can be set.
- the backbone node can issue an error alarm.
- the restriction check is mainly for security protection and preventing network problems caused by frequent switching. At the same time, it also takes care of the network. When the network is abnormal, it can directly trigger the reset of the network status of the node to repair serious errors.
- the alarm is mainly used for error notification, notifying the administrator or an external device that the node is faulty.
- the blocked port mainly checks whether the blocked port is normal and whether it has the opening conditions. When there is no opening condition, an error warning is issued, and the state monitoring is entered for abnormal processing.
- the port switching operation is performed, including enabling the blocked port to enter the forwarding state, and updating the forwarding entry.
- the reset command is an external input command, which is used for detailed state management of the current node during the network management process, so that the node network can be restarted at any time. After the new configuration policy is loaded, the restart takes effect.
- FIG. 11 is a schematic diagram of a network architecture 1100 provided by an embodiment of the present application.
- LSW1, LSW2, LSW3, and LSW4 are backbone nodes, and LSW5 and LSW6 are terminal nodes.
- the P0 port of LSW1, LSW2, LSW3, LSW4 and LSW5 is also connected to an MCU, and the P0 port of LSW6 is connected to an MPU.
- the P1 ports are all set as master ports, and the P2 ports are all set as slave ports.
- the P2 port of LSW1 is in a blocking state
- the P2 port of LSW5 is in a blocking state
- the P1 port of LSW6 is in a blocking state
- other ports are in a forwarding state.
- FIG. 12 is a schematic diagram of port state switching in the case of a link failure provided by an embodiment of the present application.
- the P1 port of LSW2 and the P2 port of LSW3 will trigger a link down state in the port status register. Since the P1 port in LSW2 is the master port, LSW2 switches the P1 port to the blocking state. Further, this link disconnection state will be used as an event trigger source, LSW2 and LSW3 will send BPDUs respectively, LSW3 will send the BPDUs from port P1 to LSW4, the BPDUs will be forwarded by LSW4 to port P2 of LSW1, and The initial state of the P2 port of LSW1 is the blocking state, and it cannot receive BPDUs sent by the P2 port of LSW4. LSW2 sends BPDUs from port P2 to LSW1. After LSW1 receives the BPDU message notification from its P1 port, LSW1 switches the P2 port, which was originally set to the blocking state, to the forwarding state. communication.
- FIG. 13 is a schematic diagram of port state switching in the case of a failure of a backbone node according to an embodiment of the present application.
- the link disconnection information of the P2 port of LSW4 will trigger LSW4 to send BPDUs from port P1 to LSW1.
- the initial state of the P2 port of LSW1 is the Block state and cannot receive the BPDUs sent by the P2 port of LSW4. Since the P1 port in LSW2 is the master port, LSW2 switches the P1 port to the blocking state. Further, the link disconnection information of the P1 port of the LSW2 will trigger the LSW2 to send the BPDU message from the port P2 to the LSW1. After LSW1 receives the BPDU message notification from its P1 port, LSW1 switches the P2 port, which was originally set to the blocking state, to the forwarding state.
- LSW5 and LSW6 are connected to LSW3, the power failure of LSW3 will cause the active-standby link switching of LSW5 and LSW6. Specifically, the power failure of LSW3 will cause L6 to be disconnected. Since the P2 port of LSW5 is in a blocked state, the communication of LSW5 will not change. However, the main link of LSW6, that is, L7, is connected to LSW3. The power failure of LSW3 will trigger the disconnection of L7. At this time, LSW6 will switch the active and standby links. That is, LSW6 will change the P1 port from the blocking state to the forwarding state. And block off the P2 port.
- the finally formed network architecture is shown in FIG. 13 , and the network architecture 1300 shown in FIG. 13 can still communicate normally.
- FIG. 14 is a schematic diagram of a transmission path of a BPDU packet in the case of a link failure provided by an embodiment of the present application.
- FIG. 15 is a schematic diagram of a transmission path of a BPDU packet in the case of a backbone node provided by an embodiment of the present application.
- LSW2 and LSW4 will trigger the link down state in the port status register, and the link down state will be used as the event trigger source.
- LSW2 and LSW4 will send BPDUs respectively.
- Figure 15 shows the process of sending BPDUs.
- FIG. 16 is a schematic diagram of port state switching in the case of a link failure of a terminal node according to an embodiment of the present application.
- the link disconnection of the LSW5 port status register will trigger the link switching logic of LSW5. Specifically, when the P2 port of LSW5 satisfies the link up state, LSW5 will open its P2 port, set it to the forward state, and undertake the data exchange of LSW5. At the same time, LSW5 will turn its P1 port into a blocking (Block) state. When the link is restored again, the link will be enabled, but the P1 port is in a blocking (Block) state and will not forward any data packets to the network. Avoid data loops in the network.
- the finally formed network architecture is shown in FIG. 16 , and the network architecture 1600 shown in FIG. 16 can still communicate normally.
- Embodiments of the present application further provide a computer-readable storage medium, where the computer-readable storage medium has program instructions, and when the program instructions are directly or indirectly executed, the technical solutions of the present application can be realized.
- Embodiments of the present application also provide a computer program product containing instructions, which, when running on a computing device, enable the computing device to execute the technical solutions of the present application, or enable the computing device to implement the function of the controller described above.
- An embodiment of the present application further provides a chip, including at least one processor and an interface circuit, where the interface circuit is configured to provide program instructions or data for the at least one processor, and the at least one processor is configured to execute the program instructions , so that the technical solution of the present application can be realized.
- transceivers or transceiver units may be input and output interfaces, wherein a receiver or a receiving unit may be understood as an input interface, a transmitter or a transmitting unit It can be understood as an output interface.
- An embodiment of the present application provides an Ethernet system, where the Ethernet system includes M backbone nodes, each of the M backbone nodes includes a first backbone port and a second backbone port, and the M backbone nodes pass through the first backbone
- the port and the second backbone port form a ring network, and M is an integer greater than 2.
- the M backbone nodes include a first backbone node, the first backbone port of the first backbone node is in a forwarding state, and the second backbone port of the first backbone node is in a blocking state.
- the first backbone port and the second backbone port of any backbone node of the M backbone nodes except the first backbone node are in the forwarding state, and the second backbone node is the M backbone node except the first backbone node.
- the first backbone node is used for: acquiring link failure information in the ring network; and switching the second backbone port of the first backbone node to a forwarding state according to the link failure information.
- the second backbone node is used to: determine that the first link is faulty, and the first link is the link where the first backbone port of the second backbone node is located; send a notification through the second backbone port of the second backbone node message, the notification message is used to indicate that the first link is faulty;
- the first backbone node is specifically configured to: receive the notification message through the first backbone port of the first backbone node.
- the second backbone node is further configured to: switch the first backbone port of the second backbone node to a blocking state.
- the first backbone port of the second backbone node is a master port
- the second backbone port of the second backbone node is a slave port
- the second backbone node is specifically configured to: determine that the first link is faulty through differential signal diagnosis.
- the notification message is a bridge protocol data unit BPDU message.
- the first backbone node is specifically configured to: determine that the second link is faulty, and the second link is the link where the first backbone port of the first backbone node is located.
- the first backbone node is further configured to: switch the first backbone port of the first backbone node to a blocking state.
- the first backbone node is specifically configured to: determine that the second link is faulty through differential signal diagnosis.
- each of the M backbone nodes includes a first identifier, and the first identifier is used to identify a backbone node in the Ethernet system.
- the Ethernet system further includes a terminal node, the terminal node includes a first terminal port and a second terminal port, the first terminal port is in a forwarding state, the second terminal port is in a blocking state, and at least two of the M backbone nodes
- the backbone node further includes a third terminal port, and the first terminal port and the second terminal port are connected to the third terminal ports of the at least two backbone nodes.
- the terminal node is used to: determine that the third link is faulty, and the third link is the link where the first terminal port is located; and switch the second terminal port to the forwarding state.
- the terminal node is further configured to: switch the first terminal port to a blocked state.
- the terminal node is specifically configured to: determine that the third link is faulty through differential signal diagnosis.
- the terminal node includes a second identifier, and the second identifier is used to identify the terminal node in the Ethernet system.
- the first backbone node is further used for: detecting the first identifier; and determining itself as a backbone node in the network according to the first identifier.
- the second backbone node is further configured to: detect the first identifier; and determine itself as a backbone node in the network according to the first identifier.
- the embodiments of the present application further provide a vehicle, including any of the foregoing Ethernet systems provided by the embodiments of the present application.
- new energy vehicles include pure electric vehicles, extended-range electric vehicles, hybrid vehicles, fuel cell vehicles, etc.
- Conventional vehicles include gasoline vehicles, diesel vehicles, and the like.
- the above Ethernet system is used in a vehicle
- the backbone node may be a VIU
- the terminal node may be a domain controller DC, such as CDC, VDC, and the like.
- the terminal node and the backbone node may both be switching chips (Line switch, LSW), and their hardware structures are the same, and the terminal node and the backbone node are distinguished by the first identifier and the second identifier, so that the node can be Different identifiers execute different switching logics, reducing the configuration complexity of the switching chip.
- LSW Line switch
- each backbone node or terminal node may have one or more other ports, for example, non-backbone gateways or non-terminal ports, and these ports can be connected to other devices, for example, a microprocessing unit (microprocessing unit).
- processor unit MPU
- micro control unit micro control unit
- I/O interface input/output interface
- FIG. 1 is only a schematic diagram of an application scenario of the present application, and the application scenario of the present application is not limited thereto.
- the solution of the present application can also be used in traditional Ethernet, wherein the backbone node can be a router or a switch , the terminal node can also be a router or a switch.
- the network architecture and service scenarios described in the embodiments of the present application are for the purpose of illustrating the technical solutions of the embodiments of the present application more clearly, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application.
- the evolution of the architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
- references in this specification to "one embodiment” or “some embodiments” and the like mean that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application.
- appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically emphasized otherwise.
- the terms “including”, “including”, “having” and their variants mean “including but not limited to” unless specifically emphasized otherwise.
- At least one means one or more
- plural means two or more.
- And/or which describes the relationship of the associated objects, means that there can be three relationships, for example, A and/or B, which can mean: including the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural.
- the size of the sequence numbers of the above-mentioned processes does not mean the sequence of execution, and the execution sequence of each process should be determined by its functions and internal logic, and should not be dealt with in the embodiments of the present application. implementation constitutes any limitation.
- the disclosed system, apparatus and method may be implemented in other manners.
- the apparatus embodiments described above are only illustrative.
- the division of the units is only a logical function division. In actual implementation, there may be other division methods.
- multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented.
- the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
- the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
- each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
- the functions, if implemented in the form of software functional units and sold or used as independent products, may be stored in a computer-readable storage medium.
- the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution.
- the computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
- the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes .
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Small-Scale Networks (AREA)
Abstract
Description
Claims (39)
- 一种组建网络的方法,其特征在于,所述网络包括M个骨干节点,所述M个骨干节点中的每一个包括第一骨干端口和第二骨干端口,所述M个骨干节点之间通过所述第一骨干端口和所述第二骨干端口形成环形网络,M为大于2的整数,所述M个骨干节点包括第一骨干节点,所述第一骨干节点的所述第一骨干端口为转发状态,所述第一骨干节点的所述第二骨干端口为阻塞状态,所述M个骨干节点中除所述第一骨干节点之外的任一个骨干节点的所述第一骨干端口和所述第二骨干端口均为转发状态,第二骨干节点为所述M个骨干节点中除所述第一骨干节点之外的一个,所述方法包括:所述第一骨干节点获取所述环形网络中的链路故障信息;所述第一骨干节点根据所述链路故障信息将所述第一骨干节点的所述第二骨干端口切换为转发状态。
- 根据权利要求1所述的方法,其特征在于,所述第一骨干节点获取所述环形网络中的链路故障信息,包括:所述第一骨干节点通过所述第一骨干节点的所述第一骨干端口接收通知报文,所述通知报文用于指示第一链路发生故障,所述第一链路为所述第二骨干节点的所述第一骨干端口所在的链路。
- 根据权利要求2所述的方法,其特征在于,所述通知报文为桥接协议数据单元BPDU报文。
- 根据权利要求1所述的方法,其特征在于,所述第一骨干节点获取所述环形网络中的链路故障信息,包括:所述第一骨干节点确定第二链路发生故障,所述第二链路为所述第一骨干节点的所述第一骨干端口所在的链路。
- 根据权利要求4所述的方法,其特征在于,所述方法还包括:所述第一骨干节点将所述第一骨干节点的所述第一骨干端口切换为阻塞状态。
- 根据权利要求4或5所述的方法,其特征在于,所述第一骨干节点确定第二链路发生故障,包括:所述第一骨干节点通过差分信号诊断确定所述第二链路发生故障。
- 根据权利要求1至6中任一项所述的方法,其特征在于,所述M个骨干节点中的每一个包括第一标识,所述第一标识用于标识所述网络中的骨干节点。
- 根据权利要求7所述的方法,其特征在于,所述方法还包括:所述第一骨干节点检测所述第一标识;所述第一骨干节点根据所述第一标识确定自身为所述网络中的骨干节点。
- 一种组建网络的方法,其特征在于,所述网络包括M个骨干节点,所述M个骨干节点中的每一个包括第一骨干端口和第二骨干端口,所述M个骨干节点之间通过所述第一骨干端口和所述第二骨干端口形成环形网络,M为大于2的整数,所述M个骨干节 点包括第一骨干节点,所述第一骨干节点的所述第一骨干端口为转发状态,所述第一骨干节点的所述第二骨干端口为阻塞状态,所述M个骨干节点中除所述第一骨干节点之外的任一个骨干节点的所述第一骨干端口和所述第二骨干端口均为转发状态,第二骨干节点为所述M个骨干节点中除所述第一骨干节点之外的一个,所述方法包括:所述第二骨干节点确定第一链路发生故障,所述第一链路为所述第二骨干节点的所述第一骨干端口所在的链路;所述第二骨干节点通过所述第二骨干节点的所述第二骨干端口发送通知报文,所述通知报文用于指示所述第一链路发生故障。
- 根据权利要求9所述的方法,其特征在于,所述方法还包括:所述第二骨干节点将所述第二骨干节点的所述第一骨干端口切换为阻塞状态。
- 根据权利要求10所述的方法,其特征在于,所述第二骨干节点的所述第一骨干端口为主端口,所述第二骨干节点的所述第二骨干端口为从端口。
- 根据权利要求9至11中任一项所述的方法,其特征在于,所述第二骨干节点确定第一链路发生故障,包括:所述第二骨干节点通过差分信号诊断确定所述第一链路发生故障。
- 根据权利要求9至12中任一项所述的方法,其特征在于,所述M个骨干节点中的每一个包括第一标识,所述第一标识用于标识所述网络中的骨干节点。
- 根据权利要求13所述的方法,其特征在于,所述方法还包括:所述第二骨干节点检测所述第一标识;所述第二骨干节点根据所述第一标识确定自身为所述网络中的骨干节点。
- 根据权利要求9至14中任一项所述的方法,其特征在于,所述通知报文为桥接协议数据单元BPDU报文。
- 一种组建网络的方法,其特征在于,所述网络包括M个骨干节点,所述M个骨干节点中的每一个包括第一骨干端口和第二骨干端口,所述M个骨干节点之间通过所述第一骨干端口和所述第二骨干端口形成环形网络,M为大于2的整数,所述M个骨干节点包括第一骨干节点,所述第一骨干节点的所述第一骨干端口为转发状态,所述第一骨干节点的所述第二骨干端口为阻塞状态,所述M个骨干节点中除所述第一骨干节点之外的任一个骨干节点的所述第一骨干端口和所述第二骨干端口均为转发状态,所述网络还包括终端节点,所述终端节点包括第一终端端口和第二终端端口,所述第一终端端口为转发状态,所述第二终端端口为阻塞状态,所述M个骨干节点中的至少两个骨干节点还包括第三终端端口,所述第一终端端口和所述第二终端端口与所述至少两个骨干节点的所述第三终端端口相连,所述方法包括:所述终端节点确定第三链路发生故障,所述第三链路为所述第一终端端口所在的链路;所述终端节点将所述第二终端端口切换为转发状态。
- 根据权利要求16所述的方法,其特征在于,所述方法还包括:所述终端节点将所述第一终端端口切换为堵塞状态。
- 根据权利要求16或17所述的方法,其特征在于,所述终端节点确定第三链路发 生故障,包括:所述终端节点通过差分信号诊断确定所述第三链路发生故障。
- 根据权利要求16至18中任一项所述的方法,其特征在于,所述终端节点包括第二标识,所述第二标识用于标识所述网络中的终端节点。
- 根据权利要求19所述的方法,其特征在于,所述方法还包括:所述终端节点检测所述第二标识;所述终端节点根据所述第二标识确定自身为所述网络中的终端节点。
- 一种组建网络的装置,其特征在于,包括用于执行如权利要求1至8中任一项,或权利要求9至15中任一项,或权利要求16至20中任一项所述方法的各个步骤的模块。
- 一种组建网络的装置,其特征在于,包括至少一个处理器,所述至少一个处理器与至少一个存储器耦合,所述至少一个处理器用于执行所述至少一个存储器中存储的计算机程序或指令,以使得所述装置执行如权利要求1至8中任一项,或权利要求9至15中任一项,或权利要求16至20中任一项所述方法。
- 一种芯片系统,其特征在于,包括:处理器,用于从存储器中调用并运行计算机程序,使得安装有所述芯片系统的通信设备执行权利要求1至8中任一项,或权利要求9至15中任一项,或权利要求16至20中任一项所述的方法。
- 一种计算机可读存储介质,其特征在于,其上存储有计算机程序,所述计算机程序用于执行如权利要求1至8中任一项所述的方法,或如权利要求9至15中任一项所述的方法,或如权利要求16至20中任一项所述的方法。
- 一种以太网系统,其特征在于,包括:M个骨干节点,所述M个骨干节点中的每一个包括第一骨干端口和第二骨干端口,所述M个骨干节点之间通过所述第一骨干端口和所述第二骨干端口形成环形网络,M为大于2的整数,所述M个骨干节点包括第一骨干节点,所述第一骨干节点的所述第一骨干端口为转发状态,所述第一骨干节点的所述第二骨干端口为阻塞状态,所述M个骨干节点中除所述第一骨干节点之外的任一个骨干节点的所述第一骨干端口和所述第二骨干端口均为转发状态,第二骨干节点为所述M个骨干节点中除所述第一骨干节点之外的一个,所述第一骨干节点用于:获取所述环形网络中的链路故障信息;根据所述链路故障信息将所述第一骨干节点的所述第二骨干端口切换为转发状态。
- 根据权利要求25所述的以太网系统,其特征在于,所述第二骨干节点用于:确定第一链路发生故障,所述第一链路为所述第二骨干节点的所述第一骨干端口所在的链路;通过所述第二骨干节点的所述第二骨干端口发送通知报文,所述通知报文用于指示所述第一链路发生故障;所述第一骨干节点具体用于:通过所述第一骨干节点的所述第一骨干端口接收所述通知报文。
- 根据权利要求26所述的以太网系统,其特征在于,所述第二骨干节点还用于:将所述第二骨干节点的所述第一骨干端口切换为阻塞状态。
- 根据权利要求27所述的以太网系统,其特征在于,所述第二骨干节点的所述第一骨干端口为主端口,所述第二骨干节点的所述第二骨干端口为从端口。
- 根据权利要求26至28中任一项所述的以太网系统,其特征在于,所述第二骨干节点具体用于:通过差分信号诊断确定所述第一链路发生故障。
- 根据权利要求26至29中任一项所述的以太网系统,其特征在于,所述通知报文为桥接协议数据单元BPDU报文。
- 根据权利要求25所述的以太网系统,其特征在于,所述第一骨干节点具体用于:确定第二链路发生故障,所述第二链路为所述第一骨干节点的所述第一骨干端口所在的链路。
- 根据权利要求31所述的以太网系统,其特征在于,所述第一骨干节点还用于:将所述第一骨干节点的所述第一骨干端口切换为阻塞状态。
- 根据权利要求31或32所述的以太网系统,其特征在于,所述第一骨干节点具体用于:通过差分信号诊断确定所述第二链路发生故障。
- 根据权利要求25至33中任一项所述的以太网系统,其特征在于,所述M个骨干节点中的每一个包括第一标识,所述第一标识用于标识所述以太网系统中的骨干节点。
- 根据权利要求25至34中任一项所述的以太网系统,其特征在于,所述以太网系统还包括终端节点,所述终端节点包括第一终端端口和第二终端端口,所述第一终端端口为转发状态,所述第二终端端口为阻塞状态,所述M个骨干节点中的至少两个骨干节点还包括第三终端端口,所述第一终端端口和所述第二终端端口与所述至少两个骨干节点的所述第三终端端口相连;所述终端节点用于:确定第三链路发生故障,所述第三链路为所述第一终端端口所在的链路;将所述第二终端端口切换为转发状态。
- 根据权利要求35所述的以太网系统,其特征在于,所述终端节点还用于:将所述第一终端端口切换为堵塞状态。
- 根据权利要求35或36所述的以太网系统,其特征在于,所述终端节点具体用于:通过差分信号诊断确定所述第三链路发生故障。
- 根据权利要求35至37中任一项所述的以太网系统,其特征在于,所述终端节点包括第二标识,所述第二标识用于标识所述以太网系统中的终端节点。
- 一种车辆,其特征在于,包括如权利要求25至38中任一项所述的以太网系统。
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP22787641.4A EP4319065A4 (en) | 2021-04-17 | 2022-04-15 | NETWORK ESTABLISHMENT METHOD, ETHERNET SYSTEM AND VEHICLE |
JP2023563840A JP2024514906A (ja) | 2021-04-17 | 2022-04-15 | ネットワーク確立方法、イーサネットシステム及び車両 |
US18/488,216 US20240048407A1 (en) | 2021-04-17 | 2023-10-17 | Network Establishing Method, Ethernet System, and Vehicle |
Applications Claiming Priority (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110415169.3 | 2021-04-17 | ||
CN202110415169 | 2021-04-17 | ||
CN202110861508.0A CN115225426A (zh) | 2021-04-17 | 2021-07-29 | 一种组建网络的方法、以太网系统和车辆 |
CN202110861508.0 | 2021-07-29 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US18/488,216 Continuation US20240048407A1 (en) | 2021-04-17 | 2023-10-17 | Network Establishing Method, Ethernet System, and Vehicle |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022218419A1 true WO2022218419A1 (zh) | 2022-10-20 |
Family
ID=83606162
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/087157 WO2022218419A1 (zh) | 2021-04-17 | 2022-04-15 | 一种组建网络的方法、以太网系统和车辆 |
Country Status (5)
Country | Link |
---|---|
US (1) | US20240048407A1 (zh) |
EP (1) | EP4319065A4 (zh) |
JP (1) | JP2024514906A (zh) |
CN (1) | CN115225426A (zh) |
WO (1) | WO2022218419A1 (zh) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115865637B (zh) * | 2022-11-29 | 2024-06-25 | 重庆长安汽车股份有限公司 | 车载以太环网保护切换方法、装置、设备及存储介质 |
CN116192638B (zh) * | 2022-12-30 | 2024-07-05 | 迈普通信技术股份有限公司 | 网络设备功耗优化方法、装置、网络设备和存储介质 |
CN117527537B (zh) * | 2023-11-08 | 2024-07-09 | 南京能可瑞科技有限公司 | 一种分体式充电桩的通信方法 |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1812361A (zh) * | 2006-01-23 | 2006-08-02 | 杭州华为三康技术有限公司 | 快速环网保护方法及系统 |
US20100296391A1 (en) * | 2009-05-21 | 2010-11-25 | Moxa Inc. | Method for Conducting Redundancy Checks in a Chain Network |
CN101958831A (zh) * | 2010-06-10 | 2011-01-26 | 福建星网锐捷网络有限公司 | 以太环网故障恢复方法、以太环网及交换设备 |
CN103001799A (zh) * | 2012-11-23 | 2013-03-27 | 北京东土科技股份有限公司 | 基于链状网络的冗余实现方法及节点 |
CN107612614A (zh) * | 2017-10-09 | 2018-01-19 | 郑州云海信息技术有限公司 | 一种分布式集装箱数据中心动环监控环网及故障修复方法 |
CN110247835A (zh) * | 2019-06-13 | 2019-09-17 | 深圳市遐域技术有限公司 | 一种具有双重冗余保护功能的工业交换机环形网络 |
CN112187646A (zh) * | 2020-09-25 | 2021-01-05 | 新华三信息安全技术有限公司 | 报文表项处理方法及装置 |
CN112311642A (zh) * | 2020-12-23 | 2021-02-02 | 奥特酷智能科技(南京)有限公司 | 基于环形组网的汽车以太网冗余调度方法 |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101014634B1 (ko) * | 2006-03-28 | 2011-02-16 | 니폰덴신뎅와 가부시키가이샤 | 링형 용장 통신로 제어방법 |
CN101232428B (zh) * | 2007-01-23 | 2012-05-23 | 华为技术有限公司 | 一种以太网环保护方法及装置 |
CN100534024C (zh) * | 2007-11-26 | 2009-08-26 | 中控科技集团有限公司 | 基于工业以太网的故障处理方法、系统及一种交换设备 |
CN101207521A (zh) * | 2007-12-12 | 2008-06-25 | 华为技术有限公司 | 以太网故障检测及收敛的方法和节点设备 |
CN101741670B (zh) * | 2008-11-27 | 2012-12-19 | 中兴通讯股份有限公司 | 一种多环以太网的保护方法 |
US8218433B2 (en) * | 2009-01-07 | 2012-07-10 | Alcatel Lucent | Monitoring connectivity in ring networks |
-
2021
- 2021-07-29 CN CN202110861508.0A patent/CN115225426A/zh active Pending
-
2022
- 2022-04-15 JP JP2023563840A patent/JP2024514906A/ja active Pending
- 2022-04-15 WO PCT/CN2022/087157 patent/WO2022218419A1/zh active Application Filing
- 2022-04-15 EP EP22787641.4A patent/EP4319065A4/en active Pending
-
2023
- 2023-10-17 US US18/488,216 patent/US20240048407A1/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1812361A (zh) * | 2006-01-23 | 2006-08-02 | 杭州华为三康技术有限公司 | 快速环网保护方法及系统 |
US20100296391A1 (en) * | 2009-05-21 | 2010-11-25 | Moxa Inc. | Method for Conducting Redundancy Checks in a Chain Network |
CN101958831A (zh) * | 2010-06-10 | 2011-01-26 | 福建星网锐捷网络有限公司 | 以太环网故障恢复方法、以太环网及交换设备 |
CN103001799A (zh) * | 2012-11-23 | 2013-03-27 | 北京东土科技股份有限公司 | 基于链状网络的冗余实现方法及节点 |
CN107612614A (zh) * | 2017-10-09 | 2018-01-19 | 郑州云海信息技术有限公司 | 一种分布式集装箱数据中心动环监控环网及故障修复方法 |
CN110247835A (zh) * | 2019-06-13 | 2019-09-17 | 深圳市遐域技术有限公司 | 一种具有双重冗余保护功能的工业交换机环形网络 |
CN112187646A (zh) * | 2020-09-25 | 2021-01-05 | 新华三信息安全技术有限公司 | 报文表项处理方法及装置 |
CN112311642A (zh) * | 2020-12-23 | 2021-02-02 | 奥特酷智能科技(南京)有限公司 | 基于环形组网的汽车以太网冗余调度方法 |
Non-Patent Citations (1)
Title |
---|
See also references of EP4319065A4 |
Also Published As
Publication number | Publication date |
---|---|
EP4319065A1 (en) | 2024-02-07 |
JP2024514906A (ja) | 2024-04-03 |
EP4319065A4 (en) | 2024-10-09 |
CN115225426A (zh) | 2022-10-21 |
US20240048407A1 (en) | 2024-02-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2022218419A1 (zh) | 一种组建网络的方法、以太网系统和车辆 | |
US11088874B2 (en) | Vehicle and in-vehicle message transmission method | |
US7924702B2 (en) | Method for reconfiguring a communication network | |
US9270482B2 (en) | Method for activating a network component of a vehicle network system | |
US7457256B2 (en) | Local area network with one or more virtual groups of core equipments appropriate for layer 2 switching | |
US9413609B2 (en) | Communication device and method for transmitting messages in a redundantly operable industrial communication network | |
US9473382B2 (en) | Method and system for link aggregation | |
JP4074631B2 (ja) | 伝送路システム、および同システムにおけるフレーム伝送装置、ならびに伝送路切り替え方法 | |
US20080205302A1 (en) | Preventing data traffic connectivity between endpoints of a network segment | |
US7792056B2 (en) | Lightweight node based network redundancy solution leveraging rapid spanning tree protocol (RSTP) | |
US20100061254A1 (en) | Technical Enhancements to STP (IEEE 802.1D) Implementation | |
JP2005130049A (ja) | ノード | |
US8320387B2 (en) | Ring type ethernet system, ring type switch, ring connection control circuit, ring type ethernet system control method, ring type switch control method and ring connection control method | |
JP2008072708A (ja) | フォルト・トレラント電子通信ネットワーク | |
JP7400820B2 (ja) | 車載通信システム、車載装置および車両通信方法 | |
JP2003258822A (ja) | パケットリングネットワーク及びそれに用いるパケットリングネットワーク間の接続方法 | |
US8959386B2 (en) | Network and expansion unit and method for operating a network | |
CN110768880A (zh) | 以太网网络节点、故障处理方法、计算机设备及存储介质 | |
KR100979804B1 (ko) | 링 토폴로지 형태로 구성된 네트워크에서의 시간손실이 최소화된 실시간 데이터 전송시스템 | |
CN115714698B (zh) | 车载以太网的环网通信方法、装置、车辆及存储介质 | |
JP2005159546A (ja) | ネットワーク装置 | |
AU2020102837A4 (en) | A method and system for improving wireless sensor network using fault mitigation technology | |
CN115941587B (zh) | 多归路由方法、装置、边缘设备及存储介质 | |
KR102610921B1 (ko) | 차량 네트워크에서 백업 경로를 설정하는 방법 및 장치 | |
JP4653800B2 (ja) | 伝送路システム、フレーム伝送装置、伝送路システムにおける伝送路切り替え方法およびプログラム |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22787641 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2023563840 Country of ref document: JP |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2022787641 Country of ref document: EP |
|
ENP | Entry into the national phase |
Ref document number: 2022787641 Country of ref document: EP Effective date: 20231027 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |