CN102882707A - Method and device for detecting and inhibiting Ethernet link storm - Google Patents

Method and device for detecting and inhibiting Ethernet link storm Download PDF

Info

Publication number
CN102882707A
CN102882707A CN2012103243561A CN201210324356A CN102882707A CN 102882707 A CN102882707 A CN 102882707A CN 2012103243561 A CN2012103243561 A CN 2012103243561A CN 201210324356 A CN201210324356 A CN 201210324356A CN 102882707 A CN102882707 A CN 102882707A
Authority
CN
China
Prior art keywords
port
forwarding
forwarding rate
threshold value
ethernet link
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.)
Granted
Application number
CN2012103243561A
Other languages
Chinese (zh)
Other versions
CN102882707B (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.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment 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 Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN201210324356.1A priority Critical patent/CN102882707B/en
Publication of CN102882707A publication Critical patent/CN102882707A/en
Application granted granted Critical
Publication of CN102882707B publication Critical patent/CN102882707B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method and device for detecting and inhibiting an Ethernet link storm in order to solve the problem that the prior art does not meet the demand of an external environment. The invention provides the method and device for detecting and inhibiting the Ethernet link storm in a design scheme of executing dynamic allocation on an Ethernet module. The method comprises the following steps of: setting a transfer rate threshold value of each transfer port according to the maximal bandwidth of each transfer port in an exchanging chip; detecting the transfer rate of each transfer port; and judging whether the transfer rate is equal to or more than the transfer rate threshold value of the corresponding transfer port, if so, turning off the transfer port. The storm is inhibited via dynamically switching on/off an Ethernet link in the method, so that the configuration of the Ethernet link is more flexible; in addition, the network address for remotely logging a base station is statically bonded with the port of the exchanging chip so that the base station can be remotely logged when the storm is broadcast, in this way, operations such as positioning problems, adjusting software configuration and extracting base station information are performed conveniently.

Description

The method and apparatus that a kind of Ethernet link storm detects and suppresses
Technical field
The application relates to communication technical field, particularly relates to the method and apparatus that a kind of Ethernet link storm detects and suppresses.
Background technology
Ethernet link is responsible for realizing between each integrated circuit board in the base station; and; the transfer of data of integrated circuit board internal data link layer; thereby guarantee between the base station; and, the communication of base station and personal computer (Personal Computer, PC) end network layer; and then the various tool of realizing the PC end can safeguard, manages and debug the base station, and base station edition upgrades such as carrying out, cloth is joined the operations such as cell parameter.
The key of Ethernet link is the ether exchange chip on each integrated circuit board, this chip connects each processor of base station, can realize two layers of forwarding, with the ether bag from source medium access control (Medium Access Control, MAC) address is forwarded to target MAC (Media Access Control) address, and these ether exchange chips just are equivalent to the node of whole Ethernet link.
A node on the Ethernet link sends a Frame or bag, is transferred to by each node on the local network segment of broadcast domain definition to broadcast exactly.Can't process when broadcast data is full of network, and take a large amount of network bandwidths, cause regular traffic not move, even thoroughly paralysis, this has just produced " broadcast storm ".
In the early stage design in base station, mainly start with from the Ethernet link topological structure and prevent broadcast storm, when the ether module initialization, got well the base station Ethernet link with regard to static configuration, and cut off redundant link, this scheme has not only guaranteed the unimpeded of Ethernet link but also has prevented broadcast storm, reliable and difficult generation loop; But Ethernet link is complicated and changeable under external field environment, need in some situation Ethernet link is carried out dynamic-configuration, early stage design can only disposable configuration link, can only provide upgraded version if will revise the Ethernet link topological structure, does not meet the demand of external field environment.
If adopt the design of the ether module being carried out dynamic-configuration, must consider that the Ethernet link storm detects and braking measure more flexibly.
Summary of the invention
The application's technical problem to be solved is to propose the method and apparatus that a kind of Ethernet link storm detects and suppresses, do not meet the demand of external field environment to solve prior art, and the ether module is being carried out in the design of dynamic-configuration, proposing the method and apparatus that a kind of Ethernet link storm detects and suppresses.
In order to address the above problem, the application discloses the method that a kind of Ethernet link storm detects and suppresses, and comprising:
Respectively transmit the forwarding rate threshold value of port according to the maximum bandwidth setting of respectively transmitting port in the exchange chip;
Detect the forwarding rate of respectively transmitting port;
Judge that whether described forwarding rate transmit the forwarding rate threshold value of port more than or equal to correspondence;
When more than or equal to the time, close this forwarding port.
Preferably, also comprise:
When transmitting port shutdown, detect the forwarding rate of this forwarding port;
Judge that whether described forwarding rate is less than this forwarding port repeat speed threshold value;
When less than the time, open this forwarding port.
Preferably, the described forwarding rate threshold value of respectively transmitting port according to the maximum bandwidth setting of respectively transmitting port in the exchange chip comprises:
The forwarding rate threshold value of respectively transmitting port in the exchange chip is set transmits 1/2nd of port maximum bandwidth for each.
Preferably, described when less than the time, open this forwarding port, comprising:
When described forwarding rate during greater than the predefined time, is opened this forwarding port less than this time of transmitting port repeat speed threshold value.
Preferably, also comprise:
Static binding is carried out in the network address of Telnet base station and the port of exchange chip.
Disclosed herein as well is the device that a kind of Ethernet link storm detects and suppresses, comprising:
The forwarding rate threshold value arranges module, respectively transmits the forwarding rate threshold value of port for the maximum bandwidth setting of respectively transmitting port according to exchange chip;
The forwarding rate detection module is transmitted the forwarding rate of port for detection of each;
The forwarding rate judge module is used for judging that whether described forwarding rate transmit the forwarding rate threshold value of port more than or equal to correspondence;
Transmit the port operation module, be used for when described forwarding rate is transmitted the forwarding rate threshold value of port more than or equal to correspondence, closing this forwarding port.
Preferably, the forwarding rate detection module also is used for detecting the forwarding rate of this forwarding port when transmitting port shutdown;
The forwarding rate judge module also is used for judging that whether described forwarding rate is less than this forwarding port repeat speed threshold value;
Transmit the port operation module, also be used for when described forwarding rate is transmitted port repeat speed threshold value less than this, opening this forwarding port.
Preferably, described forwarding rate threshold value arranges module and the forwarding rate threshold value of respectively transmitting port in the exchange chip is set is that each transmits 1/2nd of port maximum bandwidth.
Preferably, when described forwarding rate less than this time of transmitting port repeat speed threshold value during greater than the predefined time, described forwarding port operation module is opened this forwarding port.
Preferably, also comprise:
The static binding module is used for static binding is carried out in the network address of Telnet base station and the port of exchange chip.
Compared with prior art, the application comprises following advantage:
The application has proposed the method and apparatus that a kind of Ethernet link storm detects and suppresses, and by the forwarding rate threshold value of each port of exchange chip is set, when the forwarding rate of port during more than or equal to the forwarding rate threshold value, closes this port, has cut off redundant link; Suppress storm by dynamic connection, cut-out to Ethernet link, so that the configuration of Ethernet link is more flexible, can open or close according to the concrete condition of base station certain bar Ethernet link, better meet the demand of practical application.
And, static binding is carried out in the network address of Telnet base station and the port of exchange chip, guarantee can be when broadcast storm the telnet base station, in order to position problem, adjust the software configuration and extract the operation such as base station information.
Description of drawings
Fig. 1 is the method flow diagram that the embodiment of the present application one described a kind of Ethernet link storm detects and suppresses;
Fig. 2 is the method flow diagram that the embodiment of the present application two described a kind of Ethernet link storms detect and suppress;
Fig. 3 is the schematic diagram that grasps the inside of base station broadcast packet when the Ethernet link storm occurring in the embodiment of the present application two described base stations with wireshark;
Fig. 4 the Ethernet link storm occurs in the embodiment of the present application two described base stations, and when the Ethernet link storm suppressed, with the schematic diagram of wireshark crawl inside of base station broadcast packet;
Fig. 5 is the method flow diagram that the embodiment of the present application three described a kind of Ethernet link storms detect and suppress;
Fig. 6 is the structure drawing of device that the embodiment of the present application four described a kind of Ethernet link storms detect and suppress;
Fig. 7 is the structure drawing of device that the embodiment of the present application five described a kind of Ethernet link storms detect and suppress.
Embodiment
For above-mentioned purpose, the feature and advantage that make the application can become apparent more, below in conjunction with the drawings and specific embodiments the application is described in further detail.
The main reason that the Ethernet link storm produces is exactly to have loop in the Ethernet link, if the processor of PC end or integrated circuit board sends broadcast packet in this case, this broadcast packet can be transmitted with the exchanged chip of the speed that is exceedingly fast in loop.In theory, the speed of the shorter forwarding of length of broadcast packet is just faster, and the burden that processor is caused is also just larger.Thereby can form the situation that packet blocks, the phenomenons such as integrated circuit board also can appear connecting in the control desk of base station.
In order to adapt to the demand of external field environment, must accomplish the enough flexible configuration of integrated circuit board groove potential energy, this just may produce loop in Ethernet link.For this reason, the application has proposed the method and apparatus that a kind of Ethernet link storm detects and suppresses, and detects and suppress the generation of storm by exchange chip; When detecting storm, cut off the Ethernet link that produces storm, open-loop, make broadcast packet in Ethernet link, circulate, remove simultaneously the address resolution logic list item (Address Resolution Logic, ARL) that self study is arrived, allow exchange chip relearn the MAC Address of clean culture, and with the port static binding of telecommunication network processor and exchange chip, guarantee when storm occurring, can control exchange chip in the Telnet base station; The Ethernet link of cutting off before after storm disappears, being communicated with again.Can reduce broadcast storm to the impact of base station by this mechanism, not hinder again the transmission of business datum simultaneously.
Introduce in detail a kind of Ethernet link storm detection of the application's proposition and the method and apparatus that suppresses below by enumerating several specific embodiments.
Embodiment one, introduces in detail a kind of Ethernet link storm detection of the application's proposition and the method that suppresses.
With reference to Fig. 1, show the method flow diagram that the embodiment of the present application one described a kind of Ethernet link storm detects and suppresses.
Step 11 is respectively transmitted the forwarding rate threshold value of port according to the maximum bandwidth setting of respectively transmitting port in the exchange chip;
Speed when the forwarding rate of packet is higher than transmission regular traffic data far away in the Ethernet link during broadcast storm, so can be according to the maximum bandwidth of respectively transmitting port in the exchange chip, transmit port to each the forwarding rate threshold value is set, guarantee respectively to transmit the forwarding rate of port under regular traffic and can not reach the forwarding rate threshold value.
For example, the maximum bandwidth of transmitting port A is 1000Mbps, and the maximum bandwidth of transmitting port B is 100Mbps, and it is 500Mbps that the forwarding rate threshold value of transmitting port A can be set, and it is 50Mbps that the forwarding rate threshold value of transmitting port B is set.
Step 12 detects the forwarding rate of respectively transmitting port;
In Ethernet link, constantly detect the forwarding rate of respectively transmitting port.
Can detect the forwarding rate of respectively transmitting port by third-party rate detection instrument or application program.
For example, detecting the forwarding rate of transmitting port A is 50Mbps; Detecting the forwarding rate of transmitting port B is 50Mbps.
Step 13 judges that whether described forwarding rate transmit the forwarding rate threshold value of port more than or equal to correspondence;
When in step 12, detect respectively transmitted the forwarding rate of port after, described forwarding rate is compared with the forwarding rate threshold value of corresponding forwarding port, judge that described forwarding rate is whether more than or equal to the forwarding rate threshold value of correspondence forwarding port.
The forwarding rate 50Mbps of the forwarding port A that detects is compared with the forwarding rate threshold value 500Mbps that transmits port A, judge that the forwarding rate of transmitting port A is not greater than or equal to, namely less than the forwarding rate threshold value of transmitting port A.
The forwarding rate 50Mbps of the forwarding port B that detects is compared with the forwarding rate threshold value 50Mbps that transmits port B, judge that the forwarding rate of transmitting port B equals to transmit the forwarding rate threshold value of port B.
Step 14, when more than or equal to the time, close this forwarding port.
In a single day each forwarding rate of transmitting port reaches the corresponding forwarding rate threshold value of transmitting port, the forwarding rate of namely respectively transmitting port is greater than or equal to the corresponding forwarding rate threshold value of transmitting port, illustrate that abnormal conditions have appearred in Ethernet link in the base station, produced broadcast storm.
In step 13, judge that the forwarding rate of transmitting port A less than the forwarding rate threshold value of transmitting port A, illustrates not produce broadcast storm in the Ethernet link, do not close and transmit port A.
In step 13, judge that the forwarding rate of transmitting port B equals to transmit the forwarding rate threshold value of port B, illustrate to produce broadcast storm in the Ethernet link, then close and transmit port B, suppress the broadcast storm that produces.
In sum, the method that a kind of Ethernet link storm that the embodiment of the present application one proposes detects and suppresses compared with prior art, has the following advantages:
The method that a kind of Ethernet link storm that the embodiment of the present application one proposes detects and suppresses, by the forwarding rate threshold value of each port of exchange chip is set, when the forwarding rate of port during more than or equal to the forwarding rate threshold value, close this port, cut off redundant link; Suppress storm by the dynamic cut-out to Ethernet link, so that the configuration of Ethernet link is more flexible, can close certain bar Ethernet link according to the concrete condition of base station, better meet the demand of practical application.
Embodiment two, introduce in detail a kind of Ethernet link storm detection of the application's proposition and the method that suppresses.
With reference to Fig. 2, show the method flow diagram that the embodiment of the present application two described a kind of Ethernet link storms detect and suppress.
Step 21 is respectively transmitted the forwarding rate threshold value of port according to the maximum bandwidth setting of respectively transmitting port in the exchange chip;
According to the maximum bandwidth of respectively transmitting port in the exchange chip, transmit port to each the forwarding rate threshold value is set, guarantee respectively to transmit the forwarding rate of port under regular traffic and can not reach the forwarding rate threshold value.
The forwarding rate threshold value of respectively transmitting port in the exchange chip is set transmits 1/2nd of port maximum bandwidth for each.
Because the Ethernet link package forward speed during broadcast storm approaches the maximum bandwidth of transmitting port, respectively transmit the forwarding peak speed of port when the real work in conjunction with the base station, each forwarding rate thresholding of transmitting port is set to 1/2nd of the corresponding maximum bandwidth of transmitting port.So both guaranteed the transfer of data of regular traffic, and guaranteed again in time to detect broadcast storm.
For example, the maximum bandwidth of transmitting port A is 1000Mbps, and it is 500Mbps that the forwarding rate threshold value of transmitting port A can be set; The maximum bandwidth of transmitting port B is 100Mbps, and it is 50Mbps that the forwarding rate threshold value of transmitting port B can be set.
Step 22 detects the forwarding rate of respectively transmitting port;
Can detect the forwarding rate of respectively transmitting port by third-party rate detection instrument or application program; If exchange chip can detect the forwarding rate of respectively transmitting port automatically, then can directly from exchange chip, read out the forwarding rate of respectively transmitting port.
For example, detecting forwarding port A is 200Mbps at T1 forwarding rate constantly; Transmitting port B is 60Mbps at T2 forwarding rate constantly.
Step 23 judges that whether described forwarding rate transmit the forwarding rate threshold value of port more than or equal to correspondence;
The forwarding rate of detected forwarding port A in the step 22 is compared with the forwarding rate threshold value of transmitting port A, judge whether the forwarding rate of transmitting port A is greater than or equal to the forwarding rate threshold value of transmitting port A.
The forwarding rate of detected forwarding port B in the step 22 is compared with the forwarding rate threshold value of transmitting port B, judge whether the forwarding rate of transmitting port B is greater than or equal to the forwarding rate threshold value of transmitting port B.
Transmit port A at the forwarding rate threshold value 500Mbps of T1 forwarding rate 200Mbps constantly less than forwarding port A;
Transmit port B at the forwarding rate threshold value 50Mbps of T2 forwarding rate 60Mbps constantly greater than forwarding port B.
Step 24, when more than or equal to the time, close this forwarding port;
Judge in the step 23 and transmit port B at the forwarding rate threshold value 50Mbps of T2 forwarding rate 60Mbps constantly greater than forwarding port B.
When the forwarding rate of transmitting port when transmitting the forwarding rate threshold value of port, will produce broadcast storm, if do not take measures to suppress broadcast storm, will ceaselessly to approach the speed forwarding data bag of transmitting the port maximum bandwidth, cause network blockage in the Ethernet link.
Fig. 3 is with wireshark(network package analysis software when occurring the Ethernet link storm in the base station) schematic diagram of crawl inside of base station ether bag.
By shown in Figure 3, when having broadcast storm in the Ethernet link, exchange chip can be transmitted broadcast data packet with the fastest forwarding rate, and the interval between two broadcast data packet approximately only has 10us; Owing to ceaselessly transmitting broadcast data packet with the fastest forwarding rate in the Ethernet link, cause base station control station to disconnect with the connection of integrated circuit board, the PC end obviously slack-off situation of the speed of service can occur owing to utilizing wireshark to grab a large amount of broadcast data packet simultaneously.
When judge to transmit in the step 23 port B at T2 forwarding rate 60Mbps constantly when transmitting the forwarding rate threshold value 50Mbps of port B, close and transmit port B.
The Ethernet link storm appears in Fig. 4 in the base station, and when the Ethernet link storm suppressed, with the schematic diagram of wireshark crawl inside of base station ether bag.
By shown in Figure 4, after detecting broadcast storm and broadcast storm suppressed, the broadcast data packet of transmitting with the fastest forwarding rate in Ethernet link can exchanged chip port be blocked also and is thrown away, thereby normal packet can be transmitted in Ethernet link.When broadcast storm occurring, only close the forwarding port that produces broadcast storm place Ethernet link, other forwarding ports that are in the regular traffic state still carry out the forwarding of normal data packet.
Step 25 when transmitting port shutdown, detects the forwarding rate of this forwarding port;
When forwarding port B closes more than or equal to its forwarding rate threshold value owing to its forwarding rate, still detect the forwarding rate of transmitting port B.
For example, detecting the forwarding rate of transmitting the T3 moment of port B after closing is 30Mbps; Forwarding rate in the T4 moment is 20Mbps.
Step 26 judges that whether described forwarding rate is less than this forwarding port repeat speed threshold value;
Forwarding rate and its forwarding rate threshold value of the forwarding port B that detects in the step 25 are compared, judge that whether the forwarding rate of transmitting port B is less than its forwarding rate threshold value.
Transmit port B at T3 forwarding rate 30Mbps constantly less than its forwarding rate threshold value 50Mbps; Transmit port B at T4 forwarding rate 20Mbps constantly less than its forwarding rate threshold value 50Mbps.
Step 27, when less than the time, open this forwarding port.
When the forwarding rate of transmitting port B during less than its forwarding rate threshold value, open and transmit port B.
Just for as far as possible in broadcast storm by the forwarding port of closing before opening after suppressing fully, can work as described forwarding rate and during greater than the predefined time, open this forwarding port less than time of this forwarding port repeat speed threshold value.
For example, the predefined time is 10s, also can preset according to actual conditions other time.When transmit port B at T3 and the T4 forwarding rate between constantly all the time less than its forwarding rate threshold value, and T3 and T4 time period between constantly during greater than 10s, open and transmit port B.
Simultaneously, can the Telnet base station in order to adapt under the external field environment, the exchange chip in the integrated circuit board is carried out associative operation, especially when broadcast storm occurring, can orientation problem, adjust the software configuration, extract base station information etc.Static binding can be carried out in the network address of Telnet base station and the port of exchange chip.When being remotely logged into the base station, by the binding relationship of the network address and switching chip port, can directly carry out associative operation to exchange chip.
Embodiment three, introduce in detail a kind of Ethernet link storm detection of the application's proposition and the method that suppresses.
With reference to Fig. 5, show the method flow diagram that the embodiment of the present application three described a kind of Ethernet link storms detect and suppress.
Step 31 arranges the forwarding rate threshold value of transmitting port;
It is 500Mbps that the forwarding rate threshold value of transmitting port A is set.
Step 32 detects the forwarding rate of transmitting port;
Detecting and transmitting port A is 600Mbps at T6 forwarding rate constantly; Forwarding rate in the T7 moment is 300Mbps.
Step 33 judges whether forwarding rate surpasses the forwarding rate threshold value;
Judge that transmitting port A surpasses its forwarding rate threshold value 500Mbps at T6 forwarding rate 600Mbps constantly; Judge that transmitting port A does not surpass its forwarding rate threshold value 500Mbps at T7 forwarding rate 300Mbps constantly.
And when forwarding rate does not surpass its forwarding rate threshold value, continue to detect its next moment forwarding rate.
Step 34 if forwarding rate surpasses its forwarding rate threshold value, is closed this forwarding port;
Transmit port A and surpass its forwarding rate threshold value 500Mbps at T6 forwarding rate 600Mbps constantly, will transmit port A and close.
Step 35 is treated forwarding rate less than its forwarding rate threshold value, and keeps a period of time, reopens this forwarding port.
Constantly detect the forwarding rate of transmitting port A, if its forwarding rate does not surpass its forwarding rate threshold value in a period of time all the time, and the length of this time period reopens and transmits port A greater than original length of setting.Then continue to detect the forwarding rate of transmitting port A.
Embodiment four, introduce in detail a kind of Ethernet link storm detection of the application's proposition and the device that suppresses.
With reference to Fig. 6, show the structure drawing of device that the embodiment of the present application four described a kind of Ethernet link storms detect and suppress.
Described device comprises:
The forwarding rate threshold value arranges module 41, forwarding rate detection module 42, and forwarding rate judge module 43, and, transmit port operation module 44.
The below introduce in detail respectively each module function and between relation.
The forwarding rate threshold value arranges module 41, respectively transmits the forwarding rate threshold value of port for the maximum bandwidth setting of respectively transmitting port according to exchange chip;
Described forwarding rate threshold value arranges module 41 according to the maximum bandwidth of respectively transmitting port in the exchange chip, transmits port to each the forwarding rate threshold value is set, and guarantees respectively to transmit the forwarding rate of port under regular traffic and can not reach the forwarding rate threshold value.
For example, the maximum bandwidth of transmitting port A is 1000Mbps, the maximum bandwidth of transmitting port B is 100Mbps, and described forwarding rate threshold value arranges module 41, and the forwarding rate threshold value of transmitting port A can be set is 500Mbps, and it is 50Mbps that the forwarding rate threshold value of transmitting port B is set.
Forwarding rate detection module 42 is transmitted the forwarding rate of port for detection of each;
Described forwarding rate detection module 42 detects the forwarding rate of respectively transmitting port constantly in Ethernet link.
For example, to detect the forwarding rate of transmitting port A be 50Mbps to described forwarding rate detection module 42; It is 50Mbps that described forwarding rate detection module 42 detects the forwarding rate of transmitting port B.
Forwarding rate judge module 43 is used for judging that whether described forwarding rate transmit the forwarding rate threshold value of port more than or equal to correspondence;
Described forwarding rate judge module 43 is judged the forwarding rate 50Mbps of the forwarding port A that described forwarding rate detection module 42 detects, is not greater than or equal to described forwarding rate threshold value and module 41 is set its forwarding rate threshold value 500Mbps is set.
Described forwarding rate judge module 43 is judged the forwarding rate 50Mbps of the forwarding port B that described forwarding rate detection module 42 detects, equals described forwarding rate threshold value and module 41 is set its forwarding rate threshold value 50Mbps is set.
Transmit port operation module 44, be used for when described forwarding rate is transmitted the forwarding rate threshold value of port more than or equal to correspondence, closing this forwarding port.
When described forwarding rate judge module 43 judged that transmitting port B forwarding rate 50Mbps at a time equals its forwarding rate threshold value 50Mbps, described forwarding port operation module 44 was closed and is transmitted port B.
Judge when described forwarding rate judge module 43 and to transmit port B at another forwarding rate 60Mbps constantly during greater than its forwarding rate threshold value 50Mbps, described forwarding port operation module 44 is closed and is transmitted port B.
In sum, the embodiment of the present application four has proposed the device that a kind of Ethernet link storm detects and suppresses, and compared with prior art, has the following advantages:
The embodiment of the present application four has proposed the device that a kind of Ethernet link storm detects and suppresses, by the forwarding rate threshold value of each port of exchange chip is set, when the forwarding rate of port during more than or equal to the forwarding rate threshold value, close this port, cut off redundant link; Suppress storm by the dynamic cut-out to Ethernet link, so that the configuration of Ethernet link is more flexible, can close certain bar Ethernet link according to the concrete condition of base station, better meet the demand of practical application.
Embodiment five, introduce in detail a kind of Ethernet link storm detection of the application's proposition and the device that suppresses.
With reference to Fig. 7, show the structure drawing of device that the embodiment of the present application five described a kind of Ethernet link storms detect and suppress.
Described device comprises:
The forwarding rate threshold value arranges module 51, forwarding rate detection module 52, and forwarding rate judge module 53 is transmitted port operation module 54, and, static binding module 55.
The below introduce in detail respectively each module function and between relation.
The forwarding rate threshold value arranges module 51, respectively transmits the forwarding rate threshold value of port for the maximum bandwidth setting of respectively transmitting port according to exchange chip;
Described forwarding rate threshold value arranges module 51 according to the maximum bandwidth of respectively transmitting port in the exchange chip, transmits port to each the forwarding rate threshold value is set, and guarantees respectively to transmit the forwarding rate of port under regular traffic and can not reach the forwarding rate threshold value.
Described forwarding rate threshold value arranges module 51 and the forwarding rate threshold value of respectively transmitting port in the exchange chip is set is that each transmits 1/2nd of port maximum bandwidth.
For example, the maximum bandwidth of transmitting port A is 1000Mbps, and described forwarding rate threshold value arranges module 51, and the forwarding rate threshold value of transmitting port A can be set is 500Mbps; The maximum bandwidth of transmitting port B is 100Mbps, and described forwarding rate threshold value arranges module 51, and the forwarding rate threshold value of transmitting port B can be set is 50Mbps.
Forwarding rate detection module 52 is transmitted the forwarding rate of port for detection of each;
Described forwarding rate detection module 52 detects and transmits port A is 200Mbps at T1 forwarding rate constantly; Described forwarding rate detection module 52 detects and transmits port B is 60Mbps at T2 forwarding rate constantly.
Described forwarding rate detection module 52 also is used for detecting the forwarding rate of this forwarding port when transmitting port shutdown.
When if forwarding port B closes, described forwarding rate detection module 52 can also detect transmits port B at T3 forwarding rate 30Mbps constantly.
Forwarding rate judge module 53 is used for judging that whether described forwarding rate transmit the forwarding rate threshold value of port more than or equal to correspondence;
Described forwarding rate judge module 53 judges that it is 200Mbps at T1 forwarding rate constantly that described forwarding rate detection module 52 detects forwarding port A, is not more than the forwarding rate threshold value 500Mbps that described forwarding rate threshold value arranges the forwarding port A of module 51 settings.
Described forwarding rate judge module 53 judges that it is 60Mbps at T2 forwarding rate constantly that described forwarding rate detection module 52 detects forwarding port B, arranges the forwarding rate threshold value 50Mbps of the forwarding port B of module 51 settings greater than described forwarding rate threshold value.
Described forwarding rate judge module 53 also is used for judging that whether described forwarding rate is less than this forwarding port repeat speed threshold value.
Described forwarding rate judge module 53 judges that it is 200Mbps at T1 forwarding rate constantly that described forwarding rate detection module 52 detects forwarding port A, arranges the forwarding rate threshold value 500Mbps of the forwarding port A of module 51 settings less than described forwarding rate threshold value.
Transmit port operation module 54, be used for when described forwarding rate is transmitted the forwarding rate threshold value of port more than or equal to correspondence, closing this forwarding port;
When described forwarding rate judge module 53 judges that transmitting port B is 60Mbps at T2 forwarding rate constantly, when transmitting the forwarding rate threshold value 50Mbps of port B, described forwarding port operation module 54 is closed and is transmitted port B.
Described forwarding port operation module 54 also is used for opening this forwarding port when described forwarding rate is transmitted port repeat speed threshold value less than this.
If described forwarding rate detection module 52 detects and transmits port B is 30Mbps at T3 forwarding rate constantly.
When described forwarding rate judge module 53 judges that transmitting port B is 30Mbps at T3 forwarding rate constantly, when transmitting the forwarding rate threshold value 50Mbps of port B, described forwarding port operation module 54 is opened and is transmitted port B.
When described forwarding rate less than this time of transmitting port repeat speed threshold value during greater than the predefined time, described forwarding port operation module 54 is opened this forwarding port.
If described forwarding rate detection module 52 detects and transmits port B is 20Mbps at T4 forwarding rate constantly.Described forwarding rate judge module 53 judge transmit port B T3 constantly to the forwarding rate of T4 between constantly all the time less than the forwarding rate threshold value 50Mbps that transmits port B; And T3 to the time period length 12s of T4 between constantly greater than predefined time, for example 10s.Then described forwarding port operation module 54 is opened and is transmitted port B.
Static binding module 55 is used for static binding is carried out in the network address of Telnet base station and the port of exchange chip.
Described static binding module 55 can be carried out static binding with the network address of Telnet base station and the port of exchange chip.When being remotely logged into the base station, by the binding relationship of the network address and switching chip port, can directly carry out associative operation to exchange chip.
For device embodiment because itself and embodiment of the method basic simlarity, so describe fairly simple, relevant part gets final product referring to the part explanation of embodiment of the method.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.
The method and apparatus that above a kind of Ethernet link storm that the application is provided detects and suppresses, be described in detail, used specific case herein the application's principle and execution mode are set forth, the explanation of above embodiment just is used for helping to understand the application's method and core concept thereof; Simultaneously, for one of ordinary skill in the art, the thought according to the application all will change in specific embodiments and applications, and in sum, this description should not be construed as the restriction to the application.

Claims (10)

1. the method that the Ethernet link storm detects and suppresses is characterized in that, comprising:
Respectively transmit the forwarding rate threshold value of port according to the maximum bandwidth setting of respectively transmitting port in the exchange chip;
Detect the forwarding rate of respectively transmitting port;
Judge that whether described forwarding rate transmit the forwarding rate threshold value of port more than or equal to correspondence;
When more than or equal to the time, close this forwarding port.
2. method according to claim 1 is characterized in that, also comprises:
When transmitting port shutdown, detect the forwarding rate of this forwarding port;
Judge that whether described forwarding rate is less than this forwarding port repeat speed threshold value;
When less than the time, open this forwarding port.
3. method according to claim 1 is characterized in that, the described forwarding rate threshold value of respectively transmitting port according to the maximum bandwidth setting of respectively transmitting port in the exchange chip comprises:
The forwarding rate threshold value of respectively transmitting port in the exchange chip is set transmits 1/2nd of port maximum bandwidth for each.
4. method according to claim 2 is characterized in that, described when less than the time, open this forwarding port, comprising:
When described forwarding rate during greater than the predefined time, is opened this forwarding port less than this time of transmitting port repeat speed threshold value.
5. method according to claim 1 is characterized in that, also comprises:
Static binding is carried out in the network address of Telnet base station and the port of exchange chip.
6. the device that the Ethernet link storm detects and suppresses is characterized in that, comprising:
The forwarding rate threshold value arranges module, respectively transmits the forwarding rate threshold value of port for the maximum bandwidth setting of respectively transmitting port according to exchange chip;
The forwarding rate detection module is transmitted the forwarding rate of port for detection of each;
The forwarding rate judge module is used for judging that whether described forwarding rate transmit the forwarding rate threshold value of port more than or equal to correspondence;
Transmit the port operation module, be used for when described forwarding rate is transmitted the forwarding rate threshold value of port more than or equal to correspondence, closing this forwarding port.
7. device according to claim 6 is characterized in that:
The forwarding rate detection module also is used for detecting the forwarding rate of this forwarding port when transmitting port shutdown;
The forwarding rate judge module also is used for judging that whether described forwarding rate is less than this forwarding port repeat speed threshold value;
Transmit the port operation module, also be used for when described forwarding rate is transmitted port repeat speed threshold value less than this, opening this forwarding port.
8. device according to claim 6 is characterized in that:
Described forwarding rate threshold value arranges module and the forwarding rate threshold value of respectively transmitting port in the exchange chip is set is that each transmits 1/2nd of port maximum bandwidth.
9. device according to claim 7 is characterized in that:
When described forwarding rate less than this time of transmitting port repeat speed threshold value during greater than the predefined time, described forwarding port operation module is opened this forwarding port.
10. device according to claim 6 is characterized in that, also comprises:
The static binding module is used for static binding is carried out in the network address of Telnet base station and the port of exchange chip.
CN201210324356.1A 2012-09-04 2012-09-04 The method and apparatus that a kind of Ethernet link storm detects and suppresses Active CN102882707B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210324356.1A CN102882707B (en) 2012-09-04 2012-09-04 The method and apparatus that a kind of Ethernet link storm detects and suppresses

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210324356.1A CN102882707B (en) 2012-09-04 2012-09-04 The method and apparatus that a kind of Ethernet link storm detects and suppresses

Publications (2)

Publication Number Publication Date
CN102882707A true CN102882707A (en) 2013-01-16
CN102882707B CN102882707B (en) 2015-12-02

Family

ID=47483861

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210324356.1A Active CN102882707B (en) 2012-09-04 2012-09-04 The method and apparatus that a kind of Ethernet link storm detects and suppresses

Country Status (1)

Country Link
CN (1) CN102882707B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105591968A (en) * 2016-01-25 2016-05-18 盛科网络(苏州)有限公司 Realization method of compensated Ethernet network storm inhibition
CN109347810A (en) * 2018-09-27 2019-02-15 新华三技术有限公司 A kind of method and apparatus handling message
CN110798382A (en) * 2019-10-29 2020-02-14 迈普通信技术股份有限公司 Port storm threshold control method and device
CN111988184A (en) * 2020-08-31 2020-11-24 湘潭大学 Broadcast storm detection and processing method based on situation awareness

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188607A (en) * 2006-11-17 2008-05-28 中兴通讯股份有限公司 Method for preventing DSLAM device from protocol packet attack based on network processor
CN101442490A (en) * 2008-12-30 2009-05-27 北京畅讯信通科技有限公司 Method for processing flux load equilibrium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188607A (en) * 2006-11-17 2008-05-28 中兴通讯股份有限公司 Method for preventing DSLAM device from protocol packet attack based on network processor
CN101442490A (en) * 2008-12-30 2009-05-27 北京畅讯信通科技有限公司 Method for processing flux load equilibrium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105591968A (en) * 2016-01-25 2016-05-18 盛科网络(苏州)有限公司 Realization method of compensated Ethernet network storm inhibition
CN105591968B (en) * 2016-01-25 2019-05-03 盛科网络(苏州)有限公司 A kind of implementation method that balanced ethernet network storm inhibits
CN109347810A (en) * 2018-09-27 2019-02-15 新华三技术有限公司 A kind of method and apparatus handling message
CN109347810B (en) * 2018-09-27 2021-06-11 新华三技术有限公司 Method and device for processing message
CN110798382A (en) * 2019-10-29 2020-02-14 迈普通信技术股份有限公司 Port storm threshold control method and device
CN110798382B (en) * 2019-10-29 2022-02-22 迈普通信技术股份有限公司 Port storm threshold control method and device, electronic equipment and storage medium
CN111988184A (en) * 2020-08-31 2020-11-24 湘潭大学 Broadcast storm detection and processing method based on situation awareness
CN111988184B (en) * 2020-08-31 2023-02-10 湘潭大学 Broadcast storm detection and processing method based on situation awareness

Also Published As

Publication number Publication date
CN102882707B (en) 2015-12-02

Similar Documents

Publication Publication Date Title
CN101127674B (en) Initialization method for transmission nodes of Ethernet loop network system
CN104980293B (en) A kind of OAM message is quickly sent and the method and device of detection processing
CN102882707A (en) Method and device for detecting and inhibiting Ethernet link storm
CN101127675A (en) Initialization method for main nodes of Ethernet loop network system
CN106549774A (en) A kind of link failure report method and forwarding unit based on software defined network
CN103595626A (en) Method for achieving dynamic path planning in ring network
CN101986626A (en) Method and device for protecting equipment
CN103200123A (en) Safety control method of switchboard port
CN105791126A (en) Ternary content addressable memory (TCAM) table search method and device
CN104158706A (en) Method and device of loopback detection
CN103095717B (en) Prevent method and the network equipment of mac address table flooding
CN104022972B (en) A kind of interchanger of Ethernet switch collocation method and application this method
CN104038445A (en) Train communication network switching device and system based on Ethernet
EP2533470B1 (en) Method and equipment for preventing repeated refreshing of ethernet ring node address table
CN103067956A (en) Internet Protocol Security (IPSec) tunnel backing up and switching method and equipment in 3rd generation telecommunication (3G) network
CN101360050B (en) Method and apparatus setting flow control mode
CN102158368A (en) Energy-saving processing method and device, local-side equipment and network system
CN103546321B (en) A kind of RPR administration of energy conservation method and device
CN102045600A (en) Link protection method and device of Ethernet accessed to SDH (Synchronous Digital Hierarchy) optical network
CN101616080B (en) Packet order preserving method of resilient packet ring, device and network equipment
CN101729419B (en) Ethernet switching chip data forwarding method and broadband access equipment switching protecting method
CN103780444A (en) Loop automatic detection device and method in EoC network
CN202750101U (en) Ethernet message processor
CN105099820A (en) Local area network switch monitoring device and method
CN1852211B (en) Method and apparatus for eliminating ring ID error report message on ring network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant