CN100403689C - Method for detecting Ethernet user line state - Google Patents
Method for detecting Ethernet user line state Download PDFInfo
- Publication number
- CN100403689C CN100403689C CNB2005100695919A CN200510069591A CN100403689C CN 100403689 C CN100403689 C CN 100403689C CN B2005100695919 A CNB2005100695919 A CN B2005100695919A CN 200510069591 A CN200510069591 A CN 200510069591A CN 100403689 C CN100403689 C CN 100403689C
- Authority
- CN
- China
- Prior art keywords
- message
- network
- subscribers feeder
- joint
- ping
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention discloses an Ethernet OAM method which comprises the following procedures: step 1, a user wire forms a loop state when customer equipment has power cut or a CE network joint is disconnected from a network; step 2, provider equipment PE dispatches a PING request message to the CE; when the message received by the PE is a loop back message, the normal state of the user wire is determined. The present invention has the advantage that when the CE has power cut or the CE network joint is disconnected from the network, the PE can accurately judge the state of the user wire at the time. The condition is prevented from being erroneously judged as a user wire fault. In addition, the switch circuit and the switching device used by the present invention have the characteristics of convenience and easy realization. The present invention is suitable for large-scale use.
Description
Technical field
The present invention relates to Ethernet Operation, Administration and Maintenance (Operations, Administration ﹠amp; Maintenance, OAM) field, particularly a kind of method that detects ethernet user's line states.
Background technology
Access Layer at Ethernet, subscriber equipment (Customer Equipment, CE) generally by subscribers feeder and operator's equipment (Provider Equipment, PE) be connected, described CE is meant user's computer, described PE is meant the equipment with the direct-connected operator of user, and such as switch, described subscribers feeder is generally twisted-pair feeder or category-5 cable etc.If subscribers feeder breaks down, the user can't be connected the service of acquisition with network, and therefore in time detecting subscriber line out of order is a very important technical problem.
Institute of Electrical and Electronics Engineers (IEEE) 801.1AH standard to describe a kind of Ethernet Operation, Administration and Maintenance (OAM) mechanism, this standard has increased an OAM sublayer between medium access control (MAC) layer and physics (PHY) layer, and defined a kind of OAM message format, in order between equipment, to transmit OAM information.
As shown in Figure 1, the major function of the OAM sublayer between MAC layer and PHY layer is, in the data flow of outbound course, insert the OAM message send to miscellaneous equipment, from the data flow of input direction, resolve and distribute the OAM message that miscellaneous equipment sends over, it is handled.The form of OAM message is consistent with traditional ethernet frame format, just redetermination a kind of OAM type.As shown in table 1, the OAM message generally comprises: purpose MAC, and expression receives the MAC Address of the equipment of OAM message; Source MAC, expression sends the MAC Address of the equipment of OAM message; Message length and type (LENGTH/TYPE), value is 8809, represents that this message is the OAM message; Message subtype (SUB-TYPE) can be PING request message (PING REQ), PING response message (PING ACK) etc.; Version (VERSION); Marker bit (FLAG); Coding (CODE); Data and filler (DATA/PAD); Verification (FCS) or the like.
Purpose MAC | Former MAC | LENGTH/TYPE | SUB-TYPE | VERSION | FLAG | CODE | DATA/PAD | FCS |
Table 1 OAM message format example
Generally by initiating the PING request message to the CE that is connected self, judge according to the PING response message of whether receiving CE at the appointed time whether subscribers feeder is normal then in the prior art from PE.The schematic diagram of PING mechanism shown in Figure 1, the PING request message is sent by bottom PHY course CE in the OAM sublayer of PE, and the OAM sublayer of CE is made and being replied after distributing this PING request message, sends the PING response message to PE again.If the OAM sublayer of PE is received the PING response message of CE at the appointed time, illustrate that then subscribers feeder is normal; If PE does not receive that at the appointed time the PING response message of CE or the message of receiving are not the PING response messages of CE, then make the judgement of line fault, and send alarm.
PING request message in the above-mentioned PING mechanism and PING response message all are seed categories of OAM message.Wherein the form of PING request message is as shown in table 2, includes but not limited to following information: purpose MAC, the MAC Address of expression CE; Source MAC, the MAC Address of expression PE; Type of message represents that this message is the OAM message; Message subtype is PING request (PING REQ) message; Time stamp is represented the time that this message sends; Sequence number; Verification.Corresponding PING response message is as shown in table 3, comprises following information: purpose MAC, is the MAC Address of PE; Source MAC is the MAC Address of CE; Type of message is the OAM message; Message subtype is PING response message (PING ACK); Time stamp represents that this PING response message is from time that CE sends; Sequence number; Verification.
Purpose MAC | Source MAC | Type of message | Message subtype | Time stamp | Sequence number | Verification |
Table 2 PING request message format sample
Purpose MAC | Source MAC | Type of message | Message subtype | Time stamp | Sequence number | Verification |
Table 3PING response message format sample
But PE does not receive the PING response message of CE, except being the reason that breaks down of subscribers feeder, also might be that the user just pulls up the reticle plug provided of CE CE shutdown or user temporarily from network user's line interface.Prior art only according to not receiving that the PING response message judges whether fault of circuit, can further also can cause the line upkeep resource of operator to be wasted greatly the line fault that is judged as of these situation mistakes.
Summary of the invention
In view of this, the present invention proposes a kind of method of the ethernet user's of detection line states, in order at CE outage or CE network joint when network disconnects, correctly judge the state of subscribers feeder.
According to above-mentioned purpose, the invention provides a kind of method of the ethernet user's of detection line states, it is characterized in that this method may further comprise the steps:
A. in subscriber equipment CE outage or CE network joint subscribers feeder formation loop circuit state when disconnecting, network is set;
B. operator's equipment PE sends the PING request message to CE;
C. when the message that PE receives is the loopback message, conclude that subscribers feeder is normal; Described loopback message is the PING request message that PE self sends.
In technique scheme, described step C further comprises: when the message that PE receives is the PING response message, conclude that subscriber's line is normal.
In technique scheme, described step C further comprises: when PE does not receive message, conclude subscriber line out of order; And/or when the message that PE receives is not loopback message or PING response message, conclude the subscriber's line fault.
Further, after the described step of concluding the subscriber's line fault, comprise the step of sending fault warning.
Preferably, after concluding subscriber line out of order, continuous several times further comprises the step of sending fault warning.
Described steps A comprises: a switching circuit is set on CE; When CE cuts off the power supply, make subscribers feeder form loop circuit state by described switching circuit bypass CE.
Steps A further comprises: when CE powers on, connect subscribers feeder and CE by described switching circuit.
Preferably, described switching circuit is a relay.
With subscribers feeder joint that the CE network joint is connected on increase a switching device shifter; When the CE network joint when network disconnects, make subscribers feeder form loop circuit state by described switching device shifter bypass CE.
Described steps A further comprises: when the CE network joint is connected to network, connect subscribers feeder and CE by described switching device shifter.
Preferably, described switching device shifter be respectively with two spring leafs that circuit is connected of subscribers feeder, the CE network joint when network disconnects by described spring leaf short circuit with bypass CE, when the CE network joint is connected to network, open circuit to connect subscribers feeder and CE by described spring leaf.
From such scheme as can be seen, subscribers feeder when network disconnects is set to loop circuit state because the present invention is in CE outage or CE network joint, after PE sends the PING request message, if CE closes or the CE network joint disconnects from network, PE can receive the loopback message, subscribers feeder is normal at this moment thereby judge, and has avoided this situation is judged as subscriber line out of order mistakenly.And, the switching circuits such as relay that utilization of the present invention increases in CE, subscribers feeder is set to loop circuit state when CE closes, and perhaps switching device shifters such as spring leaf that increase at the subscribers feeder joint that is connected with CE are set to loop circuit state at CE network joint subscribers feeder when network disconnects.The method that the present invention adopts has characteristics easy, easy realization, is suitable for extensive use.
Description of drawings
Fig. 1 is OAM sublayer structure and functional schematic;
Fig. 2 is the schematic diagram of PING mechanism;
Fig. 3 is the formation principle schematic of loopback message;
Fig. 4 is a schematic flow sheet of the present invention;
Fig. 5 a and Fig. 5 b are the principle schematic that CE goes up switching circuit;
Fig. 6 a and Fig. 6 b are the principle schematic of switching device on the CE subscribers feeder joint.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in more detail by the following examples.
The present invention is in off-position or CE network joint when network disconnects at CE, subscribers feeder is encircled certainly, after making that PE sends the PING request message, receive the PING request message that self sends, it is the loopback message, the present invention has also correspondingly improved the treatment mechanism of PING in the OAM sublayer of PE, and this state and subscriber line out of order are distinguished.
The formation of described loopback message as shown in Figure 3, holding at CE among Fig. 3, subscribers feeder is set to loop circuit state, PE sends the PING request message, after this PING request message arrives user side by the circuit that is connected with the PE transmit port, because two circuits of subscribers feeder are in loop circuit state, this PING request message then turns back to PE again by the circuit that is connected with the PE receiving terminal, so PE receives is the PING request message that self sends, i.e. loopback message.
It should be noted that subscribers feeder loop among the present invention only is that two circuits with subscribers feeder dock, be equivalent to the data sending terminal and the data receiver of equipment are docking together, for the physical characteristic of subscribers feeder without any harmful effect.
As shown in Figure 4, realization flow of the present invention is as follows:
Introduce described switching circuit and switching device below in detail.
Shown in Fig. 5 a and Fig. 5 b is the principle schematic of switching circuit.This switching circuit is equivalent to a double-point double-throw switch, and between the network joint and CE internal module of CE, the A of switching circuit end is the subscribers feeder input of CE network joint, and the B end is loop wire, and the C end is the subscriber equipment internal module.Described switching circuit can be constructed with relay.When CE shutdown or power down, relay is in the AB state shown in Fig. 5 a, and relay is with the CE bypass at this moment, and subscribers feeder is in loop circuit state.When CE powered on, relay was in the AC state shown in Fig. 5 b, and this moment, relay connected subscribers feeder and CE, and subscribers feeder and CE are in connected state.
Fig. 6 a and Fig. 6 b are the principle schematic of described switching device.This switching device can realize by spring leaf simply that spring leaf is connected respectively on two circuits of subscribers feeder.When the CE network joint when subscribers feeder joint unplugs, the spring leaf closure is in contact with one another short circuit, bypass CE makes subscribers feeder be in loop circuit state; When the CE network joint inserted the subscribers feeder joint, the plastics button of CE network joint strutted the spring leaf of subscribers feeder joint, makes spring leaf open circuit, and spring leaf opens with two contact probes of CE network joint and is connected, and the realization subscribers feeder is connected with CE's.
Purpose MAC | Source MAC | Type of message | Message subtype | Time stamp | Sequence number | Verification |
2 | 1 | 8809 | PING REQ | 18:00 | 0001 | CRC check |
Table 4 PING request message example
If the received message of PE is not the loopback message, then execution in step 406.
As shown in table 3 with the PING response message that the PING request message is corresponding in the step 402, comprise following information: purpose MAC, be the MAC Address of PE; Source MAC is the MAC Address of CE; Type of message is the OAM message; Message subtype is PING response message (PING ACK); Time stamp is represented this PING response message from the time that CE sends, and is 18:04 here; Sequence number is 0001; Be verified as CRC check.
Purpose MAC | Former MAC | Type of message | Message subtype | Time stamp | Sequence number | Verification |
1 | 2 | 8809 | PING ACK | 18:01 | 0001 | CRC check |
Table 5 PING response message example
Further,, avoid the situation of accidental PING message dropping, can send the PING request message for many times, when repeatedly the result concludes that subscribers feeder breaks down, send fault alarm again from PE in order to improve the reliability of detection.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (11)
1. a method that detects ethernet user's line states is characterized in that, this method may further comprise the steps:
A. in subscriber equipment CE outage or CE network joint subscribers feeder formation loop circuit state when disconnecting, network is set;
B. operator's equipment PE sends the PING request message to CE;
C. when the message that PE receives is the loopback message, conclude that subscribers feeder is normal; Described loopback message is the PING request message that PE self sends.
2. method according to claim 1 is characterized in that, described step C further comprises:
When the message that PE receives is the PING response message, conclude that subscriber's line is normal.
3. method according to claim 1 is characterized in that, described step C further comprises:
When PE does not receive message, conclude subscriber line out of order; And/or
When the message that PE receives is not loopback message or PING response message, conclude the subscriber's line fault.
4. method according to claim 3 is characterized in that, further comprises the step of sending fault warning after the described step of concluding the subscriber's line fault.
5. method according to claim 4 is characterized in that, further comprises the step of sending fault warning after continuous several times is concluded subscriber line out of order.
6. method according to claim 1 is characterized in that, described steps A comprises: a switching circuit is set on CE; When CE cuts off the power supply, make subscribers feeder form loop circuit state by described switching circuit bypass CE.
7. method according to claim 6 is characterized in that steps A further comprises:
When CE powers on, connect subscribers feeder and CE by described switching circuit.
8. according to claim 6 or 7 described methods, it is characterized in that described switching circuit is a relay.
9. according to claim 1 or 6 described methods, it is characterized in that steps A comprises, with subscribers feeder joint that the CE network joint is connected on increase a switching device shifter;
When the CE network joint when network disconnects, make subscribers feeder form loop circuit state by described switching device shifter bypass CE.
10. method according to claim 9 is characterized in that, described steps A further comprises:
When the CE network joint is connected to network, connect subscribers feeder and CE by described switching device shifter.
11. method according to claim 10, it is characterized in that, described switching device shifter be respectively with two spring leafs that circuit is connected of subscribers feeder, the CE network joint when network disconnects by described spring leaf short circuit with bypass CE, when the CE network joint is connected to network, open circuit to connect subscribers feeder and CE by described spring leaf.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005100695919A CN100403689C (en) | 2005-05-16 | 2005-05-16 | Method for detecting Ethernet user line state |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005100695919A CN100403689C (en) | 2005-05-16 | 2005-05-16 | Method for detecting Ethernet user line state |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1866849A CN1866849A (en) | 2006-11-22 |
CN100403689C true CN100403689C (en) | 2008-07-16 |
Family
ID=37425740
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2005100695919A Expired - Fee Related CN100403689C (en) | 2005-05-16 | 2005-05-16 | Method for detecting Ethernet user line state |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100403689C (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100461706C (en) * | 2006-11-29 | 2009-02-11 | 杭州华三通信技术有限公司 | Method for recovering sponsor media accessing control address and operation businesss edge apparatus |
US7898965B2 (en) * | 2007-10-12 | 2011-03-01 | Nortel Networks Limited | IP network and performance monitoring using ethernet OAM |
CN101202677B (en) * | 2007-12-12 | 2010-11-03 | 华为技术有限公司 | Method and device for detecting link |
CN101471821B (en) * | 2007-12-29 | 2011-07-06 | 华为技术有限公司 | Method and apparatus for detecting failure of operator backbone network transmission network |
CN101325522B (en) * | 2008-08-01 | 2011-08-24 | 中国电信股份有限公司 | Method and system for detecting end-to-end connectivity of telecommunication grade ether private wire |
CN101610181B (en) * | 2009-07-13 | 2012-04-18 | 华为技术有限公司 | Method, device and system for realizing failure detection |
CN101834773A (en) * | 2010-03-30 | 2010-09-15 | 中兴通讯股份有限公司 | Protection method and system of virtual private LAN (Local Area Network) service (VPLS) |
CN101826983A (en) * | 2010-04-02 | 2010-09-08 | 中兴通讯股份有限公司 | Dual-homing protection switching method, device and system |
CN102664770A (en) * | 2012-04-20 | 2012-09-12 | 中兴通讯股份有限公司 | Method and system for testing service performance of telecommunication-level Ethernet |
CN103401714B (en) * | 2013-08-01 | 2017-02-08 | 广东威创视讯科技股份有限公司 | Method for detecting network connection state and client side |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2487163Y (en) * | 2001-07-10 | 2002-04-17 | 蒋泽民 | Ether net long line driver |
CN1516365A (en) * | 2003-01-02 | 2004-07-28 | ���ǵ�����ʽ���� | Method for controlling loopback process in passive optical network of Ethernet |
US20050099952A1 (en) * | 2003-11-10 | 2005-05-12 | Nortel Networks Limited | Ethernet OAM performance management |
-
2005
- 2005-05-16 CN CNB2005100695919A patent/CN100403689C/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2487163Y (en) * | 2001-07-10 | 2002-04-17 | 蒋泽民 | Ether net long line driver |
CN1516365A (en) * | 2003-01-02 | 2004-07-28 | ���ǵ�����ʽ���� | Method for controlling loopback process in passive optical network of Ethernet |
US20050099952A1 (en) * | 2003-11-10 | 2005-05-12 | Nortel Networks Limited | Ethernet OAM performance management |
Non-Patent Citations (2)
Title |
---|
EPON中OAM子层功能的分析. 方亮,李迎春,林如俭.光通信技术,第2期. 2004 |
EPON中OAM子层功能的分析. 方亮,李迎春,林如俭.光通信技术,第2期. 2004 * |
Also Published As
Publication number | Publication date |
---|---|
CN1866849A (en) | 2006-11-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100403689C (en) | Method for detecting Ethernet user line state | |
US8259562B2 (en) | Wiring closet redundancy | |
US8549331B2 (en) | Redundant power and data in a wired data telecommunications network | |
US7849351B2 (en) | Power and data redundancy in a single wiring closet | |
CN101405675B (en) | Method and apparatus for changing power class for a powered device | |
US7724650B2 (en) | Multi-station physical layer communication over TP cable | |
KR101196024B1 (en) | Supplying power over four pairs of conductors in communication cable | |
US6640308B1 (en) | System and method of powering and communicating field ethernet device for an instrumentation and control using a single pair of powered ethernet wire | |
KR101186451B1 (en) | Combination of high-side and low-side current sensing in system for providing power over communication link | |
EP1769315B1 (en) | Improved power delivery over ethernet cables | |
US7768997B2 (en) | Systems and methods for automatic public switched telephone network backup of voice over internet protocol services | |
US8042006B2 (en) | Automatic system for power and data redundancy in a wired data telecommunications network | |
US20110026525A1 (en) | Ethernet Switch and System | |
CN109428728A (en) | Autosensing method and apparatus | |
CN104793544B (en) | Bidirectional power supply system in a kind of Ethernet POE | |
US8199906B2 (en) | Implementation of a communication link in powered device for layer 2 support | |
CN101764901A (en) | Implementation system, equipment and method for convergence sharing of digital user line port | |
CN101202677B (en) | Method and device for detecting link | |
CN105721232A (en) | Method and device for implementing link detection | |
CN105703967A (en) | Method and apparatus for detecting label switching path connectivity | |
EP3446443B1 (en) | Detection of non-powered device (non-pd) on a power-over-ethernet port based on the data link state information | |
CN107872054B (en) | System and device for preventing error connection of power over Ethernet and power over cable | |
CN113839816B (en) | Wiring device and fault switching method thereof | |
CN100382526C (en) | Main/stand by alternation method between links in access-in network system | |
CN108173710A (en) | A kind of substation data report method, apparatus and system |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20080716 Termination date: 20170516 |
|
CF01 | Termination of patent right due to non-payment of annual fee |