CN102355510B - Medium/media access control (MAC) address allocation method, device and system - Google Patents

Medium/media access control (MAC) address allocation method, device and system Download PDF

Info

Publication number
CN102355510B
CN102355510B CN201110316181.5A CN201110316181A CN102355510B CN 102355510 B CN102355510 B CN 102355510B CN 201110316181 A CN201110316181 A CN 201110316181A CN 102355510 B CN102355510 B CN 102355510B
Authority
CN
China
Prior art keywords
mac address
request message
router
network equipment
sends
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201110316181.5A
Other languages
Chinese (zh)
Other versions
CN102355510A (en
Inventor
赵真富
喻敬海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201110316181.5A priority Critical patent/CN102355510B/en
Publication of CN102355510A publication Critical patent/CN102355510A/en
Application granted granted Critical
Publication of CN102355510B publication Critical patent/CN102355510B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention provides a medium/media access control (MAC) address allocation method, which comprises the following steps that: before accessing a network, network equipment sends an MAC address request message to a multicast address of a router, wherein the MAC address request message carries a current MAC address of the network equipment; the router receiving the MAC address request message judges whether an allocable MAC address exists locally; if the allocable MAC address does not exist, the router sends a request message for acquiring an MAC address to a server; the server allocates the MAC address according to the received request message and sends the MAC address to the router; the router sends the received MAC address to the network equipment; and the network equipment receives the MAC address. The invention also discloses an MAC address allocation device and an MAC address allocation system. By the invention, the MAC address can be allocated automatically according to a request of the network equipment in an access network; and therefore, a conflict of the MAC address can be avoided.

Description

A kind of medium/media access control address allocation method, device and system
Technical field
The present invention relates to Ethernet access technique, relate in particular to a kind of medium access control (Medium/Media Access Control, MAC) address distribution method, device and system.
Background technology
At present, internet is internet protocol version 6 (Internet Protocol Version 6, IPv6) network, development along with network technologies such as wisdom city, the electronics earth, Internet of Things, people constantly expand accessing the demand of IPv6 network whenever and wherever possible, and various wired, Wireless Communication Equipment constantly access in IPv6 network.And along with the development of Intel Virtualization Technology, virtual network device also constantly joins in IPv6 network.But, because the MAC Address of conventional network equipment is random 48 bit address that generate of solidifying when dispatching from the factory, can not change.Like this, along with the network equipment accessing in two layers of switching network is on the increase, it is increasing that heterogeneous networks equipment has the possibility of identical MAC Address, so will cause occurring the situation of MAC Address conflict.
Because layer 2-switched package forward is realized based on MAC Address, therefore, when there is MAC Address conflict in two layers of switching network, can cause the concussion that MAC transmits, cause Layer 2 switch mistake to send out the messages such as the mutual message of service response, service access message, and then the normal accesses network of the network equipment that causes existing MAC Address conflict, can not normally provide services on the Internet for user.
In addition, because the message of network interaction can be by the miscellaneous equipment of Layer 2 switch guiding existence conflict MAC, not only cause network machine confidential information to have the risk of leaking, and cause network attack to be directed to the less desirable network equipment or virtual unit, thereby bring the risk of network attack.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of MAC Address distribution method, device and system, can avoid the situation of MAC Address conflict to occur, and then guarantees the normal access of the network equipment to network, for user provides normal network service, reduce the risk of network attack.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention discloses a kind of medium access control MAC Address distribution method, the method comprises:
Before accesses network, the network equipment sends MAC Address request message to router multicast address, carries the current MAC Address of the described network equipment in described MAC Address request message;
Receive the router of described MAC Address request message, judge whether this locality exists assignable MAC Address, while not there is not assignable MAC Address, router sends the request message that obtains MAC Address to server;
Server distributes MAC Address according to the request message of receiving, and described MAC Address is sent to router;
Described router sends to the network equipment by the MAC Address of receiving, the described network equipment receives the MAC Address of distributing.
Preferably, described router sends to server the request message that obtains MAC Address and is:
Described router sends by IPv6 transmitting control message protocol DHCP v6 the request message SOLICIT that obtains MAC Address to server;
Described server distributes MAC Address according to the request message of receiving, and sends to router to be described MAC Address:
Described server distributes MAC Address according to the SOLICIT receiving, and described MAC Address is placed in to push-notification-answer ADVERTISE by DHCPv6 agreement, sends to router;
Described router sends to the network equipment by the MAC Address receiving, and the described network equipment receives the MAC Address of distributing and is:
Described router extracts MAC Address from the ADVERTISE receiving by DHCPv6 agreement, and sends to the network equipment.
Preferably, described in, send to the network equipment to be:
Described MAC Address is placed in to MAC Address assignment response message, and described MAC Address assignment response message is sent to the multicast address generating according to the MAC Address in MAC Address request message.
Preferably, after judging whether this locality exists assignable MAC Address, the method also comprises:
If there is assignable MAC Address, distribute MAC Address, and described MAC Address is sent to the network equipment.
Preferably, described router multicast address is all-router multicast address FF02::2.
Preferably, after the described network equipment receives MAC Address, the method also comprises:
Before accesses network, the network equipment sends MAC Address collision detection request message to multicast address, carries the MAC Address of distribution in described MAC Address collision detection request message;
Receive the destination network device of MAC Address collision detection request message, from described MAC Address collision detection request message, extract MAC Address and detect, judge when the MAC Address extract is identical with self MAC Address, to multicast address, send MAC Address collision detected response message;
The network equipment is received after MAC Address collision detected response message, to router multicast address, is sent MAC Address request message.
Preferably, the described network equipment receives that after MAC Address collision detected response message, the method also comprises:
The network equipment sends MAC Address conflict notification message to router, carries the MAC Address of distribution in described notice message;
MAC Address in the MAC Address conflict notification message that router is received is set to temporarily unavailable, and sends MAC Address conflict response message;
The network equipment is received after MAC Address conflict response message, to router multicast address, is sent MAC Address request message.
Preferably, described MAC Address collision detection request message and described MAC Address collision detected response message are placed in respectively the ICMPv6 message of expansion or the ICMPv6 option of expansion.
The invention discloses a kind of network equipment, this network equipment comprises: MAC Address request message transmitting element and MAC Address receiving element; Wherein,
Described MAC Address request message transmitting element, for before accesses network, sends MAC Address request message to router multicast address, carries the current MAC Address of the described network equipment in described MAC Address request message;
Described MAC Address receiving element, the MAC Address of sending for receiving router.
Preferably, this network equipment also comprises: MAC Address collision detection request message transmitting element, for before accesses network, to multicast address, send MAC Address collision detection request message, in described MAC Address collision detection request message, carry the MAC Address of distribution;
Described MAC Address request message transmitting element, also, for receiving after MAC Address collision detected response message, sends MAC Address request message to router multicast address, carries the current MAC Address of the described network equipment in described request message.
Preferably, this network equipment also comprises: MAC Address conflict notification packet sending unit, for receiving after response message, to router, send MAC Address conflict notification message, and in described MAC Address conflict notification message, carry the MAC Address of distribution;
Described MAC Address request message transmitting element, also, for receiving after MAC Address conflict response message, sends MAC Address request message to router multicast address, carries the current MAC Address of the described network equipment in described MAC Address request message.
The invention discloses a kind of router, this router comprises: resource judgment unit, request message transmitting element and MAC Address transmitting element; Wherein,
Described resource judgment unit, for receiving after described MAC Address request message, under judgement, whether router there is assignable MAC Address;
Described request message sending unit, for when affiliated router does not exist assignable MAC Address, sends the request message that obtains MAC Address to server;
Described MAC Address transmitting element, for sending to the network equipment by the MAC Address of receiving.
Preferably, described request message sending unit, specifically for sending the request message SOLICIT that obtains MAC Address to server by DHCPv6 agreement;
Described MAC Address transmitting element, specifically for extracting MAC Address the ADVERTISE from receiving by DHCPv6 agreement, and sends to the network equipment.
Preferably, described router also comprises: MAC Address setting unit, for the MAC Address of the MAC Address conflict notification message received, be set to temporarily unavailablely, and and send MAC Address conflict response message.
The invention discloses a kind of server, this server comprises: MAC Address allocation units and MAC Address transmitting element; Wherein,
Described MAC Address allocation units, for distributing MAC Address according to the request message of receiving;
Described MAC Address transmitting element, for sending to router by the MAC Address of distribution.
Preferably, described MAC Address allocation units, specifically for distributing MAC Address according to the SOLICIT receiving;
Described MAC Address transmitting element, sends to router specifically for the MAC Address of distribution is placed in to push-notification-answer ADVERTISE by DHCPv6 agreement.
The invention discloses a kind of network equipment, this network equipment comprises: MAC Address extraction unit, detecting unit and MAC Address collision detected response packet sending unit; Wherein,
Described MAC Address extraction unit, extracts MAC Address for the MAC Address collision detection request message from receiving;
Described detecting unit, for detecting extracting MAC Address, whether the MAC Address that judgement extracts is identical with the MAC Address of self;
Described MAC Address collision detected response packet sending unit, when identical with self MAC Address for the MAC Address when extracting, sends MAC Address collision detected response message to multicast address.
The invention discloses a kind of MAC Address distribution system, this system comprises: the network equipment, router and server; Wherein,
The described network equipment, for before accesses network, sends MAC Address request message to router multicast address, carries the current MAC Address of the described network equipment in described MAC Address request message; The MAC Address that receiving router is sent;
Described router, for the described MAC Address request message of sending according to the network equipment, judges whether this locality exists assignable MAC Address, while not there is not assignable MAC Address, sends the request message that obtains MAC Address to server; The MAC Address that server is sent sends to the network equipment;
Described server, distributes MAC Address for the request message of sending according to router, and described MAC Address is sent to router.
As from the foregoing, MAC Address distribution method provided by the invention, device and system, before accesses network, the network equipment sends MAC Address request message to router multicast address, carries the current MAC Address of the described network equipment in described MAC Address request message; Receive the router of described MAC Address request message, judge whether this locality exists assignable MAC Address, while not there is not assignable MAC Address, router sends the request message that obtains MAC Address to server; Server distributes MAC Address according to the request message of receiving, and described MAC Address is sent to router; Described router sends to the network equipment by the MAC Address of receiving, the described network equipment receives and use distributed MAC Address.Adopt technique scheme, can realize according to the request of the network equipment in access network, automatically distribute MAC Address, thereby avoid the situation of MAC Address conflict to occur, and then the normal access of the assurance network equipment to network, for user provides normal network service, reduce the risk of network attack.
Accompanying drawing explanation
Fig. 1 is the structural representation of router of the present invention;
Fig. 2 is the structural representation of the network equipment of the present invention;
Fig. 3 is the structural representation of MAC Address distribution system of the present invention;
Fig. 4 is the realization flow schematic diagram of the first embodiment of MAC Address distribution method of the present invention;
Fig. 5 is the realization flow schematic diagram of the second embodiment of MAC Address distribution method of the present invention;
Fig. 6 is the application scenarios structural representation of access IPv6 network.
Embodiment
The invention discloses a kind of network equipment of initiating side as access to netwoks, this network equipment comprises: MAC Address request message transmitting element and MAC Address receiving element; Wherein,
Described MAC Address request message transmitting element, for before accesses network, sends MAC Address request message to router multicast address, carries the current MAC Address of the described network equipment in described MAC Address request message;
Described MAC Address receiving element, the MAC Address of sending for receiving router.
Optionally, this network equipment also comprises: MAC Address collision detection request message transmitting element, for before accesses network, to multicast address, send MAC Address collision detection request message, in described MAC Address collision detection request message, carry the MAC Address of distribution;
Described MAC Address request message transmitting element, also, for receiving after MAC Address collision detected response message, sends MAC Address request message to router multicast address, carries the current MAC Address of the described network equipment in described request message.
Optionally, this network equipment also comprises: MAC Address conflict notification packet sending unit, for receiving after response message, to router, send MAC Address conflict notification message, and in described MAC Address conflict notification message, carry the MAC Address of distribution.
Described MAC Address request message transmitting element, also, for receiving after MAC Address conflict response message, sends MAC Address request message to router multicast address, carries the current MAC Address of the described network equipment in described MAC Address request message.
The invention discloses a kind of router, as shown in Figure 1, this router comprises: resource judgment unit, request message transmitting element and MAC Address transmitting element; Wherein,
Described resource judgment unit, for receiving after described MAC Address request message, under judgement, whether router there is assignable MAC Address;
Described request message sending unit, for when affiliated router does not exist assignable MAC Address, sends the request message that obtains MAC Address to server;
Described MAC Address transmitting element, for sending to the network equipment by the MAC Address of receiving.
Preferably, described request message sending unit, specifically for sending by IPv6 transmitting control message agreement (Internet Control Message Protocol for IPv6, ICMPv6) the request message SOLICIT that obtains MAC Address to server;
Described MAC Address transmitting element, specifically for extracting MAC Address the ADVERTISE from receiving by DHCPv6 agreement, and sends to the network equipment.
Optionally, described router also comprises:
MAC Address arranges, and is set to temporarily unavailablely for the MAC Address of the MAC Address conflict notification message received, and sends MAC Address conflict response message.
The invention discloses a kind of server, this server device comprises: MAC Address allocation units and MAC Address transmitting element; Wherein,
Described MAC Address allocation units, for distributing MAC Address according to the request message of receiving;
Described MAC Address transmitting element, for sending to router by the MAC Address of distribution.
Preferably, described MAC Address allocation units, specifically for distributing MAC Address according to the SOLICIT receiving;
Described MAC Address transmitting element, sends to router specifically for the MAC Address of distribution is placed in to push-notification-answer ADVERTISE by DHCPv6 agreement.
The invention also discloses a kind of network equipment as access to netwoks response side, as shown in Figure 2, this network equipment comprises:
MAC Address extraction unit, extracts MAC Address for the MAC Address collision detection request message from receiving;
Detecting unit, for detecting extracting MAC Address, whether the MAC Address that judgement extracts is identical with the MAC Address of self;
MAC Address collision detected response packet sending unit, when identical with self MAC Address for the MAC Address when extracting, sends MAC Address collision detected response message to multicast address.
The invention discloses a kind of MAC Address distribution system, as shown in Figure 3, this system comprises: the network equipment, router and server; Wherein,
The described network equipment, for before accesses network, sends MAC Address request message to router multicast address, carries the current MAC Address of the described network equipment in described MAC Address request message; The MAC Address that receiving router is sent;
Described router, for the described MAC Address request message of sending according to the network equipment, judges whether this locality exists assignable MAC Address, while not there is not assignable MAC Address, sends the request message that obtains MAC Address to server; The MAC Address that server is sent sends to the network equipment;
Described server, distributes MAC Address for the request message of sending according to router, and described MAC Address is sent to router.
Based on the said equipment and system, introduce the first embodiment of MAC Address distribution method of the present invention below, as shown in Figure 4, the method comprises:
Before step 401, accesses network, the network equipment sends MAC Address request message to router multicast address, carries the current MAC Address of the described network equipment in described MAC Address request message;
Here, described router multicast address is all-router multicast address FF02::2.
Step 402, receive the router of described MAC Address request message to judge whether this locality exists assignable MAC Address, while not there is not assignable MAC Address, router sends the request message that obtains MAC Address to server;
Concrete, described router sends the request message SOLICIT that obtains MAC Address to server by DHCPv6 agreement.
Step 403, server distribute MAC Address according to the request message of receiving, and described MAC Address are sent to router;
Concrete, described server distributes MAC Address according to the SOLICIT receiving, and described MAC Address is placed in to push-notification-answer ADVERTISE by DHCPv6 agreement, sends to router.
Step 404, described router send to the network equipment by the MAC Address of receiving, the described network equipment receives the MAC Address of distributing.
Concrete, described router extracts MAC Address from the ADVERTISE receiving by DHCPv6 agreement, described MAC Address is placed in to MAC Address assignment response message, and described MAC Address assignment response message is sent to the multicast address generating according to MAC Address in MAC Address request message.
Further, the described network equipment is used the MAC Address of distributing to complete subsequent operation.
Optionally, after judging whether this locality exists assignable MAC Address, the method also comprises:
If there is assignable MAC Address, distribute MAC Address, and described MAC Address is sent to the network equipment.
As from the foregoing, adopt technique scheme can realize according to the request of the network equipment in access IPv6 network, automatically distribute MAC Address, thereby avoid the situation of MAC Address conflict to occur.
Optionally, after described router extracts MAC Address from the ADVERTISE receiving by DHCPv6 agreement, the method also comprises:
Described router is selected with MAC Address and meets to set the ADVERTISE requiring; To the server that sends described ADVERTISE, send request REQUEST;
Described server, according to the REQUEST receiving, is placed in reply response REPLY by the described MAC Address of receiving and sends to router by DHCPv6 agreement;
Router receives REPLY, and therefrom extracts MAC Address.
As from the foregoing, router successively respectively extracts MAC Address one time from ADVERTISE and REPLY, makes like this router to the MAC Address of extracting, to contrast verification according to actual needs, with the accuracy of the MAC Address that guarantees to obtain.
Optionally, before described router sends to the network equipment by MAC Address, also determine the term of validity of described MAC Address, and the term of validity of described MAC Address and described MAC Address is sent to the network equipment.
Like this, the MAC Address that the network equipment is used just has the term of validity, if when surpass the term of validity service time of described MAC Address, described MAC Address lost efficacy, and can improve like this efficiency that recycles of MAC Address.
If need to continue to use this MAC Address after reaching the term of validity of MAC Address, the described network equipment, before the described term of validity is exceeded the time limit, sends continuity term of validity request RENEW/REBIND by DHCPv6 agreement to router, and described request is carried described MAC Address.Router is according to the RENEW/REBIND receiving, and the term of validity that sends described MAC Address by DHCPv6 agreement sends to the network equipment.
Adopt technique scheme can guarantee that the network equipment is when accessing IPv6 network, avoid MAC Address to lose efficacy, make the normal interconnection network of the network equipment.
Further, when the network equipment rolls off the production line, the described network equipment is sent and discharges MAC Address request RELEASE to router by DHCPv6 agreement, and described request is carried described MAC Address; Router is according to the RELEASE that receives, and MAC Address is available described in mark, and described in informing network equipment, MAC Address lost efficacy.
As from the foregoing, adopt technique scheme can avoid when the network equipment disconnects IPv6 network, MAC Address is still occupied, can further improve like this efficiency that recycles of MAC Address.
Based on the said equipment and system, introduce the second embodiment of MAC Address distribution method of the present invention below, compare with the first embodiment, in the present embodiment, comprise the step of MAC Address collision detection, as shown in Figure 5, the method comprises:
Before step 501, accesses network, the network equipment sends MAC Address request message to router multicast address, carries the current MAC Address of the described network equipment in described MAC Address request message;
Step 502, receive the router of described MAC Address request message to judge whether this locality exists assignable MAC Address, if there is no assignable MAC Address, enters step 503; If there is assignable MAC Address, enter step 514.
Step 503, router send the request message that obtains MAC Address to server;
Step 504, server distribute MAC Address according to the request message of receiving, and described MAC Address are sent to router.
Step 505, described router send to the network equipment by the MAC Address of receiving, the described network equipment receives MAC Address.
Before step 506, accesses network, the network equipment sends MAC Address collision detection request message to multicast address, carries the MAC Address of distribution in described MAC Address collision detection request message;
Here, described MAC Address collision detection request message is placed in the ICMPv6 message of expansion or the ICMPv6 option of expansion; Latter 24 of described multicast address is latter 24 of the current MAC Address of the network equipment.Like this, latter 24 of self MAC address all can receive MAC Address collision detection request message with rear 24 identical online network equipments of the current MAC Address of the network equipment, avoid undetected.
Step 507, receive and the destination network device of MAC Address collision detection request message extract MAC Address from described request message.
Step 508, destination network device detect the MAC Address of extracting, and whether the MAC Address that judgement extracts is identical with the MAC Address of self, if identical, enters step 509; If not identical, enter step 515.
Step 509, destination network device send MAC Address collision detected response message to multicast address.
Here, described MAC Address collision detected response message is placed in the ICMPv6 message of expansion or the ICMPv6 option of expansion; Latter 24 of described multicast address is latter 24 of MAC Address in MAC Address collision detection request message.Like this, latter 24 of self MAC address all can receive MAC Address collision detected response message with rear 24 identical online network equipments of MAC Address in MAC Address collision detection request message, avoid the network equipment that sends MAC Address collision detection request message because existing MAC Address conflict not receive MAC Address collision detected response message.
Step 510, the network equipment judge whether receiving in the given time response message, if receive response message, enter step 511; If do not receive response message, enter step 516.
Step 511, the network equipment, according to the MAC Address collision detected response message of receiving, send MAC Address conflict notification message to router, carry the MAC Address of distribution in described notice message;
MAC Address in the MAC Address conflict notification message that step 512, router are received is set to temporarily unavailable, and sends MAC Address conflict response message.
As from the foregoing, the MAC Address in MAC Address conflict notification message is set to temporarily unavailable, can avoid router in subsequent operation, described MAC to be reallocated to other network equipments.
Step 513, the network equipment receive MAC Address conflict response message, return to step 501.
Step 514, distribution MAC Address, and described MAC Address is sent to the network equipment; The described network equipment receives the MAC Address of distributing, and returns to step 506.
Step 515, destination network device do not respond, and return to step 510.
Step 516, the described network equipment are used current MAC Address to be linked into network, finish this flow process.
As from the foregoing, adopt technique scheme to realize and repeat MAC Address distribution and collision detection, until the MAC Address of the network equipment does not exist MAC Address to conflict with other online network equipments, effectively avoid the situation of MAC Address conflict to occur.
Optionally, step 510 is to the function of step 513, also can adopt step below to realize, the network equipment is according to the MAC Address collision detected response message of receiving, before accesses network, to router multicast address, send MAC Address request message, in described MAC Address request message, carry the current MAC Address of the described network equipment and the MAC Address of distribution; Receive that the MAC Address of distributing in the described MAC Address request message of router of described MAC Address request message is set to temporarily unavailable.
The present invention can be applied to access in the scene of IPv6 network, shown in Figure 6, and in Fig. 6, subnet 1 directly connects convergence router by Layer 2 switch 1; Subnet 2 connects Layer 2 switch 2, described Layer 2 switch 2 connection route devices, and described router connects convergence router again.The network equipment 1 is for preparing the network equipment of accesses network, and its preset MAC Address is 00-1C-AC-73-63-A0, and all the other network equipments are the online network equipment.In this example, server is placed in convergence router.
The above, be only preferred embodiment of the present invention, is not intended to limit protection scope of the present invention.

Claims (14)

1. a medium access control MAC Address distribution method, is characterized in that, the method comprises:
Before accesses network, the network equipment sends MAC Address request message to router multicast address, carries the current MAC Address of the described network equipment in described MAC Address request message;
Receive the router of described MAC Address request message, judge whether this locality exists assignable MAC Address, if there is assignable MAC Address, distribute MAC Address, and described MAC Address is sent to the network equipment;
While not there is not assignable MAC Address, router sends the request message that obtains MAC Address to server;
Server distributes MAC Address according to the request message of receiving, and described MAC Address is sent to router;
Described router sends the request message with described MAC Address to described server, and the MAC Address of extracting in the reply response message of described server contrasts verification, verification by after the MAC Address of receiving is sent to the network equipment, the described network equipment receives the MAC Address of distributing;
Before described router sends to the network equipment by MAC Address, also determine the term of validity of described MAC Address, and the term of validity of described MAC Address is sent to the network equipment.
2. method according to claim 1, is characterized in that, described router sends to server the request message that obtains MAC Address and is:
Described router sends by IPv6 transmitting control message protocol DHCP v6 the request message SOLICIT that obtains MAC Address to server;
Described server distributes MAC Address according to the request message of receiving, and sends to router to be described MAC Address:
Described server distributes MAC Address according to the SOLICIT receiving, and described MAC Address is placed in to push-notification-answer ADVERTISE by DHCPv6 agreement, sends to router;
Described router sends to the network equipment by the MAC Address receiving, and the described network equipment receives the MAC Address of distributing and is:
Described router extracts MAC Address from the ADVERTISE receiving by DHCPv6 agreement, and sends to the network equipment.
3. method according to claim 2, is characterized in that, described in send to the network equipment to be:
Described MAC Address is placed in to MAC Address assignment response message, and described MAC Address assignment response message is sent to the multicast address generating according to the MAC Address in MAC Address request message.
4. method according to claim 1, is characterized in that, described router multicast address is all-router multicast address FF02::2.
5. method according to claim 1, is characterized in that, after the described network equipment receives MAC Address, the method also comprises:
Before accesses network, the network equipment sends MAC Address collision detection request message to multicast address, carries the MAC Address of distribution in described MAC Address collision detection request message;
Receive the destination network device of MAC Address collision detection request message, from described MAC Address collision detection request message, extract MAC Address and detect, judge when the MAC Address extract is identical with self MAC Address, to multicast address, send MAC Address collision detected response message;
The network equipment is received after MAC Address collision detected response message, to router multicast address, is sent MAC Address request message.
6. method according to claim 5, is characterized in that, the described network equipment receives that after MAC Address collision detected response message, the method also comprises:
The network equipment sends MAC Address conflict notification message to router, carries the MAC Address of distribution in described notice message;
MAC Address in the MAC Address conflict notification message that router is received is set to temporarily unavailable, and sends MAC Address conflict response message;
The network equipment is received after MAC Address conflict response message, to router multicast address, is sent MAC Address request message.
7. method according to claim 5, is characterized in that, described MAC Address collision detection request message and described MAC Address collision detected response message are placed in respectively the ICMPv6 message of expansion or the ICMPv6 option of expansion.
8. a network equipment, is characterized in that, this network equipment comprises: MAC Address request message transmitting element and MAC Address receiving element; Wherein,
Described MAC Address request message transmitting element, for before accesses network, sends MAC Address request message to router multicast address, carries the current MAC Address of the described network equipment in described MAC Address request message;
Described MAC Address receiving element, the MAC Address of sending for receiving router and the term of validity of described MAC Address; Wherein,
The MAC Address that described router is sent is that described router is determined when this locality exists assignable MAC Address, the MAC Address of distribution; And, while there is not assignable MAC Address in definite this locality, warp-wise server sends the request message that obtains MAC Address, and receive the MAC Address of described server-assignment, then to server, send the request message with the MAC Address of described server-assignment, and the MAC Address of extracting in the reply response message of described server contrasts after verification, the MAC Address of sending;
Continuity term of validity request transmitting unit, while being used for needing to continue to use this MAC Address after reaching the term of validity of MAC Address, before the described term of validity is exceeded the time limit, by DHCPv6 agreement, to router, send continuity term of validity request RENEW/REBIND, described request is carried described MAC Address.
9. the network equipment according to claim 8, it is characterized in that, this network equipment also comprises: MAC Address collision detection request message transmitting element, for before accesses network, to multicast address, send MAC Address collision detection request message, in described MAC Address collision detection request message, carry the MAC Address of distribution;
Described MAC Address request message transmitting element, also, for receiving after MAC Address collision detected response message, sends MAC Address request message to router multicast address, carries the current MAC Address of the described network equipment in described request message.
10. the network equipment according to claim 9, it is characterized in that, this network equipment also comprises: MAC Address conflict notification packet sending unit, be used for receiving after response message, to router, send MAC Address conflict notification message, in described MAC Address conflict notification message, carry the MAC Address of distribution;
Described MAC Address request message transmitting element, also, for receiving after MAC Address conflict response message, sends MAC Address request message to router multicast address, carries the current MAC Address of the described network equipment in described MAC Address request message.
11. 1 kinds of routers, is characterized in that, this router comprises: resource judgment unit, request message transmitting element and MAC Address transmitting element; Wherein,
Described resource judgment unit, for receiving after described MAC Address request message, judges whether described router exists assignable MAC Address;
Described request message sending unit, for when there is not assignable MAC Address in described router, to server, send the request message that obtains MAC Address, and while receiving the MAC Address of distribution of described server, to described server, send the request message with described MAC Address;
Described MAC Address transmitting element, for when there is assignable MAC Address in described router, distribute MAC Address, and described MAC Address is sent to the network equipment, and when there is not assignable MAC Address in described router, MAC Address in the reply response message of the described server of extracted twice is contrasted to verification, and verification by after the MAC Address of receiving is sent to the network equipment;
Term of validity transmitting element, for before described MAC Address is sent to the network equipment, also determines the term of validity of described MAC Address, and the term of validity of described MAC Address is sent to the network equipment.
12. routers according to claim 11, is characterized in that,
Described request message sending unit, specifically for sending the request message SOLICIT that obtains MAC Address to server by DHCPv6 agreement;
Described MAC Address transmitting element, specifically for extracting MAC Address the ADVERTISE from receiving by DHCPv6 agreement, and sends to the network equipment.
13. routers according to claim 11, is characterized in that, described router also comprises:
MAC Address setting unit, is set to temporarily unavailablely for the MAC Address of the MAC Address conflict notification message received, and send MAC Address conflict response message.
14. 1 kinds of MAC Address distribution systems, is characterized in that, this system comprises: the network equipment, router and server; Wherein,
The described network equipment, for before accesses network, sends MAC Address request message to router multicast address, carries the current MAC Address of the described network equipment in described MAC Address request message; The MAC Address that receiving router is sent; While needing to continue to use this MAC Address after reaching the term of validity of MAC Address, before the described term of validity is exceeded the time limit, by DHCPv6 agreement, to router, send continuity term of validity request RENEW/REBIND, described request is carried described MAC Address;
Described router, for the described MAC Address request message of sending according to the network equipment, judges whether this locality exists assignable MAC Address, if there is assignable MAC Address, distributes MAC Address, and described MAC Address is sent to the network equipment;
While not there is not assignable MAC Address, to server, send the request message that obtains MAC Address; While receiving the MAC Address of described server-assignment, to described server, send the request message with described MAC Address, and the MAC Address of extracting in the reply response message of described server contrasts verification, verification by after MAC Address that server is sent send to the network equipment; Before MAC Address is sent to the network equipment, also determine the term of validity of described MAC Address, and the term of validity of described MAC Address is sent to the network equipment;
Described server, distributes MAC Address for the request message of sending according to router, and described MAC Address is sent to router.
CN201110316181.5A 2011-10-17 2011-10-17 Medium/media access control (MAC) address allocation method, device and system Active CN102355510B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110316181.5A CN102355510B (en) 2011-10-17 2011-10-17 Medium/media access control (MAC) address allocation method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110316181.5A CN102355510B (en) 2011-10-17 2011-10-17 Medium/media access control (MAC) address allocation method, device and system

Publications (2)

Publication Number Publication Date
CN102355510A CN102355510A (en) 2012-02-15
CN102355510B true CN102355510B (en) 2014-08-20

Family

ID=45579003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110316181.5A Active CN102355510B (en) 2011-10-17 2011-10-17 Medium/media access control (MAC) address allocation method, device and system

Country Status (1)

Country Link
CN (1) CN102355510B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103327130B (en) * 2012-03-22 2017-07-07 中兴通讯股份有限公司 Method, terminal and system that MAC Address is multiplexed
CN103701943B (en) * 2012-09-27 2018-07-27 南京中兴新软件有限责任公司 The control method and device of MAC Address
CN103841028B (en) * 2014-03-24 2017-02-08 杭州华三通信技术有限公司 Method and device for forwarding messages
CN107613035A (en) * 2014-07-17 2018-01-19 福州瑞芯微电子股份有限公司 The distribution method and MAC distributing equipments of terminal device MAC Address
CN108023972A (en) * 2016-11-04 2018-05-11 中兴通讯股份有限公司 Distribute the method, apparatus and system of MAC Address
CN108574743A (en) * 2017-03-10 2018-09-25 中兴通讯股份有限公司 A kind of distribution method, equipment and the system of local media accessing to control address
CN112543386B (en) * 2019-09-20 2022-04-15 中国移动通信有限公司研究院 Address acquisition method and related equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101291350A (en) * 2008-06-02 2008-10-22 中兴通讯股份有限公司 Processing method and device for address collision of media access control
CN101707637A (en) * 2009-11-27 2010-05-12 中兴通讯股份有限公司 Method and system for allocating IP address

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101291350A (en) * 2008-06-02 2008-10-22 中兴通讯股份有限公司 Processing method and device for address collision of media access control
CN101707637A (en) * 2009-11-27 2010-05-12 中兴通讯股份有限公司 Method and system for allocating IP address

Also Published As

Publication number Publication date
CN102355510A (en) 2012-02-15

Similar Documents

Publication Publication Date Title
CN102355510B (en) Medium/media access control (MAC) address allocation method, device and system
CN103888551B (en) Internet Protocol address acquisition methods, trunking and system in a kind of network
CN101883158B (en) Method and client for acquiring VLAN (Virtual Local Area Network) IDs (Identifiers) and network protocol addresses
CN101558602A (en) Network device location and configuration
US10931549B2 (en) Communication device of an industrial automation system and method for configurating the communication device
CN102340555B (en) Medium/media access control address allocation method, device and system
CN101179603B (en) Method and device for controlling user network access in IPv6 network
CN104378455A (en) IP address distribution method and device
CN104104744A (en) IP address assignment method and device
CN102118453B (en) Method, service device, client and communication system for automatic configuration of IP address
CN108429824B (en) Address allocation method and device
CN101179515B (en) Method and device for inhibiting black hole routing
CN104580029A (en) Address distribution method and device
CN107277190A (en) A kind of method of SDN equipment automatic wire charging, SDN equipment and controller
CN102333013B (en) Method, device and system for detecting medium access control (MAC) address conflicts
CN101834864A (en) Method and device for preventing attack in three-layer virtual private network
CN104468869A (en) Method for allocating IP addresses to terminals and method and device for obtaining IP addresses
US11496574B2 (en) Method for setting up an uninterrupted communication connection and communication device
CN101873320A (en) Client information verification method based on DHCPv6 relay and device thereof
CN102664971B (en) Network address resources management method, system and external address Resource Server
CN102333133A (en) Medium access control (MAC) address distribution method, device and system
CN103051739A (en) Network terminal and IP (Internet Protocol) address configuration method thereof
CN108667957B (en) IP address allocation method, first electronic device and first server
CN104219337A (en) IP address allocation method and device applied to SDN
CN102801716A (en) DHCP (Dynamic Host Configuration Protocol) anti-attacking method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant