CN104796306B - A kind of port mode machinery of consultation and equipment - Google Patents
A kind of port mode machinery of consultation and equipment Download PDFInfo
- Publication number
- CN104796306B CN104796306B CN201510136360.9A CN201510136360A CN104796306B CN 104796306 B CN104796306 B CN 104796306B CN 201510136360 A CN201510136360 A CN 201510136360A CN 104796306 B CN104796306 B CN 104796306B
- Authority
- CN
- China
- Prior art keywords
- port
- mode
- switching
- detection
- network equipment
- 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
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the present application discloses a kind of port mode machinery of consultation and equipment, pass through the technical solution proposed using the embodiment of the present application, periodic state-detection can be carried out to the present mode of the port of support dual mode, and determine whether to carry out pattern switching according to testing result, to, when carrying out networking operation, order line without carrying out local device according to opposite end mode configures, but carry out the adaptive adjustment of port mode automatically by local device, to, by the port mode of local terminal it is adaptive be adjusted to match with the port mode of opposite end, simplify networking configuration process, improve networking operation efficiency.
Description
Technical field
The present invention relates to field of communication technology, in particular to a kind of port mode machinery of consultation and equipment.
Background technique
Many network equipment ports support both of which switching, such as 10GE (Gigabit Ethernet, gigabit Ethernet)
Interface supports LAN (Local Area Network, local area network) and WAN (Wide Area Network, wide area network) both of which
The interface switch, having is supported between POS (Packet over SONET/SDH, a kind of high speed IP data packet transmission technology) and GE
Static and dynamic both of which switching etc. is supported in switching, aggregation port, these switchings are all human configuration orders, allows the both ends of communication
Mode is consistent.
When more exchange device, may be not clear opposite end configuration is any mode, at this moment or to be checked
Opposite end configuration, then by local terminal configuration modification at consistent with opposite end;Or try to configure local terminal mode until interface can normally make
Until.
May also can there is a situation where such, both of which can be thought under certain condition with intercommunication, operator
Networking is completed, but during prolonged application, the case where being unsatisfactory for condition occurs, and at this moment intercommunication will go wrong, may
It needs that bigger energy is spent to go to check positioning.
In order to overcome such problems, occurs some port allocation plans in existing allocation plan, mainly include
Two kinds, one is dual mode port is switched over by way of human configuration order line, there are also a kind of scheme be by with
The too auto-negotiation of the rate duplex of interface switches over, and is realized by distinctive signal.
During realizing the application, the inventor finds that the existing technology has at least the following problems:
If switched over by order line, when each networking, requires to know that opposite end is configured with which kind of mode, local terminal
Also corresponding configuration is carried out, and if carrying out auto-negotiation switching by ether interface, Ethernet scene can only be applied to, no
It can apply to other dual modes.
Therefore, the prior art lacks a kind of autosensing scheme that can be applied to dual mode.
Summary of the invention
The embodiment of the present application provides a kind of port mode machinery of consultation and equipment, and solving to lack one kind in existing scheme can
The problem of autosensing scheme applied to dual mode.
In order to achieve the above objectives, on the one hand the embodiment of the present application provides a kind of port mode machinery of consultation, is applied to net
Network equipment includes to support the scene of the port of dual mode, the method includes:
After the network equipment confirms port successful connection, according to detection cycle corresponding to the present mode of the port, week
Phase property detects whether the port is in available mode;
If testing result be it is no, whether network equipment judgement currently reaches preset handover triggering condition;
If it is judged that be it is yes, the port is switched to the port by present mode and is supported by the network equipment
Another mode.
On the other hand, the embodiment of the present application also provides a kind of network equipments, the port comprising supporting dual mode, packet
It includes:
Detection module, after confirming port successful connection, according to the week of detection corresponding to the present mode of the port
Phase, it is periodically detected whether the port is in available mode;
When judgment module for the testing result in the detection module is no, whether judgement currently reaches preset and cuts
Change trigger condition;
Switching module, for when the judgment result of the judgment module is yes, the port to be switched by present mode
Another mode is supported by the port.
Compared with prior art, the technical solution that the embodiment of the present application is proposed has the following advantages that:
It, can be to the current mould for the port for supporting dual mode by the technical solution proposed using the embodiment of the present application
Formula carries out periodic state-detection, and determines whether to carry out pattern switching according to testing result, thus, carrying out networking behaviour
When making, the order line without carrying out local device according to opposite end mode is configured, but carries out port mode automatically by local device
Adaptive adjustment, thus, by the port mode of local terminal it is adaptive be adjusted to match with the port mode of opposite end, simplify
Networking configuration process improves networking operation efficiency.
Detailed description of the invention
A kind of flow diagram for port mode machinery of consultation that Fig. 1 is proposed by the embodiment of the present application;
A kind of waveform diagram that Fig. 2 is proposed by the embodiment of the present application;
Port mode association under a kind of scene for needing to carry out port switching inhibition that Fig. 3 is proposed by the embodiment of the present application
The flow diagram of quotient's method;
A kind of port mode for not needing to carry out under the scene of port switching inhibition that Fig. 4 is proposed by the embodiment of the present application
The flow diagram of machinery of consultation;
The waveform of port mode machinery of consultation under a kind of concrete application scene that Fig. 5 is proposed by the embodiment of the present application shows
It is intended to;
The periodic function that waveform diagram under a kind of concrete application scene that Fig. 6 is proposed by the embodiment of the present application is abstracted as
Image schematic diagram;
The 10GE interface PHY chip structure that one kind that Fig. 7 is proposed by the embodiment of the present application can support LAN/WAN to switch is shown
It is intended to;
A kind of structural schematic diagram for network equipment that Fig. 8 is proposed by the embodiment of the present application.
Specific embodiment
In order to solve the problems, such as to lack in existing scheme a kind of autosensing scheme that can be applied to dual mode, this
Application embodiment proposes a kind of port mode machinery of consultation, can carry out week to the present mode of the port of support dual mode
The state-detection of phase property, and determine whether to carry out pattern switching according to testing result, thus, it is real when carrying out networking operation
The adaptive adjustment of existing port mode.
As shown in Figure 1, a kind of flow diagram of the port mode machinery of consultation proposed by the embodiment of the present application, application
In on the network equipment comprising supporting the port of dual mode, this method specifically includes following steps:
After step 101, network equipment confirmation port successful connection, according to the week of detection corresponding to the present mode of the port
Phase, it is periodically detected whether port is in available mode.
Such detection processing is actually to verify to the accessibility of port communication.
If it is judged that be it is no, i.e., port is unavailable, thens follow the steps 102;
And if it is judged that being yes, then it represents that port mode matching can be used normally, therefore, connect into port
Function, and in the available situation in port, it can normally be communicated, without carrying out subsequent mode negotiation, be naturally also just not necessarily to
Carry out subsequent operation.
It should be noted that this step needs preferential confirmation port successful connection, it is such if port connectivity failure
Situation belongs to the connection error of physical equipment, needs again to check networking route, rather than adjusting port mode can
It solves the problems, such as, therefore, follow-up process is also just without continuing.
In conclusion the implementing precondition of this step is that the network equipment confirms port successful connection, specific validation testing
It can be based on corresponding identification information or other operating results, such variation will not influence protection model of the invention
It encloses.
Which kind of either above-mentioned situation, in the case where step 101 judging result, which is, is, the adaptive tune of port mode
Journey is had suffered all to be not necessarily to continue, can direct return step 101, wait the detection of next cycle, and whether take other into one
The operation of step needs to be configured according to actual needs, and such operation is unrelated with the embodiment of the present application, and details are not described herein.
In order to avoid port mode frequent switching is to de-stabilising effect caused by network and the shape in mode handover procedure
State is unstable and leads to testing result error, in specific application scenarios, it may be considered that carries out port switching inhibition, in this way may be used
To guarantee that detection is carried out in the case where port mode is stablized, guarantee the accurate of testing result.
Correspondingly, according to whether carrying out the difference of port switching inhibition, the detection cycle is especially by with lower section
Formula is configured:
Scene one, under the scene for needing to carry out port switching inhibition.
According to most short detection interval time, detection cycle corresponding to each mode that the port is supported uniformly is set,
In, the most chopped pact for changing interval time corresponding to each mode that the most short detection interval time is supported by the port
Number;
Scene two, do not need carry out port switching inhibition scene under.
It is most chopped according to corresponding to each mode that the port is supported to change interval time the port institute is respectively set
Detection cycle corresponding to each mode supported.
Specific detection cycle set-up mode is illustrated in the subsequent specific embodiment of the application, no longer superfluous herein
It states.
It is further noted that in view of there may be the possibility for forcing setting for port mode, i.e., in a group network process
In, under the scene for the case where ignoring network condition, port is forced to use certain mode, schema adaptation process also without
Therefore the meaning continued to execute is executing the method that is proposed of the embodiment of the present application, i.e., can be advanced before execution step 101
Row forces the identification of setting, with this to determine whether continuing step 101 and its subsequent operation.
Setting is forced to be realized generally by being configured in order line, and the configuration of order line update illustrates
The change being accordingly arranged, the initialization and the configuration change after starting that such change includes the network equipment, is ordered by detection
The configuration variation for enabling row can timely be confirmed whether to have carried out forcing setting.
In specific application scenarios, such pressure setting identification process is as follows:
Step A, the described network equipment monitors whether itself order line occurs configuration update.
It is updated if monitoring itself order line and configuration having occurred, step B is further executed, if there is no matching
Update is set, then keeps current state.
Step B, the described network equipment detects the configuration whether itself order line has carried out port compulsory mode.
If it is judged that be it is yes, execute step C, if it is judged that be it is no, then follow the steps D.
Step C, the described network equipment is periodically detected and its subsequent port mode handover operation described in abandoning executing.
In this case, pressure setting has been carried out in the network equipment, no longer needs to carry out subsequent adaptive adjusted
Journey.
Step D, the described network equipment triggering is periodically detected described in executing, i.e. execution step 101.
In this case, it is unrelated with setting is forced to indicate that current order line is updated, it can be according to the embodiment of the present application
Technical solution carry out subsequent operation.
Whether step 102, network equipment judgement currently reach preset handover triggering condition.
If it is judged that be it is yes, then follow the steps 103;
On the contrary, if it is judged that being no, then it represents that can't trigger pattern switching now, return step 101 continue into
Row processing.
It should be noted that corresponding with the facilities in step 101 about detection cycle, this step it is further
Judgement is and different as whether need to carry out the difference of port switching inhibition, is described as follows:
Scene one, under the scene for needing to carry out port switching inhibition.
Testing result based on step 101, the network equipment confirm port successful connection, but detect port be in can not
When with state, then correspond to step 102, the network equipment judges whether the number that current detection result is continuously yes reaches threshold
Value.
If so, the network equipment judgement currently reaches preset handover triggering condition, if not, the network equipment
Judge currently without reaching preset handover triggering condition.
Wherein, most chopped corresponding to present mode of the threshold value for the port to change interval time divided by described most short
Detect the quotient of interval time.
In this case, it is preset handover trigger item that the number that current detection result is continuously yes, which reaches threshold value,
Part, such setting can guarantee the network equipment confirmation port successful connection, but continuous several times detect port be in can not
When with state, can just trigger pattern switching, avoid testing result error and port mode itself it is unstable caused by
Testing result obtains inaccurate, avoids the case where leading to frequent switching due to error, improves the accuracy of switching.
Scene two, do not need carry out port switching inhibition scene under.
Testing result based on step 101, the network equipment confirm port successful connection, but detect port be in can not
When with state, then correspond to step 102, the network equipment directly judges currently to reach preset handover triggering condition.
In this case, to be as preset handover triggering condition, such setting can be protected current detection result
The network equipment is demonstrate,proved in the case where confirming port successful connection, as long as detect that port is in down state, will be triggered
Pattern switching, under the scene for not needing to carry out port switching inhibition, it is ensured that the timeliness of switching, it can be at the first time
Situation not available for port is handled.
In order to realize that the technical solution that the embodiment of the present application is proposed needs in specific application scenarios to therein
Parameters relationship carries out as defined below:
T1>T2+2*c1, and t>max{c1,c2};
Wherein, T1 and c1 is most chopped corresponding to one mode that the port is supported to change interval time and cut respectively
Change time-consuming, T2 and c2 are most chopped corresponding to another mode that the port is supported to change interval time and switching consumption respectively
When, t indicates the most short detection interval time of the port.
The port is switched to the port by present mode and supports another mould by step 103, the network equipment
Formula.
Compared with prior art, the technical solution that the embodiment of the present application is proposed has the following advantages that:
It, can be to the current mould for the port for supporting dual mode by the technical solution proposed using the embodiment of the present application
Formula carries out periodic state-detection, and determines whether to carry out pattern switching according to testing result, thus, carrying out networking behaviour
When making, the order line without carrying out local device according to opposite end mode is configured, but carries out port mode automatically by local device
Adaptive adjustment, thus, by the port mode of local terminal it is adaptive be adjusted to match with the port mode of opposite end, simplify
Networking configuration process improves networking operation efficiency.
In order to which the technical idea of the application is further described, now in conjunction with specific application scenarios, to the technical side of the application
Case is illustrated.
The target to be realized of the technical solution that the embodiment of the present application is proposed is to make the port of dual mode adaptive
In the case where, it automatically selects out and the consistent mode of Peer-Port.
The basic thought for the technical solution that the embodiment of the present application is proposed is soundd out both of which, and this mode is not
Row just switches to another mode.
Specifically, being illustrated so that the dual mode that port is supported is respectively mode 1 and mode 2 as an example.
In order to facilitate subsequent explanation, needs to define several temporal informations in the embodiment of the present application, be described as follows:
(1) most short switching interval T.
Wherein, slave pattern 2 switches to the beginning of mode 1, until next mode 1 switches to mode 2, defines this process and is held
Most short of continuous time is divided into most short switching interval T1.Slave pattern 1 switches to the beginning of mode 2, switches to mode to next mode 2
Until 1, most short for defining this process institute's duration is divided into most short switching interval T2.
(2) most short detection is spaced t.
Under the scene for needing to carry out port switching inhibition, equipment needs whether timing detection port can be used, continuous n times inspection
It surveys port to be all disabled, just switch over, n, which is known as switching, inhibits number.
The time interval between detection is exactly most short detection interval t twice, is the common divisor of T1 and T2, i.e.,:T1=n1 ×
T, T2=n2 × t, n1 and n2 are that switching inhibits number.
As n=1, that is, the scene for not needing to carry out port switching inhibition is indicated, in this case, as long as equipment detects
It is unavailable to port, it can switch over.
(3) switch time-consuming c.
Wherein, slave pattern 2 switches to the beginning of mode 1, and the time interval stable to mode 1 is switching time-consuming c1;Slave pattern 1
The beginning of mode 2 is switched to, the time interval stable to mode 2 is switching time-consuming c2.
(4) mode stable time S.
Wherein, when slave pattern 2 switches to mode 1, start to stablize after the experience switching of mode 1 time-consuming c1, arrive from now on
The stabilization time S1 of mode 1 is divided between the shortest time of switching next time.When slave pattern 1 switches to mode 2, the experience switching of mode 2
Start to stablize after time-consuming c2, the stabilization time S2 of mode 2 is divided between arriving the shortest time of switching next time from now on.
It should be noted that for above-mentioned parameter information, T1=c1+S1;T2=c2+S2.
Mode 1 and mode 2 constantly toggle, and just will form waveform diagram as shown in Figure 2.
For convenience of explanation, further above-mentioned parameters relationship is defined as follows:
Time S1, S2 are not 0, and T1>T2+2*c1, t>Max { c1, c2 } (concrete principle is referring to subsequent explanation), this
In be strictly larger than cannot be equal.The value of all devices T1, T2 are all identical, and c1, c2 are not necessarily with definite value, but all devices
There is unified value range.
It should be noted that such relationship restriction, which is intended merely to a kind of simplified concrete scene for illustrating process and providing, to be needed
It asks, in the case where that can reach same technique effect, the variation of design parameter numerical value and relationship will not influence the application's
Protection scope.
Based on above-mentioned parameter setting, the adaptive realization process of port mode is described as follows.
Firstly, being illustrated for needing the scene for carrying out port switching inhibition, as shown in figure 3, implementing for the application
The flow diagram of port mode machinery of consultation under a kind of scene for needing to carry out port switching inhibition that example is proposed, specifically
Include the following steps:
Step 301, the network equipment monitor whether itself order line occurs configuration update.
It is updated if monitoring itself order line and configuration having occurred, executes step 302, if there is no configuring more
Newly, then current state is kept, that is, returns to step 301.
Step 302, the network equipment detect the configuration whether itself order line has carried out port compulsory mode.
If it is judged that be it is yes, execute step 303, if it is judged that be it is no, then follow the steps 304.
Step 303, the network equipment abandon executing the switching of port mode.
In this case, pressure setting has been carried out in the network equipment, no longer needs to carry out subsequent adaptive adjusted
Journey.
Step 304, the network equipment are spaced t after confirming port successful connection, according to most short detection, are periodically detected port
Whether available mode is in.
If it is judged that be it is no, then follow the steps 305;
If it is judged that be it is yes, then return step 304, wait next detection cycle.
It should be noted why detection cycle selects most short detection interval t in this scene, i.e. detection cycle takes
The common divisor of T1, T2 are, when link signal is bad, to increase tolerance to switch and inhibit.
Step 305, the network equipment judge whether the number that current detection result is continuously yes reaches threshold value.
If present port mode is mode 1, threshold value T1/t;
If present port mode is mode 2, threshold value T2/t.
When the judging result of this step, which is, is, step 306 is executed, when the judging result of this step is no, is then maintained
Present mode, return step 304 wait next detection cycle.
The present mode of port is switched to another mode that port is supported by step 306, the network equipment.
If present port mode is mode 1, it is switched to mode 2;
If present port mode is mode 2, it is switched to mode 1.
On the other hand, to be illustrated for not needing to carry out the scene of port switching inhibition, as shown in figure 4, being this Shen
Please a kind of process of port mode machinery of consultation for not needing to carry out under the scene of port switching inhibition for being proposed of embodiment show
It is intended to, specifically includes following steps:
Step 401~403, identical as step 301~303, details are not described herein.
Step 404, the network equipment are after confirming port successful connection, according to the most short switching interval T of present mode, period
Property detection port whether be in available mode.
If present port mode is mode 1, detection cycle T1;
If present port mode is mode 2, detection cycle T2.
When the judging result of this step is no, step 405 is executed, when the judging result of this step, which is, is, returns to step
Rapid 404, wait next detection cycle.
The present mode of port is switched to another mode that port is supported by step 405, the network equipment.
If present port mode is mode 1, it is switched to mode 2;
If present port mode is mode 2, it is switched to mode 1.
Based on above-mentioned technical solution, terminal device and link all without failure in the case where, 2 × (T1+T2) when
It is interior necessarily to negotiate to complete, i.e.,:At most switching 3 times can stablize.
If both ends are all adaptively, if S1>S2, then adaptive result is that the probability of mode 1 is big, the result mould if S1 < S2
The probability of formula 2 is big.
It, can be simple by mobile waveform diagram in order to preferably embody the technological progress that the embodiment of the present application can be realized
It is illustrated and verifies and is as follows:
As shown in figure 5, the port mode machinery of consultation under a kind of concrete application scene proposed by the embodiment of the present application
Waveform diagram, wherein the both of which that port is supported is respectively indicated with wave crest and trough, as long as the mode of two equipment
There are waveform positions to be overlapped area for switching waveform, and inevitable auto-negotiation is completed, and negotiation result is the waveform position for being overlapped area.
Be described as follows, waveform diagram be first abstracted as periodic function, image as shown in fig. 6, function cycle T=T1+T2,
Then the domain of f1 (x)=1 is (c1+nT, T1+nT), and the domain of f2 (x)=1 is (c1-a+mT, T1-a+mT), wave crest weight
Close is that the two domains have coincidence.Wherein m, n are integer, 0≤a < T.
If when 0≤a < T1-c1, there are integer m-n, meet c1-a+mT≤c1+nT < T1-a+mT, i.e. satisfaction (c1+a-
T1)/T < m-n≤a/T.Because of (c1+a-T1)/T < 0, a/T >=0, so m-n=0.Can necessarily it be assisted in the T1+T2 time
Quotient completes.
If when T1-c1≤a < T, there are m-n, meets c1+nT≤c1-a+mT < T1+nT, that is, meet a/T≤m-n <
(T1-c1+a)/T.Because of a/T < 1, (T1-c1+a)/T >=(T1+T1-2 × c1)/T > (T1+T2)/T=1, so m-n=1.
I.e. 2 × (T1+T2) necessarily negotiated to complete in the time.
Therefore, meeting T1>Under conditions of T2+2*c1, both ends can necessarily negotiate to complete in the time in 2 × (T1+T2).
2 × (T1+T2) is in the time, at most switching 4 times, but since necessarily trough switches wave crest for the last time, so at most switching 3
It is secondary.
Further, in conjunction with specific application scenarios, using the adaptive of 10GE interface (as a kind of specific example of port)
Should be for realization process, the technical solution proposed to the application is illustrated.
As shown in fig. 7, for 10GE interface PHY (Physical Layer, physical layer) chip that LAN/WAN can be supported to switch
Structural schematic diagram, wherein:
PMA (Physical Medium Attachment, physical medium are additional)/PMD (Physical Medium
Dependent, physical medium are related) it is whether receiver can be received signal as foundation using it, sentenced for receiving signal
Interruptive port whether successful connection;
WIS (WAN Interface Sublayer, Wide Area Network interface sublayer) module is only just used in WAN mode,
It is penetrated under LAN mode;
PCS (Physical Coding Sublayer, Physical Coding Sublayer) will be by improving the ethernet mac function defined
It can be mapped on XGXS (The 10Gigabit Ethernet Extended Sublayer, 10G Interface Extender Sublayer),
In, whether UP state is according to PCS, it can be determined that whether port is in available mode.
For convenience of description, the mode 1 that LAN mode is supported by 10GE interface, S1, T1 and c1 are the steady of LAN mode respectively
Fix time, it is most chopped change interval time and switching is time-consuming, the mode 2 that WAN mode is supported by 10GE interface, S2, T2 and c2 divide
It is not the stabilization time of WAN mode, most chopped changes interval time and switching is time-consuming.
In actual application scenarios, the switching rate of LAN mode and WAN mode quickly, will not arrive 500ms, i.e. max
{ c1, c2 } < 500ms, WAN mode switching interval T2=1.5s, S2 twice>Max { c1, c2 }, LAN mode switching interval twice
T1=3.5s>T2+2*c1, S1>Max { c1, c2 }.
For there are the adaptive realization scene that port switching inhibits, corresponding operation process is as follows:
1, t is considered>The requirement of max { c1, c2 }, and max { c1, c2 } < 500ms, when can detecte the detection of timer
Between be set to t=500ms, if order line is configured with compulsory mode, without carrying out mode negotiation and adjustment, without
Otherwise following procedure carries out following procedure.
2, present mode LAN, network equipment timing check that 10GE interface, the specific scope of examination includes:
Determine whether port connection succeeds by the way that whether inspection PMA/PMD receives signal, by checking in interface
PCS state determines whether port is in available mode.
If 7 times continuous (determining corresponding threshold value by T1/t=3.5s/500ms) testing result is PMA/PMD
It receives signal, but PCS not UP, then switches to WAN mode, otherwise keep LAN mode.
3, present mode WAN, network equipment timing check that 10GE interface, the specific scope of examination includes:
Determine whether port connection succeeds by the way that whether inspection PMA/PMD receives signal, by checking in interface
PCS state determines whether port is in available mode.
If 3 times continuous (determining corresponding threshold value by T2/t=1.5s/500ms) testing result is PMA/PMD
It receives signal, but PCS not UP, then switches to LAN mode, otherwise keep WAN mode.
For there is no the adaptive realization scene that port switching inhibits, corresponding operation process is as follows:
If 1, order line is configured with compulsory mode, without carrying out mode negotiation and adjustment, otherwise, following mistake is carried out
Journey.
2, present mode is LAN mode, and the network equipment checks 10GE interface every 3.5s, the specific scope of examination
Including:
Determine whether port connection succeeds by the way that whether inspection PMA/PMD receives signal, by checking in interface
PCS state determines whether port is in available mode.
If testing result is that PMA/PMD receives signal, but PCS not UP, then WAN mode is switched to, LAN is otherwise kept
Mode.
3, present mode is WAN mode, and the network equipment checks 10GE interface every 1.5s, the specific scope of examination
Including:
Determine whether port connection succeeds by the way that whether inspection PMA/PMD receives signal, by checking in interface
PCS state determines whether port is in available mode.
If testing result is that PMA/PMD receives signal, but PCS not UP, then LAN mode is switched to, WAN is otherwise kept
Mode.
It is further noted that the both ends of interconnection only can be configured compulsory mode for one end therein, be specified
Mode type, thus, no matter which kind of mode the interface of opposite end is currently at, and can all be carried out by above-mentioned treatment process adaptive
Adjustment, so that the mode at both ends be made to match.
For example, only being needed logical in one end (as local terminal) wherein if the mode currently intentionally got is LAN mode
Compulsory mode configuration LAN mode is crossed, thus, local terminal not will do it adjustment processing above-mentioned, but directly apply LAN mode, and
The other end (as opposite end) does not carry out compulsory mode configuration, and therefore, opposite end executes adaptive adjustment process above-mentioned, is held
The Auto-matching of mouth mold formula, thus, in the case where only progress one end mode is specified, reduce configured number.
Compared with prior art, the technical solution that the embodiment of the present application is proposed has the following advantages that:
It, can be to the current mould for the port for supporting dual mode by the technical solution proposed using the embodiment of the present application
Formula carries out periodic state-detection, and determines whether to carry out pattern switching according to testing result, thus, carrying out networking behaviour
When making, the order line without carrying out local device according to opposite end mode is configured, but carries out port mode automatically by local device
Adaptive adjustment, thus, by the port mode of local terminal it is adaptive be adjusted to match with the port mode of opposite end, simplify
Networking configuration process improves networking operation efficiency.
In order to realize that the technical solution of the application, the application also proposed a kind of network equipment, comprising supporting dual mode
Port, structural schematic diagram is as shown in figure 8, include:
Detection module 81, after confirming port successful connection, according to detection cycle corresponding to the present mode of port,
It is periodically detected whether the port is in available mode;
Judgment module 82, for the testing result in the detection module 81 be it is no when, judgement currently whether reach default
Handover triggering condition;
Switching module 83 is when being, by the port by present mode for the judging result in the judgment module 82
It is switched to the port and supports another mode.
Further, which further includes monitoring module 84, is used for:
Monitor whether the network device itself order line occurs configuration update;
It is updated if monitoring the order line and configuration having occurred, detects whether the order line has carried out port pressure mould
The configuration of formula;
If it is judged that be it is yes, notify the detection module 81 to stop the state-detection of the port, abandon actuating station
The switching of mouth mold formula, if it is judged that be it is no, notify the detection module 81 to start the state-detection of the port, triggering is held
The switching of row port mode.
Preferably, the detection cycle, is configured especially by following manner:
Under the scene for needing to carry out port switching inhibition, the port institute is uniformly arranged according to most short detection interval time
Detection cycle corresponding to each mode supported, wherein each mould that the most short detection interval time is supported by the port
The most chopped common divisor for changing interval time corresponding to formula;
Under the scene for not needing to carry out port switching inhibition, according to corresponding to each mode that the port is supported most
It is chopped and changes interval time detection cycle corresponding to each mode that the port is supported is respectively set.
Correspondingly, the judgment module 82, is specifically used for:
Under the scene for needing to carry out port switching inhibition, if the detection module 81 confirms port successful connection, but
It detects that port is in down state, then judges whether the number that current detection result is continuously yes reaches threshold value, if so,
Then determination currently reaches preset handover triggering condition, if it is not, then determine currently without reaching preset handover triggering condition,
Wherein, most chopped corresponding to present mode of the threshold value for the port to change interval time divided by the most short detection interval
The quotient of time;
Under the scene for not needing to carry out port switching inhibition, if the detection module 81 confirms port successful connection,
But detect that port is in down state, it is determined that currently reach preset handover triggering condition.
Under above-mentioned scene, need to carry out parameters relationship therein as defined below:
T1>T2+2*c1, and t>max{c1,c2};
Wherein, T1 and c1 is most chopped corresponding to one mode that the port is supported to change interval time and cut respectively
Change time-consuming, T2 and c2 are most chopped corresponding to another mode that the port is supported to change interval time and switching consumption respectively
When, t indicates the most short detection interval time of the port.
Compared with prior art, the technical solution that the embodiment of the present application is proposed has the following advantages that:
It, can be to the current mould for the port for supporting dual mode by the technical solution proposed using the embodiment of the present application
Formula carries out periodic state-detection, and determines whether to carry out pattern switching according to testing result, thus, carrying out networking behaviour
When making, the order line without carrying out local device according to opposite end mode is configured, but carries out port mode automatically by local device
Adaptive adjustment, thus, by the port mode of local terminal it is adaptive be adjusted to match with the port mode of opposite end, simplify
Networking configuration process improves networking operation efficiency.
Through the above description of the embodiments, those skilled in the art can be understood that the application can lead to
Hardware realization is crossed, the mode of necessary general hardware platform can also be added to realize by software.Based on this understanding, this Shen
Technical solution please can be embodied in the form of software products, which can store in a non-volatile memories
In medium (can be CD-ROM, USB flash disk, mobile hard disk etc.), including some instructions are used so that a computer equipment (can be
Personal computer, server or network equipment etc.) execute method described in each implement scene of the application.
It will be appreciated by those skilled in the art that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, module in attached drawing or
Process is not necessarily implemented necessary to the application.
It will be appreciated by those skilled in the art that the module in device in implement scene can be described according to implement scene into
Row is distributed in the device of implement scene, can also be carried out corresponding change and is located at the one or more dresses for being different from this implement scene
In setting.The module of above-mentioned implement scene can be merged into a module, can also be further split into multiple submodule.
Above-mentioned the application serial number is for illustration only, does not represent the superiority and inferiority of implement scene.
Disclosed above is only several specific implementation scenes of the application, and still, the application is not limited to this, Ren Heben
What the technical staff in field can think variation should all fall into the protection scope of the application.
Claims (6)
1. a kind of port mode machinery of consultation, applied on the network equipment comprising supporting the port of dual mode, feature exists
In, the method includes:
After the network equipment confirms port successful connection, according to detection cycle corresponding to the present mode of the port, periodically
Detect whether the port is in available mode;Wherein, the detection cycle is configured especially by following manner:It is needing
Under the scene for carrying out port switching inhibition, each mode institute supported the port is uniformly arranged according to most short detection interval time
Corresponding detection cycle, wherein most short corresponding to each mode that the most short detection interval time is supported by the port
The common divisor of switching interval time;Under the scene for not needing to carry out port switching inhibition, supported according to the port each
It is most chopped corresponding to mode to change interval time detection cycle corresponding to each mode that the port is supported, institute is respectively set
It states most short detection interval time and most chopped change between interval time meets following relationship:T1>T2+2*c1, and t>max
{c1,c2};Wherein, T1 and c1 is most chopped corresponding to one mode that the port is supported to change interval time and cut respectively
Change time-consuming, T2 and c2 are most chopped corresponding to another mode that the port is supported to change interval time and switching consumption respectively
When, t indicates the most short detection interval time of the port;
If testing result be it is no, whether network equipment judgement currently reaches preset handover triggering condition;
If it is judged that be it is yes, the network equipment by the port by present mode be switched to the port support it is another
Kind mode.
2. the method as described in claim 1, which is characterized in that the network equipment is right according to the present mode institute of the port
The detection cycle answered, is periodically detected whether the port is in front of available mode, further includes:
The network equipment monitors whether itself order line occurs configuration update;
It is updated if monitoring itself order line and configuration having occurred, whether the network equipment detects itself order line
The configuration of port compulsory mode is carried out;
If it is judged that be it is yes, the network equipment abandon execute described in be periodically detected and its subsequent port mode switching
Operation, if it is judged that be it is no, is periodically detected described in network equipment triggering execution.
3. the method as described in claim 1, which is characterized in that if testing result be it is no, network equipment judgement is current
Whether reach preset handover triggering condition, specifically includes:
Under the scene for needing to carry out port switching inhibition, the network equipment judges the number that current detection result is continuously yes
Whether threshold value is reached, if so, the network equipment, which is judged as, currently reaches preset handover triggering condition, if not, described
The network equipment is judged as currently without reaching preset handover triggering condition, wherein the threshold value is the current mould of the port
It is most chopped corresponding to formula to change interval time divided by the quotient of the most short detection interval time;
Under the scene for not needing to carry out port switching inhibition, the network equipment judgement currently reaches preset handover trigger item
Part.
4. a kind of network equipment, the port comprising supporting dual mode, which is characterized in that including:
Detection module, for after confirming port successful connection, according to detection cycle corresponding to the present mode of the port,
It is periodically detected whether the port is in available mode;Wherein, the detection cycle is configured especially by following manner:
Under the scene for needing to carry out port switching inhibition, according to most short detection interval time be uniformly arranged the port supported it is each
Detection cycle corresponding to mode, wherein corresponding to each mode that the most short detection interval time is supported by the port
The most chopped common divisor for changing interval time;Under the scene for not needing to carry out port switching inhibition, propped up according to the port
It is most chopped corresponding to each mode held to change interval time detection corresponding to each mode that the port is supported is respectively set
Period, the most short detection interval time and most chopped change between interval time meet following relationship:T1>T2+2*c1, and
t>max{c1,c2};Wherein, when T1 and c1 is most short switching interval corresponding to one mode that the port is supported respectively
Between and switching it is time-consuming, T2 and c2 be respectively corresponding to another mode that the port is supported most it is chopped change interval time and
Switching is time-consuming, and t indicates the most short detection interval time of the port;
When judgment module for the testing result in the detection module is no, whether judgement, which currently reaches preset switching, is touched
Clockwork spring part;
Switching module, for when the judgment result of the judgment module is yes, the port being switched to institute by present mode
It states port and supports another mode.
5. the network equipment as claimed in claim 4, which is characterized in that further include monitoring module, be used for:
Monitor whether the network device itself order line occurs configuration update;
It is updated if monitoring the order line and configuration having occurred, detects whether the order line has carried out port compulsory mode
Configuration;
If it is judged that be it is yes, notify the detection module to stop the state-detection of the port, abandon execute port mode
Switching, if it is judged that be it is no, notify that the detection module starts the state-detection of the port, trigger actuating station mouth mold
The switching of formula.
6. the network equipment as claimed in claim 4, which is characterized in that the judgment module is specifically used for:
Under the scene for needing to carry out port switching inhibition, if the detection module detects that the port is in unavailable shape
State, then judge whether the number that current detection result is continuously yes reaches threshold value, cuts if it is, determining and currently reaching preset
Trigger condition is changed, if it is not, then determining currently without reaching preset handover triggering condition, wherein the threshold value is the end
It is most chopped corresponding to the present mode of mouth to change interval time divided by the quotient of the most short detection interval time;
Under the scene for not needing to carry out port switching inhibition, if the detection module detects that the port is in unavailable
State, it is determined that currently reach preset handover triggering condition.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510136360.9A CN104796306B (en) | 2015-03-26 | 2015-03-26 | A kind of port mode machinery of consultation and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510136360.9A CN104796306B (en) | 2015-03-26 | 2015-03-26 | A kind of port mode machinery of consultation and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104796306A CN104796306A (en) | 2015-07-22 |
CN104796306B true CN104796306B (en) | 2018-11-27 |
Family
ID=53560834
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510136360.9A Active CN104796306B (en) | 2015-03-26 | 2015-03-26 | A kind of port mode machinery of consultation and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104796306B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106375110B (en) * | 2016-08-23 | 2019-09-06 | 新华三技术有限公司 | A kind of port training method and device |
EP3529983B1 (en) | 2016-11-23 | 2024-02-07 | Zhejiang Dahua Technology Co., Ltd | System and method for establishing connection between devices |
CN106534788B (en) * | 2016-11-23 | 2019-03-26 | 浙江大华技术股份有限公司 | Mode adaptive matching process, equipment and system in a kind of monitoring system |
CN107707468B (en) * | 2017-09-19 | 2021-05-07 | 新华三技术有限公司 | Link state maintenance method and device |
CN110289978B (en) * | 2018-03-19 | 2021-05-04 | 华为技术有限公司 | Port mode switching method and related equipment thereof |
CN111988162B (en) * | 2019-05-24 | 2022-11-29 | 中兴通讯股份有限公司 | Method and device for managing port configuration mode |
CN113595752A (en) * | 2020-04-30 | 2021-11-02 | 中兴通讯股份有限公司 | Link double-end mode determination method, device, equipment and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101043399A (en) * | 2006-06-28 | 2007-09-26 | 华为技术有限公司 | Ethernet duplex mode matching method |
GB2444170A (en) * | 2006-11-27 | 2008-05-28 | Huawei Tech Co Ltd | Ethernet protection using a redundant link, with link up of a remote port being triggered using a "link status control mechanism". |
CN101388816A (en) * | 2008-11-05 | 2009-03-18 | 深圳华为通信技术有限公司 | Network interface mode switching method and device |
CN103222251A (en) * | 2012-11-29 | 2013-07-24 | 华为技术有限公司 | Ether port auto-negotiation and communication equipment |
-
2015
- 2015-03-26 CN CN201510136360.9A patent/CN104796306B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101043399A (en) * | 2006-06-28 | 2007-09-26 | 华为技术有限公司 | Ethernet duplex mode matching method |
GB2444170A (en) * | 2006-11-27 | 2008-05-28 | Huawei Tech Co Ltd | Ethernet protection using a redundant link, with link up of a remote port being triggered using a "link status control mechanism". |
CN101388816A (en) * | 2008-11-05 | 2009-03-18 | 深圳华为通信技术有限公司 | Network interface mode switching method and device |
CN103222251A (en) * | 2012-11-29 | 2013-07-24 | 华为技术有限公司 | Ether port auto-negotiation and communication equipment |
Also Published As
Publication number | Publication date |
---|---|
CN104796306A (en) | 2015-07-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104796306B (en) | A kind of port mode machinery of consultation and equipment | |
WO2015170201A1 (en) | A method for robust ptp synchronization with default 1588v2 profile | |
CN105247933B (en) | A kind of timing adjusting method and device | |
US9288075B2 (en) | Method and system for auto-configuration, and network node | |
CN104317764B (en) | A kind of real-time control method of 1553B buses asynchronous message | |
US10080205B2 (en) | Method and apparatus for determining synchronisation references | |
CN109274603A (en) | Interconnecting method and device between heterogeneous protocol data based on software definition | |
US20150113174A1 (en) | Intelligent supervision for configuration of precision time protocol (ptp) entities | |
US10567195B2 (en) | Network nodes in a ring network | |
US20170272339A1 (en) | Method and apparatus for detecting connectivity | |
CN101848193B (en) | Method, system and network node for network synchronization | |
US11757794B2 (en) | Port configuration method and communications device | |
EP2925011B1 (en) | Apparatus and method for managing inner-network element transmission resources | |
CN108513361A (en) | channel access method, device and storage medium | |
CN109660624A (en) | Planing method, server and the storage medium of content distributing network resource | |
CN112953785B (en) | Link detection method and system for communication equipment of multi-core processor | |
EP3048778B1 (en) | Techniques for synchronized execution of a command at network fabric nodes | |
US20150023215A1 (en) | TRILL Network Establishing Method, Node, and System | |
EP3024200B1 (en) | Port number extension method and switch | |
US10951316B2 (en) | Fronthaul remote access and monitoring systems and methods to test fiber optic infrastructure and RF spectrum | |
CN117459966A (en) | Dual-mode communication method, system and medium based on multiple channels and electronic equipment | |
CN105681187A (en) | VRRP (Virtual Router Redundancy Protocol) backup set management method and related device | |
CN105812160B (en) | A kind of seamless redundant network mode adaptive method and device | |
CN107925650A (en) | Transmit method, forward pass equipment and the cascade network of data | |
CN118101516A (en) | Message transmission 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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant after: Xinhua three Technology Co., Ltd. Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant before: Huasan Communication Technology Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |