+

WO2018161967A1 - Procédé, équipement et système d'attribution d'adresse de commande d'accès au support local - Google Patents

Procédé, équipement et système d'attribution d'adresse de commande d'accès au support local Download PDF

Info

Publication number
WO2018161967A1
WO2018161967A1 PCT/CN2018/078624 CN2018078624W WO2018161967A1 WO 2018161967 A1 WO2018161967 A1 WO 2018161967A1 CN 2018078624 W CN2018078624 W CN 2018078624W WO 2018161967 A1 WO2018161967 A1 WO 2018161967A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
allocated
conflict
address
registration message
Prior art date
Application number
PCT/CN2018/078624
Other languages
English (en)
Chinese (zh)
Inventor
敖婷
喻敬海
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018161967A1 publication Critical patent/WO2018161967A1/fr

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5046Resolving address allocation conflicts; Testing of addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Definitions

  • the present disclosure relates to network communication technologies, and in particular, to a method, device, and system for allocating local media access control (MAC) addresses.
  • MAC media access control
  • the expansion of the data center and the introduction of virtualization not only bring about an increase in physical equipment, but also bring about an exponential growth of virtual devices.
  • the growth of these devices has led to a sharp rise in the consumption of MAC addresses.
  • the conventional MAC address is that the above device has been assigned a fixed 48-bit MAC address at the time of manufacture or shipment to facilitate communication between devices.
  • the traditional MAC address will have many problems when it is applied. For example, the MAC address space capacity cannot meet the increasingly consumed MAC address; the MAC address is fixed; the MAC address is not layered and cannot provide other device-related Information, such as location information.
  • IEEE Institute of Electrical and Electronics Engineers
  • a concept of local MAC address that is, the MAC address is no longer globally unique in some network environments. A 48-bit address, but a unique localized address within the network. And a unified allocation of addresses can be used to uniformly allocate a local MAC address to each network element in the network.
  • the local MAC address is usually applied in the form of a request packet, so only the address allocation of the network device to the host and the like is involved, which is suitable for a small network, such as a small internal network scenario.
  • a small network such as a small internal network scenario.
  • how to obtain MAC addresses in multiple network devices requires related protocols.
  • the host can obtain the MAC address by self-declaration, but the entire network architecture is a client and server (C/S, Client/Server) architecture, so the centralized server is adopted. In this way, local MAC address allocation cannot be performed under other network architectures.
  • embodiments of the present disclosure are expected to provide a local address allocation method, device, and system; not only implementing a local address allocation protocol in multiple network devices, but also adapting to different local network architectures.
  • a method for allocating a local media access control address including:
  • the registration message of the local address is sent by the device to be allocated; wherein the registration message includes: a message identifier for uniquely identifying the registration message and an address block to be allocated that needs to be registered;
  • the device to be allocated determines, by the device to be allocated, the address to be allocated as the address of the device to be allocated, and sending a declaration message of the address; wherein the declaration message includes: The message identifier of the abbreviated message and the block of the address to be allocated that need to be declared.
  • the device to be allocated does not detect any conflict, and includes: after the device to be allocated sends the registration message according to a preset interval according to a preset interval, Determining the conflicting failure message of the registration message or the affirmation message of the address conflict, determining that the device to be allocated does not perceive an address block conflict to be allocated; wherein the conflict failure message includes: a message for uniquely identifying the conflict failure message The message identifier and the conflicting address block; the message identifier in the conflict failure message has a corresponding relationship with the message identifier in the registration message.
  • the method further includes: when the device to be allocated senses a conflict, the device to be allocated reselects an address block to be allocated, and resends the registration message.
  • the method further includes: when the device to be allocated receives the declaration message sent by the other device, and the address block that needs to be declared in the declaration message sent by the other device and the registration message
  • the address block to be allocated that needs to be registered is used for collision detection to determine whether a conflict occurs: if a conflict occurs, the address block to be allocated is reselected, and the original address block to be allocated in the registration message that needs to be registered is replaced with a reselection.
  • the block of addresses to be allocated if no conflicts occur, no processing is done.
  • the to-be-allocated address block that needs to be registered in the registration message is obtained by the device to be allocated according to a preset selection policy.
  • a method for allocating a local media access control address including:
  • the allocated device receives the registration message sent by the device to be allocated; wherein the registration message includes: a message identifier for uniquely identifying the registration message and an address block to be allocated that the device to be allocated needs to register;
  • the allocated device performs collision detection on the to-be-allocated address block in the registration message and its own local address;
  • the allocated device When a conflict occurs, the allocated device sends a conflict failure message to the to-be-allocated device; wherein the conflict failure message includes a message identifier for uniquely identifying the conflict failure message and an address block in which a conflict occurs.
  • the message identifier in the conflict failure message has a correspondence relationship with the message identifier in the registration message.
  • a method for allocating a local media access control address including:
  • the network device receives the registration message sent by the device to be allocated, where the registration message includes: a message identifier for uniquely identifying the registration message and an address block to be allocated that the device to be allocated needs to register;
  • the network device when the network device receives the conflict failure message for the registration message, forwarding the conflict failure message to the device to be allocated; wherein the conflict failure message includes a message for uniquely identifying the conflict failure message.
  • the message identifier and the address block where the conflict occurred;
  • the network device receives the adjacency message, establishing a forwarding mapping relationship according to the adjacency message; wherein the adjacency message includes a message identifier for uniquely identifying the adjacency message and an address to be declared.
  • the network device determines, according to a preset forwarding policy, whether to forward the registration message to other network devices other than the device to be allocated in the network, including: when the network device is configured to be allocated.
  • the network device performs collision detection on the address block to be allocated in the registration message and the address of the allocated device of the network device proxy: when a conflict occurs, the network device sends a corresponding conflict failure
  • the message when no conflict occurs, the network device forwards the registration message to other network devices other than the device to be allocated in the network.
  • the network device determines, according to a preset forwarding policy, whether to forward the registration message to other network devices other than the device to be allocated in the network, including: when the network device is not configured to be allocated.
  • the network device forwards the registration message to other network devices other than the device to be allocated in the network.
  • the network device forwarding the registration message to other network devices other than the device to be allocated in the network, including: after the network device acquires a receiving port for receiving a registration message, establishing a location Corresponding relationship between the message identifier of the registration message and the receiving port; sending the registration message through a port other than the receiving port.
  • the establishing a forwarding mapping relationship according to the adjacency message includes: the network device establishing a forwarding mapping relationship between a receiving port that receives the aforesaid message and an address declared in the abbreviated message.
  • a method for allocating a local media access control address including:
  • the database server receives the registration message sent by the device to be allocated, where the registration message includes: a message identifier for uniquely identifying the registration message and an address block to be allocated that needs to be registered;
  • the database server performs collision detection on the to-be-allocated address block and the saved address: wherein the saved address is an address in a usage state in the entire network;
  • the database server sends a conflict failure message to the device to be allocated; wherein the conflict failure message includes a message identifier for uniquely identifying the conflict failure message and an address block in which a conflict occurs.
  • the method further includes: when the database server receives the affirmation message, save an address that needs to be stated in the declaration message, and set a state of the address to be stated to a usage state.
  • the affirmative message includes a message identifier for uniquely identifying the affirmative message and an address to be claimed.
  • a device to be allocated includes: a first sending module, a sensing module, and a determining module;
  • the first sending module is configured to send a registration message of the local media access control address, where the registration message includes: a message identifier for uniquely identifying the registration message and an address block to be allocated that needs to be registered;
  • the sensing module is configured to detect a conflict; and when no conflict is perceived, the determining module and the first sending module are triggered;
  • the determining module is configured to determine the address block to be allocated as an address of the device to be allocated;
  • the first sending module is further configured to send a declaration message of the address, where the adjacency message includes: a message identifier for uniquely identifying the adjacency message and an address block to be allocated that needs to be declared.
  • the sensing module is configured to not receive a conflict with the registration message after the first sending module sends the registration message according to a preset interval period according to a preset number of times. Determining, by the failure message, the affirmative message of the address conflict, and determining that the address block conflict is not to be allocated; wherein the conflict failure message includes: a message identifier for uniquely identifying the conflict failure message and an address block in which the conflict occurs; The message identifier in the conflict failure message has a corresponding relationship with the message identifier in the registration message.
  • the to-be-distributed device further includes a selection module; the sensing module is further configured to trigger the selection module and the first sending module when a conflict is perceived; the selecting module, setting To reselect the block to be allocated; the first sending module is further configured to resend the registration message.
  • the to-be-distributed device further includes a first receiving module and a first detecting module; the first receiving module is configured to receive a declaration message sent by another device; and the first detecting module is configured to The address block that needs to be declared in the affirmation message sent by the device performs collision detection with the to-be-allocated address block that needs to be registered in the registration message to determine whether a conflict occurs: if a conflict occurs, the selection module is triggered; if it does not appear If the conflict is not processed, the selection module is further configured to reselect the to-be-allocated address block, and replace the original to-be-allocated address block that needs to be registered in the registration message with the re-selected address block to be allocated.
  • a distributed device including: a second receiving module, a second detecting module, and a second sending module;
  • the second receiving module is configured to receive a registration message sent by the device to be allocated, where the registration message includes: a message identifier for uniquely identifying the registration message, and an address to be allocated that needs to be registered by the device to be allocated Piece;
  • the second detecting module is configured to detect a conflict between the to-be-assigned address block and the local address of the registration message, and trigger the second sending module when a conflict occurs;
  • the second sending module is configured to send a conflict failure message to the to-be-distributed device; wherein the conflict failure message includes a message identifier for uniquely identifying the conflict failure message and an address block in which a conflict occurs.
  • the message identifier in the conflict failure message has a correspondence relationship with the message identifier in the registration message.
  • a network device includes: a third receiving module, a forwarding module, and an establishing module;
  • the third receiving module is configured to receive a registration message sent by the device to be allocated, where the registration message includes: a message identifier for uniquely identifying the registration message, and an address to be allocated that needs to be registered by the device to be allocated Piece;
  • the forwarding module is configured to determine, according to a preset forwarding policy, whether to forward the registration message to other network devices other than the device to be allocated in the network;
  • the third receiving module is configured to trigger the forwarding module when receiving a conflict failure message for the registration message, and trigger the establishing module when receiving the declaration message; wherein the conflict failure message includes a message identifier for uniquely identifying the conflict failure message and an address block in which a conflict occurs;
  • the forwarding module is further configured to forward the conflict failure message to the to-be-distributed device
  • the establishing module is configured to establish a forwarding mapping relationship according to the adjacency message; wherein the adjacency message includes a message identifier for uniquely identifying the adjacency message and an address to be declared.
  • the forwarding module is configured to: when the network device is provided with a proxy of the allocated device, the to-be-allocated address block in the registration message and the allocated device of the network device proxy The address is detected by collision: and, when a conflict occurs, a corresponding conflict failure message is sent, and when no conflict occurs, the registration message is forwarded to other network devices other than the device to be allocated in the network.
  • the forwarding module is configured to: when the network device does not set an agent of the allocated device, forward the registration message to other network devices other than the device to be allocated in the network.
  • the forwarding module is configured to: after acquiring a receiving port for receiving a registration message, establishing a correspondence between a message identifier of the registration message and the receiving port; and The registration message is sent through a port other than the receiving port.
  • the establishing module is configured to establish a forwarding mapping relationship between a receiving port that receives the affirmative message and an address that needs to be stated in the declaration message.
  • a database server includes: a fourth receiving module, a third detecting module, and a third sending module, where
  • the fourth receiving module is configured to receive a registration message sent by the device to be allocated, where the registration message includes: a message identifier for uniquely identifying the registration message and an address block to be allocated that needs to be registered;
  • the third detecting module is configured to perform collision detection on the to-be-allocated address block and the saved address: wherein the saved address is an address in a used state in the entire network;
  • the third sending module is configured to send a conflict failure message to the to-be-allocated device; wherein the conflict failure message includes a message identifier for uniquely identifying the conflict failure message and an address block in which a conflict occurs.
  • the database server further includes: a saving module, configured to save an address that needs to be stated in the affirmative message when the fourth receiving module receives the affirmation message, and set the need to affirm The status of the address is set to the usage status; wherein the affirmative message includes a message identifier for uniquely identifying the affirmative message and an address to be claimed.
  • a system for allocating a local media access control address includes at least one device to be allocated, at least one allocated device, and at least one network device;
  • the device to be allocated is configured to send a registration message of a local address, where the registration message includes: a message identifier for uniquely identifying the registration message and an address block to be allocated that needs to be registered;
  • the device to be allocated does not detect any conflict, determining the to-be-allocated address block as the address of the device to be allocated, and sending a declaration message of the address; wherein the affirmative message includes: Identifying a message identifier of the abbreviated message and an address block to be allocated that needs to be declared;
  • the allocated device is configured to receive a registration message sent by the device to be allocated, where the registration message includes: a message identifier for uniquely identifying the registration message, and a to-be-allocated to be allocated by the device to be allocated Address block
  • conflict failure message includes a message identifier for uniquely identifying the conflict failure message and an address block in which a conflict occurs;
  • the network device is configured to receive a registration message sent by the device to be allocated, where the registration message includes: a message identifier for uniquely identifying the registration message, and an address to be allocated that needs to be registered by the device to be allocated Piece;
  • the conflict failure message when receiving the conflict failure message for the registration message, forwarding the conflict failure message to the device to be allocated; wherein the conflict failure message includes a message identifier for uniquely identifying the conflict failure message And a block of addresses that have conflicts;
  • the adjacency message includes a message identifier for uniquely identifying the affirmative message and an address that needs to be declared.
  • a system for allocating a local media access control address comprising at least one device to be allocated, at least one database server, and at least one network device;
  • the device to be allocated is configured to send a registration message of a local address, where the registration message includes: a message identifier for uniquely identifying the registration message and an address block to be allocated that needs to be registered;
  • the device to be allocated does not detect any conflict, determining the to-be-allocated address block as the address of the device to be allocated, and sending a declaration message of the address; wherein the affirmative message includes: Identifying a message identifier of the abbreviated message and an address block to be allocated that needs to be declared;
  • the database server is configured to receive a registration message sent by the device to be allocated, where the registration message includes: a message identifier for uniquely identifying the registration message and an address block to be allocated that needs to be registered;
  • the saved address is an address in a usage state in the entire network
  • conflict failure message includes a message identifier for uniquely identifying the conflict failure message and an address block in which a conflict occurs;
  • the network device is configured to receive a registration message sent by the device to be allocated, where the registration message includes: a message identifier for uniquely identifying the registration message, and an address to be allocated that needs to be registered by the device to be allocated Piece;
  • the conflict failure message when receiving the conflict failure message for the registration message, forwarding the conflict failure message to the device to be allocated; wherein the conflict failure message includes a message identifier for uniquely identifying the conflict failure message And a block of addresses that have conflicts;
  • the adjacency message includes a message identifier for uniquely identifying the affirmative message and an address that needs to be declared.
  • An embodiment of the present disclosure provides a method, a device, and a system for allocating a local address; sending, by a device to be allocated, a block to be allocated to a network device of the entire network, and according to feedback of other network devices of the entire network for the block to be allocated. Declaring the address used by itself, realizing the registration of the local address and the collision detection of the local address, not only implementing the local address allocation protocol in multiple network devices, but also adapting to different local network architectures.
  • FIG. 1 is a schematic flowchart of a method for allocating a local MAC address according to an embodiment of the present disclosure
  • FIG. 2 is a schematic flowchart of another method for allocating a local MAC address according to an embodiment of the present disclosure
  • FIG. 3 is a schematic flowchart of still another method for allocating a local MAC address according to an embodiment of the present disclosure
  • FIG. 4 is a schematic flowchart of another method for allocating a local MAC address according to an embodiment of the present disclosure
  • FIG. 5 is a schematic structural diagram of a networking according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of a multiple MAC allocation protocol data unit according to an embodiment of the present disclosure
  • FIG. 7 is a schematic diagram of a message delivery process according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of another multi-MAC allocation protocol data unit according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic diagram of a message delivery process according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic diagram of a message delivery process according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic diagram of a message delivery process according to an embodiment of the present disclosure.
  • FIG. 12 is a schematic structural diagram of a link layer discovery protocol data unit according to an embodiment of the present disclosure.
  • FIG. 13 is a schematic structural diagram of a device to be allocated according to an embodiment of the present disclosure.
  • FIG. 14 is a schematic structural diagram of another device to be allocated according to an embodiment of the present disclosure.
  • FIG. 15 is a schematic structural diagram of hardware of a device to be allocated according to an embodiment of the present disclosure.
  • FIG. 16 is a schematic structural diagram of a distributed device according to an embodiment of the present disclosure.
  • FIG. 17 is a schematic structural diagram of hardware of an allocated device according to an embodiment of the present disclosure.
  • FIG. 18 is a schematic structural diagram of a network device according to an embodiment of the present disclosure.
  • FIG. 19 is a schematic structural diagram of hardware of a network device according to an embodiment of the present disclosure.
  • FIG. 20 is a schematic structural diagram of a database server according to an embodiment of the present disclosure.
  • FIG. 21 is a schematic structural diagram of another database server according to an embodiment of the present disclosure.
  • FIG. 22 is a schematic structural diagram of hardware of a database server according to an embodiment of the present disclosure.
  • FIG. 23 is a schematic structural diagram of a local MAC address allocation system according to an embodiment of the present disclosure.
  • FIG. 24 is a schematic structural diagram of another local MAC address allocation system according to an embodiment of the present disclosure.
  • FIG. 1 is a flowchart of a method for allocating a local MAC address according to an embodiment of the present disclosure.
  • the process is applicable to a device to be allocated in a network that needs to allocate a local MAC address.
  • the process may include:
  • the device to be allocated sends a registration message of a local MAC address.
  • the device to be allocated may obtain the local MAC address by performing a self-declaration manner to the entire network. Therefore, the registration message may be sent to all device nodes of the entire network, or may be sent to the database through unicast.
  • the server sends.
  • the database server holds the MAC address that has been allocated and is in use, and the database server can be used to centrally manage the MAC address allocation of the entire network.
  • the registration message may include: a message identifier for uniquely identifying the registration message and a MAC address block to be allocated that needs to be registered. It is easy to understand that the MAC address block to be allocated may contain one MAC address or multiple MAC addresses.
  • the MAC address block to be allocated that needs to be registered in the registration message may be obtained after the device to be allocated is selected according to a preset selection policy.
  • the preset selection policy may include: the device to be allocated learns the MAC address block that has not been used from the history record of the entire network data transmission.
  • the device to be allocated does not detect any conflicts, and when implemented, it may preferably include:
  • Determining after the device to be allocated sends the registration message according to a preset interval period according to a preset number of times, without receiving a conflict failure message for the registration message or a declaration message that is verified as an address conflict.
  • the device to be allocated does not detect the MAC address conflict pending application;
  • the conflict failure message includes: a message identifier for uniquely identifying the conflict failure message and a MAC address block in which a conflict occurs; thereby enabling the device to be allocated to reselect the to-be-allocated MAC address block to avoid the conflict failure message.
  • the conflicting MAC address block is included, so that the retransmitted registration message has a greater probability of avoiding receiving the collision failure message.
  • the message identifier in the conflict failure message has a corresponding relationship with the message identifier in the registration message, so that the registration message for the conflict failure message can be obtained. In this embodiment, the corresponding relationship is preferably the The message identifier in the conflict failure message is consistent with the message identifier in the registration message.
  • the abbreviated message includes a message identifier for uniquely identifying the affirmative message and a MAC address to be declared. It should be noted that, after receiving the abbreviated message, the network device in the network may establish and maintain a forwarding mapping relationship between the receiving port that receives the adjacency message and the MAC address that needs to be stated in the adjacency message, and the reserved form may be Update the forwarding table of the network device according to the established forwarding mapping relationship, so that the subsequent network device needs to forward the message to the receiving port through the query forwarding table, so that the message needs to be forwarded from the receiving port. Broadcast transmission.
  • the foregoing solution may further include:
  • the device to be allocated reselects a block of MAC addresses to be allocated, and resends the registration message
  • the retransmitted registration message may include a message identifier for uniquely identifying the registration message and a reselected MAC address block to be allocated.
  • the device to be allocated does not detect any conflict, it may be known that when the device to be allocated receives a conflict failure message for the registration message or a declaration message that is verified as an address conflict, The device to be allocated may determine that the conflict is perceived; the conflict failure message may include a message identifier for uniquely identifying the conflict failure message and a MAC address block in which the conflict occurs.
  • the process may further include: when the device to be allocated receives the declaration message sent by the other device, and the MAC address and registration required to be declared in the declaration message sent by the other device.
  • the MAC address block to be allocated that needs to be registered in the message is used for collision detection to determine whether a conflict occurs:
  • the registration message is not processed; preferably, the registration message can also continue to be sent.
  • the method of conflict detection may be to determine whether the intersection between the MAC address to be declared in the affirmative message sent by the other device and the MAC address block to be allocated in the registration message is empty, if the intersection is empty. , indicating a conflict; otherwise, there is no conflict.
  • the embodiment provides a method for allocating a local MAC address to a device to be allocated, and sends a MAC address block to be allocated to the network device of the entire network through the device to be allocated, and according to other network devices of the entire network, the MAC address to be allocated.
  • the feedback of the block is used to declare the MAC address used by itself, realizing the registration of the local MAC address and the collision detection of the local MAC address, not only implementing the local MAC address allocation protocol in multiple network devices, but also adapting to different local network architectures. .
  • a flow of a method for allocating a local MAC address provided by an embodiment of the present disclosure may be applied to an allocated device in a network that has been assigned a local MAC address.
  • the process can include:
  • the allocated device receives a registration message sent by the device to be allocated.
  • the registration message may be sent to the entire network by the device to be allocated that needs to be assigned a local MAC address in the network.
  • the registration message may include: a message identifier for uniquely identifying the registration message, and a MAC to be allocated that needs to be registered by the device to be allocated. Address block.
  • S202 The allocated device performs collision detection on the MAC address block to be allocated in the registration message and its local MAC address.
  • the device in the network has only one corresponding local MAC address in the entire network.
  • the MAC address to be allocated in the registration message is not used by all the allocated devices in the network, it indicates that the device to be allocated is capable of using the MAC address to be allocated in the registration message; when the MAC address to be allocated in the registration message has been used in the network
  • the allocated device it indicates that the MAC address to be allocated in the registration message conflicts with the used MAC address, so the device to be allocated cannot use the MAC address to be allocated in the registration message, and the MAC address to be allocated needs to be reselected. . Therefore, the assigned device has the following two results for collision detection:
  • the conflict failure message may include a message identifier for uniquely identifying the conflict failure message and a MAC address block in which the conflict occurs.
  • the message identifier in the conflict failure message can have a corresponding relationship with the message identifier in the registration message, so that the registration message for the conflict failure message can be obtained.
  • the corresponding relationship is preferably the conflict.
  • the message identifier in the failure message is consistent with the message identifier in the registration message.
  • the technical solution of the present process may further include: an allocated device termination registration message.
  • the device to be allocated will continue to send the declaration message without receiving the conflict failure message for the registration message, so that the device to be allocated will declare the MAC in the message to be declared.
  • the address is the local MAC address of the device to be assigned itself.
  • the embodiment provides a method for allocating a local MAC address to an allocated device, and the allocated device receives the MAC address block to be allocated sent by the device to be allocated, and conflicts with the MAC address block to be allocated according to its own MAC address. Detecting, when a conflict occurs, feeding back a conflict failure message to the device to be allocated, and ending the registration of the device to be allocated when there is no conflict, realizing registration of the local MAC address and collision detection of the local MAC address, not only implemented in multiple network devices
  • the local MAC address allocation protocol can also be adapted to different local network architectures.
  • a flow of a method for allocating a local MAC address is provided.
  • the method may be applicable to a network device that performs forwarding in a network, and the process may include :
  • S301 The network device receives a registration message sent by the device to be allocated.
  • the registration message may include: a message identifier for uniquely identifying the registration message and a to-be-allocated MAC address block that needs to be registered.
  • the network device determines, according to the preset forwarding policy, whether to forward the registration message to other network devices in the network other than the device to be allocated.
  • the conflict failure message may include a message identifier for uniquely identifying the conflict failure message and a MAC address block in which the conflict occurs; generally, the message identifier setting of the conflict failure message may be consistent with the message identifier in the registration message. Therefore, the network device can query the correspondence established in step S301 according to the message identifier in the conflict failure message, so that the forwarding message can send the conflict failure message to the device to be allocated from the receiving port of the registration message.
  • the abbreviated message includes a message identifier for uniquely identifying the affirmative message and a MAC address to be declared. Therefore, the network device can establish a forwarding mapping relationship between the receiving port that receives the abbreviated message and the MAC address to be declared in the adjacency message, and save the mapping relationship in a form of a forwarding entry.
  • the network device usually has a forwarding table. After the new forwarding entry is established, the new forwarding entry can be updated with the existing forwarding table, so that the subsequent network device receives the MAC to be sent to the required forwarding.
  • the forwarding table can be retrieved to query the corresponding sending port, and the packet is directly forwarded from the sending port, which reduces the broadcast sending packet.
  • the network device determines whether to forward the registration message to other network devices other than the device to be allocated in the network, which may include :
  • the network device When the network device is configured with the agent of the allocated device, the network device performs collision detection on the MAC address block to be allocated in the registration message and the local MAC address of the allocated device of the network device proxy;
  • the network device When a conflict occurs, the network device sends a corresponding conflict failure message; and,
  • the network device forwards the registration message to other network devices other than the device to be allocated in the network.
  • the conflict failure message is finally received by the device to be allocated.
  • the network device determines whether to forward the registration message to other network devices other than the device to be allocated in the network, which may include :
  • the network device When the network device does not set a proxy for the device to be allocated, the network device forwards the registration message to other network devices other than the device to be allocated in the network.
  • the network device forwarding the registration message to other network devices other than the device to be allocated in the network may include:
  • the network device After the network device obtains the receiving port for receiving the registration message, establishing a correspondence between the message identifier of the registration message and the receiving port;
  • the registration message is sent through a port other than the receiving port.
  • the network device agent when the network device agent has other allocated devices, the behavior of the allocated device is first performed, that is, the collision detection is performed for the MAC address block to be allocated in the registration message, and the process of performing collision detection may be as in the second embodiment.
  • the description of step S202 is not described in this embodiment.
  • the registration message is no longer forwarded.
  • the network device with the proxy capability After receiving the abbreviated message, the network device with the proxy capability still needs to establish a forwarding mapping relationship according to the adjacency message, thereby retaining the MAC address that needs to be declared in the affirmative message.
  • a local media access control MAC address allocation method may include:
  • S401 The database server receives a registration message sent by the device to be allocated.
  • the registration message includes: a message identifier for uniquely identifying the registration message and a to-be-allocated MAC address block that needs to be registered;
  • the device when the device to be allocated sends the registration message to the database server, the device may send the unicast transmission to enable the database server to receive the registration message.
  • S402 The database server performs collision detection on the to-be-assigned MAC address and the saved MAC address:
  • the saved MAC address is a MAC address in a used state in the entire network
  • the conflict failure message includes a message identifier for uniquely identifying the conflict failure message and a MAC address block in which a conflict occurs.
  • the method further includes:
  • the database server when the database server receives the affirmation message, save the MAC address that needs to be stated in the declaration message, and set the state of the MAC address that needs to be declared to the usage state; wherein the declaration message includes The message identifier identifying the affirmative message and the MAC address to be declared.
  • the database server After the database server saves and sets the MAC address to be declared in the declaration message to the usage state, the database server updates the saved MAC address, so that the subsequent saved MAC address can be used for conflict. Detection.
  • the present embodiment describes the technical solutions of the above three embodiments by a specific example.
  • This embodiment is implemented by extending the MSRP (Multiple Stream Registration Protocol) protocol based on the MRP (Multiple Registration Protocol) protocol, and may be referred to as a Multi-MAC Assignment Protocol (MMAP).
  • MMAP Multi-MAC Assignment Protocol
  • the three types of messages can be carried by MMAP data units (MMAPDUs, MMAP Data Units).
  • the AttributeType field adds three values corresponding to the three types of messages; the VectorAttribute bytes in the AttributeList field can be defined as two types: The message identifies the messageID attribute and the MAC address attribute; wherein the messageID attribute contains a messageID for distinguishing different message messages.
  • a 48-bit MAC address start value plus a 16-bit random ID may be preferably used for representation; and a MAC address attribute includes a MAC address start value and a MAC address number.
  • the present embodiment is described based on the networking structure shown in FIG. 5.
  • the device to be allocated is T; the allocated device is L; and the network device used for forwarding is B; it should be noted that when the network device is When a proxy is set, B can function as a T or L, and each device is connected through a local area network (LAN), as shown by the circle in FIG.
  • LAN local area network
  • the MAC address registration message is sent; the AttributeList carried in the registration message is as shown in FIG. 6, including the messageID attribute and the MAC address attribute; wherein the MAC address attribute includes the MAC to be allocated that needs to be registered. Address space
  • B After receiving the MAC address registration message, B saves the correspondence between the message ID in the MAC address registration message and the receiving port that receives the MAC address registration message, and forwards the MAC address registration message to other ports, and forwards it through B. Both will receive the MAC address registration message sent by T.
  • the foregoing sending process for the MAC address registration message is as shown in FIG. 7.
  • the direction of the arrow is the direction of transmission of the MAC address registration message
  • the edge of the arrow indicates the MAC address registration message, in the box of B.
  • S indicates that B stores the correspondence between the messageID in the MAC address registration message and the receiving port that receives the MAC address registration message.
  • L may check whether the MAC address to be allocated that needs to be registered conflicts with the MAC address of the device: if there is no conflict, the MAC address registration message is terminated; if the conflict occurs, the MAC address conflict is sent.
  • the AttributeList carried in the MAC address conflict message also carries the messageID attribute and the MAC address attribute, but the MAC address attribute at this time represents the conflicting MAC address space.
  • the value of the messageID attribute in the MAC address conflict message is the same as the value of the messageID attribute in the MAC address registration message, so that the registration message for the conflict failure message can be characterized.
  • the B After receiving the MAC address conflict message, the B forwards the MAC address conflict message to T according to the message ID in the MAC address conflict message and the B save correspondence shown in FIG. 7.
  • the above-mentioned delivery process for the MAC address conflict message is as shown in FIG. 9.
  • the arrow direction is the transmission direction of the MAC address conflict message
  • the arrow C indicates the MAC address conflict message, in the box of B.
  • the P indicates that the correspondence saved by B is saved.
  • the device can wait for the preset interval period to perform the sending of the MAC address registration message. After continuously sending the MAC address registration message several times, if no MAC address conflict message is received, the MAC address declaration message is sent to the entire network; After receiving the MAC address conflict message in this period, the new MAC address to be assigned needs to be re-selected and the MAC address registration message is resent. At this time, the message ID also changes with the reselected MAC address.
  • the network device B may establish a forwarding mapping relationship between the abbreviated MAC address and the receiving port according to the MAC address declared in the MAC address declaration message and the receiving port receiving the declaration message, and The forwarding mapping relationship is updated to B's own forwarding table.
  • the save form can be: save the declared MAC address to the destination address, and save the receive port to the output port. Therefore, after receiving the packet to be sent to the abbreviated MAC address, the forwarding table can be searched to find the output port, and the packet is directly forwarded to the T, thereby reducing the sending of the packet by broadcast.
  • the above-mentioned delivery process for the MAC address declaration message is as shown in FIG. 10.
  • the direction of the arrow is the transmission direction of the MAC address declaration message
  • the A of the arrow indicates the MAC address declaration message.
  • the implementation process is performed by the agent with L set in B.
  • the agent with L is set in B
  • the MAC of the proxy L is stored in B. The address, therefore, can be replied to the MAC address conflict message instead of the L being proxied.
  • the implementation process of this embodiment is as follows:
  • the MAC address registration message is sent; the AttributeList carried in the registration message is as shown in FIG. 6, including the messageID attribute and the MAC address attribute; wherein the MAC address attribute includes the MAC to be allocated that needs to be registered. Address space
  • B After receiving the MAC address registration message, B stores the correspondence between the messageID in the MAC address registration message and the receiving port that receives the MAC address registration message. For B without the proxy, the MAC is processed according to the procedure shown in Figure 7. The address registration message is delivered, which is not described in this embodiment.
  • the B set with the proxy detects whether the MAC address saved by itself is in conflict with the MAC address to be allocated that needs to be registered: if there is a conflict, B will send a MAC conflict message to the proxy L. Otherwise, the MAC address registration message is terminated and no forwarding is performed.
  • FIG. 11 the schematic diagram of the B-sending MAC address conflict message set by the proxy is as shown in FIG. 11.
  • the B provided with the proxy is shown by the shaded box, and the direction of the arrow is the B set with the proxy.
  • L may check whether the MAC address to be allocated that needs to be registered conflicts with the MAC address of the device: if there is no conflict, the MAC address registration message is terminated; if the conflict occurs, the MAC address conflict is sent.
  • the AttributeList carried in the MAC address conflict message also carries the messageID attribute and the MAC address attribute, but the MAC address attribute at this time represents the conflicting MAC address space.
  • the value of the messageID attribute in the MAC address conflict message is the same as the value of the messageID attribute in the MAC address registration message, so that the registration message for the conflict failure message can be characterized.
  • B After receiving the MAC address conflict message, B forwards the MAC address conflict message to T according to the messageID in the MAC address conflict message and the B save correspondence shown in FIG. 7.
  • the device can wait for the preset interval period to perform the sending of the MAC address registration message. After continuously sending the MAC address registration message several times, if no MAC address conflict message is received, the MAC address declaration message is sent to the entire network; After receiving the MAC address conflict message in this period, the new MAC address to be assigned needs to be re-selected and the MAC address registration message is resent. At this time, the message ID also changes with the reselected MAC address.
  • a B For a B that does not have a proxy, after receiving the MAC address declaration message, it can establish a forwarding mapping relationship between the declared MAC address and the receiving port according to the MAC address declared in the MAC address declaration message and the receiving port receiving the declaration message. And update the forwarding mapping relationship to B's own forwarding table.
  • the save form can be: save the declared MAC address to the destination address, and save the receive port to the output port. Therefore, after receiving the packet to be sent to the abbreviated MAC address, the forwarding table can be searched to find the output port, and the packet is directly forwarded to the T, thereby reducing the sending of the packet by broadcast.
  • MAC address declaration message For a B device configured with a proxy L application, if a MAC address declaration message is received, the MAC address declared in the MAC address declaration message is saved.
  • the L device For the L device, if it has not yet declared its own MAC address, when it receives the MAC address declaration message of other T, it also saves the MAC address in the MAC address declaration message, and needs to register as its own choice. The basis of the MAC address to be assigned to avoid conflicts.
  • the MAC address to be assigned that the device needs to be registered is selected, when the MAC address registration message is sent, if other MAC address declaration messages sent by the T are received, other Ts need to be sent.
  • the MAC address of the life in the MAC address declaration message is compared with the MAC address to be allocated that needs to be registered, and if there is a conflict, the MAC address to be allocated that needs to be registered needs to be re-selected, and the MAC address is restarted. The process of registering a message.
  • the MRP protocol may not be supported.
  • an Edge Control Protocol (ECP) protocol based on the Link Layer Discovery Protocol (LLDP) is used.
  • the implementation process is the same as that in the fourth embodiment and the fifth embodiment.
  • the content difference between the fifth embodiment and the sixth embodiment is that the message content in different messages is a type-length-value (TLV, Type-Length-Value).
  • TLV type-length-value
  • the form is carried in an LLDP data unit (LLDPDU, LLDP Data Unit).
  • the field TLV type indicates the type of the TLV.
  • TLV type Conflict, indicating that it is a MAC address conflict message
  • TLV type Announce, indicating that it is a MAC address declaration message.
  • the field TLV Length is the length of this TLV.
  • the field TLV Value mainly includes two kinds of information: Message ID and MAC start address; for Message ID, it indicates the unique identifier of the message, and for the MAC start address, it indicates the start value of the MAC address block, which is different.
  • the message type has a different meaning.
  • it If it is a registration message, it indicates a MAC address block that needs to be registered; if it is a conflict message, it indicates that the MAC address block has been used by other devices, there is a conflict, and a new MAC address block needs to be reselected; if it is a declaration message , indicating that the MAC address block is officially used by the device, and other devices cannot be used.
  • the number of fields indicates the number of addresses in the address block.
  • the technical solutions of the fifth embodiment and the sixth embodiment can also be implemented based on the Gratuitous ARP (Gratuitous Address Resolution Protocol).
  • the implementation process is the same as that of the fourth embodiment and the fifth embodiment.
  • the difference lies in the need for the existing free ARP.
  • the message is extended. Therefore, the extended free ARP packet can be used to carry the message content in different messages.
  • This embodiment provides a preferred extension to extend the gratuitous ARP packet, but is not limited to the extension.
  • the following attribute values in the gratuitous ARP packet are set, and are set as:
  • Opcode 10, indicating that the type is a MAC address registration message
  • Sender MAC fill in the starting address of the MAC address block
  • Sender IP if there is one, if not, it is 0;
  • Destination MAC fill in the last address of the MAC address block
  • Destination IP Fill in the same address as the Sender IP.
  • the following attribute values in the gratuitous ARP packet are set and set to:
  • Opcode 11, indicating that the type is a MAC address conflict message
  • Sender MAC fill in the starting address of the conflicting MAC address block
  • Sender IP if there is one, if not, it is 0;
  • Destination MAC fill in the last address of the conflicting MAC address block
  • Destination IP Fill in the same address as the Sender IP.
  • the following attribute values in the gratuitous ARP packet are set, and are set as:
  • Opcode 12, indicating that the type is a MAC address declaration message
  • Sender MAC fill in the starting address of the declared MAC address block
  • Sender IP if there is one, if not, it is 0;
  • Destination MAC fill in the last address of the declared MAC address block
  • Destination IP Fill in the same address as the Sender IP.
  • the advantage of implementing the above technical solution based on the free ARP is that it can be combined with the IP address.
  • the correspondence between the MAC address and the IP address can be directly established after the affirmation message.
  • a device to be allocated 130 which includes: a first sending module 1301, a sensing module 1302, and a determining module. 1303; among them,
  • the first sending module 1301 is configured to send a registration message of a local media access control MAC address, where the registration message includes: a message identifier for uniquely identifying the registration message, and a MAC address block to be allocated that needs to be registered. ;
  • the sensing module 1302 is configured to detect any conflicts; and when no conflict is perceived, the determining module 1303 and the first sending module 1301 are triggered;
  • the determining module 1303 is configured to determine the MAC address block to be allocated as the MAC address of the device to be allocated;
  • the first sending module 1301 is further configured to send a declaration message of the MAC address, where the adjacency message includes: a message identifier for uniquely identifying the adjacency message and a to-be-allocated MAC address block that needs to be declared.
  • the sensing module 1302 is configured to: when the first sending module 1301 sends the registration message according to a preset interval, according to a preset interval, does not receive a conflict for the registration message.
  • the message or the affirmation message of the address conflict is determined, and the MAC address conflict is not detected;
  • the conflict failure message includes: a message identifier for uniquely identifying the conflict failure message and a MAC address block in which the conflict occurs;
  • the message identifier in the conflict failure message has a corresponding relationship with the message identifier in the registration message.
  • the to-be-distributed device 130 further includes a selection module 1304;
  • the sensing module 1302 is further configured to: when the conflict is perceived, trigger the selection module and the first sending module 1301;
  • the selecting module 1304 is configured to reselect a MAC address block to be allocated
  • the first sending module 1301 is further configured to resend the registration message.
  • the to-be-distributed device 130 further includes a first receiving module 1305 and a first detecting module 1306;
  • the first receiving module 1305 is configured to receive a declaration message sent by another device
  • the first detecting module 1306 is configured to detect, by using a MAC address that needs to be clarified in the affirmative message sent by the other device, with a MAC address block to be allocated that needs to be registered in the registration message, to determine whether a conflict occurs: if a conflict occurs. Activating the selection module; if no conflict occurs, the registration message is not processed;
  • the selecting module 1304 is further configured to reselect the MAC address block to be allocated, and replace the original MAC address block to be allocated in the registration message with the re-selected Mac address block to be allocated.
  • each functional module in this embodiment may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software function module.
  • the integrated unit may be stored in a computer readable storage medium if it is implemented in the form of a software function module and is not sold or used as a stand-alone product.
  • the technical solution of the embodiment is essentially Said that the part contributing to the prior art or all or part of the technical solution can be embodied in the form of a software product stored in a storage medium, comprising a plurality of instructions for making a computer device (may It is a personal computer, a server, or a network device, etc. or a processor that performs all or part of the steps of the method described in this embodiment.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes.
  • the computer program instructions corresponding to the local MAC address allocation method in this embodiment may be stored on a storage medium such as an optical disk, a hard disk, a USB disk, or the like, and a computer corresponding to a local MAC address allocation method in the storage medium.
  • a storage medium such as an optical disk, a hard disk, a USB disk, or the like
  • the program instructions When the program instructions are read or executed by an electronic device, the following steps are included:
  • the registration message includes: a message identifier for uniquely identifying the registration message and a to-be-allocated MAC address block that needs to be registered;
  • the steps stored in the storage medium are: no conflicts are perceived, including:
  • a conflicting message where the conflicting failure message includes: a message identifier for uniquely identifying the conflict failure message and a MAC address block in which a conflict occurs; the message identifier in the conflict failure message and the message identifier in the registration message have Correspondence relationship.
  • the step of storing in the storage medium the method further comprises: when the conflict is perceived, reselecting the block of the MAC address to be allocated, and resending the registration message.
  • the step of storing in the storage medium the method further includes:
  • the MAC address to be declared in the affirmation message sent by the other device is collided with the to-be-allocated MAC address block to be registered in the registration message to determine whether a conflict occurs:
  • the step of storing the MAC address to be allocated in the registration message is obtained by the device to be allocated according to a preset selection policy.
  • a hardware structure of a device to be allocated 130 may be included, which may include: a first communication interface 1501, a first memory 1502, and a first process. And a first bus 1504; wherein
  • the first bus 1504 is configured to connect the first communication interface 1501, the first processor 1503, and the first memory 1502, and mutual communication between the devices;
  • the first communication interface 1501 is configured to perform data transmission with an external network element
  • the first memory 1502 is configured to store instructions and data
  • the first processor 1503 executes the instruction for: sending a registration message of a local MAC address; wherein the registration message includes: a message identifier for uniquely identifying the registration message and a MAC address to be allocated that needs to be registered Piece;
  • the first memory 1502 may be a volatile memory, such as a random access memory (RAM), or a non-volatile memory, such as only Read memory (ROM, Read-Only Memory), flash memory, hard disk (HDD, Hard Disk Drive) or solid state drive (SSD, Solid-State Drive); or a combination of the above types of memory, and
  • RAM random access memory
  • non-volatile memory such as only Read memory (ROM, Read-Only Memory), flash memory, hard disk (HDD, Hard Disk Drive) or solid state drive (SSD, Solid-State Drive); or a combination of the above types of memory
  • a processor 1503 provides instructions and data.
  • the first processor 1503 may be an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), or a programmable logic device. At least one of (PLD, Programmable Logic Device), Field Programmable Gate Array (FPGA), Central Processing Unit (CPU), controller, microcontroller, and microprocessor. It is to be understood that, for different devices, the electronic device for implementing the functions of the first processor described above may also be other, and the embodiment of the present disclosure is not specifically limited.
  • ASIC Application Specific Integrated Circuit
  • DSP Digital Signal Processor
  • DSPD Digital Signal Processing Device
  • programmable logic device At least one of (PLD, Programmable Logic Device), Field Programmable Gate Array (FPGA), Central Processing Unit (CPU), controller, microcontroller, and microprocessor.
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • CPU Central Processing Unit
  • controller microcontroller, and microprocessor
  • the first processor 1503 may be configured to: when the registration message is sent according to a preset interval, according to a preset interval, does not receive a conflict failure message or verification for the registration message. Determining, by the adjacency message of the address conflict, that the MAC address conflict is not to be allocated; wherein the conflict failure message includes: a message identifier for uniquely identifying the conflict failure message and a MAC address block in which the conflict occurs; the conflict The message identifier in the failure message has a correspondence with the message identifier in the registration message.
  • the first processor 1503 may be further configured to: when the conflict is perceived, reselect the block of the MAC address to be allocated, and resend the registration message.
  • the first processor 1503 may be further configured to: when receiving a declaration message sent by another device, request a MAC address that needs to be declared in the declaration message sent by the other device, and the registration message needs to be performed. Registered MAC address blocks to be allocated for collision detection to determine if a conflict occurs:
  • the to-be-allocated MAC address block that needs to be registered in the registration message is obtained by the device to be allocated according to a preset selection policy.
  • an allocated device 160 includes: a second receiving module 1601, a second detecting module 1602, and a second sending module 1603; wherein
  • the second receiving module 1601 is configured to receive a registration message sent by the device to be allocated, where the registration message includes: a message identifier for uniquely identifying the registration message, and a to-be-allocated to be allocated by the device to be allocated.
  • the second detecting module 1602 is configured to perform collision detection between the MAC address block to be allocated in the registration message and the local MAC address of the registration message; when the conflict occurs, the second sending module 1603 is triggered;
  • the second sending module 1603 is configured to send a conflict failure message to the to-be-assigned device, where the conflict failure message includes a message identifier for uniquely identifying the conflict failure message and a MAC address block in which a conflict occurs.
  • the message identifier in the conflict failure message has a corresponding relationship with the message identifier in the registration message.
  • each functional module in this embodiment may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software function module.
  • the integrated unit may be stored in a computer readable storage medium if it is implemented in the form of a software function module and is not sold or used as a stand-alone product.
  • the technical solution of the embodiment is essentially Said that the part contributing to the prior art or all or part of the technical solution can be embodied in the form of a software product stored in a storage medium, comprising a plurality of instructions for making a computer device (may It is a personal computer, a server, or a network device, etc. or a processor that performs all or part of the steps of the method described in this embodiment.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes.
  • the computer program instructions corresponding to the local MAC address allocation method in this embodiment may be stored on a storage medium such as an optical disk, a hard disk, a USB disk, or the like, and a computer corresponding to a local MAC address allocation method in the storage medium.
  • a storage medium such as an optical disk, a hard disk, a USB disk, or the like
  • the program instructions When the program instructions are read or executed by an electronic device, the following steps are included:
  • a registration message including: a message identifier for uniquely identifying the registration message, and a to-be-allocated MAC address block to be registered by the device to be allocated;
  • a conflict failure message is sent to the device to be allocated; wherein the conflict failure message includes a message identifier for uniquely identifying the conflict failure message and a MAC address block in which a collision occurs.
  • the step of storing in the storage medium is: the message identifier in the conflict failure message has a corresponding relationship with the message identifier in the registration message.
  • a hardware structure of a distributed device 160 may be included, which may include: a second communication interface 1701, a second memory 1702, and a second process. 1703 and a second bus 1704; wherein
  • the second bus 1704 is configured to connect the second communication interface 1701, the second processor 1703, and the second memory 1702 and mutual communication between the devices;
  • the second communication interface 1701 is configured to perform data transmission with an external network element.
  • the second memory 1702 is configured to store instructions and data
  • the second processor 1703 executes the instructions for:
  • a registration message including: a message identifier for uniquely identifying the registration message, and a to-be-allocated MAC address block to be registered by the device to be allocated;
  • a conflict failure message is sent to the device to be allocated; wherein the conflict failure message includes a message identifier for uniquely identifying the conflict failure message and a MAC address block in which a collision occurs.
  • the message identifier in the conflict failure message has a corresponding relationship with the message identifier in the registration message.
  • the network device 180 includes: a third receiving module 1801, a forwarding module 1802, and an establishing module 1803. among them,
  • the third receiving module 1801 is configured to receive a registration message sent by the device to be allocated, where the registration message includes: a message identifier for uniquely identifying the registration message, and a to-be-allocated to be allocated by the device to be allocated.
  • the forwarding module 1802 is configured to determine, according to a preset forwarding policy, whether to forward the registration message to another network device other than the device to be allocated in the network;
  • the third receiving module 1801 is configured to trigger the forwarding module 1802 when receiving a conflict failure message for the registration message, and trigger the establishing module 1803 when receiving the declaration message; wherein the conflict
  • the failure message includes a message identifier for uniquely identifying the conflict failure message and a MAC address block in which the conflict occurs;
  • the forwarding module 1802 is further configured to forward the conflict failure message to the to-be-distributed device
  • the establishing module 1803 is configured to establish a forwarding mapping relationship according to the adjacency message, where the adjacency message includes a message identifier for uniquely identifying the adjacency message and a MAC address that needs to be declared.
  • the forwarding module 1802 is configured to:
  • the MAC address block to be allocated in the registration message is collided with the MAC address of the allocated device proxyed by the network device 180:
  • the registration message is forwarded to other network devices other than the device to be allocated in the network.
  • the forwarding module 1802 is configured to:
  • the registration message is forwarded to other network devices other than the device to be allocated in the network.
  • the forwarding device 180 is configured to acquire a correspondence between a message identifier of the registration message and the receiving port, after acquiring a receiving port for receiving a registration message;
  • the registration message is sent through a port other than the receiving port.
  • the establishing module 1803 is configured to establish a forwarding mapping relationship between a receiving port that receives the aforesaid message and a MAC address that needs to be stated in the adjacency message.
  • each functional module in this embodiment may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software function module.
  • the integrated unit may be stored in a computer readable storage medium if it is implemented in the form of a software function module and is not sold or used as a stand-alone product.
  • the technical solution of the embodiment is essentially Said that the part contributing to the prior art or all or part of the technical solution can be embodied in the form of a software product stored in a storage medium, comprising a plurality of instructions for making a computer device (may It is a personal computer, a server, or a network device, etc. or a processor that performs all or part of the steps of the method described in this embodiment.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes.
  • the computer program instructions corresponding to the local MAC address allocation method in this embodiment may be stored on a storage medium such as an optical disk, a hard disk, a USB disk, or the like, and a computer corresponding to a local MAC address allocation method in the storage medium.
  • a storage medium such as an optical disk, a hard disk, a USB disk, or the like
  • the program instructions When the program instructions are read or executed by an electronic device, the following steps are included:
  • a registration message including: a message identifier for uniquely identifying the registration message, and a to-be-allocated MAC address block to be registered by the device to be allocated;
  • conflict failure message Forwarding the conflict failure message to the device to be allocated when receiving a conflict failure message for the registration message; wherein the conflict failure message includes a message identifier for uniquely identifying the conflict failure message and appearing Conflicting MAC address block;
  • the forwarding mapping relationship is established according to the adjacency message; wherein the adjacency message includes a message identifier for uniquely identifying the adjacency message and a MAC address that needs to be declared.
  • the step of storing in the storage medium is: determining, according to the preset forwarding policy, whether to forward the registration message to other network devices other than the device to be allocated in the network, including:
  • the MAC address block to be allocated in the registration message is collided with the MAC address of the allocated device of the network device proxy:
  • the registration message is forwarded to other network devices other than the device to be allocated in the network.
  • the step of storing in the storage medium is: determining, according to the preset forwarding policy, whether to forward the registration message to other network devices other than the device to be allocated in the network, including:
  • the registration message is forwarded to other network devices other than the device to be allocated in the network.
  • the storing step in the storage medium forwarding the registration message to other network devices other than the device to be allocated in the network, including:
  • the registration message is sent through a port other than the receiving port.
  • the step of storing the forwarding in the storage medium the establishing a forwarding mapping relationship according to the adjacency message, including:
  • FIG. 19 shows a hardware structure of a network device 180 according to an embodiment of the present disclosure, which may include: a third communication interface 1901, a third memory 1902, and a third processor. 1903 and a third bus 1904; wherein
  • the third bus 1904 is configured to connect the third communication interface 1901, the third processor 1903, and the third memory 1902 and mutual communication between the devices;
  • the third communication interface 1901 is configured to perform data transmission with an external network element.
  • the third memory 1902 is configured to store instructions and data
  • the third processor 1903 executes the instructions for:
  • a registration message including: a message identifier for uniquely identifying the registration message, and a to-be-allocated MAC address block to be registered by the device to be allocated;
  • conflict failure message Forwarding the conflict failure message to the device to be allocated when receiving a conflict failure message for the registration message; wherein the conflict failure message includes a message identifier for uniquely identifying the conflict failure message and appearing Conflicting MAC address block;
  • the forwarding mapping relationship is established according to the adjacency message; wherein the adjacency message includes a message identifier for uniquely identifying the adjacency message and a MAC address that needs to be declared.
  • the third processor 1903 is configured to: when the network device is configured with a proxy of the allocated device, allocate the to-be-assigned MAC address block in the registration message to the network device proxy.
  • the device's MAC address is used for collision detection:
  • the registration message is forwarded to other network devices other than the device to be allocated in the network.
  • the third processor 1903 is configured to: when the network device does not set an agent of the distribution device, forward the registration message to other network devices other than the device to be allocated in the network.
  • the third processor 1903 is configured to:
  • the registration message is sent through a port other than the receiving port.
  • the third processor 1903 is configured to:
  • the database server 200 includes: a fourth receiving module 2001, a third detecting module 2002, and a third sending module 2003, wherein
  • the fourth receiving module 2001 is configured to receive a registration message sent by the device to be allocated, where the registration message includes: a message identifier for uniquely identifying the registration message and a to-be-allocated MAC address block that needs to be registered;
  • the third detecting module 2002 is configured to perform collision detection on the to-be-assigned MAC address and the saved MAC address, where the saved MAC address is a MAC address in a used state in the entire network;
  • the third sending module 2003 is configured to send a conflict failure message to the to-be-distributed device, where the conflict failure message includes a message identifier for uniquely identifying the conflict failure message and a MAC address block in which a conflict occurs.
  • the database server 200 further includes: a saving module 2004, configured to save, when the fourth receiving module 2001 receives the affirmation message, a MAC address that needs to be stated in the declaration message, and Setting the status of the MAC address to be declared to a usage status; wherein the declaration message includes a message identifier for uniquely identifying the adjacency message and a MAC address that needs to be declared.
  • each functional module in this embodiment may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software function module.
  • the integrated unit may be stored in a computer readable storage medium if it is implemented in the form of a software function module and is not sold or used as a stand-alone product.
  • the technical solution of the embodiment is essentially Said that the part contributing to the prior art or all or part of the technical solution can be embodied in the form of a software product stored in a storage medium, comprising a plurality of instructions for making a computer device (may It is a personal computer, a server, or a network device, etc. or a processor that performs all or part of the steps of the method described in this embodiment.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes.
  • the computer program instructions corresponding to the local MAC address allocation method in this embodiment may be stored on a storage medium such as an optical disk, a hard disk, a USB disk, or the like, and a computer corresponding to a local MAC address allocation method in the storage medium.
  • a storage medium such as an optical disk, a hard disk, a USB disk, or the like
  • the program instructions When the program instructions are read or executed by an electronic device, the following steps are included:
  • the registration message includes: a message identifier for uniquely identifying the registration message and a to-be-allocated MAC address block that needs to be registered;
  • a conflict failure message is sent to the device to be allocated; wherein the conflict failure message includes a message identifier for uniquely identifying the conflict failure message and a MAC address block in which a collision occurs.
  • the step of storing in the storage medium the method further includes:
  • the database server when the database server receives the affirmation message, save the MAC address that needs to be stated in the declaration message, and set the state of the MAC address that needs to be declared to the usage state; wherein the declaration message includes A message identifier that uniquely identifies the affirmative message and a MAC address that needs to be declared.
  • the hardware structure of the database server 200 may include: a fourth communication interface 2201, a fourth memory 2202, and a fourth processor. 2203 and a fourth bus 2204; wherein
  • the fourth bus 2204 is configured to connect the fourth communication interface 2201, the fourth processor 2203, and the fourth memory 2202 and mutual communication between the devices;
  • the fourth communication interface 2201 is configured to perform data transmission with an external network element
  • the fourth memory 2202 is configured to store instructions and data
  • the fourth processor 2203 executes the instructions for:
  • the registration message includes: a message identifier for uniquely identifying the registration message and a to-be-allocated MAC address block that needs to be registered;
  • a conflict failure message is sent to the device to be allocated; wherein the conflict failure message includes a message identifier for uniquely identifying the conflict failure message and a MAC address block in which a collision occurs.
  • the fourth memory 2202 may be a volatile memory, such as a random access memory (RAM), or a non-volatile memory, such as only Read memory (ROM, Read-Only Memory), flash memory, hard disk (HDD, Hard Disk Drive) or solid state drive (SSD, Solid-State Drive); or a combination of the above types of memory, and
  • RAM random access memory
  • non-volatile memory such as only Read memory (ROM, Read-Only Memory), flash memory, hard disk (HDD, Hard Disk Drive) or solid state drive (SSD, Solid-State Drive); or a combination of the above types of memory
  • the four processor 2203 provides instructions and data.
  • the fourth processor 2203 may be an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), or a programmable logic device. At least one of (PLD, Programmable Logic Device), Field Programmable Gate Array (FPGA), Central Processing Unit (CPU), controller, microcontroller, and microprocessor. It is to be understood that the electronic device for implementing the fourth processor function described above may be other for different devices, and is not specifically limited in the embodiment of the present disclosure.
  • ASIC Application Specific Integrated Circuit
  • DSP Digital Signal Processor
  • DSPD Digital Signal Processing Device
  • programmable logic device At least one of (PLD, Programmable Logic Device), Field Programmable Gate Array (FPGA), Central Processing Unit (CPU), controller, microcontroller, and microprocessor.
  • PLD Programmable Logic Device
  • FPGA Field Programmable Gate Array
  • CPU Central Processing Unit
  • controller microcontroller
  • microprocessor microprocessor
  • the fourth processor 2203 is further configured to:
  • the abbreviated message includes the identifier for The message identifier of the affirmation message and the MAC address that needs to be declared.
  • the system 230 includes at least one device to be allocated 130 and at least one allocated device. 160 and at least one network device 180; wherein
  • the device to be allocated 130 is configured to send a registration message of a local MAC address, where the registration message includes: a message identifier for uniquely identifying the registration message and a to-be-allocated MAC address block that needs to be registered;
  • the method includes: a message identifier for uniquely identifying the abbreviated message; and a MAC address block to be allocated that needs to be declared;
  • the allocated device 180 is configured to receive the registration message sent by the to-be-distributed device 130.
  • the registration message includes: a message identifier for uniquely identifying the registration message, and the device to be allocated 130 needs to be registered.
  • the conflict failure message includes a message identifier for uniquely identifying the conflict failure message and a MAC address block in which a conflict occurs;
  • the network device 180 is configured to receive a registration message sent by the to-be-distributed device 130, where the registration message includes: a message identifier for uniquely identifying the registration message, and the device to be allocated 130 needs to be registered.
  • the conflict failure message when receiving the conflict failure message for the registration message, forwarding the conflict failure message to the to-be-allocated device 130; wherein the conflict failure message includes a message for uniquely identifying the conflict failure message Identification and a block of MAC addresses that have conflicts;
  • the adjacency message includes a message identifier for uniquely identifying the adjacency message and a MAC address that needs to be declared.
  • the system 240 includes: at least one to-be-distributed device 130, at least one database server. 200 and at least one network device 180; wherein
  • the device to be allocated 130 is configured to send a registration message of a local MAC address, where the registration message includes: a message identifier for uniquely identifying the registration message and a to-be-allocated MAC address block that needs to be registered;
  • the method includes: a message identifier for uniquely identifying the abbreviated message; and a MAC address block to be allocated that needs to be declared;
  • the database server 200 is configured to receive a registration message sent by the device to be allocated 130, where the registration message includes: a message identifier for uniquely identifying the registration message and a to-be-allocated MAC address block that needs to be registered;
  • the conflict failure message includes a message identifier for uniquely identifying the conflict failure message and a MAC address block in which a conflict occurs;
  • the network device 180 is configured to receive a registration message sent by the to-be-distributed device 130, where the registration message includes: a message identifier for uniquely identifying the registration message, and the device to be allocated 130 needs to be registered.
  • the conflict failure message when receiving the conflict failure message for the registration message, forwarding the conflict failure message to the to-be-allocated device 130; wherein the conflict failure message includes a message for uniquely identifying the conflict failure message Identification and a block of MAC addresses that have conflicts;
  • the adjacency message includes a message identifier for uniquely identifying the adjacency message and a MAC address that needs to be declared.
  • embodiments of the present disclosure can be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware aspects. Moreover, the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
  • the method, device, and system for allocating the local media access control address of the present disclosure send the to-be-allocated address block to the network device of the entire network through the device to be allocated, and declare the self-use according to the feedback of the other network device of the entire network for the address block to be allocated.
  • the address realizes the registration of the local address and the collision detection of the local address, not only realizing the local address allocation protocol in multiple network devices, but also adapting to different local network architectures.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

Le mode de réalisation de la présente invention concerne un procédé, un équipement et un système d'attribution d'une adresse de commande d'accès au support local. Le procédé peut comprendre les étapes suivantes : un équipement à attribuer envoie un message d'enregistrement d'une adresse MAC locale ; lorsque l'équipement à attribuer ne détecte aucun conflit, détermination d'un bloc d'adresse de la MAC à attribuer en tant qu'adresse MAC de l'équipement à attribuer, et envoi d'un message de déclaration de l'adresse MAC.
PCT/CN2018/078624 2017-03-10 2018-03-09 Procédé, équipement et système d'attribution d'adresse de commande d'accès au support local WO2018161967A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710144446.5 2017-03-10
CN201710144446.5A CN108574743A (zh) 2017-03-10 2017-03-10 一种本地媒体访问控制地址的分配方法、设备和系统

Publications (1)

Publication Number Publication Date
WO2018161967A1 true WO2018161967A1 (fr) 2018-09-13

Family

ID=63447228

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/078624 WO2018161967A1 (fr) 2017-03-10 2018-03-09 Procédé, équipement et système d'attribution d'adresse de commande d'accès au support local

Country Status (2)

Country Link
CN (1) CN108574743A (fr)
WO (1) WO2018161967A1 (fr)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114944967A (zh) * 2021-02-09 2022-08-26 奥动新能源汽车科技有限公司 编码方法、系统、电子设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7529851B1 (en) * 2002-02-08 2009-05-05 Cisco Technology, Inc. Method and apparatus for MAC address assignment
CN102333013A (zh) * 2011-10-17 2012-01-25 中兴通讯股份有限公司 一种介质访问控制地址冲突检测方法、装置和系统
CN102340555A (zh) * 2011-10-18 2012-02-01 中兴通讯股份有限公司 一种介质访问控制地址分配方法、装置和系统
CN102355510A (zh) * 2011-10-17 2012-02-15 中兴通讯股份有限公司 一种介质访问控制地址分配方法、装置和系统

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102333133A (zh) * 2011-10-11 2012-01-25 中兴通讯股份有限公司 一种介质访问控制地址分配方法、装置和系统
CN102333134B (zh) * 2011-10-17 2014-03-19 中兴通讯股份有限公司 一种介质访问控制地址冲突检测方法、装置和系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7529851B1 (en) * 2002-02-08 2009-05-05 Cisco Technology, Inc. Method and apparatus for MAC address assignment
CN102333013A (zh) * 2011-10-17 2012-01-25 中兴通讯股份有限公司 一种介质访问控制地址冲突检测方法、装置和系统
CN102355510A (zh) * 2011-10-17 2012-02-15 中兴通讯股份有限公司 一种介质访问控制地址分配方法、装置和系统
CN102340555A (zh) * 2011-10-18 2012-02-01 中兴通讯股份有限公司 一种介质访问控制地址分配方法、装置和系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114944967A (zh) * 2021-02-09 2022-08-26 奥动新能源汽车科技有限公司 编码方法、系统、电子设备及存储介质
CN114944967B (zh) * 2021-02-09 2024-02-13 奥动新能源汽车科技有限公司 编码方法、系统、电子设备及存储介质

Also Published As

Publication number Publication date
CN108574743A (zh) 2018-09-25

Similar Documents

Publication Publication Date Title
CN101663878B (zh) 对用于自动前缀委派的IPv6邻居发现协议的扩展
US8825768B2 (en) Methods and apparatus for merging peer-to-peer overlay networks
JP5869130B2 (ja) ハイブリッドネットワーク内のトポロジ発見
US9553769B2 (en) Devices and methods for communication in ad-hoc networks
CN104604193B (zh) 具有虚拟设备环境功能的网络基础设施的自动管理方法及装置
CN102315968B (zh) 虚拟机环境下的网络配置方法
WO2021196616A1 (fr) Procédé et appareil de rapport de message, dispositif, et support de stockage
CN104753697A (zh) 一种控制网络设备自动开局的方法、设备及系统
CN104378455A (zh) Ip地址分配方法以及装置
CN106101171B (zh) 服务器连接方法及装置
CN105744593B (zh) 一种节点入网方法及装置
JP5508273B2 (ja) ネットワーク・ロケーション・サービス
WO2012088934A1 (fr) Procédé et dispositif de commutation pour filtrer des messages
WO2019011247A1 (fr) Procédé de synchronisation d'information d'adresse mac, dispositif et support de stockage
WO2018161967A1 (fr) Procédé, équipement et système d'attribution d'adresse de commande d'accès au support local
CN105635138B (zh) 一种防止arp攻击的方法和装置
CN111245974A (zh) 一种地址分配方法、装置、设备及存储介质
CN104243626B (zh) 信息处理装置
CN107592261A (zh) 报文处理方法、装置及路由器
CN114024725B (zh) 一种容器间通信方法、系统、电子设备及存储介质
CN108712316B (zh) 一种虚拟机的接入配置方法、装置和系统
CN108712522B (zh) Ip地址分配方法和装置
US20150236911A1 (en) Detecting characteristics of a data path loop on a network
CN105245635B (zh) FCoE通信方法、装置及系统
JP6308295B2 (ja) 通信装置、サーバ、通信システム及び通信方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18764541

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18764541

Country of ref document: EP

Kind code of ref document: A1

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载