Summary of the invention
In view of this, main purpose of the present invention is to provide the compatible implementation method of a kind of Ethernet electrical interface, system and interface equipment, realizes compatibility and intercommunication between 1000M, 10G and the 40G/100G Ethernet electrical interface.
For achieving the above object, technical scheme provided by the invention is as follows:
The compatible implementation method of a kind of Ethernet electrical interface, this method comprises: the two ends with dissimilar Ethernet electrical interfaces connect by crossover sub; Described two ends were carried out mode of operation earlier and are consulted before transfer of data, carry out transfer of data according to the mode of operation that negotiates then, described negotiation comprises: any end in the described two ends all detects active line between the described two ends to number, according to detected active line number is revised the mode of operation information that local terminal is supported, amended mode of operation information of local terminal and active line are adapted to number, afterwards, amended mode of operation information is sent to the opposite end, and receive the mode of operation information that the opposite end passes over, both sides of mode of operation Information Selection amended according to local terminal then and that send the opposite end all support and the optimal working pattern as the mode of operation that negotiates.
Described crossover sub comprises RJ-45/CX4 crossover sub, 40-PIN/RJ-45 crossover sub and 40-PIN/CX4 crossover sub, wherein, the RJ-45/CX4 crossover sub is used to carry out the conversion between RJ-45 connector and the CX4 connector, the 40-PIN/RJ-45 crossover sub is used to carry out the conversion between 40-PIN connector and the RJ-45 connector, and the 40-PIN/CX4 crossover sub is used to carry out the conversion between 40-PIN connector and the CX4 connector.
Described 40-PIN connector is supported 4x, 5x and 10x cable.
Described detection active line comprises the process of number:
When beginning to consult, any end in the described two ends all every line on send FLP;
The line that the end that detects FLP determines to detect FLP and is added up detected active line to number to right for active line.
This method further comprises: an end that is provided with in the described two ends is main end, and the other end is from end; After negotiating mode of operation, main end is determined the right line preface of each active line, and the effective Line To Line preface that will determine sends to from end, carries out the adjustment of line preface from effective Line To Line preface that end is sent according to main end.
Described negotiations process realizes that by the auto-negotiation function described negotiation also comprises: increase a new information sign in the message field of message page, be used for representing that the Ethernet electrical interface will use the unformatted page or leaf of this message page back to carry out technical capability and consult;
Describedly amended mode of operation information is sent to the opposite end comprise: amended mode of operation information is carried in first unformatted page or leaf after the message page of using described new information sign and sends to the opposite end;
Described effective Line To Line preface is sent to from end comprises: second the unformatted page or leaf that effective Line To Line preface information is carried at after the message page of using described new information sign sends to from end.
The compatible realization of a kind of Ethernet electrical interface system, comprise: first interface equipment and second interface equipment with dissimilar Ethernet electrical interfaces, wherein, first interface equipment is connected by crossover sub with second interface equipment, and first interface equipment and second interface equipment carried out mode of operation earlier before transfer of data consults, and carries out transfer of data according to the mode of operation that negotiates then; Described negotiation comprises: described first interface equipment and second interface equipment all every line on send and be connected pulse FLP fast, the line that the first/the second interface equipment determines to detect FLP to for active line right, according to detected active line number is revised the mode of operation information that local terminal is supported, amended mode of operation information of local terminal and active line are adapted to number, and amended mode of operation information is sent to the second/the first interface equipment; After the second/the first interface equipment is received the mode of operation information of sending the opposite end, the mode of operation that both sides of mode of operation Information Selection amended according to local terminal and that send the opposite end all support and the conduct of optimal working pattern negotiates.
Described first or second interface equipment is further used for determining effective Line To Line preface, and the effective Line To Line preface that will determine sends to second or first interface equipment, and second or first interface equipment carries out the adjustment of line preface according to effective Line To Line preface of receiving.
Described crossover sub comprises RJ-45/CX4 crossover sub, 40-PIN/RJ-45 crossover sub and 40-PIN/CX4 crossover sub, wherein, the RJ-45/CX4 crossover sub is used to carry out the conversion between RJ-45 connector and the CX4 connector, the 40-PIN/RJ-45 crossover sub is used to carry out the conversion between 40-PIN connector and the RJ-45 connector, and the 40-PIN/CX4 crossover sub is used to carry out the conversion between 40-PIN connector and the CX4 connector.
A kind of interface equipment comprises: negotiation element and number leaflet unit, wherein,
Negotiation element, the opposite end interface equipment that is used for linking to each other with described interface equipment carry out mode of operation to be consulted, and the mode of operation information that negotiates is sent to several leaflet unit; Wherein, described negotiation element comprises detecting unit and selected cell,
Described detecting unit, be used for the institute that described interface equipment connects wired on the quick connection pulse FLP that sends of the described opposite end of detection interface equipment, the line that detects FLP is right to being defined as active line, and detected active line sent to described selected cell to number;
Described selected cell, the active line that is used for sending according to described detecting unit is revised the mode of operation information that described interface equipment is supported to number, amended mode of operation information and active line are adapted to number, then amended mode of operation information is sent to described opposite end interface equipment, and according to both sides of mode of operation Information Selection that described amended mode of operation information and described opposite end interface equipment are sent all support and the optimal working pattern as the mode of operation that negotiates, and the mode of operation information that negotiates sent to several leaflet unit;
Number leaflet unit, the pairing mode of operation of mode of operation information and the described opposite end interface equipment that are used for sending according to selected cell carry out transfer of data.
Described negotiation element is further used for after negotiating mode of operation, determines the line preface that each active line is right, and the effective Line To Line preface that will determine sends to the opposite end interface equipment; Perhaps, effective Line To Line preface of sending according to the opposite end interface equipment is carried out the adjustment of line preface.
This shows, the present invention has realized the connection of various dissimilar Ethernet electrical interfaces such as 1000M, 10G and 40G/100G by designing suitable crossover sub, and after connecting, the two ends that need carry out transfer of data at first needed to carry out the negotiation of mode of operation before transfer of data, negotiate the mode of operation that both sides all support.Because the mode of operation that negotiates is the mode of operation that communicating pair is all supported, therefore according to this mode of operation, communicating pair can carry out normal data transmission procedure, thereby has realized compatibility and intercommunication between 1000M, 10G and the 40G/100G Ethernet electrical interface.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, the embodiment that develops simultaneously with reference to the accompanying drawings is described in further detail the present invention.
Before introducing the present invention in detail, at first introduce the connector form of the 1000M and the 10G electrical interface of present use.Wherein, the 1000M electrical interface generally uses the RJ-45 connector; The connector form of 10G electrical interface is divided into two kinds, the CX4 connector that 10GBASE-CX4 adopts Infiniband Finance House Association to formulate, then the same with the 1000M electrical interface RJ-45 connector that uses of 10GBASE-T.
And for the 40G/100G electrical interface, through feasibility analysis, there is multiple different implementation in it, can adopt the implementation of 4x10 as 40G Ethernet electrical interface, and the 100G electrical interface has 10x 10,5x20, three kinds of different implementations of 4x25, wherein, the numeral passage number before the x, the message transmission rate of each passage of numeral after the x.Under different implementations, corresponding type of cable is also different, is made of 16 altogether 8 pairs of lines as the 4x cable of 4x25 and 4x10 mode correspondence; The 5x cable of 5x20 mode correspondence is made up of 10 pairs of lines, 20 altogether; The 10x cable of 10x10 mode correspondence is made up of 20 pairs of lines, 40 altogether.
According to These characteristics, the standard form of 40G/100G electrical interface once at first makes dissimilar cables can use identical electrical interface here.Because in 4x, 5x, three kinds of cables of 10x, what the line number was maximum is 40, therefore, here can use the 40-PIN electrical interface that has 40 pins (40-PIN) at least by configures physical layer (PHY) chip, this electrical interface can be supported various dissimilar cables, as 4x cable, 5x cable, 10x cable.
To sum up, for 1000M, 10G, three kinds of different ethernet standards of 40G/100G, relate to the RJ-45 connector of three kinds of different connectors: 1000M and 10GBASE-T, the CX4 connector of 10GBASE-CX4, the 40-PIN connector of 40G/100G altogether.
For the compatibility and the intercommunication that realize various dissimilar Ethernet electrical interfaces, basic thought of the present invention is: at various dissimilar electrical interfaces, design suitable crossover sub, realize the connection of various dissimilar electrical interfaces by crossover sub; And, because technical capability (as the transmission rate) difference that various dissimilar electrical interfaces are supported, therefore, after realizing the connection of dissimilar electrical interfaces by crossover sub, carry out the two ends of transfer of data for needs, they at first will carry out the negotiation of mode of operation before transfer of data, and then carry out transfer of data according to consulting successful mode of operation.
In view of 1000M, 10G, the total RJ-45 connector of 40G/100G electrical interface, three kinds of different connector forms of CX4 connector and 40-PIN connector, therefore, the crossover sub that needs three types of designs here altogether: RJ-45/CX4,40-PIN/CX4,40-PIN/RJ-45.Wherein, the RJ-45/CX4 crossover sub is used to carry out the conversion between RJ-45 connector and the CX4 connector; The 40-PIN/CX4 crossover sub is used to carry out the conversion between 40-PIN connector and the CX4 connector; The 40-PIN/RJ-45 connector is used to carry out the conversion between 40-PIN connector and the RJ-45 connector.
Specific implementation about crossover sub is no longer elaborated here, only describes by a simple example.Such as, suppose to support that the A equipment electrical interface of 40G/100G transmittability adopts 40-PIN connector form, support the B equipment electrical interface of 10G transmittability to adopt RJ-45 connector form, when A equipment and B equipment want to carry out transfer of data by the 4x cable, in view of the A equipment electrical interface that adopts 40-PIN connector form is supported 4x, 5x, the various dissimilar cables of 10x, so A equipment electrical interface can directly be connected with the 4x cable, but adopt the B equipment electrical interface of RJ-45 connector form directly to link to each other with the 4x cable.At this moment, 40-PIN/RJ-45 crossover sub provided by the invention has just used, and B equipment can be realized and being connected of 4x cable by the 40-PIN/RJ-45 crossover sub.Because the 4x cable always has 8 lines to being 16 lines, and common RJ-45 connector has only 8 lines, so when specific implementation, to the B device orientation, the 40-PIN/RJ-45 crossover sub only needs to select from 16 lines of 4x cable 8 to get final product to the output of B equipment electrical interface for A equipment; Otherwise to the A device orientation, the 40-PIN/RJ-45 crossover sub is carried out opposite operation for B equipment, and only 8 lines by the 4x cable carry out transfer of data.That is to say that what in fact crossover sub was carried out is the map operation of holding wire between dissimilar connectors.
Because the technical capability difference that various dissimilar electrical interfaces are supported, so realize by crossover sub after the connection of dissimilar electrical interfaces, both link ends at first needed to carry out the negotiation of mode of operation before transfer of data.Wherein, described negotiations process can realize by the auto-negotiation function.The auto-negotiation function is formulated for the compatibling problem that solves Fast Ethernet equipment and low speed ethernet device, it is realized by the physical chip design fully, do not use dedicated packet, also can not bring any upper-layer protocol expense, the auto-negotiation content comprises operating rate, dual-mode and flow control etc.The auto-negotiation function allows a network equipment to send the mode of operation information of self supporting to the opposite end network equipment, and accepting the corresponding information that the opposite end passes over, the both sides of mode of operation Information Selection that support according to self and opposite end all support and the optimal working mode operation then; If there is not identical mode of operation in terminal device, then to consult not pass through, terminal device can not communicate.
In addition, in order to guarantee that the final mode of operation of selecting of both link ends can access the transmission link support between the two ends, before determining mode of operation, both link ends at first needs to revise the mode of operation information of self supporting according to the transmission link characteristic between the two ends, amended mode of operation information and transmission link are adapted, both link ends carries out mode of operation according to amended mode of operation information again and consults then, finally negotiates the mode of operation that both sides all support and communicates.
Fig. 1 shows the exemplary process diagram that both link ends among the present invention carries out auto-negotiation, and referring to shown in Figure 1, this auto-negotiation process may further comprise the steps:
Step 101: when beginning to consult, any end in the both link ends all will every line on send simultaneously and connect pulse (FLP) fast, and determine that an end is a main end (master), the other end be from holding (slave).
About main end and setting from holding, can on two ends, carry out fixed configurations in advance, perhaps in the auto-negotiation process, consult voluntarily to determine by two ends.
Step 102: the line that the end of link that detects FLP determines to detect FLP to for active line right, and according to the mode of operation information of detected active line to the support of number modification local terminal, amended mode of operation information of local terminal and active line are adapted to number, then amended mode of operation information is sent to the opposite end.
Step 103: receive the end of link of the mode of operation information of sending the opposite end, both sides of mode of operation Information Selection amended according to local terminal and that send the opposite end all support and the optimal working pattern.
Certainly, the if there is no mode of operation all supported of both sides, the merit of then failing to consultations, both link ends can not carry out transfer of data.Following step 104~105 are primarily aimed at the mode of operation that exists both sides all to support and promptly consult case of successful and describe.
Need to prove that any end in the both link ends is all wanted execution in step 102 and 103.
Step 104: after mode of operation is determined, both link ends carries out relevant configuration according to the mode of operation that negotiates, and main end also will be determined the line preface that each active line is right, and the effective Line To Line preface information that will determine sends to from end, carries out the adjustment of line preface from end according to the line preface information of receiving.
Here why to carry out the adjustment of line preface, be because in data transmission procedure each active line on the content that transmits be different, if the negotiation of the not advanced line preface of both link ends, then receiving terminal just can not recover initial data probably.
The scheme that this line preface is consulted, can solve some emergency situations well, such as, when certain line in the cable to breaking down or interface when broken needle is arranged, both link ends can be consulted by other normal line carrying out transfer of data, so just can not influence normal data transmission procedure.
Step 105: after the mode of operation that the both link ends basis negotiates and effective Line To Line preface are finished correct configuration, the beginning normal data transfer.
Below by a concrete example auto-negotiation process among the present invention is elaborated.
In the auto-negotiation function, except carrying out the exchange of essential information by sending base page information, can also be by sending the exchange that next page information carries out extraneous information.The coding of next page information is divided into the message page coding and the unformatted page or leaf is encoded two kinds, and wherein, message page is used for showing type of message; The unformatted page or leaf sends after message page, is used for representing the data message of this message, and a more than unformatted page or leaf can be followed in a message page back.
Here, can in the message field of message page, distribute a new message flag,, be used for representing that the Ethernet electrical interface will use the unformatted page or leaf of this message page back to come negotiation communication both sides' technical capability as 500.And the present invention uses two unformatted pages or leaves, and one of them is used for consulting mode of operation, and another is used for consulting line preface information.Table 1 shows the content of first unformatted page or leaf, and table 2 shows the content of second unformatted page or leaf.
In table 1, U[0] to enable be U[0] position is changed to effectively that (as being changed to 1) expresses support for 40G speed; U[1] enable to express support for 100G speed; U[2] enable to express support for the 4x25 ability; U[3] enable to express support for the 5x20 ability; U[4] enable to express support for the 10x10 ability; U[5] enable to express support for the 10GBASE-T ability; U[6] enable to express support for the 10GBASE-CX4 ability; U[7:10] for keeping the position.If U[0]~U[6] in any by being gone to enable, then the corresponding techniques ability is not supported in expression.In addition, in the table 1 why not about whether supporting the bit of 1000M speed, be because in existing 1000M Ethernet protocol, speed can be carried in the base page information of auto-negotiation starting stage and send, and an end can be known the rate information of opposite end according to the base page information that send the opposite end.
Bit (position) |
Name (title) |
Description (describe, explain) |
U[0] |
40G |
Support 40G speed |
U[1] |
100G |
Support 100G speed |
Bit (position) |
Name (title) |
Description (describe, explain) |
U[2] |
4lane |
Support the 4x25 ability |
U[3] |
5lane |
Support the 5x20 ability |
U[4] |
10lane |
Support the 10x10 ability |
U[5] |
10GBASE-T |
Support the 10GBASE-T ability |
U[6] |
10GBASE-CX4 |
Support the 10GBASE-CX4 ability |
U[7:10] |
Preserved (reservation) |
|
Table 1
Table 2
Any end in the both link ends detect active line to number after, according to detected active line number is revised unformatted territory in first unformatted page or leaf, and amended unformatted page or leaf sent to the opposite end, finally negotiate both sides and all support and the optimal working pattern.Such as, suppose that the detected active line of first end is 4 to number, and this end can be supported 1000BASE-T and two kinds of abilities of 10GBASE-T, then this moment, first end can be with the U[5 in first unformatted page or leaf] position is 1, other position is 0, then amended first unformatted page or leaf is sent to i.e. second end in opposite end; If the detected active line of second end also is 4 to number, and second end only supports 1000BASE-T, and then second end can be changed to 0 entirely with all bits in first unformatted page or leaf, then amended first unformatted page or leaf is sent to first end; After first end and second end are received first unformatted page or leaf that the other side sends, the mode of operation information that to support number and local terminal according to first unformatted page or leaf content of receiving, detected active line, select two ends all to support and the optimal working pattern, in this example, first end and second end are through consulting, with the 1000BASE-T mode of operation of using both sides all to support.And, for the end of master also can be stipulated 4 pairs of line prefaces that active line is right, effective Line To Line preface is according to the rules finished self line preface adjustment, and the effective Line To Line preface information that will stipulate is carried in second unformatted page or leaf and sends to the opposite end, finish self line preface adjustment according to effective Line To Line preface of receiving after receive the opposite end, and return affirmation to an end of sending line preface information.So far, negotiations process has been finished at two ends, after accomplishing the setting up by negotiation result, and the beginning normal data transfer.
Correspondingly, the present invention also provides the compatible realization of a kind of Ethernet electrical interface system.Fig. 2 shows the exemplary configurations schematic diagram of this system, comprise: first interface equipment and second interface equipment with dissimilar Ethernet electrical interfaces, wherein, first interface equipment is connected by crossover sub with second interface equipment, and first interface equipment and second interface equipment carried out mode of operation earlier before transfer of data consults, and carries out transfer of data according to the mode of operation that negotiates then.
Wherein, described first interface equipment and second interface equipment all the every line that self is connected on send FLP, and all online FLP that last detection opposite end is sent, the line that the interface equipment (comprising first interface equipment and second interface equipment) that detects FLP determines to detect FLP to for active line right, and according to the mode of operation information of detected active line to the support of number modification local terminal, amended mode of operation information of local terminal and active line are adapted to number, then amended mode of operation information is sent to the opposite end interface equipment; Receive the mode of operation that interface equipment (comprising first interface equipment and second interface equipment) both sides of mode of operation Information Selection amended according to local terminal and that send the opposite end all support and the conduct of optimal working pattern negotiates of the mode of operation information of sending the opposite end.
Wherein, side in described first interface equipment and second interface equipment is the interface equipment of master, be further used for determining effective Line To Line preface, and the effective Line To Line preface that will determine sends to the interface equipment that the opposing party's interface equipment is slave, for the interface equipment of slave further carries out the adjustment of line preface according to effective Line To Line preface of receiving.
Described crossover sub comprises RJ-45/CX4 crossover sub, 40-PIN/RJ-45 crossover sub and 40-PIN/CX4 crossover sub, wherein, the RJ-45/CX4 crossover sub is used to carry out the conversion between RJ-45 connector and the CX4 connector, the 40-PIN/RJ-45 crossover sub is used to carry out the conversion between 40-PIN connector and the RJ-45 connector, and the 40-PIN/CX4 crossover sub is used to carry out the conversion between 40-PIN connector and the CX4 connector.
In addition, the present invention also provides a kind of interface equipment.Fig. 3 shows the exemplary configurations schematic diagram of this interface equipment, comprise: negotiation element and number leaflet unit, wherein, the opposite end interface equipment that negotiation element is used for linking to each other with described interface equipment carries out mode of operation to be consulted, and the mode of operation information that negotiates is sent to several leaflet unit; Number leaflet unit, the pairing mode of operation of mode of operation information and the described opposite end interface equipment that are used for sending according to negotiation element carry out transfer of data.
Described negotiation element comprises detecting unit and selected cell, wherein, detecting unit, be used for the institute that described interface equipment connects wired on the FLP that sends of the described opposite end of detection interface equipment, the line that detects FLP is right to being defined as active line, and detected active line sent to selected cell to number; Selected cell, the active line that is used for sending according to detecting unit is revised the mode of operation information that described interface equipment is supported to number, amended mode of operation information and active line are adapted to number, then amended mode of operation information is sent to described opposite end interface equipment, and according to both sides of mode of operation Information Selection that described amended mode of operation information and described opposite end interface equipment are sent all support and the optimal working pattern as the mode of operation that negotiates.
Described negotiation element is further used for after negotiating mode of operation, determines the line preface that each active line is right, and the effective Line To Line preface that will determine sends to the opposite end interface equipment; Perhaps, effective Line To Line preface of sending according to the opposite end interface equipment is carried out the adjustment of line preface.
If interface equipment shown in Figure 3 is master, then described negotiation element is further used for after negotiating mode of operation, determines the line preface that each active line is right, and the effective Line To Line preface that will determine sends the opposite end interface equipment that promptly sends to slave; If interface equipment shown in Figure 3 is slave, then described negotiation element further carries out the adjustment of line preface according to effective Line To Line preface that the opposite end interface equipment is sent.
The above has carried out further detailed description to purpose of the present invention, technical scheme and beneficial effect; institute is understood that; the above is not in order to restriction the present invention; within the spirit and principles in the present invention all; any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.