CN101820363B - Ethernet port loopback detection method and multi-service transport platform - Google Patents
Ethernet port loopback detection method and multi-service transport platform Download PDFInfo
- Publication number
- CN101820363B CN101820363B CN200910119963.2A CN200910119963A CN101820363B CN 101820363 B CN101820363 B CN 101820363B CN 200910119963 A CN200910119963 A CN 200910119963A CN 101820363 B CN101820363 B CN 101820363B
- Authority
- CN
- China
- Prior art keywords
- forwarding table
- port
- loopback
- frame
- addresses forwarding
- 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
- 238000001514 detection method Methods 0.000 abstract description 15
- DWSYCUKCNSVBRA-UHFFFAOYSA-N 4-(5-methylsulfonyltetrazol-1-yl)phenol Chemical compound CS(=O)(=O)C1=NN=NN1C1=CC=C(C=C1)O DWSYCUKCNSVBRA-UHFFFAOYSA-N 0.000 abstract description 13
- 101710167643 Serine/threonine protein phosphatase PstP Proteins 0.000 abstract description 13
- 238000000034 method Methods 0.000 abstract description 9
- 230000010355 oscillation Effects 0.000 abstract 1
- RTZKZFJDLAIYFH-UHFFFAOYSA-N Diethyl ether Chemical compound CCOCC RTZKZFJDLAIYFH-UHFFFAOYSA-N 0.000 description 18
- 238000010586 diagram Methods 0.000 description 4
- 230000007423 decrease Effects 0.000 description 3
- 230000003247 decreasing effect Effects 0.000 description 3
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Landscapes
- Small-Scale Networks (AREA)
Abstract
The invention discloses an Ethernet port loopback detection method and a multi-service transport platform. The multi-service transport platform comprises a receiving unit used for receiving a data frame which carries a source MAC address, a storage unit used for storing an address forwarding table, and a detection unit used for looking up the address forwarding table, and determining a port generates data frame loopback when detecting the source MAC address is in the address forwarding table and a receiving port is different from a corresponding port in the address forwarding table. The method and the multi-service transport platform have the advantages of effectively detecting the Ethernet port generating the loopback so as to avoid the oscillation of an MAC address caused by the loopback of the Ethernet port of MSTP equipment and ensuring service security and normalcy.
Description
Technical field
The invention belongs to optical transport network field, relate in particular to method and multi-service transport platform (Multi-service Transport Platform, MSTP) to ethernet port loopback detection.
Background technology
In MSTP device network, MSTP equipment ethernet port is receiving after data, in Frame, carry source MAC, target MAC (Media Access Control) address and payload etc., forward according to this target MAC (Media Access Control) address, and source MAC and the corresponding relation that forwards port are recorded in addresses forwarding table.In the time receiving afterwards data retransmission request, according to the target MAC (Media Access Control) address that will send, search data address and transmit, the data retransmission receiving is arrived to corresponding port, thereby realize the repeating process of data.
In use, in the time that the equipment being connected with MSTP exists defect, make to occur internal loopback phenomenon at same ethernet port, cause single port loopback.In current MSTP equipment, ethernet port is not carried out to loopback detection, therefore, in the time of a certain port generation loop-back phenomenon, the data that mail to this port will be sent to this port again through external loop.Thereby cause the vibration of data retransmission table address, data cannot correctly forward, and the business that affects even causes interruption.
Current client is more and more higher to internet security, stability, reliability requirement, and the Ethernet Loopback problem of MSTP equipment more and more needs urgent solution, especially in the network application of the important departments such as national defence, finance, government.
Summary of the invention
The present invention proposes a kind of method and multi-service transport platform to ethernet port loopback detection.Effectively the ethernet port of loopback is detected, thereby avoid the MAC Address vibration causing due to MSTP equipment ethernet port loopback, guaranteed that service security is normal.
According to an aspect of the present invention, propose a kind of method to ethernet port loopback detection, comprise the following steps: receiving data frames, carries source MAC in described Frame; Check addresses forwarding table, detect described source MAC whether in described addresses forwarding table; When described source MAC is in described addresses forwarding table, detect receiving port whether identical with corresponding ports in described addresses forwarding table; Detect that described receiving port is not identical with corresponding ports in described addresses forwarding table, judge that port produces Frame loopback.
According to an aspect of the present invention, also propose a kind of multi-service transport platform, comprising: receiving element, for receiving data frames, carries source MAC in described Frame; Storage unit, for preserving addresses forwarding table; Detecting unit, for checking described addresses forwarding table, is detecting that described source MAC is in described addresses forwarding table, and receiving port is when different from port corresponding in described addresses forwarding table, judges that port produces Frame loopback.
Compared with prior art, the present invention, by forwarding data being carried out to the detection of source MAC, can find whether ethernet port loop-back phenomenon occurs, and the Frame of the ethernet port that loopback occurs is abandoned, thereby avoids service disconnection.
Brief description of the drawings
Fig. 1 is the embodiment of the method flow chart of the present invention to ethernet port loopback detection.
Fig. 2 is the multi-service transport platform of the present invention to ethernet port loopback detection.
Fig. 3 is the embodiment of another multi-service transport platform in the present invention.
Fig. 4 is the embodiment of another multi-service transport platform in the present invention.
Fig. 5 is that in embodiment, each port traffic forwards schematic diagram.
Fig. 6 is that loopback schematic diagram occurs embodiment middle port 4.
Embodiment
Fig. 1 is the embodiment of the method flow chart of the present invention to ethernet port loopback detection.
In step 101, receiving data frames, carries source MAC in described Frame.
In step 102, check mac address forwarding table.
In store addresses forwarding table in the ether web plate of MSTP equipment, when ether web plate has just powered up, addresses forwarding table is empty (being that contents in table is empty).When after ether web plate receiving data frames (comprising the contents such as target MAC (Media Access Control) address, source MAC, payload in Frame), addresses forwarding table will be preserved the corresponding relation of MAC Address and port.
In step 103, judge that source address is whether in addresses forwarding table, if, execution step 104, otherwise execution step 105.
In step 104, judge that whether receiving port is identical with addresses forwarding table corresponding ports, if identical, execution step 108, otherwise continue execution step 106.
The present invention is saved in addresses forwarding table at source MAC, and receiving port is not when identical with addresses forwarding table corresponding ports, can judge that this port produces Frame loopback.But, in order to improve accuracy of detection, can also further carry out following operation, judge whether to receive Frame in setting timing time.Described operation will describe in detail below.
In step 105, source MAC is updated to addresses forwarding table with corresponding port numbers, and the timing time of resetting.
In step 106, judge whether to receive Frame in setting timing time, if, execution step 107, otherwise, after described setting timing time, receive Frame, now the port corresponding with source MAC changes, jumps to step 105, the renewal operation of execution step 105.
In the time that this list item of addresses forwarding table is checked or is updated, set timing time, in the time detecting that port numbers is different, judge in setting timing time whether receive Frame.The operation of setting timing time can realize in the following manner, such as setting timer, counter etc.Certainly, can be also that Loop Round Trip Time mark is set, in the time receiving Frame, check the state of time mark.
Be labeled as example to set Loop Round Trip Time below, the operation of setting timing time is described.Loop Round Trip Time mark is a counter, supposes that initial value is 1 second, automatically successively decreases by 10 milliseconds of step-lengths, equals 0 and stops successively decreasing.Arranging after Loop Round Trip Time mark, the list item of mac address forwarding table comprises: MAC (MAC Address), Port (port numbers), Loop Time Stamp (Loop Round Trip Time mark).
The object that Loop Round Trip Time mark is set is to avoid mistake alarm.Such as, as Fig. 5, when the source MAC of router is MAC
r, port numbers is port one, port 4 may receive because of loopback source MAC=MAC
rframe.When router moves while receiving port 4 from port one, also can receive such Frame.Therefore, it is 1 second that Loop Round Trip Time mark initial value is set, and within 1 second, receives that with interior such Frame will be judged as port loopback, exceedes 1 second, i.e. Loop Round Trip Time mark=0, receives that such Frame will not be judged as port loopback.
In step 107, judge receiving port generation loopback.The present invention can find port loopback in the very first time, is producing after Frame loopback, and Frame can not forwarded again, has avoided address vibration, has also avoided service disconnection.
In step 108, replacement timing time, finishes this testing process.
In step 109, produce after Frame loopback, can also further abandon described Frame and report loopback alarm.This step can ensure that other business that do not produce loopback port still can normally forward.In addition, when one or several business in port is during at other port generation loopback, also can ensure other not normal forwardings of loopback business in this port.
In addition, producing after Frame loopback, in the time the non-loopback Frame that receives continuously setting quantity being detected, for example continuous three frames, cancel report and alarm, and carry out the normal operation that forwards.
Fig. 2 is the multi-service transport platform of the present invention to ethernet port loopback detection.Comprise receiving element, storage unit and detecting unit.
Receiving element, for receiving data frames, carries source MAC in described Frame.
Storage unit is used for preserving addresses forwarding table.In store addresses forwarding table in the ether web plate of MSTP equipment, when ether web plate has just powered up, addresses forwarding table is empty (being that contents in table is empty).In the time that ether web plate receives Frame (comprising the contents such as target MAC (Media Access Control) address, source MAC, payload in Frame), addresses forwarding table will be preserved the corresponding relation of MAC Address and port.
Detecting unit is used for checking addresses forwarding table, is detecting that described source MAC is in described addresses forwarding table, and receiving port is when different from port corresponding in addresses forwarding table, judges that port produces Frame loopback.
The present invention can find port loopback in the very first time, is producing after Frame loopback, and Frame can not forwarded again, has avoided address vibration, has also avoided service disconnection.In order to improve accuracy of detection, in the present invention, the multi-service transport platform of ethernet port loopback detection be can further include to timing unit, as shown in Figure 3.
Timing unit is that each list item of addresses forwarding table is set timing time.Timing unit when this list item is checked or is updated in described addresses forwarding table, starts timing.Detecting unit receives Frame after the described timing time of arrival, now, the port corresponding with source MAC changes, notifies described storage unit that source MAC is updated in addresses forwarding table with corresponding port numbers, notifies the described timing unit described timing time of resetting.Described Frame detected in described setting timing time time, judge that port produces Frame loopback.
Timing unit can be timer, counter etc.Arriving after setting timing time, judge whether to receive Frame, can be also that Loop Round Trip Time mark is set, in the time receiving Frame, check the state of time mark.Be labeled as example with Loop Round Trip Time below, the operation of timing unit is described.Loop Round Trip Time mark is a counter, supposes that initial value is 1 second, automatically successively decreases by 10 milliseconds of step-lengths, equals 0 and stops successively decreasing.Arranging after Loop Round Trip Time mark, the list item of mac address forwarding table comprises: MAC (MAC Address), Port (port numbers), Loop TimeStamp (Loop Round Trip Time mark).
The object that Loop Round Trip Time mark is set is to avoid mistake alarm.Such as, as Fig. 5, when the source MAC of router is MAC
r, port numbers is port one, port 4 may receive because of loopback source MAC=MAC
rframe.When router moves while receiving port 4 from port one, also can receive such Frame.Therefore, it is 1 second that Loop Round Trip Time mark initial value is set, and within 1 second, receives that with interior such Frame will be judged as port loopback, exceedes 1 second, i.e. Loop Round Trip Time mark=0, receives that such Frame will not be judged as port loopback.
In addition, detecting unit also, detecting that described source MAC is not in described addresses forwarding table, notifies described storage unit that source MAC is updated to described addresses forwarding table with corresponding port numbers, notifies the described timing unit described timing time of resetting; Or detect that described source MAC is in described addresses forwarding table, and receiving port is when identical with described addresses forwarding table corresponding ports, notifies the described timing unit described timing time of resetting.
Producing after Frame loopback, described multi-service transport platform can also comprise and report unit, as shown in Figure 4.For in the time producing Frame loopback, abandon described Frame and report loopback alarm.To ensure that other business that do not produce loopback port still can normally forward.In addition, when one or several business in port is during at other port generation loopback, also can ensure other not normal forwardings of loopback business in this port.
In addition, producing after Frame loopback, detecting unit detects while receiving the non-loopback Frame of setting quantity continuously, and for example continuous three frames are gone back notice reporting unit and cancelled report and alarm, and normal execution forwards operation.
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with embodiment, the present invention is further detailed.Should be appreciated that specific embodiment described herein, only for explaining the present invention, should not be construed as limitation of the present invention.
Fig. 5 is that in embodiment, each port traffic forwards schematic diagram.Comprise router and MSTP equipment, four ethernet ports of MSTP equipment are respectively port one, port 2, port 3 and port 4.Wherein, before port 4 does not have loopback, business is normal, and the router mac address that port one connects is MAC
r.
In store addresses forwarding table in the ether web plate of MSTP equipment, when ether web plate has just powered up, addresses forwarding table is empty (being that contents in table is empty), after ether web plate receives Frame (comprising the contents such as target MAC (Media Access Control) address, source MAC, payload in Frame), addresses forwarding table mainly comprises the list item such as MAC Address, port numbers.
Because ring has certainly occurred port 4, the Frame loopback sending by router, addresses forwarding table vibrates, and causes the source MAC carrying in Frame again to flush to port 4.Fig. 6 is the schematic diagram that loopback occurs embodiment middle port 4.In the time detecting that source MAC that port 4 carries has been recorded to addresses forwarding table, judge that whether receiving port is identical with addresses forwarding table corresponding ports, find that receiving port is port 4, and corresponding ports in addresses forwarding table is port one.So, judge Loop Round Trip Time mark (initial value of Loop Round Trip Time mark is 1 second, automatically successively decreases by 10 milliseconds of step-lengths, equals 0 and stops successively decreasing).If received such Frame in 1 second, think that Frame loopback has occurred port 4, abandon this Frame reporting port 4 loopback alarms.
In port one, have many business, there is loopback at port 4 in a business wherein, because port 4 abandons looping back data frame, is not forwarded to port one, therefore can not cause router close port.Therefore, other not normal forwardings of loopback business have been ensured.
Certainly; the present invention can also have other numerous embodiments and embodiment; in the situation that not deviating from spirit of the present invention and essence; those of ordinary skill in the art can make according to the present invention various corresponding changes and modification, but these corresponding changes and modification all should belong to the protection range of the appended claim of the present invention.
Claims (9)
1. the method to MSTP equipment ethernet port loopback detection, comprises the following steps:
Receiving data frames, carries source MAC in described Frame;
Check addresses forwarding table, detect described source MAC whether in described addresses forwarding table;
When described source MAC is in described addresses forwarding table, detect receiving port whether identical with corresponding ports in described addresses forwarding table;
Detect when described receiving port is not identical with corresponding ports in described addresses forwarding table, further comprise:
Detect and whether in setting timing time, receive Frame;
After the described setting timing time of arrival, receive described Frame, described source MAC is updated in described addresses forwarding table with corresponding port numbers, and the timing time of resetting; In described setting timing time, receive described Frame, judge that port produces Frame loopback.
2. the method for loopback detection as claimed in claim 1, wherein, detect described source MAC whether in described addresses forwarding table, further comprising the steps of: when described source MAC is not in described addresses forwarding table, described source MAC is updated in described addresses forwarding table with corresponding port numbers, and the timing time of resetting.
3. the method for loopback detection as claimed in claim 1, wherein, detect the receiving port operation whether identical with corresponding ports in described addresses forwarding table, further comprising the steps of: to detect that described receiving port is identical with corresponding ports in described addresses forwarding table, replacement timing time.
4. the method for loopback detection as claimed in claim 1, wherein, port produces after Frame loopback, further comprising the steps of: to abandon described looping back data frame report and alarm.
5. the method for loopback detection as claimed in claim 4, wherein, port produces after Frame loopback, further comprising the steps of: in the time the non-loopback Frame that receives continuously setting quantity being detected, cancel described alarm.
6. the multi-service transport platform to ethernet port loopback detection, comprising:
Receiving element, for receiving data frames, carries source MAC in described Frame;
Storage unit, for preserving addresses forwarding table;
Timing unit, is used to each list item of described addresses forwarding table to set timing time;
Detecting unit, be used for checking described addresses forwarding table, detecting that described source MAC is in described addresses forwarding table, and when receiving port is different from port corresponding in described addresses forwarding table, if Frame detected after the described setting timing time of arrival time, notify described storage unit that source MAC is updated in addresses forwarding table with corresponding port numbers, notify the described timing unit described timing time of resetting; If described Frame detected in described setting timing time time, judge that port produces Frame loopback.
7. multi-service transport platform as claimed in claim 6, wherein, detecting unit is also detecting that described source MAC is not in described addresses forwarding table, notify described storage unit that source MAC is updated to described addresses forwarding table with corresponding port numbers, notify the described timing unit described timing time of resetting; Or detect that described source MAC is in described addresses forwarding table, and receiving port is when identical with described addresses forwarding table corresponding ports, notifies the described timing unit described timing time of resetting.
8. multi-service transport platform as described in claim 6 or 7, also comprises: report unit, in the time producing Frame loopback, abandon described Frame and report loopback alarm.
9. multi-service transport platform as claimed in claim 8, wherein, described detecting unit, detecting while receiving the non-loopback Frame of setting quantity continuously, also reports unit to cancel described alarm described in notice.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910119963.2A CN101820363B (en) | 2009-02-27 | 2009-02-27 | Ethernet port loopback detection method and multi-service transport platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200910119963.2A CN101820363B (en) | 2009-02-27 | 2009-02-27 | Ethernet port loopback detection method and multi-service transport platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101820363A CN101820363A (en) | 2010-09-01 |
CN101820363B true CN101820363B (en) | 2014-12-03 |
Family
ID=42655316
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200910119963.2A Active CN101820363B (en) | 2009-02-27 | 2009-02-27 | Ethernet port loopback detection method and multi-service transport platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101820363B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102064983B (en) * | 2010-12-31 | 2013-03-20 | 华为技术有限公司 | Method, device and system for detecting Ethernet networking connecting error |
CN102088417B (en) * | 2011-03-18 | 2013-04-17 | 华为技术有限公司 | Method and apparatus for achieving IP (Internet Protocol) message loopback |
CN102271063A (en) * | 2011-07-22 | 2011-12-07 | 中兴通讯股份有限公司 | Self loop detecting method and system |
CN102332997B (en) * | 2011-10-25 | 2014-06-25 | 瑞斯康达科技发展股份有限公司 | Network equipment and method for adjusting link capacity by using network equipment |
CN103378998A (en) * | 2012-04-27 | 2013-10-30 | 中兴通讯股份有限公司 | Method and device for Ethernet port loopback detection |
CN102904636B (en) * | 2012-11-12 | 2015-08-05 | 上海斐讯数据通信技术有限公司 | The method of user node port loopback alarm in a kind of relieving light node |
CN107800581B (en) * | 2016-09-01 | 2022-03-18 | 中兴通讯股份有限公司 | Two-layer network and loopback detection method thereof |
CN106941634B (en) * | 2017-05-18 | 2020-07-14 | 烽火通信科技股份有限公司 | O L T loopback detection method and system in GPON system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1691609A (en) * | 2004-04-20 | 2005-11-02 | 北京润光泰力科技发展有限公司 | A method and apparatus for Ethernet converter line side loop back detection |
CN1734991A (en) * | 2004-08-13 | 2006-02-15 | 中兴通讯股份有限公司 | A method for detecting service loopback of multi-service transmission platform equipment |
CN101316197A (en) * | 2007-05-28 | 2008-12-03 | 中国电信股份有限公司 | Detection method and apparatus for Ethernet port loop of MSTP equipment |
-
2009
- 2009-02-27 CN CN200910119963.2A patent/CN101820363B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1691609A (en) * | 2004-04-20 | 2005-11-02 | 北京润光泰力科技发展有限公司 | A method and apparatus for Ethernet converter line side loop back detection |
CN1734991A (en) * | 2004-08-13 | 2006-02-15 | 中兴通讯股份有限公司 | A method for detecting service loopback of multi-service transmission platform equipment |
CN101316197A (en) * | 2007-05-28 | 2008-12-03 | 中国电信股份有限公司 | Detection method and apparatus for Ethernet port loop of MSTP equipment |
Also Published As
Publication number | Publication date |
---|---|
CN101820363A (en) | 2010-09-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101820363B (en) | Ethernet port loopback detection method and multi-service transport platform | |
CN101316197B (en) | Method and device for detecting Ethernet port loop of MSTP (Multi-service transport platform) device | |
US9686098B2 (en) | Efficient management of ring networks | |
CN101257388B (en) | Lawless exterior joint detecting method, apparatus and system | |
US20050099955A1 (en) | Ethernet OAM fault isolation | |
CN101317372A (en) | Method, system and node device for transmitting connection fault management message of Ethernet | |
CN101640629A (en) | Method for monitoring link packet loss and bidirectional forwarding detector | |
CN105308904B (en) | A kind of OAM message processing method, the network equipment and network system | |
CN104301146A (en) | Link switching method and device in software defined network | |
US10116545B2 (en) | Method, device and system for processing OAM packet | |
CN107257301B (en) | Method and device for detecting repeated messages in parallel redundant network | |
CN103684835A (en) | Link fault reporting method and processing method, and transmission node and primary node | |
US7974188B2 (en) | Repeater and communication method | |
US20130003562A1 (en) | Link fault detection method and apparatus | |
WO2017215456A1 (en) | Alarming method, apparatus, network node and computer storage medium | |
CN101808021A (en) | Fault detection method, device and system, message statistical method and node equipment | |
CN101132319B (en) | Method for Ethernet operation and maintaining fault detection | |
US20090116395A1 (en) | Communication apparatus and method | |
CN103684818A (en) | Method and device for detecting failures of network channel | |
US20120057497A1 (en) | Method, apparatus, and system for measuring network performance | |
CN107547311B (en) | Flow statistical method and device | |
EP2129042A1 (en) | A multicast network system, node and a method for detecting a fault of a multicast network link | |
CN101594375A (en) | The method of ARP proxy and ARP proxy equipment | |
CN102571464B (en) | Link tracking processing method and system | |
CN105281929B (en) | A kind of service network interface state-detection and fault-tolerant devices and methods therefor |
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 |