CN101047712B - Device and method for detecting Ethernet interface configuration - Google Patents

Device and method for detecting Ethernet interface configuration Download PDF

Info

Publication number
CN101047712B
CN101047712B CN2006100828953A CN200610082895A CN101047712B CN 101047712 B CN101047712 B CN 101047712B CN 2006100828953 A CN2006100828953 A CN 2006100828953A CN 200610082895 A CN200610082895 A CN 200610082895A CN 101047712 B CN101047712 B CN 101047712B
Authority
CN
China
Prior art keywords
network equipment
opposite end
auto
negotiation
bit
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
Application number
CN2006100828953A
Other languages
Chinese (zh)
Other versions
CN101047712A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2006100828953A priority Critical patent/CN101047712B/en
Publication of CN101047712A publication Critical patent/CN101047712A/en
Application granted granted Critical
Publication of CN101047712B publication Critical patent/CN101047712B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

This invention provides a test device collocated for Ethernet interfaces and a method, in which, the device includes: an ACK identifying module used in identifying the ACK from the ability acknowledgement information of the opposite network equipment when the interface state of the local equipment is forbidden negotiating and the opposite re-starts up the negotiation flow, and an opposite interface state deciding module used in deciding the interface state of the opposite is the auto-negotiating state when the ACK identified by the ACK identifying module is changed, which can automatically test if the mode of the two ends is the same quickly.

Description

Ethernet interface configuration detection device and method
Technical field
The present invention relates to the communications field, relate in particular to a kind of Ethernet interface configuration detection device and method.
Background technology
Gigabit Ethernet is a kind of technology of present extensive use, in 802.3 agreements specific definition the state machine under the auto negotiation mode:
When all being set to auto negotiation mode at two ends, both sides send mutually/the C/ code stream, if receive continuously 3 identical/C/ code streams and and the local terminal mode of operation be complementary, return to then that one of the other side has that affirmation (ACK) replys /the C/ sign indicating number, after the opposite end receives ACK information, think that both can intercommunication, port is set is normal (UP) state;
When two ends all were compulsory mode, both sides sent mutually/the I/ code stream, a termination receives/the I/ code stream after, think that the opposite end is the port that is complementary with oneself, it is normal condition that the local terminal port directly is set.
The other end is set to auto negotiation mode if an end is set to compulsory mode, define in 802.3 agreements in this case and imperfection, this situation of unspecial explanation.
As shown in Figure 1, the auto-negotiation flow process may further comprise the steps:
S102 judges at first whether local terminal is that auto-negotiation enables, and enables if not auto-negotiation, then sends the IDLE sign indicating number.
Step S104 jumps to " link OK when forbidding auto-negotiation " state.
Step S106 enables if local terminal is an auto-negotiation, transmission/C/ code stream then, and jump to " auto-negotiation restarts " state and open the link clocking device.
Step S108, the link clocking device time to constantly, enter " ability detection " state, in this state, the two ends ability is detected and mates.
Step S110 jumps to " replying detection " state after the capabilities match, after the response matches success, the auto-negotiation process is finished substantially.
In some cases, equipment may be supported down one page function, at this moment, can there be " next page wait " state (step S112) before at " replying detection " state and " judging whether auto-negotiation enables ", and after " replying detection " state, enter " reply and finish " state (step S114), enter " detection of IDLE sign indicating number " state (step S116) then, enter " link OK " state (step S118) at last.
One end is set to compulsory mode and connection situation that the other end is set under the auto negotiation mode is:
Suppose port A:mr_an_enable=true, port B:mr_an_enable=false, both do not connect, and this moment, port A and B can faults.After the correct connection of two-port, according to the auto-negotiation flow chart of 802.3 protocol definitions, port A and port B restart auto-negotiation, because the mr_an_enable=false of port B, so port B sends the IDLE code stream, and directly enters the LINK_OK state, the state of port B becomes normally.And the mr_an_enable=true of port A, can to the opposite end send have the local terminal negotiation information /the C/ code stream, but opposite end B sends the negotiation information of local terminal can not for port A, also can not send ACK message, so port A can be fault (down) state.
Suppose port A:mr_an_enable=true, port B:mr_an_enable=true, after two-port is all normal, revise port B:mr_an_enable=false, at this moment port B will still be a normal condition, but the state of port A is uncertain, and different chip manufacturers design gets different, following situation can occur:
A kind of situation is: port A can not restart the auto-negotiation flow process, and at this moment the state of port A remains normal.
Another kind of situation is: port A can restart the auto-negotiation flow process, and at this moment the state of port A will become fault.
The shortcoming of prior art scheme is the incomprehensiveness to the opposite equip. pattern, how to go the active inquiry terminal device to guarantee the identical of two ends pattern by manpower.
The two ends that gigabit Ethernet connects down must guarantee the identical of two ends pattern, if inequality will going wrong.When the two ends pattern is inconsistent at the very start, be certain to cause auto-negotiation one side ports fault, and the reason of port failure also may be that physical connection is bad, also might be that the two ends ability does not match, it is inconsistent also might to be that the two ends pattern is provided with, like this we whether be obliged to go to inquire about two ends pattern setting by the people identical, cumbersome.And the worse situation is, when all being set to earlier have people's certain end to be set to auto-negotiation again after auto-negotiation enables normally, two ends forbid, at this moment most of chip also will be that two ends are normal, therefore may also can not found in this case because two ends are normal by the people, because certain reason will cause this port status to become fault after restarting auto-negotiation, make service disconnection when an end that remains auto-negotiation.
Therefore, need a kind ofly can detect the unmatched scheme of two ends pattern automatically, when the two ends pattern is inequality, alarm immediately, make the user can know this situation very soon.
Summary of the invention
At above problem, the invention provides a kind of Ethernet interface configuration detection device and method, can detect not matching of two ends pattern, and alarm to the foreground.
Ethernet interface configuration detection device of the present invention is arranged in the network equipment, comprise: the acknowledgement bit identification module, the Interface status that is used at the local terminal network equipment is that auto-negotiation is forbidden and the opposite end network equipment restarts under the situation of auto-negotiation flow process, identification is from the affirmation bit (ACK) in the ability confirmation of the opposite end network equipment, wherein, the ability confirmation comprises/rx_Config_Reg of C/ code stream form, and acknowledgement bit is the D14 bit among the described rx_Config_Reg; And opposite end Interface status determination module, being used for becoming under 1 the situation from 0 in the value of the D14 bit that the acknowledgement bit identification module identifies, the Interface status of determining the opposite end network equipment is the auto-negotiation enabled state.
Ethernet interface configuration detection device of the present invention also comprises: the timing detection module is used for the state that timing detects the definite opposite end network equipment of opposite end Interface status determination module; And alarm module, being used at the state that the timing detection module detects the determined opposite end network equipment is under the auto-negotiation situation about enabling, and reports to the police to the foreground.
Ethernet interface configuration detection method of the present invention may further comprise the steps: step SS302, Interface status at the local terminal network equipment is that auto-negotiation is forbidden and the opposite end network equipment restarts under the situation of auto-negotiation flow process, the identification of the local terminal network equipment is from the affirmation bit (ACK) in the ability confirmation of the opposite end network equipment, wherein, the ability confirmation comprises/rx_Config_Reg of C/ code stream form, and acknowledgement bit is the D14 bit among the described rx_Config_Reg; And step S304, becoming under 1 the situation from 0 in the value of the D14 bit that identifies, the local terminal network equipment determines that the Interface status of the opposite end network equipment is the auto-negotiation enabled state.
Ethernet interface configuration detection method of the present invention also comprises: step S306, and timing detects the state of the definite opposite end network equipment of opposite end Interface status determination module; And step S308, the state that detects the determined opposite end network equipment when regularly detecting is that the local terminal network equipment is reported to the police to the foreground under the auto-negotiation situation about enabling.
Whether by the present invention, it is identical to detect the two ends pattern apace automatically, thereby can avoid because the two ends pattern problem that causes the two ends butt joint to occur inequality, for the reliable application of carrier class network equipment is given security.
Description of drawings
Accompanying drawing provides further understanding of the present invention, and is attached to a part that constitutes the application among the application, illustrates that with specification embodiments of the invention are to explain principle of the present invention.In the accompanying drawings,
Fig. 1 is the flow chart according to the auto-negotiation process of prior art;
Fig. 2 is the block diagram according to Ethernet interface configuration detection device of the present invention;
Fig. 3 is the flow chart according to Ethernet interface configuration detection method of the present invention; And
Fig. 4 is the flow chart when auto-negotiation is forbidden according to an embodiment of the invention.
Embodiment
Describe embodiments of the invention in detail below with reference to accompanying drawing.
Fig. 2 is the block diagram according to Ethernet interface configuration detection device of the present invention.As shown in Figure 2, Ethernet interface configuration detection device of the present invention is arranged in the network equipment, comprise: acknowledgement bit identification module 202, the Interface status that is used at the local terminal network equipment is that auto-negotiation is forbidden and the opposite end network equipment restarts under the situation of auto-negotiation flow process, and identification is from the affirmation bit (ACK) in the ability confirmation of the opposite end network equipment; And opposite end Interface status determination module 204, being used under the situation that the affirmation bit that the acknowledgement bit identification module identifies changes, the Interface status of determining the opposite end network equipment is the auto-negotiation enabled state.
The Ethernet interface configuration detection device also comprises: timing detection module 206 is used for the state that timing detects the definite opposite end network equipment of opposite end Interface status determination module; And alarm module 208, being used at the state that the timing detection module detects the determined opposite end network equipment is under the auto-negotiation situation about enabling, and reports to the police to the foreground.
Wherein, the ability confirmation comprises/rx_Config_Reg of C/ code stream form.Acknowledgement bit is the D14 bit among the rx_Config_Reg.
Become under 1 the situation from 0 in the value of acknowledgement bit, opposite end Interface status determination module determines that the Interface status of the opposite end network equipment is the auto-negotiation enabled state.
Fig. 3 is the flow chart according to Ethernet interface configuration detection method of the present invention.As shown in Figure 3, Ethernet interface configuration detection method of the present invention may further comprise the steps: step S302, Interface status at the local terminal network equipment is that auto-negotiation is forbidden and the opposite end network equipment restarts under the situation of auto-negotiation flow process, and the local terminal network equipment is discerned from the affirmation bit (ACK) in the ability confirmation of the opposite end network equipment; And step S304, under the situation that the affirmation bit that identifies changes, the local terminal network equipment determines that the Interface status of the opposite end network equipment is the auto-negotiation enabled state.
Ethernet interface configuration detection method also comprises: step S306, and timing detects the state of the definite opposite end network equipment of opposite end Interface status determination module; And step S308, the state that detects the determined opposite end network equipment when regularly detecting is that the local terminal network equipment is reported to the police to the foreground under the auto-negotiation situation about enabling.
Wherein, the ability confirmation comprises/rx_Config_Reg of C/ code stream form.Acknowledgement bit is the D14 bit among the rx_Config_Reg.
Become under 1 the situation from 0 in the value of acknowledgement bit, the local terminal network equipment determines that the Interface status of the opposite end network equipment is the auto-negotiation enabled state.
As can be seen from Figure 1, if mr_an_enable=true, then the status transition chart of state machine process is: AN_ENABLE->AN_RESTART->ABILITY_DETECT->ACKNOWLEDGE_DETECT, if at this moment the opposite end is a forced regime, this state machine will come back to A condition, just, no matter the opposite end is any state, local terminal is if auto-negotiation enables, state machine all will pass through ABILITY_DETECT and this state of ACKNOWLEDGE_DETECT, the D14 of tx_Config_Reg is changed to 0 transmission earlier when the ABILITY_DETECT state as can be seen, is changed to 1 again and sends when the ACKNOWLEDGE_DETECT state.
Tx_Config_Reg is defined as follows shown in the table:
Figure G2006100828953D00071
Wherein, D14 is ACK bit, is the ACK information that sends to opposite equip. under the auto negotiation mode.
An end that is set to forbid for auto-negotiation, can discern/the C/ code stream, therefore just can identify also that the opposite end sends over /the C/ code stream in the situation of change of D14 value, if detect D14 from 0 to 1 variation is arranged, just can judge the opposite end is the auto-negotiation enable mode at present.This process can followingly be expressed as:
IF_mr_an_enable=false
THEN
xmit<=IDLE
Put AN_DISABLE_LINK_OK
xmit<=DATA
detect?rx_Config_Reg<D14>
There is rx_Config_Reg<D14 in IF〉variation of 0->1 arranged
THEN
The opposite end is that auto-negotiation enables
ELSE
The opposite end is that auto-negotiation is forbidden
END
END
Judge at first whether the local terminal network equipment is that auto-negotiation enables, enable if not auto-negotiation, then send the IDLE sign indicating number, jump to " link OK when forbidding auto-negotiation " state, and data are sent to the opposite end network equipment, detect rx_Config_Reg<D14 simultaneously 〉, if there is rx_Config_Reg<D14〉from 0 to 1 variation, then judging the opposite end network equipment is that auto-negotiation enables, if do not change, then judging the opposite end is that auto-negotiation is forbidden.
Flow process when auto-negotiation is forbidden may further comprise the steps as shown in Figure 4:
S402 judges at first whether local terminal is that auto-negotiation enables, and enables if not auto-negotiation, then sends the IDLE sign indicating number.
S404 jumps to " link OK when forbidding auto-negotiation " state.
S406 is that auto-negotiation forbids and the opposite end network equipment when beginning to restart auto-negotiation that the local terminal network equipment detects the rx_Config_Reg<D14 in the network equipment transmitted stream of opposite end at the local terminal network equipment〉variation;
Step S408 if D14 becomes 1 from 0, illustrates that then the opposite end network equipment is that auto-negotiation enables, otherwise forbids for auto-negotiation.
S410 carries out the state of the opposite end network equipment that regularly inquiry judged at the timer of local terminal network equipment setting such as 500ms.
S412 enables if the opposite end network equipment is an auto-negotiation, then to foreground alarm, illustrate to be provided with before the type order of two ends inconsistently that the user detects the pattern that the opposite end pattern is adjusted local terminal afterwards, makes the two ends pattern identical, carries out proper communication.
Whether by the present invention, it is identical to make system detect the two ends pattern apace automatically, thereby can avoid because the two ends pattern problem that causes the two ends butt joint to occur inequality, for the reliable application of carrier class network equipment is given security.
Be the preferred embodiments of the present invention only below, be not limited to the present invention, for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (4)

1. an Ethernet interface configuration detection device is arranged in the network equipment, it is characterized in that comprising:
The acknowledgement bit identification module, the Interface status that is used at the local terminal network equipment is that auto-negotiation is forbidden and the opposite end network equipment restarts under the situation of auto-negotiation flow process, identification is from the affirmation bit (ACK) in the ability confirmation of the opposite end network equipment, wherein, described ability confirmation comprises/rx_Config_Reg of C/ code stream form, and described acknowledgement bit is the D14 bit among the described rx_Config_Reg; And
Opposite end Interface status determination module is used for becoming under 1 the situation from 0 in the value of the D14 bit that described acknowledgement bit identification module identifies, and the Interface status of determining the described opposite end network equipment is the auto-negotiation enabled state.
2. Ethernet interface configuration detection device according to claim 1 is characterized in that, described Ethernet interface configuration detection device also comprises:
Regularly detection module is used for the state that timing detects the definite described opposite end network equipment of described opposite end Interface status determination module; And
Alarm module, being used at the state that described timing detection module detects the determined opposite end network equipment is under the auto-negotiation situation about enabling, and reports to the police to the foreground.
3. Ethernet interface configuration detection method is characterized in that may further comprise the steps:
Step S302, Interface status at the local terminal network equipment is that auto-negotiation is forbidden and the opposite end network equipment restarts under the situation of auto-negotiation flow process, described local terminal network equipment identification is from the affirmation bit (ACK) in the ability confirmation of the opposite end network equipment, wherein, described ability confirmation comprises/rx_Config_Reg of C/ code stream form, and described acknowledgement bit is the D14 bit among the described rx_Config_Reg; And
Step S304 becomes under 1 the situation from 0 in the value of the D14 bit that identifies, and the described local terminal network equipment determines that the Interface status of the described opposite end network equipment is the auto-negotiation enabled state.
4. Ethernet interface configuration detection method according to claim 3 is characterized in that, also comprises:
Step S306, timing detects the state of the definite described opposite end network equipment of opposite end Interface status determination module; And
Step S308, the state that detects the determined opposite end network equipment when regularly detecting are that the described local terminal network equipment is reported to the police to the foreground under the auto-negotiation situation about enabling.
CN2006100828953A 2006-06-19 2006-06-19 Device and method for detecting Ethernet interface configuration Expired - Fee Related CN101047712B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2006100828953A CN101047712B (en) 2006-06-19 2006-06-19 Device and method for detecting Ethernet interface configuration

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2006100828953A CN101047712B (en) 2006-06-19 2006-06-19 Device and method for detecting Ethernet interface configuration

Publications (2)

Publication Number Publication Date
CN101047712A CN101047712A (en) 2007-10-03
CN101047712B true CN101047712B (en) 2010-04-21

Family

ID=38771922

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2006100828953A Expired - Fee Related CN101047712B (en) 2006-06-19 2006-06-19 Device and method for detecting Ethernet interface configuration

Country Status (1)

Country Link
CN (1) CN101047712B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350823B (en) * 2008-08-21 2012-05-23 中兴通讯股份有限公司 Negotiation method and apparatus for connecting Ethernet port link
CN101582804A (en) * 2009-06-16 2009-11-18 中兴通讯股份有限公司 Method of automatic abutment joint of interfaces of network equipment management systems and device
CN101640680B (en) * 2009-09-02 2012-01-04 杭州华三通信技术有限公司 Network access control method, system and device
CN102546289A (en) * 2011-11-28 2012-07-04 曙光信息产业(北京)有限公司 Device and method for guaranteeing normal communication of Ethernet
CN103501239B (en) 2013-09-13 2017-01-04 华为技术有限公司 A kind of port status synchronous method, relevant device and system
CN106941426B (en) * 2016-01-05 2019-06-04 中兴通讯股份有限公司 A kind of chain processing method and device
CN107547265B (en) * 2017-07-28 2020-12-04 新华三技术有限公司 Port configuration method and device
CN108123830B (en) * 2017-12-15 2021-02-26 新华三技术有限公司 Port state control method and device
CN110838933B (en) * 2018-08-17 2022-08-09 上海华为技术有限公司 Configuration method of Ethernet optical port and Ethernet equipment
CN111988162B (en) * 2019-05-24 2022-11-29 中兴通讯股份有限公司 Method and device for managing port configuration mode
CN112866118B (en) * 2019-11-12 2022-09-02 北京华为数字技术有限公司 Method, device and storage medium for detecting port capability information of network equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6665275B1 (en) * 1999-10-13 2003-12-16 3Com Corporation Network device including automatic detection of duplex mismatch
CN1592255A (en) * 2003-09-02 2005-03-09 华为技术有限公司 Method and device for supporting Ethernet self-consultation in medium access control
CN1677964A (en) * 2004-03-29 2005-10-05 富士通株式会社 Network device provided with Ethernet interface
CN1708027A (en) * 2004-06-07 2005-12-14 中兴通讯股份有限公司 Method for transmitting Ethernet equipment duplex mode information

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6665275B1 (en) * 1999-10-13 2003-12-16 3Com Corporation Network device including automatic detection of duplex mismatch
CN1592255A (en) * 2003-09-02 2005-03-09 华为技术有限公司 Method and device for supporting Ethernet self-consultation in medium access control
CN1677964A (en) * 2004-03-29 2005-10-05 富士通株式会社 Network device provided with Ethernet interface
CN1708027A (en) * 2004-06-07 2005-12-14 中兴通讯股份有限公司 Method for transmitting Ethernet equipment duplex mode information

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Geoffrey O. Thompson et.al.Work Progresses on Gigabit Ethernet.Computer30 5.1997,30(5),95-96. *
朱宏艳.以太网中的自协商技术.当代通信 23.2001,(23),55-58.
朱宏艳.以太网中的自协商技术.当代通信 23.2001,(23),55-58. *

Also Published As

Publication number Publication date
CN101047712A (en) 2007-10-03

Similar Documents

Publication Publication Date Title
CN101047712B (en) Device and method for detecting Ethernet interface configuration
US7792016B2 (en) Network relay device for relaying data in a network and control method for the same
US20090232152A1 (en) Method and apparatus for aggregating ports
US20100182933A1 (en) Method And Switching Device For Stack Port Configuration
JP3857317B2 (en) Automatic negotiation progress monitor
EP2391061B1 (en) Method, apparatus and system for configuring master-slave network devices
US7257739B2 (en) Diagnosis of link failures in a network
CN102148724B (en) Link detecting method and network access device
CN102457402B (en) Method for detecting multiple active equipment conflict and apparatus thereof
RU2587407C2 (en) Multi-ring ethernet network and method for protection thereof
US7242693B1 (en) Method and apparatus for fiber autonegotiation
US6992989B2 (en) Method for solving a mismatched negotiation problem between an auto-negotiation mode and an enforce mode
CN105981319A (en) Participant station for a bus system, and method for increasing the data rate of a bus system
CN104104596A (en) Intelligent resilient framework (IRF) split processing method and device
US20020118412A1 (en) Network device including detection of link status employing auto-negotiation
CN101478775B (en) Detection method, system and equipment for multi-neighbor connection state
CN102045243A (en) Method and system for of adaptively recognizing duplex mode of network port of opposite terminal among network devices
US8116767B2 (en) Method and system for retry of packet data calls
CN107154871B (en) VOIP business master-slave conversion system and method based on distributed DSP
US20060095548A1 (en) Method for the automatic selection of a security configuration for terminals of nomad users
CN102932497A (en) Method, device and system for obtaining internet protocol address
JP3666412B2 (en) Communications system
CN100388694C (en) Loopback testing method
JP2016500237A (en) Data stream and data packet transmission method and apparatus
CN101247280B (en) Periodic line polymerization configuration fault detecting 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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100421

Termination date: 20170619

CF01 Termination of patent right due to non-payment of annual fee