This invention relates generally to data communication and more specifically, to providing systems and methods for electronically routing data.
A data communications network may provide a cost effective data transmission medium for applications that require high speed communications between different devices and software components. The basic functionality of a conventional data communications network is to facilitate communication between various devices or software components by connecting the devices or software components to the network.
In a typical computer system, components in the computer system are usually tightly coupled. Therefore, any change (for example, replacement, addition or removal) in any of these components may affect the rest of the components (for example, break communication between them) in the computer system. Thus, the existing communication mechanism may not be efficient.
Technology such as Distributed Component Object Model (DCOM) provides a Component Object Model (COM) to support communication among objects on different computer systems, which may be connected over a Local Area Network (LAN), a Wide Area Network (WAN), or the Internet. However, DCOM may be difficult to configure to pass through firewalls. Thus, the firewall and/or ports may be required to be configured to allow communication among objects. Moreover, codes for the communications that use DCOM typically cannot be modified. Additionally, the devices may have a proprietary interface and therefore, the communication with devices cannot be reused. Furthermore, with the development of the hardware of the devices, new protocols may be required to communicate with these devices.
Software architectures such as Service Oriented Architecture (SOA) and Enterprise Service Bus (ESB) may act as software versions of communication buses, for example, Universal Serial Bus (USB). SOA is an architecture that uses loosely coupled services to support the requirements of business processes and users. Similarly, ESB refers to a software architecture construct and provides foundational services for complex architectures via an event-driven and standard-based messaging engine (i.e., the communication bus). However, these architectures do not have knowledge of data termination. They only provide components that plug into the bus and listen to messages that are important to them. Moreover, these architectures may send data to destination(s) that are not supposed to receive them.
Furthermore, in one or more existing data networks, hardware devices have different communication interfaces and thus different components may need to have knowledge of all the different interfaces that are relevant. Also, different hardware devices may understand or communicate in different languages or protocols. For example, one hardware device may communicate via a TCP/IP protocol, another hardware device may communicate via Bluetooth and so on. Moreover, a data source may send different types of data to different types of destinations.
Accordingly, there is a need for systems and methods that electronically route data at relatively high speed. Additionally, there is a need for systems and methods that provide data termination knowledge and resolve cross-language compatibility between different hardware devices and/or software components during the electronic routing of data.
According to one embodiment of the invention, there is disclosed a data hub for electronically routing data within a computer or between different computers. The data hub may include an interface module that receives an electronic communication from a data source. The electronic communication may include a destination identifier associated with an intended destination for the communication, a command identifier associated with a command included in the communication, and a payload that includes data associated with the command. Further, the data hub may include a routing module that determines the intended destination based at least in part on the destination identifier. The routing module may further route the electronic communication to the intended destination.
According to another embodiment of the invention, there is disclosed a method for electronically routing data within a computer or between different computers. The method may include receiving an electronic communication from a data source. The electronic communication may include a destination identifier associated with an intended destination for the communication, a command identifier associated with a command included in the communication, and a payload that includes data associated with the command. The method may further include determining the intended destination based at least in part on the destination identifier, and routing the electronic communication to the intended destination.
Other embodiments, aspects, and features of the invention will become apparent to those skilled in the art from the following detailed description, the accompanying drawings, and the appended claims.
Having thus described the invention in general terms, reference will now be made to the accompanying drawings, which are not necessarily drawn to scale, and wherein:
Illustrative embodiments of the invention now will be described more fully hereinafter with reference to the accompanying drawings, in which some, but not all embodiments of the invention are shown. Indeed, the invention may be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will satisfy applicable legal requirements. Like numbers refer to like elements throughout.
Disclosed are methods and systems for electronically routing data within a computer. The system may include a data hub for communicating data at high speed. The data hub may include an interface module that receives an electronic communication from a data source. In accordance with one embodiment of the invention, the electronic communication may include a destination identifier associated with an intended destination for the communication, a source identifier associated with the data source, a command identifier associated with a command included in the communication, and a payload that includes data associated with the command. In various embodiments of the invention, the data source may be one or more Data Hub Plug-in's (DHPs) or clients and the intended destination may be one or more Data Hub Plug-in's (DHPs) and/or clients. Further, the data hub may include a routing module to determine the intended destination based on the destination identifier and route the electronic communication to the intended destination.
Further, according to an aspect of the invention, the DHPs 104a-n may be loosely coupled plug-in modules associated with the computer system 108. The loose coupling among these modules may facilitate addition, replacement, and/or removal of the plug-in modules without affecting existing modules in the data hub system 100. In accordance with one embodiment of the invention, each DHP, such as the DHPs 104a-n, may be a process, program, memory location, memory device interface (for example, to a hard drive) etc. that can facilitate the processing of commands received and/or sent in the various communications between the DHPs 104 and/or the clients 102 through the data hub 106. Furthermore, a client may be a software module, inside the computer system 108, which facilitates the collection and/or processing of data. For example, a client may include a graphical user interface (GUI) that allows a user of the computer system 108 to set configuration values and/or display data in graphical representation. As another example, a client may include a software application that is executed on the computer system 108 and that processes various data, such as a kernel process, a user application, etc.
According to an aspect of the invention, at least one of the DHPs 104a-n or one of the clients 102a-n may act as a source for a command and/or data that is routed through the data hub 106 to a destination. Similarly, at least one of the clients 102a-n and/or the DHPs 104a-n may act as intended destinations for the routed commands and/or data. For purposes of this disclosure, the term “data source” may refer to a module or component that sends a data command or request to one or more intended destinations that may be another module or component in the data hub system 100. In an example embodiment of the invention, a client, such as the client 102a may send a data request to a DHP, such as the DHP 104a as a destination. The DHP 104a may process the data request and may respond with the requested data. According to an aspect of the invention, the destination may be either a client application executing on the computer system 108 (e.g., a configuration graphical user interface (GUI), a data visualization GUI, etc.), a data storage application on the computer system 108 (e.g., a database or other software-based data storage application), an interface to a data storage devices (e.g., a hard drive, disk drive, or other memory device), an interface to a data acquisition server, or an interface to data collection hardware on the computer system 108. Additionally, although a data request is described as a command that may be routed through the data hub 106, a wide variety of different commands may be routed by the data hub 106 as desired in various embodiments of the invention.
According to an aspect of the invention, the data hub 106 may include an interface module 110 that operates as an interface to receive an electronic communication such as a data request from the data source (for example, the client 102a or the DHP 104a). Additionally, various clients 102a-n may each include a respective client interface 112a-n. The client interfaces 112a-n may operate as interfaces that facilitate sending and receiving electronic communications to and from the data hub 106. Similarly, various DHPs 104a-n may each include a respective DHP interface 114a-n. These DHP interfaces 114a-n may operate as interfaces that facilitate sending and receiving electronic communications to and from the data hub 106. As desired in various embodiments of the invention, the client interfaces 112a-n and/or the DHP interfaces 114a-n may receive data request(s) and/or other commands from the data hub 106. Additionally, as desired in various embodiments of the invention, the client interfaces 112a-n and/or the DHP interfaces 114a-n may communicate response(s) for the received data request(s) and/or other commands to the data hub 106. Moreover, in various embodiments of the invention, any number of the client interfaces 112a-n, and/or the DHP interfaces 114a-n may be destination interface modules associated with the intended one or more destinations.
The data hub system 100 may further include a routing module 116 as a component of the data hub 106 or otherwise in communication with the data hub 106. According to an aspect of the invention, the routing module 116 may determine the intended one or more destinations of a communication. In certain embodiments, the determination of the one or more destinations may be facilitated by using one or more suitable routing tables associated with the routing module 116. Following the determination of one or more destinations, the routing module 116 may route the electronic communication, received at the interface module 110 of the data hub 106, to the one or more intended destinations. In one example embodiment of the invention, a client, such as the client 102b, may send a request to the interface module 110 for a DHP, such as the DHP 104b. The routing module 116 may route the communication received at the interface module 110 to the destination DHP 104b. According to an aspect of the invention, the routing module 116 may route the electronic communication, received from the data source, to an intended destination in a one-to-one or point to point manner.
The data communication described above discusses data transfer within a single computer (i.e., the computer system 108). However, the data transfer is not limited to a single computer, and may be extended to multiple computers and/or computer-based devices or systems. The design and architecture of the data hub 106 makes it a flexible module that may be used for remote communication between various computers. For example, as shown in
In order to facilitate communication between the computer system 108 and the remote computer system 118, remote communicating DHPs may be utilized in the computer system 108 and the remote computer system 118. For example, as shown in the
Further, as shown in the
Embodiments of the invention may include at least one data hub in each computer system 108 and 118. For example, as shown in the
Because remote communicating DHPs 122 and 124 are registered modules, the software architecture shown in the
According to an aspect of the invention, a routing module, such as the routing module 116 shown in
Although the above example embodiment considers the client as the intended destination and the DHP as the data source, any module of software component of a data hub system or a remote data hub system may be a data source or an intended destination as desired in various embodiments of the invention. Additionally, in accordance with an aspect of the invention, the routing table 200 may include identifiers for modules within the computer 108 and/or for modules situated remotely to the computer 108, for example, modules associated with the remote computer 118. In this regard, communication between a data source and a destination may be facilitated regardless of the location of the destination. There is no requirement that the data source identify a destination as a remote destination. Provided that the destination is identified by its unique ID, the data hub 106 will route the command. Thus, the routing of commands may be facilitated across multiple platforms. In certain embodiments of the invention, more than one routing table may be utilized as desired.
In accordance with an example embodiment of the invention, a data hub, such as the data hub 106 shown in
In an embodiment of the invention, the data hub 106 may use data normalization concepts to format the data originating from a DHP or client into a homogeneous format. Data normalization may help to reduce and eliminate data redundancy. According to an aspect of the invention, a command set may be defined and supported by the data hub 106. In one embodiment of the invention, the command set may provide commands to facilitate finding and managing DHPs and/or clients connected to the data hub 106. The command set may refer to a list or series of commands such as, but not limited to, getting data, setting data and updating data.
According to an aspect of the invention, a command passed in an electronic communication from a data source to an intended destination (through the data hub 106) may be a part of the command set defined and supported by the data hub 106. According to another aspect of the invention, information associated with the command set may be stored in one or more memory location(s) accessible by a destination interface module associated with the intended destination. In an example embodiment of the invention, if a DHP, such as the DHP 104a, is an intended destination, an interface at the DHP, such as the DHP interface 114a, may access the memory location(s) to identify the command passed in the electronic communication. Further, each DHP and/or client may support one or more command sets, in accordance with various embodiments of the invention.
Standardizing the command sets may facilitate interaction between the DHPs and/or clients in a relatively expected and standardized manner. Thus, the data hub 106, which communicates point-to-point data, may pull data from any of these sources (i.e., DHPs) and communicate with them because the interfaces are normalized. In a conventional system, different hardware devices in a computer system often have different communication interfaces. In accordance with an embodiment of the invention, a command set may be created to normalize data from all of the hardware devices and/or software components having different communication interfaces. The command set normalizes data so that the components in the computer system can communicate with components with different interfaces. Moreover, the creation of the command set allows for high speed routing of data between the data source and the destination via the data hub.
Various embodiments of the invention enable protocol compatibility between various DHPs and/or clients. Although the DHPs and/or clients may typically utilize different communication protocols, communications may be facilitated between various DHPs and/or clients using a data hub system 100 as described earlier in conjunction with the
Different types of data sources (for example, DHPs) may be used as desired for data communications that are routed through a data hub, such as the data hub 106. Each of these data sources may have some functionality layered on top of them to facilitate the data communication. In an embodiment of the invention, the communication layer that is utilized may be abstracted so that the data sources may be replaced without affecting existing modules in a system where data communication occurs. According to an aspect of the invention, data in a data packet sent from a data source to an intended destination via the data hub, may include information such as, but not limited to, command set data and generic data. A transport mechanism may be used to assemble the command set and generic data into the data packet and provide a way to move data from one point to another. In accordance with an embodiment of the invention, a communication link may exist between each client and the data hub 106, and between each DHP and the data hub 106. The data hub 106 may then manage the routing and/or transportation of data from one point to another.
In an example embodiment of the invention, a DHP, such as DHP 104a, may send a command, such as, a connect command, to the data hub 106. In accordance with an embodiment of the invention, the connect command establishes connection with the data hub 106 using a randomly generated universally unique identifier (UUID) as the key to the routing table 200. In an example embodiment of the invention, a client, such as the client 102a may send a connect command with the randomly generated UUID to the data hub 106. In accordance with another embodiment of the invention, the connect command establishes connection with the data hub 106 using a provided UUID as the key to the routing table 200. In an example embodiment of the invention, a client, such as the client 102a and/or a DHP, such as the DHP 104a, may send a connect command with the provided UUID to the data hub 106 so as to register with the data hub 106 with their respective unique IDs. In accordance with yet another embodiment of the invention, the connect command establishes connection with the data hub 106 using an entity ID of the module as the key to the routing table 200. As described earlier in conjunction with
Further, for each command, an ID of the source is assigned and sent to the destination. According to an aspect of the invention, the data hub 106 may check for one or more destinations of a message that received at the data hub 106, and then the data hub 106 may route the received message. However, the data hub 106 may not need to check the source end from where the message arrives. Once an intended destination, such as a DHP, receives the message from the data hub 106, the received message may be checked for an included command.
In one embodiment of the invention, a command set library may be accessible by each DHP and/or client in the computer system 108. This command set library may include command set implementation information associated with various commands. In this regard, a specification of command sets may be provided and followed in order to facilitate the sending and/or receiving of data from clients and/or DHPs. Further, in accordance with one embodiment of the invention, a rule may be built in the data hub to validate all DHPs so as to ensure that every DHP works correctly when they are plugged in the computer system. In an example embodiment of the invention, a DHP, such as the DHP 104b, may register using a unique entity ID ‘X’ with a data hub, such as the data hub 106, before initiating data exchange with the data hub 106. Thus, when the data hub 106 receives data request from the entity ID ‘X’, the data hub 106 recognizes that a sender of the data request is already registered and hence validates the sender.
In an embodiment of the invention, as a part of data normalization the data hub architecture may utilize data models, which include distinct information associated with various commands that can be performed, routed, and/or processed. The command set may specify the actions that may be performed and the data models may be utilized to store data that is associated with processing a command and with the data returned from the processing.
Further, as a part of data normalization, a proxy component connected to the data hub may perform serialization and/or de-serialization of data exchanged between the data source and one or more intended destinations. Serialization refers to a process of converting an object into a stream of bytes. In order to move data models through the data hub, the data models may be serialized. In this regard, the data hub may route a byte stream as a communication packet, including a command and the payload associated with a command. Serialization may also facilitate cross platform interoperability. For example, data may originate from a DHP in C++ format, and be routed to a .NET client. Further, using each data model, the proxy component may break down the data to a byte stream and then de-serialize from that stream.
The method 400 may begin at block 405, in which a data hub 160 may receive an electronic communication or data from a data source. The data source may be a client or a DHP. In accordance with an embodiment of the invention, the data source may communicate a command, such as a request for data from one or more intended destination(s), to the data hub 106. The command may be included in a transport or data packet, in accordance with various embodiments of the invention. The transport packet, such as transport packet 300 illustrated in
Block 405 may be followed by block 410, in which the data hub 106 may determine one or more destinations for the electronic communication received from the data source. The data hub may use one or more routing tables stored in association with the data hub 106 to determine the intended destination(s). The routing table may include information associated with modules, such as DHPs and/or clients that are in communication with the data hub 106 and may also include entity IDs that may be unique for each of these modules. Upon receiving the electronic communication from the data source, the data hub 106 may compare the destination identifier(s) received in the electronic communication with the destination identifiers (i.e., entity IDs) stored in the routing table. In one example embodiment of the invention, a DHP A (data source) may send a data request, destined for a client A (intended destination), with 001 as the destination ID to the data hub 106. The data hub may determine the intended destination by comparing the received destination identifier (i.e., 001 in this case) and the stored destination identifiers (for example, 001 and 002) associated with modules in communication with the data hub 106.
Block 410 may be followed by decision block 415, in which the data hub 106 may check whether the destination ID in the received electronic communication is present in the destination IDs stored in the one or more routing tables. This allows the data hub to validate the one or more destination module(s).
In the event the destination ID in the received electronic communication is found in the destination IDs stored in the one or more routing table at block 415, then operation may continue at block 420. At block 420, the data hub 106 may validate the intended destination(s), and may route the electronic communication or a command present in the electronic communication to the intended destination(s). According to an aspect of the invention, the data hub 106 may route the electronic communication, received from the data source, to the intended destination(s) in a one-to-one manner.
Alternatively, in the event the destination ID in the received electronic communication is not found in the destination IDs stored in the one or more routing table at block 415, then operation may continue at block 425. At block 425, the data hub 106 may send an error message to the data source indicating that the electronic communication could not be routed. In an embodiment of the invention, the error message may indicate that the destination ID specified in the electronic communication (by the data source) is incorrect. In an example embodiment of the invention, the data source may re-send the electronic communication following the receipt of an error message. In accordance with one embodiment of the invention, the process of re-sending the electronic communication may be repeated until the data source receives a response command (from the data hub) with the sequence ID that is same as the sequence ID sent earlier by the data source in the electronic communication to the data hub.
Further, when the destination receives the command from the data hub 106, the destination may process the command. In an example embodiment of the invention, the destination may send a response command back to the data source through the data hub. In this example, the sequence ID may be the same as that received by the destination in the command routed to the destination by the data hub 106. For example, in one embodiment of the invention, the destination may receive data requests three times in a row by the same or different data sources via the data hub 106. In this example, sequence IDs may be defined for each of these data requests. Thus, the destination can respond for each of the data request to the data source via the data hub with the sequence IDs specified in the response commands. These sequence IDs may be the same as that received at the destination during the three data requests from the data hub.
The operations of the method 400 shown in
The operations described in the method 400 of
Embodiments of the invention may facilitate communicating data through the data hub without changing any of the command sets on the data hub. Moreover, data may be communicated such that it can be expanded and different data types may be communicated as desired in various embodiments of the invention.
In various embodiments of the invention, a wide variety of different data types and/or combinations of data types may be communicated through a data hub 106. In an example embodiment of the invention, a generic data structure may be utilized to facilitate the communication or routing of data between a data source and one or more intended destinations. The generic data structure may facilitate the inclusion of any number of data types in the generic data structure in a manner that facilitates the relatively high speed routing of the included data.
For example, as shown in the
The data within a generic data structure 500 may be communicated between various modules (for example, a client or a DHP) through a data hub, for example, data hub 106. In an example embodiment of the invention, the generic data structure 500 may pass configuration information, historical data, current data, alarm statuses, request parameters etc. The generic data structure 500 may facilitate the inclusion of any amount of data in a data payload. In this regard, the amount of data that is included may be scalable or expandable as desired. Furthermore, the data type array 505 of the generic data structure may facilitate the identification of the data that is included in the generic data structure 500. In this regard, the generic data structure 500 may be self-describing. An intended destination or other recipient of the generic data structure 500 may utilize the data type array 505 to identify the data types that are included in the generic data structure 500 and, accordingly, the number of bytes allocated to each item of data included in the generic data structure 500. In this regard, the generic data structure 500 may be routed to a destination as a serialized data stream and easily separated out into its various components after it is received.
In one embodiment of the invention, the generic data structure 500 may be utilized to enable all communication. For example, the data hub 106 may communicate the example generic structure 500 to an intended destination that will process a command associated with the generic data structure 500. An example of the generic data structure may be as follows:
Where, DataParameterType specifies what the corresponding DataValue represents and the OBJECT type represents a generic type that may hold any native or complex data type.
Following is an example pseudo code for using the GenericDataStructure:
In the above example of GenericDataStructure, a SetTime command may be utilized to return a generic data structure including a requested time. The command and associated data may be returned to a requesting module in response to a command that requests the data, for example, a GetTime command. In this example, a destination may return 1:26:34.324 PM Jun. 15, 2007 as a response to a requesting module. The data values included in the returned generic data structure may include 324, 34, 26, 13, 15, 5, 6 and 2007 and their corresponding types include millisecond, second, minute, hour, day of week, month and year, respectively. The data type array of the generic data structure may include integer values of, 100, 101, 102, 103, 104, 105, 106 and 107 as identifiers of the various data types. The integers provided in this example may be specific to the various data types as opposed to utilizing a common data type for all integer values of data, as set forth in the example described above with reference to
In accordance with an aspect of the invention, functions may become generic as the associated generic data structures are self-describing. Instead of using several functions to facilitate data commands, a single function may be used where the data sent and received is self-describing. The generic data structure may even handle complex data, in accordance with various embodiments of the invention. An example of handling of complex data using the generic data structure may be as follows:
In the above example of a GenericDataStructure, eight integer values may be included in a data type array that define the data included in the generic data structure. Each of the defined data types may be an array that is stored in the data value array of the generic data structure. These arrays may be either single dimensional, two dimensional or three dimensional arrays. Moreover, data values may be defined for the cells of each of the various arrays stored in the data value array of the generic data structure.
Block 605 may be followed by block 610, in which a definitional array for the generic data structure may be generated. The definitional array, also referred to as a data type array, may identify the types of data (or data values) that are included within the generic data structure. According to an aspect of the invention, each data value of the definitional array may be an integer value associated with a respective data type that is included within the generic data structure. The data values included in the returned generic data structure may include 324, 34, 26, 13, 15, 5, 6 and 2007 and their corresponding types include millisecond, second, minute, hour, day of week, month and year, respectively. The data type array of the generic data structure may include integer values of, 100, 101, 102, 103, 104, 105, 106 and 107 as identifiers of the various data types.
Block 610 may be followed by block 615, in which a data array for the generic data structure may be generated. The data array may include data associated with each of the data types included in the generic data structure. In the example above with data types of hour, minute, second and millisecond, the generated data array may be an array of four data values. In an example embodiment of the invention, the data values for the corresponding hour, minute, second and millisecond may be 17, 45, 30 and 200.
The operations described in the method 600 of
The data hub architecture of the invention may facilitate relatively high speed transfer of data within a single computer and/or between multiple computers. Additionally, the data hub architecture may provide data termination knowledge and may resolve issues with cross-protocol compatibility between different hardware devices.
The technical effect of the invention is that data may be communicated between different modules, through a data hub, within a single computer or between multiple computers at a high speed using a data hub as disclosed in various embodiments of the invention. Moreover, modules, which understand different protocols, are able to exchange data with each other using the data hub. Additionally, modules may be added, removed and/or replaced without affecting exchange of data between existing modules.
Embodiments of the invention are described above with reference to block diagrams and schematic illustrations of methods and systems according to embodiments of the invention. It will be understood that each block of the diagrams and combinations of blocks in the diagrams can be implemented by computer program instructions. These computer program instructions may be loaded onto one or more general purpose computers, special purpose computers, or other programmable data processing apparatus to produce machines, such that the instructions which execute on the computers or other programmable data processing apparatus create means for implementing the functions specified in the block or blocks. Such computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means that implement the function specified in the block or blocks.
Certain embodiments of the invention are applicable for any device, which is used for routing electronic data. Some examples of such devices include, but are not limited to, a network routing device within a computer, a software-based router within a computer, an enterprise service bus, other types of routers, a network switch, a server, etc. It will be apparent that any example taken provided in the foregoing specification is merely provided for explanation purposes and does not limit the scope of the invention by any means.
While the invention has been described in connection with what is presently considered to be the most practical and various embodiments, it is to be understood that the invention is not to be limited to the disclosed embodiments, but on the contrary, is intended to cover various modifications and equivalent arrangements included within the scope of the appended claims.
This written description uses examples to disclose embodiments of the invention, including the best mode, and also to enable any person skilled in the art to practice the invention, including making and using any devices or systems and performing any incorporated methods. The patentable scope of embodiments of the invention is defined in the claims, and may include other examples that occur to those skilled in the art. Such other examples are intended to be within the scope of the claims if they have structural elements that do not differ from the literal language of the claims, or if they include equivalent structural elements with insubstantial differences from the literal languages of the claims.