Devices connected to computer networks have a need for a unique network address in order to communicate on the network. In many networks, the network address is allocated or assigned automatically, avoiding the need for manual configuration by a user. The automatic allocation of addresses is typically centralized in a dedicated device on the network that provides an address-assignment service, such as the Dynamic Host Configuration Protocol (DHCP). The use of a centralized address-assignment service avoids the occurrence of network address conflicts.
Various types of computer networks exist. A traditional computer network includes network infrastructure, such as routers and switches, as well as dedicated devices providing network services such as DHCP.
A mesh network is a self-learning network of loosely connected computing devices. The devices connected to the mesh typically distribute packets throughout the mesh, allowing for the network to operate with limited or no infrastructure. The mesh network requires no maintenance, and can be very robust if a sufficient density of connected computing devices has been achieved. Mesh networks are particularly useful in developing countries lacking the infrastructure to form a traditional computer network.
Some computing devices may offer a service to other devices, such as a DHCP service, a data storage service, or a printing service. It is often desirable for such a device to advertise to other devices the service(s) it provides. For example, a router in a network may advertise its routing capability to other devices using a protocol such as the Internet Control Message Protocol (ICMP). An ad-hoc device, such as a device operating over the Bluetooth® protocol, may also advertise a service it provides. For example, a cellular phone capable of exchanging data over a cellular network may advertise that capability over a Bluetooth® protocol to other devices. A Bluetooth® equipped laptop computer, for example, could then connect to external networks through the cellular phone to exchange data with other computers.
A mesh network is adapted to act as a reliable transport, despite the varying and ad hoc nature of a mesh network. For example, the mesh may be adapted to serve as a transport mechanism for communications using TCP/IP or other higher level protocols or may allow devices to use services provided by mesh nodes, even when out of range of wireless communication range with those mesh nodes.
In one aspect, the mesh can be used as an access network to other networks. A node in the mesh that can serve as a bridge to another network advertises over the mesh that it is capable of acting as a gateway. Other nodes in the network can receive such advertisements, and use them to select a gateway for communication outside the mesh.
The advertisements may provide information that allows each node in the mesh to select a desirable gateway node as its default gateway. Part of this information may be contained with the advertisements themselves. Though, another part of this information may be obtained from the timing with which advertisements are received.
Information in the advertisement may identify characteristics of the path between the gateway and the node receiving the advertisement. For example, the advertisement may indicate a number of hops in the path. Such information may be incorporated into an advertisement by the operation of nodes in the mesh network as the advertisement propagates through the mesh network. For example, the advertisement may be generated by a gateway node with a null value in a hop count field. As each node receives an advertisement, it may increment the hop count field and then forward the advertisement to other nodes in the mesh network.
Timing related to receipt of advertisements may also be used in selecting a default gateway. Each gateway may generate advertisements repeatedly at intervals that will allow a node to identify whether the path through the mesh network to the gateway has been lost or, as a result of mesh reconfiguration, changed. Each node may repeatedly update its selection of a default gateway, selecting as a default a gateway that is reachable over an efficient path. The gateway selection may change at the transport level faster than a change in the default gateway that might otherwise occur as a result of a communications failure at a higher protocol layer when a default gateway becomes unavailable. As a result, the mesh network provides a reliable transport for any communications through the selected gateway.
The foregoing is a non-limiting summary of the invention, which is defined by the attached claims.
The accompanying drawings are not intended to be drawn to scale. In the drawings, each identical or nearly identical component that is illustrated in various figures is represented by a like numeral. For purposes of clarity, not every component may be labeled in every drawing. In the drawings:
The inventors have recognized and appreciated modifications of conventional mesh networks that can enable the network to be used to support services in scenarios where the ad hoc and unreliable characteristics of those networks would otherwise not be acceptable. In this way, the relative flexibility and ease of creation of mesh networks can be leveraged to deliver services in a wide range of locations, even where network infrastructure has not yet been deployed or is unaffordable or otherwise unavailable.
One adaptation that may be incorporated into a mesh network is the self assignment of addresses for nodes on the network so that each node can be uniquely identified, either by other nodes on the network or devices outside the network that may wish to obtain services that require communication with nodes on the mesh. Such self-assignment may be performed in a way that avoids conflicts, even as the network grows, splits or reconfigures as nodes join and leave the mesh network.
A further adaptation that may be incorporated into a mesh network is the advertisement of services to devices outside the network. Nodes of the mesh may advertise to other nodes on the mesh the services they provide. Nodes that can act as an access point to the mesh network may collect and aggregate such advertisements. The aggregated advertisements, identifying services available through the mesh, may be distributed to computing devices that have not yet joined the mesh network. Other devices outside the mesh network may use the aggregated advertisements to locate services, and the services may be used as criteria for joining the mesh network.
Further, a mesh network may be adapted to support reliable connections through the mesh to gateways for another network. These connections may be formed by allowing each node to select as a default a gateway that can be reliably reached from that node. The selection may be changed with a frequency that helps ensure that there will be a reliable gateway selected for communication even if changes in the mesh network disrupt communication with some gateways.
Selection of a default gateway may be enabled by configuring gateway nodes to repeatedly advertise their presence. Information associated with the advertisements may then be used to enable other nodes to keep their selection of a gateway node current.
These adaptations may be used separately or in any combination to facilitate use of the mesh network in ways that mesh networks are not normally used. For example, the mesh network may be used as a transport for higher level network protocols. As a specific example, TCP/IP communications generally perform poorly over unreliable transports. Communications using TCP/IP and other protocols that require delivery confirmation experience delays when a message is not delivered as a result of a node in a communication path being unavailable. One cause of delay is that, when the message does not reach its intended destination, no message acknowledgement is received. In this case, the sending device waits until a time out period expires and may attempt several retransmissions until the sending device determines that communication over the initially selected path has failed and reconfigures itself to use a different path. By selecting as a default a gateway, or other node that provides a service, based on the reliability and the availability of a connection to that node, and by updating the selection more frequently than the time it would otherwise take to identify failure along a path, reliable communication can be maintained.
Alternatively or additionally, a mesh network according to some embodiments may expand the physical radius around a file server or print server from which other computing devices can access such services.
These and other functions may he implemented using a mesh network that has been adapted for reliable communication.
The mesh network may include one or more specially configured mesh nodes, called gateway nodes or mesh portal points, that are connected to one or more computer networks outside the mesh network. A gateway node bridges the mesh network with an external network, allowing other mesh nodes to communicate with devices outside the mesh. The external network could be an infrastructure network, such as the Internet, but the external network could also have other forms. When a user of a mesh node that is not a gateway node has a need to communicate with a device outside the mesh, the mesh node can direct a network packet to an appropriate gateway node that forwards the network packet to the computing device outside the mesh. Packets sent from a computing device outside the mesh that are destined for a mesh node are directed to the gateway node, which may then forward the packets to the appropriate mesh node. The forwarding functionality of the gateway node may be done in any suitable way, including by using network address translation (NAT), as is known in the art.
Three of the mesh nodes in the mesh network 101 in the example of
A mesh network typically has a more transient nature than a traditional network. For example, mesh nodes, including gateway nodes, may suddenly no longer be connected to the mesh network. In some environments in which the invention may be practiced, a mesh node may not provide any indication to other mesh nodes in the mesh network that it has left or has disconnected from the mesh network. A mesh node may leave the network for any number of reasons, both voluntary and involuntary. For example, a mesh node may suffer a hardware or software failure, or it may have been intentionally powered down by a user in order to transport the device configured as a mesh node to another location.
In addition, as mesh nodes leave the mesh network, it is possible for a mesh network to split into two or more disjoint mesh networks, in which the new resulting mesh networks may not include all the gateway nodes that belonged to the single mesh network. A mesh network may also join with another mesh network, which could result in an additional number of gateway nodes that could be available to a mesh network.
Accordingly, mesh nodes that rely on a gateway node for connectivity to devices on an external network may need a way to detect the presence or absence of gateway nodes in the mesh network. In some embodiments of the invention, each gateway node on a mesh network generates an advertisement, and may periodically transmit the advertisement to other mesh nodes, thereby alerting other mesh nodes of its continued presence. The advertisement may be transmitted according to any suitable protocol, such as ICMP. A mesh node may then track the gateways from which it has recently received an advertisement in order to take account of the gateways currently available on a mesh network.
If a mesh node has received an advertisement from more than one gateway, in some embodiments of the invention, the mesh node may select a single gateway as a default gateway. The default gateway may be the first gateway to which the mesh node forwards packets destined for a computing device on an external network. For example, a user of a mesh node, such as mesh node 105, may have a need to communicate with a computer outside the mesh over the Internet 113. Mesh node 105 may then be configured to direct a TCP/IP packet encapsulated for transmission over the mesh network to a particular gateway node connected to the Internet 113. While the mesh network 101 includes two gateway nodes connected to the Internet 113, the mesh node 105 may be configured to select only one of them, such as gateway node 109, as the default gateway node to which the mesh node 105 first directs packets destined, to computers over the Internet. The selection of the default gateway node may be made in any suitable way. In some embodiments of the invention, the mesh node may select the default gateway node by taking into account characteristics of a network path between the mesh node and each gateway node.
Mesh nodes may provide additional services besides the connectivity to an external network that is provided by any gateway node. A mesh node providing a, service may make the service available to other nodes in the mesh network. In the example illustrated by
Due to the transient nature of many mesh networks, the services available in a mesh network can change over time. Thus, as with the availability of gateway nodes, it would, be useful for a mesh node to have an accurate account of any services currently available to it on the mesh network. Accordingly, a mesh node, such as mesh nodes 105 and 107, that provides a service to other mesh nodes, may advertise the availability of that service to other nodes in the mesh network. An advertisement sent by a mesh node providing a service to other nodes in the mesh may be made over any suitable protocol. In some embodiments of the invention, the advertisements are sent using protocols at networking layer three or above, such as a Universal Plug and Play (UPnP™) Discovery Protocol or a Web Services Discovery (WSD) Protocol. Based on the advertisements it has recently received from other mesh nodes providing services, a mesh node may keep track of the services currently available on the mesh network.
Devices outside the mesh network may also have a need for certain services provided by the mesh network. For example, the computing environment illustrated by
It may also be useful for users of devices outside the mesh network to be made aware of services provided by nodes in the mesh, in some embodiments of the invention, one or more of the mesh nodes may aggregate the advertisements received from other mesh nodes providing services, and convert the aggregated advertisements from the protocol in which they were received to a second protocol, in some embodiments of the invention, the second protocol may be a suitable protocol, such as a layer two networking protocol, in which a mesh node could communicate with a device such as the computing device 121 outside the mesh. The aggregated and converted advertisements may then be transmitted according to the second protocol to computing devices not in the mesh network. A user of a device outside the mesh network, such as the computing device 121, having been made aware of the services provided by the mesh network, may then choose to have the computing device join the mesh network in order to take advantage of any services provided by the mesh.
One of the services that is typically provided in a traditional network is the automatic assigning of a network address to a computing device that is unique on the network, which is often accomplished using the DHCP protocol. While it is also very useful for devices in a mesh network to be automatically assigned a unique network address, the use of the DHCP protocol is not well suited for a mesh network, because DHCP typically requires a dedicated server.
Accordingly, in some embodiments of the invention, a mesh node in a mesh network may be configured to automatically assign a network address to itself. It may compute a network address for itself using any suitable method, and start using that network address to communicate with other mesh nodes. If the mesh node detects that another mesh node is configured to use the same network address, it may then resolve the conflict by computing a different network address, and using that different network address to communicate with other mesh nodes. When a network address assigned to the mesh node does not cause conflicts with any other mesh nodes, in some embodiments of the invention, the mesh node may store the non-conflicting network address in suitable computer storage, such as a non-volatile memory. The mesh node may then re-use the stored network address the next time it needs to determine a unique network address, such as the next time the mesh node is powered on.
The gateway node 200, as illustrated in
The external adapter 202 and the mesh adapter 204 may be any combination of hardware or software. They may be separate physical adapters, or one physical adapter implemented as two separate logical adapters. For example, the gateway node 200 may be loaded with software, that when executed on a processor, allows the same physical hardware to interleave operations for two or more network adapters, creating the appearance of more logical network adapters than may be apparent from the physical hardware. In the embodiment illustrated in
Network packets may be transmitted over external adapter 202 and mesh adapter 214 through one or more network stacks implemented on the gateway node 200. The example illustrated by
The gateway node 200 may also include mesh services 218, which may implement the management and configuration logic for the gateway node. The mesh services 218 may include an address and gateway manager (AGM) 220, a mesh portal manager (MPM) 222, a topology manager (TM) 224, state information 226, address logic 227, a DNS proxy 228, and a DNS cache 230. Mesh services 218 may expose an API 232 to application(s) 234 making use of mesh functionality and to a user interface 236, used for configuring and managing the mesh network.
The AGM 220 may implement the gateway advertisement protocol, generating advertisements, and periodically transmitting them to other mesh nodes. Mesh nodes may identify a node as a gateway node, such as gateway node 200, based on the receipt of a gateway advertisement from that node, and may accordingly select that gateway to direct packets to a computing device on an external network. The advertising functionality ascribed to AGM 220 may not be performed in a mesh node that is not a gateway node.
The AGM 220 may also generate and store state information 226 in a suitable format, such as a routing table, regarding gateway nodes for which it has received advertisements. The state information 226 may also include information about characteristics associated with the path between the current node and each gateway node from which it has received an advertisement.
The AGM 220 may also perform address configuration and duplicate address detection. In the case of a conflict between addresses on the mesh network and the external network, the AGM 220 may generate a notification, which could be used by the user interface 236 and address logic 227 to reconfigure the address.
In some embodiments of the invention, address logic 227 implements the functionality to generate and assign a unique network address for the current node, including resolving an address conflict, should it occur. It may store a known non-conflicting network address in a suitable computer storage medium on the gateway node 220, which could be a portion of the state information 226.
The MPM 222 may determine if the current node may be configured as a gateway node. This determination may be based at least in part on whether the current node has connectivity on two interfaces, such as external adapter 202 and mesh adapter 204. In the embodiment of the invention illustrated by
The TM 224 may be used for diagnostic purposes, and may aid a user in determining why a failure may be occurring on the mesh network. For example, it may provide the functionality to build a topology map of the mesh network and provide that to a user via the user interface 236. In conjunction with the IM driver 206, the TM 224 may also implement a trace route API that may collect information about mesh nodes it traverses, as well as timing information to reach a given destination.
The gateway node 200 may also contain a Domain Name System (DNS) proxy 228 that relays DNS requests sent by mesh nodes to a DNS server on the external network, and thus acts as a DNS resolver for the mesh nodes. For optimization, in some embodiments of the invention, the gateway mode may implement DNS information caching, such as via DNS cache 230. As is known in the art, DNS cache 230 may store the results of recently issued DNS requests in order to avoid having to issue the requests again to a DNS server on an external network. Thus, the DNS cache 230 can significantly improve the perception of connection speed on the mesh. DNS proxy 228 and DNS cache 230 may be implemented in any suitable way, including using known techniques, and any suitable combination of software and computer storage media.
According to some embodiments of the invention, each of gateway nodes 308, 310 and 312 periodically broadcasts advertisements that are distributed to other nodes through the mesh. A mesh node may keep track of the gateway nodes from which it has received advertisements, such as by means of storing that information in a routing table in state information 226, in the example illustrated by
In some embodiments of the invention, when a mesh node receives an advertisement originating from a gateway node, it may forward the advertisement to other mesh nodes, with the addition of one or more associated characteristics. A mesh node may derive a metric by taking into account the additional associated characteristics in the advertisement. Any suitable additional characteristics may be included in the forwarded advertisement, including the number of hops the advertisement has traveled so far since it left the gateway node. In some embodiments of the invention, the metric is also stored with the state information, such as a routing table.
The routing table 350 also contains a metric for each of the three gateways based on characteristics of a path between the mesh node and the gateway node.
In some embodiments of the invention, more than one default gateway node may be selected. This may be appropriate, for example, if the mesh network has gateway nodes connected to two otherwise unconnected external networks. Some mesh nodes, according to some embodiments of the invention may also make use of multiple routing tables, for example, creating a separate routing table for each external network.
In the embodiment illustrated by
If the method is invoked in response to receiving an advertisement from an MPP, the advertisement may be generated and transmitted by the MPP according to any suitable protocol. The protocol may be a known protocol, including ICMP, or it may be a special purpose protocol developed for advertising gateway nodes in a mesh. Some embodiments of the invention may make modifications to a known protocol, such as through the use of option fields in a header of a message sent according to the known protocol.
Regardless of the type of protocol used, based on the received advertisement, the mesh node may identify the node that generated the mesh node as an MPP on the mesh network. In some embodiments of the invention, an MPP may also include in the advertisement additional information, such as a regular time period in which it broadcasts advertisements, a DNS server, or specific routes to reach specific computing devices on an external network to which the MPP is connected. The additional information may be included in the advertisement in any suitable way, including by making use of one or more option fields in the protocol, as described above.
Regardless of any additional information contained within the received advertisement, the mesh node then, at block 404, may check if the MPP is a new MPP. This may be done in any suitable way, including checking to see if the MPP from which it just received an advertisement is present in a routing table, such as routing table 350 illustrated in
After the step at block 406 is performed, or if the mesh node had determined at block 404 that the MPP was not a new MPP, the MPP proceeds to block 408. At block 408, the mesh node may determine if it has not received an advertisement from any known MPP within an expected time interval. It may do this in any suitable way, including by checking all the gateway nodes in its routing table. In some embodiments of the invention, the expected time interval may be a value configured on the mesh node itself as applying to any MPP in the mesh, while in embodiments of the invention in which an MPP includes a time period in the advertisement, the value of the expected time interval may be based on time period included in the advertisement, and therefore, might be particular to that MPP. In embodiments in which the time period might be particular to an MPP, the mesh node may track that time period in a suitable location, such as the routing table.
If the mesh node determines at block 408 that it has not received an advertisement from any MPP(s) within an expected time period, this may be an indication that the stale MPP(s) are no longer active, and may have either left the mesh network, or have become unreachable from the mesh node. The mesh node may then proceed to block 410, in which it may update entries in the routing table for any stale MPP(s). The entries in the routing table may be updated in any suitable way. While the embodiment illustrated by
It is to be appreciated that the functionality ascribed to blocks 408 and 410 does not have to be performed in response to receiving an advertisement from an MPP. For example, In some embodiments of the invention, the functionality ascribed to blocks 408 and 410 may be executed periodically by the mesh node in order to periodically clean up stale entries in the MPP routing table for the mesh node. In addition, in some embodiments of the invention, an MPP may be removed, such as in block 410, from the routing table for other additional or alternative reasons. For example, if a mesh node determines that a network connection to a device outside the mesh network passing through a particular MPP has failed, it may remove that MPP from the routing table, and if appropriate, select a new default MPP.
Regardless of whether any stale MPP(s) were removed from the routing table in block 410, the process proceeds to block 412, in which the MPP may compute a metric for a path between itself and the MPP for which it just received an advertisement, and store the metric in the routing table. The metric may be determined in any suitable way, including being derived based on information obtained from the gateway advertisement and/or calculated based on any suitable characteristics, as discussed in conjunction with
The process may then proceed to block 414. In some embodiments of the invention, mesh nodes may forward any received advertisements originating from a gateway to other mesh nodes. In doing so, a mesh node may include additional characteristics associated with the path between itself and the MPP. Any suitable additional characteristics may be included in the forwarded advertisement, as discussed in conjunction with
At block 416, the process may then select a default MPP. This may be done in any suitable way, including based on information stored in the routing table, such as the computed metrics associated with the path to each MPP.
Once a default MPP is selected, in block 418, the process may then direct network packets to the default MPP when communicating with a computing device on an external network.
Besides gateway nodes, which provide a service of enabling connectivity to an external network, other mesh nodes may also provide services, such as print and data services, that they advertise throughout the mesh network. In addition, it may also be useful for computing devices not on the mesh network but within range of the mesh network to ascertain, without having to connect to the mesh network, whether a service is available over the mesh. However, the protocols used to distribute the advertisements throughout the mesh typically cannot be used for devices not on the mesh network,
The method of
At block 504, the mesh node may then broadcast the received advertisement to other mesh nodes, according to the first protocol, which may be a layer three networking protocol. The method then proceeds to block 506, in which the mesh node aggregates any layer three advertisements it has received, and converts them to a second protocol. The second protocol may be a protocol, such as layer two networking protocol, with which the mesh node is able to communicate with computing devices outside the mesh network. In some embodiments of the invention, the second protocol may be a variant of a wireless Ethernet protocol, such as an 802.11s protocol.
The method proceeds then to block 508, in which the mesh node advertises the services provided in aggregate by the mesh network according to the second protocol, which may be a layer two protocol. The services may be advertised according to the second protocol in any suitable way.
The method of
Regardless of the protocol used, besides broadcasting the available services, the broadcast performed at block 522 may also include a broadcast of the availability of the mesh network itself. Thus, a user of a computing device outside the mesh network may be made aware of the presence of the mesh network, as well as the services provided by the mesh network. The method of
The method of
At block 534, the mesh node may respond according to a layer two protocol to the request of the computing device outside the mesh, in which the response contains advertisements of services provided by the mesh network. The response may be sent according to any suitable networking protocol. While in some embodiments of the invention, the response may be sent according to the same protocol used by the device outside the mesh network to send the request, the response may also be sent according to a different protocol than the request. The method of
Returning to
While mesh nodes may provide numerous services, including gateway services, printing services, or data services, a mesh network may typically not provide a DHCP service. However, it may still be desirable for network addresses to be automatically assigned to nodes in a mesh network. Accordingly,
Otherwise, if it is determined at block 602 that no network address has been stored in the particular location on the mesh node, the process proceeds to block 604, in which it may select a first portion of the network address, such as an IP address prefix. The IP address prefix may correspond to an identifier for a subnet for the mesh network, and shared among other mesh nodes in the mesh network. In some embodiments of the invention, the subnet may be preconfigured for a mesh node, and may be in any suitable range of private network addresses. In some embodiments, the address may have a prefix such as, 169.254.x.x, which is sometimes used for automatically assigned network addresses in other contexts. However, in some embodiments, the assigned addresses have a prefix corresponding to a private address space, such as 10.x.x.x, 172.16.x.x 192.168.x.x, allowing messages to be routed to nodes using NAT operations. The length of the prefix is not a limiting factor of the invention, and may be chosen based on a number of factors, including the number of expected nodes to which the mesh network is likely to grow. For example, if the prefix is of a length of 16 bits, in a 32-bit network address, this allows 216−1 mesh nodes to be uniquely addressed in the mesh network.
The process may then proceed to block 606, in which the process may select a second portion of the network address, such as an IP address suffix. In the embodiment of the invention illustrated by
The process may then proceed to block 608 in which the mesh node may assign to itself the network address obtained based on the selected prefix and the computed suffix, and start sending or receiving network packets with other mesh nodes based on the assigned network address.
The process may then proceed to block 610, in which the mesh node may attempt to detect if the assigned network address conflicts with any other network addresses on the mesh. This may be done in any suitable way, including by using a duplicate address detection (DAD) protocol. DAD may be supported in the networking stack implementation of an operating system loaded on the mesh node, such as the WINDOWS XP® and WINDOWS VISTA® operating systems developed by Microsoft Corporation. DAD may be implemented in any suitable way, including by using a gratuitous Address Resolution Protocol (ARP). As is known in the art, ARP is usually employed for finding a computer's link layer address, such as a MAC address, when only its network layer address, such as an IP address, is known. A gratuitous ARP request is useful in that it is broadcast to all computers on a network. Thus, if a mesh node issues a gratuitous ARP request to all mesh nodes, in which the request contains the mesh node's newly self-assigned IP address as the source address in the request, any mesh node that is assigned the same IP address may detect an address conflict. In addition, nodes in the mesh may issue a reply to the ARP request. Based on the received replies, the mesh node can determine if any of the mesh nodes replying are assigned the same address as the address it just assigned to itself.
Regardless of the method of detecting a duplicate address in the mesh employed in block 610, at block 612, the mesh node may determine whether or not a conflict was detected in block 612. If a conflict was detected with another node on the mesh, the process proceeds to block 614, in which the mesh node may check to see whether it has exceeded a specified amount of time or a specified number of tries in determining a unique network address. The value for the specified amount of time or the specified number of tries may be obtained in any suitable way, including as a configurable setting on the mesh node. If the mesh node has exceeded the specified amount of time or the specified number of tries, the method may then terminate with an error.
Otherwise, the process may proceed to block 616 in which a new network address suffix may be selected. A new network address suffix may be selected in any suitable way. In some embodiments of the invention, the new MAC address suffix may be generated by incrementing the value of the conflicting suffix. In other embodiments, the mesh node may obtain a new suffix value, such as a random number, from a user of the mesh node.
In some embodiments of the invention, the steps performed by block 616 are only performed by a subset of any conflicting nodes on the mesh. For example, if the mesh node detects that its network address conflicts with a second mesh node on the mesh network, only one of the two mesh nodes may perform the steps in block 616. The determination regarding which subset of conflicting nodes may perform the steps of block 616 may be made in any suitable way, including by basing the determination on the value of each node's MAC address. For example, in some embodiments, only the mesh node with a MAC address having a higher numerical value may perform the steps in block 616 to obtain a new network address, while in other embodiments the mesh node having the lower valued MAC address may be the only node to obtain a new network address. Other embodiments may randomly select which subset of conflicting mesh nodes may obtain a new network address, based on any suitable alternative criteria.
Once a new network address suffix is determined in block 616, the process proceeds back to block 608 in which the process will attempt to use the new network address based on the new suffix, and then proceed to block 610 in which the mesh node may detect if the new network address results in any conflicts. If the mesh node determines at block 612 that a new conflict has arisen, the process continues to block 614, as discussed above.
Otherwise, if it is determined at block 612 that the network address does not conflict with any other network addresses on the mesh network, the process may then proceed to block 618, in which the mesh node may store the network address in the particular location in the same data storage medium discussed in conjunction with block 602. The method illustrated by
It is to be appreciated that a subset of the functionality ascribed to the method illustrated by
Having thus described several aspects of at least one embodiment of this invention, it is to be appreciated that various alterations, modifications, and improvements will readily occur to those skilled in the art.
Such alterations, modifications, and improvements are intended to be part of this disclosure, and are intended to be within the spirit and scope of the invention. Accordingly, the foregoing description and drawings are by way of example only.
For example, a gateway node may act as a discovery proxy, such as a DNS proxy or as a WSD discovery proxy, broadcast and/or multicast protocols. In such examples, the gateway node may capture services that are provided outside the mesh network, and may reply to service requests within the mesh. One use of a gateway node acting as a proxy may be to allow address resolution (i.e., discovery) for computers providing services outside the mesh, such as computers providing Network Basic Input/Output System (NetBIOS) services, and to reply to other mesh nodes on behalf of the computer outside the mesh. Such address resolution may be implemented on a gateway, node acting as a proxy in any suitable way, including manual configuration, or automatically discovering services outside the mesh network for which the gateway node may act as a proxy. A method similar to that used to select a default gateway node may also be used to select a gateway node that acts as a proxy for a particular service. In some embodiments, the default gateway node selected for a mesh node may be different than the selection of a default gateway acting as a proxy for a particular service, as the invention is not limited in this respect.
Additionally, in some embodiments, the same protocol used for the advertising of a gateway node throughout the mesh network may also be used by other mesh nodes advertising other types of services. In other embodiments, even if nodes advertising other types of services do not use the same advertisement protocol as a gateway node, aspects of the gateway advertisement protocol or the format of the advertisements discussed in conjunction with gateway nodes may also apply to other service advertisements. For example, each mesh node receiving a service advertisement may obtain characteristics contained within the advertisement to compute a metric associated with a path between itself and the node providing a service, and may use that path to select a node from which it will receive a service. For example, if multiple mesh nodes advertise printing services, a mesh node receiving the advertisements may select a default printing service node, based on characteristics associated with a path from the mesh node to each node providing printing services.
As another example, the service provider nodes may distribute advertisements at periodic intervals, and may include the interval in the service advertisement. Based on whether or not it has received an advertisement in an expected time interval from a node providing a service, a mesh node may be able to track mesh nodes that currently provide services in the mesh network in a dynamic way that takes into account changed conditions in the mesh, such as the departure or arrival of a mesh node.
The above-described embodiments of the present invention can be implemented in any of numerous ways. For example, the embodiments may be implemented using hardware, software or a combination thereof. When implemented in software, the software code can be executed on any suitable processor or collection of processors, whether provided in a single computer or distributed among multiple computers.
Further, it should be appreciated that a computer may be embodied in any of a number of forms, such as a rack-mounted computer, a desktop computer, laptop computer, or a tablet computer. Additionally, a computer may be embedded in a device not generally regarded as a computer but with suitable processing capabilities, including a Personal Digital Assistant (PDA), a smart phone or any other suitable portable or fixed electronic device.
Also, a computer may have one or more input and output devices. These devices can be used, among other things, to present a user interface. Examples of output devices that can be used to provide a user interface include printers or display screens for visual presentation of output and speakers or other sound generating devices for audible presentation of output. Examples of input devices that can be used for a user interface include keyboards, and pointing devices, such as mice, touch pads, and digitizing tablets. As another example, a computer may receive input information through speech recognition or in other audible format.
Such computers may be interconnected by one or more networks in any suitable form, including as a local area network or a wide area network, such as an enterprise network or the Internet. Such networks may be based on any suitable technology and may operate according to any suitable protocol and may include wireless networks, wired networks or fiber optic networks.
Also, the various methods or processes outlined herein may be coded as software that is executable on one or more processors that employ any one of a variety of operating systems or platforms. Additionally, such software may be written using any of a number of suitable programming languages and/or programming or scripting tools, and also may be compiled as executable machine language code or intermediate code that is executed on a framework or virtual machine.
In this respect, the invention may be embodied as a computer readable medium (or multiple computer readable media) (e.g., a computer memory, one or more floppy discs, compact discs, optical discs, magnetic tapes, flash memories, circuit configurations in Field Programmable Gate Arrays or other semiconductor devices, or other tangible computer storage medium) encoded with one or more programs that, when executed on one or more computers or other processors, perform methods that implement the various embodiments of the invention discussed above. The computer readable medium or media can be transportable, such that the program or programs stored thereon can be loaded onto one or more different computers or other processors to implement various aspects of the present invention as discussed above.
The terms “program” or “software” are used herein in a generic sense to refer to any type of computer code or set of computer-executable instructions that can be employed to program a computer or other processor to implement various aspects of the present invention as discussed above. Additionally, it should be appreciated that according to one aspect of this embodiment, one or more computer programs that when executed perform methods of the present invention need not reside on a single computer or processor, but may be distributed in a modular fashion amongst a number of different computers or processors to implement various aspects of the present invention.
Computer-executable instructions may be in many forms, such as program modules, executed by one or more computers or other devices. Generally, program modules include routines, programs, objects, components, data structures, etc, that perform particular tasks or implement particular abstract data types. Typically the functionality of the program modules may be combined or distributed as desired in various embodiments.
Also, data structures may be stored in computer-readable media in any suitable form. For simplicity of illustration, data structures may be shown to have fields that are related through location in the data structure. Such relationships may likewise be achieved by assigning storage for the fields with locations in a computer-readable medium that conveys relationship between the fields. However, any suitable mechanism may be used to establish a relationship between information in fields of a data structure, including through the use of pointers, tags or other mechanisms that establish relationship between data elements.
Various aspects of the present invention may be used alone, in combination, or in a variety of arrangements not specifically discussed in the embodiments described in the foregoing and is therefore not limited in its application to the details and arrangement of components set forth in the foregoing description or illustrated in the drawings. For example, aspects described in one embodiment may be combined in any manner with aspects described in other embodiments.
Also, the invention may be embodied as a method, of which an example has been provided. The acts performed as part of the method may be ordered in any suitable way. Accordingly, embodiments may be constructed in which acts are performed in an order different than illustrated, which may include performing some acts simultaneously, even though shown as sequential acts in illustrative embodiments.
Use of ordinal terms such as “first,” “second,” “third,” etc., in the claims to modify a claim element does not by itself connote any priority, precedence, or order of one claim element over another or the temporal order in which acts of a method are performed, but are used merely as labels to distinguish one claim element having a certain name from another element having a same name (but for use of the ordinal term) to distinguish the claim elements.
Also, the phraseology and terminology used herein is for the purpose of description and should not be regarded as limiting. The use of “including,” “comprising,” or “having,” “containing,” “involving,” and variations thereof herein, is meant to encompass the items listed thereafter and equivalents thereof as well as additional items.
This Application is a Continuation of, and claims benefit from, U.S. patent application Ser. No. 12/392,728 that was filed on Feb. 25, 2009, and that is incorporated herein by reference in its entirety.
Number | Date | Country | |
---|---|---|---|
Parent | 12392728 | Feb 2009 | US |
Child | 14641808 | US |