CN114006886B - Method, device and storage medium for solving MAC address conflict of multi-control server - Google Patents

Method, device and storage medium for solving MAC address conflict of multi-control server Download PDF

Info

Publication number
CN114006886B
CN114006886B CN202111122137.0A CN202111122137A CN114006886B CN 114006886 B CN114006886 B CN 114006886B CN 202111122137 A CN202111122137 A CN 202111122137A CN 114006886 B CN114006886 B CN 114006886B
Authority
CN
China
Prior art keywords
mac address
control module
virtual network
network device
mac
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
CN202111122137.0A
Other languages
Chinese (zh)
Other versions
CN114006886A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111122137.0A priority Critical patent/CN114006886B/en
Publication of CN114006886A publication Critical patent/CN114006886A/en
Application granted granted Critical
Publication of CN114006886B publication Critical patent/CN114006886B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The application relates to a method, a device and a storage medium for solving MAC address conflict of a multi-control server. The method comprises the following steps: configuring a unique identification number for the control module; determining the optional range of all screening bits in the MAC addresses according to the identification number of each control module, and forming an MAC address subset of the corresponding control module by all MAC address sets of the screening bits in the optional range; when the virtual network device is created on the control module, a target MAC address is selected from the corresponding MAC address subset to be used as the MAC address of the virtual network device, wherein the target MAC address is different from the MAC address of the existing virtual network device on the same control module. When the MAC addresses are configured for the virtual network equipment on different control modules, the selective value ranges of the MAC address screening bits corresponding to the different control modules are different, and the MAC addresses among the different control modules cannot collide; when MAC address configuration is carried out on virtual network equipment of the same control module, the calculated amount required for avoiding the conflict of the MAC address is small.

Description

Method, device and storage medium for solving MAC address conflict of multi-control server
Technical Field
The present invention relates to the field of virtual network device MAC configuration, and in particular, to a method, an apparatus, and a storage medium for resolving MAC address conflicts of a multi-control server.
Background
The MAC Address (Media Access Control Address) is a unique identifier assigned to a network interface, commonly referred to as an Ethernet Address (Ethernet Address) or Physical Address (Physical Address), for communication over a Physical network segment, confirming the Physical location of the network device.
In the OSI model, the third layer network layer is responsible for IP addresses, and the second layer network layer is responsible for MAC addresses, which are used to uniquely identify a network card in the network.
In the function realization process of the server, a virtual machine is created by adopting a virtualization technology, partial functions are realized by being placed in the virtual machine, virtual network equipment is required to be set for network communication of the virtual machine, and the MAC address of the virtual network equipment is distributed by a system.
For the multi-control server, with optimization and improvement of the server, the number of maximum virtual network devices supported by the system is increased, and only the system allocates the MAC address, so that the MAC address conflict of the virtual network devices in the content of the multi-control server is easily caused. Once the MAC addresses of the virtual network devices in the same server collide, the transmission function of network data is affected, the virtual network devices are frequently disconnected, and network data packet sending and receiving are disordered.
Disclosure of Invention
In order to solve the technical problems described above or at least partially solve the technical problems described above, the present application provides a method, an apparatus and a storage medium for solving MAC address collision of a multi-control server.
In a first aspect, the present application provides a method for resolving MAC address conflicts of a multi-control server, including:
configuring a unique identification number for each control module of the multi-control server;
determining the optional range of all screening bits in the MAC addresses according to the identification number of each control module, and forming an MAC address subset of the corresponding control module by all MAC address sets with the screening bits in the optional range;
when the virtual network device is created on the control module, a target MAC address is selected from the corresponding MAC address subset to be used as the MAC address of the virtual network device, wherein the target MAC address is different from the MAC address of the existing virtual network device on the same control module.
Further, the identification number is a group of numbers sequentially incremented by one from the beginning of the corresponding control module.
Still further, the determining the selectable range of all the screening bits in the MAC address according to the identification number of each control module, and forming the MAC address subset of the corresponding control module from all the MAC address sets with the screening bits in the selectable range includes:
acquiring the number of control modules;
a digit list formed by a selectable digit corpus on a screening bit of the MAC address in sequence, wherein the position of each digit element in the digit list is mapped with a slice number;
determining an identification number of a control module corresponding to the MAC address subset;
the method comprises the steps of creating a slicing variable corresponding to a control module, and assigning a corresponding identification number minus one;
iterating the slice variables in a mode of trimming variable= (slice variables+control module quantity)% 16 to obtain slice variables within 16, wherein the% represents remainder;
selecting numbers from the number list according to all slice variables as selectable ranges of numbers on each screening bit of the MAC address;
the set of MAC addresses whose screening bits are within the selectable range is traversed to form a subset of MAC addresses for the corresponding control module.
Further, the screening bit is selected from the last three bytes of the MAC address.
Further, the process of implementing that the target MAC address is different from the MAC address of the existing virtual network device on the same control module includes:
for each control module, creating a corresponding set of assigned MAC addresses and a set of unassigned MAC addresses;
initializing an unallocated MAC address set into an MAC address subset corresponding to the control module;
when creating a virtual network device on the control module and configuring the MAC address, selecting a destination MAC address from the unassigned set of MAC addresses,
deleting the selected MAC address from the unassigned MAC address set;
the selected destination MAC address is added to the set of assigned MAC addresses.
Further, when deleting the virtual network device, acquiring the MAC address of the virtual network device;
deleting the MAC address of the deleted virtual network device from the assigned MAC address set;
the MAC address of the deleted virtual network device is added to the unassigned set of MAC addresses.
Further, the process of implementing that the target MAC address is different from the MAC address of the existing virtual network device on the same control module includes:
acquiring the number of all virtual network devices on a control module, wherein all the network devices comprise created virtual network devices and the virtual network devices are being created;
and selecting the determined number of MAC addresses from the MAC address subsets corresponding to the control module, and configuring the MAC addresses of the virtual network equipment by the selected MAC addresses.
Further, the process of implementing that the target MAC address is different from the MAC address of the existing virtual network device on the same control module includes:
traversing the configuration file of the created virtual network device on the control module to acquire the MAC address of the created virtual network device;
when creating a new virtual network device, traversing all MAC addresses in the MAC address subset until a target MAC address is acquired, wherein the target MAC address is different from the MAC address of the created virtual network device.
In a second aspect, the present application provides an apparatus for resolving MAC address conflicts for a multi-control server, including: the configuration module comprises an identification number of a configuration control module and selection of configuration screening bits;
a MAC address subset creation module that determines an optional range of screening bits in the MAC address based on the identification number of the control module, forming a MAC address subset of the corresponding control module by all MAC address sets with screening bits in a selectable range;
and the MAC address configuration module is used for selecting non-conflicting MAC addresses in the optional range of the MAC addresses to configure the MAC addresses of the virtual network equipment.
In a third aspect, the present application provides a storage medium for implementing a method for resolving a MAC address conflict of a multi-control server, where the storage medium implementing the method for resolving a MAC address conflict of a multi-control server stores at least one instruction, and reads and executes the instruction to implement the method for resolving a MAC address conflict of a multi-control server as described above.
Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages:
different identification numbers are configured for different control modules in the multi-control server, and screening bits are selected from the last three bytes of the MAC address; and determining the selectable range of the numbers of the screening bits of the MAC addresses corresponding to the different control modules by utilizing the identification numbers of the different control modules. The traversal screening bits each correspond to a selectable range of MAC addresses to form a subset of MAC addresses corresponding to different control modules. When virtual network devices are created on different control modules, non-conflicting MAC addresses are acquired from corresponding MAC address subsets for configuration. On one hand, the optional range of numbers on the MAC address screening bits corresponding to different control modules has no intersection, so that the MAC addresses of virtual network devices on different control modules are ensured not to conflict; on the other hand, the MAC address selection range between virtual network devices on the same control module does not exceed the corresponding MAC address subset, the data processing amount is small, the MAC address comparison operation calculation amount is less in the MAC address allocation or MAC address conflict detection process, and the MAC address conflict detection or MAC address allocation is faster.
The control module where the virtual network equipment is located can be judged through the MAC address of the virtual network equipment.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
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, and it will be obvious to a person skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a flowchart of a method for resolving MAC address conflicts of a multi-control server according to an embodiment of the present application;
fig. 2 is a flowchart of determining an optional range of all filtering bits in a MAC address according to an identification number of each control module provided in an embodiment of the present application, where a set of all MAC addresses with all filtering bits in the optional range forms a MAC address subset of the corresponding control module;
fig. 3 is a flowchart of iterating slice variables in a manner that a trimming variable= (slice variable+m)% 16 is provided in an embodiment of the present application, to obtain slice variables within 16;
fig. 4 is a flowchart of a first implementation, provided in the embodiment of the present application, that the target MAC address is different from the MAC address of the existing virtual network device on the same control module;
fig. 5 is a flowchart of a second implementation, provided in the embodiment of the present application, that the target MAC address is different from the MAC address of the existing virtual network device on the same control module;
fig. 6 is a flowchart of a third implementation, provided in the embodiment of the present application, that the target MAC address is different from the MAC address of the existing virtual network device on the same control module;
fig. 7 is a schematic diagram of an apparatus for resolving MAC address conflicts of a multi-control server according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present application based on the embodiments herein.
It should be noted that, in this document, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The MAC address (Media Access Control Address) is an address used to identify the location of the network device. In the OSI model, the third layer network layer is responsible for IP addresses, and the second layer data link layer is responsible for MACs. The MAC address is used to uniquely identify a network card in the network, and if a device has one or more network devices, each network device needs and has a unique MAC address. The MAC address has 48 bits in binary, wherein the first 24 bits (i.e., the first three bytes) generally represent the equipment vendor or virtualization management platform provider according to a protocol convention, and the 6-bit hexadecimal number formed by the last 24 bits (i.e., the last three bytes) is optional as a screening bit in the present application.
For virtual network devices simulated by software functions in a server, MAC addresses different from each other need to be provided to ensure normal communication of the virtual network devices.
Example 1
Referring to fig. 1, an embodiment of the present application provides a method for resolving MAC address conflicts of a multi-control server, including:
s100, configuring a unique identification number for each control module of the multi-control server; specifically, the identification number is a group of numbers which are sequentially increased by one from the beginning and correspond to the control module. Such as: the control module a in the multi-control server corresponds to the number 1, and the control module b corresponds to the number 2 … ….
S200, selecting a screening bit from the last three bytes of the MAC address; specifically, in the hexadecimal case, the specific form of the MAC address is as follows xx: xx: xx: s is(s) 3 s 3 :s 2 s 2 :s 1 s 1, . Each s represents a selectable screening bit. The manner of selecting the screening bits from the last three bytes includes: s is(s) 1 s 1 、s 2 s 2 Sum s 1 s 1 、s 3 s 3 、s 2 s 2 Sum s 1 s 1 . In the implementation process, the user controls the selection of the screening bits through the configuration interface selected by the screening bits.
S300, determining the optional range of all screening bits in the MAC address according to the identification number of each control module, and forming the MAC address subset of the corresponding control module by all MAC address sets with all the screening bits in the optional range.
In a specific implementation process, referring to fig. 2, determining the optional range of all the filtering bits in the MAC address according to the identification number of each control module, and forming the MAC address subset of the corresponding control module from all the MAC address sets with all the filtering bits in the optional range includes:
s301, acquiring the number of control modules; specifically, the identification number of the control module is a group of numbers which are sequentially increased by one from the beginning and correspond to the control module, and the number of the control module is the maximum value of the identification number.
S302, a digit list formed by a selectable digit corpus on a screening bit of the MAC address in sequence is mapped with a slice number at the position of each digit element in the digit list; specifically, the number list contains 0-15 sixteen numbers which are sequentially increased. Digital list
= [0,1,2,3,4,5,6,7,8,9, a, b, c, d, e, f ], wherein the numbers in the list of numbers
The nth bit maps the slice number N-1.
S303, determining the control module corresponding to the MAC address subset and the identification number of the control module.
S304, a slice variable corresponding to the control module is created, and assigned as a corresponding identification number minus one. At k a Represents a slice variable, wherein a=1, 2,3 … …; m represents the identification number of the target control module, and the slice variable k corresponding to the target control module 1 =M-1。
S305, iterating the slice variables in a mode of trimming variable= (slice variable +M)% 16 to obtain slice variables within 16, wherein the% represents remainder; specifically, referring to fig. 3, the method includes:
s3051, comparing whether the value of the slice variable does not exceed 15, if so, executing S3052, otherwise ending the loop.
S3052, outputting the slice variable to a slice variable container; and the process goes to S3053,
s3053, press k a =(k a-1 +M)% 16 acquires a new slice variable, returning to S3051.
S306, selecting numbers from the number list according to all slice variables as the selectable range of the numbers on each screening bit of the MAC address; specifically, the corresponding number is selected from the number list according to all the slice variable values in the slice container to serve as the optional range of the MAC address for each filtering upper number.
S307, traversing all MAC addresses with all screening bits in the optional range, and forming a MAC address subset of the corresponding control module by all the MAC address sets meeting the requirements.
S400, when the virtual network device is created on the control module, selecting a target MAC address from the corresponding MAC address subset as the MAC address of the virtual network device, wherein the target MAC address is different from the MAC address of the existing virtual network device on the same control module.
In the implementation process, participating in the process shown in fig. 4, a feasible process for implementing that the target MAC address is different from the MAC address of the existing virtual network device on the same control module includes:
s401, for each control module, creating a corresponding assigned MAC address set and unassigned MAC address set;
s402, initializing an unallocated MAC address set into a MAC address subset corresponding to the control module;
s403, when virtual network equipment is created on the control module and an MAC address is configured, selecting a target MAC address from a non-allocated MAC address set;
s404, deleting the selected MAC address from the unassigned MAC address set, and adding the selected target MAC address to the assigned MAC address set.
Correspondingly, when deleting the MAC address occupied by the virtual network equipment released by the virtual network equipment, acquiring the MAC address of the virtual network equipment; deleting the MAC address of the deleted virtual network device from the assigned MAC address set; the MAC address of the deleted virtual network device is added to the unassigned set of MAC addresses.
Example 2
Example 2 differs from example 1 in that: the method realizes the process that the target MAC address is different from the MAC address of the existing virtual network equipment on the same control module.
In embodiment 2, referring to fig. 5, the process of implementing that the target MAC address is different from the MAC address of the existing virtual network device on the same control module includes:
s411, each time a new virtual network device is added, the number of all virtual network devices on the control module is obtained, where all the network devices include the created virtual network device and the virtual network device being created.
S412, selecting the number of MAC addresses determined in the step S411 from the MAC address subsets corresponding to the control modules.
S413, configuring the MAC address of the virtual network device with the selected MAC address.
Example 3
Example 3 differs from example 1 or from example 2 in that: the method realizes the process that the target MAC address is different from the MAC address of the existing virtual network equipment on the same control module.
In embodiment 3, referring to fig. 6, the process for implementing that the target MAC address is different from the MAC address of the existing virtual network device on the same control module includes:
s421, traversing the configuration file of the created virtual network device on the control module to acquire the MAC address of the created virtual network device;
s422, traversing to acquire the MAC addresses in the MAC address subset when creating a new virtual network device;
s423, traversing the screening bit from the last bit in the acquired MAC address screening bits, and comparing the number on the screening bit with the number of the screening bit corresponding to the MAC address of the created virtual network device.
S424, judging whether the acquired MAC address conflicts with the MAC address of the created virtual network device according to whether the numbers compared in S423 are the same, and ending when the first non-conflicting MAC address is acquired. The first non-conflicting MAC address is taken as the destination MAC address.
Example 4
Referring to fig. 7, an embodiment of the present application provides an apparatus for resolving MAC address collision of a multi-control server, including: the configuration module comprises an identification number of a configuration control module and selection of configuration screening bits;
a MAC address subset creation module that determines an optional range of screening bits in the MAC address based on the identification number of the control module, forming a MAC address subset of the corresponding control module by all MAC address sets with screening bits in a selectable range;
and the MAC address configuration module is used for selecting non-conflicting MAC addresses in the optional range of the MAC addresses to configure the MAC addresses of the virtual network equipment.
Example 5
The embodiment of the application provides a storage medium for realizing a method for solving the MAC address conflict of a multi-control server, wherein the storage medium for realizing the method for solving the MAC address conflict of the multi-control server stores at least one instruction, and the method for solving the MAC address conflict of the multi-control server is realized by reading and executing the instruction.
Different identification numbers are configured for different control modules in the multi-control server, and screening bits are selected from the last three bytes of the MAC address; and determining the selectable range of the numbers of the screening bits of the MAC addresses corresponding to the different control modules by utilizing the identification numbers of the different control modules. The traversal screening bits each correspond to a selectable range of MAC addresses to form a subset of MAC addresses corresponding to different control modules. When virtual network devices are created on different control modules, non-conflicting MAC addresses are acquired from corresponding MAC address subsets for configuration. On one hand, the optional range of numbers on the MAC address screening bits corresponding to different control modules has no intersection, so that the MAC addresses of virtual network devices on different control modules are ensured not to conflict; on the other hand, the MAC address selection range between virtual network devices on the same control module does not exceed the corresponding MAC address subset, the data processing amount is small, the MAC address comparison operation calculation amount is less in the MAC address allocation or MAC address conflict detection process, and the MAC address conflict detection or MAC address allocation is faster.
The control module where the virtual network equipment is located can be judged through the MAC address of the virtual network equipment.
It will be apparent to those skilled in the art that the techniques of embodiments of the present invention may be implemented in software plus a necessary general purpose hardware platform. Based on such understanding, the technical solution in the embodiments of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium such as a U-disc, a mobile hard disc, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or an optical disk, etc. various media capable of storing program codes, including several instructions for causing a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the method described in the embodiments of the present invention.
The same or similar parts between the various embodiments in this specification are referred to each other. In particular, for the terminal embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and reference should be made to the description in the method embodiment for relevant points.
In the several embodiments provided by the present invention, it should be understood that the disclosed systems, and methods may be implemented in other ways. For example, the system embodiments described above are merely illustrative, e.g., the division of the elements is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interface, system or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
Although the present invention has been described in detail by way of preferred embodiments with reference to the accompanying drawings, the present invention is not limited thereto. Various equivalent modifications and substitutions may be made in the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and it is intended that all such modifications and substitutions be within the scope of the present invention/be within the scope of the present invention as defined by the appended claims. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (9)

1. A method for resolving a multi-control server MAC address conflict, comprising:
configuring a unique identification number for each control module of the multi-control server;
determining the selectable range of all the screening bits in the MAC address according to the identification number of each control module, forming a MAC address subset of the corresponding control module by all the MAC address sets with all the screening bits in the selectable range, and comprising:
acquiring the number of control modules; a digit list formed by a selectable digit corpus on a screening bit of the MAC address in sequence, wherein the position of each digit element in the digit list is mapped with a slice number; determining an identification number of a control module corresponding to the MAC address subset; the method comprises the steps of creating a slicing variable corresponding to a control module, and assigning a corresponding identification number minus one; iterating the slice variables in a mode of trimming variable= (slice variables+control module quantity)% 16 to obtain slice variables within 16, wherein the% represents remainder; selecting numbers from the number list according to all slice variables as selectable ranges of numbers on each screening bit of the MAC address; traversing the MAC address set with the screening bits in the selectable range to form a MAC address subset corresponding to the control module;
when the virtual network device is created on the control module, a target MAC address is selected from the corresponding MAC address subset to be used as the MAC address of the virtual network device, wherein the target MAC address is different from the MAC address of the existing virtual network device on the same control module.
2. The method of claim 1, wherein the identification number is a set of numbers that are incremented by one from the beginning of the corresponding control module.
3. The method of claim 1, wherein the screening bits are selected from the last three bytes of the MAC address.
4. The method for resolving MAC address conflicts of a multi-control server according to claim 1, wherein the process of implementing the target MAC address to be different from the MAC address of the existing virtual network device on the same control module comprises:
for each control module, creating a corresponding set of assigned MAC addresses and a set of unassigned MAC addresses;
initializing an unallocated MAC address set into an MAC address subset corresponding to the control module;
when creating a virtual network device on the control module and configuring the MAC address, selecting a destination MAC address from the unassigned set of MAC addresses,
deleting the selected MAC address from the unassigned MAC address set;
the selected destination MAC address is added to the set of assigned MAC addresses.
5. The method for resolving a MAC address conflict of a multi-control server as claimed in claim 4, wherein the MAC address of the virtual network device is acquired when the virtual network device is deleted;
deleting the MAC address of the deleted virtual network device from the assigned MAC address set;
the MAC address of the deleted virtual network device is added to the unassigned set of MAC addresses.
6. The method for resolving MAC address conflicts of a multi-control server according to claim 1, wherein the process of implementing the target MAC address to be different from the MAC address of the existing virtual network device on the same control module comprises:
acquiring the number of all virtual network devices on a control module, wherein all the network devices comprise created virtual network devices and the virtual network devices are being created;
and selecting the determined number of MAC addresses from the MAC address subsets corresponding to the control module, and configuring the MAC addresses of the virtual network equipment by the selected MAC addresses.
7. The method for resolving MAC address conflicts of a multi-control server according to claim 1, wherein the process of implementing the target MAC address to be different from the MAC address of the existing virtual network device on the same control module comprises:
traversing the configuration file of the created virtual network device on the control module to acquire the MAC address of the created virtual network device;
when creating a new virtual network device, traversing all MAC addresses in the MAC address subset until a target MAC address is acquired, wherein the target MAC address is different from the MAC address of the created virtual network device.
8. An apparatus for resolving a MAC address conflict for a multi-control server, comprising: the configuration module comprises an identification number of a configuration control module and selection of configuration screening bits;
the MAC address subset creation module determines the optional range of the screening bits in the MAC address according to the identification number of the control module, and forms the MAC address subset of the corresponding control module by all the MAC address sets with all the screening bits in the optional range, and the process comprises the following steps:
acquiring the number of control modules; a digit list formed by a selectable digit corpus on a screening bit of the MAC address in sequence, wherein the position of each digit element in the digit list is mapped with a slice number; determining an identification number of a control module corresponding to the MAC address subset; the method comprises the steps of creating a slicing variable corresponding to a control module, and assigning a corresponding identification number minus one; iterating the slice variables in a mode of trimming variable= (slice variables+control module quantity)% 16 to obtain slice variables within 16, wherein the% represents remainder; selecting numbers from the number list according to all slice variables as selectable ranges of numbers on each screening bit of the MAC address; traversing the MAC address set with the screening bits in the selectable range to form a MAC address subset corresponding to the control module;
and the MAC address configuration module is used for selecting non-conflicting MAC addresses in the optional range of the MAC addresses to configure the MAC addresses of the virtual network equipment.
9. A storage medium implementing a method for resolving a multi-control server MAC address conflict, wherein the storage medium implementing the method for resolving a multi-control server MAC address conflict stores at least one instruction, and a processor reads and executes the instruction to implement the method for resolving a multi-control server MAC address conflict as claimed in any one of claims 1 to 7.
CN202111122137.0A 2021-09-24 2021-09-24 Method, device and storage medium for solving MAC address conflict of multi-control server Active CN114006886B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111122137.0A CN114006886B (en) 2021-09-24 2021-09-24 Method, device and storage medium for solving MAC address conflict of multi-control server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111122137.0A CN114006886B (en) 2021-09-24 2021-09-24 Method, device and storage medium for solving MAC address conflict of multi-control server

Publications (2)

Publication Number Publication Date
CN114006886A CN114006886A (en) 2022-02-01
CN114006886B true CN114006886B (en) 2023-08-08

Family

ID=79921852

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111122137.0A Active CN114006886B (en) 2021-09-24 2021-09-24 Method, device and storage medium for solving MAC address conflict of multi-control server

Country Status (1)

Country Link
CN (1) CN114006886B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105684357A (en) * 2013-11-07 2016-06-15 国际商业机器公司 Management of addresses in virtual machines
CN107071090A (en) * 2017-05-25 2017-08-18 深圳市伊特利网络科技有限公司 Application process and system of the virtual network address in the link of networking
CN110392122A (en) * 2018-04-16 2019-10-29 腾讯大地通途(北京)科技有限公司 The determination method and apparatus of address style, storage medium, electronic device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105684357A (en) * 2013-11-07 2016-06-15 国际商业机器公司 Management of addresses in virtual machines
CN107071090A (en) * 2017-05-25 2017-08-18 深圳市伊特利网络科技有限公司 Application process and system of the virtual network address in the link of networking
CN110392122A (en) * 2018-04-16 2019-10-29 腾讯大地通途(北京)科技有限公司 The determination method and apparatus of address style, storage medium, electronic device

Also Published As

Publication number Publication date
CN114006886A (en) 2022-02-01

Similar Documents

Publication Publication Date Title
US7848327B2 (en) Methods and apparatus for creating addresses
CN110247811A (en) A kind of alarm method and relevant apparatus of internet of things equipment
CN108810125B (en) Service discovery method and system for physical node
CN104267980B (en) Software score display method, terminal, data server and system
CN111585887B (en) Communication method and device based on multiple networks, electronic equipment and storage medium
CN111831232A (en) Data storage method and device, storage medium and electronic device
CN108696601A (en) Detect the hardware address conflict in computer network
CN112631780A (en) Resource scheduling method and device, storage medium and electronic equipment
CN110290228B (en) Internet protocol IP address allocation method and device
CN114006886B (en) Method, device and storage medium for solving MAC address conflict of multi-control server
CN115185454A (en) Virtual large-capacity disk access method, device, equipment and storage medium
CN112367256B (en) Creation method, device and storage medium
CN110809030A (en) Network flow control method and device, coder-decoder and storage device
CN113114571A (en) Data packet processing method and device, electronic equipment and storage medium
CN110636149B (en) Remote access method, device, router and storage medium
CN111262771B (en) Virtual private cloud communication system, system configuration method and controller
CN113687940A (en) Load balancing method and device and physical machine
CN108710514B (en) Object jump control method and device, storage medium and electronic device
CN114173396B (en) Method and device for determining terminal networking time, electronic equipment and storage medium
CN110086881A (en) Method for processing business, device and equipment
CN115766336A (en) Resource allocation method, device, equipment and storage medium
CN107295112B (en) Method and system for distributing domain names in limited network environment
CN114640678A (en) Pod management method, device and medium based on SR-IOV
CN114895933A (en) System upgrade method, network device, medium, and electronic device
CN110661655B (en) Cluster deployment method and system, electronic device and storage medium

Legal Events

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