[go: up one dir, main page]

CN101316197B - Method and device for detecting Ethernet port loop of MSTP (Multi-service transport platform) device - Google Patents

Method and device for detecting Ethernet port loop of MSTP (Multi-service transport platform) device Download PDF

Info

Publication number
CN101316197B
CN101316197B CN2007101060033A CN200710106003A CN101316197B CN 101316197 B CN101316197 B CN 101316197B CN 2007101060033 A CN2007101060033 A CN 2007101060033A CN 200710106003 A CN200710106003 A CN 200710106003A CN 101316197 B CN101316197 B CN 101316197B
Authority
CN
China
Prior art keywords
port
ethernet
detection messages
loopback
mstp equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2007101060033A
Other languages
Chinese (zh)
Other versions
CN101316197A (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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN2007101060033A priority Critical patent/CN101316197B/en
Publication of CN101316197A publication Critical patent/CN101316197A/en
Application granted granted Critical
Publication of CN101316197B publication Critical patent/CN101316197B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention aims to provide a detection scheme for the Ethernet port loop of the MSTP equipment for a user, so that the looped Ethernet port can be effectively detected, and the MAC address oscillation caused by the Ethernet port loop of the MSTP equipment is avoided, thereby ensuring the safety and the normal of service.

Description

MSTP equipment ethernet port loop detection method and equipment
Technical field
The invention belongs to technical fields such as optical transport network, be specifically related to ethernet port loopback detection processing scheme in the MSTP device network.
Background technology
In present MSTP device network was used, MSTP equipment ethernet port was transmitted through searching data address after receiving data, with the data forwarding that receives to corresponding ports, thereby realization forwarding of data process.
In the use of MSTP equipment; Often run into the applicable cases that ethernet port zooms out through optical-electrical converter and optical fiber realization; There is defective in some optical-electrical converter, causes same ethernet port generation internal loopback phenomenon, thereby on MSTP equipment, forms the single port loopback.In present MSTP equipment, the scheme that the ethernet port wrapped state is not detected.Therefore, when a certain port generation loop-back phenomenon, mail to the data of this port, will be sent to this port again through external loop, thereby cause the vibration of data forwarding table address, data can't correctly be transmitted, and are professional influenced, the serious service disconnection that causes.
Under the current client situation increasingly high to internet security, stability, reliability requirement; The ethernet port sn wrap-around issue of MSTP device network; More and more urgent needs are able to solve, especially in the network application of important departments such as national defence, finance, government.
In view of this, the present invention proposes a kind of MSTP equipment ethernet port loopback detection scheme based on the OAM detection messages, solves the detection problem of ethernet port wrapped state.MSTP equipment is timed sending OAM detection messages initiatively, finds that the port loopback then turn-offs professional the transmission and reception, and report and alarm; After detecting the loopback disappearance, the business of recovery is sent and is received, and alarms to disappear.
Below being the Chinese and English contrast of the abbreviation that occurs in this specification, is that the technical staff in present technique field is known:
IP Internet Protocal Internet Protocol
The access control of MAC Media Access Control medium
MSTP Muti-service Transport Platform multi-service transport platform
OAM Operation Administration Maintenance operation management maintain
The Port port
The Router router
SA Source Address source address
Summary of the invention
The technical problem that the present invention will solve is to present technological deficiency, MSTP device port loop detection method timely and effectively to be provided, to avoid professional owing to the loopback vibration is interrupted.
The objective of the invention is provides a kind of MSTP equipment ethernet port loopback detection scheme for the user; Like this can be effectively the ethernet port of loopback be detected; Thereby avoid because the MAC Address vibration that MSTP equipment ethernet port loopback causes guarantees that service security is normal.
The present invention proposes a kind of loop detection method of the MSTP of being used for equipment ethernet port; Comprise step: generate detection messages; The source address of wherein said each detection messages is the predetermined MAC Address corresponding to this corresponding port of Ethernet, and destination address is the MAC Address of MSTP equipment itself; Through each port of Ethernet, send the detection messages corresponding that is generated with this port; Through each port of Ethernet, receiving destination address is the detection messages of the MAC Address of said MSTP equipment own; According to the source address of the detection messages of said reception, discern its corresponding ethernet port; And judge the ethernet port generation loopback detected.
In addition, wherein said detection messages can be the OAM detection messages.
In addition, the form of said OAM detection messages can be an ethernet frame V2 form.
In addition, after the ethernet port generation loopback that said method also is included in judgement and is detected, close the business of the ethernet port that loopback takes place and send and receive.
In addition, after the ethernet port generation loopback that said method also is included in judgement and is detected: the port to said generation loopback periodically sends detection messages; And as if this port still loopback, then alarm continues; Disappear if detect the loopback of this port, then recover the business transmitting-receiving of this port
The invention allows for a kind of MSTP equipment Ethernet integrated circuit board; Comprise: controller; Be used to generate detection messages, the source address of wherein said each detection messages is the predetermined MAC Address corresponding to this corresponding port of Ethernet, and destination address is the MAC Address of said MSTP equipment itself; The detection messages sending module is used for each port through Ethernet, sends the detection messages corresponding with this port that said controller generates; The detection messages receiver module is used for each port through Ethernet, and receiving destination address is the detection messages of the MAC Address of said MSTP equipment own; Wherein said controller also is configured to the source address according to the detection messages of said reception, discerns its corresponding ethernet port, and judges the ethernet port generation loopback of said detection.
In addition, said controller also is configured to, and after judging the ethernet port generation loopback that is detected, closes the business of the ethernet port that loopback takes place.
In addition, said detection messages sending module also is configured to, and the port of said generation loopback is periodically sent detection messages; And said controller also is configured to: if detect still loopback of this port, then alarm continues; Disappear if detect the loopback of this port, then recover the business of this port.
The present invention has outstanding advantage and effect in terms of existing technologies.Particularly,, judge whether MSTP equipment ethernet port loopback takes place, and it can initiatively find the port loopback, avoid the address vibration through the OAM detection messages; Can in time find the port loopback, the message behind the device port loopback can not transmitted once more, avoids taking place service disconnection, and report and alarm; Guarantee the still normally forwarding of other business that does not produce the loopback port; And after the loopback releasing, can automatic or manual recovery business.
System and method disclosed herein has overcome the shortcoming of above-mentioned prior art in its various embodiment, and has realized the advantage that this system and method can not exist before.
Below will more completely describe the present invention, the preferred embodiments of the present invention be shown in the accompanying drawing with reference to accompanying drawing.But the present invention may be embodied in many other forms, and is not appreciated that and is limited to embodiment described here; It is for disclosure will be detailed and complete that these embodiment are provided on the contrary, and will intactly scope of the present invention be conveyed to those skilled in the art.From start to finish similarly label is all represented similar elements.
Description of drawings
Accompanying drawing 1 has shown MSTP equipment Ethernet integrated circuit board functional block diagram according to an embodiment of the invention.
Accompanying drawing 2-6 has shown loopback detection process according to an embodiment of the invention.
Embodiment
Block diagram and flow chart description the present invention below with reference to method according to an embodiment of the invention, device (being system).Be appreciated that each piece of block diagram and flow chart and the combination of the piece in block diagram and the flow chart can be realized by computer program instructions respectively.These computer program instructions can be loaded on all-purpose computer, special-purpose computer or other programmable data processing unit; To produce machine, so that the instruction of on computer or other programmable data processing unit, carrying out produces the device of the block diagram that is used for executive system or flow chart block appointment.
The MSTP equipment Ethernet integrated circuit board functional block diagram that realizes the inventive method is as shown in Figure 1.
The MSTP equipment Ethernet integrated circuit board of Fig. 1 comprises controller, OAM message sending module, OAM message receiver module.
Said controller can generate the OAM detection messages.
According to one embodiment of present invention, the frame format of OAM detection messages is an ethernet frame V2 form, and frame length is 64 bytes.Wherein, the source address and the destination address of frame are particular address: each source address keeps the MAC Address from one group to be chosen, respectively each port of corresponding Ethernet; Destination address is the MAC Address of MSTP equipment itself.
After generating the OAM detection messages, said controller sends it to OAM message sending module.Subsequently, said OAM message sending module sends each OAM detection messages from its corresponding ports.
On the other hand, OAM message receiver module receive to get into the OAM message of this MSTP equipment, and sends said controller to and check.
Controller is checked the OAM message of receiving, judges whether it is the particular detection bag of self sending out; If then according to source address, judge its corresponding port, and report said port to produce the alarm of loopback, and carry out the protection of said port.
In addition, the transmission cycle of OAM message can be provided with as required.
Thus, the present invention provides a kind of MSTP device port loopback detection scheme based on the OAM detection messages, and principle is: OAM message sending module periodically sends the OAM message to each port; MSTP equipment is that the frame of MAC Address own is transmitted to OAM message receiver module and handles to destination address; Controller is checked the OAM message of receiving, judges whether it is the particular detection bag of self sending out; If, report the alarm of port loopback, and carry out port protection then according to source address.
With reference to accompanying drawing 2-6, further describe the concrete steps of the loopback detection process of the present invention's proposition.
Referring to accompanying drawing 2, Router is a router, and 1,2,3,4 is four ethernet ports of MSTP equipment.MSTP equipment Ethernet veneer periodically sends the OAM detection messages to each ethernet port.The source address of said each OAM detection messages keeps the MAC Address from one group selects respectively corresponding each ethernet port 1,2,3,4; Destination address is the MAC Address of MSTP equipment itself.
Referring to accompanying drawing 3, port one, 2,3 normal wherein, port 4 is because ring has certainly taken place in external cause.
Referring to accompanying drawing 4, because outside ring has certainly taken place port 4, MSTP is recycled to former port from the OAM detection messages that port 4 sends by port 4.
Referring to accompanying drawing 5, the said OAM message receiver module of MSTP equipment receives this OAM detection messages, and sends said controller to it is checked.The source address of this message of said controller inspection identifies the ethernet port 4 of its source address corresponding to self MSTP equipment.So, said controller judge mail to port 4 the OAM detection messages by loopback, thereby think that loopback has taken place this port 4.
Then, shown in accompanying drawing 5, controller cuts out the business of this port 4 and sends and receive, and reports the alarm of port 4 loopbacks; The OAM detection messages continues to send to all the other port ones, 2,3.
Referring to accompanying drawing 6, to the port 4 of generation loopback, initiatively regularly continue to send detection messages, as if port 4 still loopback, then alarm continues; If after detecting the loopback disappearance, then alarm is eliminated, and recovers professional forwarding.
Enforcement of the present invention can increase the transmission and the detection of OAM message when data forwarding.Whether be recycled to the port through detecting the OAM detection messages, accomplish the realization of loop back detection.
Should be appreciated that in above description, during various characteristics of the present invention are collected at its single embodiment, accompanying drawing sometimes or describe, so that simplify the disclosure and help to understand one or more in the various creative aspects to exemplary embodiment of the present invention.But this open method should not be interpreted as and reflect following intention: invention requirement required for protection is than the more characteristic of clearly setting forth in each claim of characteristic.Or rather, as what following claim reflected, creative aspect be present in be less than single more than in the characteristic of all characteristics of disclosed embodiment.Thereby the claims after the embodiment are attached in the embodiment at this clearly, and wherein every claim is independently as independent embodiment of the present invention.
In addition; Though described here some embodiment comprises some characteristic that comprises among other embodiment but does not comprise other characteristics; But; As what those skilled in the art will appreciate that, the combination of features of different embodiment is intended to be in the scope of the present invention, and forms various embodiment.For example, in following claims, can use any embodiment required for protection by any combination.
In addition, the combination of the element of some embodiment method that here is described to be realized by the processor of computer system or by other devices of realizing function or method.Thereby the processor with necessity instruction that is used to realize this method or method element is formed for the device of implementation method or method element.In addition, the element of described here device embodiment is to be used to realize the example of this element for the device of realizing the function that the present invention carries out.

Claims (15)

1. loop detection method that is used for MSTP equipment ethernet port comprises step:
Generate detection messages, wherein the source address of each detection messages is the predetermined MAC Address corresponding to this corresponding port of Ethernet, and destination address is the MAC Address of MSTP equipment itself;
Through each port of Ethernet, send the detection messages corresponding that is generated with this port;
Through each port of Ethernet, receiving destination address is the detection messages of the MAC Address of said MSTP equipment own;
According to the source address of the detection messages of said reception, discern its corresponding ethernet port; And
Judge the ethernet port generation loopback that is detected.
2. method according to claim 1 after the ethernet port generation loopback that also is included in judgement and is detected, is closed the business of the ethernet port that loopback takes place and is sent and receive.
3. method according to claim 2, after the ethernet port generation loopback that also is included in judgement and is detected:
Port to said generation loopback periodically sends detection messages; And
If this port is loopback still, then alarm continues;
Disappear if detect the loopback of this port, then recover the business transmitting-receiving of this port.
4. method according to claim 3 also is included in after the loopback disappearance of said port the business transmitting-receiving of automatic or manual this port of recovery.
5. method according to claim 1, the step of wherein said transmission detection messages is periodically carried out.
6. method according to claim 1, wherein said detection messages are the OAM detection messages.
7. method according to claim 6, the form of wherein said OAM detection messages are ethernet frame V2 form.
8. method according to claim 7, the source address of wherein said ethernet frame are from one group of reserved MAC address, to select.
9. MSTP equipment Ethernet integrated circuit board comprises:
Controller is used to generate detection messages, and wherein the source address of each detection messages is the predetermined MAC Address corresponding to this corresponding port of Ethernet, and destination address is the MAC Address of said MSTP equipment itself;
The detection messages sending module is used for each port through Ethernet, sends the detection messages corresponding with this port that said controller generates;
The detection messages receiver module is used for each port through Ethernet, and receiving destination address is the detection messages of the MAC Address of said MSTP equipment own;
Wherein said controller also is configured to the source address according to the detection messages of said reception, discerns its corresponding ethernet port, and judges the ethernet port generation loopback of said detection.
10. MSTP equipment Ethernet integrated circuit board according to claim 9, wherein said controller also is configured to, and after judging the ethernet port generation loopback that is detected, closes the business of the ethernet port that loopback takes place.
11. MSTP equipment Ethernet integrated circuit board according to claim 9, wherein
Said detection messages sending module also is configured to, and the port of said generation loopback is periodically sent detection messages; And
Said controller also is configured to:
If detect still loopback of this port, then alarm continues;
Disappear if detect the loopback of this port, then recover the business of this port.
12. MSTP equipment Ethernet integrated circuit board according to claim 9, wherein said detection messages sending module periodically sends detection messages.
13. MSTP equipment Ethernet integrated circuit board according to claim 9, wherein said controller is configured to produce the OAM detection messages as said detection messages.
14. MSTP equipment Ethernet integrated circuit board according to claim 13, wherein said controller is configured to produce the OAM detection messages of ethernet frame V2 form.
15. MSTP equipment Ethernet integrated circuit board according to claim 14, wherein said controller is configured to, and from one group of reserved MAC address, selects the source address of said ethernet frame.
CN2007101060033A 2007-05-28 2007-05-28 Method and device for detecting Ethernet port loop of MSTP (Multi-service transport platform) device Active CN101316197B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101060033A CN101316197B (en) 2007-05-28 2007-05-28 Method and device for detecting Ethernet port loop of MSTP (Multi-service transport platform) device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101060033A CN101316197B (en) 2007-05-28 2007-05-28 Method and device for detecting Ethernet port loop of MSTP (Multi-service transport platform) device

Publications (2)

Publication Number Publication Date
CN101316197A CN101316197A (en) 2008-12-03
CN101316197B true CN101316197B (en) 2012-05-30

Family

ID=40107054

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101060033A Active CN101316197B (en) 2007-05-28 2007-05-28 Method and device for detecting Ethernet port loop of MSTP (Multi-service transport platform) device

Country Status (1)

Country Link
CN (1) CN101316197B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2605494C2 (en) * 2012-04-27 2016-12-20 ЗетТиИ Корпорейшн METHOD AND DEVICE FOR DETECTING Ethernet PORTS LOOPING

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101820363B (en) * 2009-02-27 2014-12-03 中国电信股份有限公司 Ethernet port loopback detection method and multi-service transport platform
TWI424713B (en) 2009-12-02 2014-01-21 Realtek Semiconductor Corp Loop detection method and network device applying the same
CN102195746A (en) * 2010-03-17 2011-09-21 瑞昱半导体股份有限公司 Cycle detection method and network device using same
CN102833767B (en) * 2011-06-16 2017-05-10 中兴通讯股份有限公司 Self-loop processing method and device
CN102291266A (en) * 2011-09-13 2011-12-21 中兴通讯股份有限公司 Loopback (LB) detection method and device
TWI514821B (en) * 2014-02-26 2015-12-21 Accton Technology Corp Network devices and loopback detection methods
CN106330590B (en) * 2015-06-30 2020-02-11 中兴通讯股份有限公司 Method and device for testing single board of packet optical transport network
CN106559327A (en) * 2015-09-29 2017-04-05 北京东土科技股份有限公司 A kind of 100,000,000 optical port restoration methods and device
CN107800584A (en) * 2016-09-07 2018-03-13 扬智科技股份有限公司 Self-test method and self-test system for Ethernet physical layer circuit
CN108270670B (en) * 2016-12-30 2021-08-03 北京华为数字技术有限公司 A loop detection method and related device
CN107347019A (en) * 2017-04-20 2017-11-14 武汉迈力特通信有限公司 The apparatus and method of MSTP system ethernet link failure fast transfers
CN110278126A (en) * 2019-06-28 2019-09-24 苏州浪潮智能科技有限公司 A kind of switch port self checking method, system, terminal and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
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
CN1845512A (en) * 2006-05-25 2006-10-11 杭州华为三康技术有限公司 Method and apparatus for detecting loop

Patent Citations (3)

* Cited by examiner, † Cited by third party
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
CN1845512A (en) * 2006-05-25 2006-10-11 杭州华为三康技术有限公司 Method and apparatus for detecting loop

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP特开2007-124184A 2007.05.17

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2605494C2 (en) * 2012-04-27 2016-12-20 ЗетТиИ Корпорейшн METHOD AND DEVICE FOR DETECTING Ethernet PORTS LOOPING

Also Published As

Publication number Publication date
CN101316197A (en) 2008-12-03

Similar Documents

Publication Publication Date Title
CN101316197B (en) Method and device for detecting Ethernet port loop of MSTP (Multi-service transport platform) device
JP4454516B2 (en) Fault detection device
CN101197648B (en) Self-loop detection method and device used for access network
US8064353B2 (en) Communication device, communication system, and communication fault detection method
CN103684835B (en) Link fault reporting method and processing method, and transmission node and primary node
EP2207307A1 (en) Method for processing failure of slave port of master node in ethernet ring network system
CN102594600A (en) Method and system for determining failure position of bidirectional forwarding detection session
CN101820363B (en) Ethernet port loopback detection method and multi-service transport platform
JP4861293B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROGRAM
CN101330496B (en) Method and device for detecting Ethernet multicast loop
CN107070739A (en) A kind of router operation troubles intelligent detecting method and system
JP3905626B2 (en) Loop state detection device
CN101232406A (en) OAM fast detecting method, apparatus and system
CN105703967A (en) Method and apparatus for detecting label switching path connectivity
CN101478775B (en) Detection method, system and equipment for multi-neighbor connection state
CN101197731B (en) Path fault detection method, system and device
CN100450025C (en) Ethernet environment protection system and method
Foschiano Cisco systems unidirectional link detection (udld) protocol
Cisco Interface Configuration and Support
JP4316391B2 (en) Frame transmission device having line test function
Cisco Configuring the Interfaces
Cisco Interface Configuration and Support
Cisco Cisco 10000 ESR - Cisco IOS Release 12.0(11)SL1
Cisco Interface Configuration and Support
CN103609066A (en) Method and node for querying operation administration maintenance configuration information

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