Method and network interface with locally unique mac address resolution

Dynamically determining locally unique MAC addresses through claim and assert messages resolves the MAC address scarcity problem, ensuring efficient and compatible network communication.

JP2024124329APending Publication Date: 2024-09-12SEMICON COMPONENTS IND LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2023208431
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-01
Filing Date
2023-12-11
Publication Date
2024-09-12

AI Technical Summary

Technical Problem

The scarcity of globally unique Media Access Control (MAC) addresses, particularly in automotive and IoT applications, poses a challenge due to the high costs associated with obtaining additional Organizationally Unique Identifiers (OUIs) from the IEEE registry.

Method used

Network interfaces and methods that dynamically determine locally unique MAC addresses by broadcasting claim messages with temporary MAC addresses, resolving conflicts through timing windows and assert messages, ensuring uniqueness without relying on global OUIs.

Benefits of technology

This approach efficiently allocates locally unique MAC addresses, minimizing conflicts and ensuring compatibility with existing network standards, while addressing the MAC address shortage issue.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024124329000001
    Figure 2024124329000001
Patent Text Reader

Abstract

To provide devices and methods for ensuring that dynamically assigned media access control networks are locally unique.SOLUTION: A network interface includes a transceiver 202 coupled to a transmit buffer 204 to send messages via a communications medium and coupled to a receive buffer 206 to store the messages received via the communications medium, each of the messages including a source field containing a media access control (MAC) address. A network node includes a network interface controller 208 coupled to the transceiver to implement a network communications protocol for conveying the messages via the communications medium, the network interface controller being configured to dynamically determine a locally unique MAC address for the network interface.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to medium access control for networks, and more particularly to devices and methods for ensuring that dynamically allocated medium access control networks are locally unique. [Background technology]

[0002] In many wired and wireless networking protocols, each device or network interface is assigned a Media Access Control (MAC) address that can serve as a source and / or destination indicator for messages transmitted over the network medium (e.g., cable, optical fiber, radio frequency signaling). Often, the protocols stipulate that MAC addresses must be unique to ensure that messages arrive at their intended destination.

[0003] This uniqueness can be achieved by assigning each device a globally unique MAC address that is embedded in the device's non-volatile memory. The Institute of Electrical and Electronics Engineers (IEEE) operates a registry through which manufacturers can obtain an assigned Organizationally Unique Identifier (OUI) to use as part of the MAC address of their equipment. The manufacturer can then determine the remaining portion of the MAC address of their device using whatever method they choose to provide global uniqueness.

[0004] The Ethernet family of standards (IEEE 802.3) is widespread and has been adopted in many industrial and automotive applications where hundreds or even thousands of nodes may be wired into a shared network. Between the automotive industry, which sells tens of millions of vehicles each year, and the upcoming Internet of Things (IoT), manufacturers of sensors and other electronic devices face the very real possibility of exhausting the supply of unallocated MAC addresses. Those who seek to secure additional OUIs can get more, but the associated costs are not inconsiderable. An alternative uniqueness solution is required. Summary of the Invention

[0005] Accordingly, disclosed herein is a method and network interface for providing a locally unique MAC address to a network node. One exemplary network interface includes a transceiver coupled to a transmit buffer for sending transmit messages over a communication medium and coupled to a receive buffer for storing receive messages obtained over the communication medium, each of said messages including a source field that includes a Medium Access Control (MAC) address, and a network interface controller coupled to the transceiver for implementing a network communications protocol for conveying the messages over the communication medium, the network interface controller configured to dynamically determine a locally unique MAC address for the network interface.

[0006] An exemplary network interface method includes transmitting messages over a communications medium using a transceiver, storing messages received over the communications medium, each of the messages including a source field including a medium access control (MAC) address, and dynamically determining a locally unique MAC address for use in the source field of the messages. An exemplary network node includes a network interface coupled to a host device, the network interface configured to: broadcast a local claim message to all other nodes on the communications medium, the local claim message specifying a MAC address selected by the network interface; compare a transmission time of the local claim message with a transmission time of any remote claim message that specifies the MAC address received before a predetermined interval has elapsed; and respond to any remote claim message that specifies the MAC address received after the predetermined interval has elapsed by broadcasting an assert message that specifies the MAC address.

[0007] Each of the foregoing network interfaces and methods may be used in combination with one or more of the following optional features in any suitable combination: 1. Dynamically determining a locally unique MAC address includes generating a tentative MAC address and broadcasting a claim message for the tentative MAC address over a communication medium, the claim message having an associated transmission time. 2. The tentative MAC address is determined using a random or pseudo-random value. 3. Dynamically determining a locally unique MAC address includes initiating a timing window upon broadcasting the claim message. 4. Dynamically determining a locally unique MAC address includes adopting the tentative MAC address as the locally unique MAC address if the timing window has successfully elapsed. 5. The network interface controller is configured to respond to any contention claim message received after the timing window has successfully elapsed with an assertion message indicating a preference for the tentative MAC address in the contention claim message. 6. Repeating the generating, broadcasting, and initiating if a contention claim message is received during the timing window with a receive time preceding said transmit time. 7. repeating the above generating, broadcasting, and initiating when a conflicting Assertion Claim message is received. 8. The network communications protocol limits use of the communications medium to at most one transmitter at a time. 9. The network communications protocol is Time Triggered Ethernet. 10. The network interface employs a physical layer interface that conforms to at least one standard within the IEEE Standard 802.3, 802.11, and 802.15 families. 11. At least some of the messages are unicast messages that include a locally unique MAC address in a destination field.12. If the send time of the local Claim message is later than the send time of the remote Claim message, the network interface broadcasts another local Claim message that specifies a different MAC address. 13. The network interface is further configured to respond to any remote Assert message that specifies the MAC address by broadcasting another local Claim message that specifies a different MAC address. [Brief description of the drawings]

[0008] [Figure 1A] 1 illustrates an exemplary network. [Figure 1B] 2 illustrates an exemplary network packet. [Diagram 2] FIG. 2 is a block diagram of an example network interface. [Diagram 3] FIG. 4 is a state diagram of an exemplary MAC address resolution method. [Figure 4] 1 is a timeline of events further illustrating an exemplary method. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] It should be understood that the following description and the accompanying drawings are provided for purposes of illustration and not for purposes of limitation of the present disclosure, in other words, the following description and the accompanying drawings provide a basis for those skilled in the art to recognize and understand all modifications, equivalents, and alternatives falling within the scope of the claims.

[0010] FIG. 1A illustrates an exemplary network having multiple network nodes (node ​​A through node D) interconnected by a communication medium 102, such as an electrical bus or cable, optical fiber, or radio frequency signaling. Examples of network nodes include computers, network routers, network switches, network bridges, network storage, network-attached sensors, controllers, and IoT devices. These network nodes include one or more network interfaces coupled to a host device, such as a processor, microcontroller, or application specific integrated circuit. The network nodes may use a physical layer interface and communication protocol that conforms to one of the IEEE 802 (network) standards, such as IEEE 802.3 (Ethernet), 802.11 (wireless local area network), or 802.15 (wireless personal area network). Although these are the network types used herein to illustrate the disclosed address resolution methods and interfaces, the disclosure provided herein is readily applicable to other communication media, network interfaces, and communication protocols that use network messages that provide messages having source and / or destination addresses.

[0011] The illustrated communication medium 102 can carry network packets from one of the nodes to the remaining nodes. In a particular preferred implementation, the communication medium 102 supports only one transmitter at a time, thereby ensuring that the sequence of packets carried by the communication medium 102 is arranged in an ordered sequence. Multiple transmitters attempting to operate simultaneously may prevent reception of any packets or cause network collisions that are resolved according to the standards of the associated network protocol. Examples of single transmitter implementations include carrier-sense multiple access with collision detection (CSMA / CD), PHY-level collision avoidance (PLCA), and time-triggered Ethernet (TTE).

[0012] For the above network standards, each network packet includes a data frame having a preamble 110, a header 112, a payload 114, a checksum 116, and an inter-packet gap spacer 118, as shown in FIG. 1B. The header 112 may include a start delimiter 120, a destination field 122 with the MAC address of the desired destination of the packet, a source field 124 with the MAC address of the source node of the packet, and other fields 126 for information such as an optional tag, packet type, and payload length. In some implementations, the header 112 further includes a field that specifies the message type, e.g., a message that tentatively claims the MAC address or a message that asserts ownership of the MAC address. Alternatively, the packet type information may be provided as part of the payload. When the destination field 122 specifies the MAC address of a given node, the packet is a unicast message. For broadcast messages, network protocols (including the standard protocols identified above) may provide a reserved MAC address to be used within the destination field 122 to indicate that the packet is intended for all nodes on the communication medium 102.

[0013] To communicate over the communication medium 102, each of the nodes A-D includes a network interface, such as the exemplary network interface shown in FIG. 2. The exemplary network interface includes a transceiver 202 supporting multiple lanes of data stream transmission or reception. The transceiver 202 operates under the control of a network interface controller 208 to send transmit messages from a transmit buffer 204 when the implemented network protocol permits, and to store receive messages in a receive buffer 206 when the protocol dictates, e.g., when the message is a broadcast or unicast message with the MAC address of the network interface in the destination field. The network interface controller 208 may take the form of an application specific integrated circuit (ASIC) to implement an appropriate finite state machine (FSM) for the associated network protocol, or a programmable processor executing firmware from a non-volatile memory. In either case, a set of configuration registers 210 may provide a memory-mapped interface for use by the host device. The host device may access the configuration registers 210 via an internal bus interface 212 to set parameter values ​​and monitor status registers to regulate communications over the network. Outgoing messages may be written to the transmit buffer 204 via the internal bus interface 212 using direct memory access techniques, and incoming messages may be similarly retrieved from the receive buffer 206.

[0014] 3 is a state diagram of an exemplary method for dynamically determining a locally unique MAC address for a network interface. The determination is "dynamic" because the address is determined when needed rather than preset, and the resulting address is locally unique because it is not shared by other nodes connected to the communication medium 102. This state diagram may be implemented by the network interface controller 208 as part of a standard finite state machine for implementing a selected network communication protocol. Each network node preferably implements the exemplary MAC address resolution method, although, as described further below, the method may be implemented in a manner that provides backward compatibility with standards-compliant nodes that do not implement the method.

[0015] The state diagram has an initial state 302. When the network interface controller 208 is powered on or otherwise enters the initial state 302, it selects a new tentative MAC address. This selection may be performed using a random or pseudo-random number generator, e.g., a module that takes one or more seed values ​​from a clock, sensor measurements, a unique identifier such as a die-level traceability (DLT) code, and / or other sources, and derives therefrom a sequence of one or more unpredictable values. The derived values ​​may optionally be combined with an OUI to avoid any address collisions with addresses assigned to other manufacturers. Note that the MAC address format specified by the EUI-48 numbering standard includes a reserved bit to indicate whether the MAC address is a globally unique address or whether the MAC address is locally determined. This reserved bit may be set rather than relying on the OUI to avoid conflicts with assigned addresses.

[0016] The network interface controller 208 exits the initial state 302 and enters a check state 304 by sending a claim message to another node on the communication medium 102. (This claim message sent by the controller 208 is generated locally and therefore may be referred to below as a "local" claim message, as opposed to a claim message received by the controller 208 from another node, which may be referred to herein as a "remote" claim message. Similarly, a "local" assert message and a "remote" assert message correspond to an assert message sent by the controller 208 to another node and an assert message received by the controller 208 from another node, respectively.)

[0017] The claim message is not currently part of any standard network communications protocol and may use a standard broadcast data frame or packet format, but will include a field or value that identifies the message as a claim message. The claim message may, but is not required to, use a tentative MAC address as the source identifier, thereby indicating the MAC address being claimed. If the claim message does not use a MAC address as the source identifier, then the claim message will specify the tentative MAC address elsewhere.

[0018] Upon sending the local claim message, the network interface controller 208 initiates a timing window. The timing window is set to give each other node an opportunity to respond to the claim message. If the communication medium 102 supports a total of N nodes, each providing a time division multiplexed (TDM) slot with a duration of Ts, the timing window may be set to, for example, 2×N×Ts, giving each node at least two opportunities to respond. In most cases, the timing window is expected to pass normally, i.e., without a conflicting claim message or conflicting assert message being received. If a remote claim message specifies a tentative MAC address that matches the tentative MAC address or (in state 306) the effective MAC address of the current node, then the remote claim message is in conflict. Similarly, if a remote assert message indicates a effective MAC address that matches the tentative MAC address or effective MAC address of the current node, then the remote assert message is in conflict. If there are no such conflicting messages, then the timing window passes normally and the network interface controller 208 enters the valid state 306.

[0019] In the valid state 306, the network interface controller 208 adopts the tentative MAC address as the valid MAC address that is determined to be locally unique. The network interface controller 208 then immediately responds to any contention claim messages by sending an assert message. State 310 is a temporary transition state that lasts only until a local assert message is sent, after which the network interface controller 208 returns to the valid state 306.

[0020] Like a Claim message, an Assert message may be a special purpose Assert message that is not currently part of any standard network communications protocol and may use a standard broadcast data frame or packet format, but will include a field or value that identifies the message as an Assert message. Because the MAC address has been verified, the Assert message preferably uses a valid MAC address as the source identifier.

[0021] However, it should be noted that it may not be necessary to use a special purpose assert message. Any response to a conflicting claim message that uses a valid MAC address as the source identifier serves as an assert message. This property can advantageously promote backward compatibility with nodes that do not implement the disclosed address resolution methods. Regardless of which state 302, 304, 306 the network interface controller 208 is currently in, a reception of a conflicting assert (RCA) message causes the network interface controller 208 to re-enter the initial state 302 and repeat the process starting with the selection of a new tentative MAC address.

[0022] A reception of a conflicting claim (RCC) message while the network interface controller 208 is in the initial state 302 similarly causes the process to restart with the selection of a new tentative MAC address. Receipt of a conflicting claim message while the network interface controller 208 is in the check state 304 proceeds to a test state 308, where the network interface controller 208 determines whether the conflicting claim message was received before or after the local claim message was transmitted (as represented by the transition from state 302 to 304). As indicated above, if the network communication protocol provides for only one transmitter at a time on the communication medium 102, the messages were necessarily transmitted in an ordered sequence that can be easily determined. If the local claim message was transmitted first, the network interface controller 208 returns to the check state 304 and optionally reinitializes the window timer. On the other hand, if the conflicting claim message was transmitted first, the network interface controller 208 resumes the process beginning at the initial state 302.

[0023] The determination of the relative timing can be implemented in a variety of ways. One approach is to track the time when a local claim message is sent and compare that transmission time to the time when a competing claim message is received. Perhaps a simpler approach is to set a flag when a local claim message is placed in the transmit buffer 204 and queued for transmission, and reset the flag when the transmission of the local claim message is completed. When a competing claim message is received, the network interface controller 208 can check the flag to determine whether the transmission of the local claim message is still pending or has already completed.

[0024] To further explain the mechanics behind the disclosed method, Figure 4 is a timeline of events that may be experienced by four network nodes. At time t0, nodes A, B, and C initialize and select tentative MAC addresses. (Node D is assumed to be added to the network later in the process.) The selected addresses are preferably random, but for purposes of illustration, Figure 4 shows the worst case situation where each node initially selects the same tentative MAC address, in this case "0." The dashed outline around the selected addresses indicates that each node is in an initial state. A solid line around the selected address indicates the checked state, and a bold line around the address indicates the valid state.

[0025] At time t1, node A broadcasts a claim message to other nodes to claim "0" as node A's tentative MAC address and enters the Check state. Due to hypothetical queuing delays, node B subsequently broadcasts a conflict claim message for address "0" as node B's tentative MAC address at time t2 and enters the Check state. At time t3, each node processes the received message. Node A, which is in the Check state and receives the conflict claim message, evaluates the relative timing of the message and determines that the conflict claim message was received after the local claim message was sent. Thus, node A remains in the Check state. Node B, which is also in the Check state and receives the conflict claim message, evaluates the relative timing but finds that the conflict claim message was received before the local claim message was sent. Thus, node B returns to the Initial state and selects a different tentative MAC address. As previously mentioned, this selection is preferably random, but is shown here for illustrative purposes as "1". Node C, which is in the Initial state and receives the conflict claim message, re-enters the Initial state and selects a new tentative MAC address, shown here for illustrative purposes as "1".

[0026] At time t4, node C broadcasts a claim message to other nodes to claim "1" as node C's tentative MAC address and enters the Check state. Due to queuing delays, node B subsequently broadcasts a conflicting claim message for address "1" as node B's tentative MAC address and enters the Check state. At time t6, each node processes the received message. Because node A's tentative address is "0", the received claim message for address "1" does not conflict with node A's tentative address. Node B, which is in the Check state and receives the conflicting claim message for node B's tentative address, evaluates the relative timing and finds that the conflicting claim message was received before the local claim message was sent. Thus, node B returns to the initial state and selects a different tentative MAC address, shown here as "2". Node C, which is in the Check state and receives the conflicting claim message for node C's tentative address, evaluates the relative timing and determines that the conflicting claim message was received after the local claim message was sent. Thus, node C remains in the Check state.

[0027] At time t7, node B sends a claim message for tentative MAC address "2", which does not present any conflict with tentative addresses currently selected by other nodes.

[0028] After various window timers have elapsed (denoted as time range t8), the nodes transition from the checking state to the valid state and adopt their tentative MAC addresses as their valid MAC addresses.

[0029] At time t9, node D is added to the network and enters the Initial State using tentative MAC address "0" (just to present a worst-case example). Node D broadcasts a Claim message for tentative address "0" and enters the Check State. Node A responds to the Conflict Claim message at time t10 by broadcasting an Assert message indicating preferred ownership of address "0". At time t11, having received the Conflict Assert message, node D returns to the Initial State and selects a different tentative MAC address. This process continues until the tentative MAC address selected by node D no longer presents an address conflict to other nodes.

[0030] If tentative MAC address selection is done properly randomly, the probability of a collision is extremely low and the address resolution process is completed very quickly. Physical layer serialization of messages on the network medium makes it possible to guarantee that the selected MAC address is locally unique.

[0031] Upon reviewing the above disclosure, one of ordinary skill in the art will recognize various modifications, equivalents, and alternatives that are within the scope of the present disclosure, and it is intended that the following claims be construed to include all such modifications, equivalents, and alternatives, as applicable.

Claims

1. A network interface, a transceiver coupled to a transmit buffer for sending transmit messages over a communications medium and coupled to a receive buffer for storing receive messages received over the communications medium, each of the transmit messages including a source field including a medium access control (MAC) address; a network interface controller coupled to the transceiver for implementing a network communications protocol for carrying the outgoing messages and the received messages over the communications medium, the network interface controller being configured to dynamically determine a locally unique MAC address for the network interface.

2. As part of dynamically determining the locally unique MAC address, the network interface controller determines a tentative MAC address and broadcasts a claim message for the tentative MAC address over the communications medium, the claim message having an associated transmission time; the network interface controller is configured to initiate a timing window upon broadcasting the claim message, and is further configured to adopt the tentative MAC address as the locally unique MAC address if the timing window has successfully elapsed; 2. The network interface of claim 1, wherein after the timing window has successfully elapsed, the network interface controller responds to any contention claim message with an assertion message indicating a priority for the tentative MAC address in the contention claim message.

3. the network interface controller is configured to repeat tentative MAC address determination, claim message broadcast, and timing window initiation if a contention claim message is received at a receive time that precedes the send time during the timing window; The network interface of claim 2 , wherein the network communications protocol limits use of the communications medium to at most one transmitter at a time.

4. A network interface method, comprising: using a transceiver to send outgoing messages over a communications medium and to store received messages received over the communications medium, each of the outgoing messages including a source field including a medium access control (MAC) address; a locally unique MAC address used in the source field of the outgoing message; generating a temporary MAC address; broadcasting a claim message for the tentative MAC address over the communications medium, the claim message having an associated transmission time; initiating a timing window upon broadcasting said timing message; adopting the tentative MAC address as the locally unique MAC address when the timing window has normally elapsed; and and responding to any contention claim message after the timing window has normally elapsed with an assertion message indicating a priority for the tentative MAC address in the contention claim message.

5. repeating the generating, broadcasting, and initiating if, during the timing window, a contention claim message is received with a receive time that precedes the send time; 5. The network interface method of claim 4, further comprising: repeating the generating, broadcasting, and initiating when a competing assertion claim message is received.