CN109088752B - Dynamic configuration method for internal control link port and related device - Google Patents

Dynamic configuration method for internal control link port and related device Download PDF

Info

Publication number
CN109088752B
CN109088752B CN201810828948.4A CN201810828948A CN109088752B CN 109088752 B CN109088752 B CN 109088752B CN 201810828948 A CN201810828948 A CN 201810828948A CN 109088752 B CN109088752 B CN 109088752B
Authority
CN
China
Prior art keywords
distributed aggregation
local area
virtual local
area network
list
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
CN201810828948.4A
Other languages
Chinese (zh)
Other versions
CN109088752A (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 Information Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201810828948.4A priority Critical patent/CN109088752B/en
Publication of CN109088752A publication Critical patent/CN109088752A/en
Application granted granted Critical
Publication of CN109088752B publication Critical patent/CN109088752B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to the technical field of distributed link aggregation, and provides a dynamic configuration method for an internal control link port and a related device, wherein the method comprises the following steps: receiving a second list sent by a second distributed aggregation device; determining a virtual local area network to be loaded according to the second list and the first list; and loading the virtual local area network to be loaded to an internal control link port of the first distributed aggregation equipment. The invention automatically sets the virtual local area networks which are allowed to pass through by the distributed aggregation interfaces and the internal control link ports on two distributed aggregation devices in the same distributed system to be consistent, and sets the virtual local area networks which are allowed to pass through by the distributed aggregation interfaces and the internal control link ports on the same distributed aggregation device to be consistent, thereby ensuring that the flow can be normally forwarded under the condition that the distributed aggregation interfaces or the links are abnormal, and improving the reliability of the distributed aggregation system.

Description

Dynamic configuration method for internal control link port and related device
Technical Field
The invention relates to the technical field of distributed link aggregation, in particular to a dynamic configuration method and a related device for an internal control link port.
Background
In a Distributed Resilient Network Interconnect (DRNI) typical networking System, a plurality of Network forwarding devices are aggregated by ethernet links to form a Distributed aggregation System (DR), and on the Network, the DR System appears as one Network forwarding device to the outside. Network forwarding devices forming the DR system are called Distributed Relay devices (DR devices), and real-time synchronous data is aggregated among a plurality of DR devices through ethernet links, so that cross-device link aggregation is realized, and device-level redundancy protection is provided. Each DR device includes a Distributed Relay interface (DR interface) and an internal control link Port (IPP), and when the DR interface and the IPP Port on each DR device are not consistent with each other in terms of a Virtual Local Area Network (VLAN) allowed to pass, if the DR interface is abnormal, the IPP Port of the DR device to which the abnormal DR interface belongs cannot normally forward the traffic of the DR interface, which finally causes service interruption, thereby reducing the reliability of the DR system. When the allowed VLANs set on the DR interfaces of the two DR devices in the DR system are not consistent or the allowed VLANs set on the IPP ports of the two DR devices are not consistent, if a link between one of the DR devices and a network forwarding device outside the DR system fails, the other DR device cannot normally take over the traffic forwarding task of the DR device, which finally causes service interruption and reduces the reliability of the DR system.
Disclosure of Invention
An object of the embodiments of the present invention is to provide a dynamic configuration method for an internal control link port and a related device, so as to efficiently and automatically set VLANs allowed to pass through by a DR interface and an IPP port on the same DR device to be consistent, and set VLANs allowed to pass through by a DR interface and an IPP port on two DR devices in the same DR system to be consistent, without affecting communication efficiency of normal services, thereby enabling traffic to be forwarded normally when a DR interface is abnormal or a link is abnormal, and improving reliability of a DR system.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment of the present invention provides a dynamic configuration method for an internal control link port, where the dynamic configuration method is applied to a first distributed aggregation device, the first distributed aggregation device is in communication connection with a second distributed aggregation device and forms a distributed aggregation system with the second distributed aggregation device, each of the first distributed aggregation device and the second distributed aggregation device includes a distributed aggregation interface and an internal control link port, the first distributed aggregation device stores in advance a first list of virtual local area networks that allow the distributed aggregation interface of the first distributed aggregation device to pass through, and the second distributed aggregation device stores in advance a second list of virtual local area networks that allow the distributed aggregation interface of the second distributed aggregation device to pass through, where the method includes: receiving a second list sent by a second distributed aggregation device; determining a virtual local area network to be loaded according to the second list and the first list; and loading the virtual local area network to be loaded to an internal control link port of the first distributed aggregation equipment.
In a second aspect, an embodiment of the present invention provides a dynamic configuration method for an internal control link port, which is applied to a distributed aggregation system, where the distributed aggregation system includes a first distributed aggregation device and a second distributed aggregation device communicatively connected to the first distributed aggregation device, where the first distributed aggregation device and the second distributed aggregation device each include a distributed aggregation interface and an internal control link port, the first distributed aggregation device stores in advance a first list of virtual local area networks that allow the distributed aggregation interface of the first distributed aggregation device to pass through, and the second distributed aggregation device stores in advance a second list of virtual local area networks that allow the distributed aggregation interface of the second distributed aggregation device to pass through, where the method includes: the first distributed aggregation equipment receives a second list sent by the second distributed aggregation equipment; the first distributed aggregation equipment determines a virtual local area network to be loaded according to the second list and the first list; the method comprises the steps that a first distributed aggregation device loads a virtual local area network to be loaded to an internal control link port of the first distributed aggregation device; the second distributed aggregation equipment receives a first list sent by the first distributed aggregation equipment; the second distributed aggregation equipment determines a virtual local area network to be loaded according to the first list and the second list; and the second distributed aggregation equipment loads the virtual local area network to be loaded to an internal control link port of the second distributed aggregation equipment.
In a third aspect, an embodiment of the present invention provides an internal control link port dynamic configuration apparatus, where the apparatus includes a first receiving module, a first determining module, and a loading module. The first receiving module is used for receiving a second list sent by a second distributed aggregation device; the first determining module is used for determining the virtual local area network to be loaded according to the second list and the first list, and the loading module is used for loading the virtual local area network to be loaded to the internal control link port of the first distributed aggregation device.
In a fourth aspect, an embodiment of the present invention provides a distributed aggregation device, where the distributed aggregation device includes: one or more processors; a memory for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the internal control link port dynamic configuration method described above.
Compared with the prior art, in the method and the related device for dynamically configuring the internal control link port provided in the embodiments of the present invention, first, a first distributed aggregation device receives a second list sent by a second distributed aggregation device; then, the first distributed aggregation equipment determines a virtual local area network to be loaded according to the second list and the first list; and finally, loading the virtual local area network to be loaded to an internal control link port of the first distributed aggregation equipment. The embodiment of the invention efficiently and automatically sets the allowed VLANs of the DR interface and the IPP port on the same DR equipment to be consistent and sets the allowed VLANs of the DR interface and the IPP port on two DR equipment in the same DR system to be consistent under the condition of not influencing the communication efficiency of normal services, thereby enabling the flow to be normally forwarded under the condition of abnormal DR interface or abnormal link and improving the reliability of the DR system.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed 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 invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic view illustrating an application scenario of a dynamic configuration method for an internal control link port according to an embodiment of the present invention.
Fig. 2 shows a block schematic diagram of a distributed aggregation device provided in an embodiment of the present invention.
Fig. 3 shows a flowchart of a dynamic configuration method for internal control link ports applied to a distributed aggregation system according to an embodiment of the present invention.
Fig. 4 shows an exemplary diagram of an update process of the shared table and the exclusive table in step S205.
Fig. 5 is a flowchart illustrating a method for dynamically configuring an internal control link port applied to a first distributed aggregation device according to an embodiment of the present invention.
Fig. 6 is a block diagram illustrating an apparatus for dynamically configuring an internal control link port applied to a first distributed aggregation device according to an embodiment of the present invention.
Icon: 100-a first distributed polymerization apparatus; 101-a memory; 102-a memory controller; 103-a processor; 104-a distributed aggregation interface; 105-internal control link port; 200-internal control link port dynamic configuration means; 201-a first receiving module; 202-a first determination module; 203-loading module; 204-shared table first update module; 205-a first update module of the exclusive table; 206-exclusive table second update module; 207-shared table second update module; 208-a second receiving module; 209-a second determination module; 210-a third determination module; 211-a fourth determination module; 300-a second distributed aggregation device; 400-external device.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
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. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Referring to fig. 1, fig. 1 is a schematic view illustrating an application scenario of a dynamic configuration method for an internal control link port according to an embodiment of the present invention, where a first distributed aggregation device 100 is communicatively connected to a second distributed aggregation device 300, and the first distributed aggregation device 100 and the second distributed aggregation device 300 form a distributed aggregation system, the first distributed aggregation device 100 and the second distributed aggregation device 300 both include a distributed aggregation interface 104 and an internal control link port 105, the first distributed aggregation device 100 communicates with an external device 400 through the distributed aggregation interface 104, to enable traffic forwarding between the first distributed aggregation device 100 and the external device 400, meanwhile, the second distributed aggregation device 300 communicates with the external device 400 through the distributed aggregation interface 104, to enable traffic forwarding between the second distributed aggregation device 300 and the external device 400. The first distributed aggregation device 100 communicates with the second distributed aggregation device 300 through the internal control link port 105 of the first distributed aggregation device 100 and the internal control link port 105 of the second distributed aggregation device 300, so as to implement traffic forwarding between the first distributed aggregation device 100 and the second distributed aggregation device 300 and configuration information transfer of the distributed aggregation interface 104 and the internal control link port 105.
Referring to fig. 2, fig. 2 is a block schematic diagram illustrating a distributed aggregation device according to an embodiment of the present invention. The distributed aggregation device may be the first distributed aggregation device 100 or the second distributed aggregation device 300, and in the embodiment of the present invention, the distributed aggregation device is exemplified as the first distributed aggregation device 100. The distributed aggregation device may be, but is not limited to, a switch, a router, etc. network forwarding device. The distributed aggregation device comprises an internal control link port dynamic configuration apparatus 200, a memory 101, a storage controller 102, a processor 103, a distributed aggregation interface 104, and an internal control link port 105.
The memory 101, memory controller 102, and processor 103 are electrically connected to each other directly or indirectly to enable data transfer or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The internal control link port dynamic configuration apparatus 200 includes at least one software functional module which may be stored in the memory 101 in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the distributed aggregation device. The processor 103 is used for executing executable modules stored in the memory 101, such as software functional modules and computer programs included in the internal control link port dynamic configuration apparatus 200.
The Memory 101 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 101 is configured to store a program, and the processor 103 executes the program after receiving the execution instruction.
The processor 103 may be an integrated circuit chip having signal processing capabilities. The Processor 103 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), a voice Processor, a video Processor, and the like; but may also be a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor 103 may be any conventional processor or the like.
The distributed aggregation interface 104 may be an ethernet interface.
The internal control link port 105 may be an ethernet interface.
First embodiment
Referring to fig. 3, fig. 3 is a flowchart illustrating a dynamic configuration method for an internal control link port applied to a distributed aggregation system according to an embodiment of the present invention. The processing method comprises the following steps:
step S101, the first distributed aggregation device receives a second list sent by the second distributed aggregation device.
In the embodiment of the present invention, the first distributed aggregation device 100 and the second distributed aggregation device 300 are communicatively connected and together form a distributed aggregation system, and the second distributed aggregation device 300 includes the distributed aggregation interface 104. The second list is a virtual local area network that is pre-stored in the second distributed aggregation device 300 and includes the virtual local area network that is pre-configured by the user and allowed to pass through the distributed aggregation interface 104 of the second distributed aggregation device 300, that is, traffic from the virtual local area network in the second list may be forwarded to the external device 400 through the distributed aggregation interface 104 of the second distributed aggregation device 300, or traffic from the virtual local area network in the second list that is sent by the external device 400 may be received and forwarded through the distributed aggregation interface 104 of the second distributed aggregation device 300.
It should be noted that the number of the distributed aggregation interfaces 104 included in the second distributed aggregation device 300 may be multiple, in this case, each distributed aggregation interface 104 of the second distributed aggregation device 300 corresponds to one second list, and therefore, the number of the second lists received by the first distributed aggregation device 100 and sent by the second distributed aggregation device 300 is also multiple. The distributed aggregation interface 104 of each second distributed aggregation device 300 may be configured with a plurality of virtual local area networks that are allowed to pass through the distributed aggregation interface 104, and therefore, there are a plurality of virtual local area networks in the second list corresponding to the distributed aggregation interface 104 of each second distributed aggregation device 300, for example, the second distributed aggregation device 300 includes 2 distributed aggregation interfaces 104: the number 1 distributed aggregation interface 104 and the number 2 distributed aggregation interface 104, the allowed virtual local area networks configured by the number 1 distributed aggregation interface 104 are virtual local area networks 1, 2, and 3, and the allowed virtual local area networks configured by the number 2 distributed aggregation interface 104 are virtual local area networks 1, 3, and 5, and then the virtual local area networks included in the second list corresponding to the number 1 distributed aggregation interface 104 of the second distributed aggregation device 300 are: virtual local area networks 1, 2, and 3, and the virtual local area networks included in the second list of the second distributed aggregation device 300 corresponding to the number 2 distributed aggregation interface 104 are: virtual local area network 1, virtual local area network 3, virtual local area network 5.
Step S102, the first distributed aggregation device determines a virtual local area network to be loaded according to the second list and the first list.
In this embodiment of the present invention, the first list is a virtual local area network that is pre-stored in the first distributed aggregation device 100 and includes a virtual local area network that is pre-configured by a user and allows the distributed aggregation interface 104 of the first distributed aggregation device 100 to pass through. The implementation manner of determining the to-be-loaded virtual local area network according to the second list and the first list may be: the first distributed aggregation device 100 determines the virtual local area networks existing in the second list and the first list at the same time as the virtual local area networks to be loaded, for example, the first list includes virtual local area network 1, virtual local area network 2, and virtual local area network 3, the second list includes virtual local area network 1, virtual local area network 3, and virtual local area network 5, and the virtual local area networks existing in the second list and the first list at the same time are virtual local area network 1 and virtual local area network 3, and thus, virtual local area network 1 and virtual local area network 3 are the virtual local area networks to be loaded. The way of determining the to-be-loaded vlan may be to mark the vlans existing in the second list and the first list at the same time, for example, mark the vlans existing in the second list and the first list at the same time as active, mark the vlans not existing in the second list and the first list at the same time as inactive, and forward the traffic from the vlan marked as active through the distributed aggregation interface 104 of the first distributed aggregation device 100, but not forward the traffic of the vlan marked as inactive through the distributed aggregation interface 104 of the first distributed aggregation device 100.
It should be noted that the number of the distributed aggregation interfaces 104 included in the first distributed aggregation device 100 may be multiple, and each distributed aggregation interface 104 of the first distributed aggregation device 100 corresponds to one first list, so that the number of the first lists on the first distributed aggregation device 100 is multiple. In a case that the first distributed aggregation device 100 includes a plurality of distributed aggregation interfaces 104 or the second distributed aggregation device 300 also includes a plurality of distributed aggregation interfaces 104, the distributed aggregation interfaces 104 of the first distributed aggregation device 100 and the distributed aggregation interfaces 104 of the second distributed aggregation device 300 that are connected to the same external device 400 are divided into the same distributed aggregation group, and the relevant configurations of the distributed aggregation interfaces 104 of the same distributed aggregation group must be the same, for example, the working mode, the number, and the like, at this time, the implementation method for determining, by the first distributed aggregation device 100, the virtual local area network to be loaded according to the second list and the first list may be: according to the first list corresponding to the distributed aggregation interface 104 of the first distributed aggregation device 100 and the second list corresponding to the distributed aggregation interface 104 of the second distributed aggregation device 300 in each distributed aggregation group, determining the virtual local area network to be loaded corresponding to the distributed aggregation interface 104 of the first distributed aggregation device 100 belonging to the distributed aggregation group. For example, the first distributed aggregation device 100 includes 2 distributed aggregation interfaces 104: the distributed aggregation interface 1 and the distributed aggregation interface 2 104 include, in a first list corresponding to the distributed aggregation interface 1, virtual local area networks 1 and virtual machine local area networks 2, and in a first list corresponding to the distributed aggregation interface 2, virtual local area networks 2 and virtual machine local area networks 3, the second distributed aggregation device 300 includes 2 distributed aggregation interfaces 104: a number 3 distributed aggregation interface 104 and a number 4 distributed aggregation interface 104, the second list corresponding to the number 3 distributed aggregation interface 104 includes virtual local area networks 2 and 3 virtual machine local area networks, the first list corresponding to the number 4 distributed aggregation interface 104 includes virtual local area networks 3 and 4 virtual machine local area networks, the number 1 distributed aggregation interface 104 and the number 3 distributed aggregation interface 104 are connected to the same number 1 external device 400, and the number 2 distributed aggregation interface 104 and the number 4 distributed aggregation interface 104 are connected to the same number 2 external device 400, so that the number 1 distributed aggregation interface 104 and the number 3 distributed aggregation interface 104 belong to the number 1 distributed aggregation group, the number 2 distributed aggregation interface 104 and the number 4 distributed aggregation interface 104 belong to the number 2 distributed aggregation group, and virtual local area networks existing in the first list corresponding to the number 1 distributed aggregation interface 104 and the second list corresponding to the number 3 distributed aggregation interface 104 at the same time, that is, the virtual local area network 2 is determined as the virtual local area network to be loaded corresponding to the distributed aggregation interface No. 1 of the first distributed aggregation device 100, and the virtual local area networks that exist in the first list corresponding to the distributed aggregation interface No. 2 104 and the second list corresponding to the distributed aggregation interface No. 4 at the same time, that is, the virtual local area network 3 is determined as the virtual local area network to be loaded corresponding to the distributed aggregation interface No. 2 of the first distributed aggregation device 100.
Step S103, the first distributed aggregation device loads the virtual local area network to be loaded to the internal control link port of the first distributed aggregation device.
In the embodiment of the present invention, since the to-be-loaded virtual local area network is a virtual local area network that allows the distributed aggregation interface 104 of the first distributed aggregation device 100 to load the to-be-loaded virtual local area network into the internal control link port 105 of the first distributed aggregation device 100, the to-be-loaded virtual local area network also allows the internal control link port 105 of the first distributed aggregation device 100, that is, the to-be-loaded virtual local area network may pass through both the distributed aggregation interface 104 of the first distributed aggregation device 100 and the internal control link port 105 of the first distributed aggregation device 100, when the traffic from the to-be-loaded virtual local area network cannot be forwarded normally due to an abnormality of the distributed aggregation interface 104 of the first distributed aggregation device 100, the traffic may be forwarded through the internal control link port 105 of the first distributed aggregation device 100, the service is ensured not to be interrupted, and the reliability of the distributed aggregation system is improved.
In the embodiment of the present invention, loading the to-be-loaded virtual local area network to the internal control link port 105 of the first distributed aggregation device 100 is implemented in a dynamic manner, and certainly, may also be implemented in a static manner, that is, manually configuring the internal control link port 105 of the first distributed aggregation device 100, and allowing the to-be-loaded virtual local area network to pass through the internal control link port 105 of the first distributed aggregation device 100. The dynamic implementation is more efficient than the static implementation, and is less prone to errors, when the virtual local area network allowed by the distributed aggregation interface 104 of the first distributed aggregation device 100 changes, the internal control link port 105 of the corresponding first distributed aggregation device 100 may be automatically changed accordingly, and it is ensured that the distributed aggregation interface 104 of the first distributed aggregation device 100 and the virtual local area network allowed by the internal control link port 105 of the corresponding first distributed aggregation device 100 are consistent in real time.
In this embodiment of the present invention, in order to ensure that a virtual machine local area network that can pass through the distributed aggregation interface 104 of the first distributed aggregation device 100 and the internal control link port 105 of the first distributed aggregation device 100 is consistent with a virtual machine local area network that can pass through the distributed aggregation interface 104 of the second distributed aggregation device 300 and the internal control link port 105 of the second distributed aggregation device 300, where the distributed aggregation interface 104 of the first distributed aggregation device 100 and the distributed aggregation interface 104 of the second distributed aggregation device 300 both belong to one distributed aggregation group, the second distributed aggregation device 300 is further required to determine a virtual local area network to be loaded according to the first list and the second list, and load the virtual local area network to be loaded to the internal control link port 105 of the second distributed aggregation device 300. Therefore, the embodiment of the present invention further includes steps S104 to S106, and the implementation method of steps S104 to S106 is similar to that of steps S101 to S103, and is not described herein again.
Step S104, the second distributed aggregation device receives the first list sent by the first distributed aggregation device.
Step S105, the second distributed aggregation device determines the virtual local area network to be loaded according to the first list and the second list.
Step S106, the second distributed aggregation device loads the to-be-loaded virtual local area network to the internal control link port of the second distributed aggregation device.
It should be noted that steps S101 to S103 executed by the first distributed aggregation device 100 may be performed simultaneously with steps S104 to S106 executed by the second distributed aggregation device 300, and it is not necessary that the first distributed aggregation device 100 first performs steps S101 to S103, then the second distributed aggregation device 300 performs steps S104 to S106, nor that the second distributed aggregation device 300 first performs steps S104 to S106, then the first distributed aggregation device 100 performs steps S101 to S103.
In this embodiment of the present invention, after the first distributed aggregation device 100 performs steps S101 to S103 and the second distributed aggregation device 300 performs steps S104 to S106, the virtual machine local area network that can pass through the distributed aggregation interface 104 of the first distributed aggregation device 100 and the internal control link port 105 of the first distributed aggregation device 100 may also pass through the distributed aggregation interface 104 of the second distributed aggregation device 300 and the internal control link of the second distributed aggregation device 300, and when a link between the first distributed aggregation device 100 and the external device 400 is abnormal and traffic of the virtual local area network cannot be forwarded through the first distributed aggregation device 100, the traffic of the virtual local area network may be sent to the second distributed aggregation device 300 and forwarded to the external device 400 by the second distributed aggregation device 300.
In the embodiment of the present invention, the virtual local area networks that allow the distributed aggregation interface 104 of the first distributed aggregation device 100 and the internal control link port 105 of the first distributed aggregation device 100 to be maintained as consistent in a dynamic manner, and the virtual machine local area networks that may pass through the distributed aggregation interface 104 of the first distributed aggregation device 100 and the internal control link port 105 of the first distributed aggregation device 100 and the virtual machine local area networks that may pass through the distributed aggregation interface 104 of the second distributed aggregation device 300 and the internal control link port 105 of the second distributed aggregation device 300 are maintained as consistent, which has the following advantages compared with the prior art:
first, the dynamic implementation reduces the workload of manual setting and avoids the problem that manual setting is prone to errors.
Secondly, the dynamic implementation automatically implements that, as the distributed aggregation interface 104 of the first distributed aggregation device 100 allows passing through the change of the virtual local area network or the distributed aggregation interface 104 of the second distributed aggregation device 300 allows passing through the change of the virtual local area network, the internal control link port 105 of the first distributed aggregation device 100 or the internal control link port 105 of the second distributed aggregation device 300 is changed accordingly, thereby enabling the virtual local area networks that the first distributed aggregation device 100 and the second distributed aggregation device 300 can forward to be consistent in real time, when the distributed aggregation interface 104 of the first distributed aggregation device 100 or the distributed aggregation interface 104 of the second distributed aggregation device 300 is abnormal, or the link between the first distributed aggregation device 100 and the external device 400 is abnormal, or the link between the second distributed aggregation device 300 and the external device 400 is abnormal, the normal operation of the service is not affected, so that the reliability of the distributed aggregation system is improved.
Thirdly, the virtual local area networks allowed to pass through by the distributed aggregation interfaces 104 of the first distributed aggregation device 100 and the distributed aggregation interfaces 104 of the second distributed aggregation device 300 are set as the virtual local area networks allowed to pass through by the internal control link ports 105 of the first distributed aggregation device 100 and the internal control link ports 105 of the second distributed aggregation device 300, and the internal control link ports 105 of the first distributed aggregation device 100 and the internal control link ports 105 of the second distributed aggregation device 300 are not set as the virtual local area networks allowed to pass through, so that the problem that the traffic of other virtual local area networks unrelated to the normal traffic occupies a large amount of ethernet link bandwidth between the first distributed aggregation device 100 and the second distributed aggregation device 300, and the communication efficiency of the normal traffic is reduced is avoided.
Second embodiment
Referring to fig. 5, fig. 5 is a flowchart illustrating a method for dynamically configuring internal control link ports applied to a first distributed aggregation device 100 according to an embodiment of the present invention, where the method for dynamically configuring internal control link ports applied to the first distributed aggregation device 100 includes the following steps:
it should be noted that steps S201 to S203 are the same as steps S101 to S103 in the first embodiment, and therefore, in the embodiment of the present invention, the description of steps S201 to S203 is not repeated.
Step S201, receiving a second list sent by a second distributed aggregation device.
Step S202, determining the virtual local area network to be loaded according to the second list and the first list.
In the embodiment of the present invention, the implementation manner of determining the to-be-loaded virtual local area network according to the second list and the first list may be: and determining the virtual local area networks which exist in the second list and the first list at the same time as the virtual local area networks to be loaded.
Step S203, load the virtual local area network to be loaded to the internal control link port of the first distributed aggregation device.
In the embodiment of the present invention, in order to dynamically adjust the internal control link port 105 of the first distributed aggregation device 100 according to the change of the virtual local area network allowed to pass through by the distributed aggregation interface 104 of the first distributed aggregation device 100, that is, when the virtual local area network allowed to pass through by the distributed aggregation interface 104 of the first distributed aggregation device 100 increases, the corresponding virtual local area network that needs to be increased needs to be dynamically loaded to the internal control link port 105 of the first distributed aggregation device 100, and when the virtual local area network allowed to pass through by the distributed aggregation interface 104 of the first distributed aggregation device 100 decreases and the virtual local area network that needs to be decreased does not pass through by the distributed aggregation interface 104 of the first distributed aggregation device 100 other than the distributed aggregation interface 104 of the first distributed aggregation device 100, the virtual local area network that needs to be decreased is selected from the internal control link port 105 of the first distributed aggregation device 100 Therefore, the embodiment of the present invention further includes steps S204 to S207.
Step S204, when the sharing table has the virtual local area network to be loaded, adding 1 to the reference count of the virtual local area network to be loaded in the sharing table.
In this embodiment of the present invention, a sharing table is stored in the first distributed aggregation device 100 in advance, the sharing table includes an ID of a virtual local area network and a reference count, the reference count of the virtual local area network refers to the number of the distributed aggregation interfaces 104 of the first distributed aggregation device 100 that the virtual local area network is allowed to pass through, for example, the first distributed aggregation device 100 has 3 distributed aggregation interfaces 104: the distributed aggregation interface 1 includes a distributed aggregation interface 1 104, a distributed aggregation interface 2 104, and a distributed aggregation interface 3 104, where the distributed aggregation interface 1 allows a virtual local area network with an ID of 1 to pass through, and the distributed aggregation interface 3 allows a virtual local area network with an ID of 1 to pass through, so that the reference count of the virtual local area network with an ID of 1 is 2. For another example, a virtual local area network with ID 1 and a corresponding reference count 2, a virtual local area network with ID 2 and a corresponding reference count 1 are already stored in the sharing table, if the virtual local area network to be loaded is a virtual local area network with ID 2, and the virtual local area network to be loaded is a virtual local area network with ID 2 and exists in the sharing table, the reference count 2 of the virtual local area network with ID 2 in the sharing table is added with 1, and at this time, the reference count of the virtual local area network with ID 2 in the sharing table is 3.
Step S205, when the sharing table does not have the virtual local area network to be loaded, adding the virtual local area network to be loaded into the exclusive table.
In this embodiment of the present invention, the exclusive table is stored in the first distributed aggregation device 100 in advance, the exclusive table includes an ID of the virtual local area network, and a reference count of the virtual local area network in the exclusive table is 1, that is, there is only one distributed aggregation interface 104 of the first distributed aggregation device 100 that allows the virtual local area network to pass through. When the reference count of the virtual local area network in the shared table is reduced to 1, the virtual local area network is moved from the shared table to the exclusive table, and when the reference count of the virtual local area network in the exclusive table is increased, the virtual local area network is moved from the exclusive table to the shared table. Therefore, when adding the virtual local area network to be loaded into the exclusive table, if the virtual local area network to be loaded does not exist in the exclusive table, adding the virtual local area network to be loaded into the exclusive table, if the virtual local area network to be loaded exists in the exclusive table, moving the virtual local area network to be loaded from the exclusive table into the shared table, and adding 1 to the reference count, that is, the reference count of the virtual local area network to be loaded in the shared table is 2, for example, please refer to fig. 4, the shared table already exists in the virtual local area network 1 and the reference count 2 thereof, the virtual local area network 2 and the reference count 3 thereof, the virtual local area network 4 already exists in the exclusive table, the virtual local area networks to be loaded are the virtual local area network 1, the virtual local area network 3 and the virtual local area network 4, the virtual local area network 1 in the virtual local area network to be loaded exists in the shared table, adding 1 to the reference count of the virtual local area network 1 in the shared table, at this time, the reference count of the virtual local area network 1 in the shared table is 3; adding the virtual local area network 3 into the exclusive table when the virtual local area network 3 in the virtual machine local area network to be loaded does not exist in the shared table and the virtual local area network 3 does not exist in the exclusive table, wherein the virtual local area network 4 and the virtual local area network 3 exist in the exclusive table; the virtual local area network 4 in the virtual machine local area network to be loaded does not exist in the shared table, the virtual local area network 4 exists in the exclusive table, the virtual local area network 4 in the exclusive table is moved to the shared table, the reference count of the virtual local area network 4 is added with 1, and at the moment, the reference count of the virtual local area network 4 in the shared table is 2.
Step S206, when the target vlan deleted from the first list exists in the exclusive table, deleting the corresponding target vlan from the exclusive table and the to-be-loaded vlans loaded to the internal control link port.
In the embodiment of the present invention, for a loaded virtual local area network that allows the distributed aggregation interface 104 of the first distributed aggregation device 100 to pass through, if the virtual local area network does not need to be allowed to pass through any more, the virtual local area network needs to be deleted from the virtual local area network that has been loaded by the distributed aggregation interface 104 of the first distributed aggregation device 100, and the virtual local area network to be deleted is determined as the target virtual local area network. When the target vlan is in the exclusive table, it indicates that the number of references of the target vlan is 1, that is, only one of the distributed aggregation interfaces 104 of the first distributed aggregation device 100 allows its traffic to pass through, the target vlan is deleted from the exclusive table, and the target vlan is deleted from the to-be-loaded vlan loaded to the internal control link port 105 of the first distributed aggregation device 100.
In step S207, when the target vlan deleted from the first list does not exist in the exclusive table, the reference count of the target vlan is decremented by 1 in the shared table.
In the embodiment of the present invention, when the target vlan is in the shared table, it indicates that there are multiple distributed aggregation interfaces 104 of the first distributed aggregation device 100 that the target vlan allows to pass through, at this time, the reference count of the target vlan in the shared table is decreased by 1, but the target vlan cannot be deleted from the to-be-loaded vlan loaded to the internal control link port 105 of the first distributed aggregation device 100, otherwise forwarding of traffic except for the distributed aggregation interface 104 of the first distributed aggregation device 100 corresponding to the target vlan is affected, and when the reference count of the target vlan in the shared table is decreased to 1, the target vlan needs to be moved from the shared table to the exclusive table.
Since the virtual local area network allowed by the internal control link port 105 of the first distributed aggregation apparatus 100 and the virtual local area network allowed by the internal control link port 105 of the second distributed aggregation apparatus 300 can be both manually and statically set, and when the manual and static setting is performed, the virtual local area network allowed by the internal control link port 105 of the first distributed aggregation apparatus 100 and the virtual local area network allowed by the internal control link port 105 of the second distributed aggregation apparatus 300 can be different, in order to ensure that the internal control link port 105 of the first distributed aggregation apparatus 100 and the internal control link port 105 of the second distributed aggregation apparatus 300 only forward the traffic of the virtual local area networks allowed by the internal control link ports 105 of the first distributed aggregation apparatus 100 and the virtual local area networks allowed by the internal control link ports 105 of the second distributed aggregation apparatus 300, the first distributed aggregation apparatus 100 needs to determine, according to the virtual local area network allowed by the internal control link port 105 of the second distributed aggregation apparatus 300, that the virtual local area network allowed by the internal control link port 105 of the first distributed aggregation apparatus 100 is allowed Accordingly, embodiments of the present invention further include steps S208-S211.
Step S208, receiving a fourth list sent by the second distributed aggregation equipment;
in the embodiment of the present invention, the virtual local area network in the fourth list refers to a virtual local area network that is statically set by hand and allowed to be passed through by the internal control link port 105 of the second distributed aggregation apparatus 300, and the second distributed aggregation apparatus 300 sends the fourth list to the first distributed aggregation apparatus 100.
Step S209 determines an effective vlan and a pending vlan according to the fourth list and the third list.
In the embodiment of the present invention, the virtual local area network in the third list refers to a virtual local area network that is statically set manually and allowed to pass through the internal control link port 105 of the first distributed aggregation apparatus 100, the valid virtual local area network refers to a virtual local area network that is statically set manually and allowed to pass through both the internal control link port 105 of the first distributed aggregation apparatus 100 and the internal control link port 105 of the second distributed aggregation apparatus 300, and the to-be-determined virtual local area network refers to a virtual local area network that is statically set manually and allowed to pass through only one of the internal control link port 105 of the first distributed aggregation apparatus 100 and the internal control link port 105 of the second distributed aggregation apparatus 300.
As an embodiment, the method for determining the valid virtual local area network and the pending virtual local area network may be:
firstly, determining virtual local area networks which exist in a fourth list and the third list at the same time as valid virtual local area networks;
and secondly, determining the virtual local area networks which do not exist in the fourth list and the third list simultaneously as the virtual local area networks to be determined.
Step S210, determining the virtual local area network to be added according to the virtual local area network to be determined and the virtual local area network to be loaded.
In the embodiment of the present invention, the virtual local area network to be added refers to a virtual local area network through which the internal control link port 105 of the first distributed aggregation apparatus 100 and the internal control link port 105 of the second distributed aggregation apparatus 300 allow to be statically set manually but dynamically set dynamically.
As an embodiment, the method for determining the virtual local area network to be added may be:
when the virtual local area network to be determined exists in the virtual local area network to be loaded, determining the virtual local area network to be determined existing in the virtual local area network to be loaded as the virtual local area network to be added, for example, the virtual local area networks allowed to pass through by the internal control link port 105 of the first distributed aggregation device 100 are manually and statically set as the virtual local area network 1 and the virtual local area network 2, the virtual local area networks allowed to pass through by the internal control link port 105 of the second distributed aggregation device 300 are manually and statically set as the virtual local area network 2 and the virtual local area network 3, the virtual local area network to be loaded is the virtual local area network 3, the effective virtual local area network is the virtual local area network 2, the virtual machine local area networks to be determined are the virtual local area network 1 and the virtual local area network 3, since the vlan 3 exists in the vlan to be loaded, the vlan 3 is a vlan to be added.
Step S211, determining the valid virtual local area network and the virtual local area network to be added as the virtual local area network that allows the internal control link port of the first distributed aggregation device to pass through.
In the embodiment of the present invention, the active virtual local area network and the virtual local area network to be added are both virtual local area networks that allow the internal control link port 105 of the first distributed aggregation device 100 to pass through.
It should be noted that the second distributed aggregation device 300 in the same distributed aggregation system may also be the distributed aggregation device provided in the second embodiment of the present invention, and there are also steps similar to step S201 to step S211, and the execution time for the first distributed aggregation device 100 to execute step S201 to step S211 and the execution time for the second distributed aggregation device 300 to execute steps similar to step S201 to step S211 may be performed simultaneously, and finally, regardless of manual static configuration or dynamic configuration, the virtual local area networks allowed to pass through by the internal control link port 105 of the first distributed aggregation device 100 and the internal control link port 105 of the second distributed aggregation device 300 are all kept consistent.
In the embodiment of the present invention, the implementation of dynamically maintaining the consistency of the virtual local area networks allowed to pass through by the internal control link ports 105 of the first distributed aggregation device 100 and the internal control link ports 105 of the second distributed aggregation device 300 is performed by using the shared table and the exclusive table, so as to improve the efficiency of program execution, not only dynamically maintaining the consistency of the virtual local area networks allowed to pass through by the internal control link ports 105 of the first distributed aggregation device 100 and the internal control link ports 105 of the second distributed aggregation device 300, but also considering the case that the virtual local area networks allowed to pass through by the internal control link ports 105 of the first distributed aggregation device 100 and the internal control link ports 105 of the second distributed aggregation device 300 may not be consistent when the internal control link ports 105 of the first distributed aggregation device 100 and the internal control link ports 105 of the second distributed aggregation device 300 are manually and statically set, and finally allowing the internal control link ports 105 of the first distributed aggregation device 100 and the internal control link ports 105 of the second distributed aggregation device 300 to pass through regardless of the dynamic or manual and static setting The virtual local area networks are kept consistent, so that the problem of service interruption caused by flow forwarding failure can be avoided no matter the distributed aggregation interface 104 in the distributed aggregation system is abnormal or the link between the distributed aggregation device and the external device 400 is abnormal, and the reliability of the distributed aggregation system is improved.
Third embodiment
Referring to fig. 6, fig. 6 is a block diagram illustrating an apparatus 200 for dynamically configuring an internal control link port according to an embodiment of the present invention. The internal control link port dynamic configuration apparatus 200 is applied to the first distributed aggregation device 100, and includes a first receiving module 201; a first determination module 202; a loading module 203; a shared table first update module 204; an exclusive table first update module 205; an exclusive table second update module 206; a shared table second update module 207; a second receiving module 208; a second determination module 209; a third determination module 210; a fourth determination module 211.
The first receiving module 201 is configured to receive a second list sent by a second distributed aggregation device.
In this embodiment of the present invention, the first receiving module 201 is configured to execute step S201.
The first determining module 202 is configured to determine a virtual local area network to be loaded according to the second list and the first list.
In this embodiment of the present invention, the first determining module 202 is configured to execute step S202.
In this embodiment of the present invention, the first determining module 202 may be further configured to determine, as the virtual local area network to be loaded, a virtual local area network existing in both the second list and the first list.
The loading module 203 is configured to load the virtual local area network to be loaded to the internal control link port of the first distributed aggregation device.
In this embodiment of the present invention, the loading module 203 is configured to execute step S203.
A shared table first updating module 204, configured to add 1 to the reference count of the virtual local area network to be loaded in the shared table when there is a virtual local area network to be loaded in the shared table.
In this embodiment of the present invention, the shared table first updating module 204 is configured to execute step S204.
And the first update module 205 of the exclusive table is configured to add the virtual local area network to be loaded into the exclusive table when the shared table does not have the virtual local area network to be loaded.
In this embodiment of the present invention, the first update module 205 of the exclusive table is configured to execute step S205.
And the second exclusive table updating module 206 is configured to, when the target virtual local area network deleted from the first list exists in the exclusive table, delete the corresponding target virtual local area network from the exclusive table and the virtual local area network to be loaded to the internal control link port.
In this embodiment of the present invention, the second update module 206 of the exclusive table is configured to execute step S205.
And a second shared table updating module 207, configured to, when the target vlan deleted from the first list does not exist in the exclusive table, decrement the reference count of the target vlan by 1 in the shared table.
In this embodiment of the present invention, the shared table second updating module 207 is configured to execute step S207.
A second receiving module 208, configured to receive the fourth list sent by the second distributed aggregation device.
In this embodiment of the present invention, the second receiving module 208 is configured to execute step S208.
A second determining module 209, configured to determine an effective vlan and a pending vlan according to the fourth list and the third list.
In the embodiment of the present invention, the second determining module 209 is configured to execute step S209.
In this embodiment of the present invention, the second determining module 209 may further be configured to: determining virtual local area networks existing in a fourth list and the third list at the same time as valid virtual local area networks; determining the virtual local area networks which do not exist in the fourth list and the third list simultaneously as the virtual local area networks to be determined.
The third determining module 210 is configured to determine a virtual local area network to be added according to the virtual local area network to be determined and the virtual local area network to be loaded.
In the embodiment of the present invention, the third determining module 210 is configured to execute step S210.
In this embodiment of the present invention, the third determining module 210 is further configured to determine, when the to-be-determined virtual local area network exists in the to-be-loaded virtual local area network, the to-be-determined virtual local area network existing in the to-be-loaded virtual local area network as the to-be-added virtual local area network.
A fourth determining module 211, configured to determine the valid virtual local area network and the virtual local area network to be added as the virtual local area network allowed to pass through the internal control link port of the first distributed aggregation device.
In the embodiment of the present invention, the fourth determining module 211 is configured to execute step S211.
In summary, the present invention provides a dynamic configuration method for an internal control link port and a related apparatus, which are applied to a first distributed aggregation device, where the first distributed aggregation device is in communication connection with a second distributed aggregation device and forms a distributed aggregation system with the second distributed aggregation device, the first distributed aggregation device and the second distributed aggregation device both include a distributed aggregation interface and an internal control link port, the first distributed aggregation device stores in advance a first list of virtual local area networks that allow the distributed aggregation interface of the first distributed aggregation device to pass through, and the second distributed aggregation device stores in advance a second list of virtual local area networks that allow the distributed aggregation interface of the second distributed aggregation device to pass through, where the method includes: receiving a second list sent by a second distributed aggregation device; determining a virtual local area network to be loaded according to the second list and the first list; and loading the virtual local area network to be loaded to an internal control link port of the first distributed aggregation equipment. Compared with the prior art, the embodiment of the invention efficiently and automatically sets the virtual local area networks which are allowed to pass through the distributed aggregation interfaces and the internal control link ports on the same distributed aggregation equipment to be consistent under the condition that the communication efficiency of normal services is not influenced, and sets the virtual local area networks which are allowed to pass through the distributed aggregation interfaces and the internal control link ports on two distributed aggregation equipment in the same distributed aggregation system to be consistent, so that the flow can be normally forwarded under the condition that the distributed aggregation interfaces or the links are abnormal, and the reliability of the distributed aggregation system is improved.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can 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 invention. 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, the functional modules in the embodiments of the present invention 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 invention may be embodied in the form of a software product, which is stored in a storage medium and includes 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 invention. 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 a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention. 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.

Claims (9)

1. A dynamic configuration method for an internal control link port is applied to a first distributed aggregation device, the first distributed aggregation device is in communication connection with a second distributed aggregation device and forms a distributed aggregation system with the second distributed aggregation device, the first distributed aggregation device and the second distributed aggregation device both include a distributed aggregation interface and an internal control link port, the first distributed aggregation device stores a first list of virtual local area networks that allow the distributed aggregation interface of the first distributed aggregation device to pass through in advance, and the second distributed aggregation device stores a second list of virtual local area networks that allow the distributed aggregation interface of the second distributed aggregation device to pass through in advance, and the method includes:
receiving the second list sent by the second distributed aggregation device;
determining a virtual local area network to be loaded according to the second list and the first list;
loading the virtual local area network to be loaded to an internal control link port of the first distributed aggregation equipment; the step of determining the virtual local area network to be loaded according to the second list and the first list comprises the following steps:
and determining the virtual local area networks which exist in the second list and the first list at the same time as the virtual local area networks to be loaded.
2. The dynamic configuration method of internal control link ports according to claim 1, wherein the first distributed aggregation device stores a shared table and an exclusive table in advance; the method further comprises the following steps:
when the virtual local area network to be loaded exists in the shared table, adding 1 to the reference count of the virtual local area network to be loaded in the shared table;
and when the sharing table does not have the to-be-loaded virtual local area network, adding the to-be-loaded virtual local area network into the exclusive table.
3. The method for dynamic configuration of internal control link ports according to claim 2, wherein said method further comprises:
when the target virtual local area network deleted from the first list exists in the exclusive table, deleting the corresponding target virtual local area network from the exclusive table and the virtual local area network to be loaded to the internal control link port;
when the exclusive table does not have the target virtual local area network deleted from the first list, subtracting 1 from the reference count of the target virtual local area network in the shared table.
4. The method for dynamic configuration of internal control link ports according to claim 3, wherein said method further comprises:
and when the reference count of the to-be-loaded virtual local area network in the shared table is 1, adding the target virtual local area network deleted from the first list into an exclusive table.
5. The dynamic configuration method of internal control link ports according to claim 1, wherein the first distributed aggregation device stores in advance a third list of virtual local area networks that are allowed to pass through the internal control link ports of the first distributed aggregation device, and the second distributed aggregation device stores in advance a fourth list of virtual local area networks that are allowed to pass through the internal control link ports of the second distributed aggregation device; the method further comprises the following steps:
receiving the fourth list sent by the second distributed aggregation device;
determining an effective virtual local area network and a virtual local area network to be determined according to the fourth list and the third list;
determining a virtual local area network to be added according to the virtual local area network to be determined and the virtual local area network to be loaded;
determining the valid virtual local area network and the virtual local area network to be added as the virtual local area network allowed to pass through the internal control link port of the first distributed aggregation equipment.
6. The internal control link port dynamic configuration method of claim 5,
the step of determining an effective vlan and a pending vlan according to the fourth list and the third list comprises:
determining virtual local area networks existing in the fourth list and the third list at the same time as valid virtual local area networks;
determining virtual local area networks which do not exist in the fourth list and the third list at the same time as the virtual local area networks to be determined;
the step of determining the virtual local area network to be added according to the virtual local area network to be determined and the virtual local area network to be loaded comprises the following steps:
when the virtual local area network to be determined exists in the virtual local area network to be loaded, determining the virtual local area network to be determined existing in the virtual local area network to be loaded as the virtual local area network to be added.
7. An internal control link port dynamic configuration apparatus, applied to a first distributed aggregation device in a distributed aggregation system, where the first distributed aggregation device is communicatively connected to a second distributed aggregation device and forms a distributed aggregation system with the second distributed aggregation device, each of the first distributed aggregation device and the second distributed aggregation device includes a distributed aggregation interface and an internal control link port, the first distributed aggregation device stores in advance a first list of virtual local area networks that allow the distributed aggregation interface of the first distributed aggregation device to pass through, and the second distributed aggregation device stores in advance a second list of virtual local area networks that allow the distributed aggregation interface of the second distributed aggregation device to pass through, the apparatus includes:
a first receiving module, configured to receive the second list sent by the second distributed aggregation device;
the first determining module is used for determining the virtual local area network to be loaded according to the second list and the first list;
a loading module, configured to load the to-be-loaded virtual local area network to an internal control link port of the first distributed aggregation device;
the loading module is specifically configured to determine, as a to-be-loaded virtual local area network, a virtual local area network existing in both the second list and the first list.
8. A distributed aggregation device, comprising:
one or more processors;
memory storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the internal control link port dynamic configuration method of any of claims 1-6.
9. A dynamic configuration method for an internal control link port is applied to a distributed aggregation system, where the distributed aggregation system includes a first distributed aggregation device and a second distributed aggregation device communicatively connected to the first distributed aggregation device, where the first distributed aggregation device and the second distributed aggregation device each include a distributed aggregation interface and an internal control link port, the first distributed aggregation device stores in advance a first list of virtual local area networks that allow the distributed aggregation interface of the first distributed aggregation device to pass through, and the second distributed aggregation device stores in advance a second list of virtual local area networks that allow the distributed aggregation interface of the second distributed aggregation device to pass through, where the method includes:
the first distributed aggregation device receives the second list sent by the second distributed aggregation device;
the first distributed aggregation equipment determines a virtual local area network to be loaded according to the second list and the first list;
the first distributed aggregation equipment determines the virtual local area networks existing in the second list and the first list at the same time as the virtual local area networks to be loaded;
the first distributed aggregation equipment loads the virtual local area network to be loaded to an internal control link port of the first distributed aggregation equipment;
the second distributed aggregation device receives the first list sent by the first distributed aggregation device;
the second distributed aggregation equipment determines a virtual local area network to be loaded according to the first list and the second list;
and the second distributed aggregation equipment loads the virtual local area network to be loaded to an internal control link port of the second distributed aggregation equipment.
CN201810828948.4A 2018-07-25 2018-07-25 Dynamic configuration method for internal control link port and related device Active CN109088752B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810828948.4A CN109088752B (en) 2018-07-25 2018-07-25 Dynamic configuration method for internal control link port and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810828948.4A CN109088752B (en) 2018-07-25 2018-07-25 Dynamic configuration method for internal control link port and related device

Publications (2)

Publication Number Publication Date
CN109088752A CN109088752A (en) 2018-12-25
CN109088752B true CN109088752B (en) 2022-02-11

Family

ID=64838648

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810828948.4A Active CN109088752B (en) 2018-07-25 2018-07-25 Dynamic configuration method for internal control link port and related device

Country Status (1)

Country Link
CN (1) CN109088752B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111555972A (en) * 2020-04-10 2020-08-18 深圳震有科技股份有限公司 Aggregation method, system and storage medium of aggregated link

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873336A (en) * 2012-12-14 2014-06-18 中兴通讯股份有限公司 Distributed resilient network interconnection-based service bearing method and device
CN105122749A (en) * 2013-04-23 2015-12-02 瑞典爱立信有限公司 A method and system of updating conversation allocation in link aggregation
CN107547370A (en) * 2017-09-25 2018-01-05 新华三技术有限公司 Flow forwarding method, apparatus and system
EP2989757B1 (en) * 2013-04-23 2018-01-17 Telefonaktiebolaget LM Ericsson (publ) A method and system for synchronizing with a neighbor in a distributed resilient network interconnect (drni) link aggregation group

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150085862A1 (en) * 2013-09-24 2015-03-26 Hangzhou H3C Technologies Co., Ltd. Forwarding Multicast Data Packets

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873336A (en) * 2012-12-14 2014-06-18 中兴通讯股份有限公司 Distributed resilient network interconnection-based service bearing method and device
WO2014090083A1 (en) * 2012-12-14 2014-06-19 中兴通讯股份有限公司 Service bearing method and apparatus during distributed resilient network interconnect
CN105122749A (en) * 2013-04-23 2015-12-02 瑞典爱立信有限公司 A method and system of updating conversation allocation in link aggregation
EP2989757B1 (en) * 2013-04-23 2018-01-17 Telefonaktiebolaget LM Ericsson (publ) A method and system for synchronizing with a neighbor in a distributed resilient network interconnect (drni) link aggregation group
CN107547370A (en) * 2017-09-25 2018-01-05 新华三技术有限公司 Flow forwarding method, apparatus and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于分布式聚合的角色分配与切换的算法研究;刘航;《中国优秀硕士学位论文全文数据库-信息科技辑》;20171231;全文 *

Also Published As

Publication number Publication date
CN109088752A (en) 2018-12-25

Similar Documents

Publication Publication Date Title
US10686890B2 (en) Keep-alive scheduler in a network device
US10193958B2 (en) Policy based framework for application management in distributed systems
US20170054593A1 (en) Transformation of peripheral component interconnect express compliant virtual devices in a network environment
US10142435B2 (en) Method, device and computer storage medium for implementing interface cache dynamic allocation
US20150085642A1 (en) Control target flow specifying method and control target flow specifying device
CN109391548B (en) Table entry migration method and device and network communication system
CN112749178A (en) Method for ensuring data consistency and related equipment
US11240100B2 (en) Using an out-of-band network to reconfigure a bus interface port
CN109088752B (en) Dynamic configuration method for internal control link port and related device
US8467285B2 (en) No split virtual chassis based on pass through mode
US8108736B2 (en) Multi-partition computer system, failure handling method and program therefor
WO2021120754A1 (en) Instruction writing method and apparatus, and network device
CN106790411B (en) The non-polymeric port cascade system and method for virtual switch and physical switches
CN109587218B (en) Cluster election method and device
CN112272933B (en) Queue control method, device and storage medium
CN104348737A (en) Multicast message transmission method and switches
CN111158905A (en) Method and device for adjusting resources
US10382301B2 (en) Efficiently calculating per service impact of ethernet ring status changes
CN111629054B (en) Message processing method, device and system, electronic equipment and readable storage medium
US11349964B2 (en) Selective TCP/IP stack reconfiguration
CN110673793B (en) Storage device node event management method and system, electronic device and storage medium
CN109547439B (en) Processing method and device for service node access network
CN112311671A (en) Method, apparatus, medium and device for issuing aggregated link configuration to switch chip
CN108616461B (en) Policy switching method and device
CN110912837A (en) VSM system-based main/standby switching method and device

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
TR01 Transfer of patent right

Effective date of registration: 20230627

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right