Architecture for high availability using system management mode driven monitoring and communications

Ramirez, Nick

Patent Application Summary

U.S. patent application number 10/056949 was filed with the patent office on 2004-04-22 for architecture for high availability using system management mode driven monitoring and communications. Invention is credited to Ramirez, Nick.

Application Number20040078681 10/056949
Document ID /
Family ID32092172
Filed Date2004-04-22

United States Patent Application 20040078681
Kind Code A1
Ramirez, Nick April 22, 2004

Architecture for high availability using system management mode driven monitoring and communications

Abstract

A computer system and method for providing high availability. The computer system includes an application level, an operating system level supporting the application level, and a firmware level supporting the operating system level. The firmware level includes a microprocessor having a system management mode that functions independently from the operating system level. The system management mode is configurable to execute system management code to monitor each of the levels of the computer system and to correct malfunctions in the levels in response to a system management interrupt.


Inventors: Ramirez, Nick; (Gilbert, AZ)
Correspondence Address:
    KENYON & KENYON
    Suite 600
    333 W. San Carlos, Street
    San Jose
    CA
    95110-2711
    US
Family ID: 32092172
Appl. No.: 10/056949
Filed: January 24, 2002

Current U.S. Class: 714/37 ; 714/E11.025
Current CPC Class: G06F 11/0793 20130101; G06F 11/079 20130101; G06F 11/0748 20130101; G06F 11/0778 20130101
Class at Publication: 714/037
International Class: G06F 011/30

Claims



What is claimed is:

1. A computer system for providing high availability comprising: an application level; an operating system level supporting the application level; and a firmware level supporting the operating system level, the firmware level including a microprocessor having a system management mode that functions independently from the operating system level, the system management mode being configurable to execute system management code to monitor each of the levels of the computer system and to correct malfunctions in the levels.

2. The computer system of claim 1, wherein the system management mode is configured to execute code in response to receipt of a system management interrupt.

3. The computer system of claim 1, further comprising: a timer coupled to the firmware level and set for a duration, wherein the timer triggers transmission of a system management interrupt after the duration has elapsed.

4. The computer system of claim 3, wherein the system management code stores state information concerning the application, the operating system and the firmware levels upon receipt of the system level interrupt.

5. The computer system of claim 4, wherein the system management interrupt is independently triggered by external events occurring in at least one of the application level, the operating system level, and the firmware level.

6. The computer system of claim 5, wherein the system management interrupt is triggered by a malfunction in at least one of the application level, operating system level, and firmware level.

7. The computer system of claim 6, wherein the system management code initiates a stateful rebooting of the computer using the saved information concerning the application, the operating system and the firmware levels.

8. The computer system of claim 6, wherein the system management code includes a diagnostic routine to determine the source of the malfunction.

9. A method for providing a stateful resetting of a computer system incuding a microprocessor that has a system management mode that functions independently of an operating system, the method comprising: storing state information concerning the computer system according to code executed in the system management mode on a regular basis; detecting a malfunction in the computer system; and triggering the system management mode to execute code to deliver the stored state information during resetting of the computer system to restore a state of the computer system prior to malfunction.

10. The method of claim 9 further comprising: setting a timer; sending a system management interrupt after elapsing of the timer; resetting the timer; and storing the state information upon receipt of the system management interrupt.

11. The method of claim 10, wherein the timer is set for a short duration.

12. A method of providing high availability in a rack computer system including a microprocessor having a system management mode and including manually replaceable component cards, the method comprising: detecting initiation of manual removal of a component card; storing state information concerning the component card according to code executed in the system management mode; shutting off power to the component card being removed; and delivering the stored state information to a replacement card to ensure availability of the functions provided by the component card being removed.

13. The method of claim 12, further comprising: before delivering the state information to the replacement card, determing whether one of: i) a replacement card has been inserted to replace the removed card, and ii) a pre-installed stand-by component can be used as a substitute for the removed card.

14. A telecommunication system having high availability comprising: a media gateway for converting between POTS voice traffic and IP voice traffic, the media gateway including a processor having a system management mode that executes code to monitor a state of the media gateway; a signaling gateway for converting between POTS signaling traffic and IP signaling traffic, the signaling gateway including a processor having a system management mode that executes code to monitor a state of the signaling gateway; a gateway controller coupled to the signaling gateway for receiving signaling messages therefrom and determining IP routing addresses corresponding to telephone numbers, the gateway controller including a processor having a system management mode that executes code to monitor a state of the gateway controller; and a high availability system controller coupled to all of the media gateway, the signaling gateway and the gateway controller, the high availability system controller having policy and procedure code configured to execute when triggered by at least one of the media gateway, the signaling gateway and the gateway controller in response to at least one event.

15. The telecommunication system of claim 14, wherein, if a malfunction occurs, the high availability system controller is alerted from the state information provided by one or more components, and the policy and procedure code executes a diagnostic routine to determine a cause of the malfunction and initiates a power-down procedure for all malfunctioning components.

16. The telecommunication system of claim 15, wherein the policy and procedure code includes routines to activate replacement components to cover for malfunctioning components.

17. The telecommunication system of claim 16, wherein the policy and procedure code includes routines for rerouting voice and signaling traffic to maintain quality of service.
Description



FIELD OF THE INVENTION

[0001] The present invention relates to microprocessor systems and more particularly, but without limitation, relates to using System Management Mode (SMM) and System Management Interrupt (SMI) capabilities of a microprocessor to detect errors, execute instructions and provide fault tolerance and high availability for computer systems.

BACKGROUND INFORMATION

[0002] Computer systems based upon the Intel x86 family of microprocessors can employ several different microprocessor modes. Each mode has a defined boundary in terms of memory addresses for program code and data that is configured by the firmware of the microprocessor. A number of the microprocessor modes are "protected" modes in the sense that they operate independently from and are generally unaffected by the operating system that functions over of the microprocessor modes. The microprocessor can execute instructions in several protected modes simultaneously without risk of violating the independent operations of each mode.

[0003] In Intel microprocessors, the System Management Mode (SMM) is a protected mode that is designed to have complete authority over the microprocessor. For example, the SMM provides full access to certain I/O functions of the BIOS (basic input/output system), and system management code can be used to control hardware and firmware features independently from the operating system and application software. Additionally, the SMM can be used to store information about the system configuration of a frozen or powered-down device because its operation does not depend upon the correct functioning of the higher-level operating system, application code or device drivers.

BRIEF DESCRIPTION OF THE DRAWINGS

[0004] FIG. 1 is a schematic block diagram of architecture levels of a computer system including a SMM according to an embodiment of the present invention.

[0005] FIG. 2 is a flow chart of a method for promoting a faster recovery after a system malfunction according to an embodiment of the present invention.

[0006] FIG. 3 is a schematic block diagram of a hardware rack assembly including SMM code according to an embodiment of the present invention.

[0007] FIG. 4 is a schematic block diagram of a high availability telecommunication system employing SMM policy and procedure code according to the present invention.

DETAILED DESCRIPTION

[0008] In accordance with the present invention, the SMM of one or more microprocessors is used to provide a fault-tolerant, high availability system. When errors are detected, a SMM code executes prescribed plans of action from policy handling code. Such prescribed plans of action may include saving critical state information upon detection, which information can be used to speed up resetting of a computer system after a malfunction, and to determine the cause of the error or malfunction. The SMM functions operate independently from the operating system.

[0009] FIG. 1 is a schematic representation of the architecture of a computer system according to the present invention. According to the figure, applications programs 10 such as, for example, a word processing program, function over the operating system 20 in that the program code of the applications interact with functions and procedures of the operating system rather than directly with the firmware and hardware of the computer system. The operating system 20, in turn, operates over the firmware and BIOS 30 that is embodied in the microprocessor and various other application specific integrated circuits (ASICs) in the computer system 5. The firmware layer 30 includes firmware code and memory space 40 allocated for function of the SMM. The SMM code stored at 40 may contain various monitoring, data loading, and resetting procedures, among others prescribed operations. The various procedures of the code do not run continuously, but rather, they are triggered by a System Management Interrupt (SMI) which is delivered to the SMM code after the expiration of a timer 45 or after the occurrence of an external event or an occurrence in the operating system 20 or application 30 levels.

[0010] The SMM can be used to promote a faster recovery after operating system malfunctions according to the following method illustrated as a flow chart in FIG. 2. In step S1, a SMI-triggering timer elapses. In step S2, after elapse of the timer, SMM code on a resident or networked microprocessor resets the timer. In step S3, the SMM code then check points and registers (identifies) all application software, drivers, the operating system and I/O devices as a background task. Since the background checks are based upon a timer, any changes in this information over time is also registered. It is noted that the timer can be set to a very small time period, such as 1 millisecond, so that the monitoring occurs approximately continuously for all practical purposes. The timer can also be set to longer intervals so as not to affect system application software performance. In step S4, the SMM independently monitors whether the operating system has crashed due to hardware or driver malfunction. If no crash has occurred, the method performs and interrupt return in step S5, but if a crash has occurred, in S6, SMM code releases the state information it has stored to other system management controls which control rebooting of the computer system. This is followed by an interrupt return in S7. If a two-stage time is used for SMI/reset, the timer is then allowed to run out and cause a microprocessor reset.

[0011] Having state information about the drivers, I/O, memory, and interrupts just prior to the crash enables a faster and more "stateful" rebooting and recovery because the system controls can more directly replicate the last known functional state of the computer system prior to the malfunction. Additionally, the state information can also be used to determine any sources of operating system malfunction after a crash. This determination can also enable faster recovery by attributing the cause of malfunction between hardware, software and external causes. System management code can then determine whether a reboot or a hardware exchange is more appropriate for system recovery. Furthermore, SMI interrupts can initiate SMM policy handling software in response to errors as they occur. For example, SMM software can be used to close files or send messages to alert both applications and the operating system to perform emergency shut down procedures before disconnection or power loss.

[0012] FIG. 3 schematically illustrates a rack computer system 100 in which SMI and SMM policy handling code are used to detect "hot swaps" and to direct emergency shut down operations. Hot swaps denote the removal and replacement of a component in a computer system while the system is running. As shown in FIG. 3, computer system 100 comprises a rack of cards 101-106 connected by a bus 110. Each of the cards provides functionality to the rack computer system as a whole and may include redundant capability. Although only six cards are shown, the number is merely exemplary, and any number of cards can be coupled to the rack computer system. Cards 101, 105 are I/O cards, card 102 is a motherboard including a microprocessor (mP), card 103 is a memory card and 106 is a network interface card. Card 104 includes a microprocessor that stores SMM policy handling code according to the present invention. Alternatively, each card can include a microprocessor having SMM capability, or the SMM code may be stored separately from the cards in a microprocessor 120 coupled to the rack computer system 100.

[0013] Each of the cards 101-106 is releasable from the rack computer system via respective switches 111-116. If, for example, switch 111 is activated to release I/O card 101, a SMI is automatically generated by the I/O card and passed on the SMM code at card 104 or at microprocessor 120. The SMM code then executes instructions to save configured states of the card 101 being removed in SMRAM (system management random access memory) allocated for such purposes, and shuts off power delivery to the card. When a replacement board is inserted into the same slot, or if there is a separate card in another slot that is on stand-by, the SMM code detects the insertion or the stand-by condition, and then downloads the state information from memory to the card, thus providing a smooth transition for swapped or exchanged cards to maintain the availability of the cards for continued use. In this manner, the SMM monitors the computer system 5 so that there is a mechanism to transfer functionality of various components so that the system as a whole remains active at all times.

[0014] An architecture applying SMM driven monitoring and communications can be readily applicable to a telecommunications infrastructure to provide fault tolerance and high availability. A high-level schematic illustration of a telecommunications system employing SMM monitoring and communications according to the present invention is shown in FIG. 4. FIG. 4 shows a voice-over Internet Protocol (VoIP) infrastructure 200 that includes a media gateway 210, a signaling gateway 220 and a gateway controller 230. All of these components are coupled to one another, and in addition, each is coupled to a high availability system controller 240. The media gateway 210 performs the function of translating between continuous PCM voice data traffic to or from a regular POTS (plain old telephone system) network from and packetized data to or from an IP-based network. Similarly, the signaling gateway 220 converts between SS7 signaling messages of a POTS network and IP or H.323 based signaling messages of an IP network. The gateway controller 230 receives the converted signaling messages from the signaling gateway 220 and translates telephone number information into an IP address and then arranges routing of the media traffic from the media gateway 210 according to the IP address. Each of the media gateway 210, signaling gateway 220, and gateway controller 230, includes an Intel x86 microprocessor having a SMM.

[0015] In this VoIP telephone system, it is vital to have each of the gateway and controller components 210, 220, 230 running at all time to prevent loss of communication, in part because this system does not necessarily have the redundant capacity of the POTS networks. Therefore, high availability of these components is a necessity to provide quality of service comparable to the regular voice networks. The embedded SMM of the telecom components 210, 220, 230 can be used to perform near-continuous monitoring for faults, and to save state information. When a malfunction is detected at any of the telecom components 210, 220, 230 an SMI is generated and the SMM code sends a message including state information to a high availability controller 240 which stores policy and procedure code. Upon receiving the SMI, the high availability controller transmits instructions to one or more of the processors at the components. While the high availability controller 240 is depicted as a separate component, the control code to implement high availability may be co-located in one or more of the processors within the telecom components 210, 220, 230 in addition to, or instead of, the separate controller 240.

[0016] As described above, the high availability controller 240 may execute code to determine the cause of the malfunction, power-down various devices; activate replacement devices (not shown) to cover for any malfunctioning devices; and reroute traffic to maintain the quality of service of the network. The policy and procedures initiated by the high availability system controller 240 can be also include more detailed and complex instructions, such as specific instructions to the signaling gateway regarding sending certain types of requests for re-sending or momentary delaying of messages during a malfunction. Since the monitoring and correction functions of the SMM and high availability controller operate in a protected mode independently from higher level software operating systems such as gateway translation software, H.323 messaging software, and any base operating system, such as UNIX, Linux, or Microsoft Windows.TM., hardware fault tolerance can be safeguarded independently regardless of the function of the higher level software components.

[0017] In the foregoing description, the system and method of the invention have been described with reference to a number of examples that are not to be considered limiting. Rather, it is to be understood and expected that variations in the principles of the system and method herein disclosed may be made by one skilled in the art, and it is intended that such modifications, changes, and/or substitutions are to be included within the scope of the present invention as set forth in the appended claims.

* * * * *


uspto.report is an independent third-party trademark research tool that is not affiliated, endorsed, or sponsored by the United States Patent and Trademark Office (USPTO) or any other governmental organization. The information provided by uspto.report is based on publicly available data at the time of writing and is intended for informational purposes only.

While we strive to provide accurate and up-to-date information, we do not guarantee the accuracy, completeness, reliability, or suitability of the information displayed on this site. The use of this site is at your own risk. Any reliance you place on such information is therefore strictly at your own risk.

All official trademark data, including owner information, should be verified by visiting the official USPTO website at www.uspto.gov. This site is not intended to replace professional legal advice and should not be used as a substitute for consulting with a legal professional who is knowledgeable about trademark law.

© 2024 USPTO.report | Privacy Policy | Resources | RSS Feed of Trademarks | Trademark Filings Twitter Feed