CN102638379B - A kind of method keeping Ethernet Channelizer port speed synchronous - Google Patents

A kind of method keeping Ethernet Channelizer port speed synchronous Download PDF

Info

Publication number
CN102638379B
CN102638379B CN201210075010.2A CN201210075010A CN102638379B CN 102638379 B CN102638379 B CN 102638379B CN 201210075010 A CN201210075010 A CN 201210075010A CN 102638379 B CN102638379 B CN 102638379B
Authority
CN
China
Prior art keywords
port
ports
ethernet
speed
splitter
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
CN201210075010.2A
Other languages
Chinese (zh)
Other versions
CN102638379A (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.)
ZHUHAI CITY JIASIN INDUSTRY Co Ltd
Original Assignee
ZHUHAI CITY JIASIN INDUSTRY 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 ZHUHAI CITY JIASIN INDUSTRY Co Ltd filed Critical ZHUHAI CITY JIASIN INDUSTRY Co Ltd
Priority to CN201210075010.2A priority Critical patent/CN102638379B/en
Publication of CN102638379A publication Critical patent/CN102638379A/en
Application granted granted Critical
Publication of CN102638379B publication Critical patent/CN102638379B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of method keeping Ethernet Channelizer port speed synchronous, it is characterized in that: the method step comprises; The connection status of A, circular test Ethernet splitter two ports, if unanimously, proceeds step B, if inconsistent, after re-starting adjustment to the state of port, continues the connection status of circular test Ethernet splitter two ports; Whether the speed of B, inspection Ethernet splitter two ports is consistent, if unanimously, then returns the connection status that steps A continues two ports of cycle detection Ethernet splitter, if inconsistent, then forward step C to; The two-forty capability advertisement of C, closing high-speed rate port, and make its adaptive connection again, the speed of Ethernet splitter two ports becomes unanimously.The present invention when finding that Ethernet splitter two-port speed is inconsistent, automatically by two-forty grade port automatic adaptation to low rate grade, avoid the situation that appearance two port speeds are inconsistent, guarantee network element proper communication.

Description

A kind of method keeping Ethernet Channelizer port speed synchronous
Technical field
The present invention relates to a kind of method keeping Ethernet Channelizer port speed synchronous.
Background technology
At present, along with the development of network service, people are more and more extensive for the application of network, network is increasingly sophisticated and huge, details for network is also more and more difficult with supervision, become network manager institute inevitably problem, in order to not destroy the transmission of normal Ethernet service while supervising network, main use Ethernet splitter, the effect of the Ethernet splitter of the communications field is, realizes the data acquisition of ethernet line while not destroying the transmission of normal Ethernet service.
The network data incoming end access netting twine of splitter, thus through splitter when making network packet transmit.The operation principle of splitter is, the network packet collected is passed to data transmission disposal end and copies by one network data incoming end, then the network packet in two network packet after copying is made to export from another network data incoming end, meanwhile, another network packet exports from data acquisition end.Like this, the transmission of normal Ethernet service is not destroyed while just can realizing collection network packet.
But, according to the specification that Ethernet connects, when two network element interface speed are inconsistent, actual connection speed is as the criterion with low rate, the port of usual Ethernet splitter adopts the adaptive mode of port speed, when the port of one of them speed is with two-forty transceiving data, when another port is with low rate transceiving data, the communication failure of low rate port can be caused, current solution is that user manually cancels the self adaptation of two-forty and forces the speed of this port consistent with low rate port, but this mode needs user manually to intervene, automatic recovery capability is weak, bad adaptability.
Summary of the invention
For solving the problem, the object of the present invention is to provide can automatic synchronization port speed, the adaptability of raising Ethernet splitter and a kind of method keeping Ethernet Channelizer port speed synchronous of stability.
The present invention solves the technical scheme that its problem adopts:
Keep the method that Ethernet Channelizer port speed is synchronous, it is characterized in that: the method step comprises;
The connection status of A, circular test Ethernet splitter two ports, if unanimously, proceeds step B, if inconsistent, after re-starting adjustment to the state of port, continues the connection status of circular test Ethernet splitter two ports;
Whether the speed of B, inspection Ethernet splitter two ports is consistent, if unanimously, then returns the connection status that steps A continues two ports of cycle detection Ethernet splitter, if inconsistent, then forward step C to;
The two-forty capability advertisement of C, closing high-speed rate port, and make its adaptive connection again, after two-forty autosensing connects, the speed of Ethernet splitter two ports becomes unanimously, and returns the connection status that steps A continues two ports of cycle detection Ethernet splitter.
As the further improvement of such scheme, when detecting in steps A that the connection status of Ethernet splitter two ports is inconsistent, following methods step is adopted to re-start adjustment;
A, judge its port broken before whether be forced disconnect, if be forced before disconnect, then continue step b, if not, then forward step c to;
B, recover the port that is forced to disconnect, adaptive connection again, returns the connection status that steps A continues two ports of cycle detection Ethernet splitter;
C, force to disconnect the port keeping connecting, then open the capability advertisement of two ports, and adaptive connection again, then return the connection status that steps A continues two ports of cycle detection Ethernet splitter.
The effect of the Ethernet splitter of the communications field is, realizes the data acquisition of ethernet line while not destroying the transmission of normal Ethernet service.The network data access interface of splitter is connected with network element by netting twine, thus through splitter when making network packet transmit.The operation principle of splitter is, the network packet collected carries out copying by one network data access interface or nonstorage copies, then make the network packet in two network packet after copying export from another port, meanwhile, another network packet exports from data acquisition end.Like this, the transmission of normal Ethernet service is not destroyed while just can realizing collection network packet.
Network packet inputs from Ethernet splitter Single port, from the process that another port exports, when the port of one of them speed is with two-forty transceiving data, when another port is with low rate transceiving data, can cause the communication failure of low rate port, the present invention adopts a kind of above-mentioned synchronous method of Ethernet Channelizer port speed that keeps automatically to adjust the speed of ethernet port.
Wherein steps A circulation detects the connection status of Ethernet splitter two ports, for Ethernet splitter, port connection state is inconsistent will cause network path problem, therefore it is very important for detecting the connection status of port, and when network state changes, Ethernet splitter can be made adjustment to port in time.
The speed of step B to two of Ethernet splitter ports detects, when discovery two ports different, step C adjusts port speed, the two-forty capability advertisement of step C first closing high-speed rate port, allow this port adaptive connection again again, this is the action that software performs, Ethernet chip responds this action, automatically two-forty port link is disconnected, adaptive connection is carried out according to low rate capability advertisement, because the two-forty ability of this port is closed, at this moment Ethernet splitter two ends are all transmitted with low rate, ensure that normally carrying out of communication, manually intervene without the need to user.
When wherein the connection status of steps A middle port is inconsistent, as one end have connection and the other end does not connect, whether be forced before employing step a is judged this port to disconnect, disconnect if be forced before port, then adopt step b recover this port and allow its adaptive connection again; If the port of this disconnection is not forced to disconnect, illustrate that network state there occurs change, the port that keeps connecting need being disconnected and open the capability advertisement of two ports, and allowing its adaptive connection again, avoiding can not carrying out the communication of two-forty because closing the two-forty capability advertisement of port.
The invention has the beneficial effects as follows: a kind of method keeping Ethernet Channelizer port speed synchronous that the present invention adopts, when finding that Ethernet splitter two-port speed is inconsistent, automatically by two-forty grade port automatic adaptation to low rate grade, avoid the situation that appearance two port speeds are inconsistent, guarantee network element proper communication.
Accompanying drawing explanation
Below in conjunction with accompanying drawing and example, the invention will be further described.
Fig. 1 is the fundamental diagram of Ethernet splitter.
Fig. 2 is the connection diagram that between two network elements, speed is inconsistent.
Fig. 3 be Ethernet splitter two ports inconsistent time schematic diagram.
Fig. 4 is the synchronous flow chart of Ethernet splitter speed of the present invention.
Embodiment
In order to not destroy the transmission of normal Ethernet service while supervising network, main use Ethernet splitter, the effect of the Ethernet splitter of the communications field is, realizes the data acquisition of ethernet line while not destroying the transmission of normal Ethernet service.
With reference to shown in Fig. 1, normal ethernet line is truncated, the A port of difference access network based on ethernet splitter and B port, its bidirectional transmit-receive data are collected to be exported from C mouth, the data of A port accepts need to export from B port simultaneously, the data of B port accepts need to export from A port, and namely A port realizes loopback with B port and is connected, and keeps normal Ethernet service not to be destroyed thus.
According to the specification that Ethernet connects, when two network element interface speed are inconsistent, actual connection speed is as the criterion with low rate.As shown in Figure 2, when when the first network element interface is 1000Mbps, the second network element interface is 100Mbps, actual connection speed is 100Mbps, and two network elements can proper communication.
A, B port of usual Ethernet splitter all adopts the adaptive mode of port speed, so for above-mentioned situation, will occur the situation that A, B port speed is inconsistent.
With reference to shown in Fig. 3, A port and B port are connected with two network elements respectively, and owing to all taking adaptive mode, the first network element will with 1000Mbps two-forty transceiving data, and the second network element will with 100Mbps low rate transceiving data, final result causes the second net element communication fault.Common settling mode needs user manually cancel the self adaptation of A port and force port speed to be 100Mbps.When the network element speed that A port connects changes, user is also needed manually to recover the adaptive characteristic of A port.This mode needs user manually to intervene, and automatic recovery capability is weak, bad adaptability.
In order to solve the problem, realize the synchronous of Ethernet Channelizer port speed, the invention provides a kind of method keeping Ethernet Channelizer port speed synchronous.According to ethernet specification, when port speed changes, need port to connect and disconnect.In adaptive process, local terminal capability advertisement can be configured, the speed grade notice opposite end that local terminal can be supported.
For the Ethernet splitter that the port speed of A, B shown in Fig. 3 is inconsistent, wherein the speed of A port is 100Mbps, the speed of B port is 100Mbps, if do not adjust, final result causes the second net element communication fault, with reference to the flow chart shown in Fig. 4, the method step keeping Ethernet Channelizer port speed synchronous is as follows:
The connection status of A, circular test Ethernet splitter two ports, if unanimously, proceeds step B, if inconsistent, after re-starting adjustment to the state of port, continues the connection status of circular test Ethernet splitter two ports.
In example, the connection status of Ethernet splitter circular test Ethernet splitter A port and B port, if the state consistency of A port and B port, then carries out step B, if inconsistent (as one end has connection one end not connect), then carries out step a.
Whether the speed of B, inspection Ethernet splitter two ports is consistent, if unanimously, then returns the connection status that steps A continues two ports of cycle detection Ethernet splitter, if inconsistent, then forward step C to.
Check in example that whether Ethernet splitter A port is consistent with the speed of B port, if unanimously, then return the connection status that steps A continues cycle detection Ethernet splitter A port and B port, if inconsistent, then forward step C to.In this example, the speed of the speed ratio B port of A port is high, therefore enters step C.
The two-forty capability advertisement of C, closing high-speed rate port, and make its adaptive connection again, after two-forty autosensing connects, the speed of Ethernet splitter two ports becomes unanimously, and returns the connection status that steps A continues two ports of cycle detection Ethernet splitter.
The 1000Mbps capability advertisement of A port is first closed in example, and allow A port adaptive connection again, because the two-forty capability advertisement of A port is closed, therefore A port can only be operated in the state of 10 or 100 mbps, therefore when A port again self adaptation, communicate with the first network element with the speed of 100Mbps, thus make A port consistent with the speed of B port.
If the speed of B port is 10Mbps, A port speed is 1000Mbps, then first A port closes the capability advertisement of 1000Mbps, then self adaptation and the first network element are with the rate communication of 100Mbps, then steps A is returned, again the speed of two ports is detected after forwarding step B to, carry out step C further, the 100Mbps capability advertisement of A port is closed in step C, A port can only be worked under the state of 10Mbps, allow its adaptive connection again, with the first network element to work under the speed of 10Mbps, thus make the consistent of the speed of A port and B port.
As the further improvement of such scheme, when detecting in steps A that the connection status of Ethernet splitter two ports is inconsistent, following methods step is adopted to re-start adjustment;
A, judge its port broken before whether be forced disconnect, if be forced before disconnect, then continue step b; If not, then forward step c to.
If detect in steps A, the state of A port and B port is inconsistent, as B port does not connect, then forwards this step a to, judge again in step a B end before whether be forced disconnect, if connection status inconsistent be because B port before be forced disconnect, then forward step b to, if not, then forward step c to.
B, recover the port that is forced to disconnect, adaptive connection again, returns the connection status that steps A continues two ports of cycle detection Ethernet splitter.
In example, step b recovers the B port being forced to stop, and makes its adaptive connection again, then returns the connection status that steps A continues to detect A port and B port.
C, force to disconnect the port keeping connecting, then open the capability advertisement of two ports, and adaptive connection again, then return the connection status that steps A continues two ports of cycle detection Ethernet splitter.
In example, Ethernet splitter detects that B port does not connect and B port is not forced closed, then go to step c process, if A port closes two-forty capability advertisement in order to the speed that is consistent with B port, at this moment two-forty network element is replaced with the second network element of B port communication, if just use step b to recover B port simply and allow its adaptive connection again, when again forwarding steps A to, only can by the rate reduction of B port, the speed of A port can't be improved, thus make network can not get sufficient utilization, when detecting that B port is not without when connecting because being forced disconnection in step a, force to disconnect the A port keeping connecting, and open A, the capability advertisement of B port, then its self adaptation is again allowed, if the second network element speed be connected with B port improves, because open the capability advertisement of A port, A port and B port can be adjusted to the highest state of speed in step B and step C, the present invention is allowed to design more perfect, network can be made full use of, do not need manually to adjust Ethernet splitter.
A kind of method keeping Ethernet Channelizer port speed synchronous that the present invention adopts, when finding that Ethernet splitter two-port speed is inconsistent, automatically by two-forty grade port automatic adaptation to low rate grade, avoid the situation that appearance two port speeds are inconsistent, guarantee network element proper communication.
The above, just preferred embodiment of the present invention, the present invention is not limited to above-mentioned execution mode, as long as it reaches technique effect of the present invention with identical means, all should belong to protection scope of the present invention.

Claims (1)

1. keep the method that Ethernet Channelizer port speed is synchronous, it is characterized in that: the method step comprises;
The connection status of A, circular test Ethernet splitter two ports, if unanimously, proceeds step B, if inconsistent, after re-starting adjustment to the state of port, continues the connection status of circular test Ethernet splitter two ports;
Whether the speed of B, inspection Ethernet splitter two ports is consistent, if unanimously, then returns the connection status that steps A continues two ports of cycle detection Ethernet splitter, if inconsistent, then forward step C to;
The two-forty capability advertisement of C, closing high-speed rate port, and make its adaptive connection again, after two-forty autosensing connects, the speed of Ethernet splitter two ports becomes unanimously, and returns the connection status that steps A continues two ports of cycle detection Ethernet splitter;
When detecting in steps A that the connection status of Ethernet splitter two ports is inconsistent, following methods step is adopted to re-start adjustment;
A, judge its port broken before whether be forced disconnect, if be forced before disconnect, then continue step b, if not, then forward step c to;
B, recover the port that is forced to disconnect, adaptive connection again, returns the connection status that steps A continues two ports of cycle detection Ethernet splitter;
C, force to disconnect the port keeping connecting, then open the capability advertisement of two ports, and adaptive connection again, then return the connection status that steps A continues two ports of cycle detection Ethernet splitter.
CN201210075010.2A 2012-03-20 2012-03-20 A kind of method keeping Ethernet Channelizer port speed synchronous Active CN102638379B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210075010.2A CN102638379B (en) 2012-03-20 2012-03-20 A kind of method keeping Ethernet Channelizer port speed synchronous

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210075010.2A CN102638379B (en) 2012-03-20 2012-03-20 A kind of method keeping Ethernet Channelizer port speed synchronous

Publications (2)

Publication Number Publication Date
CN102638379A CN102638379A (en) 2012-08-15
CN102638379B true CN102638379B (en) 2015-12-02

Family

ID=46622632

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210075010.2A Active CN102638379B (en) 2012-03-20 2012-03-20 A kind of method keeping Ethernet Channelizer port speed synchronous

Country Status (1)

Country Link
CN (1) CN102638379B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984060A (en) * 2012-12-12 2013-03-20 张兴杰 Interface module of net test access point

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005327A (en) * 2006-01-17 2007-07-25 中兴通讯股份有限公司 Regulating device and method for dynamic link capacity and flow of transmission net loaded ethernet
US7936685B2 (en) * 2009-01-15 2011-05-03 Vss Monitoring, Inc. Intelligent fast switch-over network tap system and methods

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005327A (en) * 2006-01-17 2007-07-25 中兴通讯股份有限公司 Regulating device and method for dynamic link capacity and flow of transmission net loaded ethernet
US7936685B2 (en) * 2009-01-15 2011-05-03 Vss Monitoring, Inc. Intelligent fast switch-over network tap system and methods

Also Published As

Publication number Publication date
CN102638379A (en) 2012-08-15

Similar Documents

Publication Publication Date Title
CN101018228B (en) A port convergence method and device
CN101127674B (en) Initialization method for transmission nodes of Ethernet loop network system
CN101686158B (en) Control method for Ethernet loop guard fault recovery and Ethernet loop node
CN100454880C (en) Method and system of realizing rig network protection
CN101378359A (en) Method and apparatus for switching of primary and secondary compulsion links
CN102318267A (en) Data communication method, communication equipment and communication system
CN104393914B (en) A multiplex route recovering method for an optical fiber differential protection device
CN101714939A (en) Fault treatment method for Ethernet ring network host node and corresponding Ethernet ring network
CN104796329A (en) Automatic link switching method and automatic link switching device
CN101141333A (en) Ethernet system host node slave port fault processing method
CN101222402B (en) Ethernet ring protection method, system and device
CN101277269A (en) Terminal with dependable communication, terminal switch method and system as well as method for implementing the system
CN102611499B (en) Method for realizing ODUK (Optical Channel Data Unit) protection switching by crossed disc of OTN (Optical Transport Network) equipment
CN103067274A (en) Spanning tree back-up port quick recovery method and device
CN101478469A (en) Method and system for RRPP loop link switching
CN101883038B (en) Host node in the method for EAPS looped network protection switching and EAPS looped network
CN101686167A (en) Method for controlling recovery of faults of Ethernet
CN201766606U (en) Network switching device based on physical layer state detection and fault screening strategy
CN104065546A (en) Ethernet protection switching method
CN102638379B (en) A kind of method keeping Ethernet Channelizer port speed synchronous
CN101163079A (en) Method to refresh forwarding database in Ethernet ring protection
CN104092490A (en) Multi-channel fiber self-healing method
CN108234226A (en) A kind of IO groups of redundancy network-building methods of industrial process control based on GOOSE
CN102412997A (en) Method and system for transmitting link on/off state under main/standby environment
CN101547131A (en) EAPS looped network single-channel fault location and protection method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant