BLOOM FILTER INDEX FOR DEVICE DISCOVERY
Identifying network devices having specified traits using a multi-level hierarchical data structure. Bloom filters representing traits of network devices are received and their bit vectors are decomposed into successive bytes. For each byte except the last one, memory for storing a pointer to memory on the next level is allocated on the level corresponding to the byte. The pointer storage is labeled by the value of the next byte. A pointer to the allocated memory is stored in the pointer storage on the previous level that was labeled by the value of the current byte. For the last byte, memory for storing references to network devices is allocated on the last level. A pointer to the allocated memory is stored in the pointer storage on the second-to-last level that was labeled by the value of the last byte. A reference to the network device is stored in the allocated memory.
The present invention relates generally to a data structure that may be used in network communications, and more particularly to an index for locating, or discovering, devices connected within a network.
Network discovery is a technique commonly used by gateway servers and network management servers to identify devices in a network with given characteristics, or traits, as a component of monitoring a network. Network devices generally refers to routers and switches, but may also include other networked devices, such as printers.
A Bloom filter is a memory-efficient, probabilistic data structure that supports approximate membership queries. When testing whether an object is a member of a set represented by a Bloom filter, a query may return “definitely not in set” or “may be in set,” with a small probability of false positives. A Bloom filter is typically implemented as a bit array into which a set of values, representing set elements, is hashed. In general, a Bloom filter may be considered when space is at a premium and the effect of false positives can be mitigated. Due to their efficiency, compact representation, and flexibility in allowing a trade-off between memory requirements and false positive probability, Bloom filters are popular in representing diverse sets of data. For example, they are used in databases, distributed systems, web caching, and other network applications, where systems need to share information about what resources they have.
A Bloom filter index organizes a collection of Bloom filters. Searching a Bloom filter index for a target Bloom filter typically involves comparing indexed Bloom filters with the target Bloom filter to find matches. Due to the pattern matching nature of the search, conventional indexes may be ineffective in locating indexed Bloom filters. A standard technique for locating Bloom filters in a collection of Bloom filters is to linearly search a list of Bloom filters. It would be advantageous to have an efficient, faster than linear, mechanism for indexing Bloom filters.
SUMMARYEmbodiments of the present invention disclose a computer-implemented method, computer program product, and system for identifying network devices having specified traits using a multi-level hierarchical data structure. One or more Bloom filters representing network devices, where each Bloom filter has a bit vector with a number b of 8-bit bytes representing traits of a network device, are received. For each Bloom filter, the bit vector is decomposed into b successive bytes, where each successive byte corresponds to a level below level 0 in the data structure. On level 0, memory that includes storage for a pointer to a memory location on level 1 is allocated and the pointer storage is assigned a label that is based on the value of the first byte. For each successive byte, except for the last byte, memory on the level corresponding to the successive byte is allocated. The memory includes storage for a pointer to a memory location on the next level. The pointer storage is assigned a label that is based on the value of the next successive byte. A pointer to the allocated memory is stored in the pointer storage on the previous level that was assigned a label based on the value of the current byte. For the last byte, memory is allocated on the last level of the data structure. The memory includes data storage for storing a reference to the network device. A pointer to the allocated memory is stored in the pointer storage on the second-to-last level that was assigned a label based on the value of the last byte. A reference to the network device is stored in the data storage on the last level of the data structure. A search Bloom filter, having a bit vector of b bytes representing specified traits of a network device, is received. The search Bloom filter's bit vector is decomposed into b successive bytes. Each of the bytes corresponds to a level below level 0 in the data structure. For each byte, memory locations on the level corresponding to the byte, which are referenced by pointers stored on the previous level, whose assigned labels are based on the value of a byte having a 1 bit wherever the current byte has a 1 bit, are identified. For the last byte, references to network devices, stored in the identified memory locations on the last level, are identified. The referenced network devices correspond to the traits specified in the search Bloom filter.
Embodiments of the present invention are directed to network discovery systems that efficiently locate networked devices having specified traits through the use of Bloom filters and Bloom filter indexes.
Network discovery is generally performed by a network discovery tool, which searches a network for devices having specified traits as part of the network management function. For example, the traits might include IP address, manufacturer, device type, system capabilities, OS version, command port, etc. Various protocols, including the IEEE Standard 802.1AB-2009, Link Layer Discovery Protocol (LLDP), and various proprietary protocols, such as the Cisco® Discovery Protocol and Microsoft's® Link Layer Topology Discovery specify how network devices may advertise their identity, capabilities, and neighbors in a computer network. For example, in an LLDP-enabled network, LLDP agents on network devices send information at a fixed interval as an Ethernet frame. Devices maintain the information in a database that can be queried using the Simple Network Management Protocol. The topology of an LLDP-enabled network can be discovered by crawling the devices and querying this database. With current technology, network discovery can be very slow, depending on the size of the network.
Network routers 122 and network switches 124 are computer networking devices that allow one or more computers, such as computing device 110, to be connected to other computers, network devices, or to other networks, in accordance with an embodiment of the invention. Wireless routers 126 connect computing devices and mobile devices (not shown) via Wi-Fi. In various embodiments, other types of devices may also be connected to network 130, such as hubs, modems, scanners, plotters, etc.
Network 130 can be, for example, a local area network (LAN), a wide area network (WAN) such as the Internet, or a combination of the two, and can include wired, wireless, or fiber optic connections. In general, network 130 can be any combination of connections and protocols that will support communications between computing device 110 and network devices 120, 122, 124, and 126, in accordance with embodiments of the present invention.
Computing device 110 represents the computing environment or platform that hosts network discovery tool 112. In various embodiments, computing device 110 may be a laptop computer, netbook computer, personal computer (PC), a desktop computer, or any programmable electronic device capable of hosting network discovery tool 112, described below, and communicating with network devices 120, 122, 124, and 126 via network 130, in accordance with embodiments of the invention. Computing device 110 may include internal and external hardware components, as depicted and described in further detail below with reference to
In an embodiment of the invention, computing device 110 includes network discovery tool 112 and datastore 128. Network discovery tool 112 may further include device information crawler 114, and Bloom filter utilities 116.
Network discovery tool 112 operates generally to crawl network 130 to collect information characterizing network devices, or device traits, for network devices such as devices 120, 122, 124, and 126, create for each device a Bloom filter representing the device via its traits, and store a reference to the device in a Bloom filter index in datastore 128, in accordance with an embodiment of the invention. Network discovery tool 112 may also receive a request to identify devices in the network having certain traits. This request is processed by Bloom filter utilities 116.
Device information crawler 114 periodically scans network 130, based, for example, on a predefined scan interval, and collects device traits from devices on the network, such as network routers 122, network switches 124, wireless routers 126, and printers 120, in accordance with an embodiment of the invention. The device traits collected from each device may include an IP address, manufacturer, device type, device capabilities (e.g., number of ports and port speed), OS version, command port, etc. Device information crawler 114 may employ for this purpose a discovery protocol such as LLDP. Device information crawler 114 may store device information in datastore 128.
Datastore 128 represents a store of device information crawled from network 130 by device information crawler 114. Datastore 128 may also hold a Bloom filter index maintained by Bloom filter utilities 116, as described below. Datastore 128 may reside, for example, on computer readable storage media 908 (
Bloom filter utilities 116 operate generally to receive device traits for network devices from datastore 128 and store references to the network devices in a Bloom filter index in datastore 128, in accordance with an embodiment of the invention. Bloom filter utilities 116 also operate to receive requests to identify network devices having specified traits and identify, to a high degree of probability, network devices having the specified traits, based on information in the Bloom filter index.
In an exemplary embodiment of the invention, network devices are characterized by traits such as device type, number of ports, and port speed. As part of a network management system, Bloom filter utilities 116 may create Bloom filters based on the network device traits crawled from network 130 and stored in datastore 128 by device information crawler 114, and may maintain an index of the network devices in a Bloom filter index for efficient retrieval. In response to receiving a request for a list of network devices that match a specified set of device traits, Bloom filter utilities 116 may generate a target Bloom filter from these device traits and may search the Bloom filter index to identify network devices that match the target Bloom filter.
Bloom filter utilities 116 creates a Bloom filter for each network device, based on a predetermined set of device characteristics. For example, if each network device is characterized by the device traits device type, number of ports, and port speed, network switch 124 might be characterized by the device trait set (switch, 48, 1000 Mbs). Elements in the device trait set representing a network device may be, for example, for example, alphabetic, numeric, or alphanumeric strings, or Boolean values, such as 0/1 or Yes/No, indicating the presence or absence of a device trait in the set of device traits.
A Bloom filter for a set of n elements, e.g., the three example device traits described above, uses an array, or bit vector, of m bits, and a collection of k hash functions, for a concise representation. The choice of m and k will depend on the number of traits and an acceptable false positive probability, as described below. The size of a Bloom filter is the length m of its bit vector. The k hash functions independently map each of the elements of the set of device traits to positions in the bit array, for example, 1, . . . , m. Initially, a Bloom filter has all m bits set to 0. To add an element of the set to the Bloom filter, each of the k hash functions maps the element to some array position, and the bit in that position is set to 1. After each of the k hash functions has mapped each of the n elements, or traits, to one of the m bit positions in the Bloom filter array representing the traits of the network device, to check whether the mapped device has a particular device trait, the k hash functions are applied to the trait. If any of the resulting k positions in the device's Bloom filter array contain a 0, the trait is definitely not present. If all k positions contain a 1, the network device might have the trait, i.e., the 1 might represent a true positive or a false positive. A false positive may occur if all bits related to a given trait have been set to 1 by other traits. There is a trade-off between the size of a Bloom filter and the probability of false positives returned by it. The probability of false positives can be lowered by increasing the size of the Bloom filters used.
A Bloom filter is characterized by the number of elements n in the set it represents, the number k of hash functions used, the length m of its bit vector, and the probability p of false positives. The relationship between these properties is closely approximated by equation (1):
From this equation it is possible to construct a Bloom filter with desired properties, for example, by adjusting m and k to give an acceptable probability p of false positives. For example, equation (1) implies that a Bloom filter representing a network device characterized by a set of n=3 traits, with a false positive probability of around 1 in 100,000, may be constructed using a bit vector with m=72 bits and k=17 hash functions. A Bloom filter corresponding to a network device is created by applying each of the 17 hash functions to the three device traits and setting the appropriate bits in the Bloom filter's bit vector to 1. All Bloom filters representing the network devices will have the same size and share the same set of hash functions.
As described above, each network device is mapped by Bloom filter utilities 116 to a Bloom filter. However, it is possible that more than one network device can be mapped to the same Bloom filter. This may occur, for example, if two network devices are characterized by the same set of device traits.
In embodiments of the present invention, Bloom filter utilities 116 maintains a Bloom filter index for use in network discovery in the form of a B-tree. A B-tree is a multiway tree data structure, having a root, interior nodes, and leaf nodes, that organizes data and generally allows searches, sequential access, insertions, and deletions in logarithmic time. In the B-tree Bloom filter index, a Bloom filter representing the device traits of an individual network device determines a unique path in the tree, terminating in a leaf node, where a reference to the device is stored. Each leaf node corresponds to a unique Bloom filter representing one or more indexed network devices.
In various embodiments, a B-tree may be implemented in memory as a collection of linked lists of non-leaf nodes 200 and leaf nodes 210. The root node on hierarchical level 0 is a non-leaf node 200 that links via its child node pointers field 230 to a set of child nodes on hierarchical level 1, which may also be non-leaf nodes 200. Each non-leaf node may link to further non-leaf nodes 200, or it may link to a set of leaf nodes 210. All of the leaf nodes 210 are on the same hierarchical level in the B-tree; that is, the number of links that need to be followed starting from the root is the same for all leaf nodes 210.
In various embodiments of the invention, child node pointer field 230 is in contiguous memory and child nodes referenced in the list are accessed by applying an offset, derived from the key field 220 or 250 of a child node, to a base address.
In various embodiments of the invention, memory for the B-tree is allocated prior to inserting any Bloom filters. For example, if each non-leaf node 200 may have 256 child nodes, then a non-leaf node 200 for the root, with space for 256 child node pointers and 256 corresponding non-leaf child nodes, may be pre-allocated. This process is repeated for each of the non-leaf nodes 200 on subsequent hierarchical levels. For each non-leaf node on the next-to-last hierarchical level, 256 pointers to leaf nodes 210 are allocated and the 256 corresponding leaf nodes are allocated. As Bloom filters are inserted in the B-tree, key fields 220 and 250, child node pointers fields 230, and child node indicators fields 240 in the pre-allocated non-leaf nodes 200 and leaf nodes 210 are updated, and references to network devices are added to the pre-allocated leaf nodes 210.
In other embodiments, memory for nodes is allocated only when needed in inserting Bloom filters in the B-tree. In this case, if child node indicators field 240 indicates that a particular node has already been allocated, based on a previously processed Bloom filter, then it is not allocated again.
In an illustrative example, Bloom filters representing network devices are inserted into a Bloom filter index implemented as a B-tree by deconstructing their bit vectors into successive 4-bit nibbles and using nibble sequences as keys in the B-tree. In various embodiments of the invention, 4-bit nibbles, 8-bit bytes, or other-sized portions of a bit vector may be used for the keys, as will be appreciated by those skilled in the art.
For example,
Referring again to
Unlike an index into an array, a single Bloom filter target may correspond to multiple candidates, including all Bloom filters with a 1 in each bit position where the target Bloom filter has a 1. For example, a Bloom filter representing a specific set of network device traits may correspond to a multitude of Bloom filters representing network devices that have these, and possibly other, traits. When performing a search in a Bloom filter index, a bit that is 1 in the target Bloom filter array may match a candidate Bloom filters that has a 1 in the same bit position, but each bit that is 0 in the target array may match a candidate with a 0 or a 1 in that position. For example, if matches for the bit pattern “10” are sought, then the first bit, 1, will match other 1 bits. However, the second bit, 0, will match both a 1 and a 0, and so leads to two possible matches, “11” and “10”. This phenomenon is called solution space expansion. The 0's in a Bloom filter's bit vector determine how much of the key space, the set of all 2m possible bit patterns for a bit vector of length m, a Bloom filter covers, i.e., the maximum number of possible candidates. This number can be estimated as follows. The number h of bits in a Bloom filter array that are 1 is called its Hamming value. The number c of 0's, which determines the solution space expansion, is given by c=m−h, where m is the number of bits in the Bloom filter array and h is its Hamming value. Thus, for any given Bloom filter, the maximum percentage of the key space that must be searched for a match is 2c/2m. Allowing for solution space expansion distinguishes the present invention from current methods of indexing Bloom filters and, as described below, may provide a basis for deciding whether to search a Bloom filter index for a given Bloom filter or to simply perform a linear search.
Table 1 represents an aid in searching Bloom filter indexes implemented as B-trees, such as those depicted in
In an exemplary embodiment of the invention, a Bloom filter index based on bytes, rather than nibbles, is used for network discovery. The Bloom filter index is implemented as a B-tree, incorporating Bloom filters of size b bytes, representing network devices. A B-tree with a node size of 256, one for each possible value of a byte (0 to 255), is constructed. The B-tree has a depth of b, one for each byte in a Bloom filter array. For example, if Bloom filters with bit vectors of length 72 are used, then b=9 bytes. Each device of N devices is inserted into the B-tree by constructing a Bloom filter corresponding to the values of the traits it possesses. For example, a device may be characterized by three traits. The Bloom filter's bit vector is decomposed into successive bytes, and the individual bytes are used to generate keys for the B-tree, as described above for nibbles. Using the first byte of the Bloom filter's bit vector, a corresponding bit in the root's flag is set to 1, indicating the presence of a child node corresponding to the value of the first byte; then the second byte identifies a node on the next hierarchical level of the B-tree, where a corresponding bit in the node's flag is set to 1; and so on, until the leaf node on the ninth level is reached. That leaf contains a list of references to network devices, to which the device being inserted is added.
In order to search the byte-based Bloom filter index for devices with specified traits, a target Bloom filter based on the desired traits is constructed and a method analogous to that described above with reference to
It will be appreciated by persons skilled in the art that embodiments described herein generalize to network devices exhibiting more or fewer than three traits, Bloom filters of sizes other than 72, and B-trees indexed by portions of a Bloom filter bit vector other than bytes or nibbles, as presented herein. Moreover, alternative methods of indicating the presence of particular child nodes in the B-tree may be employed.
Due to solution space expansion, the searching method described above may yield multiple answers and may incur additional overhead as compared to the standard log256 N complexity for a standard B-tree search, for a B-tree with node size 256 with N elements. In some cases, searching the B-tree for a target Bloom filter will be less efficient than simply scanning a list of all the devices and performing the standard Bloom filter test on each device. In an embodiment of the invention, which search to use may be determined by applying an efficiency test before performing the B-tree search. The efficiency test may be based on solution space expansion, as described above. For example, suppose that the target Bloom filter has a Hamming value of h, the size of a Bloom filter is 72 bits, and the number of devices is N. If the inequality
h>72−log2(N/log256N) (2)
is true, then a B-tree search is performed. If (2) is false, then a linear search in the list of devices is done.
A more general efficiency test that may be employed to decide whether to perform a B-tree search is the inequality
h>m−log2(N/logkN) (3)
where h and N are as before, m is the number of bits in a Bloom filter array, and k is the maximum node size. If (3) is true, then a search in the Bloom filter index is performed. If (3) is false, then a linear search in the list of devices is done.
The strategy outlined above is based on the observation that when (3) is true, then, based on the maximal number of paths that may need to be searched, the B-tree search method is faster; otherwise, the linear search is faster. Overall, this strategy yields an improvement over linear search, as it will locate some devices faster than a linear search would. It is also an improvement over standard B-tree Bloom filter searches, as it does not perform the B-tree style search when the performance of that search would be inferior to that of a linear search.
Other efficiency tests are possible, for example, based on the expected number of nodes that may need to be searched rather than the maximal number of nodes.
Computing device 110 may include one or more processors 902, one or more computer-readable RAMs 904, one or more computer-readable ROMs 906, one or more computer readable storage media 908, device drivers 912, read/write drive or interface 914, network adapter or interface 916, all interconnected over a communications fabric 918. Communications fabric 918 may be implemented with any architecture designed for passing data and/or control information between processors (such as microprocessors, communications and network processors, etc.), system memory, peripheral devices, and any other hardware components within a system.
One or more operating systems 910, and one or more application programs 928, for example, network discovery tool 112 (
Computing device 110 may also include a R/W drive or interface 914 to read from and write to one or more portable computer readable storage media 926. Application programs 928 on client computing devices and/or computing device 110 may be stored on one or more of the portable computer readable storage media 926, read via the respective R/W drive or interface 914 and loaded into the respective computer readable storage media 908.
Computing device 110 may also include a network adapter or interface 916, such as a TCP/IP adapter card or wireless communication adapter (such as a 4G wireless communication adapter using OFDMA technology). Application programs 928 on computing device 110 may be downloaded to the computing device from an external computer or external storage device via a network (for example, the Internet, a local area network or other wide area network or wireless network) and network adapter or interface 916. From the network adapter or interface 916, the programs may be loaded onto computer readable storage media 908. The network may comprise copper wires, optical fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers.
Computing device 110 may also include a display screen 920, a keyboard or keypad 922, and a computer mouse or touchpad 924. Device drivers 912 interface to display screen 920 for imaging, to keyboard or keypad 922, to computer mouse or touchpad 924, and/or to display screen 920 for pressure sensing of alphanumeric character entry and user selections. The device drivers 912, R/W drive or interface 914 and network adapter or interface 916 may comprise hardware and software (stored on computer readable storage media 908 and/or ROM 906).
The present invention may be a system, a method, and/or a computer program product. The computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention.
The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network. The network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.
Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++ or the like, and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present invention.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.
These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions.
The programs described herein are identified based upon the application for which they are implemented in a specific embodiment of the invention. However, it should be appreciated that any particular program nomenclature herein is used merely for convenience, and thus the invention should not be limited to use solely in any specific application identified and/or implied by such nomenclature.
Based on the foregoing, a computer system, method, and computer program product have been disclosed. However, numerous modifications and substitutions can be made without deviating from the scope of the present invention. Therefore, the present invention has been disclosed by way of example and not limitation.
It is understood in advance that although this disclosure includes a detailed description on cloud computing, implementation of the teachings recited herein are not limited to a cloud computing environment. Rather, embodiments of the present invention are capable of being implemented in conjunction with any other type of computing environment now known or later developed.
Cloud computing is a model of service delivery for enabling convenient, on-demand network access to a shared pool of configurable computing resources (e.g. networks, network bandwidth, servers, processing, memory, storage, applications, virtual machines, and services) that can be rapidly provisioned and released with minimal management effort or interaction with a provider of the service. This cloud model may include at least five characteristics, at least three service models, and at least four deployment models.
Characteristics are as follows:
On-demand self-service: a cloud consumer can unilaterally provision computing capabilities, such as server time and network storage, as needed automatically without requiring human interaction with the service's provider.
Broad network access: capabilities are available over a network and accessed through standard mechanisms that promote use by heterogeneous thin or thick client platforms (e.g., mobile phones, laptops, and PDAs).
Resource pooling: the provider's computing resources are pooled to serve multiple consumers using a multi-tenant model, with different physical and virtual resources dynamically assigned and reassigned according to demand. There is a sense of location independence in that the consumer generally has no control or knowledge over the exact location of the provided resources but may be able to specify location at a higher level of abstraction (e.g., country, state, or datacenter).
Rapid elasticity: capabilities can be rapidly and elastically provisioned, in some cases automatically, to quickly scale out and rapidly released to quickly scale in. To the consumer, the capabilities available for provisioning often appear to be unlimited and can be purchased in any quantity at any time.
Measured service: cloud systems automatically control and optimize resource use by leveraging a metering capability at some level of abstraction appropriate to the type of service (e.g., storage, processing, bandwidth, and active user accounts). Resource usage can be monitored, controlled, and reported providing transparency for both the provider and consumer of the utilized service.
Service Models are as follows:
Software as a Service (SaaS): the capability provided to the consumer is to use the provider's applications running on a cloud infrastructure. The applications are accessible from various client devices through a thin client interface such as a web browser (e.g., web-based e-mail). The consumer does not manage or control the underlying cloud infrastructure including network, servers, operating systems, storage, or even individual application capabilities, with the possible exception of limited user-specific application configuration settings.
Platform as a Service (PaaS): the capability provided to the consumer is to deploy onto the cloud infrastructure consumer-created or acquired applications created using programming languages and tools supported by the provider. The consumer does not manage or control the underlying cloud infrastructure including networks, servers, operating systems, or storage, but has control over the deployed applications and possibly application hosting environment configurations.
Infrastructure as a Service (IaaS): the capability provided to the consumer is to provision processing, storage, networks, and other fundamental computing resources where the consumer is able to deploy and run arbitrary software, which can include operating systems and applications. The consumer does not manage or control the underlying cloud infrastructure but has control over operating systems, storage, deployed applications, and possibly limited control of select networking components (e.g., host firewalls).
Deployment Models are as follows:
Private cloud: the cloud infrastructure is operated solely for an organization. It may be managed by the organization or a third party and may exist on-premises or off-premises.
Community cloud: the cloud infrastructure is shared by several organizations and supports a specific community that has shared concerns (e.g., mission, security requirements, policy, and compliance considerations). It may be managed by the organizations or a third party and may exist on-premises or off-premises.
Public cloud: the cloud infrastructure is made available to the general public or a large industry group and is owned by an organization selling cloud services.
Hybrid cloud: the cloud infrastructure is a composition of two or more clouds (private, community, or public) that remain unique entities but are bound together by standardized or proprietary technology that enables data and application portability (e.g., cloud bursting for load-balancing between clouds).
A cloud computing environment is service oriented with a focus on statelessness, low coupling, modularity, and semantic interoperability. At the heart of cloud computing is an infrastructure comprising a network of interconnected nodes.
Referring now to
Referring now to
Hardware and software layer 60 includes hardware and software components. Examples of hardware components include: mainframes 61; RISC (Reduced Instruction Set Computer) architecture based servers 62; servers 63; blade servers 64; storage devices 65; and networks and networking components 66. In some embodiments, software components include network application server software 67 and database software 68.
Virtualization layer 70 provides an abstraction layer from which the following examples of virtual entities may be provided: virtual servers 71; virtual storage 72; virtual networks 73, including virtual private networks; virtual applications and operating systems 74; and virtual clients 75.
In one example, management layer 80 may provide the functions described below. Resource provisioning 81 provides dynamic procurement of computing resources and other resources that are utilized to perform tasks within the cloud computing environment. Metering and Pricing 82 provide cost tracking as resources are utilized within the cloud computing environment, and billing or invoicing for consumption of these resources. In one example, these resources may comprise application software licenses. Security provides identity verification for cloud consumers and tasks, as well as protection for data and other resources. User portal 83 provides access to the cloud computing environment for consumers and system administrators. Service level management 84 provides cloud computing resource allocation and management such that required service levels are met. Service Level Agreement (SLA) planning and fulfillment 85 provide pre-arrangement for, and procurement of, cloud computing resources for which a future requirement is anticipated in accordance with an SLA.
Workloads layer 90 provides examples of functionality for which the cloud computing environment may be utilized. Examples of workloads and functions which may be provided from this layer include: mapping and navigation 91; software development and lifecycle management 92; virtual classroom education delivery 93; data analytics processing 94; transaction processing 95; and network discovery tool 96.
The foregoing description of various embodiments of the present invention has been presented for purposes of illustration and description. It is not intended to be exhaustive nor to limit the invention to the precise form disclosed. Many modifications and variations are possible. Such modification and variations that may be apparent to a person skilled in the art of the invention are intended to be included within the scope of the invention as defined by the accompanying claims.
Claims
1. A computer system for identifying network devices having specified traits using a multi-level hierarchical data structure, the computer system comprising:
- one or more computer hardware processors, one or more non-transitory computer-readable storage media, and program instructions stored on one or more of the non-transitory computer-readable storage media for execution by one or more of the computer hardware processors, wherein the program instructions comprise program instructions for:
- receiving a plurality of Bloom filters representing a plurality of corresponding network devices, wherein each Bloom filter includes a bit vector with a number b of 8-bit bytes, the bit vector representing a plurality of traits of the corresponding network device;
- for each received Bloom filter: decomposing the bit vector into b successive bytes, wherein each successive byte corresponds to a successive level of a hierarchical data structure below level 0; allocating memory on level 0 of the hierarchical data structure, the memory including a pointer storage for storing a pointer to a memory location on level 1 of the hierarchical data structure, unless such memory is already allocated based on a previously processed Bloom filter; assigning a label to the pointer storage, based on a value of the first byte; for each successive byte, except for the last byte: allocating memory on the level corresponding to the successive byte, the memory including a pointer storage for storing a pointer to a memory location on the next successive level, unless such memory is already allocated based on a previously processed Bloom filter; assigning a label to the pointer storage, based on a value of the next successive byte; storing, in the pointer storage on the previous level that was assigned a label based on the value of the successive byte, a pointer to the allocated memory, unless such a pointer has already been stored based on a previously processed Bloom filter; and for the last byte: allocating memory on the last level of the hierarchical data structure, the memory including a data storage for storing a reference to the network device, unless such memory is already allocated based on a previously processed Bloom filter; storing, in the pointer storage on the second-to-last level that was assigned a label based on the value of the last byte, a pointer to the allocated memory, unless such a pointer has already been stored based on a previously processed Bloom filter; and storing a reference to the network device in the data storage on the last level of the hierarchical data structure;
- receiving a search Bloom filter, wherein the search Bloom filter includes a bit vector with b bytes, the bit vector representing specified traits of a network device;
- decomposing the search Bloom filter's bit vector into b successive bytes, wherein each successive byte corresponds to a successive level of a hierarchical data structure below level 0; and
- identifying references to network devices stored in the hierarchical data structure and related to the search Bloom filter by:
- for each successive byte: identifying any memory locations on the level corresponding to the successive byte, that are referenced by pointers stored on the previous level, whose assigned labels are based on the value of a byte having a 1 bit wherever the successive byte has a 1 bit; and
- for the last byte: identifying references to network devices data stored in the identified memory locations on the last level of the hierarchical data structure, wherein network devices that are referenced correspond to the traits specified in the search Bloom filter.
Type: Application
Filed: Sep 29, 2016
Publication Date: Apr 27, 2017
Inventors: Patrick J. McKenna (Galway), David P. O'Connor (Galway), Claude N. Warren, JR. (Galway)
Application Number: 15/279,881