Nothing Special   »   [go: up one dir, main page]

CN1893420A - Ethernet interface butt-jointing method - Google Patents

Ethernet interface butt-jointing method Download PDF

Info

Publication number
CN1893420A
CN1893420A CN 200510035859 CN200510035859A CN1893420A CN 1893420 A CN1893420 A CN 1893420A CN 200510035859 CN200510035859 CN 200510035859 CN 200510035859 A CN200510035859 A CN 200510035859A CN 1893420 A CN1893420 A CN 1893420A
Authority
CN
China
Prior art keywords
mode
ethernet interface
ethernet
port
erroneous packets
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
CN 200510035859
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.)
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 CN 200510035859 priority Critical patent/CN1893420A/en
Publication of CN1893420A publication Critical patent/CN1893420A/en
Pending legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

Being related to Ethernet communication technique, the invention discloses method for end-to-end connection to Ethernet interface. In time to connect to Ethernet interface in end-to-end, if opposite terminal is as forcible mode, this end of supporting self arranged mode can make correct match for mode of end-to-end connection. Based on whether great lot ultrashort error packets occur in short period of time, the invention determines whether current duplexing mode in port of end-to-end connection is in match. Meanwhile, the invention refers to whether current rate of receiving and transmitting packets reaches to a certain threshold in order to make determination more correctly. If being unable to knowing duplexing mode in opposite terminal, the port of supporting self arranged mode utilizes full duplex mode as default value. After finding that full duplex mode is not matched, the invention changes mode to half-duplex mode.

Description

The Ethernet interface docking calculation
Technical field
The present invention relates to the ethernet communication technology, particularly the Ethernet interface docking calculation.
Background technology
Since the eighties in 20th century, Ethernet is with its low cost and flexible characteristic, all the time in occupation of the leading position of local area network (LAN).Ethernet protocol becomes the de facto standard of LAN protocol, and Ethernet becomes the synonym of local area network (LAN).
According to Institute of Electrical and Electronics Engineers's (Institute of Electrical and ElectronicsEngineers is called for short " IEEE ") 802.3 standards, Ethernet interface has auto-negotiation and forces two kinds of patterns.
An important difference of auto negotiation mode and compulsory mode is both when setting up physical link and be connected, and transmitted stream is different.
When an end of connection device is set to auto negotiation mode, after powering on, physical layer is determined the line work condition automatically with the parallel detection auto-negotiation functionality earlier, if the other end physical layer support that connects is consulted automatically, then connects pulse (FLP) with rapid link and transmits negotiation information; If do not support, whether detection has common connection pulse NLP (10M) or IDLE code stream (100M) to occur automatically, and corresponding work speed is set.
When an end of connection device was set to the compulsory mode of non-automatic negotiation, the back physical layer that powers on sent NLP (10M) or IDLE code stream (100M), and corresponding work speed is set.
At present when actual networking, the Ethernet interface of communicating pair must be configured to identical pattern, that is to say two ports of butt joint or all be configured to auto negotiation mode, under compulsory mode, all be configured to the full duplex of identical speed, otherwise will go wrong or dock failure.
When the two ends of connection device port arrangement is inconsistent, (for example an end is an auto-negotiation, an other end is a non-automatic negotiation, or be connected to old-fashioned half-duplex HUB etc.), the IEEE802.3 standard does not have the regulation of clear and definite this situation, and the result is that both sides' speed of butt joint can correctly be mated, but dual-mode can not guarantee unanimity, an end that is auto-negotiation can be determined correct line speed with parallel detection, but dual-mode can force to be arranged to half-duplex; If the other end is a full duplex then joint mode to occur inconsistent, an end that is auto-negotiation is half-duplex, one end of non-automatic negotiation is a full duplex, this butt joint situation can not expose problem when network traffic data is very little, so can not discovered, but circuit single-pass or serious problem such as obstructed will be occurred along with flow increases.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of Ethernet interface docking calculation, when making the Ethernet interface butt joint, if the opposite end is a compulsory mode, supports the local terminal of auto negotiation mode can mate correct joint mode automatically.
For achieving the above object, the invention provides a kind of Ethernet interface docking calculation, comprise following steps:
Can't obtain the opposite end dual-mode if A is in the ethernet port of auto negotiation mode when butt joint, then the port is set to predefined dual-mode;
The described ethernet port of B statistics presets the quantity of receiving in time period of length less than the erroneous packets of presetting length, and judges that whether this quantity is greater than first thresholding that presets, if then revise current dual-mode.
Wherein, described step B further comprises following substep suddenly:
B1 preset in the time period of length, described ethernet port statistics receive less than the quantity of the erroneous packets of presetting length and the sum of transmitting-receiving bag;
The quantity that B2 judges described erroneous packets whether greater than the sum of first thresholding and described transmitting-receiving bag whether greater than second thresholding, if revise current dual-mode.
In this external described method, among the described step B1, when described erroneous packets and transmitting-receiving bag sum are added up, can repeatedly add up, with the mean value of statistics repeatedly or intermediate value as the judgement among the final statistics participation step B2.
In this external described method, in the described steps A, predefined dual-mode is a full duplex;
Among the described step B, described ethernet port during greater than first thresholding, is revised as half-duplex with current dual-mode in the quantity of described erroneous packets.
In this external described method, the presetting length of described erroneous packets can be 64 bytes.
In this external described method, can use Cyclic Redundancy Check to detect to the detection of described erroneous packets.
In this external described method, described step B periodically carries out, and its Cycle Length is predefined value.
Described Ethernet interface can be ten mbit ethernet interfaces or 100 m ethernet interface or 10,000,100 self adaptation Ethernet interfaces.
By relatively finding that the main distinction of technical scheme of the present invention and prior art is, whether to occur a large amount of ultrashort erroneous packets in a short time as the foundation of judging whether current craft port pattern mates; Whether the speed with reference to current transmitting-receiving bag reaches certain thresholding simultaneously, so that make judgement more accurate.
In the time can't learning the opposite end dual-mode, support that the port of auto negotiation mode is default value with the full duplex.After finding that dual-mode does not match, be revised as semiduplex mode.
Difference on this technical scheme, brought comparatively significantly beneficial effect, promptly can find and correct unmatched dual-mode automatically, this be because, reaching certain flow when above, if dual-mode does not match, one end of full duplex is not because observe Carrier Sense Multiple Access (the CarrierSense Multiple Access with Collision Detection of band collision detection, be called for short " CSMA/CD ") rule, at any time send data, again and again conflict mutually with the data that half-duplex port sends, and half-duplex port has conflict just to stop to send because observe the CSMA/CD rule discovery, so can produce a large amount of incomplete error data packets in the line, and these error data packets often very short lowest limit of 64 bytes (often less than), so can be with ultrashort erroneous packets as accurately judging the foundation whether dual-mode mates.
Because present ethernet device major part has been supported full duplex, be default value so use full duplex instead, can improve the probability that once the match is successful greatly like this.
By adaptive approach of the present invention, system can be consistent with the setting of opposite end realizing according to the automatic conversion setting of Ethernet interface information, otherwise after network goes wrong location difficulty but also need to revise configuration manually and could solve not only.
Description of drawings
Fig. 1 is an Ethernet interface docking calculation flow chart according to an embodiment of the invention.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with accompanying drawing.
As shown in Figure 1, in step 110, have the ethernet device electrifying startup of auto-negotiation function after, be auto negotiation mode with its port arrangement automatically, enter step 120.
In step 120, the port that is in auto negotiation mode judges whether to obtain the opposite end dual-mode when butt joint, if can obtain, the expression opposite end also is in auto negotiation mode, then connect pulse (FLP) and transmit negotiation information with rapid link, the joint mode of reaching an agreement through consultation, method ends; Otherwise the expression opposite end is in compulsory mode, therefore can't determine that the dual-mode of opposite end is full duplex or half-duplex.
Then enter step 130, because can't determine the dual-mode of opposite end, so the port is set to default full-duplex mode.This point is different with prior protocols.In prior protocols, when the two ends of connection device port arrangement was inconsistent, an end that is in auto-negotiation can be forced to be arranged to minimalist configuration (being semiduplex mode).Yet, present ethernet device major part has been supported full duplex, that is to say, one end of non-automatic negotiation is likely full-duplex mode, if still use the mode of existing protocol, also can cause the two ends port of connection device the inconsistent situation of joint mode to occur, promptly an end of auto-negotiation is half-duplex, and an end of non-automatic negotiation is a full duplex.So in embodiments of the present invention, using full duplex instead is default value, can improve the probability that once the match is successful greatly like this.
In step 140, the periodic statistics interface message is promptly presetting in the time period of length, the port statistics receive less than the quantity of the erroneous packets of presetting length and the sum of transmitting-receiving bag, its Cycle Length is predefined value.In the present invention, the erroneous packets less than presetting length claims ultrashort erroneous packets again.Need to prove, in a preferred embodiment of the present invention, the presetting length of ultrashort erroneous packets can be decided to be 64 bytes, this is because in Ethernet, normal packet is the shortest to be 64 bytes (can fill if the content of packet is less than 64 bytes), is less than this data package length and can thinks ultrashort erroneous packets, in addition, packet whether mistake also can pass through cyclic redundancy check (CRC) (Cyclic Redundancy Check is called for short " CRC ") and judges.
In order to make the information that obtains of statistics more accurate, can repeatedly add up, with the mean value of statistics repeatedly or intermediate value as final statistics.
After the interface message statistics, enter step 150, judge that whether the ultrashort erroneous packets quantity that counts on is greater than first thresholding.Wherein, ultrashort erroneous packets is meant that length is less than the erroneous packets of 64 bytes, and first thresholding can rule of thumb be worth or simulate acquisition.When the quantity of ultrashort erroneous packets during less than first thresholding, get back to step 140, continue periodically to add up the quantity of ultrashort erroneous packets and the sum of transmitting-receiving bag; When the quantity of ultrashort erroneous packets during greater than first thresholding, illustrate that the two ends interface configuration may be inconsistent, the interface of opposite end may be a semiduplex mode.This is because full duplex has the one-way line of monopolizing, can send data at any time, and half-duplex port observe CSMA the CD rule, when data volume one is big, half-duplex port will frequently detect conflict because of circuit is always taken by full-duplex port, influence and the data transmission that may stop up half-duplex port; At this moment, can receive the short bag of conflict that a lot of half-duplex ports are sent at full-duplex port.So,, illustrate that to end interface probably be semiduplex mode when the quantity of ultrashort erroneous packets during greater than first thresholding.In order to make the judgement whether current craft port dual-mode is mated more accurate, enter step 160.
In step 160, judge that whether transmitting-receiving bag quantity is greater than second thresholding, if illustrate that current craft port dual-mode does not match, and enters step 170; If not, get back to step 140, continue periodically to add up the quantity of ultrashort erroneous packets and the sum of transmitting-receiving bag.This be because, reaching certain flow when above, if dual-mode does not match, one end of full duplex is not because observe the CSMA/CD rule, at any time send data, again and again conflict mutually with the data that half-duplex port sends, and half-duplex port has conflict just to stop to send because observe the CSMA/CD rule discovery, so can produce a large amount of incomplete error data packets in the line.But, when if transmitting-receiving bag quantity does not have greater than second thresholding, that is to say, when data do not reach certain flow, the erroneous packets that produce in the circuit this moment just may not be owing to detecting the ultrashort erroneous packets that conflict stops to send, may be that other factors in the network cause, such as, the erroneous packets that method, apparatus is produced when starting etc.So whether the setting of second thresholding and judgement transmitting-receiving bag quantity can more exactly judge whether current craft port dual-mode mate greater than this thresholding
In step 170, the port is revised as semiduplex mode, be complementary with Peer-Port.
Present embodiment can support the local terminal of auto negotiation mode to mate correct dual-mode automatically, system can be consistent with the setting of opposite end realizing according to the automatic conversion setting of Ethernet interface information, otherwise after network goes wrong location difficulty but also need to revise configuration manually and could solve not only.
Described Ethernet interface can be ten mbit ethernet interfaces or 100 m ethernet interface or 10,000,100 self adaptation Ethernet interfaces.
Though by with reference to some preferred embodiment of the present invention, the present invention is illustrated and describes, those of ordinary skill in the art should be understood that and can do various changes to it in the form and details, and without departing from the spirit and scope of the present invention.

Claims (8)

1. an Ethernet interface docking calculation is characterized in that, comprises following steps:
Can't obtain the opposite end dual-mode if A is in the ethernet port of auto negotiation mode when butt joint, then the port is set to predefined dual-mode;
The described ethernet port of B statistics presets the quantity of receiving in time period of length less than the erroneous packets of presetting length, and judges that whether this quantity is greater than first thresholding that presets, if then revise current dual-mode.
2. Ethernet interface docking calculation according to claim 1 is characterized in that, described step B further comprises following substep suddenly:
B1 preset in the time period of length, described ethernet port statistics receive less than the quantity of the erroneous packets of presetting length and the sum of transmitting-receiving bag;
The quantity that B2 judges described erroneous packets whether greater than the sum of first thresholding and described transmitting-receiving bag whether greater than second thresholding, if revise current dual-mode.
3. Ethernet interface docking calculation according to claim 2, it is characterized in that, among the described step B1, when described erroneous packets is added up with transmitting-receiving bag sum, can repeatedly add up, the mean value of statistics repeatedly or intermediate value are participated in judgement among the step B2 as final statistics.
4. Ethernet interface docking calculation according to claim 1 is characterized in that, in the described steps A, predefined dual-mode is a full duplex;
Among the described step B, described ethernet port during greater than second thresholding, is revised as half-duplex with current dual-mode greater than the sum of first thresholding and unit interval transmitting-receiving bag in the quantity of described erroneous packets.
5. according to each described Ethernet interface docking calculation in the claim 1 to 3, it is characterized in that the presetting length of described erroneous packets can be 64 bytes.
6. according to each described Ethernet interface docking calculation in the claim 1 to 3, it is characterized in that, can use the cyclic redundancy check (CRC) detection mode the detection of described erroneous packets.
7. according to each described Ethernet interface docking calculation in the claim 1 to 3, it is characterized in that described step B periodically carries out, its Cycle Length is predefined value.
8. according to each described Ethernet interface docking calculation in the claim 1 to 3, it is characterized in that described Ethernet interface can be ten mbit ethernet interfaces or 100 m ethernet interface or 10,000,100 self adaptation Ethernet interfaces.
CN 200510035859 2005-07-06 2005-07-06 Ethernet interface butt-jointing method Pending CN1893420A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200510035859 CN1893420A (en) 2005-07-06 2005-07-06 Ethernet interface butt-jointing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200510035859 CN1893420A (en) 2005-07-06 2005-07-06 Ethernet interface butt-jointing method

Publications (1)

Publication Number Publication Date
CN1893420A true CN1893420A (en) 2007-01-10

Family

ID=37597934

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200510035859 Pending CN1893420A (en) 2005-07-06 2005-07-06 Ethernet interface butt-jointing method

Country Status (1)

Country Link
CN (1) CN1893420A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217436B (en) * 2008-01-16 2010-08-04 中兴通讯股份有限公司 Ethernet port and its rate setting method
CN101170419B (en) * 2007-12-05 2010-09-08 杭州华三通信技术有限公司 Realization method, system and interface device for Ethernet electric interface compatibility
CN101360050B (en) * 2008-09-25 2010-12-08 福建星网锐捷网络有限公司 Method and apparatus setting flow control mode
CN101404600B (en) * 2007-10-11 2011-03-30 硅谷数模半导体(北京)有限公司 Self-negotiation method for implementing long-distance Ethernet operation mode in Ethernet
CN102045243A (en) * 2009-10-10 2011-05-04 中兴通讯股份有限公司 Method and system for of adaptively recognizing duplex mode of network port of opposite terminal among network devices
CN101360116B (en) * 2008-09-18 2011-06-08 杭州华三通信技术有限公司 Communication negotiation method, system of physical layer chip and a physical layer chip thereof
CN102201943A (en) * 2010-03-26 2011-09-28 上海傲蓝通信技术有限公司 Method for detecting mismatching of duplex modes two ends of Ethernet link and Ethernet interface
CN101345754B (en) * 2008-08-20 2011-12-28 北京星网锐捷网络技术有限公司 Duplexing pattern matching method and apparatus, communication system
CN101350823B (en) * 2008-08-21 2012-05-23 中兴通讯股份有限公司 Negotiation method and apparatus for connecting Ethernet port link
CN102684980A (en) * 2011-03-14 2012-09-19 深圳市恒扬科技有限公司 Method for configuring data of network shunt port, system and network shunt
CN104954282A (en) * 2015-05-08 2015-09-30 南车株洲电力机车研究所有限公司 Enhanced port adaptive method and system
CN106534052A (en) * 2015-09-15 2017-03-22 中移(杭州)信息技术有限公司 Communication processing method and electronic device
CN109714276A (en) * 2019-03-11 2019-05-03 盛科网络(苏州)有限公司 A kind of method of adaptive remote equipment negotiation mode
WO2020238848A1 (en) * 2019-05-24 2020-12-03 中兴通讯股份有限公司 Method and device for managing port configuration mode

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404600B (en) * 2007-10-11 2011-03-30 硅谷数模半导体(北京)有限公司 Self-negotiation method for implementing long-distance Ethernet operation mode in Ethernet
CN101170419B (en) * 2007-12-05 2010-09-08 杭州华三通信技术有限公司 Realization method, system and interface device for Ethernet electric interface compatibility
CN101217436B (en) * 2008-01-16 2010-08-04 中兴通讯股份有限公司 Ethernet port and its rate setting method
CN101345754B (en) * 2008-08-20 2011-12-28 北京星网锐捷网络技术有限公司 Duplexing pattern matching method and apparatus, communication system
CN101350823B (en) * 2008-08-21 2012-05-23 中兴通讯股份有限公司 Negotiation method and apparatus for connecting Ethernet port link
CN101360116B (en) * 2008-09-18 2011-06-08 杭州华三通信技术有限公司 Communication negotiation method, system of physical layer chip and a physical layer chip thereof
US8654647B2 (en) 2008-09-18 2014-02-18 Hangzhou H3C Technologies Co., Ltd. Method and system for communication capacity negotiation of physical layer chips
CN101360050B (en) * 2008-09-25 2010-12-08 福建星网锐捷网络有限公司 Method and apparatus setting flow control mode
CN102045243A (en) * 2009-10-10 2011-05-04 中兴通讯股份有限公司 Method and system for of adaptively recognizing duplex mode of network port of opposite terminal among network devices
CN102201943A (en) * 2010-03-26 2011-09-28 上海傲蓝通信技术有限公司 Method for detecting mismatching of duplex modes two ends of Ethernet link and Ethernet interface
CN102684980A (en) * 2011-03-14 2012-09-19 深圳市恒扬科技有限公司 Method for configuring data of network shunt port, system and network shunt
CN102684980B (en) * 2011-03-14 2015-10-28 深圳市恒扬科技股份有限公司 The collocation method of network shunt device port data, system and network shunt device
CN104954282A (en) * 2015-05-08 2015-09-30 南车株洲电力机车研究所有限公司 Enhanced port adaptive method and system
CN106534052A (en) * 2015-09-15 2017-03-22 中移(杭州)信息技术有限公司 Communication processing method and electronic device
CN106534052B (en) * 2015-09-15 2020-11-06 中移(杭州)信息技术有限公司 Communication processing method and electronic equipment
CN109714276A (en) * 2019-03-11 2019-05-03 盛科网络(苏州)有限公司 A kind of method of adaptive remote equipment negotiation mode
WO2020238848A1 (en) * 2019-05-24 2020-12-03 中兴通讯股份有限公司 Method and device for managing port configuration mode

Similar Documents

Publication Publication Date Title
CN1893420A (en) Ethernet interface butt-jointing method
US8660034B2 (en) Method and system for monitoring activity of a remote link partner to trigger training of Ethernet channels to support energy efficient Ethernet networks
US8064373B2 (en) Method and system for simplex or duplex transmission mode of an ethernet link in an energy efficient network
US8116304B2 (en) Method and system for duty cycling a network port based on duty cycling of a link communicatively coupled to the port
US8045483B1 (en) Methods and apparatus for performing reverse auto-negotiation in network communication
JP4443601B2 (en) Transceiver that automatically sets based on auto-negotiation
US8081625B2 (en) Method and system for utilizing a 10/100/1G/10G base-T PHY device for single channel and shared channel networks
EP0869643A2 (en) Electronic communications network
US7995605B2 (en) Apparatus and method for implementing a suspend mode in an ethernet-based communications system
US6457055B1 (en) Configuring ethernet devices
KR101000987B1 (en) Method and system for indicating a transition in rate and/or power consumption utilizing a distinct physical pattern on one or more idle channels
US20090154492A1 (en) Method And System For A Distinct Physical Pattern On An Active Channel To Indicate A Data Rate Transition For Energy Efficient Ethernet
CN109067556B (en) System and method for power saving Ethernet with asymmetric traffic profiling
CN101350823A (en) Negotiation method and apparatus for connecting Ethernet port link
US20100254382A1 (en) Communication System
CN101047712A (en) Device and method for detecting Ethernet interface configuration
CN1835466A (en) Kilomega Ethernet port butt method
US6768720B1 (en) Verification of link integrity of a home local area network
CN100375459C (en) Method for realizing racing controlling type bus communication adopting 485 interface
CN101043399A (en) Ethernet duplex mode matching method
US20050198260A1 (en) Method for detecting link partner state during auto negotiation and switching local state to establish link
CN114930774B (en) Transmitting/receiving device and communication control device for subscriber station of serial bus system and method for communication in serial bus system
CN1549520A (en) Method for realizing universal simplified gateway equipment in intelligent home system
CN115442178A (en) Multi-axis servo bus control circuit and multi-axis servo system
CN100336361C (en) Method for transmitting Ethernet equipment duplex mode information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20070110