CN102201943A - Method for detecting mismatching of duplex modes two ends of Ethernet link and Ethernet interface - Google Patents

Method for detecting mismatching of duplex modes two ends of Ethernet link and Ethernet interface Download PDF

Info

Publication number
CN102201943A
CN102201943A CN2010101361070A CN201010136107A CN102201943A CN 102201943 A CN102201943 A CN 102201943A CN 2010101361070 A CN2010101361070 A CN 2010101361070A CN 201010136107 A CN201010136107 A CN 201010136107A CN 102201943 A CN102201943 A CN 102201943A
Authority
CN
China
Prior art keywords
ethernet interface
change
mode
rate
ethernet
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.)
Pending
Application number
CN2010101361070A
Other languages
Chinese (zh)
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.)
SHANGHAI ONLAN COMMUNICATION TECHNOLOGY Co Ltd
Original Assignee
SHANGHAI ONLAN COMMUNICATION TECHNOLOGY 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 SHANGHAI ONLAN COMMUNICATION TECHNOLOGY Co Ltd filed Critical SHANGHAI ONLAN COMMUNICATION TECHNOLOGY Co Ltd
Priority to CN2010101361070A priority Critical patent/CN102201943A/en
Publication of CN102201943A publication Critical patent/CN102201943A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to the field of communication, and discloses a method for detecting the mismatching of duplex modes at the two ends of an Ethernet link and an Ethernet interface. The method comprises the following steps of: cyclically judging the duplex mode of the interface; periodically detecting the packet number change rate of an alignment error of the interface in a preset time if the interface is currently in a full-duplex mode, and if the packet number change rate of the alignment error is greater than a preset change rate upper limit, setting the mode of the interface into a half-duplex mode and returning to the judgment of the duplex mode of the interface, otherwise returning to the periodical detection of the packet number change rate of the alignment error of the interface; and periodically detecting the post-collision frame number change rate of the interface in the preset time if the interface is currently in the half-duplex mode, setting the mode of the interface into the full-duplex mode and returning to the step of cyclically judging the duplex mode of the interface if the post-collision frame number change rate is greater than the preset change rate upper limit, otherwise returning to the periodical detection of the post-collision frame number change rate of the interface in the preset time.

Description

The two ends unmatched detection method of duplex and the Ethernet interface of ethernet link
Technical field
The present invention relates to the communications field, relate in particular to a kind of two ends unmatched detection method of duplex and Ethernet interface of ethernet link.
Background technology
Ethernet is a kind of network media of present extensive use, current computer almost all possesses ethernet network interface card (abbreviation network interface card), and this Ethernet card obtains a large amount of utilizations in local area network (LAN), telecommunications access network, when communication, each equipment is by Ethernet card access to LAN, telecommunications access network, and realization network service.
The communication mode of Ethernet card mainly contains semiduplex mode or full-duplex mode at present.
Wherein, semiduplex mode mainly is meant: the communication link between two communication equipments only allows an end to send the mode of operation of data to an other end at any one time.When the communication link of equipment works in semiduplex mode:
If the communication equipment of the communication link other end also sent data to communication link when the equipment of a certain end of communication link sent data by link, at this moment, can on communication link, clash (this situation is called as conflict).
When half-duplex link clashes, mistake can appear in the data that communication equipment is received: suppose the signal " 1 " that certain device A is sent to communication link, and the signal that the equipment B of the communication link other end is sent to communication link " 0 ", because communication link clashes, test at the equipment B end this moment, the signal that equipment B receives is " 0 ", and is not the actual signal that sends of device A " 1 ", the problem of data transmission fault occurs.
Full-duplex mode is meant: the communication link of two communication equipments, there are transmission, receive path at any time simultaneously, and therefore the communication equipment at these communication two ends can independently separately send data, receive data to the other side, and can not send conflict.
In actual applications, may there be the unmatched situation of ethernet link terminal device duplex as shown in Figure 1: for the network service between two communication equipments, the Ethernet card of communication link one end end equipment 101 works in semiduplex mode, and the Ethernet card of communication link other end equipment 102 works in full-duplex mode.At this moment, suppose that equipment 101 is when equipment 102 sends data, equipment 102 also wishes to send data to equipment 101, because equipment 102 works under the full-duplex mode, so equipment 102 can directly directly send data to communication link, and following situation will take place at the equipment 101 that works under the semiduplex mode in this moment:
Work in the equipment 102 of full-duplex mode, equipment 102 not tube apparatus 101 carries out any operation, and continues to send data always, sends up to data and finishes.
Work in the equipment 101 of semiduplex mode, the Ethernet card of equipment 101 will detect local terminal and receive data when sending data, and equipment 101 will think and this moment the communication link conflict take place that equipment 101 stops to send data.
Above situation can cause following problem:
At equipment 101 ends, equipment 101 produces conflict after sending data, and may be just to have begun to transmit data this moment, also may be to have sent the data that surpass 512 bits.
At equipment 102 ends, equipment 102 is after start receiving data because the data that stop suddenly of equipment 101 send, the data that equipment 102 receives have wrong check and, perhaps have wrong length.
Therefore, in the transmission course of reality, when the dual-mode at ethernet link two ends does not match, will cause the networking data forwarding performance very big decline to occur.Through actual test, for bandwidth is the link of 100Mbps, carries out file transfer protocol (FTP) (File TransferProtocol is called for short FTP) transfer of data under dual-mode does not match, the actual speed that obtains drops to about 170Kbps, and also promptly actual throughput only is 1/602 of a bandwidth.
In the prior art, for fear of the problem that duplex does not match and causes network transmission efficiency to reduce, people often take following technical scheme:
First kind of solution: the data forwarding speed that causes network only should not possess more than one percent of speed because duplex matches, and problem is searched and more complicated, therefore when networking, network manager or networking merchant are set to for the dual-mode of the Ethernet interface (network interface card) of all switches in the network: full-duplex mode, guarantee that each communication link between each network server device on Internet Service Provider's aspect all is in full-duplex mode
But adopt this method also to have following problem: though on the network provider aspect, all Ethernet service equipments (switch or the like) are set to full-duplex mode.But,, in whole Ethernet, exist so and still have duplexing unmatched problem if the user terminal that this Ethernet connects often is defaulted as semiduplex mode.
Therefore, adopt above-mentioned method, require to insert in this Ethernet all terminal uses all the dual-mode of the terminal Ethernet interface of local terminal be set to full-duplex mode, if this Ethernet has connected 2000 each user, need this 2000 each user on the computer of oneself, to carry out the dual-mode setting of Ethernet interface respectively so.And in reality, a lot of terminal uses and the unclear dual-mode how Ethernet interface is set in computer are so there is great unrealistic property in this technical scheme.
Second kind of solution: the all-network in the Ethernet provides the Ethernet interface of equipment to be set to semiduplex mode, makes the all-network equipment in the network and the user terminal of access all be operated in semiduplex mode, avoids duplexing unmatched problem.Adopt this scheme not need the terminal use to carry out the Ethernet setting, actual more with respect to first kind of solution.
But adopt this solution also to have following problem:
Be set to full-duplex mode as long as have in the network people to have a mind to or be not intended to own Ethernet interface pressure, then promptly there is duplexing unmatched problem in certain communication link of Ethernet, causes the message transmission rate of network will fall very lowly.When this problem occurred simultaneously, also there was bigger problem in the network maintenance staff source that searches problem.
To sum up, the employing prior art solutions can not solve the duplexing unmatched problem in the Ethernet fully, and when fault occurred, the network maintenance staff carried out failure diagnosis, repairs also relatively effort.
Summary of the invention
The present invention's first purpose is to provide a kind of unmatched detection method of two ends duplex of ethernet link.
The present invention's first purpose is to provide a kind of unmatched checkout gear of two ends duplex of ethernet link.
The unmatched detection method of two ends duplex of a kind of ethernet link that the embodiment of the invention provides comprises:
The dual-mode of each this Ethernet interface of Ethernet interface cycle criterion at described ethernet link two ends:
If this is the current full-duplex mode that is in of network interface too, then regularly detect the bag amount change of the correction error of described Ethernet interface,
If the bag amount change of described correction error is greater than the predetermined rate of change upper limit, then the pattern of this Ethernet interface is set to semiduplex mode, return step: the dual-mode of this Ethernet interface of cycle criterion, otherwise: return the bag amount change that regularly detects the correction error of described Ethernet interface;
If this is the current semiduplex mode that is in of network interface too, then regularly detect the back conflict number of frames rate of change of described Ethernet interface,
If described back conflict number of frames rate of change is greater than the predetermined rate of change upper limit, then the pattern of this Ethernet interface is set to full-duplex mode, return step: the dual-mode of this Ethernet interface of cycle criterion, otherwise: return the back conflict number of frames rate of change that regularly detects described Ethernet interface.
Alternatively, detect the bag amount change of the correction error of described Ethernet interface, comprising:
Read the bag quantity X of the current correction error of this Ethernet interface,
Start timer, time-out time is T,
When timer expiry, read the bag quantity Y of current correction error;
With the bag amount change of (Y-X)/T as the correction error of described Ethernet interface.
Alternatively, detect the back conflict number of frames rate of change of described Ethernet interface, comprising:
Read the current back conflict number of frames x of this Ethernet interface,
Start timer, time-out time is t,
When timer expiry, read current back conflict number of frames y;
With the back conflict number of frames rate of change of (y-x)/t as described Ethernet interface.
Alternatively, described predetermined rate of change upper limit numerical value is 2.
A kind of Ethernet interface that the embodiment of the invention provides comprises:
The dual-mode identifying unit is used for the dual-mode of this Ethernet interface of cycle criterion;
Erroneous packets rate of change detecting unit is used for the erroneous packets rate of change that timing detects this Ethernet interface,
When this Ethernet interface is current when being in full-duplex mode, the bag amount change that described erroneous packets rate of change is a correction error,
When this Ethernet interface is current when being in semiduplex mode, described erroneous packets rate of change is a back conflict number of frames rate of change;
Comparing unit is used to judge that whether described erroneous packets rate of change is greater than the predetermined rate of change upper limit;
Dual-mode is revised the unit, is used for working as described erroneous packets rate of change greater than prescribing a time limit on the predetermined rate of change, revises the dual-mode of this Ethernet interface;
Control unit, be connected with described dual-mode identifying unit, erroneous packets rate of change detecting unit, comparing unit respectively, be used for according to controlling described dual-mode identifying unit, erroneous packets rate of change detecting unit, comparing unit work according to the arbitrary described method of claim 1 to 3.
Alternatively, described erroneous packets rate of change detecting unit comprises:
Timer is used for timing, and described timing length is T;
Erroneous packets quantity reading unit is used for starting read error bag quantity constantly when described timer, is designated as X, and when described timer expiry read error bag quantity, be designated as X, wherein:
When this Ethernet interface is current when being in full-duplex mode, the bag quantity that described erroneous packets quantity is correction error, when this Ethernet interface is current when being in semiduplex mode, described erroneous packets quantity is back conflict number of frames;
Computation subunit is calculated the result of described (Y-X)/T, with described result as the erroneous packets rate of change.
Alternatively, described predetermined rate of change upper limit numerical value is 2.
The unmatched checkout gear of two ends duplex of a kind of ethernet link that the embodiment of the invention provides comprises:
Therefore, use the technical scheme of the embodiment of the invention, whether can recommend oneself by each Ethernet interface of each communication equipment exists the link duplex not match, when finding that the link duplex does not match, automatically revise the dual-mode of oneself, thereby avoid allowing the data transmission performance of network huge decline occur.And avoided the workload that needs the O﹠M personnel to analyze when going wrong, also avoided network when building, need force to specify the trouble of duplex mode.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, does not constitute to improper qualification of the present invention, in the accompanying drawings:
The schematic flow sheet of the unmatched detection method of a kind of ethernet link two ends duplex that Fig. 1 provides for the embodiment of the invention 1;
The schematic flow sheet of the bag amount change of a kind of correction error that detects Ethernet interface that Fig. 2 provides for the embodiment of the invention 1;
A kind of back conflict number of frames rate of change schematic flow sheet that detects Ethernet interface that Fig. 3 provides for the embodiment of the invention 1;
The Ethernet structural representation that Fig. 4 provides for the embodiment of the invention 2;
The Ethernet structural representation that Fig. 5 provides for the embodiment of the invention 3.
Embodiment
Describe the present invention in detail below in conjunction with accompanying drawing and specific embodiment, be used for explaining the present invention in this illustrative examples of the present invention and explanation, but not as a limitation of the invention.
Embodiment 1:
Referring to shown in Figure 1, the flow process of the unmatched detection method of ethernet link two ends duplex that present embodiment provides mainly may further comprise the steps:
Step 101: judge the dual-mode of this Ethernet interface, if this current full-duplex mode that is in of network interface too, then execution in step 102; Otherwise execution in step 105.
When Ethernet interface connected ethernet network, detecting this Ethernet interface current was for semiduplex mode or full-duplex mode.
If this is the current full-duplex mode that is in of network interface too, then execution in step 102; If this is the current semiduplex mode that is in of network interface too, then jump to execution in step 105;
Step 102: the bag amount change that detects Ethernet interface correction error in the given time.
If the Ethernet interface work at present in full-duplex mode, is then carried out this step.
Correction error (Alignment Error) is the mistake that the stream that is caused by conflict in the Ethernet (IEEE 802.3) damages, the deviation of read and write causes.When whole bit numbers of a stream that receives can not be divided exactly by 8 (for example, the reading of 2 bytes in memory address even is not the multiple of 2 bytes), think that then current packet is the bag of a correction error.
In the present embodiment, with the amount change of the bag of correction error as: whether the Ethernet link that is in the Ethernet interface place under the full-duplex mode a duplexing unmatched parameter.
Referring to shown in Figure 2, this step 102 is realized suddenly by following small step:
Step 201: start detection timer.
Step 202: the bag quantity X that reads the current correction error of this Ethernet interface.
The bag quantity of the correction error of the Ethernet interface when reading the timer startup deposits variable X in.
In step 201, time-out time is T.
Step 203: whether overtime, if overtime, then execution in step 204 if detecting timer; Otherwise wait for and continue wait timeout.
Step 204: read the moment of time-out of timer Ethernet interface the bag quantity Y of correction error.
The bag quantity of the correction error of the Ethernet interface when reading timer expiry deposits variable Y in.
Step 205: with the bag amount change of (Y-X)/T as the correction error of this Ethernet interface.
Step 103: whether the bag amount change of judging correction error greater than the predetermined rate of change upper limit, if, execution in step 104; Otherwise return step 102.
If the bag amount change of this correction error is greater than the predetermined rate of change upper limit, the then current ethernet link duplex that exists does not match; Otherwise it is normal to be judged to be link, returns step 102: the bag amount change that continues the link correction error of this Ethernet interface of supervision.
Rate of change upper limit that should be predetermined can be predetermined according to the actual requirements by the user, such as can but do not limit it be predefined for 2.
Step 104: the pattern of this Ethernet interface is set to semiduplex mode, returns step 101.
Exist duplex not match if detect the Ethernet link at this Ethernet interface place, then the pattern of this Ethernet interface is set to semiduplex mode automatically.
And after modification, step 101 is returned in redirect automatically, thereby realizes Automatic Cycle detection, correction to the dual-mode of Ethernet interface.
Step 105: detect Ethernet interface back conflict number of frames rate of change in the given time.
If the Ethernet interface work at present in semiduplex mode, is then carried out this step.
Back burst frame is meant: Ethernet interface has sent after the 512bit data the just frame of detected conflict.
In the present embodiment, with the back conflict number of frames of Ethernet interface as: whether the Ethernet link that is in the Ethernet interface place under the semiduplex mode duplexing unmatched parameter.
Referring to shown in Figure 3, this step 105 is realized suddenly by following small step:
Step 301: start detection timer.
Step 302: read the current back conflict number of frames X of this Ethernet interface.
The back conflict number of frames of the Ethernet interface when reading the timer startup deposits variable X in.
Step 303: whether overtime, if overtime, then execution in step 304 if detecting timer; Otherwise wait for and continue wait timeout.
The time-out time of timer is T.
Step 304: when reading timer expiry back burst frame Y.
Read in the back conflict number of frames of the Ethernet interface of moment of time-out of timer, deposit variable Y in.
Step 305: with the back conflict number of frames rate of change of (Y-X)/T as this Ethernet interface.
Step 106: whether judge back conflict number of frames rate of change greater than the predetermined rate of change upper limit, if, execution in step 107; Otherwise return step 105.
If should conflict the number of frames rate of change greater than the predetermined rate of change upper limit in the back, the then current ethernet link duplex that exists does not match; Otherwise it is normal to be judged to be link, returns step 105: the back conflict number of frames rate of change that continues to monitor this Ethernet interface.
Rate of change upper limit that should be predetermined can be predetermined according to the actual requirements by the user, such as can but do not limit it be predefined for 2.
Step 107: the pattern of this Ethernet interface is set to full-duplex mode, returns step 101.
Exist duplex not match if detect the Ethernet link at this Ethernet interface place, then the pattern of this Ethernet interface is set to full-duplex mode automatically.
And after modification, step 101 is returned in redirect automatically, thereby realizes Automatic Cycle detection, correction to the dual-mode of Ethernet interface.
Therefore, use the method for present embodiment, whether can recommend oneself by each Ethernet interface of each communication equipment exists the link duplex not match, when finding that the link duplex does not match, automatically revise the dual-mode of oneself, thereby avoid allowing the data transmission performance of network huge decline occur.And avoided the workload that needs the O﹠M personnel to analyze when going wrong, also avoided network when building, need force to specify the trouble of duplex mode.
Embodiment 2:
Referring to shown in Figure 4, a kind of Ethernet interface (Ethernet card) that present embodiment provides, this interface is also comprising with lower member with respect to the interface difference of prior art: dual-mode identifying unit 401, erroneous packets rate of change detecting unit 402, comparing unit 403, dual-mode are revised unit 404, control unit 405, and dual-mode identifying unit 401, erroneous packets rate of change detecting unit 402, comparing unit 403, dual-mode are revised unit 404 and connected respectively at control unit 405.The operation principle of each parts is as follows:
The dual-mode of dual-mode identifying unit 401 these Ethernet interfaces of cycle criterion: when Ethernet interface connected ethernet network, detecting this Ethernet interface current was for semiduplex mode or full-duplex mode;
Erroneous packets rate of change detecting unit 402 regularly detects this Ethernet interface erroneous packets rate of change in the given time.Erroneous packets rate of change detecting unit 402 determines the statistics of erroneous packets rate of change detecting unit 402 according to the judgement of dual-mode identifying unit 401:
When this Ethernet interface is current when being in full-duplex mode, the bag amount change that described erroneous packets rate of change is a correction error,
When this Ethernet interface is current when being in semiduplex mode, described erroneous packets rate of change is a back conflict number of frames rate of change;
Whether comparing unit 403 misjudgment bag rate of change detecting units 402 detect the erroneous packets rate of change of acquisition greater than the predetermined rate of change upper limit, and comparative result is transferred to dual-mode revise unit 404, wherein, should can preset according to actual needs by predetermined rate of change upper limit numerical value, be such as but not limited to be set at 2;
Dual-mode is revised unit 404 when result that comparing unit 403 is judged when being (erroneous packets rate of change greater than predetermined rate of change on prescribe a time limit), revises the dual-mode of this Ethernet interface:
If when the current pattern of Ethernet interface is full-duplex mode it is revised as semiduplex mode,, it is revised as full-duplex mode if when the current pattern of Ethernet interface is semiduplex mode;
Control unit 405 is connected with dual-mode identifying unit 401, erroneous packets rate of change detecting unit 402, comparing unit 403 respectively according to the method for being put down in writing according to embodiment 1 and controls described dual-mode identifying unit 401, erroneous packets rate of change detecting unit 402, comparing unit 403 work.Specifically referring to the record of embodiment, do not do at this and to give unnecessary details.
Therefore, use the Ethernet interface of present embodiment, whether Ethernet interface is recommended oneself exists the link duplex not match, when finding that the link duplex does not match, automatically the dual-mode of revising oneself makes the dual-mode of this Ethernet interface and the Ethernet interface of opposite end, a chain of stations road mate, thereby avoids allowing the data transmission performance of network huge decline occur.And avoided the workload that needs the O﹠M personnel to analyze when going wrong, also avoided network when building, need force to specify the trouble of duplex mode.
Embodiment 3:
Referring to shown in Figure 5,2 differences of the Ethernet interface of present embodiment and embodiment are following:
The erroneous packets rate of change detecting unit 402 of present embodiment can but do not limit and comprise: timer 501, erroneous packets quantity reading unit 502, computing unit 503.Timer 501, erroneous packets quantity reading unit 502, comparing unit 403 connect in turn, and computing unit 503 is connected with comparing unit 403.Its operation principle is as follows:
Timer 501 is used for timing, is connected with control unit 405, and timing length is T.
Erroneous packets quantity reading unit 502 is connected with control unit 405, is used for: when timer 501 starts read error bag quantity constantly, and when timer 501 is overtime read error bag quantity.Such as:
Suppose when being in semiduplex mode before this Ethernet interface, erroneous packets quantity is back conflict number of frames, erroneous packets quantity reading unit 502 start when timer 501 constantly read Ethernet interface after the conflict number of frames, deposit variable X in, read the back conflict number of frames of Ethernet interface in the 501 overtime moment of timer, deposit variable Y in.
Suppose that when being in full-duplex mode before this Ethernet interface erroneous packets quantity is the bag quantity of correction error, erroneous packets quantity reading unit 502 deposits variable X in starting the bag quantity of reading the correction error of Ethernet interface constantly when timer 501; Read the bag quantity of the correction error of Ethernet interface in the 501 overtime moment of timer, deposit variable Y in.
Computation subunit is calculated the result of (Y-X)/T, with the result that calculates as the erroneous packets rate of change, and with result calculated input value comparing unit 403, relatively for comparing unit 403.
Therefore the structure of the erroneous packets rate of change detecting unit 402 of employing present embodiment structure can be by simple module, the simple erroneous packets rate of change that obtains this Ethernet interface of introducing.
More than the technical scheme that the embodiment of the invention provided is described in detail, used specific case herein the principle and the execution mode of the embodiment of the invention are set forth, the explanation of above embodiment only is applicable to the principle that helps to understand the embodiment of the invention; Simultaneously, for one of ordinary skill in the art, according to the embodiment of the invention, the part that on embodiment and range of application, all can change, in sum, this description should not be construed as limitation of the present invention.

Claims (7)

1. the unmatched detection method of ethernet link two ends duplex is characterized in that, comprising:
The dual-mode of each this Ethernet interface of Ethernet interface cycle criterion at described ethernet link two ends;
If this is the current full-duplex mode that is in of network interface too, then regularly detect the bag amount change of the correction error of described Ethernet interface,
If the bag amount change of described correction error is greater than the predetermined rate of change upper limit, then the pattern of this Ethernet interface is set to semiduplex mode, return step: the dual-mode of this Ethernet interface of cycle criterion, otherwise: return the bag amount change that regularly detects the correction error of described Ethernet interface;
If this is the current semiduplex mode that is in of network interface too, then regularly detect the back conflict number of frames rate of change of described Ethernet interface,
If described back conflict number of frames rate of change is greater than the predetermined rate of change upper limit, then the pattern of this Ethernet interface is set to full-duplex mode, return step: the dual-mode of this Ethernet interface of cycle criterion, otherwise: return the back conflict number of frames rate of change that regularly detects described Ethernet interface.
2. duplex unmatched detection method in a kind of ethernet link according to claim 1 two ends is characterized in that,
Detect the bag amount change of the correction error of described Ethernet interface, comprising:
Read the bag quantity X of the current correction error of this Ethernet interface,
Start timer, time-out time is T,
When timer expiry, read the bag quantity Y of current correction error;
With the bag amount change of (Y-X)/T as the correction error of described Ethernet interface.
3. duplex unmatched detection method in a kind of ethernet link according to claim 1 two ends is characterized in that,
Detect the back conflict number of frames rate of change of described Ethernet interface, comprising:
Read the current back conflict number of frames x of this Ethernet interface,
Start timer, time-out time is t,
When timer expiry, read current back conflict number of frames y;
With the back conflict number of frames rate of change of (y-x)/t as described Ethernet interface.
4. according to claim 1, the unmatched detection method of 2 or 3 described a kind of ethernet link two ends duplex, it is characterized in that,
Described predetermined rate of change upper limit numerical value is 2.
5. an Ethernet interface is characterized in that, comprising:
The dual-mode identifying unit is used for the dual-mode of this Ethernet interface of cycle criterion;
Erroneous packets rate of change detecting unit is used for the erroneous packets rate of change that timing detects this Ethernet interface,
When this Ethernet interface is current when being in full-duplex mode, the bag amount change that described erroneous packets rate of change is a correction error,
When this Ethernet interface is current when being in semiduplex mode, described erroneous packets rate of change is a back conflict number of frames rate of change;
Comparing unit is used to judge that whether described erroneous packets rate of change is greater than the predetermined rate of change upper limit;
Dual-mode is revised the unit, is used for working as described erroneous packets rate of change greater than prescribing a time limit on the predetermined rate of change, revises the dual-mode of this Ethernet interface;
Control unit, be connected with described dual-mode identifying unit, erroneous packets rate of change detecting unit, comparing unit respectively, be used for according to controlling described dual-mode identifying unit, erroneous packets rate of change detecting unit, comparing unit work according to the arbitrary described method of claim 1 to 3.
6. Ethernet interface according to claim 5 is characterized in that,
Described erroneous packets rate of change detecting unit comprises:
Timer is used for timing, and described timing length is T;
Erroneous packets quantity reading unit is used for starting read error bag quantity constantly when described timer, is designated as X, and when described timer expiry read error bag quantity, be designated as X, wherein:
When this Ethernet interface is current when being in full-duplex mode, the bag quantity that described erroneous packets quantity is correction error, when this Ethernet interface is current when being in semiduplex mode, described erroneous packets quantity is back conflict number of frames;
Computation subunit is calculated the result of described (Y-X)/T, with described result as the erroneous packets rate of change.
7. according to claim 5 or 6 described ether interfaces, it is characterized in that,
Described predetermined rate of change upper limit numerical value is 2.
CN2010101361070A 2010-03-26 2010-03-26 Method for detecting mismatching of duplex modes two ends of Ethernet link and Ethernet interface Pending CN102201943A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010101361070A CN102201943A (en) 2010-03-26 2010-03-26 Method for detecting mismatching of duplex modes two ends of Ethernet link and Ethernet interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010101361070A CN102201943A (en) 2010-03-26 2010-03-26 Method for detecting mismatching of duplex modes two ends of Ethernet link and Ethernet interface

Publications (1)

Publication Number Publication Date
CN102201943A true CN102201943A (en) 2011-09-28

Family

ID=44662348

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010101361070A Pending CN102201943A (en) 2010-03-26 2010-03-26 Method for detecting mismatching of duplex modes two ends of Ethernet link and Ethernet interface

Country Status (1)

Country Link
CN (1) CN102201943A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030198247A1 (en) * 1999-09-21 2003-10-23 Gardner Steven Lyle Advanced ethernet auto negotiation
CN1893420A (en) * 2005-07-06 2007-01-10 华为技术有限公司 Ethernet interface butt-jointing method
US7420938B2 (en) * 2004-06-10 2008-09-02 Hewlett-Packard Development Company, L.P. Finding duplex mismatches in copper based networks
CN101286900A (en) * 2008-05-14 2008-10-15 华为技术有限公司 Port fault detecting method, device, and access device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030198247A1 (en) * 1999-09-21 2003-10-23 Gardner Steven Lyle Advanced ethernet auto negotiation
US7420938B2 (en) * 2004-06-10 2008-09-02 Hewlett-Packard Development Company, L.P. Finding duplex mismatches in copper based networks
CN1893420A (en) * 2005-07-06 2007-01-10 华为技术有限公司 Ethernet interface butt-jointing method
CN101286900A (en) * 2008-05-14 2008-10-15 华为技术有限公司 Port fault detecting method, device, and access device

Similar Documents

Publication Publication Date Title
CN100534048C (en) Distributed Ethernet system and method for inspecting fault based thereon
CN101262401B (en) A method for realizing network recovery in loop network
CN102984059B (en) Gigabit Ethernet redundancy network interface card and link switching condition criterion output control method thereof
CN101316197B (en) Detection method and apparatus for Ethernet port loop of MSTP equipment
CN101710896B (en) Method and device for detecting link quality
US9749264B2 (en) Communication system and network relay device
CN1996898B (en) A system and method for real time detection of the data channel states
CN107508640A (en) Dual loop redundancy self-healing fiber optic network construction method based on Fibre Channel technologies
CN103442035A (en) Method for achieving dual-network hot standby redundancy of blank pipe automatic system
CN103227725A (en) Method and device for dual-server backup of firewall
CN111740877B (en) Link detection method and system
WO2017101762A1 (en) Negotiation mode processing method and intelligent network device
CN100563201C (en) A kind of method for detecting route unit fault and device
CN101232406A (en) OAM fast detecting method, apparatus and system
CN107070739A (en) A kind of router operation troubles intelligent detecting method and system
CN104104596A (en) Intelligent resilient framework (IRF) split processing method and device
CN111654435B (en) Link protection fault processing system and method based on LACP
US9705823B2 (en) Port status synchronization method, related device, and system
CN102055673A (en) Multi-route network and route switching method
CN101465762B (en) Method, equipment and system for detecting error connection between protection set ports
CN102201943A (en) Method for detecting mismatching of duplex modes two ends of Ethernet link and Ethernet interface
CN102368720A (en) Link state detection method, apparatus and system
CN104081743A (en) Link management method, device and communication system
CN101217405B (en) SGSN backup method and communication system, communication device
CN101800682A (en) Bidirectional forwarding detection (BFD) method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned

Effective date of abandoning: 20110928

C20 Patent right or utility model deemed to be abandoned or is abandoned