Network interface, network interface method and network node
By dynamically determining the local unique MAC address, the problem of device MAC address exhaustion is solved, address uniqueness is achieved in the automotive industry and the Internet of Things, the cost is reduced, and the efficiency of address resolution is improved.
Patent Information
- Application Number
- CN202410153495.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-03-01
- Filing Date
- 2024-02-02
- Publication Date
- 2024-09-03
AI Technical Summary
The problem of device MAC address exhaustion in wired and wireless networking protocols, especially in the automotive industry and the Internet of Things, leaves manufacturers facing costly unique solutions.
By dynamically determining the local unique MAC address, the network interface controller broadcasts request messages to all nodes on the communication medium, compares the transmission time, and uses the temporary MAC address as the local unique MAC address after the timing window expires to ensure the uniqueness of the address.
It is possible to provide local and unique MAC addresses for network nodes without increasing costs, avoid address conflicts, and improve the efficiency and speed of address resolution.
Smart Images

Figure CN118590469A
Abstract
Description
Technical Field
[0001] The present disclosure relates to media access control for a network, and more particularly to a network interface, a network interface method, and a network node. Background Art
[0002] In many wired and wireless networking protocols, each device or network interface is assigned a media access control (MAC) address that can be used as a source indicator and / or as a destination indicator for messages sent over the network medium (e.g., wire, fiber, RF signaling). In many cases, the protocols specify that MAC addresses should be unique to ensure that messages reach their intended destinations.
[0003] This uniqueness can be achieved by assigning each device a globally unique MAC address embedded in the device's non-volatile memory. The Institute of Electrical and Electronics Engineers (IEEE) operates a registration center through which manufacturers can obtain an assigned Organizationally Unique Identifier (OUI) to use as part of their device's MAC address. Manufacturers can then determine the remainder of their device's MAC address in any manner they choose to provide global uniqueness.
[0004] The Ethernet family of standards (IEEE 802.3) has become popular and has been adopted into 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 per year, and the growing popularity of the Internet of Things (IoT), manufacturers of sensors and other electronic devices face the very real possibility of exhausting their supply of unassigned MAC addresses. Manufacturers willing to secure additional OUIs can obtain more, but the associated costs are significant. We sought an alternative uniqueness solution. Summary of the invention
[0005] Therefore, a method and a network interface for providing a local unique MAC address to a network node are disclosed herein. An exemplary network interface includes: a transceiver coupled to a transmission buffer to send transmission messages via a communication medium, and coupled to a reception buffer to store received reception messages obtained via the communication medium, each of the messages including a source field containing a media access control (MAC) address; and a network interface controller coupled to the transceiver to implement a network communication protocol for transmitting messages via the communication medium, the network interface controller being configured to dynamically determine a local unique MAC address for the network interface.
[0006] An exemplary network interface method includes: using a transceiver to send messages via a communication medium, and storing received messages via the communication medium, each of the messages including a source field containing a media access control (MAC) address; and dynamically determining a local unique MAC address to be used in the source field of the message. An exemplary network node includes a network interface coupled to a host device, the network interface being configured to: broadcast a local claim message to all other nodes on the communication 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 for the specified MAC address received before a predetermined interval has expired; and respond to any remote claim message for the specified MAC address received after the predetermined interval has expired by broadcasting a claim message for the specified MAC address.
[0007] Each of the above network interfaces and methods may be used in conjunction with one or more of the following optional features in any suitable combination: 1. Dynamically determining a local unique MAC address includes generating a temporary MAC address; and broadcasting a request message for the temporary MAC address via the communication medium, the request message having an associated transmission time. 2. Using a random or pseudo-random value to determine the temporary MAC address. 3. Dynamically determining a local unique MAC address includes initiating a timing window when broadcasting the request message. 4. Dynamically determining a local unique MAC address includes adopting the temporary MAC address as the local unique MAC address if the timing window successfully expires. 5. The network interface controller is configured to respond to any conflicting request messages received after the timing window successfully expires with an assertion message indicating a priority for the temporary MAC address in the conflicting request message. 6. If a conflicting request message is received during the timing window at a reception time that precedes the transmission time, repeating the generation, broadcasting and initiation. 7. Repeating the generation, broadcasting and initiation when a conflicting assertion request message is received. 8. The network communication protocol limits the use of the communication medium to at most one sender at a time. 9. The network communication protocol is time-triggered Ethernet. 10. The network interface employs a physical layer interface that complies with at least one of the IEEE standards 802.3, 802.11, and 802.15 series. 11. At least some of the messages are unicast messages that contain a local unique MAC address in a destination field. 12. If the transmission time of the local request message is later than the transmission time of the remote request message, the network interface broadcasts another local request message that specifies another MAC address. 13. The network interface is further configured to respond to any remote assert message that specifies a MAC address by broadcasting another local request message that specifies another MAC address. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Figure 1A An exemplary network is shown.
[0009] Figure 1B An exemplary network packet is shown.
[0010] Figure 2 is a block diagram of an exemplary network interface.
[0011] Figure 3 is a state diagram for an exemplary MAC address resolution method.
[0012] Figure 4 is a timeline of events that further illustrates the exemplary method. DETAILED DESCRIPTION
[0013] It should be understood that the following description and drawings are provided for the purpose of explanation rather than limitation of the present disclosure. In other words, they provide a basis for those skilled in the art to identify and understand all modifications, equivalents, and alternatives that fall within the scope of the claims.
[0014] Figure 1A An illustrative network with multiple network nodes (node A to node D) interconnected by a communication medium 102 (such as an electrical bus or wiring, optical fiber or radio frequency signaling) is shown. Embodiments of network nodes include computers, network routers, network switches, bridges, network storage, network attached sensors, controllers and IoT devices. They include one or more network interfaces coupled to a host device such as a processor, a microcontroller or an application-specific integrated circuit. The network node can adopt 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 network types used to illustrate the disclosed address resolution method and interface herein, the disclosure provided herein can be easily applied to other communication media, network interfaces and communication protocols, which adopt network messages that provide messages with source addresses and / or target addresses.
[0015] The illustrated communication medium 102 can transmit network packets from one of the nodes to the remaining nodes. In a particular preferred embodiment, the communication medium 102 supports only one transmitter at a time, thereby ensuring that the sequence of packets transmitted by the communication medium 102 is arranged in an ordered sequence. Multiple transmitters attempting to operate simultaneously may generate network conflicts that prevent the reception of packets or are resolved according to the standards of the relevant network protocols. 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).
[0016] 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, such as Figure 1B As shown. The header 112 may include a start delimiter 120, a destination field 122 having the MAC address of the desired destination of the packet, a source field 124 having the MAC address of the source node of the packet, and other fields 126 for information such as optional tags, packet type, and payload length. In some embodiments, the header 112 further includes a field that specifies the message type, such as a message temporarily requesting a MAC address or a message asserting ownership of a 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 in the destination field 122 to indicate that the packet is directed to all nodes on the communication medium 102.
[0017] In order to communicate via the communication medium 102, each of the nodes A to D includes a network interface (such as Figure 2 206 ). The exemplary network interface includes a transceiver 202 that supports multi-channel data stream transmission or reception. The transceiver 202 operates under the control of a network interface controller 208 to send transmission messages from a transmission buffer 204 when the implemented network protocol allows, and to store received messages in a receive buffer 206 when the network protocol dictates (e.g., when the message is a broadcast message or a 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 relevant network protocol, or a programmable processor that executes firmware from a non-volatile memory. In either case, a set of configuration registers 210 may provide a memory mapped interface for use by a host device. The host device may access the configuration registers 210 via an internal bus interface 212, set parameter values, and monitor status registers to coordinate communications on the network. Using direct memory access techniques, outgoing messages may be written to the transmission buffer 204 via the internal bus interface 212, and incoming messages may be similarly extracted from the receive buffer 206.
[0018] Figure 31 is a state diagram of an illustrative 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 being preset, and the resulting address is locally unique because it is not shared by other nodes connected to the communication medium 102. The state diagram can be implemented by the network interface controller 208, optionally as part of a standard finite state machine for implementing a selected network communication protocol. Preferably, each network node implements the illustrative MAC address resolution method, but as discussed further below, the method can be implemented in a manner that provides backward compatibility with standard-compliant nodes that do not implement the method.
[0019] 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 temporary MAC address. This selection can be performed using a random or pseudo-random value generator, for example, a module that obtains one or more die values from a clock, sensor measurement, a unique identifier such as a wafer-level traceability (DLT) code, and / or other source and derives a series of one or more unpredictable values therefrom. The derived values can optionally be combined with the OUI to avoid any address conflicts with addresses assigned to other manufacturers. It should be noted 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 it is locally determined. The reserved bit can be set instead of relying on the OUI to avoid conflicts with assigned addresses.
[0020] The network interface controller 208 exits the initial state 302 and enters the checking state 304 by sending a request message to other nodes on the communication medium 102. (Because the request message sent by the controller 208 is locally generated, it may be referred to as a "local" request message hereinafter, as opposed to a request message received by the controller 208 from other nodes, which may be referred to as a "remote" request message hereinafter. Similarly, a "local" assertion message and a "remote" assertion message correspond to an assertion message sent by the controller 208 to another node and an assertion message received by the controller 208 from another node, respectively.)
[0021] Request messages are not currently part of any standard network communications protocol; they may take the form of a standard broadcast data frame or packet format, but will include a field or value that identifies the message as a request message. A request message may, but need not, take a temporary MAC address as a source identifier, thereby indicating the MAC address it is attempting to request. If it does not take a MAC address as a source identifier, the request message will specify the temporary MAC address elsewhere.
[0022] When sending a local request message, the network interface controller 208 initiates a timing window. The timing window is set so as to give each other node an opportunity to respond to the request message. In the case where the communication medium 102 supports a total of N nodes and provides time division multiplexing (TDM) time slots each having a duration Ts, the timing window can be (for example) set to 2×N×Ts, giving each node at least two opportunities to respond. In most cases, it is expected that the timing window will be successfully invalidated, that is, no conflicting request messages or conflicting assertion messages are received. If the remote request message specifies a temporary MAC address that matches the temporary MAC address of the current node or (in state 306) a verified MAC address, the remote request message is a conflict. Similarly, if the remote assertion message indicates a verified MAC address that matches the temporary or verified MAC address of the current node, the remote assertion message is a conflict. In the absence of any such conflicting messages, the timing window successfully fails and the network interface controller 208 enters the verified state 306.
[0023] In the verified state 306, the network interface controller 208 adopts the temporary MAC address as the verified MAC address that has been determined to be locally unique. The network interface controller 208 then immediately responds to any conflicting request messages by sending an assert message. State 310 is a temporary transition state that lasts only until the local assert message is sent, after which the network interface controller 208 returns to the verified state 306.
[0024] Similar to the request message, the assertion message can be a dedicated assertion message that is not currently part of any standard network communication protocol; it can adopt a standard broadcast data frame or packet format, but will include a field or value that identifies the message as an assertion message. Because the MAC address has been verified, the assertion message preferably uses the verified MAC address as the source identifier.
[0025] However, we note that it may not be necessary to employ a dedicated assert message. Any response to a conflicting request message that employs a verified MAC address as a source identifier will serve as an assert message. This feature may advantageously facilitate backward compatibility with nodes that do not implement the disclosed address resolution method. Regardless of which of the states 302, 304, 306 the network interface controller 208 is currently in, receipt of a conflict assert (RCA) message causes the network interface controller 208 to re-enter the initial state 302 and begin repeating the process by selecting a new temporary MAC address.
[0026] Receiving a conflict request (RCC) message when the network interface controller 208 is in the initial state 302 will similarly cause the process to restart with the selection of a new temporary MAC address. Receiving a conflicting request message when the network interface controller 208 is in the check state 304 will result in a test state 308, in which the network interface controller 208 determines whether the conflicting request message was received before or after the transmission of the local request message (as shown by the transition from state 302 to 304). As previously noted, in the case where the network communication protocol only provides one transmitter at a time on the communication medium 102, the messages must be sent in an ordered sequence that is easy to determine. If the local request message is transmitted first, the network interface controller 208 returns to the check state 304, optionally reinitializing the window timer. On the other hand, if the conflicting request message is transmitted first, the network interface controller 208 restarts the process that began with the initial state 302.
[0027] The determination of relative timing can be implemented in a variety of ways. One approach is to track the time at which the local request message is transmitted and compare that transmission time to the time at which the conflicting request message is received. A potentially easier approach is to set a flag when the local request message is placed in the transmit buffer 204 and queued for transmission, and reset the flag when the transmission of the local request message is complete. When a conflicting request message is received, the network interface controller 208 can check the flag to determine whether the transmission of the local request message is still outstanding or has been completed.
[0028] To further illustrate the principles behind the disclosed method, Figure 4 is a timeline of events that four network nodes may experience. At time t0, nodes A, B, and C are initialized and select temporary MAC addresses. (Assume that node D is added to the network later in the process). The selected addresses are preferably random, but for illustration purposes, Figure 4 A worst case scenario is shown where each of the nodes initially selects the same temporary MAC address, in this case "0". The dashed outline around the selected address indicates that each of the nodes is in the initial state. A solid line around the selected address would indicate a checking state, and a bold line around the address would indicate a verified state.
[0029] At time t1, node A broadcasts a request message to other nodes, requesting "0" as its temporary MAC address and entering the checking state. Due to the assumed queuing delay, node B subsequently broadcasts a conflicting request message for address "0" as its temporary MAC address and enters the checking state at time t2. At time t3, each of the nodes processes the received message. Node A, which is in the checking state and has received a conflicting request message, evaluates the relative timing of the message and determines that the conflicting request message is received after sending the local request message. Therefore, node A remains in the checking state. Node B, which is also in the checking state and has received a conflicting request message, evaluates the relative timing, but determines that the conflicting request message is received before sending the local request message. Node B therefore returns to the initial state and selects a different temporary MAC address. As previously described, the selection is preferably random, but is shown here as "1" for the purpose of illustration. Node C, which is in the initial state and has received a conflicting request message, re-enters the initial state and selects a new temporary MAC address, which is shown here as "1" for the purpose of illustration.
[0030] At time t4, node C broadcasts a request message to other nodes, requesting "1" as its temporary MAC address and entering the checking state. Due to queuing delays, node B subsequently broadcasts a conflicting request message for address "1" as its temporary MAC address and enters the checking state. At time t6, each of the nodes processes the received message. Since the temporary address of node A is "0", the received request message for address "1" does not conflict with the temporary address of node A. Node B, which is in the checking state and has received a conflicting request message for its temporary address, evaluates the relative timing and determines that the conflicting request message is received before sending the local request message. Node B therefore returns to the initial state and selects a different temporary MAC address, which is shown here as "2". Node C, which is in the checking state and has received a conflicting request message for its temporary address, evaluates the relative timing and determines that the conflicting request message is received after sending the local request message. Therefore, node C remains in the checking state.
[0031] At time t7, Node B sends a request message to temporary MAC address "2". This does not present any conflict with temporary addresses currently selected by other nodes.
[0032] As the various window timers expire (shown as time frame t8), the nodes transition from the Checking state to the Verified state, adopting their respective temporary MAC addresses as the valid MAC addresses.
[0033] At time t9, node D is added to the network and enters the initial state with a temporary MAC address of "0" (only to present a worst-case embodiment). It broadcasts a request message to the temporary address "0" and enters the check state. Node A responds to the conflicting request message at time t10 by broadcasting an assertion message indicating the previous ownership of address "0". At time t11, node D, which has received the conflicting assertion message, returns to the initial state and selects a different temporary MAC address. The process continues until the temporary MAC address selected by node D does not present an address conflict with other nodes.
[0034] If temporary MAC address selection is properly randomized, the chance of collision is extremely low and the address resolution process is completed very quickly. The physical layer's serialization of messages on the network medium enables the selected MAC address to be guaranteed to be locally unique.
[0035] Upon reviewing the above disclosure, one of ordinary skill in the art will recognize various modifications, equivalents, and alternatives within the scope of the present invention. It is intended that the following claims be interpreted as including all such modifications, equivalents, and alternatives as applicable.
Claims
1. A network interface, characterized in that: The network interface comprises: a transceiver coupled to a transmit buffer to send transmit messages via a communication medium and coupled to a receive buffer to store receive messages received via the communication medium, each of the transmit messages including a source field including a media access control (MAC) address; and A network interface controller is coupled to the transceiver to implement a network communication protocol for communicating the transmit messages and receive messages via the communication medium, the network interface controller being configured to dynamically determine a local unique MAC address for the network interface.
2. The network interface according to claim 1, wherein: As part of dynamically determining the local unique MAC address, the network interface controller determines a temporary MAC address and broadcasts a request message for the temporary MAC address via the communications medium, the request message having an associated transmission time.
3. The network interface according to claim 2, wherein: The network interface controller determines the temporary MAC address using a random or pseudo-random value.
4. The network interface according to claim 2, wherein: When broadcasting the request message, the network interface controller is configured to initiate a timing window, and is further configured to adopt the temporary MAC address as the local unique MAC address if the timing window successfully expires.
5. The network interface according to claim 4, wherein: After the timing window has successfully expired, the network interface controller responds to any conflicting request messages with an assert message indicating priority for the temporary MAC address in the conflicting request message.
6. The network interface according to claim 4, wherein: The network interface controller is configured to repeat provisional MAC address determination, request message broadcast, and timing window initiation if a conflicting request message is received during the timing window at a reception time that precedes the transmission time.
7. The network interface according to claim 4, wherein: The network interface controller is configured to repeat the provisional MAC address determination, request message broadcast, and timing window initiation upon receiving a conflicting assertion request message.
8. The network interface according to claim 1, wherein: The network communication protocol limits use of the communication medium to at most one sender at a time.
9. The network interface according to claim 8, wherein: The network communication protocol is Time Triggered Ethernet.
10. The network interface according to claim 8, wherein: The network communication protocol includes physical layer collision avoidance (PLCA).
11. The network interface according to claim 1, wherein: The network interface uses a physical layer interface that complies with at least one of the IEEE standards 802.3, 802.11 and 802.15 series.
12. A network interface method, characterized in that: The network interface method comprises: Using a transceiver to send transmission messages via a communication medium and storing received reception messages via the communication medium, each of the transmission messages including a source field containing a media access control (MAC) address; and A locally unique MAC address is dynamically determined to be used in the source field of the transmission message.
13. The network interface method according to claim 12, wherein: At least some of the received messages are unicast messages that include the local unique MAC address in a destination field.
14. The network interface method according to claim 12, wherein: The dynamically determining the local unique MAC address comprises: Generate a temporary MAC address; and A request message for the temporary MAC address is broadcasted via the communication medium, the request message having an associated transmission time.
15. The network interface method according to claim 14, wherein: The temporary MAC address is generated using a random or pseudo-random value.
16. The network interface method according to claim 14, wherein: The dynamically determining further comprises: Initiating a timing window when broadcasting the timing message; and If the timing window expires successfully, the temporary MAC address is adopted as the local unique MAC address.
17. The network interface method according to claim 16, wherein: After the timing window successfully expires, the method further includes responding to any conflicting request messages with an assert message indicating priority for the temporary MAC address in the conflicting request message.
18. The network interface method according to claim 16, wherein: The network interface method further includes repeating the generating, broadcasting, and initiating if a conflicting request message is received during the timing window at a reception time that precedes the transmission time.
19. The network interface method according to claim 16, wherein: The network interface method further includes repeating the generating, broadcasting, and initiating when a conflicting assertion request message is received.
20. The network interface method according to claim 12, wherein: The using of the transceiver is performed in accordance with the Time Triggered Ethernet standard.
21. The network interface method according to claim 12, wherein: The communication medium provides physical layer collision avoidance PLCA.
22. A network node, the network node comprising a network interface coupled to a host device, characterized in that: The network interface is configured as: broadcasting a local request message to all other nodes on the communication medium, the local request message specifying the MAC address selected by the network interface; comparing a transmission time of the local request message to a transmission time of any remote request message specifying the MAC address received before a predetermined interval has expired; as well as Any remote request message received after the predetermined interval has expired that specifies the MAC address is responded to by broadcasting an assertion message that specifies the MAC address.
23. The network node according to claim 22, wherein: If the transmission time of the local request message is later than the transmission time of the remote request message, the network interface broadcasts another local request message specifying another MAC address.
24. The network node according to claim 22, wherein: The network interface is further configured to respond to any remote assert message specifying the MAC address by broadcasting another local request message specifying another MAC address.
25. The network node according to claim 22, wherein: The network interface uses a random or pseudo-random value to determine the temporary MAC address.
