CN103701943A - Method and device for controlling MAC (Media Access Control) address - Google Patents

Method and device for controlling MAC (Media Access Control) address Download PDF

Info

Publication number
CN103701943A
CN103701943A CN201210369433.5A CN201210369433A CN103701943A CN 103701943 A CN103701943 A CN 103701943A CN 201210369433 A CN201210369433 A CN 201210369433A CN 103701943 A CN103701943 A CN 103701943A
Authority
CN
China
Prior art keywords
mac
message
mac address
explores
access device
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
Application number
CN201210369433.5A
Other languages
Chinese (zh)
Other versions
CN103701943B (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 CN201210369433.5A priority Critical patent/CN103701943B/en
Priority to PCT/CN2013/083242 priority patent/WO2014048248A1/en
Publication of CN103701943A publication Critical patent/CN103701943A/en
Application granted granted Critical
Publication of CN103701943B publication Critical patent/CN103701943B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5038Address allocation for local use, e.g. in LAN or USB networks, or in a controller area network [CAN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Landscapes

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

Abstract

The invention discloses a method and a device for controlling an MAC (Media Access Control) address. The method comprises the following steps: access equipment receives a first MAC exploration message from terminal equipment, wherein the first MAC exploration message carries an MAC address to be confirmed; the access equipment judges whether the MAC address is available; the access equipment transmits a second MAC exploration message under the condition that the judgment result is available, wherein the second MAC exploration message is used for indicating that the MAC address is available. According to the method, the problem that the MAC address cannot be reutilized in the related technology is solved, and the MAC address is adjusted into dynamic allocation from static allocation, so that the problem that the MAC address is wasted and is not enough is fundamentally solved.

Description

The control method of MAC Address and device
Technical field
The present invention relates to the communications field, in particular to control method and the device of a kind of media access control (Media Access Control, referred to as MAC) address.
Background technology
, there are a large amount of various types of terminal equipments in internet information explosive growth, for example, and the terminal control devices such as home gateway, Set Top Box, smart mobile phone.These equipment need to distribute corresponding identifying resource on the internet, for example, and IP address, MAC Address etc.Wherein, MAC Address refers to device hardware address, is used for the position of define grid equipment.At present, for IP address, by being transitioned into gradually by IPv4 the problem that IPv6 address pattern has solved shortage of ip address; But for MAC Address, it is originally the address space of 48, this address is applied at production link by each equipment supplier, after application, no longer allow conflict, even follow-up this equipment scrapping, its MAC Address of scrapping also cannot be known by management organization, thereby the address dispensing cannot be utilized again, accumulate over a long period, MAC Address eventually can be used and be exhausted.
Meanwhile, Fig. 1 is according to the schematic diagram of the terminal equipment of correlation technique position in network, and as shown in Figure 1, corresponding access network equipment, exists following two features:
1, the MAC of access device comes into force and is limited in scope.This terminal equipment is present in Access Network, by access device, carries out routing forwarding, and the MAC Address that at this moment MAC Address can be access in equipment is replaced, MAC Address only access device among a small circle in come into force;
2, the shared MAC Address amount of terminal equipment is large, often there are a plurality of connections in this terminal equipment, need to set up a plurality of routing interfaces, these routing interfaces are multiplexing to former DSL, ETH or PON interface, thereby each connection needs different MAC Address, and terminal equipment amount is large, often with quantity necessarily, develop, the needed MAC Address of terminal equipment is much larger than conventional equipment so on the whole.
For MAC Address in correlation technique, cannot recycle the problem causing, not yet propose at present effective solution.
Summary of the invention
For MAC Address in correlation technique, cannot recycle the problem causing, the invention provides a kind of control method and device of MAC Address, at least to address the above problem.
According to an aspect of the present invention, provide a kind of control method of MAC Address, having comprised: the MAC that access device receives from terminal equipment explores message, wherein, a described MAC explores in message and carries MAC Address to be confirmed; Described access device judges that whether described MAC Address is available; Judgment result is that available in the situation that, described access device sends the 2nd MAC and explores message, and described the 2nd MAC explores message and is used to indicate described MAC Address and can uses.
Preferably, described the 2nd MAC explores the first evaluation code and the described MAC Address that carries described access device generation in message, after described access device sends described the 2nd MAC exploration message, also comprise: the 3rd MAC that described access device receives from described terminal equipment explores message, described the 3rd MAC explores in message and carries the second evaluation code and described MAC Address; Described access device judges that described first identifies whether code is identical with described the second evaluation code; Judgment result is that identical in the situation that, described access device confirms that described terminal equipment applies described MAC Address.
Preferably, described access device judges whether described MAC Address is available and comprises: described access device checks whether described MAC Address is present in the address table of described access device; In the situation that described MAC Address is not present in the address table of described access device, described access device determines that described MAC Address can use.
Preferably, the type of message that a described MAC explores message, described the 2nd MAC exploration message and described the 3rd MAC exploration message is that MAC explores type, and described MAC explores type and is used for representing that message is used for MAC and explores.
According to a further aspect in the invention, provide a kind of control method of MAC Address, having comprised: terminal equipment sends a MAC to access device and explores message, wherein, a described MAC explores in message and carries MAC Address to be confirmed; The 2nd MAC that described terminal equipment receives from described access device explores message, and described the 2nd MAC exploration message is used to indicate described MAC Address and can uses; Described in described terminal applies, MAC Address and described access device communicate.
Preferably, before described terminal equipment receives the 2nd MAC exploration message from described access device, also comprise: in the situation that arriving Preset Time and do not receive that described the 2nd MAC explores message, described terminal equipment regenerates a described MAC and explores the MAC Address in message, and an amended MAC exploration message is sent to described access device.
Preferably, described the 2nd MAC explores evaluation code and the described MAC Address that carries described access device generation in message, after described terminal equipment receives the 2nd MAC exploration message from described access device, also comprise: described terminal equipment confirms that the described MAC Address of application communicates, and send the 3rd MAC exploration message to described access device, in described the 3rd MAC exploration message, carry described evaluation code and described MAC Address.
Preferably, the type of message that a described MAC explores message, described the 2nd MAC exploration message and described the 3rd MAC exploration message is that MAC explores type, and described MAC explores type and is used for representing that message is used for MAC and explores.
In accordance with a further aspect of the present invention, also provide a kind of control device of MAC Address, be arranged in access device, comprise: the first receiver module, for a MAC who receives from terminal equipment, explore message, wherein, a described MAC explores in message and carries MAC Address to be confirmed; The first judge module, whether available for judging described MAC Address; The first sending module, in the situation that judgment result is that of described the first judge module is available, sends the 2nd MAC and explores message, and described the 2nd MAC exploration message is used to indicate described MAC Address and can uses.
Preferably, in the situation that described the 2nd MAC carries the first evaluation code and described MAC Address that described access device generates in exploring message, described device also comprises: the second receiver module, for the 3rd MAC receiving from described terminal equipment, explore message, described the 3rd MAC explores in message and carries the second evaluation code and described MAC Address; The second judge module, for judging that described first identifies whether code is identical with described the second evaluation code; First confirms module, in the situation that judgment result is that of described the second judge module is identical, confirms that described terminal equipment applies described MAC Address.
Preferably, described the first judge module comprises: inspection unit, for checking whether described MAC Address is present in the address table of described access device; Determining unit, in the situation that described MAC Address is not present in the address table of described access device, determines that described MAC Address can use.
According to of the present invention, provide a kind of control device of MAC Address also on the one hand, be arranged in terminal equipment, comprise: the second sending module, for sending a MAC to access device, explore message, wherein, a described MAC explores in message and carries MAC Address to be confirmed; The 3rd receiver module, explores message for the 2nd MAC receiving from described access device, and described the 2nd MAC exploration message is used to indicate described MAC Address and can uses; Communication module, for applying described MAC Address and described access device communicates.
Preferably, described device also comprises: generation module, in the situation that arriving Preset Time and do not receive that described the 2nd MAC explores message, regenerates a described MAC and explore the MAC Address in message; Described the second sending module also sends to described access device for an amended MAC is explored to message.
Preferably, in the situation that described the 2nd MAC carries evaluation code and the described MAC Address that described access device generates in exploring message, described device also comprises: second confirms module, for confirming that applying described MAC Address communicates; The 3rd sending module, explores message for sending the 3rd MAC to described access device, in described the 3rd MAC exploration message, carries described evaluation code and described MAC Address.
By the present invention, a MAC who adopts access device to receive from terminal equipment explores message, and wherein, a MAC explores in message and carries MAC Address to be confirmed; Access device judges that whether this MAC Address is available; Judgment result is that available in the situation that, access device sends the 2nd MAC and explores message, the 2nd MAC explores message and is used to indicate the mode that this MAC Address can be used, solve MAC Address in correlation technique and cannot recycle the problem causing, MAC Address is adjusted into dynamic assignment by static allocation, thereby has fundamentally avoided the waste of MAC Address and not enough problem.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms the application's a part, and schematic description and description of the present invention is used for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is according to the schematic diagram of the terminal equipment of correlation technique position in network;
Fig. 2 is according to the flow chart of the control method of the MAC Address of the embodiment of the present invention;
Fig. 3 is according to the structured flowchart of the control device of the MAC Address of the embodiment of the present invention;
Fig. 4 is the preferred structure block diagram according to the control device of the MAC Address of the embodiment of the present invention;
Fig. 5 is according to the preferred structure block diagram of the first judge module of the embodiment of the present invention;
Fig. 6 is according to the flow chart of the control method of the another kind of MAC Address of the embodiment of the present invention;
Fig. 7 is according to the structured flowchart of the control device of the another kind of MAC Address of the embodiment of the present invention;
Fig. 8 is the preferred structure block diagram one according to the control device of the another kind of MAC Address of the embodiment of the present invention;
Fig. 9 is the preferred structure block diagram two according to the control device of the another kind of MAC Address of the embodiment of the present invention;
Figure 10 is according to the preferred structure schematic diagram of the MAC probe messages of the embodiment of the present invention one;
Figure 11 is the agreement preferred flow schematic diagram of surveying according to the MAC of the embodiment of the present invention one.
Embodiment
Hereinafter with reference to accompanying drawing, also describe the present invention in detail in conjunction with the embodiments.It should be noted that, in the situation that not conflicting, embodiment and the feature in embodiment in the application can combine mutually.
A kind of control method of MAC Address is provided in the present embodiment, and Fig. 2 is according to the flow chart of the control method of the MAC Address of the embodiment of the present invention, and as shown in Figure 2, the method comprises the steps:
S202, the MAC that access device receives from terminal equipment explores message, and wherein, a MAC explores in message and carries MAC Address to be confirmed;
S204, access device judges that whether this MAC Address is available;
S206, judgment result is that available in the situation that, access device sends the 2nd MAC and explores message, and the 2nd MAC explores message and is used to indicate this MAC Address and can uses.
The present embodiment passes through above-mentioned steps, by terminal equipment, first to access device, send a MAC Address to be confirmed, in the situation that access device judges that this MAC Address can be used, access device is broadcasted this MAC Address and can be used in its compass of competency, adopt a virtual mode that MAC Address to be confirmed communicates in advance, overcome in the communication process running in dynamic assignment MAC Address process and must use MAC Address, and MAC Address needs to consult to obtain this contradiction, having realized MAC Address can reuse, solve MAC Address in correlation technique and cannot recycle the problem causing, MAC Address is adjusted into dynamic assignment by static allocation, thereby the waste of MAC Address and not enough problem have fundamentally been avoided.
Wherein, access device herein refers to the equipment of convergence-level, and access service is provided, and access device is connected into core net; Terminal equipment refers to the network node of being close to the users in network service, for example, and gateway, smart phone, Set Top Box etc.; Access Layer refers to the part of direct user oriented connection or accesses network; Convergence-level refers to the network equipment that connects Access Layer and core layer, for Access Layer provide data converge transmission management distribution processor.Server side refers to the network node of various services group is provided on the Internet.
As a kind of preferred implementation, access device can be explored first evaluation code and this MAC Address that carries access device generation in message at the 2nd MAC, in this case, terminal equipment receives the 2nd MAC and explores in message, can send the 3rd MAC to access device and explore message, at the 3rd MAC, explore in message and carry the second evaluation code and this MAC Address, with to using this MAC Address to confirm.Access device receives after the 3rd MAC exploration message from terminal equipment, can judge above-mentioned first identifies code and second identifies whether code is identical, if identical, this MAC Address of terminal equipment confirmation application is described.Because if terminal equipment has sent a MAC exploration message that repeatedly carries different MAC Address, and these different MAC Address are when all can be used, access device may think that these MAC Address are all used by this terminal equipment, thereby produce the waste of MAC Address, in this way, the 3rd MAC explores the confirmation of message, the appearance of having avoided producing the waste problem of MAC Address, has promoted the level of resources utilization.
Preferably, access device judges whether MAC Address can be with realizing by the address table in this access device, and for example, access device can check whether MAC Address is present in the address table of this access device; In the situation that this MAC Address is not present in the address table of this access device, access device can determine that this MAC Address can use.In this way, can, so that the terminal equipment in the access device of many not intercommunications is used identical MAC Address in network, further improve the service efficiency of MAC Address.
Preferably, an above-mentioned MAC explores the type of message of message, the 2nd MAC exploration message and the 3rd MAC exploration message can explore type for MAC, and this MAC explores type and indicates exactly this message to explore flow process for MAC.
Corresponding to the control method of above-mentioned MAC Address, a kind of control device of MAC Address is also provided in the present embodiment, be arranged in access device, this device is used for realizing above-described embodiment and preferred implementation, has carried out repeating no more of explanation.As used below, the combination of software and/or the hardware of predetermined function can be realized in term " module ".Although the described device of following examples is preferably realized with software, hardware, or the realization of the combination of software and hardware also may and be conceived.
Fig. 3 is according to the structured flowchart of the control device of the MAC Address of the embodiment of the present invention, and as shown in Figure 3, this device comprises: the first receiver module 32, the first judge module 34 and the first sending module 36, be elaborated to modules below.
The first receiver module 32, explores message for a MAC who receives from terminal equipment, and wherein, a MAC explores in message and carries MAC Address to be confirmed; Whether the first judge module 34, is connected with the first receiver module 32, available for judging the MAC Address that the first receiver module 32 receives; The first sending module 36, is connected with the first judge module 34, in the situation that judgment result is that of the first judge module 34 is available, sends the 2nd MAC and explores message, and the 2nd MAC exploration message is used to indicate this MAC Address and can uses.
The present embodiment is by above-mentioned module, by terminal equipment, first to access device, send a MAC Address to be confirmed, at access device, by the first receiver module 32, receive this MAC Address, and in situation about can use by first judge module 34 these MAC Address of judgement, access device is broadcasted this MAC Address by the first sending module 36 and can be used in its compass of competency, adopt a virtual mode that MAC Address to be confirmed communicates in advance, overcome in the communication process running in dynamic assignment MAC Address process and must use MAC Address, and MAC Address needs to consult to obtain this contradiction, having realized MAC Address can reuse, solve MAC Address in correlation technique and cannot recycle the problem causing, MAC Address is adjusted into dynamic assignment by static allocation, thereby the waste of MAC Address and not enough problem have fundamentally been avoided.
Fig. 4 is the preferred structure block diagram according to the control device of the MAC Address of the embodiment of the present invention, as shown in Figure 4, in the situation that the 2nd MAC carries the first evaluation code and above-mentioned MAC Address that access device generates in exploring message, this device can also comprise: the second receiver module 42, be connected with the first sending module 36, for the 3rd MAC receiving from terminal equipment, explore message, the 3rd MAC explores in message and carries the second evaluation code and above-mentioned MAC Address; Whether the second judge module 44, is connected with the second receiver module 42, identical for judging the second evaluation code of the first evaluation code and the second receiver module 42 receptions; First confirms to be connected module 46 with the second judge module 44, and in the situation that judgment result is that of the second judge module 44 is identical, confirmation terminal equipment is applied this MAC Address.
Fig. 5 is according to the preferred structure block diagram of the first judge module 34 of the embodiment of the present invention, and as shown in Figure 5, the first judge module 34 can comprise: inspection unit 342, for checking whether above-mentioned MAC Address is present in the address table of this access device; Determining unit 344, is connected with inspection unit 342, in the situation that this MAC Address is not present in the address table of this access device, determines that this MAC Address can use.
In the present embodiment, also provide the control method of another kind of MAC Address, Fig. 6 is according to the flow chart of the control method of the another kind of MAC Address of the embodiment of the present invention, and as shown in Figure 6, the method comprises the steps:
Step S602, terminal equipment sends a MAC to access device and explores message, and wherein, a MAC explores in message and carries MAC Address to be confirmed;
Step S604, the 2nd MAC that terminal equipment receives from access device explores message, and the 2nd MAC exploration message is used to indicate this MAC Address and can uses;
Step S606, this MAC Address of terminal applies and access device communicate.
The present embodiment passes through above-mentioned steps, by terminal equipment, first to access device, send a MAC Address to be confirmed, in the situation that access device judges that this MAC Address can be used, access device is broadcasted this MAC Address and can be used in its compass of competency, terminal equipment receives after the message that this MAC Address can use, apply this MAC Address and this access device communicates, adopt a virtual mode that MAC Address to be confirmed communicates in advance, overcome in the communication process running in dynamic assignment MAC Address process and must use MAC Address, and MAC Address needs to consult to obtain this contradiction, having realized MAC Address can reuse, solve MAC Address in correlation technique and cannot recycle the problem causing, MAC Address is adjusted into dynamic assignment by static allocation, thereby the waste of MAC Address and not enough problem have fundamentally been avoided.
Preferably, if terminal equipment is after sending a MAC exploration message, do not receive that in the given time the 2nd MAC explores in the situation of message always, terminal equipment can regenerate another MAC Address, and the MAC Address regenerating is carried in a MAC exploration message and sends to access device.In this way, solved in the disabled situation of MAC Address, access device cannot notify this MAC Address of this terminal equipment disabled problem.
As a kind of preferred implementation, access device can be explored first evaluation code and this MAC Address that carries access device generation in message at the 2nd MAC, in this case, terminal equipment receives the 2nd MAC and explores in message, can send the 3rd MAC to access device and explore message, at the 3rd MAC, explore in message and carry the second evaluation code and this MAC Address, with to using this MAC Address to confirm.Access device receives after the 3rd MAC exploration message from terminal equipment, can judge above-mentioned first identifies code and second identifies whether code is identical, if identical, this MAC Address of terminal equipment confirmation application is described.Because if terminal equipment has sent a MAC exploration message that repeatedly carries different MAC Address, and these different MAC Address are when all can be used, access device may think that these MAC Address are all used by this terminal equipment, thereby produce the waste of MAC Address, in this way, the 3rd MAC explores the confirmation of message, the appearance of having avoided producing the waste problem of MAC Address, has promoted the level of resources utilization.
Preferably, an above-mentioned MAC explores the type of message of message, the 2nd MAC exploration message and the 3rd MAC exploration message can explore type for MAC, and this MAC explores type and indicates exactly this message to explore flow process for MAC.
Corresponding to the control method of above-mentioned another kind of MAC Address, the control device of another kind of MAC Address is also provided in the present embodiment, be arranged in terminal equipment, this device is used for realizing above-described embodiment and preferred implementation, has carried out repeating no more of explanation.As used below, the combination of software and/or the hardware of predetermined function can be realized in term " module ".Although the described device of following examples is preferably realized with software, hardware, or the realization of the combination of software and hardware also may and be conceived.
Fig. 7 is according to the structured flowchart of the control device of the another kind of MAC Address of the embodiment of the present invention, and as shown in Figure 7, this device comprises: the second sending module 72, the 3rd receiver module 74 and communication module 76, be elaborated to modules below.
The second sending module 72, explores message for sending a MAC to access device, and wherein, a MAC explores in message and carries MAC Address to be confirmed; The 3rd receiver module 74, is connected with the second sending module 72, for the 2nd MAC receiving from access device, explores message, and the 2nd MAC exploration message is used to indicate this MAC Address and can uses; Communication module 76, is connected with the 3rd receiver module 74, for applying this MAC Address and this access device communicates.
The present embodiment is by above-mentioned module, by terminal equipment, first by the second sending module 72, to access device, send a MAC Address to be confirmed, in the situation that access device judges that this MAC Address can be used, access device is broadcasted this MAC Address and can be used in its compass of competency, terminal equipment receives after the message that this MAC Address can use by the 3rd receiver module 74, adopt communication module 76 these MAC Address of application and this access device to communicate, adopt a virtual mode that MAC Address to be confirmed communicates in advance, overcome in the communication process running in dynamic assignment MAC Address process and must use MAC Address, and MAC Address needs to consult to obtain this contradiction, having realized MAC Address can reuse, solve MAC Address in correlation technique and cannot recycle the problem causing, MAC Address is adjusted into dynamic assignment by static allocation, thereby the waste of MAC Address and not enough problem have fundamentally been avoided.
Fig. 8 is the preferred structure block diagram one according to the control device of the another kind of MAC Address of the embodiment of the present invention, as shown in Figure 8, this device can also comprise: generation module 82, be connected with the 3rd receiver module 74, for in the situation that arriving Preset Time and the 3rd receiver module 74 and not receiving that the 2nd MAC explores message, regenerate a MAC and explore the MAC Address in message; The second sending module 72 can also send to access device for an amended MAC is explored to message.
Fig. 9 is the preferred structure block diagram two according to the control device of the another kind of MAC Address of the embodiment of the present invention, as shown in Figure 9, in the situation that the 2nd MAC carries evaluation code and the above-mentioned MAC Address that access device generates in exploring message, this device can also comprise: second confirms module 92, be connected with the 3rd receiver module 74, for confirming that applying this MAC Address communicates; The 3rd sending module 94, is connected with the second confirmation module 92, for sending the 3rd MAC to access device, explores message, and the 3rd MAC explores in message and carries and identify code and this MAC Address.
Below in conjunction with preferred embodiment, describe, following preferred embodiment combines above-described embodiment and preferred implementation thereof.
In following preferred embodiment, a kind of terminal equipment MAC Address dynamic negotiation and distribution mechanism are provided, can solve MAC Address and use the problem of exhausting.Take the Access Network field of the communications field below describes as example.For realizing this MAC dynamic negotiation mechanism, the protocol that simultaneously also provides dynamic MAC to survey will describe in following preferred embodiment.
Embodiment mono-
In this preferred embodiment, provide a kind of MAC dynamic negotiation mechanism by this mechanism, can solve MAC Address static allocation, after distribution, cannot reclaim, the problem that causes MAC Address to be exhausted, the protocol that simultaneously also provides dynamic MAC to survey, guarantees that MAC Address is reusable.Wherein, MAC surveys and refers to that the agreement of MAC Address dynamic negotiation is called for short.Below the party's case is elaborated.
In this preferred embodiment, by the fixing MAC Address of existing equipment being adjusted into the MAC Address of dynamic negotiation, but consider that message is in communication process, MAC Address is the underlying parameter of equipment location, when MAC Address is unconfirmed, the technical characterstic that message cannot forward, has adopted first Virtual MAC, the mechanism of attempting using goes to solve necessary MAC Address in message communication process, but MAC Address needs again this contradiction of consulting.
The message structure that the MAC that describing this preferred embodiment below in detail provides explores, Figure 10 is the preferred structure schematic diagram of MAC probe messages according to the embodiment of the present invention one (first, second, third MAC explore message) above, as shown in figure 10, the message that this MAC explores can at least comprise three fields, and these three fields are respectively:
1, initial source MAC, this source MAC can be that terminal equipment produces at random, and externally attempts, length and location and existing message link layer source MAC field that this source MAC is placed can be in full accord, comprise 6 bytes.
2, type of message, the type is used for identifying this message and belongs to MAC exploration type, and the length and location of this field also can be in full accord with existing message link layer message field (MFLD), comprises 2 bytes, belongs in current message mechanism the expansion on type of message.
3, message is identified code, identifies that code refers to MAC and surveys the identification code that identifies this application MAC Address state in agreement.This identifies that code is for determining the state of this MAC Address, belong to negotiation phase or acknowledgement state, this evaluation code can be produced by access device, and can on terminal equipment and access device, all preserve, when access device, receive MAC and explore message, and while confirming that its evaluation code of identifying code and own preservation is consistent, can confirm that the MAC Address of this terminal equipment establishment is effective.This message can also increase other fields, as check code, fills, and ageing time etc., but be not necessary parameter, therefore in this preferred embodiment, list no longer one by one.
The agreement flow process that the MAC that describing this preferred embodiment below in detail provides explores, Figure 11 is the agreement preferred flow schematic diagram of surveying according to the MAC of the embodiment of the present invention one, as shown in figure 11, this flow process has been described the emphasis flow process of MAC dynamic negotiation, mainly can relate to the three-way handshake that MAC consults, first by terminal equipment virtual mac address, then send MAC and explore message (being that an above-mentioned MAC explores message), access device receives that this MAC explores after message, check whether this MAC Address exists record in the address table of oneself, as no record, produce and identify code, and respond this MAC Address, terminal equipment is received after the response message (being that above-mentioned the 2nd MAC explores message) of this MAC exploration, confirm to use this MAC Address, recover again confirmation message (being that above-mentioned the 3rd MAC explores message), confirm to use this MAC Address, thereby complete the whole flow process that MAC explores.
If there are many access devices in this network, when terminal equipment can be accessed simultaneously, between many access devices, by dynamic negotiation, confirm main MAC server, MAC Address can only be from this main MAC server distribution.If network exists many access servers, but not intercommunication between these servers does not need to confirm main MAC server.
By above-mentioned MAC, survey and reuse mechanism, MAC Address is adjusted into dynamic assignment by static allocation, thereby has fundamentally avoided the waste of MAC Address and not enough problem.
Embodiment bis-
With reference to the MAC shown in Figure 11, survey flow process and be described in detail, this MAC surveys agreement can comprise three steps:
Step S1102, terminal equipment virtual mac address, and construct MAC probe messages, and its source MAC is virtual mac address, and its type of message is that MAC surveys type, and it identifies that code can, for complete zero, can certainly be decided to be other values;
Step S1104, this message repeats to send according to certain time interval, the virtual mac address difference of at every turn carrying (is not received this virtual mac address for preventing access device, also can send in a certain time interval the message that carries identical MAC Address, after arriving, sends again the message that carries different MAC Address in this time interval), access device is received after this message, check whether this MAC Address exists in the own MAC table of safeguarding, if existed, explanation conflict, this access server does not respond; If there is no, illustrate and do not conflict, can create and identify code, respond this MAC probe messages, and be with this evaluation code;
Step S1106, if terminal equipment retry is not repeatedly received response message, regenerates new MAC Address again, then surveys, if receive this MAC response message, sends confirmation message again, is with this evaluation code.
By these three times mutual, this terminal equipment confirms that this MAC Address is effective, uses this MAC Address, and carries out proper communication.
In another embodiment, also provide a kind of software, the technical scheme that this software is described for carrying out above-described embodiment and preferred embodiment.
In another embodiment, also provide a kind of storage medium, stored above-mentioned software in this storage medium, this storage medium includes but not limited to CD, floppy disk, hard disk, scratch pad memory etc.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in storage device and be carried out by calculation element, and in some cases, can carry out shown or described step with the order being different from herein, or they are made into respectively to each integrated circuit modules, or a plurality of modules in them or step are made into single integrated circuit module to be realized.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (14)

1. a control method for media access control MAC address, is characterized in that, comprising:
The MAC that access device receives from terminal equipment explores message, and wherein, a described MAC explores in message and carries MAC Address to be confirmed;
Described access device judges that whether described MAC Address is available;
Judgment result is that available in the situation that, described access device sends the 2nd MAC and explores message, and described the 2nd MAC explores message and is used to indicate described MAC Address and can uses.
2. method according to claim 1, is characterized in that, described the 2nd MAC explores in message and carries the first evaluation code and described MAC Address that described access device generates, and after described access device sends described the 2nd MAC exploration message, also comprises:
The 3rd MAC that described access device receives from described terminal equipment explores message, and described the 3rd MAC explores in message and carries the second evaluation code and described MAC Address;
Described access device judges that described first identifies whether code is identical with described the second evaluation code;
Judgment result is that identical in the situation that, described access device confirms that described terminal equipment applies described MAC Address.
3. method according to claim 1 and 2, is characterized in that, described access device judges whether described MAC Address is available and comprises:
Described access device checks whether described MAC Address is present in the address table of described access device;
In the situation that described MAC Address is not present in the address table of described access device, described access device determines that described MAC Address can use.
4. according to the method in any one of claims 1 to 3, it is characterized in that, the type of message that a described MAC explores message, described the 2nd MAC exploration message and described the 3rd MAC exploration message is that MAC explores type, and described MAC explores type and is used for representing that message is used for MAC and explores.
5. a control method for media access control MAC address, is characterized in that, comprising:
Terminal equipment sends a MAC to access device and explores message, and wherein, a described MAC explores in message and carries MAC Address to be confirmed;
The 2nd MAC that described terminal equipment receives from described access device explores message, and described the 2nd MAC exploration message is used to indicate described MAC Address and can uses;
Described in described terminal applies, MAC Address and described access device communicate.
6. method according to claim 5, is characterized in that, before described terminal equipment receives the 2nd MAC exploration message from described access device, also comprises:
In the situation that arriving Preset Time and do not receive that described the 2nd MAC explores message, described terminal equipment regenerates a described MAC and explores the MAC Address in message, and an amended MAC exploration message is sent to described access device.
7. according to the method described in claim 5 or 6, it is characterized in that, described the 2nd MAC explores in message and carries evaluation code and the described MAC Address that described access device generates, and after described terminal equipment receives the 2nd MAC exploration message from described access device, also comprises:
Described terminal equipment confirms that the described MAC Address of application communicates, and sends the 3rd MAC exploration message to described access device, in described the 3rd MAC exploration message, carries described evaluation code and described MAC Address.
8. according to the method described in any one in claim 5 to 7, it is characterized in that, the type of message that a described MAC explores message, described the 2nd MAC exploration message and described the 3rd MAC exploration message is that MAC explores type, and described MAC explores type and is used for representing that message is used for MAC and explores.
9. a control device for media access control MAC address, is characterized in that, is arranged in access device, comprising:
The first receiver module, explores message for a MAC who receives from terminal equipment, and wherein, a described MAC explores in message and carries MAC Address to be confirmed;
The first judge module, whether available for judging described MAC Address;
The first sending module, in the situation that judgment result is that of described the first judge module is available, sends the 2nd MAC and explores message, and described the 2nd MAC exploration message is used to indicate described MAC Address and can uses.
10. device according to claim 9, is characterized in that, in the situation that described the 2nd MAC carries the first evaluation code and described MAC Address that described access device generates in exploring message, described device also comprises:
The second receiver module, explores message for the 3rd MAC receiving from described terminal equipment, and described the 3rd MAC explores in message and carries the second evaluation code and described MAC Address;
The second judge module, for judging that described first identifies whether code is identical with described the second evaluation code;
First confirms module, in the situation that judgment result is that of described the second judge module is identical, confirms that described terminal equipment applies described MAC Address.
11. according to the device described in claim 9 or 10, it is characterized in that, described the first judge module comprises:
Inspection unit, for checking whether described MAC Address is present in the address table of described access device;
Determining unit, in the situation that described MAC Address is not present in the address table of described access device, determines that described MAC Address can use.
The control device of 12. 1 kinds of media access control MAC addresses, is characterized in that, is arranged in terminal equipment, comprising:
The second sending module, explores message for sending a MAC to access device, and wherein, a described MAC explores in message and carries MAC Address to be confirmed;
The 3rd receiver module, explores message for the 2nd MAC receiving from described access device, and described the 2nd MAC exploration message is used to indicate described MAC Address and can uses;
Communication module, for applying described MAC Address and described access device communicates.
13. devices according to claim 12, is characterized in that, described device also comprises:
Generation module, in the situation that arriving Preset Time and do not receive that described the 2nd MAC explores message, regenerates a described MAC and explores the MAC Address in message;
Described the second sending module also sends to described access device for an amended MAC is explored to message.
14. according to the device described in claim 12 or 13, it is characterized in that, in the situation that described the 2nd MAC carries evaluation code and the described MAC Address that described access device generates in exploring message, described device also comprises:
Second confirms module, for confirming that applying described MAC Address communicates;
The 3rd sending module, explores message for sending the 3rd MAC to described access device, in described the 3rd MAC exploration message, carries described evaluation code and described MAC Address.
CN201210369433.5A 2012-09-27 2012-09-27 The control method and device of MAC Address Active CN103701943B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201210369433.5A CN103701943B (en) 2012-09-27 2012-09-27 The control method and device of MAC Address
PCT/CN2013/083242 WO2014048248A1 (en) 2012-09-27 2013-09-10 Method and apparatus for controlling mac address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210369433.5A CN103701943B (en) 2012-09-27 2012-09-27 The control method and device of MAC Address

Publications (2)

Publication Number Publication Date
CN103701943A true CN103701943A (en) 2014-04-02
CN103701943B CN103701943B (en) 2018-07-27

Family

ID=50363337

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210369433.5A Active CN103701943B (en) 2012-09-27 2012-09-27 The control method and device of MAC Address

Country Status (2)

Country Link
CN (1) CN103701943B (en)
WO (1) WO2014048248A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104869665A (en) * 2015-04-10 2015-08-26 广东欧珀移动通信有限公司 Network connection control method, router and mobile equipment
CN106131241A (en) * 2016-08-15 2016-11-16 广东欧珀移动通信有限公司 A kind of method for connecting network, device and mobile terminal

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1778062A (en) * 2003-04-21 2006-05-24 Rgb网络有限公司 Time-multiplexed multi-program encryption system
US20070064653A1 (en) * 2005-09-14 2007-03-22 Hee-Jin Jang Method and system for configuring IP address in a mobile communication system
CN101127681A (en) * 2007-09-05 2008-02-20 杭州华三通信技术有限公司 Method and device for binding server MAC address with uplink port
CN101674309A (en) * 2009-09-23 2010-03-17 中兴通讯股份有限公司 Ethernet access method and device thereof
CN101729314A (en) * 2009-11-26 2010-06-09 福建星网锐捷网络有限公司 Method and device for recovering dynamic table entries and dynamic host configuration protocol snoopingsnooping equipment
CN101098285B (en) * 2006-06-30 2010-09-29 国际商业机器公司 Methods and systems for dynamically acquiring MAC addresses
CN102082801A (en) * 2011-02-16 2011-06-01 中兴通讯股份有限公司 Method and system for preventing IPv6 (Internet Protocol Version 6) from duplicate address detection attack
CN102355510A (en) * 2011-10-17 2012-02-15 中兴通讯股份有限公司 Medium/media access control (MAC) address allocation method, device and system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1778062A (en) * 2003-04-21 2006-05-24 Rgb网络有限公司 Time-multiplexed multi-program encryption system
US20070064653A1 (en) * 2005-09-14 2007-03-22 Hee-Jin Jang Method and system for configuring IP address in a mobile communication system
CN101098285B (en) * 2006-06-30 2010-09-29 国际商业机器公司 Methods and systems for dynamically acquiring MAC addresses
CN101127681A (en) * 2007-09-05 2008-02-20 杭州华三通信技术有限公司 Method and device for binding server MAC address with uplink port
CN101674309A (en) * 2009-09-23 2010-03-17 中兴通讯股份有限公司 Ethernet access method and device thereof
CN101729314A (en) * 2009-11-26 2010-06-09 福建星网锐捷网络有限公司 Method and device for recovering dynamic table entries and dynamic host configuration protocol snoopingsnooping equipment
CN102082801A (en) * 2011-02-16 2011-06-01 中兴通讯股份有限公司 Method and system for preventing IPv6 (Internet Protocol Version 6) from duplicate address detection attack
CN102355510A (en) * 2011-10-17 2012-02-15 中兴通讯股份有限公司 Medium/media access control (MAC) address allocation method, device and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104869665A (en) * 2015-04-10 2015-08-26 广东欧珀移动通信有限公司 Network connection control method, router and mobile equipment
CN104869665B (en) * 2015-04-10 2018-11-20 广东欧珀移动通信有限公司 Control method, wireless router and the mobile device of network connection
CN106131241A (en) * 2016-08-15 2016-11-16 广东欧珀移动通信有限公司 A kind of method for connecting network, device and mobile terminal

Also Published As

Publication number Publication date
WO2014048248A1 (en) 2014-04-03
CN103701943B (en) 2018-07-27

Similar Documents

Publication Publication Date Title
CN113596191B (en) Data processing method, network element equipment and readable storage medium
CN102571587B (en) Method and equipment for forwarding messages
CN102404418B (en) Method, device and system for distributing IP (internet protocol) address for user terminal
CN102025798A (en) Address allocation processing method, device and system
CN102025630A (en) Load balancing method and load balancing system
CN102790813B (en) Communication method as well as system and terminal equipment based on IPv6 (internet protocol version 6) network
MX2011006536A (en) Network node and method for controlling resources in a communication network.
CN111327668B (en) Network management method, device, equipment and storage medium
CN113572835B (en) Data processing method, network element equipment and readable storage medium
CN113572864B (en) Data processing method, network element equipment and readable storage medium
CN105323229A (en) CPE-based data transmission method, network element, platform and system
CN102647704B (en) Data transmission processing method, base station and system
CN105450585A (en) Information transmission method and device
CN103327130A (en) Method, terminal and system for reusing MAC address
CN102638396B (en) Load balancing method and device
CN111629059B (en) Cluster communication method, system, equipment and computer readable storage medium
CN102984696B (en) Based on the IP communication means of mobile terminal, equipment and system
CN102882906A (en) Method and device of data communication in constrained application protocol
CN103701943A (en) Method and device for controlling MAC (Media Access Control) address
CN113163276A (en) Method, device and system for issuing routing information
CN103051484A (en) Method and system for processing session service and session border controller
CN102984697A (en) IP (communication method, equipment and system based on mobile terminals
CN102857953A (en) Self-configuration method and device of base station
CN111315037B (en) Communication link establishing method and device, computer equipment and storage medium
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
TA01 Transfer of patent application right

Effective date of registration: 20180427

Address after: 210012 No. 68 Bauhinia Road, Yuhuatai District, Jiangsu, Nanjing

Applicant after: Nanjing Zhongxing New Software Co., Ltd.

Address before: No. 55, Nanshan District science and technology road, Nanshan District, Shenzhen, Guangdong

Applicant before: ZTE Corporation

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

Effective date of registration: 20191119

Address after: 518057 Nanshan District science and technology, Guangdong Province, South Road, No. 55, No.

Patentee after: ZTE Communications Co., Ltd.

Address before: Yuhuatai District of Nanjing City, Jiangsu province 210012 Bauhinia Road No. 68

Patentee before: Nanjing Zhongxing New Software Co., Ltd.

TR01 Transfer of patent right