CN111224887B - Device configuration method, system and related device - Google Patents

Device configuration method, system and related device Download PDF

Info

Publication number
CN111224887B
CN111224887B CN201811423011.5A CN201811423011A CN111224887B CN 111224887 B CN111224887 B CN 111224887B CN 201811423011 A CN201811423011 A CN 201811423011A CN 111224887 B CN111224887 B CN 111224887B
Authority
CN
China
Prior art keywords
vnis
allocated
vni
vxlan
unassigned
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
CN201811423011.5A
Other languages
Chinese (zh)
Other versions
CN111224887A (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.)
Tianyi Cloud Technology Co Ltd
Original Assignee
Tianyi Cloud Technology 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 Tianyi Cloud Technology Co Ltd filed Critical Tianyi Cloud Technology Co Ltd
Priority to CN201811423011.5A priority Critical patent/CN111224887B/en
Publication of CN111224887A publication Critical patent/CN111224887A/en
Application granted granted Critical
Publication of CN111224887B publication Critical patent/CN111224887B/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering

Landscapes

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

Abstract

The invention discloses a device configuration method, a device configuration system and related devices, and relates to the technical field of networks. The equipment configuration method comprises the following steps: the method comprises the steps that a first device obtains VXLAN Network Identifiers (VNIs) configured by the first device; the first device obtains the VNI configured by the second device; the first device re-distributes the VNIs to the first device and the second device according to the acquired VNIs, so that the difference of the number of the VNIs distributed to the first device and the second device is smaller than a preset value; the first device sends the VNI assigned to the second device. The embodiment of the invention can distribute the flow of the VXLAN network tenant to a plurality of devices as evenly as possible through dynamically negotiating the dynamic binding of the VNI and the VXLAN tunnel, thereby realizing the load balancing of the VXLAN network device and improving the forwarding performance of the VXLAN network.

Description

Device configuration method, system and related device
Technical Field
The present invention relates to the field of network technologies, and in particular, to a device configuration method, a system, and related devices.
Background
The data center is the core infrastructure of cloud computing. With the rapid development of cloud computing technology, network traffic between data centers has exponentially increased, and the internal operation modes of the data centers have changed greatly. One of the most varying aspects is virtualization technology, including server virtualization, network virtualization, storage virtualization, and the like.
The virtual machine migration technique of server virtualization requires that the network be interworking at two layers. On a network across data centers, the conventionally used technology is virtual private local area network service (Virtual Private Lan Service, simply: VPLS), but VPLS is simply to provide two-layer connectivity between data centers, without changing some of the characteristics of the two-layer domain. For example, in order to ensure that the network does not block a part of links, the link utilization rate is low, broadcast storm spreads among data centers, the convergence speed is low, and the like. The two-layer technology of the data center is to solve the network problem between the data centers and inside the data center, wherein one technology is VXLAN network protocol. Currently, VXLAN networks are mostly used for interconnection between data centers. However, the core devices of the current data centers may create forwarding bottlenecks in part.
Disclosure of Invention
The inventor realizes that since VXLAN protocols do not have an explicit load sharing scheme, when VXLAN networks are deployed, a dual active core device in a data center is prone to a situation of unbalanced load, resulting in a forwarding bottleneck. If equipment is started, frequent online and offline of tenants and the like, the phenomenon of unbalanced load of two dual-active core equipment is easily caused. Thus making the current VXLAN forwarding performance poor.
One technical problem to be solved by the embodiment of the invention is as follows: how to improve the forwarding performance of VXLAN networks.
According to a first aspect of some embodiments of the present invention, there is provided a device configuration method, comprising: the method comprises the steps that a first device obtains VXLAN Network Identifiers (VNIs) configured by the first device; the first device obtains the VNI configured by the second device; the first device re-distributes the VNIs to the first device and the second device according to the acquired VNIs, so that the difference of the number of the VNIs distributed to the first device and the second device is smaller than a preset value; the first device sends the VNI assigned to the second device.
In some embodiments, the device configuration method further comprises: the first device establishes an intermediate system to intermediate system ISIS neighbor with the second device.
In some embodiments, the first device obtains a VNI configured by the second device, which is sent by the second device through a link state protocol data unit LSP of an ISIS protocol.
In some embodiments, the first device sends the VNI assigned to the second device via an LSP message of an ISIS protocol.
In some embodiments, VNIs configured only in a first device are assigned to the first device, and VNIs configured only in a second device are assigned to the second device.
In some embodiments, the first device reallocating the VNIs to the first device and the second device according to the acquired VNIs includes: the first device allocates VNIs configured only in the first device to the first device, and VNIs configured only in the second device to the second device; in the case that the number of VNIs allocated to a device with a large number of VNIs allocated to a first device and a second device is larger than the sum of the number of VNIs allocated to another device and the number of unassigned VNIs, the first device allocates the unassigned VNIs to a device with a small number of VNIs configured in the first device and the second device, and converts a part of VNIs allocated to a device with a small number of VNIs in the device with a large number of VNIs configured into a device with a small number of VNIs configured, so that the difference of the number of VNIs allocated to the first device and the second device is smaller than a preset value; in the case that the number of VNIs allocated by a device with a large number of VNIs allocated in the first device and the second device is equal to the sum of the number of VNIs allocated by another device and the number of unassigned VNIs, the unassigned VNIs allocated to a device with a small number of VNIs configured in the first device and the second device; in the case that the number of VNIs allocated by a device with a larger number of VNIs allocated by the first device and the second device is smaller than the sum of the number of VNIs allocated by the other device and the number of unassigned VNIs, the first device allocates the unassigned VNIs to the first device and the second device, so that the number of VNIs allocated to the first device and the second device is different by less than a preset value.
In some embodiments, the device configuration method further comprises: the second device sends the VNI configured by the second device to the first device; the second device obtains the VNI allocated to the second device by the first device.
According to a second aspect of some embodiments of the present invention, there is provided a VXLAN device, the VXLAN device being a first device, comprising: the first VNI acquisition module is configured to acquire a VNI configured by the first device; a second VNI obtaining module configured to obtain a VNI configured by a second device; the VNI distribution module is configured to distribute the VNIs to the first device and the second device again according to the acquired VNIs, so that the difference of the number of the VNIs distributed to the first device and the second device is smaller than a preset value; and the VNI sending module is configured to send the VNI distributed for the second device to the second device.
In some embodiments, the VXLAN device further comprises: an ISIS neighbor establishment module configured to establish an intermediate system to intermediate system ISIS neighbor with the second device.
In some embodiments, the second VNI acquisition module is further configured to acquire a second device configured VNI that the second device sends via a link state protocol data unit, LSP, of the ISIS protocol.
In some embodiments, the VNI sending module is further configured to send the VNI assigned to the second device via an LSP message of an ISIS protocol.
In some embodiments, the VNI assignment module is further configured to assign VNIs configured only in the first device to the first device and VNIs configured only in the second device to the second device.
In some embodiments, the VNI assignment module is further configured to assign VNIs configured only in the first device to the first device and VNIs configured only in the second device to the second device; in the case that the number of VNIs allocated to a device with a large number of VNIs allocated to a first device and a second device is larger than the sum of the number of VNIs allocated to another device and the number of unassigned VNIs, allocating the unassigned VNIs to a device with a small number of VNIs configured in the first device and the second device, and converting a part of VNIs allocated to a device with a small number of VNIs from the device with a large number of VNIs configured to the device with a small number of VNIs configured, so that the difference between the numbers of VNIs allocated to the first device and the second device is smaller than a preset value; in the case that the number of VNIs allocated by a device with a large number of VNIs allocated in the first device and the second device is equal to the sum of the number of VNIs allocated by another device and the number of unassigned VNIs, the unassigned VNIs allocated to a device with a small number of VNIs configured in the first device and the second device; and in the case that the number of the VNIs allocated to the device with the larger number of the VNIs allocated to the first device and the second device is smaller than the sum of the number of the VNIs allocated to the other device and the number of the unassigned VNIs, allocating the unassigned VNIs to the first device and the second device, so that the number difference of the VNIs allocated to the first device and the second device is smaller than a preset value.
According to a third aspect of some embodiments of the present invention, there is provided a VXLAN device system comprising: any one of the VXLAN devices, and a second device configured to send a VNI configured by the second device to the first device; the second device obtains the VNI allocated to the second device by the first device.
According to a fourth aspect of some embodiments of the present invention, there is provided a device configuration apparatus comprising: a memory; and a processor coupled to the memory, the processor configured to perform any of the foregoing device configuration methods based on instructions stored in the memory.
According to a fifth aspect of some embodiments of the present invention, there is provided a computer-readable storage medium having stored thereon a computer program, wherein the program, when executed by a processor, implements any of the foregoing device configuration methods.
Some of the embodiments of the above invention have the following advantages or benefits: by the method of the embodiment of the invention, the devices in the VXLAN network can collect the VNIs configured by the devices and other devices, and reassign the VNIs to each device, so that the flow of the VXLAN network tenant can be distributed to a plurality of devices as evenly as possible through dynamic binding of the dynamic negotiation VNIs and the VXLAN tunnels, thereby realizing the load balancing of the VXLAN network devices and improving the forwarding performance of the VXLAN network.
Other features of the present invention and its advantages will become apparent from the following detailed description of exemplary embodiments of the invention, which proceeds with reference to the accompanying drawings.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the invention, and that other drawings can be obtained according to these drawings without inventive faculty for a person skilled in the art.
Fig. 1 is a flow chart of a device configuration method according to some embodiments of the invention.
Fig. 2 is a flow chart of a device configuration method according to some embodiments of the invention.
Fig. 3 is a schematic diagram of a VNI TLV format with TLV fields defined for some embodiments of the invention.
Fig. 4 is a flow chart illustrating a VNI assignment method according to some embodiments of the invention.
Fig. 5 is a flow chart of a device configuration method according to some embodiments of the invention.
Fig. 6 is a schematic diagram of a VXLAN device according to some embodiments of the present invention.
Fig. 7 is a schematic diagram of a VXLAN device system in accordance with some embodiments of the present invention.
Fig. 8 is a schematic structural view of a device configuration apparatus according to some embodiments of the present invention.
Fig. 9 is a schematic structural view of an apparatus configuration device according to other embodiments of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. The following description of at least one exemplary embodiment is merely exemplary in nature and is in no way intended to limit the invention, its application, or uses. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The relative arrangement of the components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless it is specifically stated otherwise.
Meanwhile, it should be understood that the sizes of the respective parts shown in the drawings are not drawn in actual scale for convenience of description.
Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail, but should be considered part of the specification where appropriate.
In all examples shown and discussed herein, any specific values should be construed as merely illustrative, and not a limitation. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further discussion thereof is necessary in subsequent figures.
Fig. 1 is a flow chart of a device configuration method according to some embodiments of the invention. As shown in fig. 1, the device configuration method of this embodiment includes steps S102 to S108.
In step S102, the first device obtains a VXLAN network identifier (VXLAN Network Identifier, abbreviated as VNI) configured by the first device.
In step S104, the first device acquires a VNI configured by the second device.
The first device and the second device may be core devices in a data center network, and the user may simultaneously provide VXLAN network services to the user, for example, may be core devices such as VXLAN gateways in a dual-active data center.
The first device and the second device may complete the configuration of the VNI according to a VNI configuration instruction sent by the user through the VXLAN view. For example, the instruction of the user to enable VXLAN 1 is as follows.
vxlan
vxlan enable 1
For another example, the user can command VXLAN 1 to 100 as follows.
vxlan
vxlan enable 1-100
After enabling the VNIs, VXLAN modules on the first device and the second device allocate forwarding resources such as a memory and a forwarding table for each VNI.
In addition to the second device sending the self-configured VNI to the first device, the second device may also send the self-configured VNI to the first device.
In step S106, the first device reallocates VNIs to the first device and the second device according to the acquired VNIs, so that the number difference of VNIs allocated to the first device and the second device is smaller than a preset value. In some embodiments, the preset value is 0 or 1, i.e. in case the total number of VNIs is even, the VNIs are equally assigned to the first device and the second device; in the case where the total number of VNIs is an odd number, the number of VNIs allocated to the first device and the second device differ by 1, so that the number of VNIs allocated to the first device and the second device is as close as possible.
In step S108, the first device transmits the VNI allocated to the second device. Thus, the first device and the second device may perform data forwarding in the VXLAN network according to the assigned VNI.
By the method of the embodiment, the devices in the VXLAN network can collect the VNIs configured by the devices and other devices, and reassign the VNIs to each device, so that the traffic of the VXLAN network tenant can be distributed to a plurality of devices as evenly as possible through dynamic binding of the VXLAN tunnel and the VXLAN network is dynamically negotiated, load balancing of the VXLAN network devices is achieved, and forwarding performance of the VXLAN network is improved.
In some embodiments, the learning process of the VNI may be performed between different VXLAN network devices via an intermediate system-to-intermediate system (Intermediate System to Intermediate System, abbreviated as ISIS) protocol. An embodiment of the device configuration method of the present invention is described below with reference to fig. 2.
Fig. 2 is a flow chart of a device configuration method according to some embodiments of the invention. As shown in fig. 2, the device configuration method of this embodiment includes steps S202 to S204.
In step S202, the first device establishes ISIS neighbors with the second device.
The procedure by which the first device establishes ISIS neighbors with the second device is exemplarily described below. If the first device and the second device are three-layer path reachable, ISIS may be configured on the first device and the second device and enabled on an interface for establishing neighbors. The ISIS modules in the first device and the second device send broadcast hello packets through the interface and carry their own information, such as DIS (Designated Intermedia System, designating an intermediate system) priority, ISIS network-entity (network entity) for representing the ISIS identity of the device, and so on. After an ISIS module of one device receives a hello message, checking whether a local ISIS network-entity exists, if so, the two-way is passed, and a neighbor relation is established; if not, adding the ISIS network-entity of the opposite terminal into hello message of the local interface for broadcasting.
In step S204, in response to the first device having a higher priority than the second device, the first device acts as a master device. A master device refers to a device for determining an allocation of VNIs.
In some embodiments, the first device and the second device may determine the priority by comparing the sizes of the MAC addresses of the interfaces, with the devices with larger MAC addresses having higher priorities. In addition, the first device and the second device may also receive priorities configured by the user through the interface view.
Then, the first device and the second device may exchange VNIs based on ISIS protocol, where the exchanged VNIs may be a VNI originally configured by each device, or may be a VNI allocated by the master device to the slave device. Thus, the first device and the second device may carry VNIs based on ISIS protocol. The ISIS protocol has the characteristic of easy expansion, so the invention can realize the VNI learning process based on the ISIS by utilizing the existing protocol.
Steps S206 to S210 may also be performed after the first device and the second device establish a connection based on the ISIS protocol.
In step S206, the first device acquires a VNI configured by the first device.
In step S208, the first device acquires a VNI configured by the second device, which is sent by the second device through a link state protocol data unit (Link State Protocol Data Unit, abbreviated as LSP) of the ISIS protocol.
ISIS is a link state protocol, and the protocol message of ISIS is LSP message, which is used for releasing link state information.
In step S210, the first device reallocates VNIs to the first device and the second device according to the acquired VNIs, so that the number difference of VNIs allocated to the first device and the second device is smaller than a preset value.
Thus, the second device may send its own configured VNI based on the LSP messages of the ISIS protocol.
Step S212 may also be performed after the first device completes VNI allocation.
In step S212, the first device sends the VNI allocated to the second device through the LSP packet of the ISIS protocol.
Thus, the first device may send the VNI assigned to the second device based on the LSP message of the ISIS protocol.
In some embodiments, the VNI information may be carried by adding a TLV (Type-Length-Value) field in the LSP message. In some embodiments, the TLV for carrying the VNI may be carried in the VARIABLE LENGTH FIELDS field of the ISIS LSP message. Fig. 3 is a schematic diagram of a VNI TLV format with TLV fields defined for some embodiments of the invention. As shown in fig. 3, the format includes a TYPE, LENGTH, VALUE field, where the TYPE field is divided into two TYPEs, synchronization and allocation, for synchronization VNI (e.g., step S208) and allocation VNI (e.g., step S212), respectively; the VALUE field is a set of VNIs, the VALUE of each VNI occupies 4 bytes, the VNI identity itself occupies 3 bytes, 1 byte is a reserved (Reserve) byte, and one VNI TLV can carry a maximum of 64 VNIs.
By the method of the embodiment, the VNI can be synchronized, calculated and distributed among the devices through the ISIS protocol in the VXLAN network, so that the automatic configuration of the VNI distribution and the VXLAN tunnel binding is realized, and the configuration efficiency and the configuration accuracy are improved.
In some embodiments, when VNIs are allocated, VNIs configured only in the first device may be allocated to the first device and VNIs configured only in the second device may be allocated to the second device. Therefore, the configuration workload after the VNI is redistributed can be reduced, and the operation efficiency of the system is improved. The adjustment can also be performed based on this allocation principle to achieve load balancing of the first device and the second device, as needed. An embodiment of the VNI distribution method of the present invention is described below with reference to fig. 4.
Fig. 4 is a flow chart illustrating a VNI assignment method according to some embodiments of the invention. As shown in fig. 4, the VNI distribution method of this embodiment includes steps S402 to S410.
In step S402, VNIs configured only in the first device are allocated to the first device, and VNIs configured only in the second device are allocated to the second device.
The allocation procedure may be regarded as a pre-allocation procedure. In a subsequent step, if the number of VNIs allocated by the first device and the second device is not balanced, the VNI originally configured to one of the devices may also be allocated to the other device.
In step S404, a relationship between the number of VNIs allocated by a device having a larger number of VNIs allocated among the first device and the second device and the sum of the number of VNIs allocated by the other device and the number of unassigned VNIs is determined. If yes, go to step S406; if less, go to step S408; if the number of VNIs allocated by one device is equal to the sum of the number of VNIs allocated by another device and the number of unassigned VNIs, step S410 is performed.
In step S406, the unassigned VNIs are assigned to the device with the smaller number of VNIs configured in the first device and the second device, and a part of the VNIs assigned to the device with the smaller number of VNIs configured by the device with the larger number of VNIs configured into the device with the smaller number of VNIs configured, so that the difference between the number of VNIs assigned to the first device and the second device is smaller than the preset value.
Since part of the VNIs configured only at one device are in turn assigned to another device, the other device may feed back the assigned but unconfigured VNIs to the user so that the user sends instructions to the other device to complete the configuration work of the part of the VNIs.
In step S408, unassigned VNIs are assigned to the first device and the second device such that the number of VNIs assigned to the first device and the second device differ by less than a preset value.
For example, let the number of VNIs configured only in the first device be V1, the number of VNIs configured only in the second device be V2, and the number of VNIs configured in both the first device and the second device be V12, V1> V2.
In step S410, unassigned VNIs assigned to a device with a small number of VNIs configured in the first device and the second device.
If V1> v2+v12, i.e. the number of VNIs configured by the first device is greater, and the number of VNIs allocated by the first device is greater than the sum of the number of VNIs allocated by the second device and the number of unassigned VNIs, then all of the unassigned V12 VNIs may be allocated to the second device, and at the same time, the assigned part of VNIs of the first device may be allocated to the second device, so that the VNIs allocated by the first device and the second device are as equal as possible.
If V1< V2+ V12, unallocated V12 VNIs may be allocated to the first device and the second device, respectively, such that the VNIs allocated by the first device and the second device are as equal as possible.
If v1=v2+v12, then the unassigned V12 VNIs may be directly assigned to the second device in their entirety.
By the method of the embodiment, on the premise of distributing the configured VNI to the equipment as much as possible, the VNI can be distributed to different equipment as much as possible, and the load balancing of the VXLAN network equipment is realized.
An application scenario of the device configuration method of the present invention is described below with reference to fig. 5.
Fig. 5 is a flow chart of a device configuration method according to some embodiments of the invention. As shown in fig. 5, the device configuration method of this embodiment includes steps S502 to S518.
In step S502, two core devices VTEP1 and VTEP2 of the data center establish ISIS neighbors. VTEP1 is provided with VXLAN 1 to VXLAN 5, and VTEP2 is provided with VXLAN 6 to VXLAN 20.
In step S504, VTEP1 is elected as the master device according to the priority.
In step S506, after the VTEP1 and the VTEP2 configure the VNIs locally, the VNIs configured by themselves are reported to the ISIS module in the device through the API interface.
In step S508, VTEP1 and VTEP2 synchronize VNIs using LSP messages through respective ISIS modules.
In step S510, VTEP1 as a master device calculates VNI allocation cases for VTEP1 and VTEP2 using ISIS module. The VXLAN 1 to VXLAN 10 are calculated to be assigned to VTEP1 and the VXLAN 11 to VXLAN 20 are calculated to be assigned to VTEP2.
In step S512, the VTEP1 transmits VXLAN 11 to VXLAN 20 assigned to the VTEP2 to the ISIS module of the VTEP2 by using the LSP message through the ISIS module.
In step S514, the ISIS modules of VTEP1 and VTEP2 issue the VNIs allocated to each to the VXLAN module by calling the API interface.
In step S516, VXLAN modules of VTEP1 and VTEP2 enable the issued VNIs and bind the VNIs with VXLAN tunnels.
In step S518, VTEP1 and VTEP2 forward tenant traffic in the VXLAN network according to the assigned VNI.
An embodiment of the VXLAN device of the present invention is described below with reference to fig. 6.
Fig. 6 is a schematic diagram of a VXLAN device according to some embodiments of the present invention. As shown in fig. 6, VXLAN apparatus 600 of the embodiment includes: a first VNI acquisition module 6100 configured to acquire a VNI configured by the first device; a second VNI acquisition module 6200 configured to acquire a VNI configured by a second device; the VNI assignment module 6300 is configured to reassign VNIs to the first device and the second device according to the acquired VNIs, so that a difference in number of VNIs assigned to the first device and the second device is smaller than a preset value; the VNI sending module 6400 is configured to send the VNI allocated for the second device to the second device.
In some embodiments, VXLAN device 600 further comprises: an ISIS neighbor establishment module 6500 configured to establish an intermediate system to intermediate system ISIS neighbor with the second device.
In some embodiments, the second VNI acquisition module 6200 is further configured to acquire a second device configured VNI that the second device sends via a link state protocol data unit, LSP, of the ISIS protocol.
In some embodiments, the VNI sending module 6400 is further configured to send the VNI assigned to the second device via an LSP message of an ISIS protocol.
In some embodiments, the VNI assignment module 6300 is further configured to assign VNIs configured only in the first device to the first device and VNIs configured only in the second device to the second device.
In some embodiments, the VNI assignment module 6300 is further configured to assign VNIs configured only in the first device to the first device and VNIs configured only in the second device to the second device; in the case that the number of VNIs allocated to a device with a large number of VNIs allocated to a first device and a second device is larger than the sum of the number of VNIs allocated to another device and the number of unassigned VNIs, allocating the unassigned VNIs to a device with a small number of VNIs configured in the first device and the second device, and converting a part of VNIs allocated to a device with a small number of VNIs from the device with a large number of VNIs configured to the device with a small number of VNIs configured, so that the difference between the numbers of VNIs allocated to the first device and the second device is smaller than a preset value; in the case that the number of VNIs allocated by a device with a large number of VNIs allocated in the first device and the second device is equal to the sum of the number of VNIs allocated by another device and the number of unassigned VNIs, the unassigned VNIs allocated to a device with a small number of VNIs configured in the first device and the second device; and in the case that the number of the VNIs allocated to the device with the larger number of the VNIs allocated to the first device and the second device is smaller than the sum of the number of the VNIs allocated to the other device and the number of the unassigned VNIs, allocating the unassigned VNIs to the first device and the second device, so that the number difference of the VNIs allocated to the first device and the second device is smaller than a preset value.
An embodiment of the VXLAN device system of the present invention is described below with reference to fig. 7.
Fig. 7 is a schematic diagram of a VXLAN device system in accordance with some embodiments of the present invention. As shown in fig. 7, VXLAN device system 70 of the embodiment includes a first device 710 and a second device 720. A specific implementation of the first device 710 may refer to VXLAN device 600 in the example of fig. 6.
The second device 720 is configured to send the second device configured VNI to the first device; the second device obtains the VNI allocated to the second device by the first device. The second device 720 is also a VXLAN device.
Fig. 8 is a schematic structural diagram of an apparatus configuration device according to some embodiments of the present invention, which may be located in a VXLAN apparatus, for example. As shown in fig. 8, the device configuration apparatus 80 of this embodiment includes: a memory 810 and a processor 820 coupled to the memory 810, the processor 820 being configured to perform the device configuration method of any of the previous embodiments based on instructions stored in the memory 810.
The memory 810 may include, for example, system memory, fixed nonvolatile storage media, and so forth. The system memory stores, for example, an operating system, application programs, boot Loader (Boot Loader), and other programs.
Fig. 9 is a schematic diagram of a device configuration apparatus according to other embodiments of the present invention, which may be located in a VXLAN device, for example. As shown in fig. 9, the device configuration apparatus 90 of this embodiment includes: memory 910 and processor 920 may also include input/output interfaces 930, network interfaces 940, storage interfaces 950, and so forth. These interfaces 930, 940, 950 and the memory 910 and the processor 920 may be connected by a bus 960, for example. The input/output interface 930 provides a connection interface for input/output devices such as a display, a mouse, a keyboard, a touch screen, and the like. Network interface 940 provides a connection interface for various networking devices. The storage interface 950 provides a connection interface for external storage devices such as SD cards, U discs, and the like.
An embodiment of the present invention also provides a computer-readable storage medium having stored thereon a computer program, characterized in that the program, when executed by a processor, implements any one of the aforementioned device configuration methods.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable non-transitory storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flowchart and/or block of the flowchart illustrations and/or block diagrams, and combinations of flowcharts and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing description of the preferred embodiments of the invention is not intended to limit the invention to the precise form disclosed, and any such modifications, equivalents, and alternatives falling within the spirit and scope of the invention are intended to be included within the scope of the invention.

Claims (12)

1. A device configuration method, comprising:
the method comprises the steps that a first device obtains VXLAN Network Identifiers (VNIs) configured by the first device;
the first device obtains the VNI configured by the second device;
the first device reallocates the VNIs to the first device and the second device according to the acquired VNIs so that the number difference of the VNIs allocated to the first device and the second device is smaller than a preset value, including:
the first device allocates VNIs configured only in the first device to the first device, and VNIs configured only in the second device to the second device;
in the case that the number of VNIs allocated to a device with a large number of VNIs allocated to a first device and a second device is larger than the sum of the number of VNIs allocated to another device and the number of unassigned VNIs, the first device allocates the unassigned VNIs to a device with a small number of VNIs configured in the first device and the second device, and converts a part of VNIs allocated to a device with a small number of VNIs in the device with a large number of VNIs configured into a device with a small number of VNIs configured, so that the difference of the number of VNIs allocated to the first device and the second device is smaller than a preset value;
in the case that the number of VNIs allocated by a device with a large number of VNIs allocated in the first device and the second device is equal to the sum of the number of VNIs allocated by another device and the number of unassigned VNIs, the unassigned VNIs allocated to a device with a small number of VNIs configured in the first device and the second device; and
in the case that the number of VNIs allocated by a device with a large number of VNIs allocated in the first device and the second device is smaller than the sum of the number of VNIs allocated by another device and the number of unassigned VNIs, the first device allocates the unassigned VNIs to the first device and the second device, so that the difference between the numbers of VNIs allocated to the first device and the second device is smaller than a preset value;
the first device sends the VNI assigned to the second device.
2. The device configuration method of claim 1, further comprising:
the first device establishes an intermediate system to intermediate system ISIS neighbor with the second device.
3. The device configuration method according to claim 2, wherein the first device obtains a VNI configured by the second device, which is sent by the second device through a link state protocol data unit LSP of an ISIS protocol.
4. The device configuration method according to claim 2, wherein the first device sends the VNI allocated to the second device through an LSP message of an ISIS protocol.
5. The device configuration method according to any one of claims 1 to 4, further comprising:
the second device sends the VNI configured by the second device to the first device;
the second device obtains the VNI allocated to the second device by the first device.
6. A VXLAN device, the VXLAN device being a first device, comprising:
the first VNI acquisition module is configured to acquire VXLAN network identifiers VNI configured by the first device;
a second VNI obtaining module configured to obtain a VNI configured by a second device;
the VNI allocation module is configured to re-allocate VNIs to the first device and the second device according to the acquired VNIs, so that the number difference of the VNIs allocated to the first device and the second device is smaller than a preset value, and includes: assigning VNIs configured only in the first device to the first device, and assigning VNIs configured only in the second device to the second device; in the case that the number of VNIs allocated to a device with a large number of VNIs allocated to a first device and a second device is larger than the sum of the number of VNIs allocated to another device and the number of unassigned VNIs, allocating the unassigned VNIs to a device with a small number of VNIs configured in the first device and the second device, and converting a part of VNIs allocated to a device with a small number of VNIs from the device with a large number of VNIs configured to the device with a small number of VNIs configured, so that the difference between the numbers of VNIs allocated to the first device and the second device is smaller than a preset value; in the case that the number of VNIs allocated by a device with a large number of VNIs allocated in the first device and the second device is equal to the sum of the number of VNIs allocated by another device and the number of unassigned VNIs, the unassigned VNIs allocated to a device with a small number of VNIs configured in the first device and the second device; in the case that the number of VNIs allocated to a device with a large number of VNIs in the first device and the second device is smaller than the sum of the number of VNIs allocated to another device and the number of unassigned VNIs, assigning the unassigned VNIs to the first device and the second device, so that the number difference of VNIs allocated to the first device and the second device is smaller than a preset value;
and the VNI sending module is configured to send the VNI distributed for the second device to the second device.
7. The VXLAN apparatus of claim 6, further comprising:
an ISIS neighbor establishment module configured to establish an intermediate system to intermediate system ISIS neighbor with the second device.
8. The VXLAN device of claim 7, wherein the second VNI acquisition module is further configured to acquire a second device-configured VNI that the second device sends via a link state protocol data unit, LSP, of the ISIS protocol.
9. The VXLAN device of claim 7, wherein the VNI sending module is further configured to send the VNI assigned to the second device via an LSP message of an ISIS protocol.
10. A VXLAN equipment system, comprising:
the VXLAN device of any one of claims 6-9; and
a second device configured to send a second device configured VNI to the first device; the second device obtains the VNI allocated to the second device by the first device.
11. A device configuration apparatus, comprising:
a memory; and
a processor coupled to the memory, the processor configured to perform the device configuration method of any of claims 1-5 based on instructions stored in the memory.
12. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, implements the device configuration method of any one of claims 1 to 5.
CN201811423011.5A 2018-11-27 2018-11-27 Device configuration method, system and related device Active CN111224887B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811423011.5A CN111224887B (en) 2018-11-27 2018-11-27 Device configuration method, system and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811423011.5A CN111224887B (en) 2018-11-27 2018-11-27 Device configuration method, system and related device

Publications (2)

Publication Number Publication Date
CN111224887A CN111224887A (en) 2020-06-02
CN111224887B true CN111224887B (en) 2023-06-27

Family

ID=70828804

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811423011.5A Active CN111224887B (en) 2018-11-27 2018-11-27 Device configuration method, system and related device

Country Status (1)

Country Link
CN (1) CN111224887B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801771A (en) * 2005-01-04 2006-07-12 华为技术有限公司 Method for sending virtual LAN data
CN102769556A (en) * 2012-06-01 2012-11-07 杭州华三通信技术有限公司 Dynamic regulation method and device for active VLAN
CN104104747A (en) * 2014-07-28 2014-10-15 杭州华三通信技术有限公司 Method and device for message transmission
EP2961109A1 (en) * 2014-06-27 2015-12-30 Arista Networks, Inc. Method and system for implementing a vxlan control plane
WO2016036305A1 (en) * 2014-09-05 2016-03-10 Telefonaktiebolaget L M Ericsson (Publ) Explicit control of aggregation links via is-is
WO2018019092A1 (en) * 2016-07-27 2018-02-01 华为技术有限公司 Method for allocating vlan id in network, and controller
CN107846342A (en) * 2016-09-20 2018-03-27 华为技术有限公司 A kind of retransmission method, equipment and the system of VXLAN messages

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009146165A1 (en) * 2008-04-15 2009-12-03 Blade Network Technologies, Inc. Network virtualization for a virtualized server data center environment
US20130177022A1 (en) * 2012-01-05 2013-07-11 General Electric Company Dynamic Virtual LANs to Segregate Data

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1801771A (en) * 2005-01-04 2006-07-12 华为技术有限公司 Method for sending virtual LAN data
CN102769556A (en) * 2012-06-01 2012-11-07 杭州华三通信技术有限公司 Dynamic regulation method and device for active VLAN
EP2961109A1 (en) * 2014-06-27 2015-12-30 Arista Networks, Inc. Method and system for implementing a vxlan control plane
CN104104747A (en) * 2014-07-28 2014-10-15 杭州华三通信技术有限公司 Method and device for message transmission
WO2016036305A1 (en) * 2014-09-05 2016-03-10 Telefonaktiebolaget L M Ericsson (Publ) Explicit control of aggregation links via is-is
WO2018019092A1 (en) * 2016-07-27 2018-02-01 华为技术有限公司 Method for allocating vlan id in network, and controller
CN107846342A (en) * 2016-09-20 2018-03-27 华为技术有限公司 A kind of retransmission method, equipment and the system of VXLAN messages
WO2018054156A1 (en) * 2016-09-20 2018-03-29 华为技术有限公司 Vxlan message forwarding method, device and system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
"IP multicast in virtualized data centers: Challenges and opportunities";Olufemi Komolafe;《2017 IFIP/IEEE Symposium on Integrated Network and Service Management (IM)》;20170724;全文 *
"可扩展虚拟局域网驱动系统的设计与实现";朱敏;《万方》;20161025;全文 *
虚拟局域网(VLAN)技术在网络管理中的应用;宋要兵等;《吉林交通科技》;20040325(第01期);全文 *

Also Published As

Publication number Publication date
CN111224887A (en) 2020-06-02

Similar Documents

Publication Publication Date Title
CN112217746B (en) Message processing method, host and system in cloud computing system
CN108293022B (en) Method, device and system for transmitting message
Abedin et al. A Fog based system model for cooperative IoT node pairing using matching theory
AU2013351670B2 (en) Business scheduling method and apparatus and convergence device
CN108924268B (en) Container cloud service system and pod creation method and device
CN105610632B (en) Virtual network equipment and related method
CN104243265A (en) Gateway control method, device and system based on virtual machine migration
WO2016169218A1 (en) Gateway virtualization method and system, and computer storage medium
WO2022152089A1 (en) Information transmission method and device thereof
CN113839995B (en) Cross-domain resource nano-tube system, method, equipment and storage medium
CN104618508A (en) Load balancing mesh architecture based on Nginx, Memcached and Tomcat
CN105099950A (en) Resource allocation method, message communication method and devices
CN105264837B (en) A kind of Transmission system of data message, transmission method and equipment
CN113162785A (en) Method, device and system for establishing network interface
CN112787952A (en) Service flow adjusting method and device
CN111224887B (en) Device configuration method, system and related device
CN114675960A (en) Computing resource allocation method and device and nonvolatile storage medium
CN105791147A (en) Connection method of load equalizer, instantiated deployment method and device for business
CN114827781B (en) Network collaboration method, device, equipment and storage medium
CN103684965A (en) Exchanging device allocated based on VDs and message transmitting method allocated based on VDs
CN109981694B (en) Synchronization method, server and terminal
CN108259345B (en) Port generation method and device
CN112953808B (en) VPN data transmission method, device and server
CN112887185B (en) Communication method and device of overlay network
CN108134857B (en) IP address allocation method, device and system

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

Effective date of registration: 20220127

Address after: 100007 room 205-32, floor 2, building 2, No. 1 and No. 3, qinglonghutong a, Dongcheng District, Beijing

Applicant after: Tianyiyun Technology Co.,Ltd.

Address before: No.31, Financial Street, Xicheng District, Beijing, 100033

Applicant before: CHINA TELECOM Corp.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant