CN102882707B - The method and apparatus that a kind of Ethernet link storm detects and suppresses - Google Patents
The method and apparatus that a kind of Ethernet link storm detects and suppresses Download PDFInfo
- Publication number
- CN102882707B CN102882707B CN201210324356.1A CN201210324356A CN102882707B CN 102882707 B CN102882707 B CN 102882707B CN 201210324356 A CN201210324356 A CN 201210324356A CN 102882707 B CN102882707 B CN 102882707B
- Authority
- CN
- China
- Prior art keywords
- forwarding
- port
- threshold value
- rate
- forwarding rate
- 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
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
This application provides the method and apparatus that a kind of Ethernet link storm detects and suppresses, to solve the demand that prior art does not meet external field environment, and 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.Described method comprises: the forwarding rate threshold value arranging each forwarding port according to maximum bandwidth forwarding port each in exchange chip; Detect the forwarding rate of each forwarding port; Judge whether described forwarding rate is more than or equal to the corresponding forwarding rate threshold value forwarding port; When being more than or equal to, close this forwarding port.Described method suppresses storm by the dynamic connection to Ethernet link, cut-out, make the configuration of Ethernet link more flexible, and, the port of the network address of Telnet base station and exchange chip is carried out static binding, guarantee can when broadcast storm telnet base station, to position problem, adjustment software merit rating extract the operations such as base station information.
Description
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 board in a base station; and; the transfer of data of board internal data link layer; thus guarantee between base station; and base station and personal computer (PersonalComputer, PC) hold the communication of network layer; such as, and then the various instruments realizing PC end can be safeguarded, manage and debug base station, carry out base station edition renewal, the operations such as cell parameter joined by cloth.
The key of Ethernet link is the ether exchange chip on each board, this chip connects each processor in base station, two layers of forwarding can be realized, by ether bag from source medium access control (MediumAccessControl, MAC) address is forwarded to target MAC (Media Access Control) address, and these ether exchange chips are just equivalent to the node of whole Ethernet link.
A node in Ethernet link, sends a Frame or bag, and each node be transferred in the local network segment that defined by broadcast domain is broadcasted exactly.Cannot process when broadcast data is full of network, and take a large amount of network bandwidth, cause regular traffic not run, even thoroughly paralyse, this generates " broadcast storm ".
In the design that base station is early stage, main starting with from Ethernet link topological structure prevents broadcast storm, base station Ethernet link has been got well with regard to static configuration when ether module initialization, and cut off redundant link, this scheme not only ensure that the unimpeded of Ethernet link but also prevents broadcast storm, reliable and not easily produce loop; But Ethernet link is complicated and changeable under external field environment, need in some cases to carry out dynamic-configuration to Ethernet link, early stage design can only disposable configuration link, can only provide upgraded version, do not meet the demand of external field environment to amendment Ethernet link topological structure.
If adopt the design of ether module being carried out to dynamic-configuration, must consider that Ethernet link storm detects and braking measure more flexibly.
Summary of the invention
Technical problems to be solved in this application are the method and apparatus proposing the detection of a kind of Ethernet link storm and suppress, to solve the demand that prior art does not meet external field environment, and 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 solve the problem, this application discloses a kind of method that Ethernet link storm detects and suppresses, comprising:
The forwarding rate threshold value of each forwarding port is set according to maximum bandwidth forwarding port each in exchange chip;
Detect the forwarding rate of each forwarding port;
Judge whether described forwarding rate is more than or equal to the corresponding forwarding rate threshold value forwarding port;
When being more than or equal to, close this forwarding port.
Preferably, also comprise:
When forwarding port shutdown, detect the forwarding rate of this forwarding port;
Judge whether described forwarding rate is less than this forwarding port repeat rate threshold value;
When being less than, open this forwarding port.
Preferably, the described forwarding rate threshold value arranging each forwarding port according to maximum bandwidth forwarding port each in exchange chip, comprising:
Arranging each forwarding rate threshold value forwarding port in exchange chip is 1/2nd of each forwarding port maximum bandwidth.
Preferably, described when being less than, open this forwarding port, comprising:
When the time that described forwarding rate is less than this forwarding port repeat rate threshold value is greater than the time preset, open this forwarding port.
Preferably, also comprise:
The port of the network address of Telnet base station and exchange chip is carried out static binding.
Disclosed herein as well is the device that a kind of Ethernet link storm detects and suppresses, comprising:
Forwarding rate threshold value arranges module, for arranging the forwarding rate threshold value of each forwarding port according to maximum bandwidth forwarding port each in exchange chip;
Forwarding rate detection module, for detecting the forwarding rate of each forwarding port;
Forwarding rate judge module, for judging whether described forwarding rate is more than or equal to the corresponding forwarding rate threshold value forwarding port;
Forward port operation module, during for being more than or equal to the forwarding rate threshold value of corresponding forwarding port when described forwarding rate, close this forwarding port.
Preferably, forwarding rate detection module, also for when forwarding port shutdown, detects the forwarding rate of this forwarding port;
Forwarding rate judge module, also for judging whether described forwarding rate is less than this forwarding port repeat rate threshold value;
Forward port operation module, time also for being less than this forwarding port repeat rate threshold value when described forwarding rate, open this forwarding port.
Preferably, described forwarding rate threshold value arranges each forwarding rate threshold value forwarding port in module installation exchange chip is 1/2nd of each forwarding port maximum bandwidth.
Preferably, when the time that described forwarding rate is less than this forwarding port repeat rate threshold value is greater than the time preset, described forwarding port operation module opens this forwarding port.
Preferably, also comprise:
Static binding module, for carrying out static binding by the port of the network address of Telnet base station and exchange chip.
Compared with prior art, the application comprises following advantage:
Present applicant proposes the method and apparatus that a kind of Ethernet link storm detects and suppresses, by arranging the forwarding rate threshold value of each port of exchange chip, when the forwarding rate of port is more than or equal to forwarding rate threshold value, closing this port, having cut off redundant link; By the dynamic connection to Ethernet link, cut off and suppress storm, make the configuration of Ethernet link more flexible, certain Ethernet link can be opened or closed according to the concrete condition of base station, better meet the demand of practical application.
Further, the port of the network address of Telnet base station and exchange chip is carried out static binding, guarantee can when broadcast storm telnet base station, to position problem, adjustment software merit rating extract the operations such as base station information.
Accompanying drawing explanation
Fig. 1 is the method flow diagram that described in the embodiment of the present application one, a kind of Ethernet link storm detects and suppresses;
Fig. 2 is the method flow diagram that described in the embodiment of the present application two, a kind of Ethernet link storm detects and suppresses;
Fig. 3 is the schematic diagram capturing inside of base station broadcast packet when there is Ethernet link storm in base station described in the embodiment of the present application two with wireshark;
There is Ethernet link storm in base station described in the embodiment of the present application two in Fig. 4, and when suppressing Ethernet link storm, captures the schematic diagram of inside of base station broadcast packet with wireshark;
Fig. 5 is the method flow diagram that described in the embodiment of the present application three, a kind of Ethernet link storm detects and suppresses;
Fig. 6 is the structure drawing of device that described in the embodiment of the present application four, a kind of Ethernet link storm detects and suppresses;
Fig. 7 is the structure drawing of device that described in the embodiment of the present application five, a kind of Ethernet link storm detects and suppresses.
Embodiment
For enabling above-mentioned purpose, the feature and advantage of the application more become apparent, below in conjunction with the drawings and specific embodiments, the application is described in further detail.
The main reason that Ethernet link storm produces is exactly there is loop in Ethernet link, if the processor of PC end or board sends broadcast packet in this case, this broadcast packet can forward with the exchanged chip of the speed be exceedingly fast in the loop.In theory, the speed of the shorter forwarding of length of broadcast packet is faster, and the burden caused processor is also larger.Thus the situation of packet obstruction can be formed, the control desk of base station also there will be and cannot connect the phenomenons such as board.
In order to adapt to the demand of external field environment, must accomplish that board slot can flexible configuration, this just may produce loop in Ethernet link.For this reason, present applicant proposes the method and apparatus that a kind of Ethernet link storm detects and suppresses, detected and suppress the generation of storm by exchange chip; When storm being detected, cut off the Ethernet link producing storm, open-loop, broadcast packet is made to circulate in Ethernet link, remove the address resolution logic list item (AddressResolutionLogic, ARL) that self study is arrived simultaneously, allow exchange chip relearn the MAC Address of clean culture, and the port static of telecommunication network processor and exchange chip being bound, guaranteeing to control exchange chip in Telnet base station when there is storm; The Ethernet link cut off before being communicated with again after storm disappears.The impact of broadcast storm on base station can be reduced by this mechanism, not hinder again the transmission of business datum simultaneously.
A kind of Ethernet link storm detection that the application proposes and the method and apparatus suppressed is introduced in detail below by enumerating several specific embodiment.
Embodiment one, introduces a kind of Ethernet link storm detection that the application proposes and the method suppressed in detail.
With reference to Fig. 1, show the method flow diagram that described in the embodiment of the present application one, a kind of Ethernet link storm detects and suppresses.
Step 11, arranges the forwarding rate threshold value of each forwarding port according to maximum bandwidth forwarding port each in exchange chip;
During broadcast storm in Ethernet link the forwarding rate of packet far away higher than transmission regular traffic data time speed, so can according to maximum bandwidth forwarding port each in exchange chip, forwarding rate threshold value is set to each forwarding port, guarantees that the forwarding rate of each forwarding port under regular traffic can not reach forwarding rate threshold value.
Such as, the maximum bandwidth forwarding port A is 1000Mbps, and the maximum bandwidth forwarding port B is 100Mbps, and can arrange the forwarding rate threshold value forwarding port A is 500Mbps, and arranging the forwarding rate threshold value forwarding port B is 50Mbps.
Step 12, detects the forwarding rate of each forwarding port;
In Ethernet link, the moment detects the forwarding rate of each forwarding port.
The forwarding rate of each forwarding port can be detected by third-party rate detection instrument or application program.
Such as, detect that the forwarding rate forwarding port A is 50Mbps; Detect that the forwarding rate forwarding port B is 50Mbps.
Step 13, judges whether described forwarding rate is more than or equal to the corresponding forwarding rate threshold value forwarding port;
After detection obtains the forwarding rate of each forwarding port in step 12, the forwarding rate threshold value of described forwarding rate with corresponding forwarding port is compared, judge whether described forwarding rate is more than or equal to the corresponding forwarding rate threshold value forwarding port.
The forwarding rate 50Mbps of the forwarding port A detected and the forwarding rate threshold value 500Mbps forwarding port A are compared, judges that the forwarding rate forwarding port A is not greater than or equal to, be namely less than the forwarding rate threshold value forwarding port A.
The forwarding rate 50Mbps of the forwarding port B detected and the forwarding rate threshold value 50Mbps forwarding port B are compared, the forwarding rate judging to forward port B equals the forwarding rate threshold value forwarding port B.
Step 14, when being more than or equal to, closes this forwarding port.
The forwarding rate of each forwarding port is once reach the corresponding forwarding rate threshold value forwarding port, namely the forwarding rate of each forwarding port is greater than or equal to the corresponding forwarding rate threshold value forwarding port, illustrate that in base station, abnormal conditions have appearred in Ethernet link, create broadcast storm.
In step 13, judge that the forwarding rate forwarding port A is less than the forwarding rate threshold value forwarding port A, illustrate in Ethernet link and do not produce broadcast storm, do not close and forward port A.
In step 13, the forwarding rate judging to forward port B equals the forwarding rate threshold value forwarding port B, illustrates in Ethernet link and produces broadcast storm, then close and forward port B, suppress the broadcast storm produced.
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 arranging the forwarding rate threshold value of each port of exchange chip, when the forwarding rate of port is more than or equal to forwarding rate threshold value, close this port, cut off redundant link; By suppressing storm to the dynamic cut-out of Ethernet link, making the configuration of Ethernet link more flexible, certain Ethernet link can be closed according to the concrete condition of base station, better meet the demand of practical application.
Embodiment two, introduces a kind of Ethernet link storm detection that the application proposes and the method suppressed in detail.
With reference to Fig. 2, show the method flow diagram that described in the embodiment of the present application two, a kind of Ethernet link storm detects and suppresses.
Step 21, arranges the forwarding rate threshold value of each forwarding port according to maximum bandwidth forwarding port each in exchange chip;
According to maximum bandwidth forwarding port each in exchange chip, forwarding rate threshold value is set to each forwarding port, guarantees that the forwarding rate of each forwarding port under regular traffic can not reach forwarding rate threshold value.
Arranging each forwarding rate threshold value forwarding port in exchange chip is 1/2nd of each forwarding port maximum bandwidth.
Because Ethernet link packet forwarding rate during broadcast storm is close to the maximum bandwidth forwarding port, respectively forward the forwarding peak speed of port in conjunction with base station when real work, the forwarding rate thresholding of each forwarding port is set to correspondingly forward 1/2nd of the maximum bandwidth of port.So both ensure that the transfer of data of regular traffic, in turn ensure that and broadcast storm can be detected in time.
Such as, the maximum bandwidth forwarding port A is 1000Mbps, and can arrange the forwarding rate threshold value forwarding port A is 500Mbps; The maximum bandwidth forwarding port B is 100Mbps, and can arrange the forwarding rate threshold value forwarding port B is 50Mbps.
Step 22, detects the forwarding rate of each forwarding port;
The forwarding rate of each forwarding port can be detected by third-party rate detection instrument or application program; If exchange chip can detect the forwarding rate of each forwarding port automatically, then directly can read out the forwarding rate of each forwarding port from exchange chip.
Such as, detect that forwarding port A is 200Mbps at the forwarding rate in T1 moment; Forwarding port B is 60Mbps at the forwarding rate in T2 moment.
Step 23, judges whether described forwarding rate is more than or equal to the corresponding forwarding rate threshold value forwarding port;
The forwarding rate of the forwarding port A detected in step 22 and the forwarding rate threshold value forwarding port A are compared, judges whether the forwarding rate forwarding port A is greater than or equal to the forwarding rate threshold value forwarding port A.
The forwarding rate of the forwarding port B detected in step 22 and the forwarding rate threshold value forwarding port B are compared, judges whether the forwarding rate forwarding port B is greater than or equal to the forwarding rate threshold value forwarding port B.
Forward port A and be less than the forwarding rate threshold value 500Mbps forwarding port A at the forwarding rate 200Mbps in T1 moment;
Forward port B and be greater than the forwarding rate threshold value 50Mbps forwarding port B at the forwarding rate 60Mbps in T2 moment.
Step 24, when being more than or equal to, closes this forwarding port;
Judge in step 23 that forwarding port B is greater than the forwarding rate threshold value 50Mbps forwarding port B at the forwarding rate 60Mbps in T2 moment.
When the forwarding rate forwarding port is greater than the forwarding rate threshold value forwarding port, broadcast storm will be produced, suppress broadcast storm if do not taken measures, in Ethernet link, ceaselessly with close to the speed forwarding data bag forwarding port maximum bandwidth, network blockage will be caused.
Fig. 3 is with wireshark(network package analysis software when there is Ethernet link storm in base station) capture the schematic diagram of inside of base station ether bag.
As shown in Figure 3, when there is broadcast storm in Ethernet link, exchange chip can forward broadcast data packet with the fastest forwarding rate, and the interval between two broadcast data packet approximately only has 10us; Owing to ceaselessly forwarding broadcast data packet with the fastest forwarding rate in Ethernet link, base station control station is caused to disconnect with the connection of board, PC end is owing to utilizing wireshark to grab a large amount of broadcast data packet simultaneously, there will be the situation that the speed of service is obviously slack-off.
When judging in step 23 that forwarding port B is greater than at the forwarding rate 60Mbps in T2 moment the forwarding rate threshold value 50Mbps forwarding port B, closing and forwarding port B.
There is Ethernet link storm in Fig. 4, and when suppressing Ethernet link storm, captures the schematic diagram of inside of base station ether bag with wireshark in base station.
As shown in Figure 4, when broadcast storm being detected and after suppressing broadcast storm, the broadcast data packet forwarded with the fastest forwarding rate in Ethernet link can be blocked and throw away by exchanged chip port, thus enables normal packet transmit in Ethernet link.When there is broadcast storm, only close the forwarding port producing broadcast storm place Ethernet link, other forwarding ports being in normal traffic state still carry out the forwarding of normal data packet.
Step 25, when forwarding port shutdown, detects the forwarding rate of this forwarding port;
When forwarding port B and closing because its forwarding rate is more than or equal to its forwarding rate threshold value, still detect the forwarding rate forwarding port B.
Such as, detect that the forwarding rate forwarding the T3 moment of port B after closedown is 30Mbps; Be 20Mbps at the forwarding rate in T4 moment.
Step 26, judges whether described forwarding rate is less than this forwarding port repeat rate threshold value;
The forwarding rate of the forwarding port B detected in step 25 and its forwarding rate threshold value are compared, judges whether the forwarding rate forwarding port B is less than its forwarding rate threshold value.
Forward port B and be less than its forwarding rate threshold value 50Mbps at the forwarding rate 30Mbps in T3 moment; Forward port B and be less than its forwarding rate threshold value 50Mbps at the forwarding rate 20Mbps in T4 moment.
Step 27, when being less than, opens this forwarding port.
When the forwarding rate forwarding port B is less than its forwarding rate threshold value, opens and forward port B.
Just in order to the forwarding port of closing before opening after broadcast storm is totally constrained as far as possible, time that described forwarding rate is less than this forwarding port repeat rate threshold value can be worked as when being greater than the time preset, open this forwarding port.
Such as, the time preset is 10s, also can preset other time according to actual conditions.When the forwarding rate of forwarding port B between T3 and the T4 moment is less than its forwarding rate threshold value all the time, and when the time period between T3 and the T4 moment is greater than 10s, opens and forward port B.
Meanwhile, in order to adapt under external field environment can Telnet base station, associative operation is carried out to the exchange chip in board, especially when there is broadcast storm, can orientation problem, adjustment software merit rating, extract base station information etc.The port of the network address of Telnet base station and exchange chip can be carried out static binding.When being remotely logged into base station, by the binding relationship of the network address and switching chip port, directly associative operation can be carried out to exchange chip.
Embodiment three, introduces a kind of Ethernet link storm detection that the application proposes and the method suppressed in detail.
With reference to Fig. 5, show the method flow diagram that described in the embodiment of the present application three, a kind of Ethernet link storm detects and suppresses.
Step 31, arranges the forwarding rate threshold value forwarding port;
Arranging the forwarding rate threshold value forwarding port A is 500Mbps.
Step 32, detects the forwarding rate forwarding port;
Detect that forwarding port A is 600Mbps at the forwarding rate in T6 moment; Be 300Mbps at the forwarding rate in T7 moment.
Step 33, judges whether forwarding rate exceedes forwarding rate threshold value;
Judge that forwarding port A exceedes its forwarding rate threshold value 500Mbps at the forwarding rate 600Mbps in T6 moment; Judge that forwarding port A does not exceed its forwarding rate threshold value 500Mbps at the forwarding rate 300Mbps in T7 moment.
And when forwarding rate does not exceed its forwarding rate threshold value, continue to detect its subsequent time forwarding rate.
Step 34, if forwarding rate exceedes its forwarding rate threshold value, closes this forwarding port;
Forward port A and exceed its forwarding rate threshold value 500Mbps at the forwarding rate 600Mbps in T6 moment, port A will be forwarded and close.
Step 35, speed to be forwarded is less than its forwarding rate threshold value, and keeps a period of time, reopens this forwarding port.
Moment detects the forwarding rate forwarding port A, if its forwarding rate does not exceed its forwarding rate threshold value in a period of time all the time, and the length of this time period is greater than the length of original setting, reopens and forwards port A.Then continue to detect the forwarding rate forwarding port A.
Embodiment four, introduces a kind of Ethernet link storm detection that the application proposes and the device suppressed in detail.
With reference to Fig. 6, show the structure drawing of device that described in the embodiment of the present application four, a kind of Ethernet link storm detects and suppresses.
Described device, comprising:
Forwarding rate threshold value arranges module 41, forwarding rate detection module 42, forwarding rate judge module 43, and, forward port operation module 44.
Introduce in detail respectively below each module function and between relation.
Forwarding rate threshold value arranges module 41, for arranging the forwarding rate threshold value of each forwarding port according to maximum bandwidth forwarding port each in exchange chip;
Described forwarding rate threshold value arranges module 41 according to maximum bandwidth forwarding port each in exchange chip, arranges forwarding rate threshold value, guarantee that the forwarding rate of each forwarding port under regular traffic can not reach forwarding rate threshold value to each forwarding port.
Such as, the maximum bandwidth forwarding port A is 1000Mbps, the maximum bandwidth forwarding port B is 100Mbps, and described forwarding rate threshold value arranges module 41, and can to arrange the forwarding rate threshold value forwarding port A be 500Mbps, and arranging the forwarding rate threshold value forwarding port B is 50Mbps.
Forwarding rate detection module 42, for detecting the forwarding rate of each forwarding port;
Described forwarding rate detection module 42 is in Ethernet link, and the moment detects the forwarding rate of each forwarding port.
Such as, described forwarding rate detection module 42 detects that the forwarding rate forwarding port A is 50Mbps; Described forwarding rate detection module 42 detects that the forwarding rate forwarding port B is 50Mbps.
Forwarding rate judge module 43, for judging whether described forwarding rate is more than or equal to the corresponding forwarding rate threshold value forwarding port;
Described forwarding rate judge module 43 judges 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 arranges module 41 and arrange its forwarding rate threshold value 500Mbps.
Described forwarding rate judge module 43 judges the forwarding rate 50Mbps of the forwarding port B that described forwarding rate detection module 42 detects, equals described forwarding rate threshold value and arranges module 41 and arrange its forwarding rate threshold value 50Mbps.
Forward port operation module 44, during for being more than or equal to the forwarding rate threshold value of corresponding forwarding port when described forwarding rate, close this forwarding port.
When described forwarding rate judge module 43 judges that forwarding port B forwarding rate 50Mbps at a time equals its forwarding rate threshold value 50Mbps, described forwarding port operation module 44 is closed and is forwarded port B.
When described forwarding rate judge module 43 judges that forwarding port B is greater than its forwarding rate threshold value 50Mbps at the forwarding rate 60Mbps in another moment, described forwarding port operation module 44 is closed and is forwarded port B.
In sum, the embodiment of the present application four proposes 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 proposes the device that a kind of Ethernet link storm detects and suppresses, by arranging the forwarding rate threshold value of each port of exchange chip, when the forwarding rate of port is more than or equal to forwarding rate threshold value, close this port, cut off redundant link; By suppressing storm to the dynamic cut-out of Ethernet link, making the configuration of Ethernet link more flexible, certain Ethernet link can be closed according to the concrete condition of base station, better meet the demand of practical application.
Embodiment five, introduces a kind of Ethernet link storm detection that the application proposes and the device suppressed in detail.
With reference to Fig. 7, show the structure drawing of device that described in the embodiment of the present application five, a kind of Ethernet link storm detects and suppresses.
Described device, comprising:
Forwarding rate threshold value arranges module 51, forwarding rate detection module 52, forwarding rate judge module 53, forwards port operation module 54, and, static binding module 55.
Introduce in detail respectively below each module function and between relation.
Forwarding rate threshold value arranges module 51, for arranging the forwarding rate threshold value of each forwarding port according to maximum bandwidth forwarding port each in exchange chip;
Described forwarding rate threshold value arranges module 51 according to maximum bandwidth forwarding port each in exchange chip, arranges forwarding rate threshold value, guarantee that the forwarding rate of each forwarding port under regular traffic can not reach forwarding rate threshold value to each forwarding port.
Described forwarding rate threshold value arranges module 51, and to arrange in exchange chip each forwarding rate threshold value forwarding port be 1/2nd of each forwarding port maximum bandwidth.
Such as, the maximum bandwidth forwarding port A is 1000Mbps, and described forwarding rate threshold value arranges module 51, and can to arrange the forwarding rate threshold value forwarding port A be 500Mbps; The maximum bandwidth forwarding port B is 100Mbps, and described forwarding rate threshold value arranges module 51, and can to arrange the forwarding rate threshold value forwarding port B be 50Mbps.
Forwarding rate detection module 52, for detecting the forwarding rate of each forwarding port;
Described forwarding rate detection module 52 detects that forwarding port A is 200Mbps at the forwarding rate in T1 moment; Described forwarding rate detection module 52 detects that forwarding port B is 60Mbps at the forwarding rate in T2 moment.
Described forwarding rate detection module 52, also for when forwarding port shutdown, detects the forwarding rate of this forwarding port.
If when forwarding port B closedown, described forwarding rate detection module 52 can also detect and forward the forwarding rate 30Mbps of port B in the T3 moment.
Forwarding rate judge module 53, for judging whether described forwarding rate is more than or equal to the corresponding forwarding rate threshold value forwarding port;
Described forwarding rate judge module 53 judges that described forwarding rate detection module 52 detects that forwarding port A is 200Mbps at the forwarding rate in T1 moment, is not more than the forwarding rate threshold value 500Mbps that described forwarding rate threshold value arranges the forwarding port A that module 51 is arranged.
Described forwarding rate judge module 53 judges that described forwarding rate detection module 52 detects that forwarding port B is 60Mbps at the forwarding rate in T2 moment, is greater than the forwarding rate threshold value 50Mbps that described forwarding rate threshold value arranges the forwarding port B that module 51 is arranged.
Described forwarding rate judge module 53, also for judging whether described forwarding rate is less than this forwarding port repeat rate threshold value.
Described forwarding rate judge module 53 judges that described forwarding rate detection module 52 detects that forwarding port A is 200Mbps at the forwarding rate in T1 moment, is less than the forwarding rate threshold value 500Mbps that described forwarding rate threshold value arranges the forwarding port A that module 51 is arranged.
Forward port operation module 54, during for being more than or equal to the forwarding rate threshold value of corresponding forwarding port when described forwarding rate, close this forwarding port;
When described forwarding rate judge module 53 judges that forwarding port B at the forwarding rate in T2 moment is 60Mbps, when being greater than the forwarding rate threshold value 50Mbps forwarding port B, described forwarding port operation module 54 is closed and is forwarded port B.
Described forwarding port operation module 54, time also for being less than this forwarding port repeat rate threshold value when described forwarding rate, opens this forwarding port.
If described forwarding rate detection module 52 detects that forwarding port B is 30Mbps at the forwarding rate in T3 moment.
When described forwarding rate judge module 53 judges that forwarding port B at the forwarding rate in T3 moment is 30Mbps, when being less than the forwarding rate threshold value 50Mbps forwarding port B, described forwarding port operation module 54 is opened and is forwarded port B.
When the time that described forwarding rate is less than this forwarding port repeat rate threshold value is greater than the time preset, described forwarding port operation module 54 opens this forwarding port.
If described forwarding rate detection module 52 detects that forwarding port B is 20Mbps at the forwarding rate in T4 moment.Described forwarding rate judge module 53 judges that forwarding the forwarding rate of port B between the T3 moment to T4 moment is less than the forwarding rate threshold value 50Mbps forwarding port B all the time; Such as, and the time period length 12s between T3 to the T4 moment is greater than the time preset, 10s.Then described forwarding port operation module 54 is opened and is forwarded port B.
Static binding module 55, for carrying out static binding by the port of the network address of Telnet base station and exchange chip.
The port of the network address of Telnet base station and exchange chip can be carried out static binding by described static binding module 55.When being remotely logged into base station, by the binding relationship of the network address and switching chip port, directly associative operation can be carried out to exchange chip.
For device embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part 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 the difference with other embodiments, between each embodiment identical similar part mutually see.
The method and apparatus that a kind of Ethernet link storm provided the application above detects and suppresses, be described in detail, apply specific case herein to set forth the principle of the application and execution mode, the explanation of above embodiment is just for helping method and the core concept thereof of understanding the application; Meanwhile, for one of ordinary skill in the art, according to the thought of the application, all will change in specific embodiments and applications, in sum, this description should not be construed as the restriction to the application.
Claims (8)
1. a method for the detection of Ethernet link storm and suppression, is characterized in that, comprising:
The forwarding rate threshold value of each forwarding port is set according to maximum bandwidth forwarding port each in exchange chip;
Detect the forwarding rate of each forwarding port;
Judge whether described forwarding rate is more than or equal to the corresponding forwarding rate threshold value forwarding port;
When being more than or equal to, close this forwarding port;
Wherein, the described forwarding rate threshold value arranging each forwarding port according to maximum bandwidth forwarding port each in exchange chip, comprising: arranging each forwarding rate threshold value forwarding port in exchange chip is 1/2nd of each forwarding port maximum bandwidth.
2. method according to claim 1, is characterized in that, also comprises:
When forwarding port shutdown, detect the forwarding rate of this forwarding port;
Judge whether described forwarding rate is less than this forwarding port repeat rate threshold value;
When being less than, open this forwarding port.
3. method according to claim 2, is characterized in that, described when being less than, and opens this forwarding port, comprising:
When the time that described forwarding rate is less than this forwarding port repeat rate threshold value is greater than the time preset, open this forwarding port.
4. method according to claim 1, is characterized in that, also comprises:
The port of the network address of Telnet base station and exchange chip is carried out static binding.
5. a device for the detection of Ethernet link storm and suppression, is characterized in that, comprising:
Forwarding rate threshold value arranges module, for arranging the forwarding rate threshold value of each forwarding port according to maximum bandwidth forwarding port each in exchange chip;
Forwarding rate detection module, for detecting the forwarding rate of each forwarding port;
Forwarding rate judge module, for judging whether described forwarding rate is more than or equal to the corresponding forwarding rate threshold value forwarding port;
Forward port operation module, during for being more than or equal to the forwarding rate threshold value of corresponding forwarding port when described forwarding rate, close this forwarding port;
Wherein, described forwarding rate threshold value arranges each forwarding rate threshold value forwarding port in module installation exchange chip is 1/2nd of each forwarding port maximum bandwidth.
6. device according to claim 5, is characterized in that:
Forwarding rate detection module, also for when forwarding port shutdown, detects the forwarding rate of this forwarding port;
Forwarding rate judge module, also for judging whether described forwarding rate is less than this forwarding port repeat rate threshold value;
Forward port operation module, time also for being less than this forwarding port repeat rate threshold value when described forwarding rate, open this forwarding port.
7. device according to claim 6, is characterized in that:
When the time that described forwarding rate is less than this forwarding port repeat rate threshold value is greater than the time preset, described forwarding port operation module opens this forwarding port.
8. device according to claim 5, is characterized in that, also comprises:
Static binding module, for carrying out static binding by the port of the network address of Telnet base station and exchange chip.
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 CN102882707A (en) | 2013-01-16 |
CN102882707B true 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) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105591968B (en) * | 2016-01-25 | 2019-05-03 | 盛科网络(苏州)有限公司 | A kind of implementation method that balanced ethernet network storm inhibits |
CN109347810B (en) * | 2018-09-27 | 2021-06-11 | 新华三技术有限公司 | Method and device for processing message |
CN110798382B (en) * | 2019-10-29 | 2022-02-22 | 迈普通信技术股份有限公司 | Port storm threshold control method and device, electronic equipment and storage medium |
CN111988184B (en) * | 2020-08-31 | 2023-02-10 | 湘潭大学 | Broadcast storm detection and processing method based on situation awareness |
Citations (2)
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 |
-
2012
- 2012-09-04 CN CN201210324356.1A patent/CN102882707B/en active Active
Patent Citations (2)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN102882707A (en) | 2013-01-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102882707B (en) | The method and apparatus that a kind of Ethernet link storm detects and suppresses | |
US20150222500A1 (en) | Network Device | |
CN101986626B (en) | Method and device for protecting equipment | |
CN101917648B (en) | Method for implementing service control in all-fiber protection system and device thereof | |
CN104009867A (en) | Optical fiber Ethernet intelligent branching unit switching method based on FPGA | |
WO2015149523A1 (en) | Method and apparatus for rapid sending and detection processing of oam packet, and storage medium | |
TW201534081A (en) | Network devices and loopback detection methods | |
CN103107924A (en) | Testing method for performance of network device with high-rate port by utilizing low-rate port | |
US10075859B2 (en) | Method for monitoring a wireless link of a Wi-Fi node of a customer premises equipment device, and customer premises equipment device utilizing the method | |
CN102457403A (en) | Method and device for detecting network connection faults | |
WO2016110151A1 (en) | Method and device for detecting link loopback of pon system | |
Marchese et al. | Simple protocol enhancements of rapid spanning tree protocol over ring topologies | |
US8503474B2 (en) | System and method for enhanced physical layer device interface capability for backward support of fast retrain | |
CN101997703A (en) | Method and device for managing Ethernet topology | |
CN101360050B (en) | Method and apparatus setting flow control mode | |
CN105227288B (en) | GMII data transmission method for uplink and device | |
CN103780444A (en) | Loop automatic detection device and method in EoC network | |
CN102970622B (en) | A kind of EPON network loop control method | |
CN206629086U (en) | SDN switch | |
CN102457427A (en) | Coaxial switchboard for 100M data and data switching method thereof | |
CN107018015B (en) | A kind of router cluster network element management method and cluster routers | |
CN102594631B (en) | A kind of method and system for avoiding Ethernet closed loop | |
CN101729419B (en) | Ethernet switching chip data forwarding method and broadband access equipment switching protecting method | |
CN105099820A (en) | Local area network switch monitoring device and method | |
CN101425970B (en) | Method, apparatus and system for implementing remote loop |
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 |