The (Internet Protocol version 6) IPv6 packet header contains an 8-bit value for the hop limit for the packet. Each router reduces this hop limit by one, and the packet is finally discarded when the hop limit becomes 0. It is the responsibility of the host transmitting an IPv6 packet to set a hop limit for every IPv6 packet is transmitted.
The hop limit can be set in two ways: (i) by a system administrator for the host, or (ii) from the current hop limit of the interface via which this packet is to be transmitted. The current hop limit of the interface is maintained and updated from information in “Router Advertisement” messages. A “Router Advertisement” message is generated in response to a “Router Solicitation” message from the host, or when there if is an update in the network topology. The latter case is very common when an IPv6 address is configured in “Auto-configuration” or “DHCPv6” modes. However, if a router goes down, a flood of “Router Advertisement” messages can be generated in the network, causing frequent update of the current hop limit of an interface. It is therefore very important to set the 8-bit hop limit value for each and every packet in a fast and efficient way that can sustain a packet rate of millions of packets a second, and can scale to thousands of Transmission Control Protocol (TCP) connections that a host may need to handle.
A previous approach to the problem is to look up the “current hop limit” from the interface in the routing table. However, this doesn't scale for performance, because an expensive routing table lookup is required for transmission of each and every packet. Another approach is to have a cache for the routing table of every TCP flow on a per CPU basis (also known as flow table in literature). A routing table lookup can be performed against the flow table. The flow table can be invalidated periodically to avoid being stale. Though this approach is suitable for finding a route, it is not reliable for looking up “current hop count”. This is because if a stale current hop count value is set from the cache, it may lead to a packet getting dropped by a router.
In order to facilitate efficient and scalable lookup of current hop limits of transmitted packets, some embodiments embed hop limit values along with other connection parameters in a connection data structure. To transmit a packet for a particular connection, a communications device retrieves the data structure for the particular connection and applies the hop limit value embedded in the data structure to the packet for transmission. To keep track of the hop limits being embedded in different data structures of different connections, some embodiments use a binary search in which each node of the search tree correspond to a different connection. Some embodiments maintain one such search tree per communications interface.
In order to keep track of the copies of the hop limit value that are cached in the different connection data structures, some embodiments use a binary search in which each node of the search tree correspond to a different connection. In some embodiments, each communications interface has its own corresponding search tree for keeping track of the cached copies of the interface's own hop limit value. The use of the search tree allows any cached copy of the hop limit value to be located in a number of traversal steps that is in the order of log(n), n being the number of nodes in the search tree (i.e., the number of connections established on the interface). In some embodiments, the search tree is a binary search tree such as an Adelson-Velskii and Landis (AVL) search tree.
In some embodiments, the search trees for locating cached hop limit values are dynamically maintained and updated. When a new connection is established across a particular interface, some embodiments add a node for the newly established connection to the search tree of the particular interface. When a connection terminates, some embodiments removes a corresponding node from the search tree. When a search tree becomes unbalanced, some embodiments optimize the search tree in order to ensure that all nodes can be reached from a top node in the order of log (n) traversal steps.
The preceding Summary is intended to serve as a brief introduction to some embodiments of the invention. It is not meant to be an introduction or overview of all inventive subject matter disclosed in this document. The Detailed Description that follows and the Drawings that are referred to in the Detailed Description will further describe the embodiments described in the Summary as well as other embodiments. Accordingly, to understand all the embodiments described by this document, a full review of the Summary, Detailed Description and the Drawings is needed. Moreover, the claimed subject matters are not to be limited by the illustrative details in the Summary, Detailed Description and the Drawings, but rather are to be defined by the appended claims, because the claimed subject matters can be embodied in other specific forms without departing from the spirit of the subject matters.
The novel features of the invention are set forth in the appended claims. However, for purpose of explanation, several embodiments of the invention are set forth in the following figures.
a illustrates the removal of a node from a hop limit search tree when a corresponding connection terminates.
b illustrates the insertion of a node into a hop limit search tree when the communications device establishes a new connection over an interface.
a conceptually illustrates a process for adding a node to a hop limit search tree.
b conceptually illustrates a process for removing a connection from a hop limit search tree.
a illustrates the updating of hop limit value of all connections established over an interface by using a search tree of the interface.
b illustrates an operation that modifies the hop limit value of a particular connection.
In the following description, numerous details are set forth for the purpose of explanation. However, one of ordinary skill in the art will realize that the invention may be practiced without the use of these specific details. In other instances, well-known structures and devices are shown in block diagram form in order not to obscure the description of the invention with unnecessary detail.
In order to facilitate efficient and scalable lookup of current hop limits of transmitted packets, some embodiments embed hop limit values along with other connection parameters in a connection data structure. To transmit a packet for a particular connection, a communications device retrieves the data structure for the particular connection and applies the hop limit value embedded in the data structure to the packet for transmission. To keep track of the hop limits being embedded in different data structures of different connections, some embodiments use a binary search in which each node of the search tree correspond to a different connection. Some embodiments maintain one such search tree per communications interface.
Several more detailed embodiments of the invention are described below. Section I further describes hop limit values that are embedded in data structures of connection parameters. Section II describes using search tree for managing the embedded hop limit values. Section III describes an example communications device that implements some embodiments of the invention. Finally, section IV describes an electronic system with which some embodiments of the invention are implemented.
I. Cached Hop Limits in Connection Parameters
As mentioned, current hop limit or hop limit value is a required field in the IP header of a packet in a TCP connection. However, a current hop limit is a value that is specified for each communications interface, not for each connection. Rather than having to look up the current hop limit value of the communications interface for each packet being transmitted, some embodiments embed the current hop limit value of a communications interface to the data structure of every connection established on that communications interface. Such interface specific values that are embedded with other connection parameters in data structures of the connections can be considered as being cached.
In some embodiments, the communications device 100 is a mobile device that is wirelessly connected to the communications medium 190. In some embodiments, the communications device 100 is a network node that has a NIC to allow it to connect to the communications medium. In some embodiments, the communications device 100 is a host machine in a virtualized network environment. In some of these embodiments, the communications medium 190 is supporting one or more logical networks, while the communications device 100 is hosting one or more virtual machines that operate in those logical networks.
As illustrated, the communications device 100 stores data structures associated with different TCP connections, including a data structure 131 for connection A and a data structure 141 for connection U. The data structures 131 and 141 specify parameters for connections A and U, respectively. In some embodiments, these are data that are necessary for maintaining stateful connections with remote communications devices as well as for specifying headers of packets. In some embodiments, when transmitting a packet of a particular connection, the communications device retrieves the connection data structure for that particular connection, so any values or parameters that are included as part of the connection data structure will always be available in the context of the packet to be transmitted.
The communications mediums 190 include one or more types of physical communications mediums and support one or more networks. Such physical mediums can include wired mediums such as Ethernet or wireless mediums such as WiFi or Bluetooth. In some embodiments, each communications node linked by the communications mediums 190 includes one or more communications interfaces to the communications mediums. As illustrated, the communications device 100 includes communications interfaces 111 (I/F 1) and 112 (I/F 2) for interfacing with the communications mediums 190. In some embodiments, each communications interface includes a PHY (L1 physical layer interfaces) for sending and receiving signals from the communications mediums by using a particular communications standard or technology, such as Gigabit Ethernet, 10 Gigabit Ethernet, or WiFi.
In some embodiments, some communications nodes are network nodes in data center that are interlinked by infrastructures or backbones provided by the data center. In some embodiments, some of the communications nodes are network switches, routers, gateways, hubs, or repeaters. In some embodiments, the topology of the supported networks can change dynamically, as some of the communications nodes are mobile devices. Some of the communications node can be dynamically reconfigured to change the topology of the supported networks. According to the topology of the communications mediums 190 as illustrated in
The number of hops that each packet is allowed to have is limited by the hop limit value specified in each packet. In this example, the hop limit for the packet 121 is 4, and the hop limit for packet 122 is 3. The communications nodes along the hop path of a packet decrement the hop limit value in the packet's header until the packet has reached destination or until the hop limit value has reached zero and the packet discarded. As illustrated, the packet 121 is unable to reach its destination node 101 within its specified hop limit of 4 (because the hop limit value reached zero at the communications node 107), while the packet 122 is able to reach its node 102 within its specified hop limit of 3 (before the hop limit value reached zero).
In some embodiments, the hop limit of a packet is specified in the header of the packet. In this example, the packets 121 and 122 have MAC (media access control), IP (internet protocol), and TCP headers, and the IP header of each packet specifies the hop limit of the packet. The device 100 inserts the hop limit values of the packets 121 and 122 into each header's IP header. As illustrated, hop limit values for the device 100 are embedded in the connection data structures such as 131 and 141. Consequently, the hop limit value of a connection becomes available for insertion into IP header as soon as the communications device retrieves the connection data structure for that connection.
The process starts when it receives (at 210) data for transmission on a particular connection. The process then identifies (at 220) the particular connection that the data is for and retrieves (at 230) the parameters for the identified connection. In some embodiments, this entails retrieving the data structure storing the parameters for the particular connection. As mentioned, such a data structure includes a hop limit value.
Next, the process composes (240) or assembles the packet header based on the retrieved connection parameters. Since the hop limit value is among the retrieved connection parameters, the process is able to insert the hop limit value into the packet. The process 200 then transmits (at 250) the composed packet and ends.
As mentioned, in some embodiments, packet hop limit values are specified for each communications interface. The packet hop limit of an interface is applicable to all packets transmitted through the interface, and consequently applicable to all connections that are established through the interface. However, since the hop limit value of the interface is already embedded within the connection data structures of all of those connections (i.e., each connection data structure has a cached copy of the hop limit), the transmitting communications device need not perform an additional look up for the interface's hop limit value. This is a saving in computation time that is realized over every packet transmitted on that interface. Consequently, the transmitting communications device is able to greatly improve its performance when having to transmit millions of packets each second.
II. Using Search Tree for Managing Cached Hop Limits
In some embodiments, many different TCP connections can be established on a same communications interface simultaneously, and each of these TCP connections has its own corresponding data structure for holding connection parameters. Since each of these connection data structures has a cached copy of the hop limit, it is important to make sure that those cached copies of the hop limit value are up to date. This is especially important for communications devices in networks that frequently change topology and thus requiring frequent update of current hop limit values.
In order to keep track of the copies of the hop limit value that are cached in the different connection data structures, some embodiments use a binary search in which each node of the search tree correspond to a different connection. In some embodiments, each communications interface has its own corresponding search tree for keeping track of the cached copies of the interface's own hop limit value. The use of the search tree allows any cached copy of the hop limit value to be located in a number of traversal steps that is in the order of log(n), n being the number of nodes in the search tree (i.e., the number of connections established on the interface). In some embodiments, the search tree is a binary search tree such as an Adelson-Velskii and Landis (AVL) search tree.
The transmit module 310 is responsible for assembling packets and then deliver the assembled packets to be transmitted by one of the interfaces (or PHYs) 111 and 112. The transmit module 310 assembles headers and payloads of packets. In some embodiments, packets are assembled according to requirements of network stack as the transmit module 310 handles the protocols for different layers of network communications.
In order to assemble packet to be transmitted over an interface for a particular connection, the packet assembler of the interface retrieves a corresponding connection data structure from the storage module 330. For example, to assemble the header for a packet for connection C through the interface 111, the packet assembler 341 retrieves the data structure 133 from the storage 330, and the hop limit cached within the data structure 133 then is inserted into the packet header. Likewise, to assemble the header for a packet for connection V through the interface 112, the packet assembler 342 retrieves the data structure 142 from the storage 330, and the hop limit cached within the data structure 142 then is inserted into the packet header. The retrieval of cached hop limit values for insertion into transmitted data packet is described by reference to the process 200 in
The search tree management module 320 manages search trees 321 and 322. The search tree 321 is managing the copies of the hop limit value of the interface 111 that are cached within the data structures 131-135. The search tree 322 is managing the copies of the hop limit value of the interface 112 that are cached within the data structures 141-146. As mentioned, connections A, B, C, D, and E are established over the interface 111. Correspondingly, the search tree 321 has nodes 371-375 that correspond to the connections A, B, C, D, and E. Likewise, connections U, V, W, X, Y, and Z are established over the interface 112. Correspondingly, the search tree 322 has nodes 381-386 that correspond to the connections U, V, W, X, Y, and Z. In some embodiments, each node in the search tree stores a pointer that points to a storage location in a corresponding connection data structure. The content of a search tree node will be further described below by reference to
The search trees 321 and 322 are AVL binary search trees. The search tree management module 320 performs AVL tree operations such as tree traversal, node insertion, node deletion, and tree rotation/optimization. The principles of AVL binary search trees are well known in the art. In the example of
The hop limit update module 340 is responsible for propagating any changes in hop limit for an interface to all cached copies of the hop limit. As illustrated, the hop limit update module 340 uses the search trees 321 and 322 to locate and update the cached copies of the hop limits in the data structures 131-135 and 141-146. The updating of cached hop limit values will be described further by reference to
Once the hop limit update module 340 has located a node in the search tree, it is able to access the cached hop limit value pointed to by the content of the node.
As mentioned, each node of a search tree corresponds to a connection (e.g., TCP) established over the communications interface associated with the search tree. In order to map a connection to a node in a search tree, some embodiments convert the identifying information of a connection into an index, and the index is in turn used to locate a node in the search tree for the connection. In some embodiments, the five-tuple (source address, source port, destination address, destination port, protocol type) of a TCP connection is used as the identifier of the TCP connection. Some embodiments apply a hashing function to the connection's identifier in order to produce the search tree node index (or look up index) for the connection.
As mentioned above, in some embodiments, the search trees 321 and 322 are AVL binary search trees, and that each node has at most two child nodes and each node is associated with an index value. The right child node is a node that has an index value that is greater than that of the parent node, while the left child node is a node that has an index value that is less than that of the parent node.
In the example of
In some embodiments, the search trees for locating cached hop limit values are dynamically maintained and updated. When a new connection is established across a particular interface, some embodiments add a node for the newly established connection to the search tree of the particular interface. When a connection terminates, some embodiments removes a corresponding node from the search tree. When a search tree becomes unbalanced, some embodiments optimize the search tree in order to ensure that all nodes can be reached from a top node in the order of log (n) traversal steps.
a illustrates the removal of a node from a hop limit search tree when a corresponding connection terminates. As illustrated, the communication device has terminated the connection U that was established over the interface 122 (interface 2). The search tree 322 of the interface 302 in turn receives a command to delete a node associated with the connection “U”. The connection “U” maps to index 250, while nodes 381-386 maps to indices 250, 500, 1000, 1125, 1500, and 2100, respectively. The index of the connection “U” allows the search tree management to traverse the search tree from the top node (i.e., the node 383) to the node 381. (The index 250 is less than index 1000 of the node 383 and less than index 500 of the node 382.) Once the node for connection “U” is located, the search tree management deletes the node from the search tree 302.
b illustrates the insertion of a node into a hop limit search tree when the communications device establishes a connection over an interface. As illustrated, the communications device has established a new connection “P” over the interface 111 (interface 1). The newly established connection has a corresponding connection data structure 139, which caches a copy of the hop limit of the interface 111.
The search tree 321 receives a command to add a new node to the search tree 321 of the interface 301 for the connection “P”. The connection “P” maps to index 750, while nodes 371-375 of the search tree 321 maps to indices 70, 600, 700, 800, and 900, respectively. Thus, to insert a new node 379 corresponding to the connection “P”, the search tree management would have to add the new node 379 as the right child node of the node 373. (The index 750 is less than index 700 of the node 374, more than the index 600 of the node 372, and more than the index 700 of the node 373.) The newly added node 379 includes a pointer that points to the location in the data structure 139 that contains the cached hop limit.
In order to ensure that a search tree remain capable of producing a search result in log (n) time, some embodiments optimizes the search tree by performing balancing or rotation operation to search trees after insertion or deletion of nodes. Node insertion or deletion may cause an AVL tree to become unbalanced, and an unbalanced tree may not be able to produce search result in log (n) time. In
For some embodiments,
Next, the process maps (at 725) the identifier of the newly added connection to a look up index by e.g., hashing the 5-tuple parameters of a TCP connection. The process then uses (at 730) the look up index to insert a new node into the corresponding search tree. The process also links the newly added node (i.e., insert a pointer at the newly added node) to the storage location for the cached hop limit in the newly added connection's parameters data structure.
After adding the new node for the new connection, the process performs (at 735) maintenance operations on the search tree in order to ensure that any subsequent search for any node in the tree can be done in less than log(n) steps. In some embodiments, this requires rotating the AVL structure of binary search tree. After performing the tree maintenance operations, the process 701 ends.
b conceptually illustrates a process 702 for removing a connection from a hop limit search tree. In some embodiments, a communications device performs the process 702 when terminating a connection as described by reference to
The process 702 starts when it receives (at 750) a command to terminate a connection. The process identifies (at 755) the interface and the search tree that was used for the terminated connection. As mentioned, in some embodiments, each interface has a dedicated search tree for looking up the hop limit values of the connections established over the interface. The process then maps (at 760) the identifier of the terminated connection to a look up index by e.g., hashing the 5-tuple parameters of a TCP connection. Next, the process uses (at 765) the look up index to identify the node in the search tree that corresponds to the terminated connection. The process then deletes (at 770) the identified node.
After deleting the node of the terminated connection, the process performs (at 775) maintenance operations on the search tree in order to ensure that any subsequent search for any node in the tree can be done in less than log (n) steps. In some embodiments, this operation includes linking nodes that are separated by the deleted node and rotating the AVL structure of binary search tree. After performing the tree maintenance operations, the process 702 ends.
In addition to adding nodes to and removing nodes from a search tree, some embodiments also allows the hop limit values pointed to by (or stored in) search tree nodes to be updated or modified. Particularly, in some embodiments, a communications device may receive a router advertisement message that requests an update of the hop limit value of an interface. Upon receiving such a command, some embodiments use the search tree of the interface to update the copies of the hop limit values that are cached in the connection data structures. Specifically, the search tree is used to ensure that all cached copies of the hop limit values for all connections established over the interface are up to date.
a illustrates the updating of hop limit value of all connections established over the interface 301 by using the search tree 621 of the interface 301. As illustrated, upon receiving the update interface command, the communications device uses the search tree 621 to traverse every node and update the hop limit value of every connection. In this example, this traversal and update is in the order of the nodes 379, 372, 371, 373, 374, and 375. As each node is traversed, its stored pointer is used to locate the cached copy of the hop limit in the corresponding data structure so the communications device can modify the cached copy to the newly specified hop limit value.
Next, the process traverses (at 930) to the root node of the search tree. The process then locates (at 940) the corresponding connection data structure that is pointed to by the pointer stored in the traversed node. The process then updates (at 1750) the copy of the hop limit value cached in the connection data structure to that of the newly received hop limit value for the interface. The process then determines (at 960) if there more nodes in the search tree that has yet to be traversed. If so, the process proceeds to 970 to traverse to the next node in the search tree. If not, the process 900 ends.
At 970, the process traverses to the next node in the search tree. In some embodiments, such traversal follows any of the well-known binary tree traversal conventions, such as breadth-first search or depth-first search. The process then returns to 940 to locate the next corresponding connection data structure.
In some embodiments, a hop limit value is always specified for an interface so all updates to hop limit values necessarily requires updates to all connections established over the interface. However, in some other embodiments, hop limit values can be specified for each individual connection.
III. Architecture
As mentioned earlier, some embodiments of the invention are implemented by a communications device that is communicatively linked with other communications device across one or multiple types of communications mediums. For some embodiments,
As illustrated, the communications device 1000 is communicatively linked with other communications devices across communications medium 1090. The communications device 1000 includes communications interfaces 1010, a communications protocol manager 1020, a connection manager 1030, a search tree manager 1040, and a storage 1050.
The communications interfaces 1010 includes interfaces for different communication mediums. In some embodiments, each interface is a different PHY for different type of medium. For example, some embodiments have an interface for 10 Gigabit Ethernet (i.e., a 10 Gigabit PHY) and another interface for Gigabit Ethernet (i.e., a 10 Gigabit PHY). In some embodiments, a PHY is compatible with multiple different communication standards and thus able to serve as multiple different communication interfaces. When a communications interface in 1010 receives a request to updated its hop limit, it relays the new hop limit value of the interface to the connection manager 1030 so the connection manager can cache copies of the new hop limit value along with connection parameters stored in connection data structures.
The communications protocol manager 1020 assembles packets and ensuring that protocols at different layers of network communications stack are complied with. To assemble the header of a packet of a particular TCP connection, the communications protocol manager 1020 fetches a corresponding connection data structure from the storage 1050, which also include a cached hop limit value. The cached hop limit value is inserted into the header of the assembled packet. When a particular connection is established or a terminated, the communications protocol manager relays the identity of the particular connection to the connection look up module 1030 so a corresponding node in the search trees can be added or deleted.
The connections manager 1030 is responsible for creating copies of hop limit values and inserting them into corresponding connection data structures. When a new hop limit value is specified for an interface, the connections manager 1030 uses the search tree manager to locate each connection data structure and to insert the updated hop limit value into each located connection data structure. Using a search tree of an interface to update the cached hop limit value is described by reference to
The search tree manager 1040 is for maintaining the search tree structures and for traversing the search trees based on an index provided by the connection manager 1030. It is also responsible for adding, deleting, and modifying nodes in the search trees. Once the search tree manager 1040 has located a node, it supplies the content (e.g., a pointer a cached hop limit value in a connection data structure) of the located node to the connections manager 1030.
The storage 1050 stores the search trees 1061 for different communications interfaces as well as the data structures 1062 for the different connections. The search tree manager 1040 access the storage 1050 for managing the search trees and for retrieving content of the nodes in the search trees. The connections manager access the storage 1050 for inserting copies of the hop limit value into the connection data structures 1062. The communications protocol manager 1020 accesses the storage 1050 for fetching the connection data structures 1062 when assembling packet headers for transmission.
While many of the features have been described as being performed by one module, one of ordinary skill in the art will recognize that the functions described herein might be split up into multiple modules. Similarly, functions described as being performed by multiple different modules might be performed by a single module in some embodiments. For example, the functions of the connections manager 1030 and the search tree manager 1040 can be performed by one software module. Such a software module in some embodiments performs the processes 701, 702, and 900 described above by reference to
Furthermore, though above sections describe a method for fast look up and update for the current hop limit parameter in the IP header of a data packet, the same method can apply to any parameter or values in a data packet that needs frequent look up and update. For example, the method described in Section I can be used to cache the copies of a parameter X in order to facilitate the fast look up of the parameter X, while the method described in Section II can be used to manage the update of the cached copies of the parameter X.
IV. Electronic System
Many of the above-described features and applications are implemented as software processes that are specified as a set of instructions recorded on a computer readable storage medium (also referred to as computer readable medium). When these instructions are executed by one or more processing unit(s) (e.g., one or more processors, cores of processors, or other processing units), they cause the processing unit(s) to perform the actions indicated in the instructions. Examples of computer readable media include, but are not limited to, CD-ROMs, flash drives, RAM chips, hard drives, EPROMs, etc. The computer readable media does not include carrier waves and electronic signals passing wirelessly or over wired connections.
In this specification, the term “software” is meant to include firmware residing in read-only memory or applications stored in magnetic storage, which can be read into memory for processing by a processor. Also, in some embodiments, multiple software inventions can be implemented as sub-parts of a larger program while remaining distinct software inventions. In some embodiments, multiple software inventions can also be implemented as separate programs. Finally, any combination of separate programs that together implement a software invention described here is within the scope of the invention. In some embodiments, the software programs, when installed to operate on one or more electronic systems, define one or more specific machine implementations that execute and perform the operations of the software programs.
In this document, the term “packet” refers to a collection of bits in a particular format sent across a network. One of ordinary skill in the art will recognize that the term packet may be used herein to refer to various formatted collections of bits that may be sent across a network, such as Ethernet frames, TCP segments, UDP datagrams, IP packets, etc.
The bus 1105 collectively represents all system, peripheral, and chipset buses that communicatively connect the numerous internal devices of the electronic system 1100. For instance, the bus 1105 communicatively connects the processing unit(s) 1110 with the read-only memory 1130, the system memory 1125, and the permanent storage device 1135.
From these various memory units, the processing unit(s) 1110 retrieves instructions to execute and data to process in order to execute the processes of the invention. The processing unit(s) may be a single processor or a multi-core processor in different embodiments.
The read-only-memory (ROM) 1130 stores static data and instructions that are needed by the processing unit(s) 1110 and other modules of the electronic system. The permanent storage device 1135, on the other hand, is a read-and-write memory device. This device is a non-volatile memory unit that stores instructions and data even when the electronic system 1100 is off. Some embodiments of the invention use a mass-storage device (such as a magnetic or optical disk and its corresponding disk drive) as the permanent storage device 1135.
Other embodiments use a removable storage device (such as a floppy disk, flash drive, etc.) as the permanent storage device. Like the permanent storage device 1135, the system memory 1125 is a read-and-write memory device. However, unlike storage device 1135, the system memory is a volatile read-and-write memory, such a random access memory. The system memory stores some of the instructions and data that the processor needs at runtime. In some embodiments, the invention's processes are stored in the system memory 1125, the permanent storage device 1135, and/or the read-only memory 1130. From these various memory units, the processing unit(s) 1110 retrieves instructions to execute and data to process in order to execute the processes of some embodiments.
The bus 1105 also connects to the input and output devices 1140 and 1145. The input devices enable the user to communicate information and select commands to the electronic system. The input devices 1140 include alphanumeric keyboards and pointing devices (also called “cursor control devices”). The output devices 1145 display images generated by the electronic system. The output devices include printers and display devices, such as cathode ray tubes (CRT) or liquid crystal displays (LCD). Some embodiments include devices such as a touchscreen that function as both input and output devices.
Finally, as shown in
Some embodiments include electronic components, such as microprocessors, storage and memory that store computer program instructions in a machine-readable or computer-readable medium (alternatively referred to as computer-readable storage media, machine-readable media, or machine-readable storage media). Some examples of such computer-readable media include RAM, ROM, read-only compact discs (CD-ROM), recordable compact discs (CD-R), rewritable compact discs (CD-RW), read-only digital versatile discs (e.g., DVD-ROM, dual-layer DVD-ROM), a variety of recordable/rewritable DVDs (e.g., DVD-RAM, DVD-RW, DVD+RW, etc.), flash memory (e.g., SD cards, mini-SD cards, micro-SD cards, etc.), magnetic and/or solid state hard drives, read-only and recordable Blu-Ray® discs, ultra density optical discs, any other optical or magnetic media, and floppy disks. The computer-readable media may store a computer program that is executable by at least one processing unit and includes sets of instructions for performing various operations. Examples of computer programs or computer code include machine code, such as is produced by a compiler, and files including higher-level code that are executed by a computer, an electronic component, or a microprocessor using an interpreter.
While the above discussion primarily refers to microprocessor or multi-core processors that execute software, some embodiments are performed by one or more integrated circuits, such as application specific integrated circuits (ASICs) or field programmable gate arrays (FPGAs). In some embodiments, such integrated circuits execute instructions that are stored on the circuit itself
As used in this specification, the terms “computer”, “server”, “processor”, and “memory” all refer to electronic or other technological devices. These terms exclude people or groups of people. For the purposes of the specification, the terms display or displaying means displaying on an electronic device. As used in this specification, the terms “computer readable medium,” “computer readable media,” and “machine readable medium” are entirely restricted to tangible, physical objects that store information in a form that is readable by a computer. These terms exclude any wireless signals, wired download signals, and any other ephemeral signals.
While the invention has been described with reference to numerous specific details, one of ordinary skill in the art will recognize that the invention can be embodied in other specific forms without departing from the spirit of the invention. In addition, a number of the figures (including