SERVICE DISCOVERY METHOD FOR NETWORKS WITH MULTICAST RESTRICTIONS
20230239237 · 2023-07-27
Assignee
Inventors
- Zhuo ZHANG (Shanghai, CN)
- Kai ZHOU (Shanghai, CN)
- Zheng Zhang (Shanghai, CN)
- Tianming ZHANG (Brighton, MA, US)
Cpc classification
H04L45/028
ELECTRICITY
International classification
H04L45/00
ELECTRICITY
H04L45/028
ELECTRICITY
Abstract
Disclosed service discovery methods include responding, by a node, to detecting a new connection to a switch port by performing new connection operations that include determining, using link-layer discovery protocol (LLDP) advertisements, a switch port number and self-assigning an IP address in accordance with a predetermined addressing protocol in which the self-assigned IP address is indicative of the switch port number. The IP address assigned to the node may indicate the node's switch port number. Disclosed methods may further include initiating a unicast discovery procedure to determine, via unicast messages exchanged between nodes connected to the switch, a switch port roster that lists or otherwise indicates nodes connected to the switch as well as their corresponding port numbers and services available from each node. The switch port roster may be distributed to each of the connected nodes. The unicast discovery procedure may be periodically launched to refresh and re-distribute the roster.
Claims
1. A method, comprising: responsive to detecting a new connection between a node and a switch port, performing new connection operations, wherein the new connection operations include: determining a switch port number comprising a port number of the switch port connected to the node; assigning an IP address to the node, wherein the IP address indicates the switch port number; initiating a unicast discovery procedure to discover, via unicast discovery messages, all nodes connected to the switch; and distributing a switch port roster, indicative of all nodes connected to the switch and their respective switch ports to each of the nodes connected to the switch.
2. The method of claim 1, wherein determining the switch port number comprises obtaining link layer discovery protocol (LLDP) information from the switch port.
3. The method of claim 1, wherein the unicast discovery message include unicast discovery messages from each switch-connected node to its nearest neighbor node.
4. The method of claim 3, wherein the unicast discovery procedure includes: sending, from a first node connected to a first switch port, a discovery message to a lower adjacent switch port; responsive to detecting a second node connected to the lower adjacent switch port and determining that the second node is not included in the switch port roster: adding the second node to the switch port roster; and sending a second discovery message from the second node to a next lower adjacent switch port; and responsive to detecting no node connected to the lower adjacent switch port, sending a discovery message from the first node to the next lower adjacent switch port.
5. The method of claim 4, wherein the unicast discovery procedure further includes: responsive to receiving a discovery message from a sending node and determining, from the switch port roster, that the sending node is a new node, restarting the unicast discovery procedure to capture the new node in the switch port roster.
6. The method of claim 4, wherein the unicast discovery procedure further includes, responsive to a particular node detecting no further switch-connected nodes: identifying the particular node as a lowest node; and sending unicast messages, indicative of the switch port roster, from the lowest node to each other node in the switch port roster.
7. The method of claim 4, further comprising: identifying a switch-connected node connected to a highest switch port as a starting node; and periodically performing the unicast discovery process, beginning with the highest node, to refresh and redistribute the switch port roster.
8. The method of claim 7, further comprising: responsive to a switch-connected node not receiving a discovery message from a higher node during an interval exceeding a threshold duration, identifying the switch-connected node as the highest node.
9. An information handling system, comprising: a central processing unit (CPU); and a memory, accessible to the processor, including processor executable instructions that, when executed by the CPU, cause the system to perform management operations comprising: responsive to detecting a new connection between a node and a switch port, performing new connection operations, wherein the new connection operations include: determining a switch port number comprising a port number of the switch port connected to the node; assigning an IP address to the node, wherein the IP address indicates the switch port number; initiating a unicast discovery procedure to discover, via unicast discovery messages, all nodes connected to the switch; and distributing a switch port roster, indicative of all nodes connected to the switch and their respective switch ports to each of the nodes connected to the switch.
10. The information handling system of claim 9, wherein determining the switch port number comprises obtaining link layer discovery protocol (LLDP) information from the switch port.
11. The information handling system of claim 9, wherein the unicast discovery message include unicast discovery messages from each switch-connected node to its nearest neighbor node.
12. The information handling system of claim 11, wherein the unicast discovery procedure includes: sending, from a first node connected to a first switch port, a discovery message to a lower adjacent switch port; responsive to detecting a second node connected to the lower adjacent switch port and determining that the second node is not included in the switch port roster: adding the second node to the switch port roster; and sending a second discovery message from the second node to a next lower adjacent switch port; and responsive to detecting no node connected to the lower adjacent switch port, sending a discovery message from the first node to the next lower adjacent switch port.
13. The information handling system of claim 12, wherein the unicast discovery procedure further includes: responsive to receiving a discovery message from a sending node and determining, from the switch port roster, that the sending node is a new node, restarting the unicast discovery procedure to capture the new node in the switch port roster.
14. The information handling system of claim 12, wherein the unicast discovery procedure further includes, responsive to a particular node detecting no further switch-connected nodes: identifying the particular node as a lowest node; and sending unicast messages, indicative of the switch port roster, from the lowest node to each other node in the switch port roster.
15. The information handling system of claim 12, further comprising: identifying a switch-connected node connected to a highest switch port as a starting node; and periodically performing the unicast discovery process, beginning with the highest node, to refresh and redistribute the switch port roster.
16. The information handling system of claim 15, further comprising: responsive to a switch-connected node not receiving a discovery message from a higher node during an interval exceeding a threshold duration, identifying the switch-connected node as the highest node.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0010] A more complete understanding of the present embodiments and advantages thereof may be acquired by referring to the following description taken in conjunction with the accompanying drawings, in which like reference numbers indicate like features, and wherein:
[0011]
[0012]
[0013]
[0014]
[0015]
DETAILED DESCRIPTION
[0016] Exemplary embodiments and their advantages are best understood by reference to
[0017] For the purposes of this disclosure, an information handling system may include any instrumentality or aggregate of instrumentalities operable to compute, classify, process, transmit, receive, retrieve, originate, switch, store, display, manifest, detect, record, reproduce, handle, or utilize any form of information, intelligence, or data for business, scientific, control, entertainment, or other purposes. For example, an information handling system may be a personal computer, a personal digital assistant (PDA), a consumer electronic device, a network storage device, or any other suitable device and may vary in size, shape, performance, functionality, and price. The information handling system may include memory, one or more processing resources such as a central processing unit (“CPU”), microcontroller, or hardware or software control logic. Additional components of the information handling system may include one or more storage devices, one or more communications ports for communicating with external devices as well as various input/output (“I/O”) devices, such as a keyboard, a mouse, and a video display. The information handling system may also include one or more buses operable to transmit communication between the various hardware components.
[0018] Additionally, an information handling system may include firmware for controlling and/or communicating with, for example, hard drives, network circuitry, memory devices, I/O devices, and other peripheral devices. For example, the hypervisor and/or other components may comprise firmware. As used in this disclosure, firmware includes software embedded in an information handling system component used to perform predefined tasks. Firmware is commonly stored in non-volatile memory, or memory that does not lose stored data upon the loss of power. In certain embodiments, firmware associated with an information handling system component is stored in non-volatile memory that is accessible to one or more information handling system components. In the same or alternative embodiments, firmware associated with an information handling system component is stored in non-volatile memory that is dedicated to and comprises part of that component.
[0019] For the purposes of this disclosure, computer-readable media may include any instrumentality or aggregation of instrumentalities that may retain data and/or instructions for a period of time. Computer-readable media may include, without limitation, storage media such as a direct access storage device (e.g., a hard disk drive or floppy disk), a sequential access storage device (e.g., a tape disk drive), compact disk, CD-ROM, DVD, random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), and/or flash memory; as well as communications media such as wires, optical fibers, microwaves, radio waves, and other electromagnetic and/or optical carriers; and/or any combination of the foregoing.
[0020] For the purposes of this disclosure, information handling resources may broadly refer to any component system, device or apparatus of an information handling system, including without limitation processors, service processors, basic input/output systems (BIOSs), buses, memories, I/O devices and/or interfaces, storage resources, network interfaces, motherboards, and/or any other components and/or elements of an information handling system.
[0021] In the following description, details are set forth by way of example to facilitate discussion of the disclosed subject matter. It should be apparent to a person of ordinary skill in the field, however, that the disclosed embodiments are exemplary and not exhaustive of all possible embodiments.
[0022] Throughout this disclosure, a hyphenated form of a reference numeral refers to a specific instance of an element and the un-hyphenated form of the reference numeral refers to the element generically. Thus, for example, “device 12-1” refers to an instance of a device class, which may be referred to collectively as “devices 12” and any one of which may be referred to generically as “a device 12”.
[0023] As used herein, when two or more elements are referred to as “coupled” to one another, such term indicates that such two or more elements are in electronic communication, mechanical communication, including thermal and fluidic communication, thermal, communication or mechanical communication, as applicable, whether connected indirectly or directly, with or without intervening elements.
[0024] Before referring specifically to the drawings, an overview of disclosed teachings is presented. Service discovery may be performed within an environment, including, but not restricted to, secure datacenter environments in which two or more nodes within a datacenter rack are connected to a top of rack (ToR) switch, but wherein the use of multicasting is restricted or prohibited with respect to at least some portion of the datacenter.
[0025] To perform service discovery in this environment, each node connected to a ToR switch determines the switch port number and assigns itself a static IP address reflecting the switch port number. Thereafter, higher nodes, i.e., nodes connected to higher-numbered switch ports, pass down the known endpoints to their lower nearest neighbor node. In this manner, the lowest or smallest node, i.e., the node connected to the lowest numbered switch port will receive information indicating all discovered nodes and their corresponding services and advertise this information to each of the other switch-connected nodes. Service discovery is thereby achieved with unicast traffic only.
[0026] Referring now to
[0027] Each switch port 110 that has a node connected to it is indicated by the absence of an “X” across the switch port. Conversely, each switch port 110 not connected to a node is indicated by an “X” crossing the switch. Thus, switch ports 2, 3, 6, 7, 11, and 12 are each connected to a corresponding node while switch ports 1, 4, 5, 8, 9, and 10 are not connected to any node.
[0028] Disclosed unicast discovery procedures include an iterative sequence, beginning with the highest switch-connected node, i.e., the node connected to the highest-numbered switch port, in which each connected node discovers its lower nearest neighboring node by sending one or more unicast discovery messages to lower adjacent switch ports until a node-connected switch port is found or until there are no more neighboring switch ports remaining. Each time a lower nearest neighbor node is discovered, the discovered node is added to a switch port list. When the discovery cycle is complete, the switch port list identifies all connected nodes.
[0029] The node connected to switch port 12 (110-12) is the highest switch-connected node, so the discovery cycle begins with switch port 12. The switch port list (130-1) is initialized to include switch port 12 and the node connected to switch port 12 sends a unicast message 121 to its lower adjacent switch port, i.e., switch port 11. Because switch port 11 has a connected node, switch port 11 is added to the switch port roster (130-2) and the node connected to switch port 11, referred to herein as node 11 for the sake of brevity, is next to discover its lower nearest neighbor.
[0030] Node 11 begins the process of discovering its lower nearest neighbor by sending a discovery message 122 to its lower adjacent switch port, i.e., switch port 10. Because no node is connected to switch port 10, node 11 sends a second discovery message (123) to the next lower adjacent switch port, i.e., switch port 9. This process continues until node 11 discovers that node 7 is its lower nearest neighbor, at which point node 7 is added to the switch port roster (130-3). Node 7 then determines its lower nearest neighbor, i.e., node 6 and so on in like manner until node 2, the lowest connected node discovers that it has no lower neighbor, at which point node 2 recognizes that it is the lowest connected node, adds itself to the incoming switch port roster (130-5) to produce the final switch port roster 130-6. As the lowest switch-connected node, node 2 then sends, to every other switch-connected node, a unicast message identifying all of the connected endpoints/services
[0031] As depicted in
[0032]
[0033] As shown in
[0034]
[0035]
[0036] After a node probes it's smaller neighbor in block 406, method 400 determines (block 410), whether any smaller neighbors are present. If no smaller neighbors are present, method 400 branches to block 414, in which the node, having determined that it is the smallest node, advertises discovered nodes and services to all other switch-connected nodes. If, in block 410, a node discovers a smaller neighbor, the node sends (block 412), a discovery message to the smaller neighbor.
[0037] Referring now to
[0038] This disclosure encompasses all changes, substitutions, variations, alterations, and modifications to the example embodiments herein that a person having ordinary skill in the art would comprehend. Similarly, where appropriate, the appended claims encompass all changes, substitutions, variations, alterations, and modifications to the example embodiments herein that a person having ordinary skill in the art would comprehend. Moreover, reference in the appended claims to an apparatus or system or a component of an apparatus or system being adapted to, arranged to, capable of, configured to, enabled to, operable to, or operative to perform a particular function encompasses that apparatus, system, or component, whether or not it or that particular function is activated, turned on, or unlocked, as long as that apparatus, system, or component is so adapted, arranged, capable, configured, enabled, operable, or operative.
[0039] All examples and conditional language recited herein are intended for pedagogical objects to aid the reader in understanding the disclosure and the concepts contributed by the inventor to furthering the art, and are construed as being without limitation to such specifically recited examples and conditions. Although embodiments of the present disclosure have been described in detail, it should be understood that various changes, substitutions, and alterations could be made hereto without departing from the spirit and scope of the disclosure.