Summary of the invention
The embodiment of the present invention provides a kind of method and device for indicating network equipment port state, to solve the prior art
Middle presence indicates the port status of the network equipment exist and need to increase network equipment size, network equipment port is close
Degree reduces, and obtains the high problem of port status complexity.
Specific technical solution provided in an embodiment of the present invention is as follows:
In a first aspect, providing a kind of method for indicating network equipment port state, comprising: according to a set of network devices port
The network equipment port number that corresponding default indicator light display cycle and a set of network devices port are included, determining should
The corresponding indicator light of each network equipment port shows the period in set of network devices port;According to preset network equipment end
The port status display order of mouth, one group of indicator light of control show the period in the corresponding indicator light of each network equipment port
It is interior, successively show the port status of each network equipment port.
With reference to first aspect, in the first possible implementation, the number for the indicator light for including when one group of indicator light
When being one, the corresponding indicator light of each network equipment port is shown that the period is divided into that there is no period overlappings extremely
Few two parts, wherein a part of indicator light shows the period for carrying out port-mark instruction, when another part indicator light is shown
Between section for carrying out port status instruction;For any one network equipment port in set of network devices port, in institute
It states the corresponding a part of indicator light of any one network equipment port and shows the progress port-mark instruction, Yi Ji in the period
The corresponding another part indicator light of any one network equipment port, which is shown, carries out the port status instruction in the period.
The first possible implementation with reference to first aspect controls the finger in the second possible implementation
Show that lamp is shown in the period in the corresponding a part of indicator light of any one network equipment port, according to the first preset rules into
The row port-mark instruction;And the control indicator light refers in the corresponding another part of any one network equipment port
Show that lamp was shown in the period, carries out the port status instruction according to the second preset rules.
With reference to first aspect, in the third possible implementation, the number for the indicator light for including when one group of indicator light
When being at least two, for any one network equipment port in set of network devices port, in any one network
The corresponding indicator light of device port shows in the period that the first indicator light of control carries out port-mark instruction;And described any
The corresponding indicator light of one network equipment port shows in the period that the second indicator light of control carries out port status instruction.
The third possible implementation with reference to first aspect controls described the in the fourth possible implementation
One indicator light is shown in the period in the corresponding indicator light of any one network equipment port, is carried out according to the first preset rules
The port-mark instruction;And control second indicator light is aobvious in the corresponding indicator light of any one network equipment port
Show in the period, carries out the port status instruction according to the second preset rules.
Any one realization of the first possible implementation into the 4th kind of possible implementation with reference to first aspect
Mode, in a fifth possible implementation, for any one network equipment port in set of network devices port,
Controlling the method that the indicator light carries out the port status instruction is, if the number of one group of indicator light is one, when
When the link state is link-down state, the indicator light is controlled in the corresponding port of any one network equipment port
In the period of state instruction, according to first port state instruction rule, indicate that the link state is link-down state;When
The link state be link connection status when, if data transmission state be there is no data transmission, control the finger
Show lamp within the period of the corresponding port status instruction of any one network equipment port, according to second port state instruction
Rule indicates that the link state is link connection status, and data transmission state is that there is no data transmission;When described
Link state be link connection status when, if data transmission state be there are data transmission, control the indicator light and exist
In the period of the corresponding port status instruction of any one network equipment port, according to third port state instruction rule,
Indicate that the link state is link connection status, and data transmission state is that there are data transmission;If described one group refers to
The number for showing lamp is at least two, then when link state is link-down state, controls second indicator light at described
The corresponding indicator light of a network equipment port of anticipating was shown in the period, is indicated rule according to the 4th port status, is indicated the chain
Line state is link-down state;When the link state is link connection status, if data transmission state is not deposit
It is transmitted in data, then controls second indicator light in the corresponding indicator light of any one network equipment port and show the period
It is interior, according to fifth port state instruction rule, indicate that the link state is link connection status, and data transmission state
For there is no data to transmit;When the link state is link connection status, if data transmission state is that there are data
Transmission then controls second indicator light and shows in the period in the corresponding indicator light of any one network equipment port, root
Rule is indicated according to the 6th port status, indicates that the link state is link connection status, and data transmission state is to deposit
It is transmitted in data.
Second aspect provides a kind of device for indicating network equipment port state, comprising: determination unit, for according to one
The network equipment end that set of network devices port corresponding default indicator light display cycle and a set of network devices port are included
Mouth number determines that the corresponding indicator light of each network equipment port shows the period in the set of network devices port;Display control
Unit processed controls one group of indicator light in determination unit for the port status display order according to preset network equipment port
The corresponding indicator light of each determining network equipment port was shown in the period, successively showed each described network equipment end
The port status of mouth.
In conjunction with second aspect, in the first possible implementation, the display control unit is specifically used for: when one
When the number for the indicator light that group indicator light includes is one, the corresponding indicator light of each network equipment port is shown into the period
It is divided into at least two parts being overlapped there is no the period, wherein a part of indicator light shows the period for carrying out port mark
Know instruction, another part indicator light shows the period for carrying out port status instruction;For set of network devices port
In any one network equipment port, shown in the period in the corresponding a part of indicator light of any one network equipment port
It carries out the port-mark instruction, and shows the time in the corresponding another part indicator light of any one network equipment port
The port status instruction is carried out in section.
The first possible implementation in conjunction with second aspect, in the second possible implementation, the display control
Unit processed, is specifically used for: controlling the indicator light and shows in the corresponding a part of indicator light of any one network equipment port
In period, the port-mark instruction is carried out according to the first preset rules;And the control indicator light is described any one
The corresponding another part indicator light of network equipment port was shown in the period, carried out the port status according to the second preset rules
Instruction.
In conjunction with second aspect, in the third possible implementation, the display control unit is specifically used for: when one
When the number for the indicator light that group indicator light includes is at least two, for any one network in set of network devices port
Device port shows in the period that the first indicator light of control is carried out in the corresponding indicator light of any one network equipment port
Port-mark instruction;And it is shown in the period in the corresponding indicator light of any one network equipment port, the second instruction of control
Lamp carries out port status instruction.
The third possible implementation in conjunction with second aspect, in the fourth possible implementation, the display control
Unit processed, is specifically used for: control first indicator light is in the corresponding indicator light display of any one network equipment port
Between in section, carry out the port-mark instruction according to the first preset rules;And control second indicator light is described any
The corresponding indicator light of one network equipment port was shown in the period, carried out the port status instruction according to the second preset rules.
Any one realization of the first possible implementation into the 4th kind of possible implementation in conjunction with second aspect
Mode, in a fifth possible implementation, the port status include link state and data transmission state;For described
Any one network equipment port in one set of network devices port, the display control unit control described in the indicator light progress
The method of port status instruction, specifically includes: if the number of one group of indicator light is one, when the link state is chain
When the off-state of road, the indicator light is controlled in the period of the corresponding port status instruction of any one network equipment port
It is interior, according to first port state instruction rule, indicate that the link state is link-down state;When the link state is chain
Road connection status when, if data transmission state be there is no data transmission, control the indicator light described any one
In the period of the corresponding port status instruction of network equipment port, according to second port state instruction rule, the chain is indicated
Line state is link connection status, and data transmission state is that there is no data transmission;When the link state is link
When connection status, if data transmission state is that there are data transmission, the indicator light is controlled in any one network
In the period of the corresponding port status instruction of device port, according to third port state instruction rule, the link shape is indicated
State is link connection status, and data transmission state is that there are data transmission;If the number of one group of indicator light is extremely
It is two few, then when link state is link-down state, second indicator light is controlled at any one network equipment end
The corresponding indicator light of mouth was shown in the period, indicated rule according to the 4th port status, indicated that the link state is disconnected for link
Open state;When the link state is link connection status, if data transmission state is to control there is no data transmission
It makes second indicator light to show in the period in the corresponding indicator light of any one network equipment port, according to fifth port
State instruction rule indicates that the link state is link connection status, and data transmission state is that there is no data biographies
It is defeated;When the link state is link connection status, if data transmission state is there are data transmission, described in control
Second indicator light is shown in the period in the corresponding indicator light of any one network equipment port, is referred to according to the 6th port status
Show rule, indicates that the link state is link connection status, and data transmission state is that there are data transmission.
In the embodiment of the present invention, according to a set of network devices port corresponding default indicator light display cycle and one group
The network equipment port number that network equipment port includes determines that the corresponding indicator light of each network equipment port shows the time
Section;According to preset port status display order, one group of indicator light is controlled in the corresponding indicator light of each network equipment port
It shows in the period, successively shows the port status of each network equipment port.Using technical solution of the present invention, for each
A network equipment port is respectively provided with corresponding indicator light and shows the period, using time division multiplexing mode, control one group of indicator light according to
The secondary port status for showing each network equipment port, is transformed without to the indicator lamp quantity for including in the network equipment,
Also it need not increase network equipment size, to effectively reduce scrap build cost;Also, it is different by one group of indicator light display
The port status of network equipment port, will not generate the waste of indicator light, and reduce the complexity for obtaining port status, improve
Obtain the efficiency of port status.
Specific embodiment
Indicate the port status of the network equipment exist and need the network equipment to solve to exist in the prior art
Size increases, and network equipment port density reduces, and obtains the high problem of port status complexity.In the embodiment of the present invention,
Corresponding indicator light is respectively provided with for each network equipment port and shows the period, using time division multiplexing mode, controls one group
Indicator light successively shows the port status of each network equipment port, without to the indicator lamp quantity for including in the network equipment into
Row transformation need not also increase network equipment size, to effectively reduce scrap build cost;Also, pass through one group of indicator light
The port status for showing heterogeneous networks device port, will not generate the waste of indicator light, and reduces and obtain answering for port status
Miscellaneous degree improves the efficiency for obtaining port status.
With reference to the accompanying drawings of the specification, the embodiment of the present invention is described in further detail.
As shown in fig.1, in the embodiment of the present invention, carrying out the process that the port status of network equipment port is shown includes:
Step 100: according to a set of network devices port corresponding default indicator light display cycle and a set of network devices
The network equipment port number that port is included determines the corresponding finger of each network equipment port in the set of network devices port
Show that lamp shows the period.
In the embodiment of the present invention, one group of indicator light is locally being preset, which includes at least one indicator light;Control
Make the port status that one group of indicator light shows each network equipment port in a set of network devices port.Wherein, port shape
State includes link state and data transmission state;When indicator light shows the port status of any one network equipment port, it can adopt
It is bright or the long mode gone out shows different port status with length, it can also be shown not by the way of according to default flicker frequency
Same port status.
As shown in fig.2, being directed to each set of network devices port, the corresponding indicator light display cycle is preset;And according to
The network equipment port number for including in each set of network devices port divides the default indicator light display cycle, makes every
One network equipment port possesses itself corresponding indicator light and shows the period, and shows in the period and carried out accordingly in indicator light
The port status of network equipment port indicates.For example, the network equipment port number for including in a set of network devices port is n,
One default indicator light display cycle is T, then the indicator light display cycle is averagely divided into n parts, the period 1 is the network equipment
The corresponding indicator light in port 1 shows that period, period 2 are that the corresponding indicator light of network equipment port 2 shows the period, successively
Analogize, period n is that the corresponding indicator light of network equipment port n shows the period.
Wherein, the corresponding indicator light of each network equipment port shows that the period is same or different, when each net
When the corresponding indicator light of network device port shows that the period is identical, the port shape of user's reading network equipment port will be easily facilitated
After the ethernet port of a 40GE is such as split as 4 single-stranded road ports of 10GE, the default indicator light display cycle is arranged in state
It is 20 seconds, then the corresponding default indicator light of each network equipment port is shown that the period is 5 seconds.
Step 110: according to the port status display order of preset network equipment port, controlling one group of indicator light each
The corresponding indicator light in a port was shown in the period, successively showed the port status of each network equipment port.
In the embodiment of the present invention, when the number for the indicator light that one group of indicator light includes is one, each network is set
Show that the period is divided into at least two parts being overlapped there is no the period for the corresponding indicator light in port, wherein a part refers to
Show that lamp shows that the period shows that the period refers to for carrying out port status for carrying out port-mark instruction, another part indicator light
Show;For any one network equipment port, shown in the period successively in the corresponding indicator light of any one network equipment port
Carry out port-mark instruction and port status instruction.
Wherein, above-mentioned port-mark can be port numbers;For the ease of user's read port state, usually indicator light is shown
Show that the first part in the period indicates the time as port-mark, second part indicates the time as port status;For appoint
The port-mark of a network equipment port of anticipating indicates that control instructions lamp was shown in first part's indicator light in the period, according to the
One preset rules carry out port-mark instruction;And control instructions lamp is shown in the period in second part indicator light, according to the
Two preset rules carry out port status instruction.
Wherein, for different port-marks, control instructions lamp carries out port-mark instruction using the first preset rules, should
First preset rules can also carry out port using a kind of fixed color to carry out port-mark instruction using predeterminated frequency
Mark instruction.For example, being directed to two network equipment ports, shows in the period, adopt in the corresponding indicator light of network equipment port 1
Port-mark instruction is carried out with red indicating light, is shown in the period in the corresponding indicator light of network equipment port 2, using green
Indicator light carries out port-mark instruction.In another example being that predeterminated frequency is respectively adopted for four network equipment ports refering to Fig. 3
The schematic diagram for carrying out port-mark instruction shows that the period, (such as the indicator light was shown in the corresponding indicator light of network equipment port 1
Period is 2 seconds) in, use frequency to indicate that current time is aobvious for 2 hertz of 1 pulse (i.e. each pulse is 250 milliseconds)
The port status shown is the port status of network equipment port 1, shows the period in the corresponding indicator light of network equipment port 2
It is interior, use frequency to indicate that the port status of current time display is the port shape of network equipment port 2 for 2 hertz of 2 pulses
State is shown in the period in the corresponding indicator light of network equipment port 3, when frequency being used to indicate current for 2 hertz of 3 pulses
The port status for carving display is the port status of network equipment port 3, shows the time in the corresponding indicator light of network equipment port 4
In section, frequency is used to indicate that the port status of current time display is the port of network equipment port 4 for 2 hertz of 4 pulses
State.
Optionally, port-mark instruction is started with low level, is terminated with low level, is originated low level duration and is terminated low
The duration of level is that 1/4 port-mark indicates corresponding pulse.
In addition, being directed to different port-marks, control instructions lamp carries out port status instruction using the second preset rules, should
Second preset rules can be that, for all-network device port, can carry out port status using a kind of default flicker frequency
Instruction can also carry out port status instruction using different colors.For example, being directed to two network equipment ports, set in network
The standby corresponding indicator light in port 1 shows in the period, goes out or the mode of frequency f carries out port status using length is bright perhaps long
Instruction shows in the period in the corresponding indicator light of network equipment port 2, same bright perhaps long to be gone out or frequency f by long
Mode carries out port status instruction.In another example for two network equipment ports, in the corresponding indicator light of network equipment port 1
It shows in the period, uses red indicating light instruction port status for A, use green indicator light instruction port status for B, in net
The corresponding indicator light of network device port 2 was shown in the period, equally used red indicating light instruction port status for A, use is green
Color indicator light indicates that port status is B.
The switching of the state instruction of heterogeneous networks device port is distinguished for the ease of user, it further, can also will be every
The corresponding indicator light of one network equipment port shows that the period is divided into three parts, wherein first part's indicator light is shown
Period shows the period for carrying out port-mark instruction, third for carrying out port switching instruction, second part indicator light
Part indicator light shows the period for carrying out port status instruction.For example, as shown in fig.4, showing the period in indicator light
Interior, first time period is used for carrying out port switching instruction, second time period for carrying out port-mark instruction, third period
In progress port status instruction.
Wherein, for all network equipment ports, third preset rules can be used, above-mentioned port switching is carried out and refers to
Show, the third preset rules can for using fixed frequency carry out port switching instruction, can also using a kind of fixed color into
The instruction of row port switching.
Optionally, as shown in fig.5, port switching instruction is started with low level, terminated with low level, originated low level
Duration and the low level duration of end are that 1/4 port switching indicates corresponding pulse.For example, as shown in fig.5, in network
The indicator light of device port 1 is shown in period (such as indicator light shows that time segment length is 1 second), uses frequency for 4 hertz
4 pulses (i.e. each pulse be 250 milliseconds), using when a length of 62.5 milliseconds of low level open as what port switching indicated
Begin, carries out port switching instruction;In another example for two network equipment ports, it is aobvious in the corresponding indicator light of network equipment port 1
Show in the period, port switching instruction carried out using yellow, is shown in the period in the corresponding indicator light of network equipment port 2,
Port switching instruction is still carried out using yellow.In addition, port switching instruction can also be started with low level, high level terminates, and rises
A length of 1/2 port switching indicates corresponding pulse when beginning low level.
In the embodiment of the present invention, when the number for the indicator light that one group of indicator light includes be at least two when, by this at least two
The first indicator light in a indicator light is arranged for port-mark instruction, by the second indicator light at least two indicator light
It is arranged for port status instruction;It is shown in the period in the corresponding indicator light of any one network equipment port, control first
Indicator light carries out port-mark instruction;And it is shown in the period in the corresponding indicator light of any one network equipment port, control
Second indicator light carries out port status instruction.
Wherein, it is indicated for port-mark instruction and port status, specifically: the first indicator light of control is shown in indicator light
In period, port-mark instruction is carried out according to the first preset rules;And the second indicator light of control is in any one network equipment
The corresponding indicator light in port was shown in the period, carried out port status instruction according to the second preset rules.First preset rules
Port-mark instruction can also be carried out using a kind of fixed color to carry out port-mark instruction using predeterminated frequency;Example
Such as, it for two network equipment ports, is shown in the period in the corresponding indicator light of network equipment port 1, the first indicator light is logical
A pulse (i.e. the first indicator light flashing is primary) is crossed, port-mark instruction is carried out, in the corresponding indicator light of network equipment port 2
It shows in the period, the first indicator light carries out port-mark instruction by two pulses (i.e. the first indicator light flashes twice);Again
For example, being directed to two network equipment ports, shown in the period in the corresponding indicator light of network equipment port 1, the first indicator light
It is displayed in red to carry out port-mark instruction, is shown in the period in the corresponding indicator light of network equipment port 2, the first indicator light
Display green is to carry out port-mark instruction.
For different port-marks, the second indicator light is controlled using the second preset rules and carries out port status instruction, it should
Second preset rules can be that, for all-network device port, can carry out port status using a kind of default flicker frequency
Instruction can also carry out port status instruction using different colors.
Distinguish that the switching of the state instruction of heterogeneous networks device port can also further increase for the ease of user
Carry out the time of port switching instruction;Wherein it is possible to which controlling the first indicator light carries out port switching instruction, needs will be referred at this time
Show that lamp shows that the period is divided into two parts, is shown in the period in first part's indicator light, the first indicator light is for being held
Mouth switching instruction, shows in the period, the first indicator light is being indicated for carrying out port-mark instruction in second part indicator light
Lamp shows in the period that the second indicator light is for carrying out port status instruction;For example, as shown in fig.6, in indicator light display
Between in section, first time period is for carrying out port switching instruction, and second time period is for carrying out port-mark instruction, the second instruction
Lamp is for carrying out port status instruction.Further, it is also possible to control the second indicator light carry out port switching instruction, will need at this time by
Indicator light shows that the period is divided into two parts, shows in the period in first part's indicator light, the second indicator light is for carrying out
Port switching instruction shows in the instruction period that the second indicator light is used to carry out port status instruction in second part indicator light,
It is shown in the period in indicator light, the first indicator light is for carrying out port-mark instruction.
Further, when controlling the progress port switching instruction of the first indicator light, the second indicator light can also be controlled whole
A indicator light, which is shown, carries out port status instruction in the period, or carries out the same of port switching instruction in the first indicator light
When, the second indicator light of control carries out port status switching.
Wherein, it is indicated for port switching, control instructions lamp is shown that the preset rules can using third preset rules
Think and port switching instruction is carried out using predeterminated frequency, port switching instruction can also be carried out using a kind of fixed color.For example,
As shown in fig.7, shown in the period in the corresponding indicator light of any one network equipment port, the first indicator light of control according to
4 pulses that frequency is 4 hertz (when i.e. a second rushes a length of 250 milliseconds) carry out port switching instruction, indicate in port switching
Later, frequency is used to rush in the instruction of row port-mark for two seconds of 2 hertz (pulse duration is 500 milliseconds), notice is used
The port status of the second indicator light of family instruction is the port status of network equipment port 2.
Optionally, port switching instruction is started with low level, is terminated with low level, is originated low level duration and is terminated low
The duration of level is that 1/4 port switching indicates corresponding pulse.In addition, port switching instruction can also be opened with low level
Begin, high level terminates, and a length of 1/2 port switching indicates corresponding pulse when originating low level.
In the embodiment of the present invention, port status includes link state and data transmission state;Based on this, for any one net
Network device port, if the number of one group of indicator light is one, when link state is link-down state, control instructions lamp exists
In the period of the corresponding port status instruction of any one network equipment port, according to first port state instruction rule, refer to
Show that link state is link-down state;When link state is link connection status, if data transmission state is not deposit
Transmitted in data, then control instructions lamp within the period of the corresponding port status instruction of above-mentioned any one network equipment port,
According to second port state instruction rule, instruction link state is link connection status, and data transmission state is not deposit
It is transmitted in data;When link state is link connection status, if data transmission state is to control there are data transmission
Indicator light refers within the period of the corresponding port status instruction of above-mentioned any one network equipment port according to third port state
Show rule, instruction link state is link connection status, and data transmission state is that there are data transmission;
If the number of one group of indicator light is at least two, when link state is link-down state, control second refers to
Show that lamp is shown in the period in the corresponding indicator light of any one network equipment port, indicate rule according to the 4th port status,
Instruction link state is link-down state;When link state is link connection status, if data transmission state is not
There are data transmission, then control the second indicator light in the corresponding indicator light of above-mentioned any one network equipment port and show the period
Interior, according to fifth port state instruction rule, instruction link state is link connection status, and data transmission state is not
There are data transmission;When link state is link connection status, if data transmission state is to control there are data transmission
It makes the second indicator light to show in the period in the corresponding indicator light of above-mentioned any one network equipment port, according to the 6th port status
Instruction rule, instruction link state is link connection status, and data transmission state is that there are data transmission.
Wherein, by way of control instructions lamp flicker frequency, display data transmissions state, when indicator light is according to flashing frequency
When rate is flashed, determines and be in data transmission state, when indicator light does not flash, determination is not in data transmission state,
I.e. there is no data to transmit, as shown in fig.8, indicating in the time for data transmission state in the embodiment of the present invention, data transmission
State instruction schematic diagram, the flicker frequency are 8 hertz, indicate that there are data transmission (to be in active shape using the flicker frequency
State);It is by way of long bright or length is gone out, to show link state control instructions lamp, when indicator light is long bright, determines link
State is link connected status (being in link up state) and there is no data to transmit, and when indicator light is long goes out, determines chain
Road disconnects and (is in link down state), and data must be not present at this time and transmit.
In addition, being directed to heterogeneous networks equipment, the project that port status is included is different, and above only includes chain with port status
It is introduced for line state and data transmission state, instruction when including sundry item for port status, to sundry item
Lamp display mode is identical as aforesaid way, and details are not described herein.
By adopting the above technical scheme, using time-multiplexed mode, pass through the different action identification networks of one group of indicator light
The port-mark and port status of device port, to realize the end for indicating multiple network equipment ports using one group of indicator light
Mouth state effectively supports network equipment port and splits in application, referring to the port status of network equipment port each after fractionation
Show, when effectively preventing the progress port status instruction of multiple groups indicator light, needs the problem of being transformed to the network equipment.
Based on the above-mentioned technical proposal, below with reference to specific application scenarios, network equipment port is described in detail and indicates process.
Application scenarios one
As shown in fig.9, in the embodiment of the present invention, when the indicator light number that one group of indicator light includes is one, setting
One indicator light shows that the period is 5s, wherein the period of port switching instruction is 1 second, the period of port-mark instruction
It is 2 seconds, the period of port links state instruction is 2 seconds.
Specifically, 4 pulses that setting frequency is 4 hertz indicate that port is cut when port-mark is network equipment port 2
Instruction is changed, for indicating that the port status of network equipment port 1 indicates to be over;Be arranged frequency be 2 hertz 2 pulses into
The instruction of row port-mark indicates that current time was in the indicator light display period of network equipment port 2;Setting length is bright
Or long go out carries out port status instruction, when indicator light is long bright, indicates the normal (link of 2 link state of network equipment port
up)。
Application scenarios two
As shown in fig.10, in the embodiment of the present invention, when the indicator light number that one group of indicator light includes is one, setting
One indicator light shows that the period is 5s, wherein the period of port switching instruction is 1 second, the period of port-mark instruction
It is 2 seconds, the period of port data transmission state instruction is 2 seconds.
Specifically, 4 pulses that setting frequency is 4 hertz indicate that port is cut when port-mark is network equipment port 3
Instruction is changed, for indicating that the port status of network equipment port 2 indicates to be over;Be arranged frequency be 2 hertz 3 pulses into
The instruction of row port-mark indicates that current time was in the indicator light display period of network equipment port 3;Frequency is set
Port status instruction is carried out for 8 hertz of 16 pulses, when indicator light is flashing state, indicates that network equipment port 3 is in
Data transmission state (active).
Application scenarios three
Refering to fig. 1 shown in 1, in the embodiment of the present invention, when the indicator light number that one group of indicator light includes is two, setting
One indicator light shows that the period is 3s, wherein carries out port switching instruction by the first indicator light and port-mark indicates, by the
Two indicator lights carry out port status instruction, and the period of port switching instruction is 1 second, and the period of port-mark instruction is 2 seconds,
The period of port data transmission state instruction is 2 seconds.
Specifically, controlling 4 arteries and veins that the first indicator light is 4 hertz with frequency when port-mark is network equipment port 3
Punching indicates port switching instruction, indicates that the port status instruction of network equipment port 2 is over;The first indicator light is controlled with frequency
3 pulses that rate is 2 hertz carry out port-mark instruction, indicate that current time has been in the indicator light of network equipment port 3
It shows in the period;It controls the second indicator light and carries out port status instruction with 16 pulses that frequency is 8 hertz, when indicator light is
When flashing state, indicate that network equipment port 3 is in data transmission state (active).
Optionally, the second indicator light is shown in the period in the corresponding indicator light of network equipment port 3, is at the 1st second
Now it is long mode or long bright of going out, when reaching the 2nd second, port status is presented;In addition, the second indicator light can also entirely refer to
Show that lamp was shown in the period, display port state is rushed with 8 hertz of second.
Application scenarios four
Refering to fig. 1 shown in 2, in the embodiment of the present invention, when the indicator light number that one group of indicator light includes is one, setting
One indicator light shows that the period is 5s, wherein the period of port switching instruction is 1 second, the period of port-mark instruction
It is 2 seconds, the period of port links state instruction is 2 seconds.
Specifically, setting indicator light is presented orange expression port switching and refers to when port-mark is network equipment port 2
Show, for indicating that the port status of network equipment port 1 indicates to be over;Indicator light is set, green is presented, and with frequency for 2
2 pulses of hertz carry out port-mark instruction, when indicating that current time has been in the indicator light display of network equipment port 2
Between in section;Setting indicator light is presented green long bright or long go out and carries out port status instruction, when indicator light is long bright, indicates network
2 link state of device port is normal (link up).
Application scenarios five
Refering to fig. 1 shown in 3, in the embodiment of the present invention, when the indicator light number that one group of indicator light includes is one, setting
One indicator light shows that the period is 5s, wherein the period of port switching instruction is 1 second, the period of port-mark instruction
It is 2 seconds, the period of port links state instruction is 2 seconds.
Specifically, orange expression network equipment port is presented in setting indicator light when port-mark is network equipment port 3
2 port status instruction is over;Indicator light is set, green is presented, and 3 pulses that frequency is 2 hertz carry out port-mark
Instruction indicates that current time was in the indicator light display period of network equipment port 3;Indicator light is set, orange is presented
Color, and 16 pulses for being 8 hertz with frequency carry out port status instruction, when indicator light is flashing state, indicate that network is set
Standby port 3 is in data transmission state (active).
Based on the above-mentioned technical proposal, refering to fig. 1 shown in 4, the embodiment of the present invention provides a kind of instruction network equipment port
Device, including determination unit 140 and display control unit 141, in which:
Determination unit 140, for according to a set of network devices port corresponding default indicator light display cycle and one group
The network equipment port number that network equipment port is included determines each network equipment port in the set of network devices port
Corresponding indicator light shows the period;
Display control unit 141 controls one group for the port status display order according to preset network equipment port
Indicator light is shown in the period in the corresponding indicator light of each network equipment port that determination unit 140 determines, is successively shown
The port status of each network equipment port.
Wherein, display control unit 141 are specifically used for: when the number for the indicator light that one group of indicator light includes is one,
The corresponding indicator light of each network equipment port is shown that the period is divided into there is no at least two parts of period overlapping,
Wherein, a part of indicator light shows that the period shows that the period is used for for carrying out port-mark instruction, another part indicator light
Carry out port status instruction;For any one network equipment port in set of network devices port, described any one
The corresponding a part of indicator light of network equipment port, which is shown, carries out the port-mark instruction in the period, and described any
The corresponding another part indicator light of one network equipment port, which is shown, carries out the port status instruction in the period.
Optionally, the display control unit 141, is specifically used for: controlling the indicator light and sets in any one network
It is shown in the period for the corresponding a part of indicator light in port, carries out the port-mark instruction according to the first preset rules;With
And the control indicator light is shown in the period in the corresponding another part indicator light of any one network equipment port, according to
Second preset rules carry out the port status instruction.
Optionally, the display control unit 141, is specifically used for: when the number for the indicator light that one group of indicator light includes is
When at least two, for any one network equipment port in set of network devices port, set in any one network
It is shown in the period for the corresponding indicator light in port, the first indicator light of control carries out port-mark instruction;And described any one
The corresponding indicator light of network equipment port shows in the period that the second indicator light of control carries out port status instruction.
Optionally, the display control unit 141, is specifically used for: control first indicator light is in any one net
The corresponding indicator light of network device port was shown in the period, carried out the port-mark instruction according to the first preset rules;And
Second indicator light is controlled to show in the period in the corresponding indicator light of any one network equipment port, it is pre- according to second
If rule carries out the port status instruction.
For any one network equipment port in set of network devices port, the display control unit 141 is controlled
The method that the indicator light carries out the port status instruction is made, is specifically included: if the number of one group of indicator light is one,
Then when the link state is link-down state, it is corresponding in any one network equipment port to control the indicator light
In the period of port status instruction, according to first port state instruction rule, indicate that the link state is that link disconnects shape
State;When the link state is link connection status, if data transmission state is to control institute there is no data transmission
Indicator light is stated within the period of the corresponding port status instruction of any one network equipment port, according to second port state
Instruction rule indicates that the link state is link connection status, and data transmission state is that there is no data transmission;When
The link state be link connection status when, if data transmission state be there are data transmission, control the instruction
Lamp is advised within the period of the corresponding port status instruction of any one network equipment port according to third port state instruction
Then, indicate that the link state is link connection status, and data transmission state is that there are data transmission;If described one group
The number of indicator light is at least two, then when link state is link-down state, controls second indicator light described
The corresponding indicator light of any one network equipment port shows in the period, rule is indicated according to the 4th port status, described in instruction
Link state is link-down state;When the link state is link connection status, if data transmission state is not
There are data transmission, then control second indicator light in the corresponding indicator light of any one network equipment port and show the time
In section, according to fifth port state instruction rule, indicate that the link state is link connection status, and data transmit shape
State is that there is no data transmission;When the link state is link connection status, if data transmission state is that there are numbers
According to transmission, then controls second indicator light and is shown in the period in the corresponding indicator light of any one network equipment port,
Rule is indicated according to the 6th port status, indicates that the link state is link connection status, and data transmission state is
There are data transmission.
Based on the above-mentioned technical proposal, refering to fig. 1 shown in 5, the embodiment of the present invention provides a kind of instruction network equipment port shape
The equipment of state, including processor 150, memory 151 and bus 152, in which:
Processor 150, for according to a set of network devices port corresponding default indicator light display cycle and a networking
The network equipment port number that network device port is included determines each network equipment port pair in the set of network devices port
The indicator light answered shows the period;
Memory 151, for obtaining each in the set of network devices port that processor 150 determines by bus 152
The corresponding indicator light of network equipment port shows that the period is stored, and the preset network equipment port status display of storage
Sequentially;
Processor 150, the port status for being also used to obtain the preset network equipment port saved in memory 151 are shown
Sequence indicator light corresponding with each network equipment port in a set of network devices port shows the period, and default according to this
Network equipment port port status display order, one group of indicator light of control is corresponding in determining each network equipment port
Indicator light show in the period, successively show the port status of each network equipment port.
Wherein, processor 150 are specifically used for:, will be each when the number for the indicator light that one group of indicator light includes is one
The corresponding indicator light of a network equipment port shows that the period is divided into that there is no at least two parts of period overlapping, wherein
A part of indicator light shows that the period shows the period for being held for carrying out port-mark instruction, another part indicator light
Mouth state instruction;For any one network equipment port in set of network devices port, set in any one network
It is shown in the period for the corresponding a part of indicator light in port and successively carries out the port-mark instruction, and described any one
The corresponding another part indicator light of network equipment port, which is shown, carries out the port status instruction in the period.
Processor 150, is specifically used for: controlling the indicator light in the corresponding a part of any one network equipment port
Indicator light was shown in the period, carried out the port-mark instruction according to the first preset rules;And the control indicator light exists
The corresponding another part indicator light of any one network equipment port was shown in the period, carried out institute according to the second preset rules
State port status instruction.
Optionally, processor 150 are specifically used for: when the number for the indicator light that one group of indicator light includes is at least two,
It is corresponding in any one network equipment port for any one network equipment port in set of network devices port
Indicator light shows in the period that the first indicator light of control carries out port-mark instruction;And in any one network equipment port
Corresponding indicator light shows in the period that the second indicator light of control carries out port status instruction.
Optionally, processor 150 are specifically used for: control first indicator light is in any one network equipment port
Corresponding indicator light was shown in the period, carried out the port-mark instruction according to the first preset rules;And control described the
Two indicator lights are shown in the period in the corresponding indicator light of any one network equipment port, are carried out according to the second preset rules
The port status instruction.
For any one network equipment port in set of network devices port, processor 150 controls the instruction
The method that lamp carries out the port status instruction, specifically includes: if the number of one group of indicator light is one, when the chain
When line state is link-down state, controls the indicator light and refer in the corresponding port status of any one network equipment port
In the period shown, according to first port state instruction rule, indicate that the link state is link-down state;When the chain
Line state be link connection status when, if data transmission state be there is no data transmission, control the indicator light and exist
In the period of the corresponding port status instruction of any one network equipment port, according to second port state instruction rule,
Indicate that the link state is link connection status, and data transmission state is that there is no data transmission;When the link
State be link connection status when, if data transmission state be there are data transmission, control the indicator light described
In the period of the corresponding port status instruction of any one network equipment port, according to third port state instruction rule, instruction
The link state is link connection status, and data transmission state is that there are data transmission;If one group of indicator light
Number be at least two, then when link state is link-down state, control second indicator light described any one
The corresponding indicator light of network equipment port was shown in the period, is indicated rule according to the 4th port status, is indicated the link shape
State is link-down state;When the link state is link connection status, if data transmission state is that there is no numbers
According to transmission, then controls second indicator light and is shown in the period in the corresponding indicator light of any one network equipment port,
According to fifth port state instruction rule, indicate that the link state is link connection status, and data transmission state is
There is no data transmission;When the link state is link connection status, if data transmission state is that there are data biographies
It is defeated, then it controls second indicator light and is shown in the period in the corresponding indicator light of any one network equipment port, according to
6th port status instruction rule indicates that the link state is link connection status, and data transmission state is to exist
Data transmission.
In conclusion in the embodiment of the present invention, according to a set of network devices port corresponding default indicator light display cycle,
And the set of network devices port network equipment port number that is included, determine each network in the set of network devices port
The corresponding indicator light of device port shows the period;According to the port status display order of preset network equipment port, control
One group of indicator light is shown in the period in the corresponding indicator light in each port, successively shows the end of each network equipment port
Mouth state.Using technical solution of the present invention, corresponding indicator light is respectively provided with for each network equipment port and shows the period,
Using time division multiplexing mode, the port status that one group of indicator light successively shows each network equipment port is controlled, without to net
The indicator lamp quantity for including in network equipment is transformed, and need not also be increased network equipment size, be changed to effectively reduce equipment
Cause this;Also, the port status that heterogeneous networks device port is shown by one group of indicator light, will not generate the wave of indicator light
Take, and reduce the complexity for obtaining port status, improves the efficiency for obtaining port status.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, those skilled in the art can carry out various modification and variations without departing from this hair to the embodiment of the present invention
The spirit and scope of bright embodiment.In this way, if these modifications and variations of the embodiment of the present invention belong to the claims in the present invention
And its within the scope of equivalent technologies, then the present invention is also intended to include these modifications and variations.