WO2014048248A1 - Mac地址的控制方法及装置 - Google Patents

Mac地址的控制方法及装置 Download PDF

Info

Publication number
WO2014048248A1
WO2014048248A1 PCT/CN2013/083242 CN2013083242W WO2014048248A1 WO 2014048248 A1 WO2014048248 A1 WO 2014048248A1 CN 2013083242 W CN2013083242 W CN 2013083242W WO 2014048248 A1 WO2014048248 A1 WO 2014048248A1
Authority
WO
WIPO (PCT)
Prior art keywords
mac
mac address
access device
discovery message
address
Prior art date
Application number
PCT/CN2013/083242
Other languages
English (en)
French (fr)
Inventor
缪伟
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2014048248A1 publication Critical patent/WO2014048248A1/zh

Links

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

Definitions

  • FIG. 1 is a schematic diagram of a location of a terminal device in a network according to the related art. As shown in FIG. 1, corresponding to the access network device, the following two features exist:
  • the MAC address of the access device has a limited range.
  • the terminal device exists in the access network, and the access device performs routing and forwarding. At this time, the MAC address is replaced by the MAC address of the access device, that is, the MAC address is valid only in a small range of the access device;
  • the terminal device occupies a large amount of MAC addresses, the terminal device often has multiple connections, and multiple routing interfaces need to be established. These routing interfaces are multiplexed with the original DSL, ETH or PON interfaces, so each connection needs Different MAC addresses, and a large amount of terminal devices, are often developed in the order of tens of millions, so that the MAC addresses required by the terminal devices as a whole are much larger than those of ordinary devices.
  • an effective solution has not yet been proposed.
  • a method for controlling a MAC address including: an access device receiving a first MAC discovery message from a terminal device, where the first MAC discovery message carries a MAC to be acknowledged The access device determines whether the MAC address is available; if the judgment result is available, the access device sends a second MAC discovery message, where the second MAC discovery message is used to indicate the The MAC address is available.
  • the method before the receiving, by the terminal device, the second MAC discovery message from the access device, the method further includes: when the preset time is reached and the second MAC discovery message is not received, where The terminal device regenerates the MAC address in the first MAC search packet, and sends the modified first MAC search packet to the access device.
  • the second MAC discovery message carries the authentication code generated by the access device and the MAC address, after the terminal device receives the second MAC discovery message from the access device. And the terminal device confirms that the MAC address is used for communication, and sends a third MAC search packet to the access device, where the third MAC search packet carries the authentication code and the MAC address.
  • the packet type of the first MAC discovery message, the second MAC discovery message, and the third MAC discovery message is a MAC search type, and the MAC search type is used to indicate that the message is used for MAC exploration.
  • a device for controlling a MAC address is provided, which is located in an access device, and includes: a first receiving module, configured to receive a first MAC discovery message from a terminal device, where The first MAC discovery packet carries a MAC address to be confirmed; the first determining module is configured to determine whether the MAC address is available; and the first sending module is configured to be that the judgment result of the first determining module is available.
  • the device further includes: a second receiving module, configured to receive from a third MAC discovery message of the terminal device, where the third MAC discovery message carries a second authentication code and the MAC address; the second determining module is configured to determine the first authentication code and the Whether the second authentication code is the same; the first confirmation module is configured to confirm that the terminal device applies the MAC address if the determination result of the second determining module is the same.
  • the first determining module includes: an checking unit, configured to check whether the MAC address exists in an address table of the access device; and determining, configured to not exist in the MAC address In the case of entering the address table of the device, it is determined that the MAC address is available.
  • a MAC address control device is provided, which is located in a terminal device, and includes: a second sending module, configured to send a first MAC discovery message to an access device, where the first The MAC address of the MAC address to be acknowledged carries the MAC address to be acknowledged; the third receiving module is configured to receive the second MAC search message from the access device, where the second MAC search message is used to indicate the MAC address.
  • a communication module is configured to apply the MAC address to communicate with the access device.
  • the device further includes: a generating module, configured to regenerate the MAC address in the first MAC discovery message if the second MAC discovery message is not received after the preset time is reached;
  • the second sending module is further configured to send the modified first MAC discovery message to the access device.
  • the device in the case that the second MAC search message carries the authentication code generated by the access device and the MAC address, the device further includes: a second confirmation module, configured to confirm the application
  • the third address sending module is configured to send a third MAC search message to the access device, where the third MAC search message carries the authentication code and the MAC address.
  • the access device is configured to receive the first MAC discovery message from the terminal device, where the first MAC discovery message carries the MAC address to be confirmed; the access device determines whether the MAC address is available; If the information is available, the access device sends a second MAC discovery message, where the second MAC discovery message is used to indicate that the MAC address is available, and solves the problem that the MAC address cannot be reused in the related art, and the MAC is The address is adjusted from static allocation to dynamic allocation, thereby fundamentally avoiding the waste of MAC address and insufficient use.
  • FIG. 4 is a block diagram showing a preferred structure of a control device for a MAC address according to an embodiment of the present invention
  • FIG. 5 is a block diagram showing a preferred configuration of a first judging module according to an embodiment of the present invention
  • a flowchart of a method for controlling another MAC address of an embodiment
  • FIG. 7 is a structural block diagram of another MAC address control apparatus according to an embodiment of the present invention
  • FIG. 8 is another MAC address according to an embodiment of the present invention.
  • FIG. 9 is a block diagram showing a preferred structure of a MAC address control apparatus according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram showing a preferred structure of a MAC detection message according to an embodiment of the present invention.
  • FIG. 2 is a flowchart of a method for controlling a MAC address according to an embodiment of the present invention. As shown in FIG. 2, the method includes the following steps:
  • the access device receives the first MAC discovery message from the terminal device, where the first MAC discovery message carries the MAC address to be confirmed; S204, the access device determines whether the MAC address is available;
  • the access device sends a second MAC discovery message, where the second MAC discovery message is used to indicate that the MAC address is available.
  • the terminal device first sends a MAC address to be confirmed to the access device by the terminal device.
  • the access device broadcasts the MAC address in its jurisdiction.
  • the method of pre-virtually communicating with a MAC address to be confirmed overcomes the fact that the MAC address must be used in the communication process encountered during the dynamic allocation of the MAC address, and the MAC address needs to be negotiated to obtain the contradiction, so that the MAC address can be repeated.
  • the access device in this document refers to a device at the aggregation layer, which provides an access service and connects the access device to the core network.
  • the terminal device refers to a network node close to the user in network communication, for example, a gateway, a smart phone.
  • the access layer refers to the part that directly connects to the user or accesses the network
  • the aggregation layer refers to the network device that connects the access layer and the core layer, and provides data aggregation, transmission, management, and distribution for the access layer. deal with.
  • the server side refers to a network node group that provides various services on the Internet.
  • the access device may carry the first authentication code generated by the access device and the MAC address in the second MAC discovery packet. In this case, the terminal device receives the second MAC discovery report.
  • the third MAC discovery message may be sent to the access device, where the second MAC discovery message carries the second authentication code and the MAC address to confirm the use of the MAC address.
  • the access device may determine whether the first authentication code and the second authentication code are the same. If they are the same, the terminal device confirms that the MAC address is applied. If the terminal device sends multiple first MAC address discovery messages carrying different MAC addresses, and the different MAC addresses can be used, the access device may consider that the MAC addresses are used by the terminal device, thereby generating a MAC. The waste of the address, the confirmation of the third MAC discovery message in this manner avoids the waste of the MAC address and improves the resource utilization efficiency. Preferably, the access device determines whether the MAC address is available by using an address table in the access device.
  • the access device may check whether the MAC address exists in the address table of the access device; In the case where it exists in the address table of the access device, the access device can determine that the MAC address is available. In this way, terminal devices in multiple non-interworking access devices in the network can use the same MAC address, which further improves the efficiency of MAC address usage.
  • the packet type of the first MAC search message, the second MAC search message, and the third MAC search message may be a MAC search type, and the MAC search type indicates that the message is used in the MAC search process.
  • FIG. 3 is a structural block diagram of a MAC address control apparatus according to an embodiment of the present invention. As shown in FIG. 3, the apparatus includes: a first receiving module 32, a first determining module 34, and a first sending module 36. The module is described in detail.
  • the first receiving module 32 is configured to receive the first MAC discovery message from the terminal device, where the first MAC discovery message carries the MAC address to be confirmed; the first determining module 34 is connected to the first receiving module 32. And being configured to determine whether the MAC address received by the first receiving module 32 is available; the first sending module 36 is connected to the first determining module 34, and is configured to send the first when the determining result of the first determining module 34 is available.
  • the second MAC discovery packet is used to indicate that the MAC address is available.
  • the terminal device first sends a MAC address to be confirmed to the access device, and the access device receives the MAC address through the first receiving module 32, and determines the MAC address by using the first determining module 34.
  • the access device When available, the access device broadcasts the MAC address in its jurisdiction through the first sending module 36, and uses a virtual MAC address to be confirmed in advance to communicate, thereby overcoming the problem encountered during the dynamic allocation of the MAC address.
  • the MAC address must be used in the communication process, and the MAC address needs to be negotiated to obtain this contradiction.
  • the MAC address can be reused, which solves the problem that the MAC address cannot be reused in the related art, and the MAC address is adjusted from static allocation to dynamic. Allocation, thus fundamentally avoiding the waste of MAC addresses and insufficient use.
  • 4 is a block diagram of a preferred structure of a MAC address control apparatus according to an embodiment of the present invention. As shown in FIG.
  • the second MAC search message carries a first authentication code generated by an access device and the MAC address.
  • the device may further include: a second receiving module 42, connected to the first sending module 36, configured to receive a third MAC discovery message from the terminal device, where the third MAC discovery message carries the second authentication code And the foregoing MAC address; the second determining module 44 is connected to the second receiving module 42 and configured to determine whether the first authentication code is the same as the second authentication code received by the second receiving module 42; the first confirming module 46, and the second The judging module 44 is connected, and is set to confirm that the terminal device applies the MAC address if the judgment result of the second judging module 44 is the same.
  • 5 is a block diagram of a preferred structure of the first determining module 34.
  • the first determining module 34 may include: an checking unit 342, configured to check whether the MAC address exists in the access device.
  • the determining unit 344 is connected to the checking unit 342 and is configured to determine that the MAC address is available if the MAC address does not exist in the address table of the access device.
  • FIG. 6 is a flowchart of another method for controlling a MAC address according to an embodiment of the present invention. As shown in FIG. 6, the method includes the following steps.
  • Step S602 The terminal device sends a first MAC search message to the access device, where the first MAC search message carries the MAC address to be acknowledged; Step S604, the terminal device receives the second MAC address from the access device. Exploring a message, the second MAC discovery message is used to indicate that the MAC address is available; Step S606, the terminal applies the MAC address to communicate with the access device.
  • the terminal device first sends a MAC address to be confirmed to the access device by the terminal device. When the access device determines that the MAC address is available, the access device broadcasts the MAC address in its jurisdiction.
  • the terminal device After receiving the message that the MAC address is available, the terminal device uses the MAC address to communicate with the access device, and uses a virtual MAC address to be confirmed in advance to communicate, thereby overcoming the communication encountered during the dynamic allocation of the MAC address.
  • the MAC address must be used in the process, and the MAC address needs to be negotiated to obtain this contradiction.
  • the MAC address can be reused, which solves the problem that the MAC address cannot be reused in the related art, and the MAC address is adjusted from static allocation to dynamic allocation. Therefore, the waste of MAC address and insufficient use are fundamentally avoided.
  • the terminal device may regenerate another MAC address and regenerate the MAC address.
  • the address is carried in the first MAC discovery message and sent to the access device. In this way, when the MAC address is unavailable, the access device cannot notify the terminal device that the MAC address is unavailable.
  • the access device may carry the first authentication code generated by the access device and the MAC address in the second MAC discovery packet. In this case, the terminal device receives the second MAC discovery report.
  • the third MAC discovery message may be sent to the access device, where the second MAC discovery message carries the second authentication code and the MAC address to confirm the use of the MAC address.
  • the access device may determine whether the first authentication code and the second authentication code are the same. If they are the same, the terminal device confirms that the MAC address is applied. If the terminal device sends multiple first MAC address discovery messages carrying different MAC addresses, and the different MAC addresses can be used, the access device may consider that the MAC addresses are used by the terminal device, thereby generating a MAC. The waste of the address, the confirmation of the third MAC discovery message in this manner avoids the waste of the MAC address and improves the resource utilization efficiency.
  • the packet type of the first MAC search message, the second MAC search message, and the third MAC search message may be a MAC search type, and the MAC search type indicates that the message is used in the MAC search process.
  • another control device for the MAC address is provided in the embodiment, which is located in the terminal device, and the device is used to implement the foregoing embodiment and the preferred embodiment. The description will not be repeated.
  • the term "module" may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus includes: a second sending module 72, a third receiving module 74, and a communication module 76. Each module is described in detail.
  • the second sending module 72 is configured to send a first MAC search message to the access device, where the first MAC search message carries the MAC address to be acknowledged, and the third receiving module 74 is connected to the second sending module 72.
  • the second MAC discovery message is received from the access device, and the second MAC discovery message is used to indicate that the MAC address is available.
  • the communication module 76 is connected to the third receiving module 74 and configured to apply the MAC address.
  • the access device communicates.
  • the terminal device first sends a MAC address to be confirmed to the access device by using the second sending module 72.
  • the access device determines that the MAC address is available, the access device is in its jurisdiction. Broadcasting the MAC address is available.
  • the communication module 76 applies the MAC address to communicate with the access device, and uses a virtual MAC address to be confirmed in advance. The way of communication overcomes the problems encountered during the dynamic allocation of MAC addresses The MAC address must be used in the communication process, and the MAC address needs to be negotiated to obtain this contradiction.
  • FIG. 8 is a block diagram of a preferred structure of a MAC address control apparatus according to an embodiment of the present invention.
  • the apparatus may further include: a generating module 82 connected to the third receiving module 74, configured to be in When the preset time is reached and the third receiving module 74 does not receive the second MAC discovery message, the MAC address in the first MAC discovery message is regenerated; the second sending module 72 may also be configured to be modified.
  • a MAC discovery packet is sent to the access device.
  • the second MAC discovery message carries an authentication code generated by an access device and the MAC address.
  • the device may further include: a second confirmation module 92, connected to the third receiving module 74, configured to confirm that the MAC address is used for communication; and a third sending module 94, connected to the second confirmation module 92, configured to The third MAC discovery message is sent to the access device, where the third MAC discovery message carries the authentication code and the MAC address.
  • a MAC address dynamic negotiation and allocation mechanism of a terminal device which can solve the problem of exhaustion of MAC address usage.
  • the following describes an access network field in the communication field as an example.
  • a protocol mechanism for dynamic MAC detection is also provided, which will be described in the following preferred embodiments.
  • Embodiment 1 In the preferred embodiment, a MAC dynamic negotiation mechanism is provided, which can solve the problem that the MAC address is statically allocated, cannot be reclaimed after being allocated, and causes MAC address exhaustion, and also provides a protocol for dynamic MAC detection. Mechanism to ensure that the MAC address is reusable.
  • the MAC probe refers to the short name of the protocol for dynamic MAC address negotiation.
  • the fixed MAC address of the original device is adjusted to the dynamically negotiated MAC address, but the MAC address is the basic parameter of the device positioning, and the MAC address is not confirmed.
  • the technical feature that the message cannot be forwarded adopts the first virtual MAC, and attempts to use the mechanism to solve the contradiction that the MAC address must be negotiated in the message communication process, but the MAC address needs to be negotiated.
  • FIG. 10 is a preferred structure of the MAC probe message (ie, the first, second, and third MAC search messages in the above) according to an embodiment of the present invention.
  • the MAC search packet can include at least three fields, and the three fields are:
  • the initial source MAC address, the source MAC address can be randomly generated by the terminal device, and the external attempt, the length and location of the source MAC address can be completely consistent with the source MAC address field of the existing packet link layer, including 6 byte.
  • the packet type, the type is used to identify that the packet belongs to the MAC discovery type, and the length and location of the field are also identical to the existing packet link layer packet field, including 2 bytes, belonging to the current On the message mechanism, the extension on the message type.
  • the message authentication code, the identification code refers to the identification code in the MAC detection protocol that identifies the status of the application MAC address.
  • the authentication code is used to determine whether the status of the MAC address belongs to the negotiation phase or the confirmation state.
  • the authentication code can be generated by the access device and can be saved on both the terminal device and the access device. When the MAC discovers the packet and confirms that the authentication code is consistent with the authentication code saved by itself, it can confirm that the MAC address created by the terminal device is valid.
  • FIG. 11 is a schematic flowchart of a protocol for MAC detection according to an embodiment of the present invention. As shown in FIG. 11, the process describes a key process of MAC dynamic negotiation. The three-way handshake of the MAC negotiation may be involved. First, the virtual MAC address of the terminal device is sent, and then the MAC discovery message (that is, the first MAC discovery message) is sent. After the access device receives the MAC discovery packet, the access device checks whether the MAC address is A record exists in the own address table.
  • the terminal device If there is no record, an authentication code is generated, and in response to the MAC address, after receiving the response message of the MAC search (that is, the second MAC discovery message), the terminal device confirms that the code is used. After the MAC address is restored, the acknowledgment message (that is, the third MAC Quest message) is used to confirm the use of the MAC address, thereby completing the entire process of MAC discovery. If there are multiple access devices on the network and the terminal devices can access at the same time, the multiple access devices confirm the primary MAC server through dynamic negotiation, that is, the MAC address can only be distributed from the primary MAC server. If there are multiple access servers on the network, but these servers do not communicate with each other, there is no need to confirm the primary MAC server.
  • the MAC detection protocol may include three steps: Step S1102, the virtual MAC address of the terminal device, and construct a MAC detection packet, where the source MAC address is a virtual MAC address, and the packet is a packet.
  • the type is the MAC detection type, and the authentication code can be all zeros. Of course, it can be set to other values.
  • step S1104 the packet is repeatedly sent at a certain time interval, and the virtual MAC address carried each time is different (to prevent access). The device does not receive the virtual MAC address.
  • Step S1106 If the terminal device does not receive the response packet after retrying multiple times, regenerate the new packet. The MAC address is detected again. If the MAC response packet is received, an acknowledgement packet is sent and the authentication code is carried.
  • a MAC address control method and apparatus provided by an embodiment of the present invention have the following beneficial effects: It can adjust a MAC address from a static allocation to a dynamic allocation, thereby substantially avoiding waste of a MAC address. And not enough problems.
  • modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. Perform the steps shown or described, or separate them into individual integrated circuit modules, or Multiple of these modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
  • the above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Landscapes

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

Abstract

本发明公开了一种MAC地址的控制方法及装置,其中,该方法包括:接入设备接收来自终端设备的第一MAC探索报文,其中,该第一MAC探索报文中携带有待确认的MAC地址;接入设备判断该MAC地址是否可用;在判断结果为可用的情况下,接入设备发送第二MAC探索报文,该第二MAC探索报文用于指示该MAC地址可用。通过本发明,解决了相关技术中MAC地址无法再利用导致的问题,将MAC地址由静态分配调整为动态分配,从而根本上避免了MAC地址的浪费和不够用的问题。

Description

MAC地址的控制方法及装置 技术领域 本发明涉及通信领域, 具体而言, 涉及一种媒体接入控制(Media Access Control, 简称为 MAC) 地址的控制方法及装置。 背景技术 互联网信息爆炸式发展, 出现大量各种类型的终端设备, 例如, 家庭网关、 机顶 盒、智能手机等终端控制设备。这些设备需要在互联网上分配对应的标识资源, 例如, IP地址、 MAC地址等。 其中, MAC地址指的是设备硬件地址, 用来定义网络设备的 位置。 目前, 对于 IP地址, 已经通过由 IPv4逐渐过渡到 IPv6地址模式解决了 IP地址 不足的问题; 但是对于 MAC地址, 其原定是 48位的地址空间, 该地址由各设备提供 商在生产环节进行申请, 申请后不再允许冲突, 即使后续该设备报废, 其报废的 MAC 地址也无法由管理机构知晓,从而使得分配出去的地址无法再次利用,日积月累, MAC 地址终究会被使用耗竭。 同时, 图 1是根据相关技术的终端设备在网络中位置的示意图, 如图 1所示, 对 应接入网设备, 存在以下两个特点:
1, 接入设备的 MAC生效范围有限。 该终端设备存在于接入网, 由接入设备进行 路由转发, 这时 MAC地址会被接入设备的 MAC地址进行替换, 即 MAC地址只在接 入设备的小范围内生效;
2, 终端设备所占用的 MAC地址量大, 该终端设备往往存在多个连接, 需要建立 多个路由接口, 这些路由接口是对原 DSL、 ETH或 PON接口的复用, 因而每个连接 都需要不同的 MAC地址, 而且终端设备量大, 往往以千万的数量进行发展, 这样整 体上终端设备所需要的 MAC地址远大于普通设备。 针对相关技术中 MAC地址无法再利用导致的问题, 目前尚未提出有效的解决方 案。 发明内容 本发明提供了一种 MAC 地址的控制方法及装置, 以至少解决相关技术中 MAC 地址无法再利用导致的问题。 根据本发明的一个方面, 提供了一种 MAC地址的控制方法, 包括: 接入设备接 收来自终端设备的第一 MAC探索报文,其中,所述第一 MAC探索报文中携带有待确 认的 MAC地址;所述接入设备判断所述 MAC地址是否可用;在判断结果为可用的情 况下,所述接入设备发送第二 MAC探索报文,所述第二 MAC探索报文用于指示所述 MAC地址可用。 优选地, 所述第二 MAC探索报文中携带有所述接入设备生成的第一鉴定码以及 所述 MAC地址, 在所述接入设备发送所述第二 MAC探索报文之后, 还包括: 所述接 入设备接收来自所述终端设备的第三 MAC探索报文,所述第三 MAC探索报文中携带 有第二鉴定码以及所述 MAC地址; 所述接入设备判断所述第一鉴定码与所述第二鉴 定码是否相同; 在判断结果为相同的情况下, 所述接入设备确认所述终端设备应用所 述 MAC地址。 优选地, 所述接入设备判断所述 MAC地址是否可用包括: 所述接入设备检查所 述 MAC地址是否存在于所述接入设备的地址表中;在所述 MAC地址不存在于所述接 入设备的地址表中的情况下, 所述接入设备确定所述 MAC地址可用。 优选地, 所述第一 MAC探索报文、 所述第二 MAC探索报文以及所述第三 MAC 探索报文的报文类型为 MAC探索类型, 所述 MAC探索类型用于表示报文用于 MAC 探索。 根据本发明的另一方面, 提供了一种 MAC地址的控制方法, 包括: 终端设备向 接入设备发送第一 MAC探索报文,其中,所述第一 MAC探索报文中携带有待确认的 MAC地址; 所述终端设备接收到来自所述接入设备的第二 MAC探索报文, 所述第二 MAC探索报文用于指示所述 MAC地址可用; 所述终端应用所述 MAC地址与所述接 入设备进行通信。 优选地, 在所述终端设备接收到来自所述接入设备的第二 MAC探索报文之前, 还包括: 在到达预设时间且未收到所述第二 MAC探索报文的情况下, 所述终端设备 重新生成所述第一 MAC探索报文中的 MAC地址,并将修改后的第一 MAC探索报文 发送给所述接入设备。 优选地, 所述第二 MAC探索报文中携带有所述接入设备生成的鉴定码以及所述 MAC地址, 在所述终端设备接收到来自所述接入设备的第二 MAC探索报文之后, 还 包括: 所述终端设备确认应用所述 MAC地址进行通信, 并向所述接入设备发送第三 MAC探索报文, 所述第三 MAC探索报文中携带有所述鉴定码以及所述 MAC地址。 优选地, 所述第一 MAC探索报文、 所述第二 MAC探索报文以及所述第三 MAC 探索报文的报文类型为 MAC探索类型, 所述 MAC探索类型用于表示报文用于 MAC 探索。 根据本发明的再一方面, 还提供了一种 MAC地址的控制装置, 位于接入设备中, 包括: 第一接收模块, 设置为接收来自终端设备的第一 MAC探索报文, 其中, 所述 第一 MAC探索报文中携带有待确认的 MAC地址; 第一判断模块, 设置为判断所述 MAC地址是否可用;第一发送模块,设置为在所述第一判断模块的判断结果为可用的 情况下, 发送第二 MAC探索报文, 所述第二 MAC探索报文用于指示所述 MAC地址 可用。 优选地, 在所述第二 MAC探索报文中携带有所述接入设备生成的第一鉴定码以 及所述 MAC地址的情况下, 所述装置还包括: 第二接收模块, 设置为接收来自所述 终端设备的第三 MAC探索报文,所述第三 MAC探索报文中携带有第二鉴定码以及所 述 MAC地址; 第二判断模块, 设置为判断所述第一鉴定码与所述第二鉴定码是否相 同; 第一确认模块, 设置为在所述第二判断模块的判断结果为相同的情况下, 确认所 述终端设备应用所述 MAC地址。 优选地, 所述第一判断模块包括: 检查单元, 设置为检查所述 MAC地址是否存 在于所述接入设备的地址表中; 确定单元, 设置为在所述 MAC地址不存在于所述接 入设备的地址表中的情况下, 确定所述 MAC地址可用。 根据本发明的还一方面, 提供了一种 MAC地址的控制装置, 位于终端设备中, 包括: 第二发送模块, 设置为向接入设备发送第一 MAC探索报文, 其中, 所述第一 MAC探索报文中携带有待确认的 MAC地址; 第三接收模块, 设置为接收到来自所述 接入设备的第二 MAC探索报文,所述第二 MAC探索报文用于指示所述 MAC地址可 用; 通信模块, 设置为应用所述 MAC地址与所述接入设备进行通信。 优选地, 所述装置还包括: 生成模块, 设置为在到达预设时间且未收到所述第二 MAC探索报文的情况下, 重新生成所述第一 MAC探索报文中的 MAC地址; 所述第 二发送模块还设置为将修改后的第一 MAC探索报文发送给所述接入设备。 优选地, 在所述第二 MAC探索报文中携带有所述接入设备生成的鉴定码以及所 述 MAC地址的情况下, 所述装置还包括: 第二确认模块, 设置为确认应用所述 MAC 地址进行通信; 第三发送模块, 设置为向所述接入设备发送第三 MAC探索报文, 所 述第三 MAC探索报文中携带有所述鉴定码以及所述 MAC地址。 通过本发明, 采用接入设备接收来自终端设备的第一 MAC探索报文, 其中, 该 第一 MAC探索报文中携带有待确认的 MAC地址;接入设备判断该 MAC地址是否可 用; 在判断结果为可用的情况下, 接入设备发送第二 MAC 探索报文, 该第二 MAC 探索报文用于指示该 MAC地址可用的方式,解决了相关技术中 MAC地址无法再利用 导致的问题,将 MAC地址由静态分配调整为动态分配,从而根本上避免了 MAC地址 的浪费和不够用的问题。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中: 图 1是根据相关技术的终端设备在网络中位置的示意图; 图 2是根据本发明实施例的 MAC地址的控制方法的流程图; 图 3是根据本发明实施例的 MAC地址的控制装置的结构框图; 图 4是根据本发明实施例的 MAC地址的控制装置的优选结构框图; 图 5是根据本发明实施例的第一判断模块的优选结构框图; 图 6是根据本发明实施例的另一种 MAC地址的控制方法的流程图; 图 7是根据本发明实施例的另一种 MAC地址的控制装置的结构框图; 图 8是根据本发明实施例的另一种 MAC地址的控制装置的优选结构框图 图 9是根据本发明实施例的另一种 MAC地址的控制装置的优选结构框图 图 10是根据本发明实施例的 MAC探测报文的优选结构示意图; 图 11是根据本发明实施例的 MAC探测的协议优选流程示意图, 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 在本实施例中提供了一种 MAC 地址的控制方法, 图 2 是根据本发明实施例的 MAC地址的控制方法的流程图, 如图 2所示, 该方法包括如下步骤:
S202, 接入设备接收来自终端设备的第一 MAC 探索报文, 其中, 该第一 MAC 探索报文中携带有待确认的 MAC地址; S204, 接入设备判断该 MAC地址是否可用;
S206, 在判断结果为可用的情况下, 接入设备发送第二 MAC探索报文, 该第二 MAC探索报文用于指示该 MAC地址可用。 本实施例通过上述步骤, 由终端设备先向接入设备发送一个待确认的 MAC地址, 在接入设备判断该 MAC 地址可用的情况下, 接入设备在其管辖范围中广播该 MAC 地址可用, 采用预先虚拟一个待确认的 MAC地址进行通信的方式, 克服了动态分配 MAC地址过程中遇到的通信过程中必须使用 MAC地址、 而 MAC地址又需要协商获 得这一矛盾, 实现了 MAC地址能够重复使用,解决了相关技术中 MAC地址无法再利 用导致的问题, 将 MAC 地址由静态分配调整为动态分配, 从而根本上避免了 MAC 地址的浪费和不够用的问题。 其中, 本文中的接入设备指的是汇聚层的设备, 提供接入服务, 将接入设备连接 入核心网; 终端设备指的是网络通信中贴近用户的网络节点, 例如, 网关、 智能电话、 机顶盒等; 接入层指的是直接面向用户连接或访问网络的部分; 汇聚层指的是连接接 入层和核心层的网络设备, 为接入层提供数据的汇聚 \传输 \管理 \分发处理。 服务器侧 指的是互联网上提供各种服务的网络节点群。 作为一种优选实施方式, 接入设备可以在第二 MAC探索报文中携带有接入设备 生成的第一鉴定码以及该 MAC地址,在这种情况下,终端设备接收到第二 MAC探索 报文中,可以向接入设备发送第三 MAC探索报文,在该第三 MAC探索报文中携带有 第二鉴定码以及该 MAC地址, 以对使用该 MAC地址进行确认。接入设备接收来自终 端设备的该第三 MAC探索报文后, 可以判断上述第一鉴定码与第二鉴定码是否相同, 如果相同, 则说明终端设备确认应用该 MAC地址。 由于如果终端设备发送了多次携 带不同 MAC地址的第一 MAC探索报文, 而这些不同的 MAC地址均可以使用时, 接 入设备可能会认为这些 MAC地址均被该终端设备使用, 从而产生 MAC地址的浪费, 通过这种方式中第三 MAC探索报文的确认,避免了产生 MAC地址的浪费问题的出现, 提升了资源利用效率。 优选地, 接入设备判断 MAC地址是否可用可以通过该接入设备中的地址表来实 现,例如,接入设备可以检查 MAC地址是否存在于该接入设备的地址表中;在该 MAC 地址不存在于该接入设备的地址表中的情况下, 接入设备可以确定该 MAC地址可用。 通过这种方式,可以使得网络中多台不互通的接入设备中的终端设备使用相同的 MAC 地址, 进一步提高了 MAC地址的使用效率。 优选地, 上述第一 MAC探索报文、第二 MAC探索报文以及第三 MAC探索报文 的报文类型可以为 MAC探索类型,该 MAC探索类型就是指示该报文用于 MAC探索 流程中。 对应于上述 MAC地址的控制方法,在本实施例中还提供了一种 MAC地址的控制 装置, 位于接入设备中, 该装置用于实现上述实施例及优选实施方式, 已经进行过说 明的不再赘述。 如以下所使用的, 术语"模块"可以实现预定功能的软件和 /或硬件的组 合。 尽管以下实施例所描述的装置较佳地以软件来实现, 但是硬件, 或者软件和硬件 的组合的实现也是可能并被构想的。 图 3是根据本发明实施例的 MAC地址的控制装置的结构框图, 如图 3所示, 该 装置包括: 第一接收模块 32、 第一判断模块 34和第一发送模块 36, 下面对各个模块 进行详细说明。 第一接收模块 32, 设置为接收来自终端设备的第一 MAC探索报文, 其中, 该第 一 MAC探索报文中携带有待确认的 MAC地址; 第一判断模块 34, 与第一接收模块 32相连, 设置为判断第一接收模块 32接收到的 MAC地址是否可用; 第一发送模块 36, 与第一判断模块 34相连, 设置为在第一判断模块 34的判断结果为可用的情况下, 发送第二 MAC探索报文, 该第二 MAC探索报文用于指示该 MAC地址可用。 本实施例通过上述模块, 由终端设备先向接入设备发送一个待确认的 MAC地址, 在接入设备通过第一接收模块 32接收到该 MAC地址, 并通过第一判断模块 34判断 该 MAC地址可用的情况下, 接入设备通过第一发送模块 36在其管辖范围中广播该 MAC地址可用, 采用预先虚拟一个待确认的 MAC地址进行通信的方式, 克服了动态 分配 MAC地址过程中遇到的通信过程中必须使用 MAC地址、而 MAC地址又需要协 商获得这一矛盾, 实现了 MAC地址能够重复使用,解决了相关技术中 MAC地址无法 再利用导致的问题,将 MAC地址由静态分配调整为动态分配,从而根本上避免了 MAC 地址的浪费和不够用的问题。 图 4是根据本发明实施例的 MAC地址的控制装置的优选结构框图, 如图 4所示, 在第二 MAC探索报文中携带有接入设备生成的第一鉴定码以及上述 MAC地址的情况 下, 该装置还可以包括: 第二接收模块 42, 与第一发送模块 36相连, 设置为接收来 自终端设备的第三 MAC探索报文,该第三 MAC探索报文中携带有第二鉴定码以及上 述 MAC地址; 第二判断模块 44, 与第二接收模块 42相连, 设置为判断第一鉴定码与 第二接收模块 42接收的第二鉴定码是否相同; 第一确认模块 46, 与第二判断模块 44 相连, 设置为在第二判断模块 44 的判断结果为相同的情况下, 确认终端设备应用该 MAC地址。 图 5是根据本发明实施例的第一判断模块 34的优选结构框图, 如图 5所示,第一 判断模块 34可以包括: 检查单元 342, 设置为检查上述 MAC地址是否存在于本接入 设备的地址表中; 确定单元 344, 与检查单元 342相连, 设置为在该 MAC地址不存在 于本接入设备的地址表中的情况下, 确定该 MAC地址可用。 在本实施例中, 还提供了另一种 MAC地址的控制方法, 图 6是根据本发明实施 例的另一种 MAC地址的控制方法的流程图, 如图 6所示, 该方法包括如下步骤: 步骤 S602, 终端设备向接入设备发送第一 MAC探索报文, 其中, 该第一 MAC 探索报文中携带有待确认的 MAC地址; 步骤 S604, 终端设备接收到来自接入设备的第二 MAC探索报文, 该第二 MAC 探索报文用于指示该 MAC地址可用; 步骤 S606, 终端应用该 MAC地址与接入设备进行通信。 本实施例通过上述步骤, 由终端设备先向接入设备发送一个待确认的 MAC地址, 在接入设备判断该 MAC 地址可用的情况下, 接入设备在其管辖范围中广播该 MAC 地址可用,终端设备接收到该 MAC地址可用的消息后,应用该 MAC地址与该接入设 备进行通信, 采用预先虚拟一个待确认的 MAC地址进行通信的方式, 克服了动态分 配 MAC地址过程中遇到的通信过程中必须使用 MAC地址、而 MAC地址又需要协商 获得这一矛盾, 实现了 MAC地址能够重复使用,解决了相关技术中 MAC地址无法再 利用导致的问题, 将 MAC地址由静态分配调整为动态分配, 从而根本上避免了 MAC 地址的浪费和不够用的问题。 优选地, 如果终端设备在发送第一 MAC探索报文之后, 在预定时间内一直未收 到第二 MAC探索报文的情况下,终端设备可以重新生成另一个 MAC地址,并将重新 生成的 MAC地址携带在第一 MAC探索报文中发送给接入设备。通过这种方式,解决 了 MAC地址不可用的情况下,接入设备无法通知该终端设备该 MAC地址不可用的问 题。 作为一种优选实施方式, 接入设备可以在第二 MAC探索报文中携带有接入设备 生成的第一鉴定码以及该 MAC地址,在这种情况下,终端设备接收到第二 MAC探索 报文中,可以向接入设备发送第三 MAC探索报文,在该第三 MAC探索报文中携带有 第二鉴定码以及该 MAC地址, 以对使用该 MAC地址进行确认。接入设备接收来自终 端设备的该第三 MAC探索报文后, 可以判断上述第一鉴定码与第二鉴定码是否相同, 如果相同, 则说明终端设备确认应用该 MAC地址。 由于如果终端设备发送了多次携 带不同 MAC地址的第一 MAC探索报文, 而这些不同的 MAC地址均可以使用时, 接 入设备可能会认为这些 MAC地址均被该终端设备使用, 从而产生 MAC地址的浪费, 通过这种方式中第三 MAC探索报文的确认,避免了产生 MAC地址的浪费问题的出现, 提升了资源利用效率。 优选地, 上述第一 MAC探索报文、第二 MAC探索报文以及第三 MAC探索报文 的报文类型可以为 MAC探索类型,该 MAC探索类型就是指示该报文用于 MAC探索 流程中。 对应于上述另一种 MAC 地址的控制方法, 在本实施例中还提供了另一种 MAC 地址的控制装置, 位于终端设备中, 该装置用于实现上述实施例及优选实施方式, 已 经进行过说明的不再赘述。 如以下所使用的, 术语"模块"可以实现预定功能的软件和 / 或硬件的组合。 尽管以下实施例所描述的装置较佳地以软件来实现, 但是硬件, 或者 软件和硬件的组合的实现也是可能并被构想的。 图 7是根据本发明实施例的另一种 MAC地址的控制装置的结构框图, 如图 7所 示, 该装置包括: 第二发送模块 72、 第三接收模块 74以及通信模块 76, 下面对各个 模块进行详细说明。 第二发送模块 72, 设置为向接入设备发送第一 MAC探索报文, 其中, 第一 MAC 探索报文中携带有待确认的 MAC地址; 第三接收模块 74, 与第二发送模块 72相连, 设置为接收到来自接入设备的第二 MAC探索报文,该第二 MAC探索报文用于指示该 MAC地址可用; 通信模块 76, 与第三接收模块 74相连, 设置为应用该 MAC地址与 该接入设备进行通信。 本实施例通过上述模块,由终端设备先通过第二发送模块 72向接入设备发送一个 待确认的 MAC地址,在接入设备判断该 MAC地址可用的情况下,接入设备在其管辖 范围中广播该 MAC地址可用, 终端设备通过第三接收模块 74接收到该 MAC地址可 用的消息后, 采用通信模块 76应用该 MAC地址与该接入设备进行通信, 采用预先虚 拟一个待确认的 MAC地址进行通信的方式,克服了动态分配 MAC地址过程中遇到的 通信过程中必须使用 MAC地址、而 MAC地址又需要协商获得这一矛盾,实现了 MAC 地址能够重复使用, 解决了相关技术中 MAC 地址无法再利用导致的问题, 将 MAC 地址由静态分配调整为动态分配, 从而根本上避免了 MAC地址的浪费和不够用的问 题。 图 8是根据本发明实施例的另一种 MAC地址的控制装置的优选结构框图一, 如 图 8所示, 该装置还可以包括: 生成模块 82, 与第三接收模块 74相连, 设置为在到 达预设时间且第三接收模块 74未收到第二 MAC探索报文的情况下, 重新生成第一 MAC探索报文中的 MAC地址;第二发送模块 72还可以设置为将修改后的第一 MAC 探索报文发送给接入设备。 图 9是根据本发明实施例的另一种 MAC地址的控制装置的优选结构框图二, 如 图 9所示,在第二 MAC探索报文中携带有接入设备生成的鉴定码以及上述 MAC地址 的情况下, 该装置还可以包括: 第二确认模块 92, 与第三接收模块 74相连, 设置为 确认应用该 MAC地址进行通信; 第三发送模块 94, 与第二确认模块 92相连, 设置为 向接入设备发送第三 MAC探索报文,第三 MAC探索报文中携带有鉴定码以及该 MAC 地址。 下面结合优选实施例进行说明, 以下优选实施例结合了上述实施例及其优选实施 方式。 在以下优选实施例中, 提供了一种终端设备 MAC地址动态协商及分配机制, 能 够解决 MAC地址使用耗竭的问题。 下面以通信领域的接入网领域为例进行说明。 为 实现该 MAC动态协商机制, 同时还提供了动态 MAC探测的协议机制,将在以下优选 实施例中进行说明。 实施例一 在本优选实施例中, 提供了一种 MAC动态协商机制通过该机制, 能够解决 MAC 地址静态分配,分配后无法回收,导致 MAC地址耗竭的问题,同时还提供了动态 MAC 探测的协议机制, 确保 MAC地址可重用。 其中, MAC探测是指 MAC地址动态协商 的协议简称。 下面对该方案进行详细说明。 在本优选实施例中, 通过将原有设备固定的 MAC 地址调整为动态协商的 MAC 地址, 但又考虑到报文在通信过程中, MAC地址是设备定位的基础参数, 在 MAC地 址未确认时, 报文无法转发的技术特点, 采用了先虚拟 MAC, 尝试使用的机制去解决 报文通信过程中必须 MAC地址, 但 MAC地址又需要协商的这一矛盾。 下面详细说明本优选实施例提供的 MAC探索的报文结构, 图 10是根据本发明实 施例的 MAC探测报文(即上文中的第一、 第二、第三 MAC探索报文) 的优选结构示 意图,如图 10所示,该 MAC探索的报文可以至少包含三个字段,这三个字段分别为:
1, 初始的源 MAC地址, 这个源 MAC地址可以是终端设备随机产生, 并对外尝 试, 该源 MAC地址放置的长度和位置与现有报文链路层源 MAC字段可以完全一致, 包括 6个字节。
2, 报文类型, 该类型用于标识该报文属于 MAC探索类型, 该字段的长度和位置 也和现有报文链路层报文字段可以完全一致, 包含 2个字节, 属于在目前的报文机制 上, 在报文类型上的扩展。 3, 报文鉴定码, 鉴定码指的是 MAC探测协议中标识该申请 MAC地址状态的标 识码。 该鉴定码用于确定该 MAC地址的状态, 是属于协商阶段还是确认状态, 该鉴 定码可以由接入设备产生, 并可以在终端设备和接入设备上均进行保存, 当接入设备 收到 MAC探索报文, 并确认其鉴定码和自己保存的鉴定码一致时, 则可以确认该终 端设备创建的 MAC地址有效。 该报文还可以增加其他字段, 如校验码, 填充, 老化 时间等, 但不是必须参数, 因此在本优选实施例中不再一一列出。 下面详细说明本优选实施例提供的 MAC探索的协议流程, 图 11是根据本发明实 施例的 MAC探测的协议优选流程示意图, 如图 11所示, 该流程描述了 MAC动态协 商的重点流程,主要可以涉及 MAC协商的三次握手,首先由终端设备虚拟 MAC地址, 然后发出 MAC探索报文 (即上述第一 MAC探索报文), 接入设备收到该 MAC探索 报文后, 检查该 MAC地址是否在自己的地址表中存在记录, 如无记录, 则产生鉴定 码, 并响应该 MAC地址, 终端设备收到该 MAC探索的响应报文 (即上述第二 MAC 探索报文)后, 确认使用该 MAC地址, 则再恢复确认报文(即上述第三 MAC探索报 文), 确认使用该 MAC地址, 从而完成 MAC探索的整个流程。 如果该网络存在多台接入设备, 终端设备同时可以访问时, 多台接入设备间通过 动态协商, 确认主 MAC服务器, 即 MAC地址只能从该主 MAC服务器分发。 如果网 络存在多台接入服务器, 但这些服务器间并不互通, 则不需要确认主 MAC服务器。 通过上述 MAC探测重用机制,将 MAC地址由静态分配调整为动态分配,从而从 根本上避免了 MAC地址的浪费和不够用的问题。 实施例二 参考图 11所示的 MAC探测流程进行详细描述, 该 MAC探测协议可以包括三个 步骤: 步骤 S1102, 终端设备虚拟 MAC地址, 并构造 MAC探测报文, 其源 MAC为虚 拟 MAC地址, 其报文类型为 MAC探测类型, 其鉴定码可以为全零, 当然也可以定为 其他值; 步骤 S1104, 该报文按照一定的时间间隔进行重复发出, 每次携带的虚拟 MAC 地址不同 (为防止接入设备未收到该虚拟 MAC地址, 也可以在一定时间间隔内发送 携带相同 MAC地址的报文,在该时间间隔到达后再发送携带不同 MAC地址的报文), 接入设备收到该报文后,检查该 MAC地址在自己所维护的 MAC表中是否存在,如果 存在, 则说明冲突, 则该接入服务器并不响应; 如果不存在, 说明不冲突, 则可以创 建鉴定码, 响应该 MAC探测报文, 并带上该鉴定码; 步骤 S1106, 终端设备如果重试多次没有收到响应报文, 则再重新生成新的 MAC 地址, 再进行探测, 如果收到该 MAC响应报文, 则再发出确认报文, 带上该鉴定码。 通过这三次交互, 该终端设备确认该 MAC地址有效, 则使用该 MAC地址, 并进 行正常通信。 在另外一个实施例中, 还提供了一种软件, 该软件用于执行上述实施例及优选实 施例中描述的技术方案。 在另外一个实施例中, 还提供了一种存储介质, 该存储介质中存储有上述软件, 该存储介质包括但不限于光盘、 软盘、 硬盘、 可擦写存储器等。 工业实用性 如上所述, 本发明实施例提供的一种 MAC地址的控制方法及装置具有以下有益 效果: 其能够将 MAC 地址由静态分配调整为动态分配, 从而在根本上避免了 MAC 地址的浪费和不够用的问题。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以 将它们存储在存储装置中由计算装置来执行, 并且在某些情况下, 可以以不同于此处 的顺序执行所示出或描述的步骤, 或者将它们分别制作成各个集成电路模块, 或者将 它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限制于任 何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。

Claims

权 利 要 求 书
1. 一种媒体接入控制 MAC地址的控制方法, 包括:
接入设备接收来自终端设备的第一 MAC探索报文, 其中, 所述第一 MAC 探索报文中携带有待确认的 MAC地址;
所述接入设备判断所述 MAC地址是否可用;
在判断结果为可用的情况下, 所述接入设备发送第二 MAC探索报文, 所 述第二 MAC探索报文用于指示所述 MAC地址可用。
2. 根据权利要求 1所述的方法, 其中, 所述第二 MAC探索报文中携带有所述接 入设备生成的第一鉴定码以及所述 MAC地址, 在所述接入设备发送所述第二 MAC探索报文之后, 还包括:
所述接入设备接收来自所述终端设备的第三 MAC 探索报文, 所述第三 MAC探索报文中携带有第二鉴定码以及所述 MAC地址;
所述接入设备判断所述第一鉴定码与所述第二鉴定码是否相同; 在判断结果为相同的情况下, 所述接入设备确认所述终端设备应用所述 MAC地址。
3. 根据权利要求 1或 2所述的方法, 其中, 所述接入设备判断所述 MAC地址是 否可用包括:
所述接入设备检查所述 MAC地址是否存在于所述接入设备的地址表中; 在所述 MAC地址不存在于所述接入设备的地址表中的情况下, 所述接入 设备确定所述 MAC地址可用。
4. 根据权利要求 1至 3中任一项所述的方法, 其中, 所述第一 MAC探索报文、 所述第二 MAC探索报文以及所述第三 MAC探索报文的报文类型为 MAC探索 类型, 所述 MAC探索类型用于表示报文用于 MAC探索。
5. 一种媒体接入控制 MAC地址的控制方法, 包括:
终端设备向接入设备发送第一 MAC探索报文, 其中, 所述第一 MAC探 索报文中携带有待确认的 MAC地址; 所述终端设备接收到来自所述接入设备的第二 MAC探索报文, 所述第二 MAC探索报文用于指示所述 MAC地址可用;
所述终端应用所述 MAC地址与所述接入设备进行通信。 根据权利要求 5所述的方法, 其中, 在所述终端设备接收到来自所述接入设备 的第二 MAC探索报文之前, 还包括:
在到达预设时间且未收到所述第二 MAC探索报文的情况下, 所述终端设 备重新生成所述第一 MAC探索报文中的 MAC地址, 并将修改后的第一 MAC 探索报文发送给所述接入设备。 根据权利要求 5或 6所述的方法, 其中, 所述第二 MAC探索报文中携带有所 述接入设备生成的鉴定码以及所述 MAC地址, 在所述终端设备接收到来自所 述接入设备的第二 MAC探索报文之后, 还包括:
所述终端设备确认应用所述 MAC地址进行通信, 并向所述接入设备发送 第三 MAC探索报文, 所述第三 MAC探索报文中携带有所述鉴定码以及所述 MAC地址。 根据权利要求 5至 7中任一项所述的方法, 其中, 所述第一 MAC探索报文、 所述第二 MAC探索报文以及所述第三 MAC探索报文的报文类型为 MAC探索 类型, 所述 MAC探索类型用于表示报文用于 MAC探索。 一种媒体接入控制 MAC地址的控制装置, 位于接入设备中, 包括:
第一接收模块, 设置为接收来自终端设备的第一 MAC探索报文, 其中, 所述第一 MAC探索报文中携带有待确认的 MAC地址;
第一判断模块, 设置为判断所述 MAC地址是否可用;
第一发送模块, 设置为在所述第一判断模块的判断结果为可用的情况下, 发送第二 MAC探索报文,所述第二 MAC探索报文用于指示所述 MAC地址可 用。 根据权利要求 9所述的装置, 其中, 在所述第二 MAC探索报文中携带有所述 接入设备生成的第一鉴定码以及所述 MAC地址的情况下, 所述装置还包括: 第二接收模块, 设置为接收来自所述终端设备的第三 MAC探索报文, 所 述第三 MAC探索报文中携带有第二鉴定码以及所述 MAC地址;
第二判断模块, 设置为判断所述第一鉴定码与所述第二鉴定码是否相同; 第一确认模块, 设置为在所述第二判断模块的判断结果为相同的情况下, 确认所述终端设备应用所述 MAC地址。
11. 根据权利要求 9或 10所述的装置, 其中, 所述第一判断模块包括:
检查单元, 设置为检查所述 MAC地址是否存在于所述接入设备的地址表 中;
确定单元, 设置为在所述 MAC地址不存在于所述接入设备的地址表中的 情况下, 确定所述 MAC地址可用。
12. 一种媒体接入控制 MAC地址的控制装置, 位于终端设备中, 包括:
第二发送模块, 设置为向接入设备发送第一 MAC探索报文, 其中, 所述 第一 MAC探索报文中携带有待确认的 MAC地址;
第三接收模块, 设置为接收到来自所述接入设备的第二 MAC探索报文, 所述第二 MAC探索报文用于指示所述 MAC地址可用;
通信模块, 设置为应用所述 MAC地址与所述接入设备进行通信。
13. 根据权利要求 12所述的装置, 其中, 所述装置还包括:
生成模块, 设置为在到达预设时间且未收到所述第二 MAC探索报文的情 况下, 重新生成所述第一 MAC探索报文中的 MAC地址;
所述第二发送模块还设置为将修改后的第一 MAC探索报文发送给所述接 入设备。
14. 根据权利要求 12或 13所述的装置, 其中, 在所述第二 MAC探索报文中携带 有所述接入设备生成的鉴定码以及所述 MAC地址的情况下,所述装置还包括: 第二确认模块, 设置为确认应用所述 MAC地址进行通信;
第三发送模块, 设置为向所述接入设备发送第三 MAC探索报文, 所述第 三 MAC探索报文中携带有所述鉴定码以及所述 MAC地址。
PCT/CN2013/083242 2012-09-27 2013-09-10 Mac地址的控制方法及装置 WO2014048248A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210369433.5 2012-09-27
CN201210369433.5A CN103701943B (zh) 2012-09-27 2012-09-27 Mac地址的控制方法及装置

Publications (1)

Publication Number Publication Date
WO2014048248A1 true WO2014048248A1 (zh) 2014-04-03

Family

ID=50363337

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/083242 WO2014048248A1 (zh) 2012-09-27 2013-09-10 Mac地址的控制方法及装置

Country Status (2)

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

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104869665B (zh) * 2015-04-10 2018-11-20 广东欧珀移动通信有限公司 控制网络连接的方法、无线路由器及移动设备
CN106131241B (zh) * 2016-08-15 2019-04-26 Oppo广东移动通信有限公司 一种网络连接方法、装置及移动终端

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070064653A1 (en) * 2005-09-14 2007-03-22 Hee-Jin Jang Method and system for configuring IP address in a mobile communication system
CN101127681A (zh) * 2007-09-05 2008-02-20 杭州华三通信技术有限公司 绑定服务器mac地址和上行端口的方法和装置
CN101674309A (zh) * 2009-09-23 2010-03-17 中兴通讯股份有限公司 一种以太网接入的方法及装置
CN102082801A (zh) * 2011-02-16 2011-06-01 中兴通讯股份有限公司 一种防止IPv6地址重复检测攻击的方法及系统

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1616401A4 (en) * 2003-04-21 2012-01-04 Rgb Networks Inc TIME-MULTIPROUGH MULTIPROGRAM ENCRYPTION SYSTEM
US7730197B2 (en) * 2006-06-30 2010-06-01 International Business Machines Corporation Server-based acquisition and usage of dynamic MAC addresses in a virtualized ethernet environment
CN101729314A (zh) * 2009-11-26 2010-06-09 福建星网锐捷网络有限公司 动态表项的回收方法、装置及动态主机分配协议侦听设备
CN102355510B (zh) * 2011-10-17 2014-08-20 中兴通讯股份有限公司 一种介质访问控制地址分配方法、装置和系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070064653A1 (en) * 2005-09-14 2007-03-22 Hee-Jin Jang Method and system for configuring IP address in a mobile communication system
CN101127681A (zh) * 2007-09-05 2008-02-20 杭州华三通信技术有限公司 绑定服务器mac地址和上行端口的方法和装置
CN101674309A (zh) * 2009-09-23 2010-03-17 中兴通讯股份有限公司 一种以太网接入的方法及装置
CN102082801A (zh) * 2011-02-16 2011-06-01 中兴通讯股份有限公司 一种防止IPv6地址重复检测攻击的方法及系统

Also Published As

Publication number Publication date
CN103701943B (zh) 2018-07-27
CN103701943A (zh) 2014-04-02

Similar Documents

Publication Publication Date Title
EP2879419B1 (en) Ipv6 address stateless auto-configuration system, data card, and implementation method thereof
US8767737B2 (en) Data center network system and packet forwarding method thereof
CN109644186A (zh) 用于在两个终端之间经由多路径进行udp通信的方法
CN102984295B (zh) 一种移动终端及其地址分配方法
WO2012079474A1 (zh) 地址分配处理方法、装置和系统
WO2012163007A1 (zh) 解决网际协议地址分配冲突的方法及相关设备和系统
EP2439903B1 (en) Method for providing information, home gateway and home network system
US20200259783A1 (en) Method and apparatus for determining ethernet mac address
WO2012109849A1 (zh) Mac地址分配方法和设备
WO2011144083A2 (zh) 策略控制方法及设备
US9191312B2 (en) Method and system for implementing PW control bit capability negotiation
WO2011072583A1 (zh) 用户接入方法、系统及接入服务器、接入设备
WO2013167083A2 (zh) 一种域名服务器的选择方法和设备
WO2015014085A1 (zh) 一种协议转换的方法及协议转换器
EP2566139B1 (en) Method and device for obtaining remote ip address
JP2016524383A (ja) 通信インタフェースを選択する方法およびデバイス
WO2014048248A1 (zh) Mac地址的控制方法及装置
WO2017161866A1 (zh) 网络连接方法及装置
WO2011120365A1 (zh) 多穴终端建立连接的方法和系统
WO2014079235A1 (zh) 一种释放地址的方法、用户节点及远程接入服务器
WO2012155571A1 (zh) 一种基站自配置的方法及装置
CN101986647A (zh) Vrrp的兼容方法及装置
WO2011120276A1 (zh) 一种终端实现连接建立的方法及系统
CN102299860B (zh) 一种Pathmtu的获取方法和设备
WO2014169590A1 (zh) 一种数据业务通信方法、设备及系统

Legal Events

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

Ref document number: 13842912

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13842912

Country of ref document: EP

Kind code of ref document: A1