CN109462639B - Port expansion equipment management method and device - Google Patents

Port expansion equipment management method and device Download PDF

Info

Publication number
CN109462639B
CN109462639B CN201811260266.4A CN201811260266A CN109462639B CN 109462639 B CN109462639 B CN 109462639B CN 201811260266 A CN201811260266 A CN 201811260266A CN 109462639 B CN109462639 B CN 109462639B
Authority
CN
China
Prior art keywords
dependent
port expansion
node
dependent node
target port
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811260266.4A
Other languages
Chinese (zh)
Other versions
CN109462639A (en
Inventor
徐志辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd Hefei Branch
Original Assignee
New H3C Technologies Co Ltd Hefei Branch
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd Hefei Branch filed Critical New H3C Technologies Co Ltd Hefei Branch
Priority to CN201811260266.4A priority Critical patent/CN109462639B/en
Publication of CN109462639A publication Critical patent/CN109462639A/en
Application granted granted Critical
Publication of CN109462639B publication Critical patent/CN109462639B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/54Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users

Abstract

The application provides a method and a device for managing port expansion equipment, which are applied to control bridge equipment connected with a plurality of port expansion equipment, wherein the method comprises the following steps: for a target port expansion device, selecting a plurality of board cards for the target port expansion device from the board cards capable of performing protocol message processing of the control bridge device, and taking each selected board card as a dependent node of the target port expansion device; and selecting an effective dependent node for the target port expansion equipment in all the dependent nodes according to the current load conditions of all the dependent nodes, and processing a protocol message interacted with the target port expansion equipment through the effective dependent node. Therefore, the protocol message processing pressure is dispersed to a plurality of board cards of the control bridge equipment, the influence of the performance bottleneck of a single board card on the whole communication system is reduced, and the influence range of board card faults can be reduced.

Description

Port expansion equipment management method and device
Technical Field
The present application relates to the field of network communication technologies, and in particular, to a method and an apparatus for managing a port expansion device.
Background
An Intelligent Resilient Framework (IRF) technology is a technology established on an 802.1BR standard protocol, and can virtualize a plurality of Port Extensions (PEX) into a remote service board of a Control Bridge (CB) device, and the control Bridge device interacts and unifies the control of the Port extensions through a protocol message between the control Bridge device and the Port extensions.
For a port expansion device, a plurality of dependent Nodes (hereinafter referred to as RNs) are configured on a control bridge device, one dependent Node is used as an Active dependent Node of PEX (hereinafter referred to as a-RN) for processing protocol packet interaction with the port expansion device, and after receiving a protocol packet sent by the port expansion device, other non-Active dependent Nodes send the protocol packet to the Active dependent Node for processing through an internal communication connection of the control bridge device.
In the prior art, all the main control boards of the control bridge device are used as dependent nodes for all the port expansion devices, and the main control board of all the main control boards is used as an effective dependent node for all the port expansion devices, and after receiving the protocol packet of the port expansion device, other standby main control boards or interface boards forward the protocol packet to the main control board for processing. This makes the main control board need to bear huge data processing, which is easy to affect the working performance of the whole system because of the single-point performance bottleneck of the main control board, and when the main control board fails, it will affect the normal operation of all the current port expansion devices.
Disclosure of Invention
In a first aspect, the present application provides a port expansion device management method, which is applied to a control bridge device connected to a plurality of port expansion devices, and the method includes:
for a target port expansion device, selecting a plurality of board cards for the target port expansion device from the board cards capable of performing protocol message processing of the control bridge device, and taking each selected board card as a dependent node of the target port expansion device;
and selecting an effective dependent node for the target port expansion equipment in all the dependent nodes according to the current load conditions of all the dependent nodes, and processing the protocol message interacted with the target port expansion equipment through the effective dependent node.
Optionally, in the above method, the board card of the control bridge device includes a main control board and an interface board;
the step of selecting a plurality of boards for the target port expansion device from the boards of the control bridge device capable of performing protocol message processing includes:
and selecting the interface boards where the member ports of the aggregation ports corresponding to the plurality of main control boards of the control bridge device and the target port expansion device are located as dependent nodes of the target port expansion device.
Optionally, in the foregoing method, the step of selecting, in all dependent nodes, an effective dependent node for the destination port expansion device according to current load conditions of all dependent nodes includes:
screening alternative dependent nodes from all dependent nodes according to the current load condition of each dependent node;
and selecting one alternative dependent node as an effective dependent node according to the communication performance of the screened alternative dependent nodes.
Optionally, in the above method, the current load condition of each dependent node includes the number of validated port expansion devices of the dependent node, where the number of validated port expansion devices of each dependent node is the number of port expansion devices of the dependent node that takes the dependent node as a validated dependent node;
the method comprises the following steps of screening alternative dependent nodes from all dependent nodes according to the current load condition of each dependent node, wherein the steps comprise:
acquiring the number of enabled port expansion devices of each dependent node;
and taking the dependent node with the number of the validated port expansion devices not larger than the maximum controllable device number of the corresponding dependent node as the alternative dependent node, wherein the maximum controllable device number is the maximum controllable device number which can be controlled by the dependent node and is preset according to the performance of the dependent node.
Optionally, in the method, the step of selecting one candidate dependent node as an effective dependent node according to the communication performance of the screened candidate dependent node includes:
acquiring the total bandwidth of member ports of an aggregation port corresponding to the target port expansion equipment on each alternative dependent node;
and taking the candidate dependent node with the maximum total bandwidth as the effective dependent node of the target port expansion device.
Optionally, in the above method, the method further comprises:
when the effective dependent node is detected to be pulled out or has a fault, the step of selecting the effective dependent node for the target port expansion equipment in all the dependent nodes according to the current load conditions of all the dependent nodes is executed again; or
And when detecting that the member port of the aggregation port corresponding to the port expansion device changes, re-executing the step of selecting a plurality of boards for the target port expansion device from the boards capable of performing protocol message processing of the control bridge device.
Optionally, in the above method, the method further comprises:
after a dependent node is selected for the target port expansion equipment, the corresponding relation between the target port expansion equipment and the dependent node of the target port expansion equipment is notified to each main control board and each interface board;
after selecting the effective dependent node for the target port expansion device, notifying the corresponding relation between the target port expansion device and the effective dependent node to each main control board and each interface board.
In a second aspect, the present application provides a port expansion device management apparatus, which is applied to a control bridge device connected to a plurality of port expansion devices, and the apparatus includes:
a node determination module, configured to select, for a target port expansion device, multiple board cards for the target port expansion device from the board cards of the control bridge device that can perform protocol packet processing, and use each selected board card as a dependent node of the target port expansion device;
and the node election module is used for selecting an effective dependent node for the target port expansion equipment in all dependent nodes according to the current load conditions of all dependent nodes, and processing the protocol message interacted with the target port expansion equipment through the effective dependent node.
Optionally, the board card of the control bridge device includes a main control board and an interface board; the node determination module is specifically configured to select, as a dependent node of the target port expansion device, an interface board on which member ports of aggregation ports corresponding to the plurality of main control boards of the control bridge device and the target port expansion device are located.
Optionally, the node election module is specifically configured to screen alternative dependent nodes from all dependent nodes according to a current load condition of each dependent node; and selecting one alternative dependent node as an effective dependent node according to the communication performance of the screened alternative dependent nodes.
Optionally, the current load condition of each dependent node includes the number of validated port expansion devices of the dependent node, and the number of validated port expansion devices of each dependent node is the number of port expansion devices of the dependent node that takes the dependent node as a validated dependent node;
the node election module is specifically configured to acquire the number of enabled port expansion devices of each dependent node; and taking the dependent node with the number of the validated port expansion devices not greater than the maximum controllable device number of the corresponding dependent node as an alternative dependent node, wherein the maximum controllable device number is the maximum controllable device number which can be controlled by the dependent node and is preset according to the performance of the dependent node.
Optionally, the node election module is specifically configured to obtain a total bandwidth of member ports of an aggregation port corresponding to the target port expansion device on each candidate dependent node; and taking the alternative dependent node with the maximum total bandwidth as the effective dependent node of the target port expansion device.
Optionally, the apparatus further comprises:
the detection module is used for triggering the node election module to execute again when detecting that the effective dependent node is pulled out or has a fault: selecting an effective dependent node for the target port expansion equipment in all dependent nodes according to the current load conditions of all dependent nodes; alternatively, the first and second electrodes may be,
when detecting that the member port of the aggregation port corresponding to the port expansion device changes, triggering the node determination module to execute again: and selecting a plurality of boards for the target port expansion equipment from the boards capable of processing the protocol messages of the control bridge equipment.
Optionally, the apparatus further comprises:
the notification module is used for notifying the corresponding relation between the target port expansion equipment and the dependent node of the target port expansion equipment to each main control board and each interface board after the dependent node is selected for the target port expansion equipment;
after selecting the effective dependent node for the target port expansion device, notifying the corresponding relation between the target port expansion device and the effective dependent node to each main control board and each interface board.
Compared with the prior art, the method has the following beneficial effects:
according to the port expansion equipment management method and device, the effective dependent nodes are elected independently aiming at each port expansion equipment, so that the effective dependent nodes corresponding to different port expansion equipment can be distributed on different board cards of the control bridge equipment. Therefore, the protocol message processing pressure is dispersed to a plurality of board cards of the control bridge equipment, the influence of the performance bottleneck of a single board card on the whole communication system is reduced, and the influence range of board card faults can be reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic view of an application scenario of a control bridge device according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a control bridge device provided in an embodiment of the present application;
fig. 3 is a schematic flowchart of a port expansion device management method according to an embodiment of the present application;
fig. 4 is a functional module schematic diagram of a port expansion device management apparatus according to an embodiment of the present application.
Icon: 10-control bridge device; 100-a main control board; 200-an interface board; 300-exchange network board; 110-port expansion device management means; 111-node determination module; 112-node election module; 20-port expansion device; 30-a host; 40-external network.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present application, it is further noted that, unless expressly stated or limited otherwise, the terms "disposed," "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of a control bridge device 10 provided in this embodiment, the control bridge device 10 may be connected to a plurality of port expansion devices 20, and the port expansion devices 20 may be virtualized into a remote service board of the control bridge device 10 after performing necessary configuration. The port expansion device 20 may be connected to the user-side host 30, and the port expansion device 20 and the control bridge device 10 together function as an access layer device to implement communication between the user-side hosts 30 or communication between the user-side hosts 30 and the external network 40.
Referring to fig. 2, the control bridge device 10 includes a plurality of boards, where the boards may include a plurality of main control boards 100 (including an active main control board and a standby main control board) and a plurality of interface boards 200, and the main control boards 100 or the interface boards 200 may be communicatively connected to each other through a group of switch boards 300. A master control board 100 or an interface board 200 may include a plurality of ports for connecting to port expansion devices 20. The main control board 100 or the interface board 200 may be provided with a processing unit (e.g., a CPU) for processing the protocol packet.
The port expansion devices 20 may be connected to the control bridge device 10 through aggregation ports, and member ports of an aggregation port corresponding to one port expansion device 20 may be distributed on different main control boards 100 or interface boards 200.
In this embodiment, a method for managing a port expansion device 20 applied to a control bridge device 10 shown in fig. 2 is provided, where different port expansion devices 20 relatively independently perform selection of a dependent node and selection of an effective dependent node, so that different port expansion devices 20 may use different boards of the control bridge device 10 as effective dependent nodes, thereby sharing processing of a protocol packet on the control bridge device 10 to the different boards. Referring to fig. 2, the steps of the method will be described in detail.
Step S110 is to select, for a target port expansion device, a plurality of boards among the boards of the control bridge device 10 that can perform protocol packet processing for the target port expansion device, and use each selected board as a dependent node of the target port expansion device.
Step S120, according to the current load conditions of all dependent nodes, selecting an effective dependent node for the target port expansion device among all dependent nodes, and processing a protocol packet interacted with the target port expansion device through the effective dependent node.
In this embodiment, the current active main control board of the control bridge device 10 may select, as the dependent node of the target port expansion device, a plurality of boards that can perform protocol packet processing for the target port expansion device, and select an effective dependent node for the target port expansion device from the selected dependent nodes.
In step S120, when receiving the protocol packet of the target port expansion device, the effective dependent node of the target port expansion device may directly process the protocol packet; when receiving the protocol packet of the destination port expansion device, the other non-effective dependent nodes may forward the protocol packet to the effective dependent node of the destination port expansion device for processing through the internal communication connection of the control bridge device 10.
Optionally, since the main control board 100 can generally perform protocol packet interaction with the port expansion device 20 through each interface board 200 or through a port of the main control board 100 directly connected to the port expansion device 20, in a specific implementation manner of this embodiment, all the main control boards 100 may be selected as dependent nodes of the target port expansion device in step S110.
Then, in step S120, an effective dependent node is selected for the destination port expansion device according to the load conditions of all dependent nodes. Thus, for different port expansion devices 20, the processing of the protocol packets is not concentrated on the current main control board, but is distributed to the main control board and each standby main control board, so that the data processing pressure of the current main control board is reduced, and when the current main control board fails, the failure influence range can be reduced.
Optionally, through research by the inventors, in the prior art, when receiving a protocol packet sent by the port expansion device 20, the interface board 200 forwards the protocol packet to the active main control board through the internal communication connection between the boards of the control bridge device 10, which increases forwarding delay and occupies a forwarding bandwidth resource, and the interface board 200 itself may have a certain protocol packet processing capability. Therefore, in another implementation manner of this embodiment, in step S110, the interface board 200 where the member port of the aggregation port corresponding to the target port expansion device is located may be selected as the dependent node of the target port expansion device.
Then, in step S120, an effective dependent node is selected for the destination port expansion device according to the load conditions of all dependent nodes. Thus, the effective dependent node selected for the target port expansion device is certainly the interface board 200 that directly performs protocol packet interaction with the target port expansion device, which can reduce the amount of forwarding the protocol packet between the control bridge devices 10 and the board cards for the target port expansion device, and simultaneously share the processing pressure of the protocol packet to each interface board 200, thereby reducing the data processing pressure and the fault influence range of the current main control board.
Optionally, since communication can be performed between the interface boards 200 of the control bridge device 10 or between the interface board 200 and the main control board 100 through the switching network board 300 group, and the main control board 100 may also have a communication port directly connected to the port expansion device 20. Therefore, in another specific implementation of this embodiment, in step S110, the interface board 200 where the plurality of main control boards 100 controlling the bridge device 10 and the member ports of the aggregation port corresponding to the destination port expansion device are located may be selected as a plurality of dependent nodes of the destination port expansion device.
Then, in step S120, an effective dependent node is selected for the destination port expansion device according to the load conditions of all dependent nodes. Thus, the processing pressure of the protocol message is divided into all the main control boards 100 and the interface board 200, and the data processing pressure and the fault influence range of the current main control board are reduced.
Optionally, in order to enable each board card of the control bridge device 10 to know the configuration condition of the dependent node of the target port expansion device or to enable each board card of the control bridge device 10 to perform corresponding processing in time when the aggregated member port corresponding to the target port expansion device changes, in this embodiment, the control bridge device 10 may notify the corresponding relationship between the target port expansion device and the dependent node of the target port expansion device to each main control board 100 and each interface board 200 after selecting the dependent node for the target port expansion device.
Optionally, in a specific implementation manner of this embodiment, in step S120, according to a current load condition of each dependent node in all the dependent nodes, a dependent node with the lightest current load may be selected as an effective dependent node of the destination port expansion device.
For example, the control bridge device 10 may obtain the current CPU occupancy of each dependent node, and select the dependent node with the minimum CPU occupancy as the effective dependent node of the target port expansion device. In this way, valid dependent nodes can be uniformly selected from the boards controlling the bridge device 10 for different port expansion devices 20.
Optionally, in another specific implementation manner of this embodiment, in step S120, an alternative dependent node may be screened from all dependent nodes according to the current load condition of each dependent node, and then one alternative dependent node may be selected as an effective dependent node according to the communication performance of the screened alternative dependent node.
For example, the current load condition of the dependent node may include the number of validated port expansion devices of the dependent node, which is the number of port expansion devices 20 that have the dependent node as the validated dependent node. When the larger the amount of the valid port expansion data of a dependent node is, the more the dependent node needs to process the protocol packet, the larger the load of the dependent node is. The number of enabled port expansion devices depending on the node is a parameter which is easy to record and obtain, and the load condition can be quantized through a simple processing logic.
The control bridge device 10 may obtain the number of validated port expansion devices of each dependent node, and then take the dependent node whose number of validated port expansion devices is not greater than the maximum controllable device number of the corresponding dependent node as an alternative dependent node, where the maximum controllable device number is the maximum number of validated port expansion devices that can be controlled by the dependent node, which is preset according to the performance of the dependent node. In this way, it can be ensured that the screened candidate dependent node is a dependent node that has the ability to manage the new port expansion device 20.
Then, the control bridge device 10 may obtain the total bandwidth of the member ports of the aggregation port corresponding to the target port expansion device on each candidate dependent node, and use the candidate dependent node with the maximum total bandwidth as the effective dependent node of the target port expansion device.
The larger the total bandwidth of the member ports of the aggregation port corresponding to the target port expansion device on the candidate dependent node is, the higher the probability that the protocol packet is sent to the candidate dependent node after being selected by the hash is, that is, the candidate dependent node may receive more protocol packets sent by the target port expansion device. Therefore, the candidate dependent node with the maximum total bandwidth corresponding to the target port expansion device is used as the effective dependent node of the target port expansion device, so that the protocol packet forwarding between the boards on the control bridge device 10 can be reduced, and the data forwarding bandwidth resource inside the control bridge device 10 can be saved.
Optionally, in this embodiment, after selecting an effective dependent node for the target port expansion device, the control bridge device 10 adds 1 to the number of effective port expansion devices of the effective dependent node.
Optionally, in order to enable each non-effective dependent node of the target port expansion device to forward the received protocol packet to an effective dependent node, in this embodiment, the control bridge device 10 may notify the corresponding relationship between the target port expansion device and the effective dependent node to each main control board 100 and each interface board 200 after selecting the effective dependent node for the target port expansion device.
Alternatively, if a certain dependent node fails, the port expansion device 20 that takes the dependent node as the valid dependent node may have a communication exception caused by the failure of the protocol packet. Therefore, in this embodiment, the controlling bridge device 10 may re-execute the step of selecting the valid dependent node for the target port expansion device among all the dependent nodes according to the current load conditions of all the dependent nodes when detecting that the valid dependent node is pulled out or has a fault. That is, upon detecting a failed or unplugged dependent node, the controlling bridge device 10 may re-execute step S120 for the port expansion device 20 that has the failed or unplugged dependent node as the active dependent node.
Optionally, if a member port of an aggregation port corresponding to a certain port expansion device 20 changes (for example, a member port is added or deleted), a receiving distribution condition of a protocol packet sent by the port expansion device 20 on each board card on the control bridge device 10 may be affected, so as to affect a load condition of each board card of the control bridge device 10. Therefore, in this embodiment, the control bridge device 10 may perform step S110 and step S120 again to determine the valid dependent node again for the port expansion device when detecting that the member port of the aggregation port corresponding to the port expansion device 20 changes.
Referring to fig. 4, the present embodiment further provides a port expansion device management apparatus 110, which is a control bridge device 10 connected to a plurality of port expansion devices 20, and includes a node determining module 111 and a node electing module 112.
The node determining module 111 is configured to, for a target port expansion device, select a plurality of boards for the target port expansion device from the boards capable of performing protocol packet processing of the control bridge device 10, and use each selected board as a dependent node of the target port device.
In this embodiment, the node determining module 111 may be configured to execute step S110 shown in fig. 3, and reference may be made to the description of step S110 for a detailed description of the node determining module 111.
And the node election module 112 is configured to select an effective dependent node for the destination port expansion device among all dependent nodes according to current load conditions of all dependent nodes, and process a protocol packet interacted with the destination port expansion device through the effective dependent node.
In this embodiment, the node election module 112 may be configured to execute step S120 shown in fig. 3, and the detailed description about the node election module 112 may refer to the description about step S120.
Optionally, in this embodiment, the board card of the control bridge device 10 includes a main control board 100 and an interface board 200; the node determining module 111 is specifically configured to select, as a dependent node of the target port expansion device, an interface board 200 on which member ports of aggregation ports corresponding to the plurality of main control boards 100 of the control bridge device 10 and the target port expansion device are located.
Optionally, in this embodiment, the node election module 112 is specifically configured to, according to the current load condition of each dependent node, screen alternative dependent nodes from all dependent nodes; and selecting one alternative dependent node as an effective dependent node according to the communication performance of the screened alternative dependent nodes.
Optionally, in this embodiment, the current load condition of the dependent node includes the number of validated port expansion devices of the dependent node, and the number of validated port expansion devices of the dependent node is the number of port expansion devices 20 that take the dependent node as a validated dependent node.
The node election module 112 is specifically configured to obtain the number of enabled port expansion devices of each dependent node; and taking the dependent node with the number of the validated port expansion devices not greater than the maximum controllable device number of the corresponding dependent node as an alternative dependent node, wherein the maximum controllable device number is the maximum number of the validated port expansion devices which can be controlled by the dependent node and is preset according to the performance of the dependent node.
Optionally, in this embodiment, the node election module 112 is specifically configured to obtain a total bandwidth of member ports of an aggregation port corresponding to the target port expansion device on each candidate dependent node; and taking the alternative dependent node with the maximum total bandwidth as the effective dependent node of the target port expansion device.
Optionally, the apparatus further comprises:
a detection module (not shown in fig. 4) for triggering the node election module to re-execute when detecting that the effective dependent node is pulled out or has a fault: selecting an effective dependent node for the target port expansion equipment in all dependent nodes according to the current load conditions of all dependent nodes; alternatively, the first and second electrodes may be,
when detecting that the member port of the aggregation port corresponding to the port expansion device changes, triggering the node determination module to execute again: and selecting a plurality of boards for the target port expansion equipment from the boards capable of processing the protocol messages of the control bridge equipment.
Optionally, the apparatus further comprises:
a notification module (not shown in fig. 4) configured to notify, after selecting a dependent node for the target port expansion device, a corresponding relationship between the target port expansion device and the dependent node of the target port expansion device to each main control board and each interface board;
after selecting the effective dependent node for the target port expansion device, notifying the corresponding relation between the target port expansion device and the effective dependent node to each main control board and each interface board.
To sum up, according to the port expansion device management method and apparatus provided by the present application, the effective dependent nodes are individually elected for each port expansion device, so that the effective dependent nodes corresponding to different port expansion devices can be distributed on different boards of the control bridge device. Therefore, the protocol message processing pressure is dispersed to a plurality of board cards of the control bridge equipment, the influence of the performance bottleneck of a single board card on the whole communication system is reduced, and the influence range of board card faults can be reduced.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. A port expansion device management method is applied to a control bridge device connected with a plurality of port expansion devices, and comprises the following steps:
for a target port expansion device, selecting a plurality of board cards for the target port expansion device from the board cards capable of performing protocol message processing of the control bridge device, and taking each selected board card as a dependent node of the target port expansion device;
selecting an effective dependent node for the target port expansion equipment in all dependent nodes according to the current load conditions of all dependent nodes, and processing a protocol message interacted with the target port expansion equipment through the effective dependent node;
the board card of the control bridge equipment comprises a main control board and an interface board;
the step of selecting a plurality of boards for the target port expansion device from the boards of the control bridge device capable of performing protocol message processing includes:
and selecting the interface boards where the member ports of the aggregation ports corresponding to the plurality of main control boards of the control bridge device and the target port expansion device are located as dependent nodes of the target port expansion device.
2. The method of claim 1, wherein the step of selecting the dependent node in effect for the destination port expansion device from all dependent nodes according to the current load conditions of all dependent nodes comprises:
screening alternative dependent nodes from all dependent nodes according to the current load condition of each dependent node;
and selecting one alternative dependent node as an effective dependent node according to the communication performance of the screened alternative dependent nodes.
3. The method of claim 2, wherein the current load condition of each dependent node comprises a number of validated port expansion devices of the dependent node, and the number of validated port expansion devices of each dependent node is a number of port expansion devices of the dependent node that takes the dependent node as the validated dependent node;
the method comprises the following steps of screening alternative dependent nodes from all dependent nodes according to the current load condition of each dependent node, wherein the steps comprise:
acquiring the number of enabled port expansion devices of each dependent node;
and taking the dependent node with the number of the validated port expansion devices not larger than the maximum controllable device number of the corresponding dependent node as the alternative dependent node, wherein the maximum controllable device number is the maximum controllable device number which can be controlled by the dependent node and is preset according to the performance of the dependent node.
4. The method according to claim 2, wherein the step of selecting one of the candidate dependent nodes as the effective dependent node according to the communication performance of the screened candidate dependent nodes comprises:
acquiring the total bandwidth of member ports of an aggregation port corresponding to the target port expansion equipment on each alternative dependent node;
and taking the candidate dependent node with the maximum total bandwidth as the effective dependent node of the target port expansion device.
5. The method of claim 1, further comprising:
when the effective dependent node is detected to be pulled out or has a fault, the step of selecting the effective dependent node for the target port expansion equipment in all the dependent nodes according to the current load conditions of all the dependent nodes is executed again; alternatively, the first and second electrodes may be,
and when detecting that the member port of the aggregation port corresponding to the port expansion device changes, re-executing the step of selecting a plurality of boards for the target port expansion device from the boards capable of performing protocol message processing of the control bridge device.
6. The method of claim 1, further comprising:
after a dependent node is selected for the target port expansion equipment, the corresponding relation between the target port expansion equipment and the dependent node of the target port expansion equipment is notified to each main control board and each interface board;
after selecting the effective dependent node for the target port expansion device, notifying the corresponding relation between the target port expansion device and the effective dependent node to each main control board and each interface board.
7. A port expansion device management apparatus, applied to a control bridge device connected to a plurality of port expansion devices, the apparatus comprising:
a node determination module, configured to select, for a target port expansion device, multiple board cards for the target port expansion device from the board cards of the control bridge device that can perform protocol packet processing, and use each selected board card as a dependent node of the target port expansion device;
a node election module, configured to determine, in all dependent nodes, an effective dependent node for the target port expansion device according to current load conditions of all dependent nodes, and process, through the effective dependent node, a protocol packet exchanged with the target port expansion device;
the board card of the control bridge equipment comprises a main control board and an interface board;
the node determination module is specifically configured to select, as a dependent node of the target port expansion device, an interface board on which member ports of aggregation ports corresponding to the plurality of main control boards of the control bridge device and the target port expansion device are located.
8. The apparatus according to claim 7, wherein the node election module is specifically configured to screen out alternative dependent nodes from all dependent nodes according to a current load condition of each dependent node; and selecting one alternative dependent node as an effective dependent node according to the communication performance of the screened alternative dependent nodes.
9. The apparatus of claim 8, wherein the current load condition of each dependent node comprises a number of validated port expansion devices of the dependent node, and wherein the number of validated port expansion devices of each dependent node is a number of port expansion devices of the dependent node as validated dependent node;
the node election module is specifically configured to acquire the number of enabled port expansion devices of each dependent node; and taking the dependent node with the number of the validated port expansion devices not greater than the maximum controllable device number of the corresponding dependent node as an alternative dependent node, wherein the maximum controllable device number is the maximum controllable device number which can be controlled by the dependent node and is preset according to the performance of the dependent node.
10. The apparatus according to claim 8, wherein the node election module is specifically configured to obtain a total bandwidth of member ports of an aggregation port corresponding to the target port expansion device on each candidate dependent node; and taking the alternative dependent node with the maximum total bandwidth as the effective dependent node of the target port expansion device.
11. The apparatus of claim 7, further comprising:
the detection module is used for triggering the node election module to execute again when detecting that the effective dependent node is pulled out or has a fault: selecting an effective dependent node for the target port expansion equipment in all dependent nodes according to the current load conditions of all dependent nodes; alternatively, the first and second electrodes may be,
when detecting that the member port of the aggregation port corresponding to the port expansion device changes, triggering the node determination module to execute again: and selecting a plurality of boards for the target port expansion equipment from the boards capable of processing the protocol messages of the control bridge equipment.
12. The apparatus of claim 7, further comprising:
the notification module is used for notifying the corresponding relation between the target port expansion equipment and the dependent node of the target port expansion equipment to each main control board and each interface board after the dependent node is selected for the target port expansion equipment;
after selecting the effective dependent node for the target port expansion device, notifying the corresponding relation between the target port expansion device and the effective dependent node to each main control board and each interface board.
CN201811260266.4A 2018-10-26 2018-10-26 Port expansion equipment management method and device Active CN109462639B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811260266.4A CN109462639B (en) 2018-10-26 2018-10-26 Port expansion equipment management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811260266.4A CN109462639B (en) 2018-10-26 2018-10-26 Port expansion equipment management method and device

Publications (2)

Publication Number Publication Date
CN109462639A CN109462639A (en) 2019-03-12
CN109462639B true CN109462639B (en) 2021-09-07

Family

ID=65608597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811260266.4A Active CN109462639B (en) 2018-10-26 2018-10-26 Port expansion equipment management method and device

Country Status (1)

Country Link
CN (1) CN109462639B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113506397A (en) * 2021-07-12 2021-10-15 合肥优恩物联网科技有限公司 5G network entrance guard's machine equipment based on high in clouds operation

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103532869A (en) * 2012-07-03 2014-01-22 杭州华三通信技术有限公司 Data flow sharing method and equipment
CN104780067A (en) * 2015-04-02 2015-07-15 杭州华三通信技术有限公司 Method and device for rebooting PE (port extender)
CN106209633A (en) * 2016-07-27 2016-12-07 杭州华三通信技术有限公司 A kind of message forwarding method and device
CN108696460A (en) * 2018-05-29 2018-10-23 新华三技术有限公司 A kind of message forwarding method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104104570B (en) * 2013-04-07 2018-09-04 新华三技术有限公司 Aggregation processing method in IRF systems and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103532869A (en) * 2012-07-03 2014-01-22 杭州华三通信技术有限公司 Data flow sharing method and equipment
CN104780067A (en) * 2015-04-02 2015-07-15 杭州华三通信技术有限公司 Method and device for rebooting PE (port extender)
CN106209633A (en) * 2016-07-27 2016-12-07 杭州华三通信技术有限公司 A kind of message forwarding method and device
CN108696460A (en) * 2018-05-29 2018-10-23 新华三技术有限公司 A kind of message forwarding method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
VCF纵向虚拟化技术架构;刘刀桂,祁正林;《H3C》;20131231;全文 *
网络设备纵向融合架构系统的设计与实现;张弘驰;《中国优秀硕士学位论文全文数据库》;20141115;全文 *

Also Published As

Publication number Publication date
CN109462639A (en) 2019-03-12

Similar Documents

Publication Publication Date Title
CN110113441B (en) Computer equipment, system and method for realizing load balance
US10609159B2 (en) Providing higher workload resiliency in clustered systems based on health heuristics
EP1697843B1 (en) System and method for managing protocol network failures in a cluster system
US10291648B2 (en) System for distributing virtual entity behavior profiling in cloud deployments
US10241854B2 (en) Correlation-based monitoring and events for a unified storage manager
EP2656212B1 (en) Activate attribute for service profiles in unified computing system
US10318392B2 (en) Management system for virtual machine failure detection and recovery
EP3526931B1 (en) Computer system and method for dynamically adapting a software-defined network
US20130163415A1 (en) Apparatus and method for distributing a load among a plurality of communication devices
US20150085642A1 (en) Control target flow specifying method and control target flow specifying device
US8131871B2 (en) Method and system for the automatic reroute of data over a local area network
CN113709220B (en) High-availability implementation method and system of virtual load equalizer and electronic equipment
US9674061B2 (en) Management system, management apparatus and management method
CN109462639B (en) Port expansion equipment management method and device
CN107534575B (en) Monitoring method and monitoring device in network virtualization environment and network node
CN108366087B (en) ISCSI service realization method and device based on distributed file system
CN106790610B (en) Cloud system message distribution method, device and system
CN113326100A (en) Cluster management method, device and equipment and computer storage medium
US10887206B2 (en) Interconnect port link state monitoring utilizing unstable link state analysis
US10516625B2 (en) Network entities on ring networks
US20130308442A1 (en) Management device and management method
CN112131201B (en) Method, system, equipment and medium for high availability of network additional storage
US10491421B2 (en) Ring protection network module
CN107547257B (en) Server cluster implementation method and device
CN112929197A (en) Network communication method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant