Network devices, such as switches or routers, may contain numerous electronic components and circuit boards. Commonly, a sensor, such as a temperature sensor or a voltage sensor, is included on or with the electronic component and/or circuit boards to monitor temperature and voltage parameters. The numerous sensors are commonly connected to a main processing device via a slow two wire bus. Waiting for large amounts of sensor data to be received sequentially from numerous sensors over slow two wire buses results in substantial processing time being wasted by the main processing device.
According to one aspect, a device may be provided. The device may include a processor, a plurality of sensors and polling logic configured to receive an address for each of the plurality of sensors from the processor, store the received addresses in a table, sequentially receive data from each of the plurality of sensors based on corresponding addresses of the plurality of sensors stored in the table, store the data received from each of the plurality of sensors in a memory, and supply the stored data from the memory to the processor upon request.
According to another aspect, a method may be provided. The method may include storing a table of received addresses, sequentially receiving data from a sensor located at each address in the table via a serial data bus, storing the sensor data in a memory, receiving an address from a processor via a parallel data bus and providing stored sensor data associated with a sensor corresponding to the received address from the memory to the processor via a parallel data bus.
According to another aspect, a device may be provided. The device may include means for receiving an address of sensor via a parallel data bus, means for storing the received sensor addresses in a table, means for sequentially receiving sensor data from the sensor addresses stored in the table via a serial data bus, means for storing the sensor data in a memory and means for transmitting the stored read data to the processor via the parallel data bus.
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments described herein and, together with the description, explain the embodiments. In the drawings:
The following detailed description refers to the accompanying drawings. The same reference numbers in different drawings may identify the same or similar elements. In addition, while some of the following description is provided mainly in the context of routers or other network elements, the description provided herein may be applied to different types of network devices and/or other electrical devices which may not be network communication devices.
System control module 210 may include one or more processors, microprocessors, application specific integrated circuits (ASICs), field programming gate arrays (FPGAs), and/or processing logic that may be optimized for networking and communications. System control module 210 may perform high level management functions for network element 110. For example, system control module 210 may communicate with other networks and systems connected to network element 110 to exchange information regarding network topology. System control module 210 may also control operations of target boards 220 and may monitor sensors 230 located within target boards 220. System control module 210 may also include a static memory (e.g. a read only memory (ROM)), a dynamic memory (e.g. a random access memory (RAM)), and/or onboard cache, for storing data and machine-readable instructions. System control module 210 may also include storage devices, such as a floppy disk, a CD ROM, a CD read/write (R/W) disc, and/or flash memory, as well as other types of storage devices.
Target boards 220 may include devices or assemblies, such as line cards, for receiving incoming data packets from network links and for transmitting data packets to network links. In other examples, target boards 220 may include Ethernet cards, optical carrier (OC) interfaces and asynchronous transfer mode (ATM) interfaces. Target boards 220 may also include processors, memories, and/or paths (such as an Inter-Integrated Circuit (I2C) bus) that permit communication between system control module 210 and sensors 230.
Sensors 230 may include any type of sensor device such as a voltage sensor or a temperature sensor. For example, when a target board 220 may be configured as a line card, each component within a line card, such as switches, memories and processors, may include a temperature sensor and a voltage sensor for monitoring temperature and voltage parameters within each component.
Peripheral Component Interconnect Express (PCI-E) bus 301 may include a high speed parallel bus. PCI-E bus 301 may connect system control processor 310 to polling logic 320.
Inter-Integrated Circuit (I2C) buses 302 may include a serial two wire bus. I2C buses 302 may connect polling logic 320 to target boards 220 and further connect to sensors 230.
System control module 310 may include hardware and/or software for receiving, storing, processing and/or forwarding data packets within network device 110. System control module 310 may include hardware and/or software for programming polling logic 320 to monitor sensor data received from sensors within target boards 220. System control module 310 may also transmit/receive information to/from other components within network element 110.
Polling logic 320 may include components 330-380 as described below in order to receive information from system control module 310 and perform polling of sensors 230. Components 330-380 as described below may be implemented as hardware, software, firmware or a combination of the aforementioned.
Peripheral Component Interconnect Express (PCI-E) bus controller 330 may include a high speed bus interface controller for transmitting/receiving, reading, and writing commands and information between system control processor 310 and polling logic 320. For example, PCI-E bus controller may transmit/receive an I2C address and/or information to/from system control processor 310. Additionally, PCI-E bus controller may transmit/receive the I2C bus address and/or information between components within polling logic 320, such as transaction table 340, master controller 360 and sensor status cache 350.
Transaction table 340 may include a number of records related to target boards 220 and sensors 230. For example, each record may include an address corresponding to a sensor 230 and other associated fields of information. Transaction table 340 may receive and store the address for each sensor 230 and other associated fields of information transmitted from system control processor 310. Transaction table 340 may be large enough to store data records relating to all sensors 230 located within network element 110. Transaction table 340 may supply a polling rate, sensor address and target board information to polling engine 370 for sensor data reading (polling). An example of data records stored in transaction table 340 is shown and described below with reference to
Sensor status cache 350 may include a number of records of sensor data. For example, each record may include data read from a sensor 230 and associated fields of information. Sensor status cache 350 may store sensor data for every sensor 230 within network element 110, for example. Sensor status cache 350 may receive sensor data and related information from master controller 360 and/or PCI-E bus controller 330. An exemplary record in sensor status cache 350 is shown and described below with reference to
Master controller 360 may include one or more processors, microprocessors, application specific integrated circuits (ASICs), field programming gate arrays (FPGAs), and/or processing logic for performing sensor reading (polling) functions. For example, master controller 360 may control functions related to operations between components shown in
Polling engine 370 may include hardware and/or software for reading and receiving information from transaction table 340. For example, polling engine 370 may receive target board information and an address of a sensor from transaction table 340. Polling engine 370 may also access transaction table to determine how often to poll a sensor.
Inter-Integrated Circuit (I2C) multiplexer (MUX) 380 may include a multiplexing device capable of receiving information and determining and selecting a bus 302 to transmit information.
Target board field 410 may contain information for identifying a target board 220. For example, each target board field 410 may contain information specifically identifying each of target boards 220-1 to 220-3.
Inter-Integrated Circuit (I2C) address field 420 may contain information for indicating an address of a sensor 230. For example, each sensor 230 may have a corresponding address on a corresponding I2C bus 302.
Size field 430 may contain information for indicating a size of stored data. For example, size field may store information indicating that the I2C address field 420 may be 8 or 16 bits of information.
Polling rate field 440 may contain information for identifying a rate at which a sensor may be polled. For example, polling engine 370 may poll sensors 230 at a rate determined by polling rate field 440. For example, information may be stored in polling rate field 440 that indicates that sensor 230-1 may be polled once a minute, while sensor 230-2 may be polled once a second.
Target board field 510 may contain information for identifying a target board 220. For example, each target board field 510 may contain information specifically identifying each of target boards 220-1 to 220-3. The values in target board field 510 for each record in sensor status cache 350 may correspond to values in target board field 410 of transaction table 340.
Inter-Integrated Circuit (I2C) address field 520 may contain information for indicating an address of a sensor 230. For example, each sensor 230 may have a corresponding I2C bus address stored in I2C address field 520.
Sensor data field 530 may contain information relating to data read from a sensor 230. For example, data stored in field 530 may be a voltage value of the associated sensor is a voltage sensor and data stored in field 530 may be a temperature value if the associated sensor is a temperature sensor.
Time stamp field 540 may contain information identifying a time at which the data stored within a record may have been created/stored.
Polling engine 370 may then sequence through transaction table 340 to perform sensor reads (block 630). For example, polling engine 370 may sequentially read target board information and a target I2C bus address (from fields 410 and 420 respectively) of transaction table 340 and transmit this information to master controller 360. Master controller 360 may then transmit the target board information and the address to I2C MUX 380. I2C MUX 380 may then use the received target board information to select one of the number of I2C buses 302 and then use the received target I2C address to read data from an addressed sensor over the selected I2C bus 302. For example, target board information may identify target board 220-2, and the target I2C bus address may identify sensor 230-2 located on target board 220-2.
After accessing and reading data from a sensor, the results of the sensor reads are written into sensor status cache (block 640). For example, sensor data from sensor 230-3 may be transmitted from MUX 380 to master controller 360, where master controller 360 writes the sensor data into sensor status cache 350. As shown in
In other examples, the records in transaction table 340 may be arranged or sorted by polling rate (as stored in field 440) so that sensors 230 that need to be polled more frequently are placed at the top of transaction table 340. In further examples, records in transaction table 340 may be arranged or sorted by target board (as indicated by field 410), so that each target board 220 may be sequentially monitored using transaction table 340.
After receiving a target sensor I2C bus address, it is determined if the received address is found within sensor status cache 350 (block 730). For example, the received target sensor I2C bus address may be compared to stored I2C addresses 520 within sensor status cache 350. If the received target sensor I2C bus address is found within sensor status cache 350 (Yes in block 730) sensor data may be read from sensor status cache 350 (block 740). For example, sensor data 530 that may be associated with the received target sensor I2C bus address 520 may be read and returned to PCI-E bus controller 330. Once the sensor data 530 has been received by PCI-E bus controller 330 it may be transmitted to system control processor 310 via PCI-E bus (block 760).
If, for example, a received target sensor I2C bus address does not match a stored target sensor I2C bus address within sensor status cache 350 (No in block 730), master controller 360 may initiate a direct I2C transaction (block 750). For example, master controller 360 may use the received target sensor I2C bus address to transmit a read operation via MUX 380 to read data from the addressed sensor 230. After reading the sensor data, master controller 360 may transmit this data to update sensor status cache 350 and may transmit this sensor data to PCI-E bus controller 330. Once PCI-E bus controller 330 receives the sensor data, it may be returned to system control processor 310 via PCI-E bus 305 (block 760). In this manner, when system control processor 310 transmits a sensor read command to polling logic 320, sensor data may be quickly returned from sensor status cache 350 without having to wait for a sensor read to be performed over an I2C address bus.
As described above, the embodiments allow sensor polling functions to be offloaded from the system control processor 310. Additionally, the sensor data may be stored and returned to the system control processor 310 quickly when needed. The foregoing description of implementations provides an illustration, but is not intended to be exhaustive or to limit the implementations to the precise form disclosed. Modifications and variations are possible in light of the above teachings or may be acquired from practice of the teachings.
For example, while series of blocks have been described with regard to the processes illustrated in
It will be apparent that aspects described herein may be implemented in many different forms of software, firmware, and hardware in the implementations illustrated in the figures. The actual software code or specialized control hardware used to implement aspects does not limit the embodiments. Thus, the operation and behavior of the aspects were described without reference to the specific software code—it being understood that software and control hardware can be designed to implement the aspects based on the description herein.
Further, certain portions of the implementations have been described as “logic” that performs one or more functions. This logic may include hardware, such as a processor, an application specific integrated circuit, or a field programmable gate array, software, or a combination of hardware and software.
Even though particular combinations of features are recited in the claims and/or disclosed in the specification, these combinations are not intended to limit the invention. In fact, many of these features may be combined in ways not specifically recited in the claims and/or disclosed in the specification.
No element, block, or instruction used in the present application should be construed as critical or essential to the implementations described herein unless explicitly described as such. Also, as used herein, the article “a” is intended to include one or more items. Where only one item is intended, the term “one” or similar language is used. Further, the phrase “based on” is intended to mean “based, at least in part, on” unless explicitly stated otherwise.
Number | Date | Country | |
---|---|---|---|
Parent | 12015652 | Jan 2008 | US |
Child | 13210072 | US |