CN116112314A - Looped network storm blocking method, device, equipment, medium and vehicle - Google Patents

Looped network storm blocking method, device, equipment, medium and vehicle Download PDF

Info

Publication number
CN116112314A
CN116112314A CN202310048121.2A CN202310048121A CN116112314A CN 116112314 A CN116112314 A CN 116112314A CN 202310048121 A CN202310048121 A CN 202310048121A CN 116112314 A CN116112314 A CN 116112314A
Authority
CN
China
Prior art keywords
port
broadcast message
communication
switch
ring network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310048121.2A
Other languages
Chinese (zh)
Inventor
王敏
黄杰
陈德芮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing Changan Automobile Co Ltd
Original Assignee
Chongqing Changan Automobile Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Changan Automobile Co Ltd filed Critical Chongqing Changan Automobile Co Ltd
Priority to CN202310048121.2A priority Critical patent/CN116112314A/en
Publication of CN116112314A publication Critical patent/CN116112314A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/42Loop networks
    • H04L12/437Ring fault isolation or reconfiguration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/18Loop-free operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/70Routing based on monitoring results
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports

Abstract

The application provides a looped network storm blocking method, a device, equipment, a medium and a vehicle, wherein the method comprises the following steps: if the blocking of a certain section of link of the Ethernet ring network is monitored; one end of the current blocking link is connected with the first communication equipment, and the other end of the current blocking link is connected with the second communication equipment; determining a first broadcast message transmitted by a first communication port of a current blocking link, and prohibiting data forwarding of the first broadcast message in first communication equipment corresponding to the first communication port so as to block the Ethernet ring network from forming a storm in the anticlockwise direction; determining a second broadcast message transmitted by a second communication port of a current blocking link, and prohibiting data forwarding of the second broadcast message in second communication equipment corresponding to the second communication port so as to block the Ethernet ring network from forming a storm in a clockwise direction. The method and the device perform controllable forwarding configuration on the received broadcast message through the program so as to avoid ring network storm.

Description

Looped network storm blocking method, device, equipment, medium and vehicle
Technical Field
The application relates to the technical field of vehicle-mounted Ethernet, in particular to a ring network storm blocking method, a device, equipment, a medium and a vehicle.
Background
With the development of vehicle networks, existing vehicle enterprises use ethernet for diagnosis and writing, information entertainment, ADAS and other aspects of large data volume and high bandwidth requirements, and electronic and electric architecture is developing towards the direction that ethernet is a backbone network, and in order to promote the functional safety of vehicles, the vehicle networks are also designed to be in a ring structure. In ring ethernet, broadcast storm problems can occur, causing network breakdown.
In industrial ethernet, spanning tree protocols are often used to prevent switches from creating loops and from storm. The spanning tree protocol is a dynamic method for spanning tree structures of ring network structures, which can be completed in a certain time, and the method is not suitable for a vehicle-mounted network because power-on is required to be started in real time, so that a ring network storm blocking mode is needed, and the current dilemma is solved.
Disclosure of Invention
In view of the above drawbacks of the prior art, an object of the present invention is to provide a method, an apparatus, a device, a medium and a vehicle for blocking a ring network storm, which are used for solving the following technical problems: broadcast storms can occur in the vehicle-mounted Ethernet ring network, causing network breakdown.
In view of the above technical problem, in a first aspect, the present application provides a method for blocking a ring network storm, which is applied to a vehicle-end ethernet ring network, and includes:
if the blocking of a certain section of link of the Ethernet ring network is monitored; one end of the current blocking link is connected with the first communication equipment, and the other end of the current blocking link is connected with the second communication equipment;
determining a first broadcast message transmitted by a first communication port of a current blocking link, and prohibiting data forwarding of the first broadcast message in first communication equipment corresponding to the first communication port so as to block the Ethernet ring network from forming a message storm in the anticlockwise direction; or/and the combination of the two,
determining a second broadcast message transmitted by a second communication port of a current blocking link, and prohibiting data forwarding of the second broadcast message in second communication equipment corresponding to the second communication port so as to block the Ethernet ring network from forming a message storm in a clockwise direction.
In an embodiment of the present application, determining a first broadcast message transmitted by a first communication port of a currently blocked link includes:
the first broadcast message is transmitted to the first communication port of the first communication device through the second communication port of the second communication device;
And the broadcast messages received by the other ports of the second communication equipment are collected into the first broadcast message, and the first broadcast message is sent to the first communication port of the first communication equipment through the second communication port by blocking a link so that the first communication port receives the first broadcast message.
In an embodiment of the present application, prohibiting the forwarding of the first broadcast message in the first communication device corresponding to the first communication port to block the ethernet ring network from forming a message storm in a counterclockwise direction includes:
receiving the first broadcast message by using a first communication port of the first communication device, wherein the first communication device further comprises a port I and a port II;
the first broadcast message cannot be internally transmitted to the second port and the first port of the other ports of the first communication device through the first communication port;
the port I of the other ports of the first communication equipment receives the broadcast message which is allowed to be internally transmitted to the port II and the first communication port;
the broadcast message received by the port two of the rest ports of the first communication equipment is allowed to be sent to the port one and the first communication port through the inside.
In an embodiment of the present application, determining a second broadcast message transmitted by a second communication port of a currently blocked link includes:
the second broadcast message is transmitted to a second communication port through a first communication port of the first communication device;
and the broadcast messages received by the other ports of the first communication equipment are collected into the second broadcast message, and the second broadcast message is sent to the second communication port of the second communication equipment through the first communication port by blocking a link so that the second communication port receives the second broadcast message.
In an embodiment of the present application, prohibiting the forwarding of the second broadcast message in the second communication device corresponding to the second communication port to block the ethernet ring network from forming a message storm in a clockwise direction includes:
receiving the second broadcast message by using a second communication port of the second communication device, wherein the second communication device further comprises a port two, a port three and a port four;
the second broadcast message cannot be internally transmitted to the second port, the third port and the fourth port of the other ports of the second communication device through the second communication port;
The broadcast message received by the port II of the other ports of the second communication equipment is allowed to be internally transmitted to the second communication port, the port III and the port IV;
the broadcast message received by the port III of the other ports of the second communication equipment is allowed to be internally transmitted to the first communication port, the port II and the port IV;
and the broadcast messages received by the port four of the other ports of the second communication equipment are allowed to be internally transmitted to the first communication port, the port two and the port three.
In an embodiment of the present application, the broadcast message received by the port four of the remaining ports of the second communication device is allowed to be sent to the port one, the port two and the port three internally, wherein the port four receives a third broadcast message, and the method includes:
the port IV of the second communication device is connected with an independent switch, and the port I of the independent switch receives a third broadcast message;
forwarding the third broadcast message received by the port I of the independent switch to the port II of the independent switch;
and transmitting the third broadcast message received by the port II of the independent switch to the port IV of the second communication equipment so that the port IV receives the third broadcast message.
In a second aspect, the present application further provides a looped network storm blocking device, including:
the monitoring module is used for monitoring whether blocking occurs to a certain section of link of the Ethernet ring network;
the first broadcast message forwarding configuration module is used for determining a first broadcast message transmitted by a first communication port of a current blocking link, and prohibiting data forwarding of the first broadcast message in first communication equipment corresponding to the first communication port so as to block the Ethernet ring network from forming a message storm in the anticlockwise direction;
and the second broadcast message forwarding configuration module is used for determining a second broadcast message transmitted by a second communication port of the current blocking link, and prohibiting data forwarding of the second broadcast message in second communication equipment corresponding to the second communication port so as to block the Ethernet ring network from forming a message storm in the clockwise direction.
In a third aspect, the present application also provides an electronic device comprising a processor, a memory, and a communication bus;
the communication bus is used for connecting the processor with a memory;
the processor is configured to execute the computer program stored in the memory to implement the method as described above.
In a fourth aspect, the present application also provides a computer-readable storage medium having stored thereon a computer program for causing a computer to perform a method as described above.
In a fifth aspect, the present application further provides a vehicle, where the vehicle is deployed with a ring network formed by at least two communication devices, where the two communication devices are a first communication device and a second communication device, respectively, and the first communication device and the second communication device are burned with a storm blocking program, where the storm blocking program is configured to implement a method as described above.
As above, the ring network storm blocking method, device, equipment, medium and vehicle provided by the application have the following beneficial effects:
if the blocking of a certain section of link of the Ethernet ring network is monitored; determining a first broadcast message transmitted by a first communication port of a current blocking link, and prohibiting data forwarding of the first broadcast message in first communication equipment corresponding to the first communication port so as to block the Ethernet ring network from forming a message storm in the anticlockwise direction; or/and determining a second broadcast message transmitted by a second communication port of the current blocking link, and prohibiting the second broadcast message from being subjected to data forwarding in second communication equipment corresponding to the second communication port so as to block the Ethernet ring network from forming a message storm in a clockwise direction.
Drawings
Fig. 1 is a schematic diagram of an ethernet ring structure provided in an embodiment of the present application;
FIG. 2 is a flow chart of a method of receiving a first broadcast message provided in an embodiment of the present application;
FIG. 3 is a flow chart of a method for a first communication device to forward a received first broadcast message provided in an embodiment of the present application;
fig. 4 is a schematic diagram of an ethernet ring network structure formed by two switches according to an embodiment of the present application;
fig. 5 is a schematic diagram of two ethernet ring structures composed of a plurality of switches according to an embodiment of the present application;
FIG. 6 is a diagram of a ring network storm blocking device framework provided in an embodiment of the application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Other advantages and effects of the present application will become apparent to those skilled in the art from the present disclosure, when the following description of the embodiments is taken in conjunction with the accompanying drawings. The present application may be embodied or carried out in other specific embodiments, and the details of the present application may be modified or changed from various points of view and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments may be combined with each other without conflict.
It should be noted that the illustrations provided in the following embodiments merely illustrate the basic concepts of the application by way of illustration, and only the components related to the application are shown in the drawings and are not drawn according to the number, shape and size of the components in actual implementation, and the shape, number and proportion of the components in actual implementation may be arbitrarily changed, and the layout of the components may be more complex.
In the following description, numerous details are set forth to provide a more thorough explanation of embodiments of the present application, however, it will be apparent to one skilled in the art that embodiments of the present application may be practiced without these specific details, in other embodiments, well-known structures and devices are shown in block diagram form, rather than in detail, in order to avoid obscuring the embodiments of the present application.
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
With the development of vehicle networks, existing vehicle enterprises use ethernet for diagnosis and writing, information entertainment, ADAS and other aspects of large data volume and high bandwidth requirements, and electronic and electric architecture is developing towards the direction that ethernet is a backbone network, and in order to promote the functional safety of vehicles, the vehicle networks are also designed to be in a ring structure. In ring ethernet, broadcast storm problems can occur, causing network breakdown.
In industrial ethernet, spanning tree protocols are often used to prevent switches from creating loops and from storm. The spanning tree protocol is a dynamic method for spanning tree structures of ring network structures, which can be completed in a certain time, and the method is not suitable for a vehicle-mounted network because power-on is required to be started in real time, so that a ring network storm blocking mode is needed, and the current dilemma is solved.
Fig. 1 is a schematic diagram of an ethernet ring structure provided in an embodiment of the present application.
As shown in fig. 1, the ring network structure includes four switches and an independent switch 105, where the four switches form a ring network, that is, a first switch 104, a second switch 103, a third switch 102, and a fourth switch 101 form a ring network, the first switch 104 has a first controller 109 in communication with the first switch, the second switch 103 has a second controller 108 in communication with the second switch, the third switch 102 has a third controller 107 in communication with the third switch, the fourth switch 101 has a fourth controller 110 in communication with the fourth switch, and the fourth switch 101 communicates with the independent switch 105, and the independent switch 105 communicates with the fifth controller 106.
In the above ring network, the link between the switch four 101 and the switch three 102 is determined to be a blocking link according to the function application requirement and the function security requirement, and it can be understood that the switch three 102, the switch two 103, the switch one 104 and the switch four 101 form a broadcast message forwarding link.
The inventor finds that if the broadcast message is transmitted in a ring shape on the ring network to form a storm and cause network paralysis, therefore, the inventor sets a link between the switch III 102 and the switch IV 101 to be a blocking link, and then the broadcast message transmitted in the ring network formed by the switch I104, the switch II 103, the switch III 102 and the switch IV 101 is not transmitted in a ring shape, thereby avoiding forming the storm and avoiding network paralysis.
The ring network storm blocking program developed by the inventor is respectively burnt into a third switch 102 and a fourth switch 101 at two ends of the blocking link, and when the third switch 102 and the fourth switch 101 receive broadcast messages, the program automatically carries out forwarding configuration on the received broadcast messages so as to block the third switch 102 and the fourth switch 101 from communicating with each other through the blocking link, thereby avoiding ring networks formed among the first switch, the second switch 103, the third switch 102 and the fourth switch 101 and avoiding storms.
More specifically, how the program burned in the switch four 101 and the switch three 102 performs forwarding configuration on the received broadcast message, please refer to fig. 2, which is a flowchart of a ring network storm blocking method provided in the embodiments of the present application.
As shown in fig. 2, the method for blocking the ring network storm includes:
s201, if the blocking of a certain section of link of the Ethernet ring network is monitored, one end of a current blocking link is connected with first communication equipment, and the other end of the current blocking link is connected with second communication equipment; here, the first communication device is the switch three 102 shown in fig. 1, and the second communication device is the switch four 101 shown in fig. 1.
S202, determining a first broadcast message transmitted by a first communication port of a current blocking link, and prohibiting data forwarding of the first broadcast message in first communication equipment corresponding to the first communication port so as to block the Ethernet ring network from forming a message storm in a anticlockwise direction;
here, the first communication port is port three of the switch three 102 shown in fig. 1, and the second communication port is port one of the switch four 101 shown in fig. 1. The blocking link is not fixed, and may be selected according to the purpose of the user, and the blocking link is determined according to the function application requirement and the function security requirement, as shown in fig. 1, and may be determined between the switch one 104 and the switch two 103 according to different function application requirements and function security requirements. Alternatively, the link between switch two 103 and switch three 102 may be determined to be a blocked link. Alternatively, the link between switch four 101 and switch one 104 may be determined to be a blocked link. Essentially, as long as the ring network is not formed among the switch one 104, the switch two 103, the switch three 102 and the switch four 101 to transmit the broadcast message, determining that the blocking link needs to be according to the function application requirement and the function security requirement, the structure shown in fig. 1 is carried out for convenience in explaining the invention.
Specifically, the link connected between port three of switch three 102 and port one of switch four 101 is determined to be a blocking link, and the inventors have paid attention to: the blocking link does not inhibit broadcast messages from being transmitted on the blocking link, but rather, broadcast messages transmitted on the blocking link are blocked on the port three and the port one respectively, and the program inhibits the broadcast messages from being transmitted to other ports through the inside of the port three and the port one, so that the effect of blocking the broadcast messages is achieved, and storm formation is avoided.
Specifically, the first broadcast message that prohibits blocking the link transmission is sent to the remaining ports of the first communication device through one port, and as shown in fig. 1, among the ports one and two and three in the switch three 102, the broadcast message received by the switch three 102 from the port three is prohibited from being sent to the ports two and one. Optionally, the switch three 102 has a port four (not shown), and one controller may be connected to the port four, so there are two controllers in the switch three 102, and it will be understood that the broadcast message received by the port three is also prohibited from being sent to the port four, that is, if there are several ports, such as five ports, the broadcast message received from the port three is prohibited from being sent to the other ports internally.
S203, determining a second broadcast message transmitted by a second communication port of a current blocking link, and prohibiting data forwarding of the second broadcast message in second communication equipment corresponding to the second communication port so as to block the Ethernet ring network from forming a message storm in a clockwise direction;
specifically, step S202 before S203 only avoids that the broadcast message propagating in the counterclockwise direction forms a storm, but the storm may still occur in the clockwise direction, and the inventor performs the same process on switch four, that is, the burning program in switch four 101 processes the broadcast message received by port one, that is, the broadcast message received by port one is prohibited from being sent to the other ports through the interior.
Further, first, a specific description of how to prevent the ring network from forming a storm in a counterclockwise direction is provided, and determining a first broadcast message transmitted by a first communication port of a current blocking link includes: the first broadcast message is transmitted to the first communication port through the second communication port of the second communication device; and the broadcast messages received by the other ports of the second communication equipment are collected into the first broadcast message, and the first broadcast message is sent to the first communication port of the first communication equipment through the second communication port by blocking a link so that the first communication port receives the first broadcast message.
Specifically, as shown in fig. 1, the third controller 107 sends a corresponding broadcast message, the second controller 108 sends a corresponding broadcast message, the first controller 109 sends a corresponding broadcast message, the fourth controller 110 sends a corresponding broadcast message, and the corresponding broadcast message sent by the third controller 107 is forwarded to the second port through the port, and then is transferred to the second switch, and finally is transferred to the third port of the third switch 102; the second controller 108 sends the corresponding broadcast message to the second switch 103 and finally to the third port of the switch 102; the first controller 109 sends a corresponding broadcast message Wen Zhijiao to the first switch 104 and finally to the third switch 102 through the third port; the controller IV 110 forwards the corresponding broadcast message to the port I through the port III of the switch IV 101, and finally outputs the broadcast message to the port III of the switch III through the port I; the fifth controller 106 sends the corresponding broadcast message to the first port of the independent switch 105, forwards the corresponding broadcast message to the second port through a program, and then sends the corresponding broadcast message to the fourth port of the switch, and forwards the corresponding broadcast message to the first port of the fourth switch 101, and finally sends the corresponding broadcast message to the third port of the third switch 102.
Specifically, as shown in fig. 1, the switch four 101 receives the broadcast message from the port two and then sends the broadcast message to the port one, the port three or the port four, where it should be noted that whether the broadcast message is specifically sent to the port one or the port three or the port four is determined by the characteristics of the broadcast message itself, and there is no limitation herein, but only one possibility that the port two of the switch four 101 may forward the broadcast message to the port one after receiving the corresponding broadcast message, and then send the broadcast message from the port to the port three of the switch three 102.
It can be understood that if the broadcast message on the ethernet ring network propagates in the counterclockwise direction, in the switch four 101, the data output from the port one of the switch four 101 may include the input data of the port two, the input data of the port three, and the input data of the port four, that is, the output data from the port one includes the data in three directions, it can be understood that the data in two directions may also be the data in one direction, which is not required herein, and is determined according to the actual transmission situation of the broadcast message.
Here, it should be noted that the numbers in the port table, the port one, the port, etc. in this embodiment may be renamed according to their own preference, for example, the port one may be named as the port two, and in this embodiment, the naming rule of the port is as follows: taking the switch four 101 as an example, the right end of the switch 101 is named as a port one, the upper end is named as a port two, the left end is named as a port three, and the lower end is named as a port four, and whether the port one, the port two, the port three and the port four are used for distinguishing that each port is not one port so as to describe the technical scheme in the embodiment.
Determining a first broadcast message transmitted by a first communication port of a current blocking link, including: the first broadcast message is transmitted to the first communication port of the first communication device through the second communication port of the second communication device; and the broadcast messages received by the other ports of the second communication equipment are collected into the first broadcast message, and the first broadcast message is sent to the first communication port of the first communication equipment through the second communication port by blocking a link so that the first communication port receives the first broadcast message.
Referring to fig. 3, a flowchart of a method for forwarding a received first broadcast message by a first communication device according to an embodiment of the present application is shown.
As shown in fig. 3, prohibiting the data forwarding of the first broadcast packet in the first communication device corresponding to the first communication port to block the ethernet ring network from forming a packet storm in a counterclockwise direction includes:
s301, receiving the first broadcast message by using a first communication port of the first communication device, wherein the first communication device further comprises a port I and a port II;
as shown in fig. 1, specifically, port three of switch three 102 receives broadcast message one. The first broadcast message is a set of integrated messages, and the specific message composition and structure are not limited herein. The port three of the switch three 102 receives the first broadcast message, i.e. the first broadcast message is input from the port three, and the specific forwarding rule of the first broadcast message is limited by the program programmed into the switch three 102, however, in this embodiment, the first broadcast message received by the port three of the switch three 102 cannot be forwarded to the port two and the port one through the inside.
S302, the first broadcast message cannot be sent to a second port and a first port of other ports of the first communication equipment through the inside of the first communication port;
specifically, when the first broadcast message is input from the port three to the switch three, the received first broadcast message is processed by the ring network storm blocking program, so that the first broadcast message entering from the port three cannot be forwarded to the port two and the port one, that is, the broadcast message output from the port two cannot contain the broadcast message input from the port three, and the broadcast message output from the port three cannot have the broadcast message first input from the port three.
S303, allowing the broadcast message received by the port I of the other ports of the first communication equipment to be internally transmitted to the port II and the first communication port;
specifically, under the action of the ring network storm blocking program, the corresponding broadcast message received from the controller three 107 may be forwarded to the port two and the port three through the port one. The broadcast message received from port two can be sent to port one and port three as well.
S304, allowing the broadcast message received by the port two of the rest ports of the first communication equipment to be sent to the port one and the first communication port through the inside.
It can be understood that the broadcast message received by the third switch 102 from the second port is a set of integrated messages, which are sent to the corresponding interfaces according to their own characteristics in combination with the coordinated forwarding of the ring network storm blocking procedure.
It should be noted that, the above process only describes how to configure and forward the received broadcast message for the switch three, when the ring network storm blocking program in the switch three 102 plays a corresponding role, only the broadcast message in the counterclockwise direction on the ring network can be blocked to form a storm, and at this time, the broadcast storm still exists in the clockwise direction, the switch four 101 at the other end of the blocking link is required to burn the ring network storm blocking program, and the program can also realize the above functions, that is, the switch four 101 can perform coordinated configuration and forward on the received message.
Specifically, determining the second broadcast message transmitted by the second communication port of the current blocking link includes: the second broadcast message is transmitted to the second communication port of the second communication device through the first communication port of the first communication device; and the broadcast messages received by the other ports of the first communication equipment are collected into the second broadcast message, and the second broadcast message is sent to the second communication port of the second communication equipment through the first communication port by blocking a link so that the second communication port receives the second broadcast message.
Further, the step of prohibiting the data forwarding of the second broadcast message in the second communication device corresponding to the second communication port to block the ethernet ring network from forming a message storm in a clockwise direction includes: receiving the second broadcast message by using a second communication port of the second communication device, wherein the second communication device further comprises a port two, a port three and a port four; the second broadcast message cannot be internally transmitted to the second port, the third port and the fourth port of the other ports of the second communication device through the second communication port; the broadcast message received by the port II of the other ports of the second communication equipment is allowed to be internally transmitted to the second communication port, the port III and the port IV; the broadcast message received by the port III of the other ports of the second communication equipment is allowed to be internally transmitted to the first communication port, the port II and the port IV; and the broadcast messages received by the port four of the other ports of the second communication equipment are allowed to be internally transmitted to the first communication port, the port two and the port three.
Here, as shown in fig. 1, the forwarding configuration of the received broadcast message by the program burnt into the switch four 101 is the same as the forwarding configuration of the received broadcast message by the switch three, which is not described herein.
The broadcast message received by the port four of the remaining ports of the second communication device is allowed to be sent to the port one, the port two and the port three through the interior, wherein the port four receives a third broadcast message, and the method comprises the following steps: the port IV of the second communication device is connected with an independent switch, and the port I of the independent switch receives a third broadcast message; forwarding the third broadcast message received by the port I of the independent switch to the port II of the independent switch; and transmitting the third broadcast message received by the port II of the independent switch to the port IV of the second communication equipment so that the port IV receives the third broadcast message.
Specifically, the first communication port and the second communication port are respectively located at two ends of the blocking link, as shown in fig. 1, the first communication port is a port three of the switch three 102, and the second communication port is a port one of the switch four 101, when the switch three 102 sends the second broadcast message to a port one of the switch four 101 from the port three inside through the blocking link, due to the forwarding configuration of the storm blocking program in the switch four 101 on the second broadcast message, the second broadcast message is forbidden to be sent from the port to the port two, the port three and the port four, so as to prevent the effect of the message storm in the clockwise direction. In addition, when the switch four 101 transmits the first broadcast message to the port three of the switch three 102 from the port one through the blocking link, similarly, the first broadcast message is forbidden to be transmitted to the port two under the action of the storm blocking program in the switch three 102, so that the first broadcast message is prevented from forming a message storm in the anticlockwise direction.
FIG. 4 is a schematic diagram of a ring network structure formed by two switches according to an embodiment of the present application;
in the real-time vehicle-mounted ethernet, a single ring formed by two switches may be used, as shown in fig. 4, and the processing logic of the ring network storm blocking program for the received broadcast message is the same as that described above. Specifically, the broadcast message received by the switch one 402 from the port four may not be sent to the port three and the port two, the broadcast message received by the port three from the controller one 401 may be forwarded and configured to the port four and the port two, the broadcast message received by the switch two 403 from the port four may not be sent to the port one and the port two, the broadcast message received by the port one from the controller two 404 may be forwarded to the port two and the port four, and the broadcast message received by the port two may be forwarded to the port one and the port four, which are the same principle and are not repeated.
Fig. 5 is a schematic diagram of two ring structures formed by a plurality of switches according to an embodiment of the present application;
the real vehicle ethernet may include more ring networks, switches and controllers, and the ring networks formed by the two ring networks may be more complex, as shown in fig. 5, where a first ring network is formed among a second switch 504, a third switch 506, a fourth switch 507 and a first switch 502, the second switch 504 is connected with the second switch 503, the third switch 505 is connected with the third switch 506, the fourth switch 507 is connected with the first switch 508, the first switch 501 is connected with the first switch 502, the first switch 501 sends a broadcast message Wen Zhijiao to the first switch 502, the second switch 503 sends a broadcast message to the second switch 504, the third switch 505 sends a broadcast message to the third switch 506, and the fourth switch 508 sends a broadcast message to the fourth switch 507.
Further, a second ring network is formed among the switch five 510, the switch six 511, the switch seven 514 and the switch eight 515, the switch four 507 is connected with the switch five 510, the first ring network is communicated with the second ring network, in the second ring network, the controller six 512 sends a broadcast message for the switch six 511, the controller seven 513 sends a broadcast message for the switch seven 514, the controller eight 516 sends a broadcast message for the switch eight 515, and the controller five 509 sends a broadcast message for the switch five 510.
Fig. 5 illustrates two ring networks, of course, there may be three ring networks, four ring networks, etc. in the vehicle ethernet, which is only an example.
The first link 517 between the third switch 506 and the fourth switch 507 is determined to be a blocking link according to the function application requirement and the function security requirement, and the blocking principle is the same as that described above, and is not repeated herein, however, the inventor finds that there is still a ring network, and then a risk of storm occurs, so the second link 518 between the seventh switch 514 and the eighth switch 515 is determined to be another blocking link according to the function application requirement and the function security requirement, and then broadcast messages on the two ring networks will not be in annular propagation, so as to avoid broadcast storm. If there are more ring networks, the same principle is adopted to process, and the broadcast message cannot be transmitted in a ring shape, and one section of the ring network is blocked, and here, it is required to be explained that although one section of the ring network can be blocked, each controller cannot be allowed to communicate in the ring network, which is not allowed, as shown in fig. 5, if the link between the switch five 510 and the switch six 511 is determined to be a blocked link, and the link between the switch six 511 and the switch seven 514 is determined to be a blocked link, the ring network is macroscopically blocked by two sections, and the ring transmission of the broadcast message is blocked, but the controller six 512 basically has the effect of being wasted, and has no way to perform normal communication with other nodes of the vehicle-mounted ethernet, which is equivalent to the controller six 512, which is certainly not allowed when the vase is used, so that the blocking of one section is allowed only in the embodiment.
The broadcast message received by the port four of the other ports of the second communication device is allowed to be sent to the port one, the port two and the port three through the interior, wherein the port four receives the broadcast message, and the method comprises the following steps: an independent switch 105 connected to the fourth port of the second communication device receives the broadcast message through the first port; forwarding the broadcast message received through port one of the independent switch 105 internally to port two of the independent switch 105; port two of the independent switch 105 transmits the broadcast message received from port two of the independent switch 105 to port four of the second communication device, so that port four receives the broadcast message.
Specifically, the switches at the two ends of the blocking link are all burnt with a ring network storm blocking program, and the ring network storm blocking program configures the received broadcast message to block the broadcast message from forming a storm in the clockwise direction and the anticlockwise direction.
Referring to fig. 6, a frame diagram of a ring network storm blocking device according to an embodiment of the present application is shown.
The ring network storm blocking device 600 comprises:
the monitoring module 601 is configured to monitor whether blocking occurs in a link of a certain segment of the ethernet ring network;
a first broadcast message forwarding configuration module 602, configured to determine a first broadcast message transmitted by a first communication port of a current blocking link, and prohibit data forwarding of the first broadcast message in a first communication device corresponding to the first communication port, so as to block the ethernet ring network from forming a message storm in a counterclockwise direction;
A second broadcast message forwarding configuration module 603, configured to determine a second broadcast message transmitted by a second communication port of a current blocking link, and prohibit data forwarding of the second broadcast message in a second communication device corresponding to the second communication port, so as to block the ethernet ring network from forming a message storm in a clockwise direction;
in an embodiment, the first broadcast message forwarding configuration module 602 is configured to:
a switch on a certain section of forwarding link in the Ethernet ring network receives a corresponding broadcast message sent by a corresponding controller;
the corresponding broadcast message is internally forwarded to other ports through a second port of the second communication device;
and the broadcast messages received by the corresponding broadcast message and the port III and the port IV of the other ports of the second communication equipment are collected into the first broadcast message, and the first broadcast message is sent to the first communication port of the first communication equipment through the port I of the other ports by blocking a link, so that the first broadcast message is transmitted at the first communication port.
In an embodiment, the first broadcast message forwarding configuration module 602 is further configured to: a first communication port of a first communication device receives the first broadcast message; the first broadcast message cannot be internally transmitted to the second port and the first port of the other ports of the first communication device through the first communication port; the port one of the other ports of the first communication device receives the broadcast message and allows the broadcast message to be internally transmitted to the port two and the port three; and the broadcast messages received by the port two of the rest ports of the first communication equipment are allowed to be internally transmitted to the port one and the port three.
In an embodiment, the second broadcast message forwarding configuration module 603 is configured to: a switch on a certain section of forwarding link in the Ethernet ring network receives a corresponding broadcast message sent by a corresponding controller; the corresponding broadcast message is forwarded to other ports of the first communication equipment through a second port of the first communication equipment; and the corresponding broadcast message is integrated with the broadcast message received by the port I of the other ports of the first communication equipment into a second broadcast message, and the second broadcast message is sent to the second communication port of the second communication equipment through the blocking link by the port III of the other ports, so that the second broadcast message is transmitted at the second communication port.
In an embodiment, the second broadcast message forwarding configuration module 603 is further configured to: a second communication port of the second communication device receives the second broadcast message; the second broadcast message cannot be internally transmitted to the second port, the third port and the fourth port of the other ports of the second communication device through the second communication port; the broadcast message received by the port two of the other ports of the second communication equipment is allowed to be internally transmitted to the port one, the port three and the port four; the broadcast message received by the port III of the other ports of the second communication equipment is allowed to be internally transmitted to the port I, the port II and the port IV; the broadcast message received by port four of the remaining ports of the second communication device is allowed to be internally transmitted to port one, port two and port three.
In an embodiment, the second broadcast message forwarding configuration module 603 is further configured to: an independent switch connected with a port IV of the second communication equipment receives the broadcast message through a port I; forwarding a broadcast message received through a port I of the independent switch to a port II of the independent switch; and the port II of the independent switch sends the broadcast message received from the port II of the independent switch to the port IV of the second communication equipment so that the port IV receives the broadcast message.
In an embodiment, the ring network storm blocking device further comprises: the first communication port and the second communication port are respectively positioned at two ends of the blocking link.
In this embodiment, the ring network storm blocking device is substantially provided with a plurality of modules for executing the method in the above embodiment, and specific functions and technical effects are only required by referring to the above method embodiment, and are not described herein again.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
As shown in fig. 7, the embodiment of the present application further provides an electronic device 700, including a processor 701, a memory 702, and a communication bus 703;
a communication bus 703 for connecting the processor 701 to a memory connection 702;
The processor 701 is configured to execute a computer program stored in the memory 702 to implement the method as described in one or more of the above embodiments.
The present application also provides a computer-readable storage medium having stored thereon a computer program for causing a computer to perform the method according to any one of the above embodiments.
The embodiment of the present application further provides a non-volatile readable storage medium, where one or more modules (programs) are stored, where the one or more modules are applied to a device, and the device may be caused to execute instructions (instructions) of a step included in the embodiment one of the embodiment of the present application.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor apparatus, device, or means, or any combination of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution apparatus, device, or apparatus. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution apparatus, device, or apparatus. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The application also provides a vehicle, the vehicle is deployed with a ring network formed by at least two communication devices, the two communication devices are a first communication device and a second communication device, the first communication device and the second communication device are burnt with a storm blocking program, and the storm blocking program is used for realizing the method.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based devices which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The foregoing embodiments are merely illustrative of the principles of the present application and their effectiveness, and are not intended to limit the application. Modifications and variations may be made to the above-described embodiments by those of ordinary skill in the art without departing from the spirit and scope of the present application. Accordingly, it is intended that all equivalent modifications and variations which may be accomplished by persons skilled in the art without departing from the spirit and technical spirit of the disclosure be covered by the claims of this application.

Claims (10)

1. The method for blocking the ring network storm is characterized by being applied to a vehicle-end Ethernet ring network and comprising the following steps:
if the blocking of a certain section of link of the Ethernet ring network is monitored; one end of the current blocking link is connected with the first communication equipment, and the other end of the current blocking link is connected with the second communication equipment;
determining a first broadcast message transmitted by a first communication port of a current blocking link, and prohibiting data forwarding of the first broadcast message in first communication equipment corresponding to the first communication port so as to block the Ethernet ring network from forming a message storm in the anticlockwise direction; or/and the combination of the two,
determining a second broadcast message transmitted by a second communication port of a current blocking link, and prohibiting data forwarding of the second broadcast message in second communication equipment corresponding to the second communication port so as to block the Ethernet ring network from forming a message storm in a clockwise direction.
2. The method of claim 1, wherein determining the first broadcast message transmitted by the first communication port currently blocking the link comprises:
the first broadcast message is transmitted to the first communication port of the first communication device through the second communication port of the second communication device;
And the broadcast messages received by the other ports of the second communication equipment are collected into the first broadcast message, and the first broadcast message is sent to the first communication port of the first communication equipment through the second communication port by blocking a link so that the first communication port receives the first broadcast message.
3. The method of claim 1, wherein disabling forwarding of the first broadcast message within the first communication device corresponding to the first communication port to block the ethernet ring network from forming a message storm in a counter-clockwise direction comprises:
receiving the first broadcast message by using a first communication port of the first communication device, wherein the first communication device further comprises a port I and a port II;
the first broadcast message cannot be internally transmitted to the second port and the first port of the other ports of the first communication device through the first communication port;
the port I of the other ports of the first communication equipment receives the broadcast message which is allowed to be internally transmitted to the port II and the first communication port;
the broadcast message received by the port two of the rest ports of the first communication equipment is allowed to be sent to the port one and the first communication port through the inside.
4. The method of claim 1, wherein determining a second broadcast message transmitted by a second communication port currently blocking a link comprises:
the second broadcast message is transmitted to the second communication port of the second communication device through the first communication port of the first communication device;
and the broadcast messages received by the other ports of the first communication equipment are collected into the second broadcast message, and the second broadcast message is sent to the second communication port of the second communication equipment through the first communication port by blocking a link so that the second communication port receives the second broadcast message.
5. The method of claim 1, wherein disabling forwarding of the second broadcast message within the second communication device corresponding to the second communication port to block the ethernet ring network from forming a message storm in a clockwise direction comprises:
receiving the second broadcast message by using a second communication port of the second communication device, wherein the second communication device further comprises a port two, a port three and a port four;
the second broadcast message cannot be internally transmitted to the second port, the third port and the fourth port of the other ports of the second communication device through the second communication port;
The broadcast message received by the port II of the other ports of the second communication equipment is allowed to be internally transmitted to the second communication port, the port III and the port IV;
the broadcast message received by the port III of the other ports of the second communication equipment is allowed to be internally transmitted to the first communication port, the port II and the port IV;
and the broadcast messages received by the port four of the other ports of the second communication equipment are allowed to be internally transmitted to the first communication port, the port two and the port three.
6. The method of claim 5, wherein the broadcast message received by port four of the remaining ports of the second communication device is allowed to be internally transmitted to port one, port two and port three, wherein port four receives a third broadcast message, comprising:
the port IV of the second communication device is connected with an independent switch, and the port I of the independent switch receives a third broadcast message;
forwarding the third broadcast message received by the port I of the independent switch to the port II of the independent switch;
and transmitting the third broadcast message received by the port II of the independent switch to the port IV of the second communication equipment so that the port IV receives the third broadcast message.
7. A ring network storm blocking device, comprising:
the monitoring module is used for monitoring whether blocking occurs to a certain section of link of the Ethernet ring network;
the first broadcast message forwarding configuration module is used for determining a first broadcast message transmitted by a first communication port of a current blocking link, and prohibiting data forwarding of the first broadcast message in first communication equipment corresponding to the first communication port so as to block the Ethernet ring network from forming a message storm in the anticlockwise direction;
and the second broadcast message forwarding configuration module is used for determining a second broadcast message transmitted by a second communication port of the current blocking link, and prohibiting data forwarding of the second broadcast message in second communication equipment corresponding to the second communication port so as to block the Ethernet ring network from forming a message storm in the clockwise direction.
8. An electronic device comprising a processor, a memory, and a communication bus;
the communication bus is used for connecting the processor and the memory;
the processor is configured to execute a computer program stored in the memory to implement the method of any one of claims 1-6.
9. A computer readable storage medium, characterized in that it has stored thereon a computer program for causing a computer to perform the method according to any of claims 1-6.
10. A vehicle, characterized in that it is deployed with a ring network of at least two communication devices, a first communication device and a second communication device, respectively, which are burned with a storm blocking procedure for implementing the method according to any of claims 1-6.
CN202310048121.2A 2023-01-31 2023-01-31 Looped network storm blocking method, device, equipment, medium and vehicle Pending CN116112314A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310048121.2A CN116112314A (en) 2023-01-31 2023-01-31 Looped network storm blocking method, device, equipment, medium and vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310048121.2A CN116112314A (en) 2023-01-31 2023-01-31 Looped network storm blocking method, device, equipment, medium and vehicle

Publications (1)

Publication Number Publication Date
CN116112314A true CN116112314A (en) 2023-05-12

Family

ID=86263324

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310048121.2A Pending CN116112314A (en) 2023-01-31 2023-01-31 Looped network storm blocking method, device, equipment, medium and vehicle

Country Status (1)

Country Link
CN (1) CN116112314A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140328160A1 (en) * 2012-01-17 2014-11-06 Telefonaktiebolaget L M Ericsson (Publ) Methods and apparatus for network protection
CN114697259A (en) * 2020-12-31 2022-07-01 华为技术有限公司 Method and device for avoiding loop
CN115002034A (en) * 2022-06-16 2022-09-02 北京经纬恒润科技股份有限公司 Message communication network construction and message transmission method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140328160A1 (en) * 2012-01-17 2014-11-06 Telefonaktiebolaget L M Ericsson (Publ) Methods and apparatus for network protection
CN114697259A (en) * 2020-12-31 2022-07-01 华为技术有限公司 Method and device for avoiding loop
CN115002034A (en) * 2022-06-16 2022-09-02 北京经纬恒润科技股份有限公司 Message communication network construction and message transmission method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
伍晓泉;: "以太网交换机环路产生的原因及分析方法", 电力信息与通信技术, no. 02, 15 February 2016 (2016-02-15), pages 167 - 170 *

Similar Documents

Publication Publication Date Title
CN108200210B (en) Block chain-based chain management method, block chain-based chain management device and computer-readable medium
US9614585B2 (en) Switching communication devices between different communication media
JP2006270839A (en) Setting control device of layer 2 instrument
JP3716359B2 (en) Control method of input signal transmission in communication network, connector therefor and separation circuit built therein
EP2797283A1 (en) Communication apparatus and method for communication
Falahati et al. Latency considerations in IEC 61850-enabled substation automation systems
CN113890767A (en) Network access method, device, equipment and storage medium
CN111800399B (en) Information transmission method, device, equipment and storage medium
CN104639437A (en) Forwarding method and apparatus of broadcast messages in stack system
CN110324415B (en) Method, device, equipment and medium for realizing routing of peer-to-peer network
CN116112314A (en) Looped network storm blocking method, device, equipment, medium and vehicle
GB2438546A (en) Packet relay system and packet relay device
CN106254040A (en) The response process method of order and device
ES2295402T3 (en) METHOD FOR MANAGING NETWORKS UNDERSTANDING A BRIDGE BETWEEN AGRUPAMIENTOS DE HAVI (DOMESTIC AUDIOVISUAL INTEROPERATIVITY).
CN115002803A (en) Terminal management method and device and electronic equipment
CN116155648A (en) Vehicle-mounted dual-ring network data transmission method and device, electronic equipment and storage medium
CN104123261B (en) A kind of electronic equipment and information transferring method
CN107948105B (en) Method and system for controlling port state of equipment
CN110912075A (en) Integrated feeder terminal and distributed feeder automation method thereof
CN101170505B (en) A method and device for processing failure at RPR site
CN112953809B (en) System and method for generating multilayer VLAN flow
CN111211975B (en) Flow table generation method and device, software defined network, and storage medium
CN215182409U (en) Control signal transparent transmission system based on 5G
CN112651013B (en) User account processing method and device, electronic equipment and computer readable medium
JP5402815B2 (en) Optical communication system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination