Port state display device, control method and related device
By introducing a variety of working modes and port status indicator devices into network devices, the problem that network devices cannot accurately describe the split port status is solved, and the accurate representation of the split port status and the operation and maintenance efficiency are improved.
Patent Information
- Application Number
- CN202411178218.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-26
- Publication Date
- 2024-12-06
AI Technical Summary
Existing network devices cannot accurately describe the status of the split port, resulting in the inability to clarify whether the original port is split, slowed down, or both split and slowed down.
By providing a port status display device, including a working mode indicator device and a port status indicator device, the original port is split using multiple working modes, ensuring that each split port corresponds to a port status indicator device, and realizing the split port status accurate statement.
The indication logic of network equipment has been improved, and the status of split ports can be accurately expressed, improving operation and maintenance efficiency and accuracy.
Smart Images

Figure CN119094376A_ABST
Abstract
Description
Background Art
[0002] With the rapid development of data center technology, the interface density of network devices has gradually increased. There is a trend of evolving from multiple small interfaces to split large interfaces on network devices.
[0003] In order to take into account both high-density characteristics and the requirements of compatible terminal low-speed network adapters, network interfaces are often split. However, the indication logic of current network devices cannot accurately describe the status of split ports.
[0004] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0005] The purpose of the present disclosure is to provide a method that at least to a certain extent solves the problem in the prior art that the indication logic of the current network device cannot accurately describe the state of the split port.
[0006] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0007] According to a first aspect of the present disclosure, there is provided a port status display device, comprising: N+1 working mode indication devices, K port status indication devices and K original ports;
[0008] An operating mode indicating device, used for indicating a first operating mode and N second operating modes;
[0009] When the working mode indicating device indicates the first working mode, each port status indicating device is used to indicate the port status of an original port;
[0010] When the working mode indicating device indicates any second working mode, K / N original ports are selected for splitting, and each of the K / N original ports is split into N split ports to obtain K split ports; N is the maximum number of splits of the original port;
[0011] Each port status indicating device is used to indicate the port status of a split port.
[0012] In a possible embodiment, the port status includes: a flow status and a connection status;
[0013] The port status indication device comprises a first port status indication sub-device and a second port status indication sub-device, the first port status indication sub-device is used to indicate the flow status, and the second port status indication sub-device is used to indicate the connection status;
[0014] Alternatively, a third port status indication sub-device is included; the third port status indication sub-device is used to indicate the port status.
[0015] In a possible embodiment, the further comprising: splitting the port indication group;
[0016] When the working mode indicating device indicates any second working mode, the N port status indicating devices are used as a split port indication group to obtain K / N split port indication groups, each split port indication group is used to indicate the port status of a split port corresponding to an original port.
[0017] In a possible embodiment, it further includes:
[0018] When the working mode indicating device indicates the Mth second working mode, the Lth split port indication group in the Mth second working mode is used to indicate the port status of the split ports corresponding to the N(L-1)+Mth original ports.
[0019] In a possible embodiment, it further includes:
[0020] When the working mode indicating device indicates the Mth second working mode, the Lth split port indication group in the Mth second working mode is used to indicate the port status of the split port corresponding to the N(M-1)+Lth original port.
[0021] In a possible embodiment, the port status display device further includes: a working mode switching device, and the working mode switching device is used to switch the working mode.
[0022] In a possible embodiment, the port status display device defaults to the first working mode when it is started;
[0023] The working mode switching device includes a first sub-device; the working mode is switched in a forward switching order according to the number of times the first sub-device is touched;
[0024] The forward switching sequence is: starting from the first working mode, to the first second working mode, to the Nth second working mode, and then to the first working mode.
[0025] In a possible embodiment, the working mode switching device further includes a second sub-device; the working mode is switched in a reverse switching order according to the number of times the second sub-device is touched;
[0026] The reverse switching sequence is: starting from the first working mode, to the Nth second working mode, to the first second working mode, and then to the first working mode.
[0027] In a possible embodiment, the working mode switching device includes a third sub-device indicating each working mode, and the port status display device is switched to the corresponding working mode by touching the third sub-device corresponding to the working mode.
[0028] According to another aspect of the present disclosure, a method for controlling a port status display device is also provided, the method comprising:
[0029] Detect the current working mode;
[0030] If the current working mode is any second working mode, the corresponding working mode indicating device is controlled to work;
[0031] Select K / N original ports for splitting, split each of the K / N original ports into N split ports, and obtain K split ports; N is the maximum number of splits of the original port;
[0032] Acquire and parse the port status information to obtain the port status of the K split ports in any second working mode;
[0033] According to the port states of the K split ports, the K port state indicating devices are controlled to be in a first display state.
[0034] In a possible embodiment, the method further includes:
[0035] With respect to the flow state and connection state of any split port, the port state indicating device corresponding to any split port is controlled to be in the first display state.
[0036] In a possible embodiment, the port status indication device includes a first port status indication sub-device and a second port status indication sub-device; the first display state includes a first state, a second state, a first color, a second color and a third color;
[0037] For the flow state and connection state of any split port, controlling the port state indicating device corresponding to any split port to be in the first display state includes:
[0038] If the flow state of any split port is yes, then control the first display state of the first port state indication sub-device to be the first state;
[0039] If the flow state of any split port is none, controlling the first display state of the first port state indication sub-device to be the second state;
[0040] If the connection state of any split port is a normal connection, controlling the first display state of the second port state indication sub-device to be a first color;
[0041] If the connection state of any split port is a normal connection and there is a speed reduction, controlling the first display state of the second port state indication sub-device to be a second color;
[0042] If any of the split ports does not exist, controlling the first display state of the second port state indication sub-device to be a third color;
[0043] If the connection state of any split port is no connection, the first display state of the second port state indication sub-device is controlled to be the second state.
[0044] In a possible embodiment, the port status indication device includes a third port status indication sub-device; the first display state includes: a first color, a second color, a third color, a first state, a second state and a third state;
[0045] For the flow state and connection state of any split port, controlling the port state indicating device corresponding to any split port to be in the first display state includes:
[0046] If the connection state of any split port is a normal connection and the flow state is none, then the first display state of the third port state indication sub-device is controlled to be a first color and a third state;
[0047] If the connection state of any split port is a normal connection and the flow state is available, then the first display state of the third port state indication sub-device is controlled to be a first color and a first state;
[0048] If the connection state of any split port is a normal connection with a reduced speed, and the flow state is none, then the first display state of the third port state indication sub-device is controlled to be the second color and the third state;
[0049] If the connection status of any split port is a normal connection with a speed reduction, and the flow status is yes, then control the first display status of the third port status indication sub-device to be a second color and a first status;
[0050] If any of the split ports does not exist, controlling the first display state of the third port state indication sub-device to be a third color and a third state;
[0051] If the connection state of any split port is no connection, the first display state of the third port state indication sub-device is controlled to be the second state.
[0052] In a possible embodiment, the method further includes:
[0053] If the current working mode is the first working mode, controlling the corresponding working mode indicating device to work;
[0054] Acquire and parse the port status information to obtain the port status of each original port;
[0055] According to the port status of each original port, the corresponding port status indicating device is controlled to be in the second display status.
[0056] According to another aspect of the present disclosure, there is also provided a control device for a port status display device, comprising:
[0057] A detection unit, used for detecting a current working mode;
[0058] A first control unit, configured to control the corresponding working mode indicating device to work if the current working mode is any second working mode;
[0059] A splitting unit is used to select K / N original ports for splitting, and split each of the K / N original ports into N split ports, so as to obtain K split ports; N is a maximum number of splits of the original port;
[0060] An acquisition unit, used for acquiring and parsing the port status information, and obtaining the port status of the K split ports in any second working mode;
[0061] The second control unit is used to control the K port status indicating devices to be in a first display state according to the port states of the K split ports.
[0062] According to yet another aspect of the present disclosure, there is provided an electronic device, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform any one of the methods in the first aspect by executing the executable instructions.
[0063] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, any one of the methods in the first aspect is implemented.
[0064] According to another aspect of the present disclosure, a computer program product or a computer program is also provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method in the first aspect above.
[0065] A port status display device, a control method and related devices provided by an embodiment of the present disclosure relate to the field of network technology. The port status display device includes: N+1 working mode indication devices, K port status indication devices and K original ports; the working mode indication device is used to indicate a first working mode and N second working modes; when the working mode indication device indicates the first working mode, each port status indication device is used to indicate the port status of an original port; the port status includes: traffic status and connection status; when the working mode indication device indicates any second working mode, K / N original ports are selected for splitting, and each of the K / N original ports is split into N split ports to obtain K split ports; N is the maximum number of splits of the original port; each port status indication device is used to indicate the port status of a split port. Among them, N is a factor of K. Through the above-mentioned device, the port status of the split port corresponding to the original port can be displayed under different second working modes by multiplexing the port status indicating device. By adjusting different types of second working modes, the port status of each split port is corresponded to the port status indicating device one by one. Based on the current network equipment, only by adding multiple second working mode port status indicating sub-devices, the port status of the split port can be accurately expressed, and the indication logic of all ports can be improved.
[0066] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0068] Figure 1 A schematic diagram showing the structure of a port status display device in an embodiment of the present disclosure is shown;
[0069] Figure 2 A schematic diagram showing the structure of another port status display device in an embodiment of the present disclosure is shown;
[0070] Figure 3 A schematic diagram showing a switching working mode in an embodiment of the present disclosure is shown;
[0071] Figure 4 A schematic diagram showing another switching working mode in an embodiment of the present disclosure;
[0072] Figure 5A schematic diagram showing the structure of another port status display device in an embodiment of the present disclosure is shown;
[0073] Figure 6 A flow chart showing a method for controlling a port status display device according to an embodiment of the present disclosure;
[0074] Figure 7 A flow chart showing another method for controlling a port status display device according to an embodiment of the present disclosure;
[0075] Figure 8 A display schematic diagram of another port status display device in an embodiment of the present disclosure is shown;
[0076] Fig. 9 A display schematic diagram of another port status display device in an embodiment of the present disclosure is shown;
[0077] Fig.10 A display schematic diagram of another port status display device in an embodiment of the present disclosure is shown;
[0078] Fig.11 A schematic diagram showing the structure of a control device for a port status display device in an embodiment of the present disclosure is shown;
[0079] Fig.12 A schematic structural diagram of an electronic device in an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0080] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
[0081] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.
[0082] In the related art, there is a trend of evolving from multiple small interfaces to split large interfaces on network devices. Therefore, many large ports appear, and a large port includes many small ports. Currently, there is only the indication logic for the large port, that is, the indication logic for the original port. In the indication logic for the original port, it can only be concluded whether the original port is split or slowed down, but it is impossible to accurately know whether the original port is split, slowed down, or split and slowed down at the same time. Furthermore, it is also impossible to accurately describe the port status of the small port integrated in the original port, that is, the split port.
[0083] Based on this, the embodiments of the present disclosure provide a port status display device, a control method and related devices, which are specifically described through the following embodiments.
[0084] Figure 1 A schematic diagram of the structure of a port status display device is shown. Figure 1 As shown, the port status display device 100 includes: a working mode indicating device 101, a port status indicating device 102 and an original port 103. The port status display device may be a network device, wherein the port status indicating sub-device 102 and the working mode indicating device 101 may be indicator lights.
[0085] The working mode indicating device 101 includes N+1 devices, which are used to indicate a first working mode and N second working modes.
[0086] When the working mode indicating device 101 indicates the first working mode, each port status indicating device 102 is used to indicate the port status of an original port 103 .
[0087] When the working mode indicating device 101 indicates any second working mode, K / N original ports 103 are selected for splitting, and each of the K / N original ports 103 is split into N split ports to obtain K split ports, and each port status indicating device 102 is used to indicate the port status of a split port.
[0088] N is the maximum number of splits of the original port 103. There may be an original port 103 whose actual splittable number is 2, an original port 103 whose actual splittable number is 4, and an original port 103 whose actual splittable number is 3, indicating the number of split ports actually corresponding to the original port 103. If the original port 103 is split according to the actual number of splits, the number of split ports corresponding to each original port 103 may be inconsistent. Therefore, the original port 103 is split according to the maximum number of splits to ensure the correspondence between the port status indication device 102 and the split port in different working modes.
[0089] It should be noted that the original port and the split port are actually physical ports. The split port refers to a small port, and the original port refers to the integration of the split ports.
[0090] Through the above device, in the first working mode, each port status indicating device 102 indicates the port status of an original port 103. In N second working modes, each second working mode corresponds to K port status indicating devices 102, and the N types can be considered to have N×K in total. There are K original ports 103 in total, and each original port 103 can be split into N×K split ports according to the maximum split number N. The same number of port status indicating devices 102 and split ports is constructed, which can ensure one-to-one correspondence. By multiplexing the port status indicating device 102, the port status of the split port is indicated, and the arrangement structure of the existing port status display device is not improved too much, but the ability to express the port status of the split port is increased, and the indication logic of all ports is completed.
[0091] In a possible embodiment, the port status indicating device 102 is used to indicate the flow status and connection status of the port. The port can be an original port 103 or a split port. Two states can be indicated by one port status indicating sub-device, or one state can be indicated by two port status indicating sub-devices respectively.
[0092] Exemplarily, the port status indicating device 102 includes a first port status indicating sub-device and a second port status indicating sub-device, the first port status indicating sub-device is used to indicate the flow status, and the second port status indicating sub-device is used to indicate the connection status.
[0093] Exemplarily, the port status indicating device 102 comprises a third port status indicating sub-device; the third port status indicating sub-device is used to indicate the port status.
[0094] In a possible embodiment, in each second working mode, K port status indicating devices 102 are used to indicate which original port 103 corresponds to the port status of the split port, and can be specified. One port status indicating device 102 corresponds to one split port.
[0095] In a possible embodiment, in each second working mode, N port status indication devices 102 can be used as a split port indication group to obtain K / N split port indication groups, each split port indication group is used to indicate the port status of a split port corresponding to an original port 103.
[0096] By binding N port status indication devices 102 into a group, and corresponding one split port indication group to one original port 103, the correspondence between the port status indication device 102 in the specific split port indication group content and the split port corresponding to the original port 103 can be bound in a conventional sequential manner.
[0097] By setting the split port indication group, one split port indication group corresponds to one original port 103 , wherein the port status indicating device 102 in the split port indication group can correspond one-to-one to the split port corresponding to the original port 103 .
[0098] In a possible embodiment, in the second working mode, which port status indication device corresponds to which original port 103, the specific manner may include multiple corresponding manners. The following two are examples. In the following embodiments, M is less than or equal to N, L is less than or equal to K / N, N is a factor of K, can be divided by K, and are all positive integers. Take N equal to 4, K = 16 as an example. There are a total of 4 second working modes, and each second working mode corresponds to 4 split port groups.
[0099] In embodiment 1, when the working mode indicating device indicates the Mth second working mode, the Lth split port indication group in the Mth second working mode is used to indicate the port status of the split ports corresponding to the N(L-1)+Mth original port 103.
[0100] Through the method in Example 1, if M=1, L=1, the first split port indication group in the first second working mode is used to indicate the split port corresponding to the first original port 103; if M=1, L=2, the second split port indication group in the first second working mode is used to indicate the split port corresponding to the fifth original port 103; if M=1, L=3, the third split port indication group in the first second working mode is used to indicate the split port corresponding to the ninth original port 103, and so on.
[0101] The four split port groups in the first second working mode are used to indicate the port states of the split ports corresponding to the first, fifth, ninth and thirteenth original ports 103 .
[0102] The four split port groups in the second second working mode are used to indicate the port states of the split ports corresponding to the 2nd, 6th, 10th and 14th original ports 103 .
[0103] The four split port groups in the third second working mode are used to indicate the port states of the split ports corresponding to the 3rd, 7th, 11th and 15th original ports 103 .
[0104] The four split port groups in the fourth second working mode are used to indicate the port states of the split ports corresponding to the 4th, 8th, 12th and 16th original ports 103 .
[0105] Taking M=1, L=2 as an example, the second split port indication group in the first second working mode is used to indicate the split port corresponding to the fifth original port 103. There are 4 port status indication devices 102 in the second split port indication group, which indicate in sequence.
[0106] The relationship between the original port 103 and the split port can be expressed in the form of x:y, for example, the first split port of the fifth original port 103 is 5:1, where x refers to the number of the real physical interface before splitting, that is, the original port, and y refers to the number of the yth logical split interface of the xth interface after splitting, that is, the split port.
[0107] The corresponding relationship between the split port indication groups in different second working modes and the port status indication devices 102 included therein may be in the form of the Mth second working mode-the Lth split port indication group-the Zth port status indication device 102, which may be: 1-1-1.
[0108] In the above manner, the corresponding relationship between the port status indicating device 102 and the split port can be expressed as: 1-1-1, 1:1. 1-1-2, 1:2. 1-2-1, 5:1, and so on.
[0109] In embodiment 2, when the working mode indicating device indicates the Mth second working mode, the Lth split port indication group in the Mth second working mode is used to indicate the port status of the split port corresponding to the N(M-1)+Lth original port 103.
[0110] According to the above-mentioned embodiment 2, when M=1 and L=2, one original port 103 is indicated; when M=1 and L=2, two original ports 103 are indicated; and when M=1 and L=3, three original ports 103 are indicated.
[0111] Then the four split port groups in the first second working mode are used to indicate the port states of the split ports corresponding to the first, second, third, and fourth original ports 103, and so on.
[0112] Specifically, the internal port status indicating device 102 of the split port indication group and the indicating mode of the split port may correspond to each other in sequence, or a corresponding relationship may be established in advance, which will not be described in detail.
[0113] Figure 2The structure diagram of another port status display device is shown. The port status display device 100 further includes: a working mode switching device 201, which is used to switch the working mode. The port status display device 100 defaults to the first working mode when it is started. The working mode switching device can be a button, a key or a joystick.
[0114] In a possible embodiment, the working mode switching device 201 can control the switching of the working mode through the first sub-device. The first sub-device can be used for switching in a manner that: according to the number of times the first sub-device is touched, the working mode is switched in a forward switching order. The forward switching order is: starting from the first working mode, to the first second working mode, to the Nth second working mode, and then to the first working mode. Figure 3 A schematic diagram of switching working modes is shown, such as Figure 3 The first sub-device is indicated by ①.
[0115] In a possible embodiment, the working mode switching device 201 can control the switching of the working mode through the first sub-device and the second sub-device, and the function of the first sub-device remains unchanged.
[0116] The second sub-device can be used for switching in a manner as follows: according to the number of times the second sub-device is touched, the working mode is switched in a reverse switching order, and the reverse switching order is: starting from the first working mode, to the Nth second working mode, to the first second working mode, and then to the first working mode.
[0117] Figure 4 Another schematic diagram of switching working modes is shown. Figure 4 As shown. Figure 4 In the figure, the first sub-device is represented by ①, and the second sub-device is represented by ②.
[0118] In a possible embodiment, the switching of the working mode can also be controlled by a third sub-device. The third sub-device corresponding to the working mode is touched to switch the port status display device to the corresponding working mode.
[0119] For example, N+1 third sub-devices are provided, and each third sub-device is touched to switch to a corresponding working mode.
[0120] Alternatively, the third sub-device is set by means of a joystick, and the joystick indicates the current working mode in a directional manner.
[0121] Figure 5 A schematic diagram of the structure of a port status display device is shown. Figure 5 As shown, taking N=4 and K=16 as an example, Figure 5Each block in the figure represents an original port, the working mode indicating device and the port status indicating device are both exemplified by indicator lights, and the working mode switching device is exemplified by a single button.
[0122] The port status display device includes 5 working mode indicators, namely working mode indicators P, 1, 2, 3, and 4; the working mode indicator P indicates that the current working mode is the first working mode, and the other 4 working mode indicators correspond to the 4 second working modes respectively.
[0123] Each port status indicator is used to indicate the port status of the corresponding original port in the first working mode. An upper triangle indicates that the port status indicator indicates the original port above the same column, and a lower triangle indicates that the port status indicator indicates the original port below the same column.
[0124] In a possible embodiment, the working mode indicating device can be controlled by a CPLD, and only one working mode indicating device can work at the same time.
[0125] In the above manner, the status of the split port formed after the original port is split will be presented by several adjacent port status indicating devices 102. A working mode indicating device and a switching device are designed so that the interface to be viewed can be actively switched. On-site operation and maintenance personnel can accurately obtain all information on the interface status of the network device (including the split status of the interface, the status of the split interface, whether the split interface is slowed down, etc.) through on-site operation, thereby improving on-site operation and maintenance efficiency.
[0126] The control method of the port status display device in the present disclosure is explained through the following embodiments.
[0127] Figure 6 A flow chart showing a method for controlling a port status display device according to an embodiment of the present disclosure is shown. Figure 6 As shown, the steps include:
[0128] S602: Detect the current working mode.
[0129] S604: If the current working mode is any second working mode, control the corresponding working mode indication device to work.
[0130] S606: Select K / N original ports for splitting, split each of the K / N original ports into N split ports, and obtain K split ports, where N is the maximum number of splits of the original port.
[0131] S608: Acquire and parse the port status information to obtain the port status of the K split ports in any second working mode.
[0132] S610: According to the port status of the K split ports, control the K port status indicating devices to be in a first display state.
[0133] In a possible embodiment, the working mode indicating device and the port status indicating device of the port status display device are controlled to work, so that the operation and maintenance personnel can determine the port status of the corresponding port through the working mode indicating device and the port status indicating device.
[0134] In a possible embodiment, the acquisition of the interface light status, the switching of the working mode indicating device, and the control of the port status indicating device are mainly completed based on the CPLD integrated in the network device.
[0135] The port status information is collected by the CPLD through the data bus by obtaining the port status information in the register of the switching chip or the host memory.
[0136] The CPLD parses the port status information data, for example, it is currently in the second working mode, and the corresponding relationship is: when the working mode indication device indicates the Mth second working mode, the Lth split port indication group in the Mth second working mode is used to indicate the port status of the split port corresponding to the N(L-1)+Mth original port.
[0137] The port status information of the split ports corresponding to the 2nd, 6th, 10th and 14th original ports is obtained, and after parsing, the port status indicating devices in the corresponding split port indicating groups are controlled to display.
[0138] In a possible embodiment, with respect to the flow state and connection state of any split port, a port state indicating device corresponding to any split port is controlled to be in the first display state.
[0139] Embodiment 1: If the port status indicating device includes a first port status indicating sub-device and a second port status indicating sub-device, and the two sub-devices are used to display the corresponding port status, the specific display method may be: the first display state includes a first state, a second state, a first color, a second color and a third color.
[0140] (1) If the flow state of any split port is yes, the first display state of the first port state indication sub-device is controlled to be the first state.
[0141] (2) If the flow state of any split port is none, the first display state of the first port state indication sub-device is controlled to be the second state.
[0142] (3) If the connection status of any split port is a normal connection, the first display status of the second port status indication sub-device is controlled to be a first color.
[0143] (4) If the connection status of any split port is a normal connection and there is a speed reduction, the first display status of the second port status indication sub-device is controlled to be a second color.
[0144] (5) If any of the split ports does not exist, the first display state of the second port state indication sub-device is controlled to be a third color.
[0145] (6) If the connection state of any split port is no connection, the first display state of the second port state indication sub-device is controlled to be the second state.
[0146] In a possible embodiment, the first state may be flashing, the second state may be off, the first color may be green, the second color may be yellow, and the third color may be red.
[0147] The status can be described by the following table.
[0148] Table 1
[0149]
[0150] Table 2
[0151]
[0152] Embodiment 1: If the port status indicating device includes a third port status indicating sub-device, the flow status and the connection status are simultaneously indicated by one sub-device.
[0153] The specific display manner may be: the first display state may include a first color, a second color, a third color, a first state, a second state and a third state.
[0154] (1) If the connection status of any split port is a normal connection and the flow status is none, the first display status of the third port status indication sub-device is controlled to be a first color and a third status.
[0155] (2) If the connection status of any split port is a normal connection and the flow status is available, the first display status of the third port status indication sub-device is controlled to be a first color and a first status.
[0156] (3) If the connection status of any split port is a normal connection with a reduced speed, and the traffic status is none, the first display status of the third port status indication sub-device is controlled to be the second color and the third status.
[0157] (4) If the connection status of any split port is a normal connection with a speed reduction, and the flow status is yes, the first display status of the third port status indication sub-device is controlled to be the second color and the first status.
[0158] (5) If any of the split ports does not exist, the first display state of the third port state indication sub-device is controlled to be a third color and a third state.
[0159] (6) If the connection state of any split port is no connection, the first display state of the third port state indication sub-device is controlled to be the second state.
[0160] In a possible embodiment, the first state may be flashing, the second state may be off, and the third state may be always on. The first color may be green, the second color may be yellow, and the third color may be red.
[0161] The status can be described by the following table.
[0162] Table 3
[0163]
[0164] It should be noted that the split port does not exist, which means that although the maximum split number of the original port A is 4, the original port A actually has only 2 split ports. If the original port A is split into 4, split ports 3 and 4 will not exist. The original port A is actually in the "1 to 2" split mode.
[0165] Figure 7 A flow chart showing another method for controlling a port status display device is shown. Figure 7 As shown, the following steps are included:
[0166] S702: If the current working mode is the first working mode, control the corresponding working mode indication device to work.
[0167] S704: Acquire and parse the port status information to obtain the port status of each original port.
[0168] S706: According to the port status of each original port, control the corresponding port status indication device to be in the second display state.
[0169] In a possible embodiment, since corresponding indication logic exists for the original port and the corresponding port status indication device in the current network device, multiplexing can be selected, and the second display state can be the multiplexing of the original port indication logic in the related art.
[0170] The second display state in the embodiment of the present disclosure is defined and can also be described using two embodiments.
[0171] Embodiment 1: When the original port uses two port status indication sub-devices, namely, a first port status indication sub-device and a second port status indication sub-device to indicate the port status.
[0172] Specifically, it may include: the second display state may include the first color, the second color, the first state, and the second state.
[0173] (1) If the flow state of any original port is yes, the second display state of the first port state indication sub-device is controlled to be the first state.
[0174] (2) If the flow state of any original port is none, the second display state of the first port state indication sub-device is controlled to be the second state.
[0175] (3) If the connection status of any one of the original ports is a normal connection, the second display status of the second port status indication sub-device is controlled to be the first color.
[0176] (4) If the connection status of any original port is a normal connection with a reduced speed, or a split, the second display status of the second port status indication sub-device is controlled to be a second color.
[0177] (5) If the connection state of any original port is disconnected, the second display state of the second port state indication sub-device is controlled to be the second state.
[0178] For example, the various states and colors in the first display state may be: the first state may be flashing, the second state may be off, the first color may be green, and the second color may be yellow. The following two tables are used for illustration.
[0179] Table 4
[0180]
[0181] Table 5
[0182]
[0183] Embodiment 2: If the port status indicating device includes a third port status indicating sub-device, the flow status and the connection status are simultaneously indicated by one sub-device.
[0184] The specific display manner may be: the second display state may include the first color, the second color, the first state, the second state and the third state.
[0185] (1) If the connection status of any original port is a normal connection and the traffic status is none, the second display status of the third port status indication sub-device is controlled to be the first color and the third status.
[0186] (2) If the connection status of any original port is a normal connection and the flow status is available, the second display status of the third port status indication sub-device is controlled to be the first color and the first status.
[0187] (3) If the connection status of any original port is a normal connection with a speed reduction, or a split and the traffic status is none, the second display status of the third port status indication sub-device is controlled to be the second color and the third status.
[0188] (4) If the connection status of any original port is a normal connection with a speed reduction, or a split and the flow status is yes, the first display status of the third port status indication sub-device is controlled to be the second color and the first status.
[0189] (5) If the connection state of any split port is no connection, the first display state of the third port state indication sub-device is controlled to be the second state.
[0190] The port status of the original port is displayed in the above manner.
[0191] The first state may be flashing, the second state may be off, and the third state may be always on. The first color may be green, and the second color may be yellow. The following table provides an example.
[0192] Table 6
[0193]
[0194] By means of the control method, the port status display device is controlled to control the display of the port status indicating device and the working mode indicating device.
[0195] It can be seen from Tables 4, 5, and 6 above that, only by using the indication logic of the original port, it is difficult for the operation and maintenance personnel to determine whether the original port is split or slowed down, or whether both splitting and slowing down exist at the same time, and it is even more difficult to determine the situation of the split port corresponding to the original port.
[0196] In a possible embodiment, in response to a touch operation on a working mode switching device, the current working mode is detected, and based on the current working mode, the target port indicated by the port status indication device in the current working mode is determined, the port status information of the target port is obtained, and based on the port status information of the target port, the display status of the port status indication device is controlled.
[0197] In one possible embodiment, Figure 5 The control logic is explained by taking the structural diagram of the port status display device as an example.
[0198] Figure 8A schematic diagram showing a display state in a first working mode is shown, such as Figure 8 , a schematic diagram showing the front panel of a port status display device using a single-button single-interface light system.
[0199] The working mode indicator P is on, indicating that it is working in the first working mode. The first port status indicator is green, indicating that the original port 1 is connected and has not been split or slowed down. The second to fifth port status indicators are yellow, indicating that the original ports 2-5 are connected and have been split or slowed down. The sixth to sixteenth port status indicators are off, indicating that the sixth to sixteenth original ports are not connected. If the port status indicator is flashing, it means that there is traffic on the interface.
[0200] Further, based on Figure 8 In response to the operation of the touch button, the port status of the split port in the first second working mode is obtained, and the port status display device is controlled to enter Fig. 9 Status shown.
[0201] Fig. 9 A schematic diagram showing a display state in a second working mode is shown, such as Fig. 9 As shown, working mode indicator light 1 is on, indicating that it is currently in the "1st second working mode", that is, the current 16 port status indicators are divided into 4 groups, which can be divided in sequence, with 4 as a group, indicating the port status of the split ports corresponding to the original ports 1, 5, 9, and 13 respectively.
[0202] For ease of understanding, Fig. 9 The corresponding control logic is shown in the middle mark. It can be seen that in the first second working mode, the port status of the split port corresponding to the original port No. 1 is indicated by the front 4 port status indicators. The operation and maintenance personnel can determine the port status of the split port corresponding to the original port No. 1 through the front 4 port status indicators.
[0203] The specific first display state is as follows:
[0204] The 1st to 4th port status indicators, that is, in the 1st split port indicator group, the 4 split ports corresponding to the No. 1 original port are in red, indicating that the split ports 1:1, 1:2, 1:3 and 1:4 do not exist, that is, the No. 1 original port is not in split mode.
[0205] All port status indicators of the 5th to 8th port status indicators, that is, in the second split port indicator group, are green, indicating that split ports 5:1, 5:2, 5:3, and 5:4 all exist and are in connected state, and there is no speed reduction.
[0206] The indicators of all interfaces in the 9th to 12th port status indicators, that is, the 3rd split port indicator group, are red, indicating that split interfaces 9:1, 9:2, 9:3, and 9:4 do not exist either, that is, interface 9 is not in split mode either.
[0207] Among the 13th to 16th port status indicators, the 13th and 14th port status indicators are off, and the 15th and 16th port status indicators are red, indicating that interfaces 13:1 and 13:2 exist but are not connected, and that interfaces 13:3 and 13:4 do not exist, that is, the original port 13 is in the "1-to-2" split mode.
[0208] Further, in response to the operation of the touch button, it is determined to switch the first second working mode to the second second working mode, control the second working mode indicator to work, and obtain the port status of the split ports corresponding to the second, sixth, tenth, and fourteenth original ports in the second second working mode. According to the port status of the split ports corresponding to the second, sixth, tenth, and fourteenth original ports, the port status display device is controlled to enter Fig.10 Status shown.
[0209] The specific first display state is as follows:
[0210] The 1st to 4th port status indicators are yellow, indicating that the 2:1, 2:2, 2:3, and 2:4 split ports exist, are connected, and are experiencing a speed reduction.
[0211] The 5th to 8th port status indicators are off, indicating that the 6:1, 6:2, 6:3, and 6:4 split ports exist but are not connected.
[0212] The 9th to 16th port status indicators are all red, indicating that the original port No. 10 and the original port No. 14 have not been split and the corresponding split ports do not exist.
[0213] The port status display device and control method disclosed in the present invention define the association relationship between the port status indicating device, the original port, and the split port in different working modes, and control the port status indicating device to indicate the port status of the port in different working modes. Only by adding a working mode switching device and a working mode indicating device to the port status display device, the indication logic of all network ports in the network device is improved. It can be clearly understood whether the original port is split, or slowed down, or both split and slowed down exist at the same time. The port status of the split port can also be obtained from the indication logic of the port status indicating device on the port status display device, which solves the problem that the accurate status of the split port cannot be described in the related art.
[0214] Based on the same inventive concept as the above method embodiment, the embodiment of the present application also provides a control device for a port status display device. Fig.11 A schematic structural diagram of a control device for a port status display device provided in an embodiment of the present application is shown.
[0215] The device includes: a detection unit 1101, which is used to detect the current working mode; a first control unit 1102, which is used to control the corresponding working mode indication device to work if the current working mode is any second working mode; a splitting unit 1103, which is used to select K / N original ports for splitting, split each of the K / N original ports into N split ports, and obtain K split ports, where N is the maximum number of splits of the original port; an acquisition unit 1104, which is used to acquire and parse port status information, and obtain the port status of the K split ports in any second working mode; and a second control unit 1105, which is used to control the K port status indication devices to be in the first display state according to the port status of the K split ports.
[0216] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as a system, method or program product. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as a "circuit", "module" or "system".
[0217] Refer to the following Fig.12 The electronic device 1200 according to this embodiment of the present invention is described. Fig.12 The electronic device 1200 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0218] like Fig.12 As shown, the electronic device 1200 is in the form of a general computing device. The components of the electronic device 1200 may include but are not limited to: at least one processing unit 1210, at least one storage unit 1220, and a bus 1230 connecting different system components (including the storage unit 1220 and the processing unit 1210).
[0219] The storage unit stores program codes, which can be executed by the processing unit 1210, so that the processing unit 1210 executes the steps according to various exemplary embodiments of the present invention described in the above “Exemplary Method” section of this specification.
[0220] The storage unit 1220 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 12201 and / or a cache storage unit 12202 , and may further include a read-only storage unit (ROM) 12203 .
[0221] The storage unit 1220 may also include a program / utility 12204 having a set (at least one) of program modules 12205, such program modules 12205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0222] Bus 1230 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0223] The electronic device 1200 may also communicate with one or more external devices 1240 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 1200, and / or communicate with any device that enables the electronic device 1200 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 1250. Furthermore, the electronic device 1200 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 1260. As shown, the network adapter 1260 communicates with other modules of the electronic device 1200 via a bus 1230. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 1200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0224] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0225] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible implementations, various aspects of the present invention may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of the present specification.
[0226] A program product for implementing the above method according to an embodiment of the present invention is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto, and in this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.
[0227] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0228] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0229] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0230] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0231] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0232] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.
[0233] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.
[0234] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.
Claims
1. A port status display device, characterized in that: include: N+1 working mode indicating devices, K port status indicating devices and K original ports; The working mode indicating device is used to indicate a first working mode and N second working modes; When the working mode indicating device indicates the first working mode, each of the port status indicating devices is used to indicate the port status of one of the original ports; When the working mode indicating device indicates any second working mode, K / N original ports are selected for splitting, and each of the K / N original ports is split into N split ports to obtain K split ports; N is the maximum number of splits of the original port; Each of the port status indicating devices is used to indicate the port status of a split port.
2. The port status display device according to claim 1, characterized in that: The port status includes: flow status and connection status; The port status indication device comprises a first port status indication sub-device and a second port status indication sub-device, wherein the first port status indication sub-device is used to indicate the flow status, and the second port status indication sub-device is used to indicate the connection status; Alternatively, a third port status indication sub-device is included; the third port status indication sub-device is used to indicate the port status.
3. The port status display device according to claim 1, characterized in that: Also includes: Split port indication group; When the working mode indicating device indicates any second working mode, N port status indicating devices are used as a split port indication group to obtain K / N split port indication groups, each of which is used to indicate the port status of a split port corresponding to an original port.
4. The port status display device according to claim 3, characterized in that: Also includes: When the working mode indication device indicates the Mth second working mode, the Lth split port indication group in the Mth second working mode is used to indicate the port status of the split ports corresponding to the N(L-1)+Mth original ports.
5. The port status display device according to claim 3, characterized in that: Also includes: When the working mode indication device indicates the Mth second working mode, the Lth split port indication group in the Mth second working mode is used to indicate the port status of the split port corresponding to the N(M-1)+Lth original port.
6. The device according to claim 1, characterized in that The port status display device further comprises: a working mode switching device, and the working mode switching device is used for switching the working mode.
7. The device according to claim 6, characterized in that The port status display device defaults to the first working mode when it is started; The working mode switching device includes a first sub-device; according to the number of times the first sub-device is touched, the working mode is switched in a forward switching order; The forward switching sequence is: starting from the first working mode, to the first second working mode, to the Nth second working mode, and then to the first working mode.
8. The device according to claim 7, characterized in that The working mode switching device further comprises a second sub-device; according to the number of times the second sub-device is touched, the working mode is switched in a reverse switching order; The reverse switching sequence is: starting from the first working mode, to the Nth second working mode, to the first second working mode, and then to the first working mode.
9. The device according to claim 6, characterized in that The working mode switching device includes a third sub-device indicating each working mode, and the third sub-device corresponding to the working mode is touched to switch the port status display device to the corresponding working mode.
10. A method for controlling a port status display device, characterized in that: The method comprises: Detect the current working mode; If the current working mode is any second working mode, controlling the corresponding working mode indicating device to work; Select K / N original ports for splitting, split each of the K / N original ports into N split ports, and obtain K split ports; N is the maximum number of splits of the original port; Acquire and parse the port status information to obtain the port status of the K split ports in any one of the second working modes; According to the port states of the K split ports, the K port state indicating devices are controlled to be in a first display state.
11. The control method according to claim 10, characterized in that: The method further comprises: With respect to the flow state and connection state of any split port, a port state indicating device corresponding to the any split port is controlled to be in a first display state.
12. The control method according to claim 11, characterized in that: The port status indication device comprises a first port status indication sub-device and a second port status indication sub-device; the first display state comprises a first state, a second state, a first color, a second color and a third color; For the flow state and connection state of any split port, controlling the port state indicating device corresponding to any split port to be in the first display state includes: If the flow state of any one of the split ports is yes, controlling the first display state of the first port state indication sub-device to be a first state; If the flow state of any one of the split ports is none, controlling the first display state of the first port state indication sub-device to be a second state; If the connection state of any one of the split ports is a normal connection, controlling the first display state of the second port state indication sub-device to be a first color; If the connection state of any one of the split ports is a normal connection and there is a speed reduction, controlling the first display state of the second port state indication sub-device to be a second color; If any of the split ports does not exist, controlling the first display state of the second port state indication sub-device to be a third color; If the connection state of any one of the split ports is no connection, the first display state of the second port state indication sub-device is controlled to be a second state.
13. The control method according to claim 11, characterized in that: The port status indication device includes a third port status indication sub-device; the first display state includes: a first color, a second color, a third color, a first state, a second state and a third state; For the flow state and connection state of any split port, controlling the port state indicating device corresponding to any split port to be in the first display state includes: If the connection state of any one of the split ports is a normal connection and the flow state is none, controlling the first display state of the third port state indication sub-device to be a first color and a third state; If the connection state of any one of the split ports is a normal connection and the flow state is available, controlling the first display state of the third port state indication sub-device to be a first color and a first state; If the connection state of any one of the split ports is a normal connection with a speed reduction, and the flow state is none, then controlling the first display state of the third port state indication sub-device to be a second color and a third state; If the connection state of any one of the split ports is a normal connection with a speed reduction, and the flow state is yes, then control the first display state of the third port state indication sub-device to be a second color and a first state; If any of the split ports does not exist, controlling the first display state of the third port state indication sub-device to be a third color and a third state; If the connection state of any one of the split ports is no connection, the first display state of the third port state indication sub-device is controlled to be the second state.
14. The control method according to claim 10, characterized in that: The method further comprises: If the current working mode is the first working mode, controlling the corresponding working mode indicating device to work; Acquire and parse the port status information to obtain the port status of each of the original ports; According to the port status of each of the original ports, the corresponding port status indicating device is controlled to be in the second display status.
15. A control device for a port status display device, characterized in that: include: A detection unit, used for detecting a current working mode; A first control unit, configured to control the corresponding working mode indication device to work if the current working mode is any second working mode; A splitting unit, used for selecting K / N original ports for splitting, splitting each original port of the K / N original ports into N split ports, and obtaining K split ports; N is a maximum number of splits of the original port; An acquisition unit, configured to acquire and parse the port status information to obtain the port status of the K split ports in any one of the second working modes; The second control unit is used to control the K port status indicating devices to be in a first display state according to the port states of the K split ports.
16. An electronic device, characterized in that: include: processor; and a memory for storing executable instructions for the processor; The processor is configured to perform the method of any one of claims 10 to 14 by executing the executable instructions.
17. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 10 to 14 is implemented.
18. A computer program product comprising: A computer program or instruction, characterized in that when the computer program or instruction is executed by a processor, the method described in any one of claims 10 to 14 is implemented.
