CN103222251B - A kind of method of ether port auto-negotiation and communication equipment - Google Patents

A kind of method of ether port auto-negotiation and communication equipment Download PDF

Info

Publication number
CN103222251B
CN103222251B CN201280002842.XA CN201280002842A CN103222251B CN 103222251 B CN103222251 B CN 103222251B CN 201280002842 A CN201280002842 A CN 201280002842A CN 103222251 B CN103222251 B CN 103222251B
Authority
CN
China
Prior art keywords
port
mode
auto
ether
chip
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.)
Active
Application number
CN201280002842.XA
Other languages
Chinese (zh)
Other versions
CN103222251A (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.)
XFusion Digital 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
Publication of CN103222251A publication Critical patent/CN103222251A/en
Application granted granted Critical
Publication of CN103222251B publication Critical patent/CN103222251B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/40Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass for recovering from a failure of a protocol instance or entity, e.g. service redundancy protocols, protocol state redundancy or protocol service redirection

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Communication Control (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the invention discloses a kind of method and network communication equipment of ether port auto-negotiation, the method comprises: the ether port chip A of the first communication equipment according to the port mode list pre-set from the first port mode, link is set up by the auto-negotiation mode of present port pattern and the ether port chip B of second communication equipment, if set up link failure, then be switched to next port mode in port mode list, until set up link success by the auto-negotiation mode of present port pattern and ether port chip B, then determine that present port pattern is the port mode of ether port chip B.Thus the physical port realizing controlling ether port chip A switches, and different port modes is next carries out auto-negotiation with Peer-Port, give full play to the chip characteristics supporting multiport pattern, enhance between device interior pattern and interconnect between interconnection, plate, the flexibility interconnected between equipment and equipment, avoid complexity and the expense that setting forced by software, and avoid manually operated trouble, simplify the deployment of equipment.

Description

A kind of method of ether port auto-negotiation and communication equipment
Technical field
The invention belongs to the communications field, particularly relate to a kind of method and communication equipment of ether port auto-negotiation.
Background technology
In existing communication equipment (such as switch, router, blade server, gateway etc.), the port type that interconnection between plate, intermodule interconnection use is abundanter, with the most frequently used ether port, also the port mode of different medium, different rates is had, such as 1000BASE-SX, 1000BASE-T, 100BASE-FX, 10GBASE-SR etc., the ether port of some chip can support various ports pattern.
In ieee specification, certain port mode-definition auto-negotiation mode, such as 1000BASE-SX, 10/100/1000/10GBASE-T etc., by the auto-negotiation mode defined in ieee specification, the port mode communicating information that self chip can be supported by communication equipment is to opposite end, and accept the corresponding information that the other side may pass over, thus realize two ends communication equipment and automatically set up link according to correct port mode.Other port mode does not define auto-negotiation mode in ieee specification, such as 100BASE-FX, 10GBASE-SR, 10GBASE-CR etc., carry out in the application of port docking at chip, for the port mode not supporting auto-negotiation mode, cannot the port mode of automatic acquisition opposite end, need to adopt the mode of forcing configured port pattern, namely according to the port mode that both sides support, force configuration employing port mode to set up link.Like this, one is supported to the ether port chip of various ports pattern, as long as contain the port mode of the auto-negotiation mode not being supported in ieee specification definition in the various ports pattern supported, automatically the port mode of opposite end cannot be obtained, the port working pattern that this ether port chip docks with other port chips just can not be determined by auto-negotiation mode completely, then apply dumb, not intelligent, add complexity and the cost of operation.
In existing frame communication device, exchange the data between transfer plate in usual frame by Ether protocoll, generally, power board exchange chip supports various ports pattern, and on each business board, physical chip may only support a kind of port mode.The solution of present feasible is by administration module and outband management passage, obtain the port mode of physical chip on each business board respectively, then the corresponding port of power board exchange chip is carried out to the configuration of model identical, thus making link link up, link up shows to set up link success.Such mode depends on outband management passage, add system complexity and software operation complexity, and when the port number that business board docks with power board is a lot of time, the software overhead being obtained the port mode of each port of each business board by out-band channel will be comparatively large, occupying system resources.In prior art, when ether port chip supports various ports pattern, still automatically can not know the port mode of opposite end well, also just cannot realize by automatic completing port configuration during this ether port chip docking application.
Summary of the invention
The object of the embodiment of the present invention is the method and the communication equipment that provide a kind of ether port auto-negotiation, during for existing communication equipment use ethernet communication, when some ether port chip supports various ports pattern, automatic acquisition Peer-Port pattern the problem of link link up cannot be made with automatic configured port.
First aspect, a kind of method of ether port auto-negotiation, described method comprises:
The ether port chip A of the first communication equipment sets up link by the auto-negotiation mode of the first port mode in the port mode list that pre-sets and the ether port chip B of second communication equipment, wherein, described first communication equipment is connected with the ether port chip of other communication equipments by described ether port chip A, described ether port chip A supports the port mode of at least one IEEE802.3 normalized definition, the ether port chip of other communication equipments described only supports a kind of port mode of IEEE802.3 normalized definition, described second communication equipment is one in other communication equipments described, the port mode that described port mode list is supported for described ether port chip A is for carrying out the sequential list of port negotiation,
If described ether port chip A sets up link success by the auto-negotiation mode of described first port mode and described ether port chip B, then determine that described first port mode is the port mode of described ether port chip B;
If described ether port chip A sets up link failure by the auto-negotiation mode of described first port mode and described ether port chip B, then be switched to next port mode in described port mode list, link is set up by next port mode described and described ether port chip B, until described ether port chip A sets up link success by the auto-negotiation mode of the second port mode and described ether port chip B, then determine that described second port mode is the port mode of described ether port chip B.
Based on first aspect, in the first possible implementation of first aspect, if the port mode of described IEEE802.3 normalized definition defines auto-negotiation mode in IEEE802.3 specification, then the auto-negotiation mode of the port mode of described IEEE802.3 normalized definition is the auto-negotiation mode defined in IEEE802.3 specification;
If the port mode of described IEEE802.3 normalized definition does not define auto-negotiation mode in IEEE802.3 specification, then the auto-negotiation mode of the port mode of described IEEE802.3 normalized definition is the auto-negotiation mode of mutual special packet sequence.
Based on the first possible implementation of first aspect, in the implementation that the second of first aspect is possible, the auto-negotiation mode of described mutual special packet sequence, comprising:
The special packet sequence of the port mode of the described IEEE802.3 normalized definition of mutual IEEE802.3 normalized definition, if the received also verification succeeds of described special packet sequence, then judges to set up link success, otherwise judges link establishment failure.
Based on first aspect or the first possible implementation of first aspect or the possible implementation of the second of first aspect, in the third possible implementation of first aspect, described next port mode be switched in described port mode list, comprising:
If judge, auto-negotiation process exceedes the time pre-set, be switched to next port mode in described port mode list, wherein, described auto-negotiation process refers to that described ethernet port chip A sets up the process of link by the auto-negotiation mode of present port pattern and described ether port chip B.
Second aspect, one first communication equipment, described communication equipment comprises:
Link establishment unit, for arranging the present port pattern of ether port chip A according to the port mode list pre-set, if described ether port chip A sets up link failure by the auto-negotiation mode of described present port pattern and the ether port chip B of second communication equipment, the present port pattern then arranging described ether port chip A is next port mode in described port mode list, until described ether port chip A sets up link success by the auto-negotiation mode of described present port pattern and described ether port chip B, the port mode that described port mode list is supported for described ether port chip A is for carrying out the sequential list of port negotiation,
Described ether port chip A, support the port mode of at least one IEEE802.3 normalized definition, for being connected with the ether port chip of other communication equipments, and the auto-negotiation mode of described present port pattern arranged by described link establishment unit and the ether port chip B of described second communication equipment set up link, wherein, described second communication equipment is one in other communication equipments described, and the ether port chip of other communication equipments described only supports a kind of port mode of IEEE802.3 normalized definition;
Determining unit, if the auto-negotiation mode of the described present port pattern arranged by described link establishment unit for described ether port chip A and described ether port chip B link establishment success, then determine that described present port pattern is the port mode of described ether port chip B.
Based on second aspect, in the first possible implementation of second aspect, if described present port pattern defines auto-negotiation mode in IEEE802.3 specification, then the auto-negotiation mode of described present port pattern is the auto-negotiation mode defined in IEEE802.3 specification;
If described present port pattern does not define auto-negotiation mode in IEEE802.3 specification, then the auto-negotiation mode of described present port pattern is the auto-negotiation mode of mutual special packet sequence.
Based on the first possible implementation of second aspect, in the implementation that the second of second aspect is possible, the auto-negotiation mode of described mutual special packet sequence, comprising:
The special packet sequence of the described present port pattern of mutual IEEE802.3 normalized definition, if the received also verification succeeds of described special packet sequence, then judges to set up link success, otherwise judges to set up link failure.
Based on second aspect or the first possible implementation of second aspect or the possible implementation of the second of second aspect, in the third possible implementation of second aspect, also comprise:
Judging unit, for judging whether auto-negotiation process exceedes the time pre-set, described auto-negotiation process refers to that described ethernet port chip A sets up the process of link by the auto-negotiation mode of described present port pattern and described ether port chip B;
Then, described link establishment unit, be next port mode in described port mode list for arranging the present port pattern of described ether port chip A, be specially, for judge when described judging unit described auto-negotiation process exceed described in pre-set time time, the present port pattern arranging described ether port chip A is next port mode in described port mode list.
The third aspect, the first communication equipment, is characterized in that, comprises processor, memory, ether port chip A;
Described first communication equipment is connected with the ether port chip of other communication equipments by described ether port chip A, described ether port chip A supports the port mode of at least one IEEE802.3 normalized definition, and the ether port chip of other communication equipments described only supports a kind of port mode of IEEE802.3 normalized definition;
Described processor, for executive program;
Described memory, for storage program;
When described communication equipment runs, described processor makes described communication equipment perform following method for performing described program:
The present port pattern arranging described ether port chip A according to the port mode list pre-set is the first port mode, link is set up by the auto-negotiation mode of described first port mode and the ether port chip B of second communication equipment to make described ether port chip A, described second communication equipment is one in other communication equipments described, and the port mode that described port mode list is supported for described ether port chip A is for carrying out the sequential list of port negotiation;
If described ether port chip A sets up link success by the auto-negotiation mode of described first port mode and described ether port chip B, then determine that described first port mode is the port mode of described ether port chip B;
If described ether port chip A sets up link failure by the auto-negotiation mode of described first port mode and described ether port chip B, the present port pattern then arranging described ether port chip A is next port mode in described port mode list, link is set up by next port mode described and described ether port chip B to make described ether port chip A, until described ether port chip A sets up link by the auto-negotiation mode of the second port mode and described ether port chip B, then determine that described second port mode is the port mode of described ether port chip B.
Based on the third aspect, in the first possible implementation of the third aspect, if the port mode of described IEEE802.3 normalized definition defines auto-negotiation mode in IEEE802.3 specification, then the auto-negotiation mode of the port mode of described IEEE802.3 normalized definition is the auto-negotiation mode defined in IEEE802.3 specification;
If the port mode of described IEEE802.3 normalized definition does not define auto-negotiation mode in IEEE802.3 specification, then the auto-negotiation mode of the port mode of described IEEE802.3 normalized definition is the auto-negotiation mode of mutual special packet sequence.
Based on the first possible implementation of the third aspect, in the implementation that the second of the third aspect is possible, the auto-negotiation mode of described mutual special packet sequence, comprising:
The special packet sequence of the port mode of the described IEEE802.3 normalized definition of mutual IEEE802.3 normalized definition, if the received also verification succeeds of described special packet sequence, then judges to set up link success, otherwise judges to set up link not failure.
Based on the third aspect or the first possible implementation of the third aspect or the possible implementation of the second of the third aspect, in the third possible implementation of the third aspect, the described present port pattern arranging described ether port chip A is next port mode in described port mode list, comprising:
If judge, auto-negotiation process exceedes the time pre-set, the present port pattern arranging described ether port chip A is next port mode in described port mode list, wherein, described auto-negotiation process refers to that described ethernet port chip A sets up the process of link by the auto-negotiation mode of described present port pattern and described ether port chip B.
Compared with prior art, ether port chip A is from the first port mode in the list of the various ports pattern supported pre-set, link is set up with the ether port chip B of second communication equipment, if described ether port chip A sets up link success by the auto-negotiation mode of present port pattern and the ether port chip B of described second communication equipment, then determine that described present port pattern is the port mode of ether port chip B.Thus realize ether port chip A switch different port modes come with Peer-Port carry out auto-negotiation, automatically the port mode of Peer-Port is known, successfully link is set up with Peer-Port, give full play to the chip characteristics supporting multiport pattern, enhance between device interior pattern and interconnect between interconnection, plate, the flexibility interconnected between equipment and equipment, avoid complexity and the expense that setting forced by software, and avoid manually operated trouble, simplify the deployment of equipment.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained by these accompanying drawings.
Fig. 1 is the method flow diagram of a kind of ether port auto-negotiation that the embodiment of the present invention one provides;
Fig. 2 is the method schematic diagram of a kind of ether port auto-negotiation that the embodiment of the present invention one provides;
Fig. 3 is the method schematic diagram of a kind of ether port auto-negotiation that the embodiment of the present invention one provides;
Fig. 4 is the method schematic diagram of a kind of ether port auto-negotiation that the embodiment of the present invention one provides;
Fig. 5 is the method schematic diagram of a kind of ether port auto-negotiation that the embodiment of the present invention one provides;
Fig. 6 is the method flow diagram of a kind of ether port auto-negotiation that the embodiment of the present invention two provides;
Fig. 7 is the method schematic diagram of a kind of ether port auto-negotiation that the embodiment of the present invention two provides;
Fig. 8 is the structure drawing of device of one first communication equipment that the embodiment of the present invention three provides;
Fig. 9 is the structure drawing of device of one first communication equipment that the embodiment of the present invention four provides;
Figure 10 is the structure drawing of device of one first communication equipment that the embodiment of the present invention five provides.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Embodiment one
With reference to the method flow diagram that figure 1, Fig. 1 is a kind of ether port auto-negotiation that the embodiment of the present invention one provides.Described method comprises:
Step 101, the ether port chip A of the first communication equipment sets up link by the auto-negotiation mode of the first port mode in the port mode list that pre-sets and the ether port chip B of second communication equipment, wherein, described first communication equipment is connected with the ether port chip of other communication equipments by described ether port chip A, described ether port chip A supports the port mode of at least one IEEE802.3 normalized definition, the ether port chip of other communication equipments described only supports a kind of port mode of IEEE802.3 normalized definition, described second communication equipment is one in other communication equipments described, the port mode that described port mode list is supported for described ether port chip A is for carrying out the sequential list of port negotiation,
As shown in Figure 2, first communication equipment is connected with communication equipment 1-n by backboard, ether port chip A supports 100BASE-FX pattern and 1000BASE-SX pattern, then port mode list be exactly described ether port chip A support 100BASE-FX pattern and 1000BASE-SX pattern for carrying out the sequential list of port negotiation, such as, can arrange according to first carrying out port negotiation by 100BASE-X port mode in mode list, link is set up with communication equipment 1-n again by the order of 1000BASE-FX port mode, described 100BASE-FX pattern and 1000BASE-SX pattern are the patterns of IEEE802.3 normalized definition, wherein, 1000BASE-SX has definition auto-negotiation mode in IEEE802.3 specification, but 100BASE-FX does not define auto-negotiation mode in IEEE802.3 specification.
Each ether port chip of ether port chip 1-n only supports the port mode of a kind of IEEE802.3 normalized definition or 100BASE-FX pattern, or 1000BASE-SX pattern.The port of ether port chip A, by the software control of the control and management module of the first communication equipment, performs the auto-negotiation flow process shown in Fig. 3.
Can be preferred, when the port mode of described IEEE802.3 normalized definition has definition auto-negotiation mode in IEEE802.3 specification, then ether port chip A sets up link by the ether port chip B of the second communication equipment in the auto-negotiation mode that defines in IEEE802.3 specification and other communication equipments described.When the port mode of described IEEE802.3 normalized definition does not define auto-negotiation mode in IEEE802.3 specification, then ether port chip A sets up link by the auto-negotiation mode of the mutual special packet sequence of ether port chip B with the second communication equipment in other communication equipments described.
Wherein, when not defining auto-negotiation mode in IEEE802.3 specification, the auto-negotiation mode of described mutual special packet sequence, specifically comprise: the special packet sequence of the port mode of the described IEEE802.3 normalized definition of mutual IEEE802.3 normalized definition, if the received also verification succeeds of described special packet sequence, then judge to set up link success, otherwise judge to set up link failure.Concrete, judge whether port can set up link success (if receive and verify correctly, think and set up link successfully, otherwise think set up link failure) according to IEEE802.3 normalized definition by the mutual special packet sequence of ether port (such as IDLE code stream) be connected with opposite end.Described IDLE code stream is the code stream sequence defined inside ieee specification, (namely force to arrange the parameters such as speed, duplex, Flow Control under pressure port mode for ether port, but not to be operated by auto-negotiation according to normalized definition determine port parameter), information interaction is carried out, to determine whether normally (link up) port connects with Peer-Port.Namely, described ether port chip A is according to the mutual special packet sequence of ether port chip B of the second communication equipment in IEEE802.3 normalized definition and other communication equipments described, judge whether described ether port chip A can set up link with the ether port chip B of the second communication equipment in other communication equipments described by described special packet sequence, if the received also verification succeeds of described special packet sequence, then judge to set up link success link up, otherwise judge set up link failure link down, wherein link down represent set up port failure.
Such as, as shown in Figure 3, when ether port chip A sets up link according to the port mode list pre-set by the ether port chip 1 of 1000BASE-SX pattern and communication equipment 1, because described 1000BASE-SX pattern has definition auto-negotiation mode in IEEE802.3 specification, then ether port chip A sets up link by the auto-negotiation mode of 1000BASE-SX port mode that defines in IEEE802.3 specification and the ether port chip 1 of described communication equipment 1.When ether port chip A sets up link according to the port mode list pre-set by the ether port chip 1 of 100BASE-FX pattern and communication equipment 1, because described 100BASE-FX pattern does not define auto-negotiation mode in IEEE802.3 specification, then ether port chip A is by setting up link with the auto-negotiation mode of the mutual special packet sequence of the ether port chip 1 of communication equipment 1.Herein, second communication equipment is communication equipment 1, and ether port chip B is ether port chip 1.
Step 102, if described ether port chip A sets up link success by the auto-negotiation mode of described first port mode and described ether port chip B, then determines that described first port mode is the port mode of described ether port chip B.
Wherein, same, the auto-negotiation mode of described first port mode has two kinds of situations:
If described first port mode defines auto-negotiation mode in IEEE802.3 specification, then the auto-negotiation mode of described first port mode is the auto-negotiation mode defined in IEEE802.3 specification; As shown in Figure 2,1000BASE-SX pattern has definition auto-negotiation mode in IEEE802.3 specification, then the auto-negotiation mode of 1000BASE-SX pattern is held consultation with the auto-negotiation mode of the ether port chip of the equipment of opposite end according to IEEE802.3 normalized definition.
If described first port mode does not define auto-negotiation mode in IEEE802.3 specification, then the auto-negotiation mode of described first port mode is the auto-negotiation mode of mutual special packet sequence.As shown in Figure 2,100BASE-FX pattern does not define auto-negotiation mode in IEEE802.3 specification, then the auto-negotiation mode of 100BASE-FX pattern is special packet sequence mutual with the ether port chip of the equipment of opposite end.
Preferably, as the ether port chip Blink up of the second communication equipment in the mode and other communication equipments described of the auto-negotiation defined during described ether port chip A is by the IEEE802.3 specification of the first port mode, then determine that described first port mode is the mode of operation of the ether port chip B of second communication equipment in other communication equipments described, wherein link up represents auto-negotiation success, successfully sets up link.Such as, as shown in Figure 2, the auto-negotiation mode of the 1000BASE-SX pattern defined in ether port chip A is with IEEE802.3 specification and the ether port chip 2 of communication equipment 2 set up link, because the port mode of the ether port chip 2 of communication equipment 2 is 1000BASE-SX patterns, then link up.
Preferably, when described ether port chip A is by the ether port chip link up of the second communication equipment in the auto-negotiation mode of mutual special packet sequence and other communication equipments described, then determine that described first port mode is the mode of operation of the ether port chip B of second communication equipment in other communication equipments described.Such as, as shown in Figure 2, when ether port chip A sets up link with the ether chip 1 of the mode of mutual special packet sequence and communication equipment 1 under 100BASE-FX port mode, link link up, then determine that the port mode of the ether port chip 1 of communication equipment 1 is 100BASE-FX pattern.
Step 103, if described ether port chip A sets up link failure by the auto-negotiation mode of described first port mode and described ether port chip B, then be switched to described next port mode of port mode list, link is set up by next port mode described and described ether port chip B, until described ether port chip A sets up link by the auto-negotiation mode of the second port mode and described ether port chip B, then determine that described second port mode is the port mode of described ether port chip B.
Concrete, when described ether port chip A sets up link failure by the ether port chip B of the second communication equipment in the mode of the auto-negotiation of the first port mode and other communication equipments described, i.e. link down, then described ether port chip A is switched to next port pattern according to the port mode list pre-set from described first port mode, link is set up by next port mode described and described ether port chip B, if link establishment is unsuccessful, then continue the pattern of next port be again switched in port mode list, until described ether port chip A sets up link success by the auto-negotiation mode of the second port mode and described ether port chip B, then determine that described second port mode is the port mode of described ether port chip B.
Such as, can shown in reference diagram 4, the first communication equipment is cassete exchange machine, and communication equipment 1 ~ n can be cassete exchange machine or server etc., they, by optical fiber or passive cable interconnection, do not limit for the particular type of communication equipment and interconnection mode in the embodiment of the present invention.First communication equipment is connected with communication equipment 1 ~ n, and ether port chip A supports 100BASE-FX, 1000BASE-SX, 10GBASE-CR, 10GBASE-SR pattern, and ether port chip 1 ~ n all only supports a kind of above-mentioned 4 kinds of port modes.10GBASE-SR, 10GBASE-CR, 100BASE-FX do not define auto-negotiation mode in IEEE802.3 specification, and 1000BASE-SX is auto-negotiation mode at IEEE802.3 normalized definition.Here port mode list be exactly described ether port chip A support 10GBASE-SR, 10GBASE-CR, 1000BASE-SX, 100BASE-FX pattern is for carrying out the sequential list of port negotiation, such as, be assumed to be in the present embodiment according to 10GBASE-SR, 10GBASE-CR, 1000BASE-SX, 100BASE-FX order set up link with communication equipment 1-n.
Auto-negotiation process in often kind of port mode can with reference to figure 5.Set up link for the ether port chip 1 of the ether port chip A of the first communication equipment and communication equipment 1 below and the embodiment of the present invention is described.
First ether port chip A sets up link according to the ether port chip 1 sequentially passing through 10GBASE-SR pattern and communication equipment 1 of port mode list, auto-negotiation mode is not defined in IEEE802.3 specification, if then according to IEEE802.3 specification and the mutual specific sequence of message of ether port chip 1, port judges whether ether port can receive and verify correct by link up(, thinks that link up is successful, otherwise think link down), if linkup success, determines that the port mode of the ether port chip 1 of communication equipment 1 is 10GBASE-SR pattern, arranging this port is 10GBASE-SR pattern, port normally works.
If link can not link up, then think auto-negotiation failure, ether port chip A is switched to next port mode 10GBASE-CR pattern in port mode list.Concrete, according to port mode list, the port mode of ether port chip A can be set to 10GBASE-CR pattern by control and management module.
Under 10GBASE-CR pattern, IEEE802.3 specification does not define auto-negotiation mode yet, if ether port chip A is also by judging that whether link up(receives and verifies correct link, thinks that link up is successful according to IEEE802.3 specification and the mutual specific sequence of message of Peer-Port, otherwise think link down) judge auto-negotiation whether success, operate same 10GBASE-SR.
If link can not link up, then think that auto-negotiation is failed, ether port chip A is switched to next the port mode 1000BASE-SX pattern in port mode list, under 1000BASE-SX pattern, IEEE802.3 normalized definition auto-negotiation mode, ether port chip A then carries out auto-negotiation with Peer-Port according to the auto negotiation mode of IEEE802.3 normalized definition, if consult successfully, then determine that Peer-Port is 1000BASE-SX pattern, this port working is set in 1000BASE-SX pattern, port link up, working properly.
If the failure of 1000BASE-SX auto-negotiation, then enter 100BASE-FX pattern, if be also by judging whether that link up(receives and verify correct according to the mutual specific sequence of message of IEEE802.3 specification and Peer-Port, thinking that link up is successful under this pattern, otherwise think link down) judge that whether auto-negotiation is successful.
If the failure of 100BASE-FX auto-negotiation, then come back to 10GBASE-SR pattern according to port mode list.Certainly, also after all of the port pattern in port mode list all attempted, no longer can carry out auto-negotiation trial, and provide alarm or prompting, show that cannot mate suitable port mode with opposite equip. successfully sets up link.
The all of the port of ether port chip A all performs such auto-negotiation flow process, to determine the port mode of opposite end communication equipment, thus arranges each ether port that ether port chip A is connected with communication equipment 1-n.
In this example by the software free setting of control and management module, can there is not restriction in the port mode transfer sequence of ether port chip A.Ether port mode can also support 10GBASE-LR, and in IEEE802.3 specification, later release increases the port mode of definition, as long as the interface homomorphosis of the port mode in its interface form and this example, is not construed as limiting.
In the embodiment of the present invention, the ether port chip A of described first communication equipment by the order in the port mode list that pre-sets from the first port mode in the various ports pattern of described support, link is set up by the auto-negotiation mode of present port pattern and the ether port chip B of second communication equipment, until ether port chip A and described ether port chip B sets up link, then determine that described present port pattern is the port mode of described ether port chip B.Thus the physical port realizing controlling ether port chip switches, and different port modes is next carries out auto-negotiation with Peer-Port, give full play to the chip characteristics supporting multiport pattern, enhance between device interior pattern and interconnect between interconnection, plate, the flexibility interconnected between equipment and equipment, avoid complexity and the expense that setting forced by software, and avoid manually operated trouble, simplify the deployment of equipment.
Embodiment two
With reference to the method flow diagram that figure 6, Fig. 6 is a kind of ether port auto-negotiation that the embodiment of the present invention two provides.As shown in Figure 6, described method comprises the steps:
Step 601, the ether port chip A of the first communication equipment sets up link by the auto-negotiation mode of the first port mode in the port mode list that pre-sets and the ether port chip B of second communication equipment, wherein, described first communication equipment is connected with the ether port chip of other communication equipments by described ether port chip A, described ether port chip A supports the port mode of at least one IEEE802.3 normalized definition, the ether port chip of other communication equipments described only supports a kind of port mode of IEEE802.3 normalized definition, described second communication equipment is one in other communication equipments described, the port mode that described port mode list is supported for described ether port chip A is for carrying out the sequential list of port negotiation,
Step 602, if described ether port chip A sets up link success by the auto-negotiation mode of described first port mode and described ether port chip B, then determines that described first port mode is the port mode of described ether port chip B;
Step 603, judge whether auto-negotiation process exceedes the time pre-set, wherein, auto-negotiation process refers to that described ethernet port chip A sets up the process of link by the auto-negotiation mode of present port pattern (being now the first port mode) and described ether port chip B;
Step 604, the time pre-set if exceed, then be switched to next port mode in described port mode list, link is set up by next port mode described and described ether port chip B, until described ether port chip A sets up link success by the auto-negotiation mode of the second port mode and described ether port chip B, then determine that described second port mode is the port mode of described ether port chip B;
Concrete, when described ether port chip A is by the ether port chip B link down of the second communication equipment in the mode of the auto-negotiation of IEEE802.3 normalized definition and other communication equipments described, judge whether auto-negotiation process exceedes the time pre-set, if, then described ether port chip A is switched to next port pattern according to the port mode list pre-set from described first port mode, link is set up by next port mode described and described ether port chip B, with reference to the step 706 of figure 7, until described ether port chip A sets up link success by the auto-negotiation mode of the second port mode and described ether port chip B, then determine that described second port mode is the port mode of described ether port chip B.
Or when described ether port chip A is by the ether port chip B link down of the second communication equipment in the mode of mutual special packet sequence and other communication equipments described, judge whether auto-negotiation process exceedes the time pre-set, if, then described ether port chip A is switched to next port pattern according to the port mode list pre-set from described first port mode, link is set up by next port mode described and described ether port chip B, with reference to the step 711 of figure 7, until described ether port chip A sets up link success by the auto-negotiation mode of the second port mode and described ether port chip B, then determine that described second port mode is the port mode of described ether port chip B.
Step 605, if do not exceed the time pre-set, then the ether chip B of second communication equipment that described ether port chip A continues through in the auto-negotiation mode of described present port pattern (being herein the first port mode) and other communication equipments described sets up link.
Concrete, when described ether port chip A is by the ether port chip B link down of the second communication equipment in the mode of the auto-negotiation of IEEE802.3 normalized definition and other communication equipments described, judge whether auto-negotiation process exceedes the time pre-set, if not, the ether port chip B of second communication equipment that then described ether port chip A continues through in the mode of the auto-negotiation of described first port mode and other communication equipments described sets up link, with reference to the step 705 shown in figure 7;
Or when described ether port chip A is by the ether port chip B link down of the second communication equipment in the mode of mutual special packet sequence and other communication equipments described, judge whether auto-negotiation process exceedes the time pre-set, if not, the ether port chip B of second communication equipment that then described ether port chip A continues through in the mode of mutual special packet sequence and other communication equipments described sets up link, with reference to the step 710 shown in figure 7.
Fig. 7 is the method schematic diagram of a kind of ether port auto-negotiation that the embodiment of the present invention two provides.As shown in Figure 7, said method comprising the steps of:
Step 701, the port mode arranging ether port chip A is ether port mode n, judges whether ether port mode n defines auto-negotiation mode in IEEE802.3 specification;
Step 702, if ether port mode n defines auto-negotiation mode in IEEE802.3 specification, then described ether port chip A sets up link according to the auto-negotiation mode of ether port mode n defined in IEEE802.3 specification and the ether port chip of other equipment;
Can step 703, judges and the whether success of Peer-Port auto-negotiation, link up;
Step 704, if auto-negotiation is unsuccessful, link establishment failure, judges whether auto-negotiation process exceedes the time pre-set;
Step 705, if auto-negotiation process does not exceed the time pre-set, then returns and performs step 703;
Step 706, if auto-negotiation process exceedes the time pre-set, then the port mode of switching ether port chip A is the next port pattern in port mode list;
Step 707, if described ether port mode n undefined auto-negotiation mode in IEEE802.3 specification, the then mutual special packet sequence with Peer-Port;
Can step 708, judges and Peer-Port whether auto-negotiation success, link up;
Step 709, judges whether auto-negotiation process exceedes the time pre-set;
Step 710, if auto-negotiation process does not exceed the time pre-set, then returns and performs step 708;
Step 711, if auto-negotiation process exceedes the time pre-set, then the port mode of switching ether port chip A is the next port pattern in port mode list.
In the embodiment of the present invention, described ether port chip A by the port mode list that pre-sets from the port mode n in the various ports pattern of described support, to attempt and the ether port chip B of second communication equipment in other communication equipments described sets up link, if set up link failure, then judge whether auto-negotiation process exceedes the time pre-set, if so, next port pattern is then switched to.Thus the physical port realizing controlling ether port chip switches, and different port modes is next carries out auto-negotiation with Peer-Port, give full play to the chip characteristics supporting multiport pattern, enhance between device interior pattern and interconnect between interconnection, plate, the flexibility interconnected between equipment and equipment, avoid complexity and the expense that setting forced by software, and avoid manually operated trouble, simplify the deployment of equipment.
Embodiment three
With reference to the structure drawing of device that figure 8, Fig. 8 is one first communication equipment that the embodiment of the present invention three provides.Described communication equipment comprises:
First communication equipment comprises link establishment unit 801, determining unit 802 and ether port chip A803.
One of ordinary skill in the art will appreciate that the unit included by the communication equipment in the described embodiment of the present invention three is carry out dividing according to function logic, but be not limited to above-mentioned division, as long as corresponding function can be realized; In addition, the concrete title of each functional unit, also just for the ease of mutual differentiation, is not limited to the protection range of the application.
Link establishment unit 801, for arranging the present port pattern of ether port chip A803 according to the port mode list pre-set, if described ether port chip A803 sets up link failure by the auto-negotiation mode of present port pattern and the ether port chip B of second communication equipment, the present port pattern then arranging described ether port chip A803 is next port mode in described port mode list, until described ether port chip A803 sets up link success by the auto-negotiation mode of described present port pattern and described ether port chip B, the port mode that described port mode list is supported for described ether port chip A803 is for carrying out the sequential list of port negotiation,
Described ether port chip A803, support the port mode of at least one IEEE802.3 normalized definition, for being connected with the ether port chip of other communication equipments, and the auto-negotiation mode of described present port pattern arranged by described link establishment unit 801 and the ether port chip B of described second communication equipment set up link, wherein, described second communication equipment is one in other communication equipments described, and the ether port chip of other communication equipments described only supports a kind of port mode of IEEE802.3 normalized definition;
Determining unit 802, if the auto-negotiation mode of the described present port pattern arranged by described link establishment unit 801 for described ether port chip A803 and described ether port chip B set up link success, then determine that described present port pattern is the port mode of described ether port chip B.
Further, if present port pattern defines auto-negotiation mode in IEEE802.3 specification, then the auto-negotiation mode of described present port pattern is the auto-negotiation mode defined in IEEE802.3 specification; If present port pattern does not define auto-negotiation mode in IEEE802.3 specification, then the auto-negotiation mode of described present port pattern is the auto-negotiation mode of mutual special packet sequence.As shown in Figure 2,1000BASE-SX defines auto-negotiation mode in IEEE802.3 specification, then the auto-negotiation mode of 1000BASE-SX pattern is and the auto-negotiation mode of the ether port chip of the equipment of opposite end according to IEEE802.3 normalized definition.100BASE-FX pattern does not define auto-negotiation mode in IEEE802.3 specification, then the auto-negotiation mode of 100BASE-FX pattern is special packet sequence mutual with the ether port chip of the equipment of opposite end.
Further, when the auto-negotiation mode of described present port pattern is the auto-negotiation mode of mutual special packet sequence, the auto-negotiation mode of mutual special packet sequence, comprise: the special packet sequence of the described present port pattern of mutual IEEE802.3 normalized definition, if the received also verification succeeds of described special packet sequence, then judge to set up link success, otherwise judge to set up link failure.Concrete, described ether port chip A803 is according to the mutual special packet sequence of ether port chip B of the second communication equipment in IEEE802.3 normalized definition and other communication equipments described, judge whether described ether port chip A803 can set up link with the ether port chip B of the second communication equipment in other communication equipments described by described special packet sequence, if described special packet sequential reception verification succeeds, then judge link up, otherwise judge link down, wherein link down represents port connectivity failure.Wherein, then according to specification protocol by with the mutual special packet sequence of opposite end interconnect port (such as IDLE code stream) judge port whether can with opposite end successful connection (if receive and verify correct, think successful connection, otherwise think connection failure).Described IDLE code stream is the code stream sequence defined inside ieee specification, (namely force to arrange the parameters such as speed, duplex, Flow Control under pressure port mode for ether port, but not to be operated by auto-negotiation by normalized definition determine port parameter), information interaction is carried out, to determine whether normally (link up) port connects with Peer-Port.
Concrete, when described present port pattern defines auto-negotiation mode in IEEE802.3 specification, then ether port chip A803 sets up link by the ether port chip B of the second communication equipment in the mode of auto-negotiation that defines in IEEE802.3 specification and other communication equipments described.Such as, as shown in Figure 3, when ether port chip A803 sets up link with the ether port chip 1 of communication equipment 1 according to the setting of port mode list according to link establishment unit 801 from 1000BASE-SX pattern, because described 1000BASE-SX has definition auto-negotiation mode in IEEE802.3 specification, then ether port chip A803 sets up link by the mode of auto-negotiation that defines in IEEE802.3 specification and the ether port chip 1 of described communication equipment 1.When described present port pattern does not define auto-negotiation mode in IEEE802.3 specification, then ether port chip A803 sets up link by the mode of the mutual special packet sequence of ether port chip B with the second communication equipment in other communication equipments described.Such as, as shown in Figure 3, when ether port chip A803 sets up link according to link establishment unit 801 according to the ether port chip 1 being arranged through 100BASE-FX pattern and communication equipment 1 of port mode list, because described 100BASE-FX pattern is undefined auto-negotiation mode in IEEE802.3 specification, then ether port chip A is by setting up link with the mode of the mutual special packet sequence of the ether port chip 1 of communication equipment 1.
Described determining unit 802 specifically for: when described ether port chip A803 is by the ether port chip B link up of the second communication equipment in the mode of the auto-negotiation of present port and other communication equipments described, then determine that described present port pattern is the port mode of the ether port chip B of second communication equipment in other communication equipments described, wherein link up represents auto-negotiation success.Such as, as shown in Figure 2, when ether port chip A is connected with the ether port chip 2 of communication equipment 2 in the auto-negotiation mode of 1000BASE-SX pattern, because the port mode of the ether port chip 2 of communication equipment 2 is 1000BASE-SX patterns, then linkup, determining unit 802 determines that 1000BASE-SX pattern is the port mode of the ether port chip 2 of communication equipment 2.
When described ether port chip A803 is by the ether port chip B link up of the second communication equipment in the mode of the mutual special packet sequence of present port and other communication equipments described, then determine that described present port pattern is the port mode of the ether port chip B of second communication equipment in other communication equipments described.Such as, as shown in Figure 2, when ether port chip A is connected with the ether port chip 1 of communication equipment 1 in the auto-negotiation mode of mutual special packet sequence of 100BASE-FX pattern, because the port mode of the ether port chip 1 of communication equipment 1 is 100BASE-FX pattern, then link up, determining unit 802 determines that 100BASE-FX pattern is the port mode of the ether port chip 2 of communication equipment 2.
Concrete, described link establishment unit 801, for:
The present port pattern of ether port chip A803 is set according to the port mode list pre-set, if present port pattern defines auto-negotiation mode in IEEE802.3 specification, when described ether port chip A803 is by the ether port chip B link down of the second communication equipment in the auto-negotiation mode of IEEE802.3 normalized definition and other communication equipments described, then the present port pattern arranging described ether port chip A803 is the next port pattern in described port mode list; Shown in figure 4, the first communication equipment A is cassete exchange machine, and communication equipment 1 ~ n can be cassete exchange machine or server etc., and they are by optical fiber or passive cable interconnection.First communication equipment A is connected with communication equipment 1 ~ n, and ether port chip A supports 100BASE-FX, 1000BASE-SX, 10GBASE-CR, 10GBASE-SR pattern, and ether port chip 1 ~ n all only supports a kind of above-mentioned 4 kinds of port modes.10GBASE-SR, 10GBASE-CR, 100BASE-FX do not define auto-negotiation mode in IEEE802.3 specification, and 1000BASE-SX is auto-negotiation mode at IEEE802.3 normalized definition.With reference to figure 5, when ether port chip A sets up link by the ether port chip 1 of 1000BASE-SX pattern and communication equipment 1, because 1000BASE-SX pattern defines auto-negotiation mode in IEEE802.3 specification, then ether port chip A sets up link with the ether port chip 1 of the auto-negotiation mode of IEEE802.3 normalized definition and communication equipment 1.Because the port mode of the ether port chip 1 of communication equipment 1 is not 1000BASE-SX pattern, then set up link failure, arrange ether port chip A and be switched to next pattern, namely the ether port chip 1 of 100BASE-FX pattern as shown in Figure 5 and communication equipment 1 sets up link.
The present port pattern of ether port chip A803 is set according to the port mode list pre-set, if present port pattern does not define auto-negotiation mode in IEEE802.3 specification, as the ether port chip B link down of described ether port chip A803 by the second communication equipment in the mode of mutual special packet sequence and other communication equipments described, then the present port pattern arranging described ether port chip A803 is the next port pattern in described port mode list.Shown in figure 5, when ether port chip A sets up link from the ether port chip n of 100BASE-FX pattern and communication equipment n, because 100BASE-FX pattern does not define auto-negotiation mode in IEEE802.3 specification, then ether port chip A sets up link with the ether port chip n of the mode of mutual special packet sequence and communication equipment n.Because the port mode of the ether port chip n of communication equipment n is not 100BASE-FX pattern, then arrange ether port chip A and be switched to next pattern, namely 100BASE-CR pattern is as shown in Figure 5 attempted and the ether port chip n of communication equipment n sets up link.
In the embodiment of the present invention, by link establishment unit 801 for arranging the present port pattern of ether port chip A803 according to port mode list, ether port chip A803 sets up link by the ether port chip B of present port pattern and second communication equipment, if ether port chip A sets up link success by the auto-negotiation mode of present mode and ether port chip B, then determining unit 902 determines that present port pattern is the port mode of the ether port chip B of described second communication equipment, if ether port chip A803 sets up link failure by the auto-negotiation mode of present port pattern and the ether port chip B of second communication equipment, then link establishment unit 801 arranges the present port pattern of described ether port chip A803 is next port mode in described port mode list, until described ether port chip A803 sets up link success by the auto-negotiation mode of described present port pattern and described ether port chip B, then determining unit 902 determines that present port pattern is the port mode of the ether port chip B of described second communication equipment.Thus the physical port realizing controlling ether port chip switches, and different port modes is next carries out auto-negotiation with Peer-Port, give full play to the chip characteristics supporting multiport pattern, enhance between device interior pattern and interconnect between interconnection, plate, the flexibility interconnected between equipment and equipment, avoid complexity and the expense that setting forced by software, and avoid manually operated trouble, simplify the deployment of equipment.
Embodiment four
With reference to the structure drawing of device that figure 9, Fig. 9 is one first communication equipment that the embodiment of the present invention four provides.As described in Figure 9, described device comprises as lower unit:
Link establishment unit 801, determining unit 802, ether port chip A803, judging unit 804.
One of ordinary skill in the art will appreciate that the unit included by the first communication equipment in the described embodiment of the present invention four is carry out dividing according to function logic, but be not limited to above-mentioned division, as long as corresponding function can be realized; In addition, the concrete title of each functional unit, also just for the ease of mutual differentiation, is not limited to the protection range of the application.
Link establishment unit 801 in the present embodiment, determining unit 802, ether port chip A803, with the link establishment unit 801 described in preceding embodiment three, determining unit 802, A803 is identical for ether port chip, and this place repeats no more.In the present embodiment, only conduct further description for newly-increased judging unit 804 and the relevant vicissitudinous part of other modules thereof.
Described judging unit 804, for judging whether auto-negotiation process exceedes the time pre-set, wherein, described auto-negotiation process refers to that described ethernet port chip A803 sets up the process of link by the auto-negotiation mode of described present port pattern and described ether port chip B;
Concrete, if the auto-negotiation mode of present port pattern is the auto-negotiation mode defined in IEEE802.3 specification, as the ether port chip B link down of the second communication equipment in the mode and other communication equipments described of the auto-negotiation defined during described ether port chip A803 is by IEEE802.3 specification, judge whether auto-negotiation process exceedes the time pre-set, if not, the ether port chip B of second communication equipment that then described ether port chip A803 continues through in the mode of the auto-negotiation of described present port pattern and other communication equipments described sets up link, with reference to the step 705 shown in figure 7,
Or, the auto-negotiation mode of present port pattern does not define auto-negotiation mode in IEEE802.3 specification, when described ether port chip A803 is by the ether port chip B link down of the second communication equipment in the mode of mutual special packet sequence and other communication equipments described, judge whether auto-negotiation process exceedes the time pre-set, if not, the ether port chip B of second communication equipment that then described ether port chip A803 continues through in the mode of mutual special packet sequence and other communication equipments described sets up link, with reference to the step 710 shown in figure 7.
If auto-negotiation process exceedes the time pre-set, then link establishment unit 801 is next port mode in described port mode list for arranging the present port pattern of described ether port chip A803.Be specially, for judge when described judging unit described auto-negotiation process exceed described in pre-set time time, the present port pattern arranging described ether port chip A803 is next port mode in port mode list.
If auto-negotiation process exceedes the time pre-set, the present port pattern that link establishment unit 801 arranges ether port chip A803 is next port mode in described port mode list, until ether port chip A803 sets up link success by the auto-negotiation mode of described present port pattern and described ether port chip B, determining unit 802 determines that this present port pattern is the port mode of ether port chip B.
In the embodiment of the present invention, the ether port chip A of the first communication equipment by the port mode list that pre-sets from the first port mode in the various ports pattern of described support, to attempt and the ether port chip B of second communication equipment in other communication equipments described sets up link, if described ether port chip A sets up link success by the ether port chip B of the second communication equipment in the auto-negotiation mode of the first port mode and other communication equipments described, then determine that described first port mode is the mode of operation of the ether port chip B of second communication equipment in other communication equipments described, if auto-negotiation process exceedes the time pre-set, the present port pattern then arranging ether port chip A is next port mode in described port mode list, until ether port chip A sets up link success by the auto-negotiation mode of present port pattern and ether port chip B, then determine that described present port pattern is the port mode of described ether port chip B.Thus the physical port realizing controlling ether port chip switches, and different port modes is next carries out auto-negotiation with Peer-Port, give full play to the chip characteristics supporting multiport pattern, enhance between device interior pattern and interconnect between interconnection, plate, the flexibility interconnected between equipment and equipment, avoid complexity and the expense that setting forced by software, and avoid manually operated trouble, simplify the deployment of equipment.
Embodiment five
With reference to the structure drawing of device that Figure 10, Figure 10 are one first communication equipments that the embodiment of the present invention five provides.Reference Figure 10, Figure 10 are the first communication equipments 1000 that the embodiment of the present invention provides, and the specific embodiment of the invention does not limit the specific implementation of described communication equipment.Described communication equipment 1000 comprises:
Processor (processor) 1001, ether port chip A1002, memory (memory) 1003, bus 1004.
Processor 1001, ether port chip A1002, memory 1003 completes mutual communication by bus 1004.
Ether port chip A1002, for communicating with other communication equipments, first communication equipment 1000 is connected with the ether port chip of other communication equipments by ether port chip A1002, described ether port chip A1002 supports the port mode of at least one IEEE802.3 normalized definition, and the ether port chip of other communication equipments only supports a kind of port mode of IEEE802.3 normalized definition;
Processor 1001, for executive program.
Particularly, program A can comprise program code, and described program code comprises computer-managed instruction.
Processor 1001 may be one or more central processor CPU, or specific integrated circuit ASIC(Application Specific Integrated Circuit), or be configured to the one or more integrated circuits implementing the embodiment of the present invention.
Memory 1003, for storage program.Memory 1003 may comprise high speed random asccess memory (randomaccess memory is called for short RAM), still may comprise nonvolatile memory (non-volatilememory).
When described first communication equipment runs, described processor 1001 makes described first communication equipment perform following method for performing described program:
The present port pattern arranging described ether port chip A1002 according to the port mode list pre-set is the first port mode, link is set up by the auto-negotiation mode of described first port mode and the ether port chip B of second communication equipment to make described ether port chip A1002, described second communication equipment is one in other communication equipments described, and the port mode that described port mode list is supported for described ether port chip A1002 is for carrying out the sequential list of port negotiation;
If described ether port chip A1002 sets up link success by the auto-negotiation mode of described first port mode and described ether port chip B, then determine that described first port mode is the port mode of described ether port chip B;
If described ether port chip A1002 sets up link failure by the auto-negotiation mode of described first port mode and described ether port chip B, the present port pattern then arranging described ether port chip A1002 is next port mode in described port mode list, link is set up by next port mode described and described ether port chip B to make described ether port chip A1002, until described ether port chip A1002 sets up link by the auto-negotiation mode of the second port mode and described ether port chip B, then determine that described second port mode is the port mode of described ether port chip B.
Preferably, if the port mode of the IEEE802.3 normalized definition that ether port chip A1002 supports defines auto-negotiation mode in IEEE802.3 specification, then the auto-negotiation mode of the port mode of this IEEE802.3 normalized definition is the auto-negotiation mode defined in IEEE802.3 specification; If the port mode of the IEEE802.3 normalized definition that ether port chip A1002 supports does not define auto-negotiation mode in IEEE802.3 specification, then the auto-negotiation mode of the port mode of this IEEE802.3 normalized definition is the auto-negotiation mode of mutual special packet sequence.
Wherein, the auto-negotiation mode of mutual special packet sequence, comprising: the special packet sequence of the port mode of this IEEE802.3 normalized definition of mutual IEEE802.3 normalized definition, if the received also verification succeeds of special packet sequence, then judge to set up link success, otherwise judge to set up link failure.
Preferably, the present port pattern arranging ether port chip A1002 is next port mode in port mode list, be specially: if judge, auto-negotiation process exceedes the time pre-set, the present port pattern arranging described ether port chip A1002 is next port mode in described port mode list, wherein, described auto-negotiation process refers to that described ethernet port chip A1002 sets up the process of link by the auto-negotiation mode of described present port pattern and described ether port chip B.
Concrete, processor 1001 makes the method for this first communication equipment execution as described in embodiment in the present invention one, embodiment two for performing described program, and specific implementation details can see the description in embodiment one, embodiment two, and this place repeats no more.
The foregoing is only the preferred embodiment of the present invention, do not form limiting the scope of the present invention.Any any amendment done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included in application claims and comprise within scope.

Claims (12)

1. a method for ether port auto-negotiation, described method comprises:
The ether port chip A of the first communication equipment sets up link by the auto-negotiation mode of the first port mode in the port mode list that pre-sets and the ether port chip B of second communication equipment, wherein, described first communication equipment is connected with the ether port chip of other communication equipments by described ether port chip A, described ether port chip A supports the port mode of at least one IEEE802.3 normalized definition, the ether port chip of other communication equipments described only supports a kind of port mode of IEEE802.3 normalized definition, described second communication equipment is one in other communication equipments described, the port mode that described port mode list is supported for described ether port chip A is for carrying out the sequential list of port negotiation,
If described ether port chip A sets up link success by the auto-negotiation mode of described first port mode and described ether port chip B, then determine that described first port mode is the port mode of described ether port chip B;
If described ether port chip A sets up link failure by the auto-negotiation mode of described first port mode and described ether port chip B, then be switched to next port mode in described port mode list, link is set up by next port mode described and described ether port chip B, until described ether port chip A sets up link success by the auto-negotiation mode of the second port mode and described ether port chip B, then determine that described second port mode is the port mode of described ether port chip B.
2. method according to claim 1, is characterized in that:
If the port mode of described IEEE802.3 normalized definition defines auto-negotiation mode in IEEE802.3 specification, then the auto-negotiation mode of the port mode of described IEEE802.3 normalized definition is the auto-negotiation mode defined in IEEE802.3 specification;
If the port mode of described IEEE802.3 normalized definition does not define auto-negotiation mode in IEEE802.3 specification, then the auto-negotiation mode of the port mode of described IEEE802.3 normalized definition is the auto-negotiation mode of mutual special packet sequence.
3. method according to claim 2, is characterized in that, the auto-negotiation mode of described mutual special packet sequence, comprising:
The special packet sequence of the port mode of the described IEEE802.3 normalized definition of mutual IEEE802.3 normalized definition, if the received also verification succeeds of described special packet sequence, then judges to set up link success, otherwise judges link establishment failure.
4. the method according to claims 1 to 3 any one, is characterized in that, described in be switched to next port mode in described port mode list, comprising:
If judge, auto-negotiation process exceedes the time pre-set, be switched to next port mode in described port mode list wherein, described auto-negotiation process refers to that described ethernet port chip A sets up the process of link by the auto-negotiation mode of present port pattern and described ether port chip B.
5. one first communication equipment, described first communication equipment comprises:
Link establishment unit, for arranging the present port pattern of ether port chip A according to the port mode list pre-set, if described ether port chip A sets up link failure by the auto-negotiation mode of described present port pattern and the ether port chip B of second communication equipment, the present port pattern then arranging described ether port chip A is next port mode in described port mode list, until described ether port chip A sets up link success by the auto-negotiation mode of described present port pattern and described ether port chip B, the port mode that described port mode list is supported for described ether port chip A is for carrying out the sequential list of port negotiation,
Described ether port chip A, support the port mode of at least one IEEE802.3 normalized definition, for being connected with the ether port chip of other communication equipments, and the auto-negotiation mode of described present port pattern arranged by described link establishment unit and the ether port chip B of described second communication equipment set up link, wherein, described second communication equipment is one in other communication equipments described, and the ether port chip of other communication equipments described only supports a kind of port mode of IEEE802.3 normalized definition;
Determining unit, if the auto-negotiation mode of the described present port pattern arranged by described link establishment unit for described ether port chip A and described ether port chip B set up link success, then determine that described present port pattern is the port mode of described ether port chip B.
6. the first communication equipment according to claim 5, it is characterized in that, if described present port pattern defines auto-negotiation mode in IEEE802.3 specification, then the auto-negotiation mode of described present port pattern is the auto-negotiation mode defined in IEEE802.3 specification;
If described present port pattern does not define auto-negotiation mode in IEEE802.3 specification, then the auto-negotiation mode of described present port pattern is the auto-negotiation mode of mutual special packet sequence.
7. the first communication equipment according to claim 6, is characterized in that, the auto-negotiation mode of described mutual special packet sequence, comprising:
The special packet sequence of the described present port pattern of mutual IEEE802.3 normalized definition, if the received also verification succeeds of described special packet sequence, then judges to set up link success, otherwise judges to set up link failure.
8. the first communication equipment according to claim 5 to 7 any one, is characterized in that, also comprise:
Judging unit, for judging whether auto-negotiation process exceedes the time pre-set, described auto-negotiation process refers to that described ethernet port chip A sets up the process of link by the auto-negotiation mode of described present port pattern and described ether port chip B;
Then, the present port pattern that described link establishment unit arranges described ether port chip A is specially for next port mode in described port mode list: when described judging unit judge described auto-negotiation process exceed described in pre-set time time, the present port pattern arranging described ether port chip A is next port mode in described port mode list.
9. one first communication equipment, is characterized in that, comprise processor, memory, ether port chip A;
Described first communication equipment is connected with the ether port chip of other communication equipments by described ether port chip A, described ether port chip A supports the port mode of at least one IEEE802.3 normalized definition, and the ether port chip of other communication equipments described only supports a kind of port mode of IEEE802.3 normalized definition;
Described processor, for executive program;
Described memory, for storage program;
When described first communication equipment runs, described processor makes described first communication equipment perform following method for performing described program:
The present port pattern arranging described ether port chip A according to the port mode list pre-set is the first port mode, to make described ether port chip A set up link by the auto-negotiation mode of described first port mode and the ether port chip B of second communication equipment, described second communication equipment is one in other communication equipments described;
If described ether port chip A sets up link success by the auto-negotiation mode of described first port mode and described ether port chip B, then determine that described first port mode is the port mode of described ether port chip B;
If described ether port chip A sets up link failure by the auto-negotiation mode of described first port mode and described ether port chip B, the present port pattern then arranging described ether port chip A is next port mode in described port mode list, link is set up by next port mode described and described ether port chip B to make described ether port chip A, until described ether port chip A sets up link by the auto-negotiation mode of the second port mode and described ether port chip B, then determine that described second port mode is the port mode of described ether port chip B.
10. the first communication equipment according to claim 9, it is characterized in that, if the port mode of described IEEE802.3 normalized definition defines auto-negotiation mode in IEEE802.3 specification, then the auto-negotiation mode of the port mode of described IEEE802.3 normalized definition is the auto-negotiation mode defined in IEEE802.3 specification;
If the port mode of described IEEE802.3 normalized definition does not define auto-negotiation mode in IEEE802.3 specification, then the auto-negotiation mode of the port mode of described IEEE802.3 normalized definition is the auto-negotiation mode of mutual special packet sequence.
11. first communication equipments according to claim 10, is characterized in that, the auto-negotiation mode of described mutual special packet sequence, comprising:
The special packet sequence of the port mode of the described IEEE802.3 normalized definition of mutual IEEE802.3 normalized definition, if the received also verification succeeds of described special packet sequence, then judges to set up link success, otherwise judges to set up link failure.
12. the first communication equipments according to claim 9 to 11 any one, it is characterized in that, the described present port pattern arranging described ether port chip A is next port mode in described port mode list, comprising:
If judge, auto-negotiation process exceedes the time pre-set, the present port pattern arranging described ether port chip A is next port mode in described port mode list, wherein, described auto-negotiation process refers to that described ethernet port chip A sets up the process of link by the auto-negotiation mode of described present port pattern and described ether port chip B.
CN201280002842.XA 2012-11-29 2012-11-29 A kind of method of ether port auto-negotiation and communication equipment Active CN103222251B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/085571 WO2014082261A1 (en) 2012-11-29 2012-11-29 Ethernet port auto-negotiation method and communication device

Publications (2)

Publication Number Publication Date
CN103222251A CN103222251A (en) 2013-07-24
CN103222251B true CN103222251B (en) 2015-09-30

Family

ID=48818206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201280002842.XA Active CN103222251B (en) 2012-11-29 2012-11-29 A kind of method of ether port auto-negotiation and communication equipment

Country Status (2)

Country Link
CN (1) CN103222251B (en)
WO (1) WO2014082261A1 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014082261A1 (en) * 2012-11-29 2014-06-05 华为技术有限公司 Ethernet port auto-negotiation method and communication device
CN104796306B (en) * 2015-03-26 2018-11-27 新华三技术有限公司 A kind of port mode machinery of consultation and equipment
CN106059993A (en) * 2016-05-04 2016-10-26 河南职业技术学院 Computer network data interactive communication device and method
CN108476245B (en) * 2016-08-22 2022-01-11 华为技术有限公司 Method for establishing port connection and port chip
CN107182069B (en) * 2017-05-23 2020-06-26 深圳市微网力合信息技术有限公司 Wireless router transmission rate switching method, control method and wireless router
CN110289978B (en) * 2018-03-19 2021-05-04 华为技术有限公司 Port mode switching method and related equipment thereof
CN109495341B (en) * 2018-11-12 2021-01-15 苏州裕太微电子有限公司 Time-sharing sending line pair information of Ethernet and line pair detection method
CN112217661B (en) * 2019-07-12 2024-02-02 华为技术有限公司 Port mode self-adaption method and device
CN117896453A (en) 2019-10-18 2024-04-16 华为技术有限公司 Auto-negotiation method and device
CN112491632A (en) * 2020-12-15 2021-03-12 安徽皖通邮电股份有限公司 System and method for automatically adjusting Ethernet port negotiation mode
CN116866883B (en) * 2023-09-05 2023-11-24 中国兵器装备集团兵器装备研究所 Method and system for improving timeliness of data transmission

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101616189A (en) * 2009-07-17 2009-12-30 北京星网锐捷网络技术有限公司 A kind of negotiation method of Ethernet port, device and the network equipment
CN101958888A (en) * 2010-05-21 2011-01-26 福建星网锐捷网络有限公司 Configuration method of port negotiation capacity, communication port and communication device
CN102215067A (en) * 2011-07-11 2011-10-12 福建星网锐捷网络有限公司 Port auto negotiation method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100499535C (en) * 2003-09-02 2009-06-10 华为技术有限公司 Method and device for supporting Ethernet self-consultation in medium access control
US8184556B2 (en) * 2007-11-19 2012-05-22 Ciena Corporation Systems and methods for distance-proof N-pass auto negotiation for gigabit ethernet
CN101350823B (en) * 2008-08-21 2012-05-23 中兴通讯股份有限公司 Negotiation method and apparatus for connecting Ethernet port link
WO2014082261A1 (en) * 2012-11-29 2014-06-05 华为技术有限公司 Ethernet port auto-negotiation method and communication device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101616189A (en) * 2009-07-17 2009-12-30 北京星网锐捷网络技术有限公司 A kind of negotiation method of Ethernet port, device and the network equipment
CN101958888A (en) * 2010-05-21 2011-01-26 福建星网锐捷网络有限公司 Configuration method of port negotiation capacity, communication port and communication device
CN102215067A (en) * 2011-07-11 2011-10-12 福建星网锐捷网络有限公司 Port auto negotiation method and device

Also Published As

Publication number Publication date
CN103222251A (en) 2013-07-24
WO2014082261A1 (en) 2014-06-05

Similar Documents

Publication Publication Date Title
CN103222251B (en) A kind of method of ether port auto-negotiation and communication equipment
CN102907057B (en) Exchange in network equipment
CN102014019B (en) Aggregated link switching method and device
CN104253764B (en) Link aggregation method and device
EP3036873B1 (en) Dedicated control path architecture for stacked packet switches
CN101087204A (en) System and method for controlling boot-up process using preconfiguration of port hardware
CN104735001B (en) Link discovery method, apparatus and system in software defined network
CN102326358B (en) Method, device of cluster system extension and cluster system
CN102724030A (en) Stacking system with high reliability
CN103684716A (en) Method for transmitting messages in a redundantly operable industrial communication network and communication device for the redundantly operable industrial communication network
CN104427012B (en) Port negotiation method and apparatus
CN101088257B (en) Operator level resilience solution for switched Ethernet LAN
US10826847B2 (en) Port auto-negotiation method and device
CN109274603A (en) Interconnecting method and device between heterogeneous protocol data based on software definition
CN103107940A (en) Redundant gateway system for device level ring networks
US9391842B2 (en) Self-configuring transport network
CN102104531A (en) Message processing device, method and system
CN108804260A (en) A kind of method and apparatus that SRIO systems are switched
CN106941424B (en) Redundancy switching method and device based on TTDP protocol
CN103634209A (en) Method and equipment for data transmission
CN109981353B (en) Method and system for protecting adjacent station redundancy in frame type network communication equipment
CN1968075B (en) Distributed hot-standby logic device and primary/standby board setting method
CN102811153B (en) VLAN state negotiating method and edge device
KR101077750B1 (en) Method for Transmitting Up-Link Data of Master-Slave System, and Extended Apparatus for Programmable Logic Controller System
CN103401708A (en) Port configuration 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
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211227

Address after: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province

Patentee after: xFusion Digital Technologies Co., Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.