KR100575996B1 - How to Upgrade Image Files to Run the System - Google Patents

How to Upgrade Image Files to Run the System Download PDF

Info

Publication number
KR100575996B1
KR100575996B1 KR1019980059236A KR19980059236A KR100575996B1 KR 100575996 B1 KR100575996 B1 KR 100575996B1 KR 1019980059236 A KR1019980059236 A KR 1019980059236A KR 19980059236 A KR19980059236 A KR 19980059236A KR 100575996 B1 KR100575996 B1 KR 100575996B1
Authority
KR
South Korea
Prior art keywords
file
image file
image
network device
upgrading
Prior art date
Application number
KR1019980059236A
Other languages
Korean (ko)
Other versions
KR20000042939A (en
Inventor
문성호
Original Assignee
삼성전자주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 삼성전자주식회사 filed Critical 삼성전자주식회사
Priority to KR1019980059236A priority Critical patent/KR100575996B1/en
Publication of KR20000042939A publication Critical patent/KR20000042939A/en
Application granted granted Critical
Publication of KR100575996B1 publication Critical patent/KR100575996B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Abstract

본 발명은 네트워크통신시스템에서 네트워크장비의 구동을 위한 이미지 파일을 업그레이드하는 방법을 개시하고 있다. 이러한 본 발명에 따른 이미지 파일의 업그레이드 방법은, 네트워크장비의 내부 메모리에 구동을 위한 이미지 파일을 이중화시켜 저장하는 과정과, 상기 이중화 이미지 파일중의 어느 한 파일을 임시파일로 이름을 바꾸고 이 임시파일을 통해 업그레이드를 위한 이미지 파일을 외부 서버로부터 다운로드받는 과정과, 다운로드 수행중에 에러가 발생하는 경우 상기 이중화 이미지 파일중의 다른 한 파일을 압축해제한 후 상기 네트워크장비를 구동시키는 과정으로 이루어진다.The present invention discloses a method of upgrading an image file for driving network equipment in a network communication system. The image file upgrade method according to the present invention includes a process of duplexing and storing an image file for driving in an internal memory of a network device, renaming any one of the duplicated image files to a temporary file, and the temporary file. Downloading an image file for upgrading from an external server through the process, and if an error occurs during the download process, and decompressing the other one of the redundant image file to drive the network device.

Description

시스템 구동을 위한 이미지 파일 업그레이드 방법How to Upgrade Image Files to Run the System

본 발명은 시스템 구동을 위한 이미지 파일을 업그레이드하는 방법에 관한 것으로, 특히 티에프티피(TFTP)서버로부터의 이미지 파일을 플래쉬메모리를 이용하여 다운로드하여 네트워크 장비의 이미지 파일을 업그레이드하는 방법에 관한 것이다.The present invention relates to a method of upgrading an image file for driving a system, and more particularly, to a method of upgrading an image file of a network device by downloading an image file from a TFTP server using a flash memory.

일반적으로 에이티엠(ATM: Asynchronous Transfer Mode)스위치, 이더넷스위치(Ethernet Switch), 라우터(Router), 허브(Hub) 등과 같은 네트워크장비(Network Device)들은 시스템의 구동을 위한 프로그램을 저장하고 있다. 이때의 프로그램은 통상 이미지 파일(Image File)로 구현되며, 이 이미지 파일은 PCMCIA(Personal Communication Memory Card International Association) 플래쉬카드(FLASH CARD)와 같은 메모리에 저장되게 된다.In general, network devices such as an Asynchronous Transfer Mode (ATM) switch, Ethernet Switch, Router, Hub, and the like store programs for operating the system. In this case, the program is usually implemented as an image file, which is stored in a memory such as a personal communication memory card international association (PCMCIA) flash card.

한편 네트워크장비의 구동에 필요한 이미지 파일의 업그레이드(upgrade)는 네트워크장비에 연결된 서버(SERVER)로부터 플래쉬카드로 다운로드(download)되어 처리되게 된다. 이때 서버는 통상 티에프티피(TFTP: Trivial File Transfer Protocol)를 이용하여 업그레이드를 위한 이미지 파일을 네트워크장비의 플래쉬카드로 다운로드하게 된다. TFTP를 이용하여 서버(이하 "TFTP서버"라 칭함)가 ATM스위치로 이미지 파일을 다운로드하는 네트워크시스템의 연결구성이 도 1에 도시되어 있다.On the other hand, the upgrade of the image file required for the operation of the network device is downloaded to the flash card from the server (SERVER) connected to the network device is processed. At this time, the server typically downloads an image file for upgrading to a flash card of a network device using TFTP (Trivial File Transfer Protocol). A connection configuration of a network system in which a server (hereinafter referred to as "TFTP server") downloads an image file to an ATM switch using TFTP is shown in FIG.

도 1을 참조하면, TFTP서버(100)는 각 보드의 업그레이드를 위한 이미지 파일을 ATM스위치(200)의 MCU(Maintenance & Control Unit)보드(210)로 다운로드하게 된다. 이때 TFTP서버(100)로부터의 이미지 파일은 MCU보드(210)의 플래쉬카드(30)로 다운로드되어 저장되게 된다. 중앙처리장치(CPU: Central Processing Unit)(10)는 상기 플래쉬카드(30)에 다운로드되어 저장된 이미지 파일을 읽어들여 압축을 해제하여 램(RAM: Random Access Memory)(20)에 로딩시킨 후 수행코드 시작, OS(Operating System)시작 및 디바이스 드라이버를 초기화(initialization)함으로써 시스템을 구동시킨다. 또한 상기 CPU(10)는 상기 플래쉬카드(30)에 저장된 이미지 파일중에서 가입자보드(220,230)의 업그레이드를 위한 이미지 파일을 읽어들여 압축을 해제한 후 이 파일을 IPC(Inter-Processor Communication)를 통해 가입자보드(220,230)로 전송함으로써 그 가입자보드를 구동시키게 된다.Referring to FIG. 1, the TFTP server 100 downloads an image file for upgrading each board to a MCU (Maintenance & Control Unit) board 210 of the ATM switch 200. At this time, the image file from the TFTP server 100 is downloaded to the flash card 30 of the MCU board 210 and stored. The central processing unit (CPU) 10 reads the image file downloaded and stored in the flash card 30, decompresses it, loads it into a random access memory (RAM) 20, and then executes the code. Start up the system by starting it, starting the operating system (OS), and initializing the device driver. In addition, the CPU 10 reads an image file for upgrading the subscriber boards 220 and 230 from the image file stored in the flash card 30, decompresses the file, and then uses the IPC (Inter-Processor Communication) to extract the file. By transmitting to the boards 220 and 230, the subscriber board is driven.

도 2는 도 1에 도시된 바와 같은 네트워크시스템의 네트워크장비에 새로운 이미지 파일을 다운로드하여 상기 네트워크장비에 기존에 저장되어 있는 이미지 파일을 업그레이드하는 종래 기술에 따른 동작을 보여주는 도면이다. 이러한 종래 기술에 따른 업그레이드 동작은 소위 "이미지 백업(Image Backup)방식"이라 불리운다. 하기에서는 네트워크장비의 구동에 필요한 프로그램, 즉 이미지 파일명이 "MCU.Z"인 경우를 예로 하여 설명함에 유의하여야 한다.FIG. 2 is a diagram illustrating an operation according to the prior art of downloading a new image file to a network device of a network system as shown in FIG. 1 and upgrading an image file previously stored in the network device. This prior art upgrade operation is called a " image backup method ". In the following description, it should be noted that a program required for driving a network device, that is, an image file name "MCU.Z" is taken as an example.

상기 도 2를 참조하면, 초기에 MCU보드(210)에 실장된 PCMCIA 플래쉬카드(200)에는 기존의 이미지 파일이 저장되어 있다(S200단계). 이러한 상태에서 TFTP서버(100)에 업그레이드를 위한 새로운 이미지 파일이 존재하는 경우, MCU보드(210)의 CPU(10)은 플래쉬카드(30)의 파일시스템내에 MCU.tmp라는 새로운 이미지를 저장할 임시파일을 생성한다(S201,S203단계). 그러면 TFTP서버(100)으로부터의 이미지 파일이 일정 크기 단위(예: 512바이트)로 MCU.tmp 파일로 다운로드된다.Referring to FIG. 2, an existing image file is stored in the PCMCIA flash card 200 mounted on the MCU board 210 at step S200. In this state, if there is a new image file for upgrading in the TFTP server 100, the CPU 10 of the MCU board 210 is a temporary file to store a new image called MCU.tmp in the file system of the flash card 30 To generate (S201, step S203). Then, the image file from the TFTP server 100 is downloaded to the MCU.tmp file in a predetermined size unit (for example, 512 bytes).

다운로드가 진행되는 도중에 외부의 알 수 없는 인터럽트(None Maskable Interrupt)에 의하여 다운로드가 완전하게 이루어지지 않은 경우에 MCU.tmp 파일은 삭제되고, 기존의 MCU.Z 파일은 MCU.old 파일로 이름이 바꾸어지지 않고 기존의 MCU.Z 파일로 그대로 남게된다(S204,S205단계).If the download is not completed by the external mask during the download process, the MCU.tmp file is deleted and the existing MCU.Z file is renamed as MCU.old file. It does not lose and remains as an existing MCU.Z file (steps S204 and S205).

한편 다운로드가 완료되면, 상기 CPU(10)는 기존에 존재하던 MCU.Z 파일을 MCU.old로 이름바꾸기(Rename)를 한다. 그리고 다운로드가 에러없이 성공적으로 완료된 경우에는 MCU.tmp 파일을 MCU.Z 파일로 이름바꾸기를 한다. (S204,S206단계)On the other hand, when the download is completed, the CPU 10 renames the existing MCU.Z file to MCU.old. If the download completes successfully without errors, rename the MCU.tmp file to the MCU.Z file. (Step S204, S206)

다음에 MCU보드(210)의 CPU(10)는 플래쉬카드(30)에 다운로드된 MCU.Z 파일을 읽어가다 압축을 해제하고, 이 파일을 RAM(보통의 경우 DRAM)(20)에 로딩한 후 수행코드 시작, OS(Operating System) 시작 및 디바이스 드라이버(Device Driver)를 초기화함으로써 시스템을 구동한다(S207단계). 시스템이 정상적으로 구동된 경우에 플래쉬카드(30)에는 새로이 업그레이드된 이미지 파일 MCU.Z가 저장되게 된다.Next, the CPU 10 of the MCU board 210 reads the MCU.Z file downloaded to the flash card 30, decompresses it, and loads the file into RAM (usually DRAM) 20. The system is driven by starting the execution code, starting the operating system (OS), and initializing the device driver (step S207). When the system is normally driven, the flash card 30 stores the newly upgraded image file MCU.Z.

한편 시스템의 구동이 성공적으로 이루어지지 않은 경우, 즉 로딩에러/시스템구동에러가 발생한 경우에는 이미지 파일을 복구하는 작업이 요구된다. 즉, DRAM 로딩 후 버그(Bug) 발생으로 시스템 구동의 문제가 발생할 시 기존의 MCU.old 파일을 pSH상에서 MCU.Z 파일로 이름을 바꿈으로써 이미지 파일을 복구시킬 필요가 있다.On the other hand, when the system is not successfully driven, that is, when a loading error or a system driving error occurs, a task of recovering the image file is required. In other words, when a bug occurs after loading the DRAM, it is necessary to restore the image file by renaming the existing MCU.old file from pSH to MCU.Z file.

이와 같이 종래 기술에 따라 네트워크장비의 이미지 파일을 업그레이드하는 방식, 즉 이미지 백업 방식은 시스템의 구동에 문제가 발생하는 경우에 기존의 이미지 파일을 운용자가 pSH상에서 다시 복구시켜야 한다는 번거로움이 있다. 보다 구체적으로 말하면, MCU.old 파일을 MCU.Z 파일로 이름을 바꿔서 기존의 이미지 파일을 복구시켜야 한다. 이때 운용자의 번거로움 뿐만 아니라 파일을 복구시키는데 소요되는 시간만큼 시스템이 구동되지 못하는 데드시간(dead time)이 존재한다는 치명적인 문제점이 있다. 이러한 문제점은 시스템의 신뢰도를 현저하게 저하시키는 결과를 가져온다.As described above, the method of upgrading an image file of a network device, that is, an image backup method, is troublesome that an operator needs to restore an existing image file on pSH when a problem occurs in driving a system. More specifically, rename the MCU.old file to the MCU.Z file to restore the existing image file. At this time, there is a fatal problem that there is a dead time in which the system cannot be operated as much as the time required to recover a file as well as the user's trouble. This problem results in a significant decrease in the reliability of the system.

따라서 본 발명의 목적은 네트워크장비의 이미지 파일을 업그레이드시킬 시 운용자가 겪어야 하는 번거로움을 제거하는 방법을 제공함에 있다.Accordingly, an object of the present invention is to provide a method for eliminating the inconvenience that an operator must experience when upgrading an image file of a network device.

본 발명의 다른 목적은 네트워크장비의 이미지 파일을 업그레이드시킬 시 존재하는 데드시간을 줄이는 방법을 제공함에 있다.Another object of the present invention is to provide a method for reducing dead time existing when upgrading an image file of a network device.

본 발명의 또다른 목적은 네트워크장비의 이미지 파일 업그레이드시 발생하는 에러에 의해 시스템의 신뢰도가 저하됨을 방지하는 방법을 제공함에 있다.It is another object of the present invention to provide a method for preventing the reliability of a system from being degraded due to an error occurring when upgrading an image file of a network device.

이러한 목적들을 달성하기 위한 본 발명의 제1견지(aspect)에 따른 이미지 파일의 업그레이드 방법은, 네트워크장비의 내부 메모리에 구동을 위한 이미지 파일을 이중화시켜 저장하는 과정과, 상기 이중화 이미지 파일중의 어느 한 파일을 임시파일로 이름을 바꾸고 이 임시파일을 통해 업그레이드를 위한 이미지 파일을 외부 서버로부터 다운로드받는 과정과, 다운로드 수행중에 에러가 발생하는 경우 상기 이중화 이미지 파일중의 다른 한 파일을 압축해제한 후 상기 네트워크장비를 구동시키는 과정으로 이루어진다.According to an aspect of the present invention, there is provided a method of upgrading an image file, including: storing a duplicate image file for driving in an internal memory of a network device; After renaming one file to a temporary file and downloading an image file for upgrade from an external server through this temporary file, and if an error occurs during the download, after decompressing one of the redundant image files The process of driving the network equipment.

본 발명의 제2견지에 따르면, 티에프티피(TFTP)서버와 네트워크장비로 이루어지는 네트워크시스템에서 상기 네트워크장비의 구동을 위한 이미지 파일을 업그레이드시키는 방법은, 상기 네트워크장비에 기존의 이미지 파일을 제1이미지 파일 및 제2이미지 파일로 이중화시켜 저장하는 제1과정과, 상기 TFTP서버에 업그레이드를 위한 이미지 파일이 존재하는지 여부를 판단하는 제2과정과, 업그레이드를 위한 이미지 파일이 상기 TFTP서버에 존재하는 경우, 상기 제1이미지 파일을 삭제하고 상기 제2이미지 파일을 제1파일로 이름을 바꾸고 임시파일을 생성하는 제3과정과, 상기 TFTP서버로부터의 업그레이드를 위한 이미지 파일을 상기 임시파일을 통해 다운로드받는 제4과정과, 다운로드가 성공한 경우 상기 임시파일을 제2파일로 이름을 바꾸는 제5과정과, 상기 제2파일을 압축해제한 후 로딩하여 상기 네트워크장비를 구동시키는 제6과정으로 이루어진다.According to a second aspect of the present invention, a method for upgrading an image file for driving the network equipment in a network system consisting of a TFTP server and a network equipment, the first image of the existing image file in the network equipment A first process of duplexing and storing a file and a second image file, a second process of determining whether an image file for upgrade exists in the TFTP server, and an image file for upgrade exists in the TFTP server Deleting the first image file, renaming the second image file to the first file, and generating a temporary file; and downloading an image file for upgrading from the TFTP server through the temporary file. A fourth process, and a fifth process of renaming the temporary file to a second file if the download is successful; The second process is to decompress and then load the second file to drive the network equipment.

이하 본 발명의 바람직한 실시예의 상세한 설명이 첨부된 도면들을 참조하여 설명될 것이다. 하기에서 본 발명을 설명함에 있어, 관련된 공지 기능 또는 구성에 대한 구체적인 설명이 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명을 생략할 것이다. 그리고 후술되는 용어들은 본 발명에서의 기능을 고려하여 정의내려진 용어들로서 이는 사용자 또는 칩설계자의 의도 또는 관례 등에 따라 달라질 수 있으므로, 그 정의는 본 명세서 전반에 걸친 내용을 토대로 내려져야 할 것이다.DETAILED DESCRIPTION A detailed description of preferred embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description of the present invention, if it is determined that a detailed description of a related known function or configuration may unnecessarily obscure the subject matter of the present invention, the detailed description thereof will be omitted. In addition, the terms to be described below are terms defined in consideration of functions in the present invention, which may vary according to the intention or custom of the user or chip designer, and the definitions should be made based on the contents throughout the present specification.

도 3은 본 발명에 따른 이미지 파일 업그레이드 동작을 위한 PCMCIA 플래쉬카드의 구조를 보여주는 도면으로, 이 플래쉬카드(30)에는 이미지 파일이 이중화 방식(redundancy scheme)으로 저장되게 된다. 즉 본 발명의 플래쉬카드(30)는 이미지 파일을 저장하기 위한 2가지 영역(32,34)으로 구분되며, 각 영역에는 동일한 이미지 파일 MCU1.Z과, MCU2.Z가 저장되게 된다. 여기서 이미지 파일 MCU.Z는 종래 기술에서 설명한 바와 같이 네트워크장비(200)인 ATM스위치의 전반적인 동작을 제어하는 MCU(Monitoring & Control Unit)보드(210)에서 지원하는 기능(예: BSP (Board Support Package))이 포함된 gzip으로 압축된 이미지 파일을 의미한다.3 is a view illustrating a structure of a PCMCIA flash card for an image file upgrade operation according to the present invention, in which the image file is stored in a redundancy scheme. That is, the flash card 30 of the present invention is divided into two regions 32 and 34 for storing image files, and the same image files MCU1.Z and MCU2.Z are stored in each region. The image file MCU.Z is a function supported by the MCU < RTI ID = 0.0 > (Monitoring & Control Unit) < / RTI > board 210 that controls the overall operation of the ATM switch as a network device 200 (e.g., BSP (Board Support Package). Gzip compressed image file with)).

이와 같이 본 발명은 네트워크장비(200)가 도 1에 도시된 바와 같은 구성을 가지는 ATM스위치이고, 이미지 파일이 일예로서 "MCU.Z"인 경우를 예로 하여 설명할 것이다. 그러나 본 발명은 네트워크장비(200)가 ATM스위치가 아닌 경우에도 적용될 수 있으며, 운용자에 의해 이미지 파일의 이름도 다르게 명명될 수 있을 것이라는 사실에 유의하여야 한다.As described above, the present invention will be described with an example in which the network device 200 is an ATM switch having the configuration as shown in FIG. 1 and the image file is "MCU.Z" as an example. However, the present invention may be applied even when the network device 200 is not an ATM switch, and it should be noted that an image file may be named differently by an operator.

도 4는 본 발명에 따른 이미지 파일 업그레이드 동작을 위해 구비된 각종의 플래그(FLAG)를 보여주는 도면으로, 본 발명에서는 B11, B12, B21, B22의 4가지 플래그가 사용되고 있다. B11플래그는 기존 이미지 파일이 존재하는지 여부(MCU1_IMG_Exist)를 나타내는 것이다. B12플래그는 기존 이미지 파일이 성공적으로 다운로드되었는지 여부(MCU1_DL_Succ)를 나타낸다. B21플래그는 업그레이드된 이미지 파일이 존재하는지 여부(MCU2_IMG_Exist)를 나타낸다. B22플래그는 업그레이드된 이미지 파일이 성공적으로 다운로드되었는지 여부(MCU2_DL_Succ)를 나타낸다. 상기 각 플래그들의 비트는 해당하는 사항을 나타내는 경우에 "1"로 세팅되며, 나타내지 않는 경우에 "0"으로 세팅된다. 그리고 상기 플래그들의 비트값은 비휘발성 메모리(NVRAM: Non-Volatile Random Access Memory)의 빈 공간에 저장되도록 메모리의 공간이 할당된다.FIG. 4 is a view showing various flags FLAG provided for an image file upgrade operation according to the present invention. In the present invention, four flags B11, B12, B21, and B22 are used. The B11 flag indicates whether an existing image file exists (MCU1_IMG_Exist). The B12 flag indicates whether the existing image file has been successfully downloaded (MCU1_DL_Succ). The B21 flag indicates whether the upgraded image file exists (MCU2_IMG_Exist). The B22 flag indicates whether the upgraded image file has been successfully downloaded (MCU2_DL_Succ). Bits of the respective flags are set to "1" when indicating a corresponding item, and "0" when not indicating. In addition, the bit values of the flags are allocated to a space of the memory such that the bit values of the flags are stored in an empty space of a non-volatile random access memory (NVRAM).

도 5는 본 발명에 따라 이미지 파일을 업그레이드하는 동작을 보여주는 도면으로, 이미지 파일을 업그레이드할 시 도 1의 PCMCIA 플래쉬카드(30)에 저장된 이미지 파일 MCU1.Z, MCU2.Z가 어떻게 처리되느냐를 보여준다. 상기 도 5를 참조하면, 본 발명은 이미지 파일을 이중화 방식으로 플래쉬카드(30)에 저장시키기 때문에 업그레이드를 위한 이미지 파일을 다운로드받아 시스템을 구동시키다가 에러가 발생하는 경우(511단계)에 기존의 이미지 파일인 MCU1.Z를 이용하여 시스템을 바로 구동시킬 수 있다는 특징이 있다(도 5의 512단계).5 is a view illustrating an operation of upgrading an image file according to the present invention, and shows how image files MCU1.Z and MCU2.Z stored in the PCMCIA flashcard 30 of FIG. 1 are processed when the image file is upgraded. . Referring to FIG. 5, the present invention stores the image file in the flash card 30 in a redundant manner, so that an error occurs while downloading the image file for upgrade and driving the system (step 511). The system can be directly driven using the image file MCU1.Z (step 512 of FIG. 5).

도 6은 본 발명에 따른 이미지 파일 업그레이드 동작의 처리흐름을 보여주는 도면이다. 하기에서 설명될 이미지 파일 업그레이드의 동작은 기존의 에러없는 이미지 파일 MCU1.Z가 존재하는 것으로 가정한다.6 is a diagram illustrating a processing flow of an image file upgrade operation according to the present invention. The operation of the image file upgrade to be described below assumes that an existing error-free image file MCU1.Z exists.

먼저, 도 1의 MCU보드(210)의 CPU(10)는 TFTP서버(100)과 통신을 하여 업그레이드를 위한 새로운 이미지 파일이 존재하는지 여부를 판단한다(600,601단계). TFTP서버(100)에 업그레이드를 위한 새로운 이미지 파일이 존재하는 경우에 CPU(10)는 NVRAM의 B21(MCU2_IMG_Exist) 비트의 값을 체크한다(602단계). MCU2.Z 파일이 존재하는 경우(B21의 비트값이 "1"인 경우), CPU(10)는 기존의 MCU1.Z 파일을 삭제하고(603단계), MCU2.Z 파일을 MCU1.Z 파일로 이름바꾸기(Rename)를 한다(604단계). 그런 후에 새로운 이미지 파일을 다운로드받기 위하여 MCU2.tmp 파일을 생성하고, TFTP서버(100)로부터 새로운 이미지 파일을 512바이트 단위로 이 MCU2.tmp 파일을 통해 다운로드 받는다(605단계).First, the CPU 10 of the MCU board 210 of FIG. 1 communicates with the TFTP server 100 to determine whether a new image file for upgrading exists (steps 600 and 601). When there is a new image file for upgrading in the TFTP server 100, the CPU 10 checks the value of the B21 (MCU2_IMG_Exist) bit of the NVRAM (step 602). If the MCU2.Z file exists (when the bit value of B21 is "1"), the CPU 10 deletes the existing MCU1.Z file (step 603), and converts the MCU2.Z file into the MCU1.Z file. Rename (step 604). Thereafter, the MCU2.tmp file is generated to download a new image file, and the new image file is downloaded from the TFTP server 100 through the MCU2.tmp file in units of 512 bytes (step 605).

다운로드가 성공적으로 완료된 것으로 판단되면(606단계), CPU(10)는 MCU2.tmp 파일을 MCU2.Z 파일로 이름을 바꾸고(607단계), 이 파일을 압축해제하면서 DRAM에 로딩한다(609단계,610단계). 이후 수행코드, OS(Operating System)를 시작(start)하고 디바이스 드라이버(device driver)를 초기화(initialize)시키는 과정을 차례로 수행한다(611단계).If it is determined that the download is successfully completed (step 606), the CPU 10 renames the MCU2.tmp file to the MCU2.Z file (step 607), and decompresses the file and loads it into the DRAM (step 609, Step 610). Thereafter, a process of starting an operating system (OS) and initializing a device driver is performed in step 611.

다운로드 도중에 인터럽트(interrupt)에 의한 에러발생으로 이미지 파일이 제대로 다운로드되지 않으면(에러가 발생하면), 기존의 MCU1.Z 파일을 포인팅(pointing)하여 사용한다(608단계). 이처럼 이미지 파일을 듀얼(dual)로 두면서 새로운 이미지 파일의 다운로드가 제대로 수행되지 않을 경우에 기존의 이미지 파일을 시스템의 구동을 위해 사용가능하는 것이 이중화 방식의 기준이 된다.If the image file is not downloaded correctly (an error occurs) due to an error caused by an interrupt during the download, the existing MCU1.Z file is pointed and used (step 608). As such, when the image file is dual and the download of the new image file is not performed properly, the existing standard image file can be used to drive the system.

이미지 파일을 완전하게 다운로드받고 압축을 해제하면서 DRAM 로딩과정중에 에러가 발생하면, CPU(10)는 NVRAM에 있는 MCU2영역의 B22(MCU2_DL_Succ) 비트를 "0"값으로 세팅하여 MCU2.Z 이미지 파일이 수행될 수 없는 이미지라는 것을 나타내고(613단계), 최근의 이미지 파일(MCU1.Z)을 찾아(614단계) 압축을 해제하고 DRAM에 로딩할 수 있도록 한다(609단계,610단계).If an error occurs during the DRAM loading process while the image file is completely downloaded and decompressed, the CPU 10 sets the B22 (MCU2_DL_Succ) bit in the MCU2 area of the NVRAM to a value of "0" to load the MCU2.Z image file. It indicates that the image cannot be performed (step 613), and finds the latest image file (MCU1.Z) (step 614) to decompress and load the image into the DRAM (step 609 and step 610).

에러가 발생하지 않은 경우, CPU(10)는 B22(MCU2_DL_Succ) 비트와 B21(MCU2_IMG_Exist) 비트를 "1"의 값으로 세팅하여 MCU2.Z 이미지 파일이 에러없이 수행될 수 있는 이미지 파일임을 나타내고(615단계) 종료한다.If no error occurs, the CPU 10 sets the B22 (MCU2_DL_Succ) bit and the B21 (MCU2_IMG_Exist) bit to a value of "1" to indicate that the MCU2.Z image file is an image file that can be executed without error (615). Step) End.

상술한 바와 같이 본 발명은 대부분의 네트워크장비에서 이미지 파일을 이용한 소프트웨어의 업그레이드를 실행하는 방식을 사용하므로, 기존의 백업방식을 통한 기존 이미지 파일의 복구 형식에서 듀얼 이미지 파일을 이용한 이중화 개념의 이미지 파일관리를 행한다. 이에 따라 본 발명은 에러발생시 발생할 수 있는 시스템의 순간적인 장애나 수작업을 하는 번거로움을 줄일 수 있고, 무엇보다도 시스템의 신뢰도를 향상시키는 이점이 있다.As described above, since the present invention uses a method of upgrading software using an image file in most network equipments, an image file of a redundancy concept using a dual image file in a recovery format of an existing image file using an existing backup method. Management is performed. Accordingly, the present invention can reduce the instantaneous failure of the system that can occur when an error occurs, the hassle of manual operation, and above all has the advantage of improving the reliability of the system.

한편 본 발명의 상세한 설명에서는 구체적인 실시예에 관해 설명하였으나, 본 발명의 범위에서 벗어나지 않는 한도내에서 여러가지 변형이 가능함은 물론이다. 예를 들어, 본 발명에서는 네트워크장비가 ATM스위치이고, TFTP서버로부터의 이미지 파일이 PCMCIA 플래쉬 카드로 다운로드되는 예에 대하여 설명하였다. 그러나 본 발명은 다른 네트워크장비에 적용될 수 있으며, 또한 대부분의 플래쉬 메모리를 통해 이미지 파일을 다운로드받는 경우에도 적용될 수 있다. 그러므로 본 발명의 범위는 설명된 실시예에 국한되어 정해져서는 않되며 후술하는 특허청구의 범위뿐만 아니라 이 특허청구의 범위와 균등한 것들에 의해 정해져야 한다.Meanwhile, in the detailed description of the present invention, specific embodiments have been described, but various modifications may be made without departing from the scope of the present invention. For example, the present invention has described an example in which the network equipment is an ATM switch and an image file from a TFTP server is downloaded to a PCMCIA flash card. However, the present invention can be applied to other network equipment, and can also be applied to downloading image files through most flash memories. Therefore, the scope of the present invention should not be limited to the described embodiments, but should be defined not only by the scope of the following claims, but also by the equivalents of the claims.

도 1은 본 발명이 적용되는 네트워크시스템의 구성을 보여주는 도면.1 is a view showing the configuration of a network system to which the present invention is applied.

도 2는 종래 기술에 따라 이미지 파일을 업그레이드하는 동작을 보여주는 도면.2 illustrates an operation of upgrading an image file according to the prior art.

도 3은 본 발명에 따른 이미지 파일 업그레이드 동작을 위해 플래쉬카드에 이미지 파일이 이중화되어 저장됨을 보여주는 도면.3 is a view showing that the image file is duplicated and stored in the flash card for the image file upgrade operation according to the present invention.

도 4는 본 발명에 따른 이미지 파일 업그레이드 동작을 위해 구비된 각종의 플래그비트를 보여주는 도면.4 is a view showing various flag bits provided for an image file upgrade operation according to the present invention;

도 5는 본 발명에 따라 이미지 파일을 업그레이드하는 동작을 보여주는 도면.5 illustrates an operation of upgrading an image file in accordance with the present invention.

도 6은 본 발명에 따른 이미지 파일 업그레이드 동작의 처리흐름을 보여주는 도면.6 is a view showing a processing flow of an image file upgrade operation according to the present invention;

Claims (6)

네트워크장비에 사용하기 위한 이미지 파일의 업그레이드 방법에 있어서,In the method of upgrading an image file for use in a network device, 서로 다른 파일명을 가지며 동일한 소프트웨어인 두 개의 이미지 파일을 상기 네트워크 장비의 단일의 메모리에 이중화하여 저장하는 과정과,Duplicating and storing two image files having different file names and the same software in a single memory of the network device; 상기 소프트웨어를 업그레이드하는 경우 상기 두 개의 이미지 파일중의 한 파일을 임시파일로 파일명을 바꾸고 이 임시파일을 통해 상기 업그레이드되는 소프트웨어를 외부 서버로부터 다운로드받는 과정과,In case of upgrading the software, changing a file name of one of the two image files into a temporary file and downloading the upgraded software from an external server through the temporary file; 다운로드 수행중에 에러가 발생하는 경우 상기 이중화 이미지 파일중의 다른 한 파일을 압축해제한 후 상기 네트워크장비를 구동시키는 과정을 포함함을 특징으로 하는 이미지 파일 업그레이드 방법.If an error occurs while performing a download, decompressing one of the duplicated image files and then driving the network device. 티에프티피(TFTP)서버와 네트워크장비로 이루어지는 네트워크시스템에서 상기 네트워크장비의 구동을 위한 이미지 파일을 업그레이드시키는 방법에 있어서,In a method for upgrading an image file for driving the network equipment in a network system consisting of a TFTP server and network equipment, 상기 네트워크장비에 기존의 이미지 파일을 서로 다른 파일명을 가지며 동일한 소프트웨어인 제1이미지 파일 및 제2이미지 파일로 이중화시켜 단일의 메모리에 저장하는 제1과정과,A first process of duplicating an existing image file in the network device with a different file name and duplication into a first image file and a second image file of the same software and storing the same image file in a single memory; 상기 TFTP서버에 업그레이드를 위한 이미지 파일이 존재하는지 여부를 판단하는 제2과정과,A second step of determining whether an image file for upgrading exists in the TFTP server; 업그레이드를 위한 이미지 파일이 상기 TFTP서버에 존재하는 경우, 상기 제1이미지 파일을 삭제하고 상기 제2이미지 파일을 제1파일로 파일명을 바꾸고 임시파일을 생성하는 제3과정과,A third process of deleting the first image file, renaming the second image file to a first file, and creating a temporary file when an image file for upgrading exists in the TFTP server; 상기 TFTP서버로부터의 업그레이드를 위한 이미지 파일을 상기 임시파일을 통해 다운로드받는 제4과정과,A fourth step of downloading an image file for upgrading from the TFTP server through the temporary file; 다운로드가 성공한 경우 상기 임시파일을 제2파일로 파일명을 바꾸는 제5과정과,A fifth step of renaming the temporary file to a second file if the download is successful; 상기 제2파일을 압축해제한 후 로딩하여 상기 네트워크장비를 구동시키는 제6과정을 포함함을 특징으로 하는 이미지 파일 다운로드 방법.And decompressing and loading the second file to drive the network device. 6. 제2항에 있어서, 상기 제4과정 수행중에 에러가 발생하는 경우 상기 제1파일을 이용하여 상기 네트워크장비를 구동시키는 과정을 더 포함하여 이루어짐을 특징으로 하는 이미지 파일 다운로드 방법.The method of claim 2, further comprising: driving the network device by using the first file when an error occurs during the fourth process. 제2항에 있어서, 상기 제6과정 수행중에 에러가 발생하는 경우 상기 1파일을 이용하여 상기 네트워크장비를 구동시키는 과정을 더 포함하여 이루어짐을 특징으로 하는 이미지 파일 다운로드 방법.The method of claim 2, further comprising: driving the network device using the first file when an error occurs during the sixth process. 제2항에 있어서, 상기 제1이미지 파일 및 상기 제2이미지 파일은 상기 네트워크장비의 PCMCIA 플래쉬카드에 저장되는 것을 특징으로 하는 이미지 파일 다운로드 방법.The method of claim 2, wherein the first image file and the second image file are stored in a PCMCIA flash card of the network device. 제2항에 있어서, 상기 제1이미지 파일 및 상기 제2이미지 파일은 플래쉬메모리에 저장되는 것을 특징으로 하는 이미지 파일 다운로드 방법.The method of claim 2, wherein the first image file and the second image file are stored in a flash memory.
KR1019980059236A 1998-12-28 1998-12-28 How to Upgrade Image Files to Run the System KR100575996B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019980059236A KR100575996B1 (en) 1998-12-28 1998-12-28 How to Upgrade Image Files to Run the System

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019980059236A KR100575996B1 (en) 1998-12-28 1998-12-28 How to Upgrade Image Files to Run the System

Publications (2)

Publication Number Publication Date
KR20000042939A KR20000042939A (en) 2000-07-15
KR100575996B1 true KR100575996B1 (en) 2006-10-04

Family

ID=19566192

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019980059236A KR100575996B1 (en) 1998-12-28 1998-12-28 How to Upgrade Image Files to Run the System

Country Status (1)

Country Link
KR (1) KR100575996B1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100456978B1 (en) * 2001-08-17 2004-11-10 엘지전자 주식회사 Method for File Downloading in Agent
KR100471497B1 (en) * 2001-12-27 2005-03-08 한국전자통신연구원 Upgrade method of image file in network system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07200306A (en) * 1993-12-29 1995-08-04 Tamura Electric Works Ltd Down-loading system
JPH07239786A (en) * 1994-02-28 1995-09-12 Toshiba Corp Data processing system
JPH0887410A (en) * 1994-09-19 1996-04-02 Hitachi Ltd Program updating and restoring method
JPH08242474A (en) * 1995-03-02 1996-09-17 Toshiba Corp File update method for private branch of digital exchange
JPH10248076A (en) * 1997-03-05 1998-09-14 Fujitsu Ltd Method for takeover of data for updated file

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07200306A (en) * 1993-12-29 1995-08-04 Tamura Electric Works Ltd Down-loading system
JPH07239786A (en) * 1994-02-28 1995-09-12 Toshiba Corp Data processing system
JPH0887410A (en) * 1994-09-19 1996-04-02 Hitachi Ltd Program updating and restoring method
JPH08242474A (en) * 1995-03-02 1996-09-17 Toshiba Corp File update method for private branch of digital exchange
JPH10248076A (en) * 1997-03-05 1998-09-14 Fujitsu Ltd Method for takeover of data for updated file

Also Published As

Publication number Publication date
KR20000042939A (en) 2000-07-15

Similar Documents

Publication Publication Date Title
US6622246B1 (en) Method and apparatus for booting and upgrading firmware
US7278002B2 (en) Method and system for reducing storage requirements for program code in a communication device
US6668261B1 (en) Method of upgrading a program using associated configuration data
US5701492A (en) Fail-safe flashing of EPROM
US6457175B1 (en) Method and apparatus for installing a software upgrade within a memory resource associated with a computer system
US8225037B2 (en) Apparatus and method for incremental package deployment
US6928579B2 (en) Crash recovery system
KR100675518B1 (en) Modular bios update mechanism
US6314567B1 (en) Apparatus and method for transferring state data when performing on-line replacement of a running program code and data
US6202090B1 (en) Apparatus and method for downloading core file in a network device
US6269442B1 (en) Apparatus and method for on-line replacement of a running program code and data using checkpoints
EP2375323A1 (en) Firmware image update and management
US20060192987A1 (en) Bootable CD controller with embedded operating system
US6275930B1 (en) Method, computer, and article of manufacturing for fault tolerant booting
US7222258B2 (en) Compressing a firmware image
US20070050612A1 (en) Boot program update and restoration system and method thereof
KR100575996B1 (en) How to Upgrade Image Files to Run the System
KR100775431B1 (en) Apparatus and Method for System Imbedded System and Firmware Updating Method Therein
WO2003100610A1 (en) System update protocol and bootable cd controller
US8392901B2 (en) Replacing a ROM image in a computer's ROM
JP2004078294A (en) Signal processor
KR101090718B1 (en) Method for downloading software of telematcis terminal
KR100334792B1 (en) Method for remote down load in network system
JP2005321967A (en) Information processor
CN112631637A (en) OTA (over the air) upgrading method, system, equipment and storage medium based on RTOS (real time operating System)

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment
FPAY Annual fee payment
LAPS Lapse due to unpaid annual fee