CN113271254B - Method for restraining vehicle-mounted network broadcast storm - Google Patents

Method for restraining vehicle-mounted network broadcast storm Download PDF

Info

Publication number
CN113271254B
CN113271254B CN202010092784.0A CN202010092784A CN113271254B CN 113271254 B CN113271254 B CN 113271254B CN 202010092784 A CN202010092784 A CN 202010092784A CN 113271254 B CN113271254 B CN 113271254B
Authority
CN
China
Prior art keywords
port
central gateway
broadcast frame
physical
gateway
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.)
Active
Application number
CN202010092784.0A
Other languages
Chinese (zh)
Other versions
CN113271254A (en
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.)
Zhejiang Geely Holding Group Co Ltd
Ningbo Geely Automobile Research and Development Co Ltd
Original Assignee
Zhejiang Geely Holding Group Co Ltd
Ningbo Geely Automobile Research and Development 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 Zhejiang Geely Holding Group Co Ltd, Ningbo Geely Automobile Research and Development Co Ltd filed Critical Zhejiang Geely Holding Group Co Ltd
Priority to CN202010092784.0A priority Critical patent/CN113271254B/en
Publication of CN113271254A publication Critical patent/CN113271254A/en
Application granted granted Critical
Publication of CN113271254B publication Critical patent/CN113271254B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/32Flooding
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/16Multipoint routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Abstract

The invention discloses a method for inhibiting a vehicle-mounted network broadcast storm, which comprises the following steps: connecting a first physical port of a first central gateway with a first physical port of a second central gateway in a vehicle-mounted network; connecting a second physical port of a first central gateway and a second physical port of a second central gateway in the vehicle-mounted network with the regional/regional gateway to form an annular network structure; connecting other physical ports of the first central gateway, other physical ports of the second central gateway and other physical ports of the area/domain gateway with an electronic controller in the vehicle-mounted network; blocking the broadcast frame forwarded to the output port of the second central gateway through the first physical port of the second central gateway based on a first preset forwarding strategy; and blocking the broadcast frame forwarded to the output port of the first central gateway through the first physical port of the first central gateway based on a second preset forwarding strategy. The method does not need to generate a tree, so that the initialization time is reduced; when the area/domain gateways are increased or decreased in the vehicle-mounted network, the virtual gates established by the two central gateways are not influenced.

Description

Method for restraining broadcast storm of vehicle-mounted network
Technical Field
The invention relates to the technical field of vehicle-mounted networks, in particular to a method for restraining broadcast storm of a vehicle-mounted network.
Background
In recent years, with the rapid development of the internet of vehicles and the automatic driving technology, a great deal of data interaction and safe data transmission have made higher and higher requirements on the vehicle-mounted network. Since the load that the conventional vehicle-mounted network (CAN, FlexRay, etc.) CAN bear cannot meet the requirements of massive data interaction and safe data transmission, a novel vehicle-mounted network, i.e., a vehicle-mounted ethernet, is developed. According to the application scenario of the vehicle-mounted ethernet, the vehicle-mounted network may be structured as a central gateway-area/domain gateway-Electronic Controller (ECU). In order to increase the carrying capacity and safety of network communication, a ring network structure may be formed between the central gateway and the regional/regional gateways, so as to form redundancy, and when one link fails, the other link can be ensured to continue transmitting data. Although the ring network architecture can provide redundancy of communication channels, it can cause a serious problem of a broadcast storm that a switch or gateway forwards a broadcast frame to all ports except its input port when receiving the broadcast frame. When a certain node on the ring network sends broadcast, data can circulate all the time on the ring network structure, so that the network bandwidth is exhausted by the broadcast storm, and normal data cannot be sent.
At present, the method for inhibiting the ring network structure is mainly an STP spanning tree, and through an STP protocol, a gateway or a switch on the ring network structure elects a root bridge (root gateway), calculates a shortest path from a non-root bridge to the root bridge, and allocates a port role type. Each gateway or switch defaults itself to be the root Bridge, each switch broadcasts the received BPDU (Bridge Protocol data unit) and sends its own BPDU, and through BPDU flooding, the switch with the smallest BID (Bridge ID ) can be known, that is, the switch is selected as the root Bridge, and the other switches are non-root bridges. The ports of each switch can be divided into designated ports, non-designated ports and root ports, the designated ports can carry out data forwarding, the non-designated ports do not carry out data forwarding, and the root ports are used for data forwarding between the non-root bridge gateway and the root bridge. All ports of the root bridge are designated ports, the root ports exist on non-root bridge gateways, and each non-root bridge gateway only has one root port. The root port is selected based on the minimum path cost from the current non-root bridge switch to the root bridge switch. After the root port is selected, the remaining ports are configured as designated ports or non-designated ports. Each segment in the switching network can only have one designated port. When the switch ports of two non-root ports are connected to the same network segment, the situation of port role competition can occur, the switch port with small BID is the designated port, and finally the logic loop-free spanning tree is completed. As shown in fig. 1, the BID for a is minimal in switches A, B and C, so a is elected to be the root bridge switch and B and C are non-root bridge switches. Ports B1 and C1 are the ports with the least path cost to the root bridge switch for switches B and C, respectively, and thus B1 and C1 are the root ports. B2 and C3 are connected to lan 2, since B2 has a BID less than that of C3, B2 is the designated port, and C3 is the non-designated port, i.e., the C3 port is blocked. Thereby generating a logical acyclic spanning tree.
In the prior art, all switches on a vehicle-mounted network are required to support an STP protocol, while in a vehicle-standard Switch chip, the cost factor influences, the middle and low-end chips do not support STP, a spanning tree cannot be completed, and the STP algorithm logic is very complex and needs to be initialized for a long time. In addition, when there is a new node in the network topology or some ports in the original network are failed, the spanning tree needs to be regenerated, and the spanning tree needs to consume a long time, which has a great influence on the real-time performance of network communication.
Disclosure of Invention
The present invention provides a method for suppressing a vehicle-mounted network broadcast storm, so as to solve the above problems in the prior art.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method of suppressing an in-vehicle network broadcast storm, the method comprising:
connecting a first physical port of a first central gateway with a first physical port of a second central gateway in a vehicle-mounted network;
connecting a second physical port of a first central gateway and a second physical port of a second central gateway in the vehicle-mounted network with the regional/regional gateway to form an annular network structure;
connecting other physical ports of the first central gateway, other physical ports of the second central gateway and other physical ports of the area/domain gateway with an electronic controller in a vehicle-mounted network;
blocking a broadcast frame forwarded to an output port of the second central gateway through a first physical port of the second central gateway based on a first preset forwarding policy;
and blocking the broadcast frames forwarded to the output port of the first central gateway through the first physical port of the first central gateway based on a second preset forwarding strategy.
Further, the blocking, based on the first preset forwarding policy, the broadcast frame forwarded to the output port of the second central gateway through the first physical port of the second central gateway includes:
the second central gateway detects whether a broadcast frame sent by a first physical port of the first central gateway is received;
when the second central gateway receives a broadcast frame sent by a first physical port of the first central gateway, judging whether an input port of the broadcast frame is the first physical port of the second central gateway or not;
if the input port of the broadcast frame is the first physical port of the second central gateway, judging whether the port number of the output port of the broadcast frame is larger than the port number of the first physical port of the second central gateway;
and if the port number of the output port of the broadcast frame is greater than the port number of the first physical port of the second central gateway, blocking the broadcast frame forwarded to the output port of the second central gateway through the first physical port of the second central gateway.
Further, the blocking, based on the first preset forwarding policy, the broadcast frame forwarded to the output port of the second central gateway through the first physical port of the second central gateway includes:
the second central gateway detects whether a broadcast frame sent by a first physical port of the first central gateway is received;
when the second central gateway receives a broadcast frame sent by a first physical port of the first central gateway, judging whether an input port of the broadcast frame is the first physical port of the second central gateway or not;
if the input port of the broadcast frame is the first physical port of the second central gateway, judging whether the port number of the output port of the broadcast frame is smaller than the port number of the first physical port of the second central gateway;
and if the port number of the output port of the broadcast frame is smaller than the port number of the first physical port of the second central gateway, blocking the broadcast frame forwarded to the output port of the second central gateway through the first physical port of the second central gateway.
Further, the method further comprises:
and if the input port of the broadcast frame is not the first physical port of the second central gateway, forwarding the broadcast frame to other physical ports of the second central gateway.
Further, the method further comprises:
if the port number of the output port of the broadcast frame is not greater than the port number of the first physical port of the second central gateway, forwarding the broadcast frame to other physical ports of the second central gateway, or,
and if the port number of the output port of the broadcast frame is not smaller than the port number of the first physical port of the second central gateway, forwarding the broadcast frame to other physical ports of the second central gateway.
Further, the blocking, based on a second preset forwarding policy, a broadcast frame forwarded to an output port of the first central gateway through a first physical port of the first central gateway includes:
the first central gateway detects whether a broadcast frame sent by a first physical port of the second central gateway is received;
when the first central gateway receives a broadcast frame sent by a first physical port of the second central gateway, judging whether an input port of the broadcast frame is the first physical port of the first central gateway or not;
if the input port of the broadcast frame is the first physical port of the first central gateway, judging whether the port number of the output port of the broadcast frame is greater than the port number of the first physical port of the first central gateway;
and if the port number of the output port of the broadcast frame is greater than the port number of the first physical port of the first central gateway, blocking the broadcast frame forwarded to the output port of the first central gateway through the first physical port of the first central gateway.
Further, the blocking, based on a second preset forwarding policy, a broadcast frame forwarded to an output port of the first central gateway through a first physical port of the first central gateway includes:
the first central gateway detects whether a broadcast frame sent by a first physical port of the second central gateway is received;
when the first central gateway receives a broadcast frame sent by a first physical port of the second central gateway, judging whether an input port of the broadcast frame is the first physical port of the first central gateway or not;
if the input port of the broadcast frame is the first physical port of the first central gateway, judging whether the port number of the output port of the broadcast frame is smaller than the port number of the first physical port of the first central gateway;
and if the port number of the output port of the broadcast frame is smaller than the port number of the first physical port of the first central gateway, blocking the broadcast frame forwarded to the output port of the first central gateway through the first physical port of the first central gateway.
Further, the method further comprises:
and if the input port of the broadcast frame is not the first physical port of the first central gateway, forwarding the broadcast frame to other physical ports of the first central gateway.
Further, the method further comprises:
if the port number of the output port of the broadcast frame is not larger than the port number of the first physical port of the first central gateway, forwarding the broadcast frame to other physical ports of the first central gateway, or,
and if the port number of the output port of the broadcast frame is not smaller than the port number of the first physical port of the first central gateway, forwarding the broadcast frame to other physical ports of the first central gateway.
Preferably, the port number of the first physical port of the first central gateway is the same as the port number of the first physical port of the second central gateway.
Compared with the prior art, the invention has the following beneficial effects:
1. the invention sets the forwarding strategy based on the setting of the physical ports of the two central gateways, needs no STP spanning tree, has low requirement on Switch chips and correspondingly lower system cost;
2. the method is realized based on the forwarding strategy of the broadcast frames of the physical ports of the two central gateways, the initialization of the Switch chip can be completed without generating a tree, and the initialization time is reduced;
3. the method is realized based on two central gateways, when the positions of the two central gateways are unchanged, area/domain gateways are increased or decreased in the vehicle-mounted network, or some ports in the vehicle-mounted network are adjusted, so that virtual gates established by the two central gateways are not influenced;
4. the invention does not need to generate a tree, so the configuration of the network is very flexible and the dynamic response is fast.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical means in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without inventive efforts.
Fig. 1 is a flowchart of a method for suppressing a broadcast storm of a vehicle network according to an embodiment of the present invention;
FIG. 2 is a network topology diagram of an on-board network provided by an embodiment of the present invention;
fig. 3 is a schematic diagram of a forwarding direction of a central gateway a forwarding a broadcast frame according to a manner provided by an embodiment of the present invention;
fig. 4 is a schematic diagram of a forwarding direction of a central gateway a forwarding a broadcast frame according to a second mode provided in the embodiment of the present invention;
fig. 5 is a schematic diagram of a forwarding direction for forwarding a broadcast frame from a central gateway a to a central gateway B according to an embodiment of the present invention;
fig. 6 is a flowchart of a method for forwarding broadcast frames from a central gateway a to a central gateway B according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a forwarding direction for forwarding a broadcast frame from the central gateway B to the central gateway a according to an embodiment of the present invention;
fig. 8 is a flowchart of a method for forwarding broadcast frames from the central gateway B to the central gateway a according to an embodiment of the present invention;
fig. 9 is a schematic diagram of suppressing a broadcast storm in a ring network structure according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings in conjunction with the following detailed description. It should be understood that the description is intended to be exemplary only, and is not intended to limit the scope of the present invention.
In the description of the present invention, it should be noted that the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Moreover, the terms "first," "second," and the like are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
In the description of the present invention, it is to be noted that, unless otherwise explicitly specified or limited, the terms "connected" and "connected" should be interpreted broadly, e.g., as being fixed or detachable or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
Examples
An embodiment of the present invention provides a method for suppressing a broadcast storm in a vehicle network, where as shown in fig. 1, the method includes:
s101, connecting a first physical port of a first central gateway in a vehicle-mounted network with a first physical port of a second central gateway.
The first central gateway and the second central gateway in the vehicle-mounted network are mutually redundant and are arranged in a close proximity manner, namely the first central gateway and the second central gateway are directly connected through a physical port. The port numbers of the first central gateway and the second central gateway may be set according to actual needs, which is not limited in the embodiment of the present invention.
Illustratively, as shown in fig. 2, the first central gateway is a central gateway a, the second central gateway is a central gateway B, and a port a1 of the central gateway a is connected with a port B1 of the central gateway B. By adopting the connection mode, on one hand, the information interchange between the central gateway A and the central gateway B is facilitated, and on the other hand, conditions can be provided for setting a first preset forwarding strategy and a second preset forwarding strategy.
And S102, connecting a second physical port of the first central gateway and a second physical port of the second central gateway in the vehicle-mounted network with the regional/regional gateway to form an annular network structure.
Wherein the area/domain gateway is a sub-gateway connected to an electronic controller in a certain area or functional domain. Specifically, the area/domain gateway includes an area gateway and a domain gateway. The zone gateways are gateways divided based on the position of the gateway on the vehicle body, such as a left front gateway, a right front gateway, a left rear gateway, a right rear gateway and the like. The domain gateways are gateways divided according to the functions of the gateways, such as a vehicle body domain gateway and an auxiliary driving domain gateway. The number of the area/domain gateways and the number of the ports may be set according to actual needs, which is not limited in the embodiment of the present invention.
Illustratively, as shown in fig. 2, the zone/domain gateways include a zone/domain gateway C, a zone/domain gateway D, a zone/domain gateway E and a zone/domain gateway F, the port a4 of the central gateway a is connected to the port C1 of the zone/domain gateway C, the port B4 of the central gateway B is connected to the port F5 of the zone/domain gateway F, the port C5 of the zone/domain gateway C is connected to the port D1 of the zone/domain gateway D, the port D4 of the zone/domain gateway D is connected to the port E1 of the zone/domain gateway E, and the port E4 of the zone/domain gateway E is connected to the port F1 of the zone/domain gateway F, thereby forming a ring network structure.
And S103, connecting other physical ports of the first central gateway, other physical ports of the second central gateway and other physical ports of the area/domain gateway with an electronic controller in a vehicle-mounted network.
The Electronic Control Unit (ECU) is a vehicle-mounted controller, and the number of the Electronic controllers can be set according to actual needs, which is not limited in the embodiment of the present invention.
Illustratively, as shown in fig. 2, the port C2 of the zone/area gateway C is connected to the ECU1, the ports C3 and C4 of the zone/area gateway C are connected to the ECU2 and the ECU3, respectively, the ports D2 and D3 of the zone/area gateway D are connected to the ECU4 and the ECU5, the ports E2 and E3 of the zone/area gateway E are connected to the ECU6 and the ECU7, respectively, the ports F2 and F3 of the zone/area gateway F are connected to the ECU8 and the ECU9, respectively, the port F4 of the zone/area gateway F is connected to the ECU10, the ports B3 and B2 of the central gateway B are connected to the ECU11 and the ECU12, respectively, and the ports a2 and A3 of the central gateway a are connected to the ECU13 and the ECU14, respectively.
And S104, blocking the broadcast frame forwarded to the output port of the second central gateway through the first physical port of the second central gateway based on a first preset forwarding strategy.
In the embodiment of the invention, the Ethernet data forwarding function of each central gateway or each regional/regional gateway is completed by the Switch chip. When the Switch chip is forwarding data, it needs to query many configuration tables, one of which is configured with respect to the broadcast frame forwarding policy of each port. The physical ports of the Switch chip generally have physical numbers, for example, the physical number of the Switch chip is 4, and the physical numbers of the 4 ports are 0, 1, 2, and 3. The forwarding policy of the broadcast frame may be restricted based on the port numbers of the physical ports of the two central gateways.
For the port settings of the respective central gateway, specific forwarding rules may be set for the broadcast frames. For example, the connection ports (see a1 and B1 in fig. 2) of the central gateway a and the central gateway B may be set in the following two ways:
the first method is as follows: selecting a1 ═ 0, a2 ═ 1, A3 ═ 2, and a4 ═ 3, and when the port number of the output port is greater than that of port a1, no data forwarding is performed. That is, for the central gateway a, the broadcast frames input from the a2, A3, a4 ports may be forwarded to the a1 port, while the broadcast frames input from the a1 port are discarded since the output ports a2 to a4 are all larger than the a1 and all the broadcast frames are not forwarded.
The second method comprises the following steps: selecting a1 ═ 3, a2 ═ 2, A3 ═ 1, and a4 ═ 0, and when the port number of the output port is smaller than that of port a1, no data forwarding is performed. That is, for the central gateway a, the broadcast frames input from the a2, A3, a4 ports may be forwarded to the a1 port, while the broadcast frames input from the a1 port are discarded since the output ports a2 to a4 are all smaller than the a1, and all the broadcast frames are not forwarded any more.
As shown in fig. 3 and fig. 4, in the first or second manner, the forwarding direction of the broadcast frame can only be forwarded to a1 from port a2, A3 or a4, but the broadcast frame input from the port a1 cannot be forwarded to ports a2, A3 and a 4. In addition, forwarding of broadcast frames among the three ports a2, A3, and a4 is not affected.
For the central gateway B, it adopts the same port setting as the central gateway a, and will not be described herein.
In the embodiment of the present invention, the port a1 of the central gateway a and the port B1 of the central gateway B have the same port number, for example, both are the smallest port number (for example, 0) or the largest port number (for example, 3), so that the broadcast storm suppression is performed based on the port setting.
The method of suppressing the broadcast storm based on the port settings of the central gateway a and the central gateway B will be described in detail below.
For the central gateway a and the central gateway B, the forwarding direction of the broadcast frame may be from the central gateway a to the central gateway B, for example, the broadcast frame may be input from ports a2, A3, a4 of the central gateway a and forwarded to ports B1 of the central gateway B through ports a1 of the central gateway a, as shown in fig. 5. Specifically, as shown in fig. 6, the broadcast frame forwarding process may include the following steps:
s601, initializing a central gateway B;
s602, the central gateway B detects whether a broadcast frame sent by a port A1 of the central gateway A is received;
s603, if yes, judging whether the input port of the broadcast frame is the port B1 of the central gateway B, and if not, executing the step S606;
s604, if yes, determining whether a port number of an output port (e.g., port B2, B3, or B4) of the broadcast frame is greater than a port number of port B1 of the central gateway B, if no, performing step S606;
s605. if yes, blocking the broadcast frame forwarded to the output port (B2-B4) of the central gateway B through the port B1 of the central gateway B;
s606. forward the broadcast frame to other physical ports of the central gateway B, e.g. port B2, B3 or B4.
In this embodiment of the present invention, in step S604, it may also be determined whether to forward the broadcast frame to the output ports (B2 to B4) of the central gateway B through the port B1 of the central gateway B by determining whether the port number of the output port (for example, the port B2, the port B3, or the port B4) of the broadcast frame is smaller than the port number of the port B1 of the central gateway B.
And S105, blocking the broadcast frame forwarded to the output port of the first central gateway through the first physical port of the first central gateway based on a second preset forwarding strategy.
For the central gateway a and the central gateway B, the forwarding direction of the broadcast frame may also be from the central gateway B to the central gateway a, for example, the broadcast frame may be input from ports B2, B3, and B4 of the central gateway B, and forwarded to port a1 of the central gateway a through port B1 of the central gateway B, as shown in fig. 7. Specifically, as shown in fig. 8, the broadcast frame forwarding process may include the following steps:
s801, initializing a central gateway A;
s802, the central gateway A detects whether a broadcast frame sent by a port B1 of the central gateway B is received;
s803, if yes, determining whether the input port of the broadcast frame is port a1 of the central gateway a, if no, executing step S806;
s804, if yes, determining whether a port number of an output port (for example, port a2, A3, or a4) of the broadcast frame is greater than a port number of port a1 of the central gateway a, if no, performing step S806;
s805. if yes, blocking the broadcast frame forwarded to the output port (a2 to a4) of the central gateway a through the port a1 of the central gateway a;
s806. forward the broadcast frame to other physical ports of the central gateway a, e.g. port a2, A3 or a 4.
In this embodiment of the present invention, in step S804, it may also be determined whether to forward the broadcast frame to the output port (a2 to a4) of the central gateway a through the port a1 of the central gateway a by determining whether the port number of the output port (e.g., the port a2, A3, or a4) of the broadcast frame is smaller than the port number of the port a1 of the central gateway a.
In the embodiment of the invention, when the central gateway A and the central gateway B both select the minimum port number for connection, and the first preset forwarding strategy and the second preset forwarding strategy are both the port number of the output port of the broadcast frame is larger than the port number of the input port, the broadcast frame is not retransmitted. Because the input port number is the minimum port number and other port numbers are all larger than the input port number, the broadcast frame forwarded from one central gateway cannot continue to be broadcast after arriving at another central gateway, which is equivalent to that two central gateways establish a gate. Therefore, no matter from which direction the broadcast frame comes, the broadcast frame can not continue to circulate when passing through the two virtual gates of the central gateway, so that the broadcast frame can be broadcast only once on the ring network structure, and the network bandwidth cannot be occupied all the time. Conversely, when the central gateway A and the central gateway select the maximum physical port number for connection, the forwarding of the input broadcast frame of the maximum port is limited, and when the port number of the input port is smaller than that of the output port, the broadcast frame is abandoned and is not forwarded, so that the broadcast frame can be restrained as well.
For the central gateway a or the central gateway B, the central gateway a or the central gateway B itself needs to transmit the broadcast frame to the outside. When the central gateway A or the central gateway B sends out broadcasting, the broadcasting frame is directly sent to all ports. The broadcast frame sent by the central gateway A is blocked by the central gateway B, and on the contrary, the broadcast frame sent by the central gateway B is blocked by the central gateway A.
By adopting the technical scheme, when one node on the ring network structure sends the broadcast frame, the data stream is only broadcasted once on the ring network structure. For example, as shown in fig. 9, when the ECU5 transmits a broadcast frame, data transmission on a ring network structure through two ports D1 and D4 may be intercepted at the connection of the central gateway a and the central gateway B.
The method for inhibiting the vehicle-mounted network broadcast storm provided by the embodiment of the invention has the following advantages:
1. the invention sets the forwarding strategy based on the setting of the physical ports of the two central gateways, needs no STP spanning tree, has low requirement on Switch chips and correspondingly lower system cost;
2. the method is realized based on the forwarding strategy of the broadcast frames of the physical ports of the two central gateways, the initialization of the Switch chip can be completed without generating a tree, and the initialization time is reduced;
3. the method is realized based on two central gateways, and when the positions of the two central gateways are unchanged, area/domain gateways are increased or decreased in the vehicle-mounted network, or some ports in the vehicle-mounted network are adjusted, so that virtual gates established by the two central gateways are not influenced;
4. the invention does not need spanning tree, so the configuration of the network is very flexible and the dynamic response is fast.
It is to be understood that the above-described embodiments of the present invention are merely illustrative of or explaining the principles of the invention and are not to be construed as limiting the invention. Therefore, any modifications, equivalents, improvements and the like which are made without departing from the spirit and scope of the present invention shall be included in the protection scope of the present invention.

Claims (9)

1. A method of suppressing an in-vehicle network broadcast storm, the method comprising:
connecting a first physical port of a first central gateway with a first physical port of a second central gateway in a vehicle-mounted network;
connecting a second physical port of a first central gateway and a second physical port of a second central gateway in the vehicle-mounted network with the regional/regional gateway to form an annular network structure;
connecting other physical ports of the first central gateway, other physical ports of the second central gateway and other physical ports of the area/domain gateway to an electronic controller in a vehicle network;
blocking a broadcast frame forwarded to an output port of the second central gateway through a first physical port of the second central gateway based on a first preset forwarding policy;
the second central gateway detects whether a broadcast frame sent by a first physical port of the first central gateway is received;
when the second central gateway receives a broadcast frame sent by a first physical port of the first central gateway, judging whether an input port of the broadcast frame is the first physical port of the second central gateway or not;
if the input port of the broadcast frame is the first physical port of the second central gateway, judging whether the port number of the output port of the broadcast frame is larger than the port number of the first physical port of the second central gateway;
if the port number of the output port of the broadcast frame is larger than the port number of the first physical port of the second central gateway, blocking the broadcast frame forwarded to the output port of the second central gateway through the first physical port of the second central gateway;
and blocking the broadcast frame forwarded to the output port of the first central gateway through the first physical port of the first central gateway based on a second preset forwarding strategy.
2. The method for suppressing on-board network broadcast storms as recited in claim 1, wherein blocking broadcast frames forwarded to the output port of the second central gateway through the first physical port of the second central gateway based on a first preset forwarding policy comprises:
the second central gateway detects whether a broadcast frame sent by a first physical port of the first central gateway is received;
when the second central gateway receives a broadcast frame sent by a first physical port of the first central gateway, judging whether an input port of the broadcast frame is the first physical port of the second central gateway or not;
if the input port of the broadcast frame is the first physical port of the second central gateway, judging whether the port number of the output port of the broadcast frame is smaller than the port number of the first physical port of the second central gateway;
and if the port number of the output port of the broadcast frame is smaller than the port number of the first physical port of the second central gateway, blocking the broadcast frame forwarded to the output port of the second central gateway through the first physical port of the second central gateway.
3. The method for suppressing in-vehicle network broadcast storm according to claim 1 or 2, wherein the method further comprises:
and if the input port of the broadcast frame is not the first physical port of the second central gateway, forwarding the broadcast frame to other physical ports of the second central gateway.
4. The method of suppressing in-vehicle network broadcast storms as recited in claim 3, further comprising:
if the port number of the output port of the broadcast frame is not greater than the port number of the first physical port of the second central gateway, forwarding the broadcast frame to other physical ports of the second central gateway, or,
and if the port number of the output port of the broadcast frame is not less than the port number of the first physical port of the second central gateway, forwarding the broadcast frame to other physical ports of the second central gateway.
5. The method for suppressing on-board network broadcast storms as recited in claim 1, wherein blocking broadcast frames forwarded to the output port of the first central gateway through the first physical port of the first central gateway based on a second preset forwarding policy comprises:
the first central gateway detects whether a broadcast frame sent by a first physical port of the second central gateway is received;
when the first central gateway receives a broadcast frame sent by a first physical port of the second central gateway, judging whether an input port of the broadcast frame is the first physical port of the first central gateway or not;
if the input port of the broadcast frame is the first physical port of the first central gateway, judging whether the port number of the output port of the broadcast frame is greater than the port number of the first physical port of the first central gateway;
and if the port number of the output port of the broadcast frame is greater than the port number of the first physical port of the first central gateway, blocking the broadcast frame forwarded to the output port of the first central gateway through the first physical port of the first central gateway.
6. The method for suppressing on-board network broadcast storms as recited in claim 1, wherein blocking broadcast frames forwarded to the output port of the first central gateway through the first physical port of the first central gateway based on a second preset forwarding policy comprises:
the first central gateway detects whether a broadcast frame sent by a first physical port of the second central gateway is received;
when the first central gateway receives a broadcast frame sent by a first physical port of the second central gateway, judging whether an input port of the broadcast frame is the first physical port of the first central gateway or not;
if the input port of the broadcast frame is the first physical port of the first central gateway, judging whether the port number of the output port of the broadcast frame is smaller than the port number of the first physical port of the first central gateway;
and if the port number of the output port of the broadcast frame is smaller than the port number of the first physical port of the first central gateway, blocking the broadcast frame forwarded to the output port of the first central gateway through the first physical port of the first central gateway.
7. The method of suppressing in-vehicle network broadcast storms as recited in claim 5 or 6, further comprising:
and if the input port of the broadcast frame is not the first physical port of the first central gateway, forwarding the broadcast frame to other physical ports of the first central gateway.
8. The method of suppressing in-vehicle network broadcast storms as recited in claim 7, further comprising:
if the port number of the output port of the broadcast frame is not larger than the port number of the first physical port of the first central gateway, forwarding the broadcast frame to other physical ports of the first central gateway, or,
and if the port number of the output port of the broadcast frame is not smaller than the port number of the first physical port of the first central gateway, forwarding the broadcast frame to other physical ports of the first central gateway.
9. The method for suppressing the in-vehicle network broadcast storm according to claim 1, wherein the port number of the first physical port of the first central gateway is the same as the port number of the first physical port of the second central gateway.
CN202010092784.0A 2020-02-14 2020-02-14 Method for restraining vehicle-mounted network broadcast storm Active CN113271254B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010092784.0A CN113271254B (en) 2020-02-14 2020-02-14 Method for restraining vehicle-mounted network broadcast storm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010092784.0A CN113271254B (en) 2020-02-14 2020-02-14 Method for restraining vehicle-mounted network broadcast storm

Publications (2)

Publication Number Publication Date
CN113271254A CN113271254A (en) 2021-08-17
CN113271254B true CN113271254B (en) 2022-09-27

Family

ID=77227233

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010092784.0A Active CN113271254B (en) 2020-02-14 2020-02-14 Method for restraining vehicle-mounted network broadcast storm

Country Status (1)

Country Link
CN (1) CN113271254B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988476A (en) * 2006-12-19 2007-06-27 武汉烽火网络有限责任公司 Method and device for self adaptive quick loop detection and loop blocking
JP5106706B1 (en) * 2012-01-10 2012-12-26 三菱電機株式会社 Network system
CN103595626A (en) * 2013-10-15 2014-02-19 苏州拓康自动化技术有限公司 Method for achieving dynamic path planning in ring network

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7355965B2 (en) * 2003-05-06 2008-04-08 Overture Networks, Inc. Apparatus and method for rapid detection of unidirectional breaks in a network ring
US8050183B2 (en) * 2005-05-06 2011-11-01 Cisco Technology, Inc. System and method for implementing reflector ports within hierarchical networks
TWI379547B (en) * 2008-10-15 2012-12-11 Redundancy method of ring network
JP2017195483A (en) * 2016-04-19 2017-10-26 富士通株式会社 Transmission device, signal transfer method, and network redundant configuration method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988476A (en) * 2006-12-19 2007-06-27 武汉烽火网络有限责任公司 Method and device for self adaptive quick loop detection and loop blocking
JP5106706B1 (en) * 2012-01-10 2012-12-26 三菱電機株式会社 Network system
CN104040958A (en) * 2012-01-10 2014-09-10 三菱电机株式会社 Network system
CN103595626A (en) * 2013-10-15 2014-02-19 苏州拓康自动化技术有限公司 Method for achieving dynamic path planning in ring network

Also Published As

Publication number Publication date
CN113271254A (en) 2021-08-17

Similar Documents

Publication Publication Date Title
US9917725B2 (en) Automotive neural network
US8644134B2 (en) Dual-homing for ethernet line services
KR101741651B1 (en) Method for operating a network arrangement, and network arrangement
US7778205B2 (en) System and method for implementing virtual ports within ring networks
EP2304904B1 (en) Method and system for link aggregation
US20050038583A1 (en) Automotive switch fabric with improved resource reservation
EP1886214B1 (en) Method, apparatus and vehicle network
US20090274153A1 (en) System and method for implementation of layer 2 redundancy protocols across multiple networks
EP1768319A1 (en) Method of inter-RPR-ring bridge redundancy
US9559984B2 (en) Communication system and network relay device
US20080019265A1 (en) Systems and methods for configuring a network to include redundant upstream connections using an upstream control protocol
CN112311642B (en) Automobile Ethernet redundancy scheduling method based on ring networking
CN111891181B (en) Train network control system based on Ethernet
US8830994B2 (en) Network system
JP4705492B2 (en) Ring node device and ring node redundancy method
CN115022118A (en) Vehicle-mounted Ethernet ring network architecture and control method thereof
CN113271254B (en) Method for restraining vehicle-mounted network broadcast storm
CN112995949A (en) Network control method and network control device applied to train
US20240048407A1 (en) Network Establishing Method, Ethernet System, and Vehicle
CN113625622A (en) Data redundancy transmission system based on zone controller
EP2875674A1 (en) Intra-train network management system
CN102857423A (en) Service flow transferring method and node in distributed link polymerization system
US9537711B2 (en) Method for providing protected connection between L2 communication networks
US20120087277A1 (en) Network protection method and network protection architecture
CN116248583A (en) Communication redundancy configuration method and device of vehicle-mounted controller, vehicle and storage medium

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
GR01 Patent grant
GR01 Patent grant