CN103327130A - Method, terminal and system for reusing MAC address - Google Patents
Method, terminal and system for reusing MAC address Download PDFInfo
- Publication number
- CN103327130A CN103327130A CN2012100779524A CN201210077952A CN103327130A CN 103327130 A CN103327130 A CN 103327130A CN 2012100779524 A CN2012100779524 A CN 2012100779524A CN 201210077952 A CN201210077952 A CN 201210077952A CN 103327130 A CN103327130 A CN 103327130A
- Authority
- CN
- China
- Prior art keywords
- mac address
- rarp
- terminal
- probe messages
- server
- 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.)
- Granted
Links
Images
Abstract
The invention relates to a method, terminal and system for reusing an MAC address. The method comprises the steps that the terminal sends RARP detection messages to an RARP server through an initial MAC address which is obtained arbitrarily, and the RARP detection messages carry a virtual MAC address; if the terminal repeatedly sends the RARP and after a preset frequency is reached, the response messages of the RARP server are not received at all, and then the virtual MAC address is used as a real MAC address to conduct normal communication. According to the method, terminal and system for reusing the MAC address, based on a dynamic negotiation mechanism of the MAC address of an RARP protocol, the MAC address is automatically generated, static allocation of the MAC address is adjusted to be dynamic allocation, and the problems that the MAC address is wasted and not enough to use is solved fundamentally.
Description
Technical field
The present invention relates to communication technique field, relate in particular to a kind of based on RARP (Reverse Address Resolution Protocol, method, terminal and the system of MAC reverse address resolution protocol) (Media Access Control, medium access control) address multiplex.
Background technology
Along with the development of Internet technology, a large amount of various types of terminal equipments appear, and as terminal control devices such as home gateway, set-top box, smart mobile phones, these equipment need distribute the corresponding identification resource on the internet, as IP address, MAC Address etc.For the IP address, carry out the transition to the IPv6 address pattern gradually by IPv4 at present, solved the problem of shortage of ip address, but for MAC Address, original 48 address space, this address is applied at production link by each equipment supplier, namely no longer allow address conflict after the application, even subsequent allocations has the equipment scrapping of this MAC Address, its MAC Address management organization also can't know, make this MAC Address that dispenses to utilize again, accumulate over a long period that MAC Address can be used exhaustion eventually.
Summary of the invention
The method, terminal and the system that provide a kind of MAC Address multiplexing is provided main purpose of the present invention, can't reclaim the problem that causes MAC Address to be exhausted after being intended to solve the MAC Address static allocation.
In order to achieve the above object, the present invention proposes the multiplexing method of a kind of MAC Address, comprising:
Terminal sends the RARP probe messages by the initial MAC Address of obtaining at random to the RARP server, carries virtual mac address in the described RARP probe messages;
After if described terminal repeats to send described RARP probe messages pre-determined number, all do not receive the response message of described RARP server, then carry out normal communication with described virtual mac address as real MAC address.
Preferably, described terminal also comprises to the step that the RARP server sends the RARP probe messages by the initial MAC Address of obtaining at random before:
Described terminal produces described initial MAC Address at random as the temporary address of oneself.
Preferably, described terminal also comprises to the step that the RARP server sends the RARP probe messages by the initial MAC Address of obtaining at random before:
Described terminal is created described virtual mac address;
Make up described RARP probe messages, and described virtual mac address is carried in the described RARP probe messages.
Preferably, described terminal also comprises after the step of RARP server transmission RARP probe messages by the initial MAC Address of obtaining at random:
If described terminal receives the response message that described RARP server returns, then return the described terminal of step and create described virtual mac address.
Preferably, the structure of described RARP probe messages comprises at least: initial MAC Address and type of message, described type of message are used for the described RARP probe messages of sign and belong to RARP detection type.
The present invention also proposes a kind of MAC Address terminals multiplexed, comprising:
Sending module is used for sending the RARP probe messages by the initial MAC Address of obtaining at random to the RARP server, carries virtual mac address in the described RARP probe messages;
Communication module is used for when all not receiving the response message of described RARP server, carrying out normal communication with described virtual mac address as real MAC address after described terminal repeats to send described RARP probe messages pre-determined number.
Preferably, this terminal also comprises:
Initial MAC Address generation module is used for producing at random described initial MAC Address as the temporary address of oneself;
Creation module is used for creating described virtual mac address;
Make up module, be used for making up described RARP probe messages, and described virtual mac address is carried in the described RARP probe messages.
Preferably, described creation module also is used for creating described virtual mac address again after described terminal receives the response message that described RARP server returns.
The present invention also proposes the multiplexing system of a kind of MAC Address, comprises terminal and RARP server, wherein:
Described terminal is used for sending the RARP probe messages by the initial MAC Address of obtaining at random to the RARP server, carries virtual mac address in the described RARP probe messages; After if described terminal repeats to send described RARP probe messages pre-determined number, all do not receive the response message of described RARP server, then carry out normal communication with described virtual mac address as real MAC address;
Described RARP server be used for to receive the RARP probe messages that described terminal sends, and when the virtual mac address that carries when described RARP probe messages exists in subnet scoping, sends response message to described terminal; Otherwise, do not respond.
Preferably, described terminal also is used for producing at random described initial MAC Address as the temporary address of oneself; Create described virtual mac address; Make up described RARP probe messages, and described virtual mac address is carried in the described RARP probe messages; And when receiving the response message that described RARP server returns, create described virtual mac address again.
Multiplexing method, terminal and the system of a kind of MAC Address that the present invention proposes, terminal sends the RARP probe messages that carries virtual mac address by the initial MAC Address of obtaining at random to the RARP server, after if terminal repeats to send pre-determined number, all do not receive the response message of RARP server, then carry out normal communication with this virtual mac address as real MAC address, utilizing the RARP agreement to carry out dynamic MAC thus surveys, guarantee that MAC Address is reusable, solved in the prior art, can't reclaim the problem that causes MAC Address to be exhausted after the MAC Address static allocation.
Description of drawings
Fig. 1 is the schematic flow sheet of the multiplexing method of MAC Address of the present invention one embodiment;
Fig. 2 is the position view of terminal in network among the multiplexing method of MAC Address of the present invention one embodiment;
Fig. 3 is the schematic flow sheet of multiplexing another embodiment of method of MAC Address of the present invention;
Fig. 4 is the structural representation of MAC Address terminals multiplexed one embodiment of the present invention;
Fig. 5 is the structural representation of another embodiment of MAC Address terminals multiplexed of the present invention;
Fig. 6 is the structural representation of one embodiment of the multiplexing system of MAC Address of the present invention.
In order to make technical scheme of the present invention clearer, clear, be described in further detail below in conjunction with accompanying drawing.
Embodiment
The solution of the embodiment of the invention mainly is: terminal sends the RARP probe messages that carries virtual mac address by the initial MAC Address of obtaining at random to the RARP server and broadcasts, inquire whether the MAC Address identical with virtual mac address is arranged in this subnet scoping, if the terminal of this MAC Address is arranged, then the RARP server can respond according to the RARP protocol specification, inform that this MAC Address of this terminal is in the subnet internal memory, if this terminal equipment repeatedly repeats to send the RARP probe messages, the RARP server does not all have response, the terminal of no similar MAC Address in this subnet then is described, then this virtual mac address is fixed use as real MAC address, reusable to guarantee MAC Address, avoid MAC Address to exhaust.
Related terminal is the network node of being close to the users in the network communication among the present invention, as gateway, smart phone, set-top box etc.
As shown in Figure 1, one embodiment of the invention proposes the multiplexing method of a kind of MAC Address, comprising:
Step S101, terminal sends the RARP probe messages by the initial MAC Address of obtaining at random to the RARP server, carries virtual mac address in the RARP probe messages;
Because in the prior art, MAC Address adopts the static allocation mode, MAC Address can't reclaim after the static allocation, cause MAC Address to be exhausted, present embodiment is considered that the MAC of the access device of terminal correspondence comes into force and is limited in scope and big characteristics of MAC Address amount that access device is shared, utilize the RARP agreement to carry out dynamic MAC and survey, reusable to guarantee MAC Address.
As shown in Figure 2, Fig. 2 is the position view of present embodiment terminal in network.The terminal of present embodiment is terminal equipment shown in Figure 2, in the network configuration at terminal place, comprises Access Layer, convergence-level and core layer, core layer Connection Service device side, and terminal connects core layer by access device.Wherein:
Access Layer refers to that direct user oriented connects or the part of accesses network; Convergence-level refers to connect the network equipment of Access Layer and core layer, for Access Layer provides the converging of data, transmits, management and distribution processor etc.; Server side refers to provide on the Internet network node group of various services.
Two characteristics of above-mentioned access device are embodied as:
1, the MAC of access device comes into force and is limited in scope, terminal equipment is present in Access Network, carries out routing forwarding by access device, at this moment, the MAC Address of terminal equipment can be access in the MAC Address of equipment and replace, namely MAC Address only access device among a small circle in come into force;
2, the shared MAC Address amount of access device is big, and often there are a plurality of connections in terminal equipment, and each connects needs different MAC Address, and the terminal equipment amount is big, often develop with quantity necessarily, like this, the needed MAC Address of terminal equipment is much larger than conventional equipment on the whole.
Therefore, according to above two characteristics, present embodiment utilizes the RARP agreement to carry out dynamic MAC and surveys, and detects the idle MAC Address of this Access Network, and carries out multiplexingly, uses the problem of exhausting to solve MAC Address.
At first, terminal sends the RARP probe messages by the initial MAC Address of obtaining at random to the RARP server and broadcasts, carry virtual mac address in this RARP probe messages, by whether the MAC Address identical with above-mentioned virtual mac address is arranged in the subnet scoping at this terminal place of broadcast polling.
Wherein, initial MAC Address is produced at random in advance by terminal and obtains.Present embodiment is adjusted into original terminal fixed MAC address the MAC Address of dynamic negotiation, but consider that message is in communication process, MAC Address is the underlying parameter of terminal positioning, when MAC Address was unconfirmed, the technical characterstic that message can't be transmitted adopted earlier with initial MAC Address as the basis, the constructing virtual MAC Address, and utilize RARP agreement detecting visual MAC Address whether to have the user using, thus find idle MAC Address resource, reach the reusable purpose of MAC Address.
Terminal generates the RARP probe messages according to the virtual mac address of the initial MAC Address that produces at random and structure, utilizes the RARP agreement that this RARP probe messages is sent to the RARP server.
Wherein, the structure of RARP probe messages comprises two necessary fields, initial MAC Address and type of message, and initial MAC Address is that terminal produces at random, and externally attempts, and is made up of 6 bytes; Type of message is used for this RARP probe messages of sign and belongs to RARP exploration type, and the length of this field and position and existing message link layer message field (MFLD) are in full accord, are made up of 2 bytes, are on existing message mechanism, the expansion on type of message.In addition, this RARP probe messages can also increase other fields, such as check code, filling and ageing time etc., but is not must parameter.
Present embodiment is by expanding the type of message of existing RARP message structure, and utilizes existing RARP server to realize reusing of MAC Address.
In the prior art, the RARP server is the equipment of mapped physical address (MAC) and the IP address corresponding with it, and the RARP server can return the IP address of this MAC Address correspondence after receiving the RARP message.
RARP allows the terminal of local area network (LAN) from ARP table or its IP address of buffer memory request of gateway server.The network manager creates a table with mapped physical address (MAC) and the IP address corresponding with it in the LAN gateway router.When a new terminal was set, its RARP client program need be to the corresponding IP of the RARP server request address on the gateway router.Suppose to be provided with in the routing table respective record, the RARP server then can return the IP address and give terminal.
The operation principle of RARP is as follows:
1, terminal sends the RARP message in the mode of broadcasting to the RARP server, in this broadcasting RARP message, states the MAC Address of oneself and asks any IP address of RARP server-assignment of receiving this request;
2, after the RARP server on the local network segment is received this request, check its RARP tabulation, search the IP address of this MAC Address correspondence;
If 3 exist, the RARP server then sends a response message to terminal, and this IP address is offered the terminal use; If there is no, the RARP server is not then done any response to this;
4, terminal is received from the response message of RARP server, utilizes the IP address that obtains to carry out communication; If never receive the response message of RARP server, then represent the initialization failure.
Whether present embodiment utilizes the RARP agreement, virtual MAC address is carried in the RARP probe messages of broadcasting and sends to the RARP server, respond by the RARP server and carry out corresponding operating.
Step S102 after if terminal repeats to send RARP probe messages pre-determined number, does not all receive the response message of RARP server, then carries out normal communication with virtual mac address as real MAC address.
As previously mentioned, the RARP server is after the RARP probe messages of receiving terminal broadcasting, check its RARP tabulation, search the IP address of the virtual mac address correspondence that this RARP probe messages carries, if find, then the RARP server can respond according to the RARP protocol specification, informs this terminal, and this virtual mac address is in the subnet internal memory; Afterwards, after if this terminal repeatedly repeats to send the RARP probe messages, all do not receive the response message of RARP server, the equipment of no similar above-mentioned virtual mac address in this subnet then is described, terminal is then used this virtual mac address as real MAC Address is fixing, carry out normal communication.
Present embodiment is based on the MAC Address dynamic negotiation mechanism of RARP agreement, sending the RARP probe messages that carry virtual mac address with the initial MAC Address of obtaining at random to the RARP server by terminal broadcasts, whether survey this virtual mac address exists in the terminal subnet scoping, if do not exist then this virtual mac address is not fixed use as legal real MAC address, automatically generate the mode of MAC Address by this, MAC Address is adjusted into dynamic assignment by static allocation, thereby has fundamentally avoided the waste of MAC Address and not enough problem.
As shown in Figure 3, another embodiment of the present invention proposes the multiplexing method of a kind of MAC Address, on the basis of above-described embodiment, also comprises before above-mentioned steps S101:
Step S80, terminal produces initial MAC Address at random as the temporary address of oneself.
Step S90 creates virtual mac address;
Step S100 makes up the RARP probe messages, and virtual mac address is carried in the RARP probe messages.
After above-mentioned steps S101, also comprise:
Step S103, whether terminal judges receives the response message that the RARP server returns; If then return step S90; Otherwise, enter step S104;
Step S104 judges whether repeat to send the RARP probe messages reaches pre-determined number, if then enter step S102; Otherwise, enter step S105;
Step S105 repeats intervally to send the RARP probe messages with predetermined time, and enters step S103.
The difference of present embodiment and above-described embodiment is, the present embodiment terminal produces initial MAC Address temporarily at random and broadcasts the temporary address of RARP probe messages as oneself, and serve as that virtual mac address is created on the basis with this initial MAC Address, afterwards, make up the RARP probe messages based on initial MAC Address and virtual mac address, thus, be the automatic generation of MAC Address and the multiplexing precondition of having created of MAC Address, so that terminal is with this RARP probe messages overseas broadcast.
In addition, the present embodiment terminal is after sending the RARP probe messages, if do not obtain the response of RARP server, then terminal can repeat this RARP probe messages to send according to certain time interval, if there is the equipment of above-mentioned virtual mac address in the subnet at this terminal place, then the RARP server can respond; If terminal receives the response message of RARP server, then re-construct virtual mac address again, send the RARP probe messages again, so repeat.
Terminal is surveyed by repeatedly repeating, confirms no response message after, use this virtual mac address conduct initially MAC Address carry out normal communication.
Present embodiment is based on the MAC Address dynamic negotiation mechanism of RARP agreement, obtain initial MAC Address at random by terminal, and establishment virtual mac address and RARP probe messages, sending the RARP probe messages that carries this virtual mac address with initial MAC Address to the RARP server broadcasts, whether survey this virtual mac address exists in the terminal subnet scoping, if do not exist then this virtual mac address is not fixed use as legal real MAC address, automatically generate the mode of MAC Address by this, MAC Address is adjusted into dynamic assignment by static allocation, thereby has fundamentally avoided the waste of MAC Address and not enough problem.
As shown in Figure 4, one embodiment of the invention proposes a kind of MAC Address terminals multiplexed, comprising: sending module 401 and communication module 402, wherein:
Sending module 401 is used for sending the RARP probe messages by the initial MAC Address of obtaining at random to the RARP server, carries virtual mac address in the RARP probe messages;
Because in the prior art, MAC Address adopts the static allocation mode, MAC Address can't reclaim after the static allocation, cause MAC Address to be exhausted, present embodiment is considered that the MAC of the access device of terminal correspondence comes into force and is limited in scope and big characteristics of MAC Address amount that access device is shared, utilize the RARP agreement to carry out dynamic MAC and survey, reusable to guarantee MAC Address.
As shown in Figure 2, Fig. 2 is the position view of present embodiment terminal in network.The terminal of present embodiment is terminal equipment shown in Figure 2, in the network configuration at terminal place, comprises Access Layer, convergence-level and core layer, core layer Connection Service device side, and terminal connects core layer by access device.Wherein:
Access Layer refers to that direct user oriented connects or the part of accesses network; Convergence-level refers to connect the network equipment of Access Layer and core layer, for Access Layer provides the converging of data, transmits, management and distribution processor etc.; Server side refers to provide on the Internet network node group of various services.
Two characteristics of above-mentioned access device are embodied as:
1, the MAC of access device comes into force and is limited in scope, terminal equipment is present in Access Network, carries out routing forwarding by access device, at this moment, the MAC Address of terminal equipment can be access in the MAC Address of equipment and replace, namely MAC Address only access device among a small circle in come into force;
2, the shared MAC Address amount of access device is big, and often there are a plurality of connections in terminal equipment, and each connects needs different MAC Address, and the terminal equipment amount is big, often develop with quantity necessarily, like this, the needed MAC Address of terminal equipment is much larger than conventional equipment on the whole.
Therefore, according to above two characteristics, present embodiment utilizes the RARP agreement to carry out dynamic MAC and surveys, and detects the idle MAC Address of this Access Network, and carries out multiplexingly, uses the problem of exhausting to solve MAC Address.
At first, the sending module 401 of terminal sends the RARP probe messages by the initial MAC Address of obtaining at random to the RARP server and broadcasts, carry virtual mac address in this RARP probe messages, by whether the MAC Address identical with above-mentioned virtual mac address is arranged in the subnet scoping at this terminal place of broadcast polling.
Wherein, initial MAC Address is produced at random in advance by terminal and obtains.Present embodiment is adjusted into original terminal fixed MAC address the MAC Address of dynamic negotiation, but consider that message is in communication process, MAC Address is the underlying parameter of terminal positioning, when MAC Address was unconfirmed, the technical characterstic that message can't be transmitted adopted earlier with initial MAC Address as the basis, the constructing virtual MAC Address, and utilize RARP agreement detecting visual MAC Address whether to have the user using, thus find idle MAC Address resource, reach the reusable purpose of MAC Address.
Terminal generates the RARP probe messages according to the virtual mac address of the initial MAC Address that produces at random and structure, utilizes the RARP agreement that this RARP probe messages is sent to the RARP server.
Wherein, the structure of RARP probe messages comprises two necessary fields, initial MAC Address and type of message, and initial MAC Address is that terminal produces at random, and externally attempts, and is made up of 6 bytes; Type of message is used for this RARP probe messages of sign and belongs to RARP exploration type, and the length of this field and position and existing message link layer message field (MFLD) are in full accord, are made up of 2 bytes, are on existing message mechanism, the expansion on type of message.In addition, this RARP probe messages can also increase other fields, such as check code, filling and ageing time etc., but is not must parameter.
Present embodiment is by expanding the type of message of existing RARP message structure, and utilizes existing RARP server to realize reusing of MAC Address.
In the prior art, the RARP server is the equipment of mapped physical address (MAC) and the IP address corresponding with it, and the RARP server can return the IP address of this MAC Address correspondence after receiving the RARP message.
RARP allows the terminal of local area network (LAN) from ARP table or its IP address of buffer memory request of gateway server.The network manager creates a table with mapped physical address (MAC) and the IP address corresponding with it in the LAN gateway router.When a new terminal was set, its RARP client program need be to the corresponding IP of the RARP server request address on the gateway router.Suppose to be provided with in the routing table respective record, the RARP server then can return the IP address and give terminal.
Whether present embodiment utilizes the RARP agreement, virtual MAC address is carried in the RARP probe messages of broadcasting and sends to the RARP server, respond by the RARP server and carry out corresponding operating.
The RARP server is after the RARP probe messages of receiving terminal broadcasting, check its RARP tabulation, search the IP address of the virtual mac address correspondence that this RARP probe messages carries, if find, then the RARP server can respond according to the RARP protocol specification, inform this terminal, this virtual mac address is in the subnet internal memory; Afterwards, after if this terminal repeatedly repeats to send the RARP probe messages, all do not receive the response message of RARP server, the equipment of no similar above-mentioned virtual mac address in this subnet then is described, 402 of the communication modules of terminal use this virtual mac address as real MAC Address is fixing, carry out normal communication.
Present embodiment is based on the MAC Address dynamic negotiation mechanism of RARP agreement, sending the RARP probe messages that carry virtual mac address with the initial MAC Address of obtaining at random to the RARP server by terminal broadcasts, whether survey this virtual mac address exists in the terminal subnet scoping, if do not exist then this virtual mac address is not fixed use as legal real MAC address, automatically generate the mode of MAC Address by this, MAC Address is adjusted into dynamic assignment by static allocation, thereby has fundamentally avoided the waste of MAC Address and not enough problem.
As shown in Figure 5, another embodiment of the present invention proposes a kind of MAC Address terminals multiplexed, also comprises on the basis of above-described embodiment: initial MAC Address generation module 403, creation module 404 and structure module 405, wherein:
Initial MAC Address generation module 403 is used for producing at random initial MAC Address as the temporary address of oneself;
Creation module 404 is used for creating virtual mac address; And after terminal receives the response message that the RARP server returns, create virtual mac address again;
Make up module 405, be used for making up the RARP probe messages, and virtual mac address is carried in the RARP probe messages.
The difference of present embodiment and above-described embodiment is, in the present embodiment, terminal produces initial MAC Address temporarily at random by initial MAC Address generation module 403 and broadcasts the temporary address of RARP probe messages as oneself, and serve as that virtual mac address is created on the basis by creation module 404 with this initial MAC Address, afterwards, make up the RARP probe messages by making up module 405 based on initial MAC Address and virtual mac address, thus, be the automatic generation of MAC Address and the multiplexing precondition of having created of MAC Address, so that terminal is with this RARP probe messages overseas broadcast.
In addition, the present embodiment terminal is after sending the RARP probe messages, if do not obtain the response of RARP server, then terminal sending module 401 can repeat this RARP probe messages to send according to certain time interval, if there is the equipment of above-mentioned virtual mac address in the subnet at this terminal place, then the RARP server can respond; If terminal receives the response message of RARP server, then creation module 404 re-constructs virtual mac address again, sends the RARP probe messages again, so repeats.
Terminal is surveyed by repeatedly repeating, confirms no response message after, 402 of communication modules use this virtual mac address conduct initially MAC Address carry out normal communication.
Present embodiment is based on the MAC Address dynamic negotiation mechanism of RARP agreement, obtain initial MAC Address at random by terminal, and establishment virtual mac address and RARP probe messages, sending the RARP probe messages that carries this virtual mac address with initial MAC Address to the RARP server broadcasts, whether survey this virtual mac address exists in the terminal subnet scoping, if do not exist then this virtual mac address is not fixed use as legal real MAC address, automatically generate the mode of MAC Address by this, MAC Address is adjusted into dynamic assignment by static allocation, thereby has fundamentally avoided the waste of MAC Address and not enough problem.
As shown in Figure 6, one embodiment of the invention proposes the multiplexing system of a kind of MAC Address, comprises terminal 601 and RARP server 602, wherein:
In addition, terminal 601 also is used for producing initial MAC Address at random as the temporary address of oneself; Create virtual mac address; Make up the RARP probe messages, and virtual mac address is carried in the RARP probe messages; And when receiving the response message that RARP server 602 returns, create virtual mac address again.
Method, terminal and system that embodiment of the invention MAC Address is multiplexing, terminal sends the RARP probe messages that carries virtual mac address by the initial MAC Address of obtaining at random to the RARP server, after if terminal repeats to send pre-determined number, all do not receive the response message of RARP server, then carry out normal communication with this virtual mac address as real MAC address, utilizing the RARP agreement to carry out dynamic MAC thus surveys, guarantee that MAC Address is reusable, fundamentally avoided the waste of MAC Address and not enough problem.
The above only is the preferred embodiments of the present invention; be not so limit claim of the present invention; every equivalent structure or flow process conversion that utilizes specification of the present invention and accompanying drawing content to do; or directly or indirectly be used in other relevant technical field, all in like manner be included in the scope of patent protection of the present invention.
Claims (10)
1. the method that the medium access control MAC Address is multiplexing is characterized in that, comprising:
Terminal sends the RARP probe messages by the initial MAC Address of obtaining at random to reverse address resolution protocol RARP server, carries virtual mac address in the described RARP probe messages;
After if described terminal repeats to send described RARP probe messages pre-determined number, all do not receive the response message of described RARP server, then carry out normal communication with described virtual mac address as real MAC address.
2. method according to claim 1 is characterized in that, described terminal also comprises to the step that the RARP server sends the RARP probe messages by the initial MAC Address of obtaining at random before:
Described terminal produces described initial MAC Address at random as the temporary address of oneself.
3. method according to claim 1 and 2 is characterized in that, described terminal also comprises to the step that the RARP server sends the RARP probe messages by the initial MAC Address of obtaining at random before:
Described terminal is created described virtual mac address;
Make up described RARP probe messages, and described virtual mac address is carried in the described RARP probe messages.
4. method according to claim 3 is characterized in that, described terminal also comprises after the step of RARP server transmission RARP probe messages by the initial MAC Address of obtaining at random:
If described terminal receives the response message that described RARP server returns, then return the described terminal of step and create described virtual mac address.
5. method according to claim 4 is characterized in that, the structure of described RARP probe messages comprises at least: initial MAC Address and type of message, described type of message are used for the described RARP probe messages of sign and belong to RARP detection type.
6. a MAC Address terminals multiplexed is characterized in that, comprising:
Sending module is used for sending the RARP probe messages by the initial MAC Address of obtaining at random to the RARP server, carries virtual mac address in the described RARP probe messages;
Communication module is used for when all not receiving the response message of described RARP server, carrying out normal communication with described virtual mac address as real MAC address after described terminal repeats to send described RARP probe messages pre-determined number.
7. terminal according to claim 6 is characterized in that, also comprises:
Initial MAC Address generation module is used for producing at random described initial MAC Address as the temporary address of oneself;
Creation module is used for creating described virtual mac address;
Make up module, be used for making up described RARP probe messages, and described virtual mac address is carried in the described RARP probe messages.
8. terminal according to claim 7 is characterized in that, described creation module also is used for creating described virtual mac address again after described terminal receives the response message that described RARP server returns.
9. the system that MAC Address is multiplexing is characterized in that, comprises terminal and RARP server, wherein:
Described terminal is used for sending the RARP probe messages by the initial MAC Address of obtaining at random to the RARP server, carries virtual mac address in the described RARP probe messages; After if described terminal repeats to send described RARP probe messages pre-determined number, all do not receive the response message of described RARP server, then carry out normal communication with described virtual mac address as real MAC address;
Described RARP server be used for to receive the RARP probe messages that described terminal sends, and when the virtual mac address that carries when described RARP probe messages exists in subnet scoping, sends response message to described terminal; Otherwise, do not respond.
10. system according to claim 9 is characterized in that, described terminal also is used for producing at random described initial MAC Address as the temporary address of oneself; Create described virtual mac address; Make up described RARP probe messages, and described virtual mac address is carried in the described RARP probe messages; And when receiving the response message that described RARP server returns, create described virtual mac address again.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210077952.4A CN103327130B (en) | 2012-03-22 | 2012-03-22 | Method, terminal and system that MAC Address is multiplexed |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210077952.4A CN103327130B (en) | 2012-03-22 | 2012-03-22 | Method, terminal and system that MAC Address is multiplexed |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103327130A true CN103327130A (en) | 2013-09-25 |
CN103327130B CN103327130B (en) | 2017-07-07 |
Family
ID=49195651
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210077952.4A Expired - Fee Related CN103327130B (en) | 2012-03-22 | 2012-03-22 | Method, terminal and system that MAC Address is multiplexed |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103327130B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104660725A (en) * | 2015-01-30 | 2015-05-27 | 成都赋阳技术开发有限公司 | Method for automatically deploying and withdrawing monitoring according to detected mobile phone location |
CN105656680A (en) * | 2016-01-29 | 2016-06-08 | 浙江宇视科技有限公司 | Method and device for controlling web camera |
CN107094293A (en) * | 2017-06-27 | 2017-08-25 | 南京赢纳信息科技有限公司 | A kind of device and method for obtaining WiFi terminal real MAC address |
CN111757000A (en) * | 2020-06-29 | 2020-10-09 | 江苏邦融微电子有限公司 | Camera ad hoc network in local area network and video transmission method |
WO2021244456A1 (en) * | 2020-05-30 | 2021-12-09 | 华为技术有限公司 | Reverse address resolution method and electronic devices |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101176334A (en) * | 2005-03-18 | 2008-05-07 | 高通股份有限公司 | Dynamic media access control (MAC) address assignment |
CN101291350A (en) * | 2008-06-02 | 2008-10-22 | 中兴通讯股份有限公司 | Processing method and device for address collision of media access control |
CN102025799A (en) * | 2010-12-17 | 2011-04-20 | 北京东土科技股份有限公司 | Method for discovery and automatic configuration for IP address of device |
CN102143068A (en) * | 2011-03-01 | 2011-08-03 | 华为技术有限公司 | Method, device and system for learning MAC (Media Access Control) address |
CN102340555A (en) * | 2011-10-18 | 2012-02-01 | 中兴通讯股份有限公司 | Medium/media access control address allocation method, device and system |
CN102355510A (en) * | 2011-10-17 | 2012-02-15 | 中兴通讯股份有限公司 | Medium/media access control (MAC) address allocation method, device and system |
-
2012
- 2012-03-22 CN CN201210077952.4A patent/CN103327130B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101176334A (en) * | 2005-03-18 | 2008-05-07 | 高通股份有限公司 | Dynamic media access control (MAC) address assignment |
CN101291350A (en) * | 2008-06-02 | 2008-10-22 | 中兴通讯股份有限公司 | Processing method and device for address collision of media access control |
CN102025799A (en) * | 2010-12-17 | 2011-04-20 | 北京东土科技股份有限公司 | Method for discovery and automatic configuration for IP address of device |
CN102143068A (en) * | 2011-03-01 | 2011-08-03 | 华为技术有限公司 | Method, device and system for learning MAC (Media Access Control) address |
CN102355510A (en) * | 2011-10-17 | 2012-02-15 | 中兴通讯股份有限公司 | Medium/media access control (MAC) address allocation method, device and system |
CN102340555A (en) * | 2011-10-18 | 2012-02-01 | 中兴通讯股份有限公司 | Medium/media access control address allocation method, device and system |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104660725A (en) * | 2015-01-30 | 2015-05-27 | 成都赋阳技术开发有限公司 | Method for automatically deploying and withdrawing monitoring according to detected mobile phone location |
CN104660725B (en) * | 2015-01-30 | 2018-03-09 | 中山银利智能科技股份有限公司 | According to detection mobile phone address, automatic cloth is withdrawn a garrison the method for monitoring |
CN105656680A (en) * | 2016-01-29 | 2016-06-08 | 浙江宇视科技有限公司 | Method and device for controlling web camera |
CN107094293A (en) * | 2017-06-27 | 2017-08-25 | 南京赢纳信息科技有限公司 | A kind of device and method for obtaining WiFi terminal real MAC address |
WO2021244456A1 (en) * | 2020-05-30 | 2021-12-09 | 华为技术有限公司 | Reverse address resolution method and electronic devices |
US20230198934A1 (en) * | 2020-05-30 | 2023-06-22 | Huawei Technologies Co., Ltd. | Reverse address resolution method and electronic device |
CN111757000A (en) * | 2020-06-29 | 2020-10-09 | 江苏邦融微电子有限公司 | Camera ad hoc network in local area network and video transmission method |
CN111757000B (en) * | 2020-06-29 | 2021-12-28 | 江苏邦融微电子有限公司 | Camera ad hoc network in local area network and video transmission method |
Also Published As
Publication number | Publication date |
---|---|
CN103327130B (en) | 2017-07-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101262505B (en) | A method, system and device for establishing ARP table items | |
CN102271050B (en) | Method and system for automatically configuring network equipment in Internet protocol version 6 (IPv6) network, and network equipment | |
CN100502413C (en) | IP address requesting method for DHCP client by DHCP repeater | |
CN102148878B (en) | IP (internet protocol) address allocation method, system and device | |
CN101188514A (en) | Method, device and system for automatically discovering network element device | |
CN104348873A (en) | Virtual network element automatic loading method and system and virtual machine IP (Internet Protocol) address acquisition method and system | |
CN102752413B (en) | Dynamic Host Configuration Protocol server system of selection and the network equipment | |
CN102857382B (en) | Network management equipment, access convergent equipment, access terminal equipment, and management method and system for access terminal equipment | |
CN102761499B (en) | Gateway and method for preventing same from being attacked | |
CN102447746B (en) | Information supply method, family gateway and family network system | |
CN102172062B (en) | Communication system, connection control device, mobile terminal, base station control method, service request method and program | |
CN103873497A (en) | Method, device and system for scheduling information | |
CA2585683A1 (en) | Method for configuring a windfarm network | |
CN103327130A (en) | Method, terminal and system for reusing MAC address | |
CN101355594A (en) | Method for detecting address conflict when distributing IP address | |
CN102394948B (en) | DHCP (dynamic host configuration protocol) address distribution method and DHCP server | |
CN101873320B (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 | |
CN102594839B (en) | Method for distinguishing pseudo dynamic host configuration protocol (DHCP) servers and switchboards | |
CN103795581A (en) | Address processing method and address processing device | |
CN105187312A (en) | Method, device and router for carrying out network communication on batch terminal equipment | |
CN111629059B (en) | Cluster communication method, system, equipment and computer readable storage medium | |
CN101808145B (en) | IP address distributing method and system | |
CN107438098A (en) | A kind of dynamic content dispensing method and its system | |
CN102377830A (en) | IP (Internet Protocol) address configuration method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170707 Termination date: 20190322 |
|
CF01 | Termination of patent right due to non-payment of annual fee |