CN1691609A - A method and apparatus for Ethernet converter line side loop back detection - Google Patents
A method and apparatus for Ethernet converter line side loop back detection Download PDFInfo
- Publication number
- CN1691609A CN1691609A CN 200410033793 CN200410033793A CN1691609A CN 1691609 A CN1691609 A CN 1691609A CN 200410033793 CN200410033793 CN 200410033793 CN 200410033793 A CN200410033793 A CN 200410033793A CN 1691609 A CN1691609 A CN 1691609A
- Authority
- CN
- China
- Prior art keywords
- condition code
- ethernet
- module
- data
- machine
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Abstract
The invention discloses a method and apparatus for loop detecting on circuit of the Ethernet converter. The sending side of the Ethernet converter can send a unique feature code for local machine, receiving side will check if the feature code for the local machine is in the data flow, when the feature code is in the data flow, it means the loop is detected, if not, it means there's no loop in the circuit. It can not send data to Ethernet if the loop is detected in the data flow.
Description
Technical field
The present invention relates to data communication technology field, particularly relate to and using one or more low speed data channel to carry out the method and apparatus that in the long Distance Transmission of Ethernet data loopback at the line side is detected.
Background technology
Along with data communication technology develop rapidly and computer between carry out the increasing of information interchange demand, local area network technology develops rapidly; And Ethernet becomes most economical local area network technology easily with the various advantages of himself technology, becomes one of basic communications facility of office, school, company, group.But,, therefore only be applicable to local area network communication and can not be as the wide area network transmission because the restriction of Ethernet operation principle transmission radius can not be too big.And users are after the communication of having satisfied local area network, begin gradually to communicate with the local area network (LAN) of far-end and whole wide area network is inserted, and like this, the long Distance Transmission of Ethernet data have just been become an urgent demand of data communication.
Because the Large scale construction of synchronous digital hierarchy (SDH) network also has a large amount of line resources, as E1 (primary group), DS3, Nx64K (speed is N 64k) etc. outside the demand that has satisfied conventional digital communication.So just facilitate the generation of Ethernet transducer, finished the mutual conversion of Ethernet data form and track data form, thereby can transmit Ethernet data on the line, not only satisfied the needs of data communication but also protected the investment of SDH capital construction.
When realizing the Ethernet transducer, can use a circuit to carry out the transmission of Ethernet data, also can pass through the inverse multiplexing technology, many low speed lines be tied up the transmission that is used for Ethernet data, both satisfied the demand of user, and can make full use of existing line resource again high bandwidth.
The product that some Ethernet transducers occurred at present.Basic functional principle has two kinds: a kind of is to be that unit is encapsulated in the circuit and transmits with whole ethernet frame, and many circuits use in turn; Another kind is an ethernet frame to be divided into a plurality of parts encapsulate then and transmit in different circuits.Be that the example explanation uses the inverse multiplexing technology that many line bundles are used for the principle that Ethernet transmits below with E1, the situation of carrying out the Ethernet transmission with a circuit is a special case.
The characteristics of Ethernet data are paroxysmal: Frame length is unfixing, and the interval between frame and the frame is unfixing, and frame structure has beginning and end mark; And the 2M data flow in the E1 passage is continuously and at the uniform velocity.Therefore utilize the E1 circuit to transmit encapsulation and conversion that Ethernet data must carry out frame format.
With whole frame Ethernet data be unit encapsulate and the basic principle of the inverse multiplexing technology transmitted as shown in Figure 1:
At the E1 of Ethernet transducer transmitting terminal, the Ethernet data that receives is that unit encapsulates and handles with a complete ethernet frame earlier through memory block (FIFO or RAM) buffer memory then.Packing forms can be various, comprise high-level data link control procedure (HDLC) or Generic Framing Procedure (GFP), even can be self-defining packing forms, the function of finishing is that Ethernet data is delimited so that receiving device can recover original Ethernet data in continuous 2M bit stream.The Ethernet transducer utilizes many E1 circuits to transmit Ethernet data, different ethernet data frames is to transmit respectively by different E1 links, because the frame length difference of Ethernet data, the propagation delay time of different E1 links also may be different, the order that arrives the ethernet frame of opposite end may be put upside down, to need to use the sequence number maker in order addressing this problem, each ethernet data frame that mails to the opposite end to be identified.In addition, the frame distribution logic can be assigned to different E1 links with continuous ethernet data frame according to the usage quantity of E1 link and get on, and guarantees the flow equalization on the different E1 links.
At receiving terminal, the frame alignment logical block receives the starting and ending sign that finds ethernet frame the next data flow from the E1 circuit, recover original ethernet frame, isolate the identifier number of this frame simultaneously, in order ethernet data frame is sent out successively then.
An ethernet frame is divided into a plurality of parts encapsulates the principle on different E1, transmitted then respectively as shown in Figure 2:
At the E1 transmitting terminal, the data Splitting Logic is divided into the ethernet data frame that receives the data block of fixed length, according to the usage quantity of E1 link these data blocks are assigned in the different E1 circuits then and transmit, the sequence number sign that the sequence number maker produces distributes to each data block so that the data recombination when receiving.The E1 sending module is sent to far-end by the E1 circuit after this serialized data block is packaged into certain frame structure.
At the E1 receiving terminal, the E1 receiver module receives from the next data flow of circuit, separate the data block that the frame rule obtains having sequence number information according to framing, sequence number checks that logic sorts to the sequence number of all data blocks, and the ethernet frame combinational logic recovers original ethernet data frame according to the result of sequence number ordering with data block combinations then.
When Ethernet transducer Ethernet side links to each other with Ethernet switch, if this moment in the E1 side owing to reasons such as misoperation form loopback, and this moment, the Ethernet transducer was not known line loopback, and it can all send to Ethernet switch with the Ethernet bag of receiving on the circuit.Supposing has such situation, and switch has three ports, A, B, C, C with oppositely link to each other with device mutually, address 1 links to each other with A, and address 2 links to each other with B, and the bag from A to B is arranged when beginning, this bag can be broadcast to B and C, and the C choma returns this bag received from the C mouth, causes switch to think that address 1 links to each other with port C like this, finally causes switch to think that all computers all link to each other with port C, packet is lost after the C choma returns like this, causes network paralysis.
Summary of the invention:
The present invention proposes a kind of fault detection mechanism in order to solve the above problems.Generate the condition code of this machine of the unique expression of a kind of energy, send it on the circuit, detect this condition code, whether have loopback thereby detect at the circuit receiver side with the form of specific code packet.For this reason, the present invention proposes the method and apparatus that a kind of Ethernet transducer line loopback detects.
Described method comprises the steps:
Generate the condition code of unique this machine of expression of energy;
Described condition code is inserted in the data of transmission, generates packet, and this packet with condition code is sent on the circuit with described condition code;
Described condition code and the packet that receives from circuit are compared, detect relatively whether same condition code is arranged, thereby detect whether there is the circuit external loop, if detect same condition code, think then to detect loopback that will not send data to Ethernet this moment; When not detecting same condition code in a period of time, think that then loopback removes, send data to Ethernet this moment again.
Described device comprises as the lower part:
The condition code generation module, this module is connected with condition code sending module and condition code detection module, is used to generate the condition code of unique this machine of sign of energy;
The condition code sending module, this module obtains condition code from the condition code generation module, and described condition code is inserted in the data of transmission, generate packet, and this packet via line sending module with condition code is sent on the circuit with described condition code;
The condition code detection module, this module obtains condition code from the condition code generation module, and compares with the packet that receives from circuit, and whether have same condition code, whether have the circuit external loop thereby detect if relatively detecting.
Use method and apparatus of the present invention can detect the loopback that cause owing to reasons such as improper uses in the line side, general Ethernet transducer does not have this function, when linking to each other with switch and being in line loopback, can cause network paralysis.And adopt method and apparatus of the present invention, when detecting loopback, stop to send out data, thereby can avoid causing network paralysis, robustness and fault-detecting ability that raising equipment uses to Ethernet.
Below in conjunction with accompanying drawing the present invention is further described, can understand essence, advantage and the effect of technical scheme of the present invention better.
Description of drawings
Fig. 1 is to be that unit encapsulates and the basic principle schematic of the inverse multiplexing technology transmitted with whole frame Ethernet data.
Fig. 2 is divided into a plurality of parts with an ethernet frame to encapsulate the schematic diagram that transmits then respectively on different E1.
Fig. 3 is that Ethernet transducer line loopback checkout gear constitutes schematic diagram.
Fig. 4 is the schematic diagram of first embodiment of the condition code among the present invention when being based on mac address, source.
Fig. 5 is the schematic diagram of second embodiment when being based on random number of the condition code among the present invention.
Fig. 6 is the schematic diagram of three embodiment of the condition code among the present invention when being based on station address.
Fig. 7 is the workflow diagram of condition code sending module.
Fig. 8 is the workflow diagram of condition code detection module.
Embodiment
Principle schematic illustrated in figures 1 and 2 is described in the background technology part, no longer repeats here.
Be the formation of Ethernet transducer line loopback checkout gear in the dotted line among Fig. 3, as shown in the figure, condition code generation module (305) produces condition code, and gives condition code sending module (304) and special frame sign indicating number detection module (306) with condition code.
Condition code sending module (304) utilizes condition code to generate special condition code packet, and is inserted in the normal data.This packet and normal packet are different, and for example (a) indicates that in type field this bag for specific type, (b) generates ultrashort bag, and this bag does not belong to normal Ethernet data bag, therefore can be identified.The mode of another simplification be in medium access control system (MEDIUM ACCESSCONTROL writes a Chinese character in simplified form MAC) sublayer with mac address, source during as condition code, can cancellation feature sign indicating number sending module because just there is this condition code in the normal data.
Condition code detection module (306) goes out the condition code packet from receiving data identification, obtain condition code and with the condition code of this machine relatively, whether have loopback thereby judge.Described condition code is the bit vectors by this machine of the unique sign of energy of condition code generation module generation, generate special packet with this condition code, being inserted into circuit sends in the data, after arriving receiving terminal, receiver module is except sending valid data to the Ethernet transducer processes, the packet that also will carry condition code is separated and is detected, thereby judges whether to form the circuit external loop.
Fig. 4 is the schematic diagram of first embodiment of the condition code among the present invention when being based on mac address, source.Condition code generation module (405) obtains the Ethernet data bag among Fig. 4 from the Ethernet reception data of control module (403), therefrom extract source address, the mac address of the computer in the Ethernet that this address is exactly with this Ethernet transducer links to each other, totally 48, this address is just as condition code.
Fig. 5 is the schematic diagram of second embodiment when being based on random number of the condition code among the present invention.Condition code generation module (505) obtains condition code from random number generator among Fig. 5, incident at random comprises methods such as " whether Ethernet data is arranged ", " clock asynchronous-sampling ", generate seed or control algolithm running time by chance event then, obtain random number at last.The figure place of random number can be selected according to concrete condition code packet.
Fig. 6 is the schematic diagram of three embodiment of the condition code among the present invention when being based on station address.Condition code generation module (605) tributary address obtains condition code among Fig. 6.
Fig. 7 is the workflow diagram of condition code sending module.Shown among Fig. 7 that the cycle sends the process of condition code packet.After each cycle begins, obtain condition code from the condition code generation module earlier, utilize its generating feature code data bag, be inserted into then in the normal data transmit queue and go.
Fig. 8 is the workflow diagram of condition code detection module.Earlier obtain condition code from the condition code generation module, from receiving extracting data condition code packet, the two is compared then, if the condition code of the condition code that receives and this machine is the same, then indication has detected loopback; Start timer this moment,, then indicate loopback to cancel if when timer is full, do not detect the condition code the same with this machine.
According to the abovementioned embodiments of the present invention, those skilled in the art can carry out various modifications according to technical scheme of the present invention, for example type of condition code generating mode, inserted mode, circuit and quantity etc., and these all do not break away from technical scheme of the present invention.
Claims (9)
1, the method for the loopback detection in a kind of Ethernet transducer line side, it is characterized in that: described method comprises the steps:
Generate the condition code of unique this machine of expression of energy;
Described condition code is inserted in the data of transmission, generates packet, and this packet with condition code is sent on the circuit with described condition code;
Described condition code and the packet that receives from circuit are compared, detect relatively whether same condition code is arranged, thereby detect whether there is the circuit external loop, if detect same condition code, think then to detect loopback that will not send data to Ethernet this moment; When not detecting same condition code in a period of time, think that then loopback removes, send data to Ethernet this moment again.
2, method according to claim 1 is characterized in that: described condition code is the bit vectors by this machine of the unique sign of energy of condition code generation module generation.
3, method according to claim 1 is characterized in that: condition code is that the mac address, source by the received Ethernet bag of this machine ethernet port forms.
4, method according to claim 1 is characterized in that: condition code is to be generated by random number generator.
5, method according to claim 1 is characterized in that: when every machine had station address, condition code was to be generated by station address.
6, a kind of device of detection of Ethernet transducer loopback at the line side is characterized in that: comprise with lower module:
The condition code generation module, this module is connected with condition code sending module and condition code detection module, is used to generate the condition code of unique this machine of sign of energy;
The condition code sending module, this module obtains condition code from the condition code generation module, and described condition code is inserted in the data of transmission, generate packet, and this packet via line sending module with condition code is sent on the circuit with described condition code;
The condition code detection module, this module obtains condition code from the condition code generation module, and compares with the packet that receives from circuit, and whether have same condition code, whether have the circuit external loop thereby detect if relatively detecting.
7, device according to claim 6 is characterized in that: when based on the condition code of mac address, source, described condition code generation module receives the data from Ethernet and obtains condition code; The condition code sending module periodically sends this condition code, owing to comprised condition code in the normal data, so the condition code sending module also can omit; Whether the source mac address the same with this machine condition code is arranged in the Ethernet bag that receives on the condition code detection module detection line.
8, device according to claim 6 is characterized in that: when based on the condition code of random number, the condition code generation module obtains condition code from random number generator; The condition code sending module generates special data block with this condition code, periodically sends; Whether the condition code the same with this machine condition code is arranged in the data that receive on the condition code detection module detection line.
9, device according to claim 6 is characterized in that: when based on the condition code of station address, condition code generation module tributary address obtains condition code; The condition code sending module generates special data block with this condition code, periodically sends; Whether the condition code the same with this machine condition code is arranged in the data that receive on the condition code detection module detection line.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100337933A CN100344116C (en) | 2004-04-20 | 2004-04-20 | A method and apparatus for Ethernet converter line side loop back detection |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004100337933A CN100344116C (en) | 2004-04-20 | 2004-04-20 | A method and apparatus for Ethernet converter line side loop back detection |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1691609A true CN1691609A (en) | 2005-11-02 |
CN100344116C CN100344116C (en) | 2007-10-17 |
Family
ID=35346755
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2004100337933A Expired - Fee Related CN100344116C (en) | 2004-04-20 | 2004-04-20 | A method and apparatus for Ethernet converter line side loop back detection |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100344116C (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007107066A1 (en) * | 2006-03-18 | 2007-09-27 | Huawei Technologies Co., Ltd. | A method and a communication device of the loopbacked detection based on ethernet |
CN100461717C (en) * | 2006-01-17 | 2009-02-11 | 华为技术有限公司 | Communication device and its detecting method |
WO2009074090A1 (en) * | 2007-12-12 | 2009-06-18 | Huawei Technologies Co., Ltd. | Method and apparatus for detecting link |
CN101132319B (en) * | 2006-08-21 | 2010-11-03 | 华为技术有限公司 | Method for Ethernet operation and maintaining fault detection |
CN101919207A (en) * | 2007-12-13 | 2010-12-15 | 北电网络有限公司 | Be used for method and system in the PBT main line loopback business of QiQ Ethernet ring and 1:1 protection |
CN102195746A (en) * | 2010-03-17 | 2011-09-21 | 瑞昱半导体股份有限公司 | Loop detection method and network device applying same |
CN101232343B (en) * | 2008-01-21 | 2012-03-07 | 中兴通讯股份有限公司 | Method for locating embedded control path fault |
CN101316197B (en) * | 2007-05-28 | 2012-05-30 | 中国电信股份有限公司 | Detection method and apparatus for Ethernet port loop of MSTP equipment |
CN101820363B (en) * | 2009-02-27 | 2014-12-03 | 中国电信股份有限公司 | Ethernet port loopback detection method and multi-service transport platform |
US9319268B2 (en) | 2006-06-29 | 2016-04-19 | Rpx Clearinghouse Llc | Q-in-Q Ethernet rings |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
SE512055C2 (en) * | 1997-07-04 | 2000-01-17 | Ericsson Telefon Ab L M | Detection of loop |
JP2003152743A (en) * | 2001-11-14 | 2003-05-23 | Ando Electric Co Ltd | Ethernet (r)-hsd converter and its capsulating loop method |
CN1543136A (en) * | 2003-11-04 | 2004-11-03 | 港湾网络有限公司 | Ether ring redundancy protection method |
-
2004
- 2004-04-20 CN CNB2004100337933A patent/CN100344116C/en not_active Expired - Fee Related
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100461717C (en) * | 2006-01-17 | 2009-02-11 | 华为技术有限公司 | Communication device and its detecting method |
WO2007107066A1 (en) * | 2006-03-18 | 2007-09-27 | Huawei Technologies Co., Ltd. | A method and a communication device of the loopbacked detection based on ethernet |
US9319268B2 (en) | 2006-06-29 | 2016-04-19 | Rpx Clearinghouse Llc | Q-in-Q Ethernet rings |
CN101132319B (en) * | 2006-08-21 | 2010-11-03 | 华为技术有限公司 | Method for Ethernet operation and maintaining fault detection |
CN101316197B (en) * | 2007-05-28 | 2012-05-30 | 中国电信股份有限公司 | Detection method and apparatus for Ethernet port loop of MSTP equipment |
WO2009074090A1 (en) * | 2007-12-12 | 2009-06-18 | Huawei Technologies Co., Ltd. | Method and apparatus for detecting link |
CN101202677B (en) * | 2007-12-12 | 2010-11-03 | 华为技术有限公司 | Method and device for detecting link |
CN101919207A (en) * | 2007-12-13 | 2010-12-15 | 北电网络有限公司 | Be used for method and system in the PBT main line loopback business of QiQ Ethernet ring and 1:1 protection |
CN101232343B (en) * | 2008-01-21 | 2012-03-07 | 中兴通讯股份有限公司 | Method for locating embedded control path fault |
CN101820363B (en) * | 2009-02-27 | 2014-12-03 | 中国电信股份有限公司 | Ethernet port loopback detection method and multi-service transport platform |
CN102195746A (en) * | 2010-03-17 | 2011-09-21 | 瑞昱半导体股份有限公司 | Loop detection method and network device applying same |
Also Published As
Publication number | Publication date |
---|---|
CN100344116C (en) | 2007-10-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104580031B (en) | POS based on multi-protocols link encapsulation technology separates frame framing device and method | |
JP4040762B2 (en) | Method and apparatus for transmitting packet data from a medium access controller | |
AU728408B2 (en) | Distributed network synchronization system | |
CA2322908A1 (en) | Semi transparent tributary for synchronous transmission | |
JPH0575651A (en) | Packet transmission system | |
CN100344116C (en) | A method and apparatus for Ethernet converter line side loop back detection | |
CN1575560A (en) | Method and apparaturs for translating sdh/sonet frames to Ethernet frames | |
CN101146046A (en) | A throughput testing method and testing system | |
CN101848168B (en) | Target MAC (Media Access Control) address based flow control method, system and equipment | |
CN101035143B (en) | Physical layer chip, method for transferring the signal and switcher | |
KR20060085672A (en) | Communications bus having low latency interrupts and control signals, hotpluggability error detection and recovery and bandwidth allocation | |
JP2000224199A (en) | Time division multiple bus synchronizing signal concentrator, data transmission system and method therefor | |
US7072348B2 (en) | System and method for in-service reconfiguration of a synchronous optical communications network | |
JP2002185419A (en) | Method for use in unit of communication system and unit | |
CA2403504A1 (en) | Method and apparatus for the fair and efficient transfer of variable length packets using fixed length segments | |
US6973072B1 (en) | High performance protocol for an interconnect system of an intermediate network node | |
CN101345612A (en) | Data transmission method and device based on time division multiplexing link | |
CN1226846C (en) | Method using multiplex channel to implement transmission of one line of network data | |
CN1479459A (en) | Ethernet optical fiber transceiver and data transceiving method used on said tranceiver | |
CN102223282A (en) | Method for establishing virtual multi-Ethernet channel through optical fibre | |
CN101399751B (en) | Switching system and method in communication network | |
CN1206839C (en) | Reverse multiplexer circuit layer protecting and restoring method and device | |
Hekmat | Communication networks | |
CN113141322A (en) | Data communication method, data communication device and computer storage medium | |
JP2003018162A (en) | Maintenance control system and maintenance control method |
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 | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20071017 Termination date: 20140420 |