KR20030037917A - TFTP File Downloading Method - Google Patents

TFTP File Downloading Method Download PDF

Info

Publication number
KR20030037917A
KR20030037917A KR1020010069264A KR20010069264A KR20030037917A KR 20030037917 A KR20030037917 A KR 20030037917A KR 1020010069264 A KR1020010069264 A KR 1020010069264A KR 20010069264 A KR20010069264 A KR 20010069264A KR 20030037917 A KR20030037917 A KR 20030037917A
Authority
KR
South Korea
Prior art keywords
file
tftp
download
client
area
Prior art date
Application number
KR1020010069264A
Other languages
Korean (ko)
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 KR1020010069264A priority Critical patent/KR20030037917A/en
Publication of KR20030037917A publication Critical patent/KR20030037917A/en

Links

Classifications

    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • H04L49/3072Packet splitting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • H04L49/9063Intermediate storage in different physical parts of a node or terminal
    • H04L49/9078Intermediate storage in different physical parts of a node or terminal using an external memory or storage device

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

PURPOSE: A TFTP(Trivial File Transfer Protocol) file downloading method is provided to allot only a memory size exactly, requested to be downloaded, for efficiently using a RAM by using the TFTP. CONSTITUTION: The method comprises several steps. A client, having a flash memory, connects to a server, and requests a download of a specific file by transmitting a file name to the server(S41). The server searches for the requested file, and decomposes the file into packets(S42). The server transmits to the client the first packet where file size data is stored at the upper four bytes and a part of real file data is stored at the remaining 504 bytes(S43). The client extracts the file size data from the transmitted first packet(S44), compares the file size data with an unused RAM size, and determines whether only the remaining RAM size can be alloted as a temporary memory area for storing the file to be downloaded(S45). If the remaining RAM size is enough to store the file, a necessary area among the remaining RAM area is alloted as a temporary memory area(S46), but if the remaining RAM size is not enough, a flash memory size is checked and a necessary area among the flash memory area is alloted as a temporary memory area(S47). The client continuously receives the decomposed packets, and sequentially stores them at the alloted temporary memory area(S48). The client checks a completion of the file transmission(S49), and stores the file, stored at the temporary memory area, at specific addresses of the flash memory(S50).

Description

티에프티피 파일 다운로드 방법{TFTP File Downloading Method}TFTP File Downloading Method}

본 발명은 TFTP(Trivial File Transfer Protocol) 다운로드에 관한 것으로, 특히 TFTP를 이용하여 특정 파일을 다운로드하는 경우 TFTP 서버 측에서 다운로드할 파일 크기 정보를 TFTP 클라이언트로 전송하여 보다 효율적인 TFTP 파일 다운로드가 가능하도록 한 TFTP 파일 다운로드 방법에 관한 것이다.The present invention relates to a Trivial File Transfer Protocol (TFTP) download, and in particular, when a specific file is downloaded using TFTP, the TFTP server transmits file size information to be downloaded to the TFTP client to enable more efficient TFTP file download. Relates to a TFTP file download method.

일반적으로, 대부분의 시스템에 있는 데이터는 파일(file) 단위로 표시되며, 네트웍으로 연결된 시스템들 사이에 데이터를 전송하려면 대개 파일 또는 파일의 일부분을 전송해야 한다.In general, data on most systems is represented in units of files, and in order to transfer data between networked systems, you usually need to transfer files or portions of files.

그리고, 어느 한 시스템의 사용자가 다른 한 시스템에 있는 데이트를 자신의 시스템으로 전송받거나 자신의 시스템에 있는 데이터를 다른 한 시스템으로 전송하기 위해서는 시스템 간에 통신할 수 있도록 하기 위한 프로토콜(Protocol)이 있어야 하는데, 이러한 프로토콜로는 TCP/IP(Transfer Control Protocol/Internet Protocol)를 기반으로 FTP(File Transfer Protocol), Telnet(Terminal Emulation Protocol), HTTP(HyperText Transfer Protocol) 등이 있다.And in order for a user of one system to receive data from another system to his system or to transfer data from his system to another system, there must be a protocol for communication between the systems. Such protocols include File Transfer Protocol (FTP), Terminal Emulation Protocol (Telnet), and HyperText Transfer Protocol (HTTP) based on Transfer Control Protocol / Internet Protocol (TCP / IP).

또한, TCP/IP는 시스템들 사이에 파일의 전체 내용을 전송하기 위한 두 가지 표준 프로토콜을 제공하는데, 하나는 파일 전송 프로토콜(File Transfer Protocol ; FTP)이고, 다른 하나는 일반 화일 전송 프로토콜(Trivial FTP ; TFTP)이다.In addition, TCP / IP provides two standard protocols for transferring the entire contents of a file between systems: one is the File Transfer Protocol (FTP) and the other is the Trivial FTP. TFTP).

여기서, TFTP는 FTP의 일종으로 FTP보다 단순하고 작은 코드만으로 구현되도록 설계되며, 디스크 없는 시스템에서 운영체제 이미지를 다운로드하는 프로토콜로써 흔히 사용된다.Here, TFTP is a kind of FTP designed to be implemented with simpler and smaller code than FTP, and is commonly used as a protocol for downloading an operating system image in a diskless system.

이러한 TFTP를 이용한 다운로드 시스템은 첨부된 도면 도 1에 도시된 바와 같이, 특정 파일의 다운로드를 요청하는 TFTP 클라이언트(11)와, TFTP 클라이언트(11)의 요청에 따라 파일을 찾아서 보내주는 TFTP 서버(12)가 네트웍으로 서로 연결되어 파일을 다운로드 받는 구조를 갖는다.As illustrated in FIG. 1, the download system using the TFTP includes a TFTP client 11 requesting to download a specific file, and a TFTP server 12 that finds and sends a file in response to a request of the TFTP client 11. ) Are connected to the network and download files.

전술한 TFTP 다운로드 시스템의 파일 다운로드 동작을 첨부된 도면 도 2를참조하여 설명하면 다음과 같다.The file download operation of the above-described TFTP download system will be described with reference to FIG. 2.

먼저, TFTP 클라이언트(11)는 TFTP 서버(12)와 연결한 후에 다운로드 받고자 하는 파일 이름을 TFTP 서버(12)로 전송하여 특정 파일의 다운로드를 요청하게 된다(스텝 S21).First, after connecting with the TFTP server 12, the TFTP client 11 transmits a file name to be downloaded to the TFTP server 12 to request the download of a specific file (step S21).

그러면, TFTP 서버(12)는 TFTP 클라이언트(11)가 요청한 파일을 찾아 전송해 주게 되는데, 이때 파일을 512 바이트(byte)의 패킷 단위로 분해하여 TFTP 클라이언트(11)로 전송하게 된다(스텝 S22).Then, the TFTP server 12 finds and transmits the file requested by the TFTP client 11, at which time the file is decomposed into 512 byte packet units and transmitted to the TFTP client 11 (step S22). .

이때, TFTP 클라이언트(11)에서는 자신이 요청한 파일의 크기와는 무관하게 램 메모리에 다운로드 받은 파일을 일시 저장하기 위한 임시 메모리 공간이 필요하므로 일정한 크기의 메모리 영역을 할당받게 되며(스텝 S23), TFTP 서버(12)로부터 전송되는 패킷을 이미 할당받은 메모리 영역에 차례로 저장하게 된다(스텝 S24).At this time, since the TFTP client 11 needs a temporary memory space for temporarily storing the downloaded file in the RAM memory regardless of the size of the file requested by the TFTP client 11 (step S23), the TFTP client 11 is allocated a TFTP area. The packet transmitted from the server 12 is stored in order in the already allocated memory area (step S24).

그리고, TFTP 서버(12)로부터의 파일 다운로드가 완료되는지를 확인하여(스텝 S25), 파일 다운로드가 완료되면 TFTP 서버(12)와의 연결을 해제하고, 또한 TFTP 클라이언트(11)는 램 메모리에 일시 저장했던 파일 즉, 다운로드 받은 파일을 특정 플래시 메모리 번지에 저장하게 된다(스텝 S26).Then, it is checked whether the file download from the TFTP server 12 is completed (step S25), and when the file download is completed, the connection with the TFTP server 12 is released, and the TFTP client 11 temporarily stores the RAM memory. The downloaded file, that is, the downloaded file is stored in a specific flash memory address (step S26).

전술한 바와 같이, 종래의 TFTP를 이용한 파일 다운로드시에는 TFTP 클라이언트 측에 다운로드 받은 파일을 일시 저장하기 위해 램 메모리 공간이 필요했으며, 이로 인해 램 메모리의 여유 공간이 파일을 다운로드 받기 위한 공간보다 작은 경우 에러를 발생하고 TFTP를 이용하여 파일을 다운로드 받을 수 없다는 문제점이 있었으며, 이러한 현상이 반복되는 경우에는 하드웨어적으로 램 메모리영역을 추가해야 하는 문제점이 있었다.As described above, when a file is downloaded using a conventional TFTP, a RAM memory space is required to temporarily store the downloaded file on the TFTP client side, and thus, the free space of the RAM memory is smaller than the space for downloading the file. There was a problem that an error occurred and the file could not be downloaded using TFTP, and if this phenomenon was repeated, there was a problem in that the RAM memory area had to be added in hardware.

본 발명은 전술한 바와 같은 문제점을 해결하기 위한 것으로 그 목적은, TFTP 클라이언트가 다운로드 요청한 파일 크기 정보를 TFTP 서버가 전송해 줌으로써, TFTP 다운로드시에 파일 크기에 대응하는 만큼의 램 메모리만을 임시 메모리 영역으로 할당하여 보다 효과적인 램 메모리 활용이 가능하게 하는데 있다.SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problems. The object of the present invention is to provide a file size information requested by a TFTP client by the TFTP server, so that only RAM memory corresponding to the file size at the time of TFTP download is available in the temporary memory area. It can be used to make more efficient use of RAM memory.

또한, 본 발명의 다른 목적은, TFTP 클라이언트가 플래시 메모리 사용 영역 정보를 관리하여 램 메모리만으로 TFTP 다운로드시에 필요한 임시 메모리를 할당할 수 없는 경우 플래시 메모리에서 사용되지 않고 있는 영역을 램 메모리만으로 부족한 임시 메모리 영역으로 할당함으로써, TFTP 다운로드시에 램 메모리가 부족한 경우에도 TFTP 다운로드를 수행할 수 있도록 하는데 있다.In addition, another object of the present invention is to provide a temporary memory that is not used by the flash memory only when the TFTP client manages the flash memory usage area information and cannot allocate temporary memory required for TFTP download using only the RAM memory. By allocating to the memory area, the TFTP download can be performed even when the RAM memory is insufficient during the TFTP download.

도 1은 종래의 TFTP를 이용한 다운로드 시스템의 개략적인 구성 블록도.1 is a schematic structural block diagram of a download system using a conventional TFTP.

도 2는 종래의 TFTP 다운로드 시스템의 파일 다운로드 동작 순서도.2 is a flowchart of a file download operation of a conventional TFTP download system.

도 3은 본 발명에 따른 TFTP를 이용한 다운로드 시스템의 개략적인 구성 블록도.3 is a schematic structural block diagram of a download system using a TFTP according to the present invention;

도 4는 본 발명에 따른 TFTP 다운로드 시스템의 파일 다운로드 동작 순서도.4 is a flowchart illustrating a file download operation of the TFTP download system according to the present invention.

* 도면의 주요 부분에 대한 부호의 설명 *Explanation of symbols on the main parts of the drawings

31 : TFTP 클라이언트 32 : TFTP 서버31: TFTP Client 32: TFTP Server

상술한 바와 같은 목적을 달성하기 위한 본 발명의 특징은, TFTP를 이용한 파일 다운로드 방법에 있어서, TFTP 서버가 TFTP 클라이언트로부터 다운로드 요청된 파일의 크기 정보를 첫번째 데이터 패킷에 실어 상기 TFTP 클라이언트로 전송하는 과정과; 상기 TFTP 서버로부터 전송되는 첫번째 데이터 패킷에서 파일 크기 정보를 추출한 후에 상기 파일 크기 정보에 대응하는 임시 메모리 영역을 할당하는 과정과; 상기 TFTP 서버로부터 전송되는 데이터 패킷을 임시 메모리 영역에 저장했다가 파일 다운로드 완료시 특정 플래시 메모리 번지에 저장하는 과정을 포함하는 티에프티피 파일 다운로드 방법을 제공하는데 있다.A feature of the present invention for achieving the above object is, in the file download method using a TFTP, the TFTP server to transfer the size information of the file requested to be downloaded from the TFTP client in the first data packet to the TFTP client and; Allocating a temporary memory area corresponding to the file size information after extracting file size information from a first data packet transmitted from the TFTP server; The present invention provides a method for downloading a TIF file including storing a data packet transmitted from the TFTP server in a temporary memory area and storing the data packet in a specific flash memory address when the file download is completed.

그리고, 상술한 티에프티피 파일 다운로드 방법은, 상기 TFTP 클라이언트에서 자신의 플래시 메모리에 대한 사용 영역 정보를 별도의 메모리 또는 테이블에 저장하여 관리하는 과정을 더 포함하는 것을 특징으로 한다.The TFTP file download method may further include storing and managing usage area information of its own flash memory in a separate memory or a table in the TFTP client.

한편, 상기 다운로드 요청된 파일 크기 정보를 첫번째 데이터 패킷에 실어 TFTP 클라이언트로 전송하는 과정은, TFTP 클라이언트가 특정 파일의 다운로드를 요청하는 경우 다운로드 요청한 파일을 패킷 단위로 분해하는 단계와; 분해한 첫번째 데이터 패킷의 상위 4 바이트에 파일 크기 정보를 실어 상기 TFTP 클라이언트로 전송하는 단계를 포함하는 것을 특징으로 한다.On the other hand, the step of transmitting the file size information requested for download in a first data packet to a TFTP client, if the TFTP client requests the download of a specific file, the step of decomposing the download request file in packet units; And sending file size information to the TFTP client in the upper 4 bytes of the decomposed first data packet.

또한, 상기 파일 크기 정보에 대응하는 임시 메모리 영역을 할당하는 과정은, 상기 TFTP 서버로부터 전송받은 첫번째 데이터 패킷에서 다운로드 요청한 파일 크기 정보를 추출하는 단계와; 추출한 파일 크기 정보를 비사용중인 램 메모리 크기와 비교하여 램 메모리만으로 TFTP 다운로드에 필요한 임시 메모리 할당이 가능한지를 확인하는 단계와; 램 메모리 만으로 임시 메모리 할당이 가능한 경우 램 메모리 만으로 다운로드 요청한 파일 크기에 대응하는 임시 메모리 영역을 할당하는 단계를 포함하는 것을 특징으로 하되, 상기 램 메모리 만으로 임시 메모리 할당이 가능하지 않은 경우 플래시 메모리 사용 영역 정보를 참조하여 플래시 메모리에서 사용되지 않고 있는 영역을 상기 램 메모리 영역만으로 부족한 임시 메모리 영역으로 할당하는 단계를 더 포함하는 것을 특징으로 한다.The process of allocating a temporary memory area corresponding to the file size information may include extracting file size information requested for download from a first data packet received from the TFTP server; Comparing the extracted file size information with an unused RAM memory size to determine whether temporary memory allocation for TFTP download is possible using only RAM memory; Allocating a temporary memory area corresponding to a file size requested for downloading with only RAM memory, when temporary memory allocation is possible using only RAM memory, and flash memory using area when temporary memory allocation is not possible using only RAM memory. The method may further include allocating an unused area of the flash memory to a temporary memory area lacking only the RAM memory area with reference to the information.

이하, 본 발명에 따른 실시예를 첨부한 도면을 참조하여 상세하게 설명하면 다음과 같다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.

본 발명에 따른 TFTP를 이용한 다운로드 시스템은 첨부한 도면 도 3에 도시한 바와 같이, TFTP 클라이언트(31)와 TFTP 서버(32)가 서로 네트웍으로 연결되어 파일을 다운로드 받는 구조를 갖되, TFTP 클라이언트(31)는 플래시 메모리가 현재 어떻게 사용되고 있는지를 나타내는 플래시 메모리 사용 영역 정보를 별도의 메모리 또는 테이블에 저장하여 관리한다.As illustrated in FIG. 3, the download system using the TFTP according to the present invention has a structure in which the TFTP client 31 and the TFTP server 32 are connected to each other in a network to download files, and the TFTP client 31. ) Stores and manages flash memory usage area information indicating how flash memory is currently used in a separate memory or table.

여기서, TFTP 서버(32)는 TFTP 클라이언트(31)가 특정 파일의 다운로드를 요청하는 경우 해당되는 파일을 일정 크기의 패킷 단위로 분해하여 전송하되, 첫번째 패킷에 다운로드 요청한 파일의 크기 정보를 실어 TFTP 클라이언트(31)로 전송한다.In this case, when the TFTP client 31 requests the download of a specific file, the TFTP server 32 decomposes the corresponding file into packet units of a predetermined size and transmits it, but the TFTP client loads the size information of the requested file in the first packet. Transfer to 31.

그리고, TFTP 클라이언트(31)는 TFTP 서버(32)로부터 자신이 다운로드 요청한 파일의 크기 정보를 전송받아 파일 다운로드시의 임시 메모리 영역을 할당하되, 해당되는 파일 크기 이상의 램 메모리 영역이 존재하는 경우 램 메모리 만으로 임시 메모리 영역을 할당하고, 램 메모리 영역이 부족한 경우 플래시 메모리 사용 영역 정보를 참조하여 플래시 메모리에서 사용되지 않고 있는 영역을 파일 다운로드시 부족한 임시 메모리로 할당하여 TFTP를 이용한 파일 다운로드를 수행한다.The TFTP client 31 receives the size information of the file requested by the TFTP server 32 from the TFTP server 32 and allocates a temporary memory area at the time of file download. Only the temporary memory area is allocated, and if the RAM memory area is insufficient, the area not used in the flash memory is allocated to the temporary memory which is insufficient when the file is downloaded by referring to the flash memory use area information to perform the file download using TFTP.

한편, 상술한 TFTP 다운로드 시스템의 파일 다운로드 동작을 첨부한 도면 도 4를 참조하여 설명하면 다음과 같다.Meanwhile, the file download operation of the above-described TFTP download system will be described with reference to FIG. 4.

먼저, 플래시 메모리를 가진 TFTP 클라이언트(31)는 TFTP 서버(32)와 연결한 후에 다운로드 받고자 하는 파일 이름을 TFTP 서버(32)로 전송하여 특정 파일의 다운로드를 요청하게 된다(스텝 S41).First, the TFTP client 31 having the flash memory connects to the TFTP server 32 and transmits a file name to be downloaded to the TFTP server 32 to request the download of a specific file (step S41).

그러면, TFTP 서버(32)는 TFTP 클라이언트(31)가 요청한 파일을 찾아 전송해 주게 되는데, 이때 파일을 512 바이트의 패킷 단위로 분해하여 TFTP 클라이언트(31)로 전송하되, 분해한 첫번째 데이터 패킷에 다운로드 요청한 파일의 크기 정보를 실어 전송하게 된다.Then, the TFTP server 32 finds and transmits the file requested by the TFTP client 31. At this time, the file is decomposed into 512 byte packets and transmitted to the TFTP client 31. The size information of the requested file is loaded and transmitted.

즉, TFTP 서버(32)는 TFTP 클라이언트(31)가 다운로드 요청한 파일을 찾아 512 바이트의 패킷 단위로 분해한 후(스텝 S42), 첫번째 패킷의 상위 4 바이트에 파일 크기 정보를 실어 TFTP 클라이언트(31)로 전송하게 된다(스텝 S43). 이때 첫번째 패킷에는 4 바이트의 파일 크기 정보 이외에 508 바이트의 실제 파일 데이터가 실린다.That is, the TFTP server 32 finds the file downloaded by the TFTP client 31, decomposes it into packet units of 512 bytes (step S42), and then loads file size information in the upper 4 bytes of the first packet, and then the TFTP client 31 (Step S43). In this case, 508 bytes of actual file data are loaded in addition to the file size information of 4 bytes.

그리고, TFTP 클라이언트(31)는 TFTP 서버(32)로 특정 파일의 다운로드를 요청한 후에 첫번째 패킷을 전송받게 되면, 전송받은 첫번째 패킷에서 자신이 다운로드 요청한 파일 크기 정보를 추출하여(스텝 S44), 파일 다운로드시에 필요한 임시 메모리 영역을 할당하게 된다.Then, when the TFTP client 31 receives the first packet after requesting the TFTP server 32 to download a specific file, the TFTP client 31 extracts the file size information requested for the download from the first packet received (step S44), and downloads the file. Allocate a temporary memory area for the system.

이때, TFTP 클라이언트(31)는 첫번째 패킷에서 추출한 파일 크기 정보를 비사용중인 램 메모리 크기와 비교하여, 자신이 다운로드 요청한 파일 크기에 대응하는 임시 메모리 영역을 램 메모리 영역만으로 할당 가능한지를 확인하게 되고(스텝 S45), 램 메모리 영역만으로 파일 다운로드시에 필요한 임시 메모리 영역 할당이가능한 경우 즉, 다운로드 요청한 파일 크기 이상의 비사용중인 램 메모리 영역이 존재하는 경우에는 램 메모리 만으로 다운로드 요청한 파일 크기에 대응하는 임시 메모리 영역을 할당하게 된다(스텝 S46).At this time, the TFTP client 31 compares the file size information extracted from the first packet with the unused RAM memory size and checks whether a temporary memory area corresponding to the file size requested by the TFT is allocated to the RAM memory area only ( Step S45), the temporary memory corresponding to the file size requested by the RAM memory only when the non-used RAM memory area larger than the size of the file requested for download exists, i.e., when the temporary memory area allocation required for file download is possible only by the RAM memory area. An area is allocated (step S46).

하지만, 램 메모리 영역만으로 파일 다운로드시에 필요한 임시 메모리 영역 할당이 가능하지 않은 경우 즉, 램 메모리 영역이 부족한 경우에는 플래시 메모리 사용 영역 정보를 참조하여 플래시 메모리에서 사용되지 않고 있는 영역을 파일 다운로드시 램 메모리 영역만으로 부족한 임시 메모리로 할당함으로써(스텝 S47), 램 메모리 영역만으로 파일 다운로드시에 필요한 임시 메모리 영역을 할당할 수 없는 경우에는 램 메모리 영역으로 임시 메모리 영역을 할당한 후에 부족한 임시 메모리 영역은 플래시 메모리에서 사용되지 않고 있는 영역을 할당하여 사용하게 된다. 이때 플래시 메모리 뿐만 아니라 임시로 데이터를 기록 및 판독할 수 있는 어떤 저장 매체라도 이용할 수 있으며, 이 경우 해당되는 저장 매체의 사용 영역 정보를 관리하고 있어야 한다.However, if the RAM memory area alone does not allow temporary memory area allocation for file download, that is, if the RAM memory area is insufficient, the RAM memory area may not be used for file download by referring to the flash memory usage area information. By allocating the temporary memory that is insufficient only in the memory area (step S47), if the temporary memory area necessary for file download cannot be allocated only by the RAM memory area, the temporary memory area that is insufficient after the memory is allocated to the RAM memory area is flashed. It allocates and uses the unused area in memory. At this time, not only the flash memory but also any storage medium capable of temporarily recording and reading data may be used. In this case, it is necessary to manage use area information of the corresponding storage medium.

그리고, TFTP 클라이언트(31)는 파일 다운로드시에 필요한 임시 메모리 영역을 할당한 후에 TFTP 서버(32)로부터 계속적으로 전송받게 되는 패킷을 할당한 임시 메모리 영역에 차례로 저장하게 되고(스텝 S48), 이후 TFTP 서버(12)로부터의 파일 다운로드가 완료되는지를 확인하여(스텝 S49), 파일 다운로드가 완료되면 TFTP 서버와의 연결을 해제하고, 임시 메모리 영역에 저장했던 파일을 특정 플래시 메모리 번지에 저장하게 된다(스텝 S50).Then, the TFTP client 31 allocates the temporary memory area necessary for downloading the file, and then sequentially stores the packet to be continuously transmitted from the TFTP server 32 in the allocated temporary memory area (step S48). It is checked whether the file download from the server 12 is completed (step S49), and when the file download is completed, the connection with the TFTP server is disconnected, and the file stored in the temporary memory area is stored in a specific flash memory address ( Step S50).

한편으로, 본 발명에서 램 메모리 영역과 플래시 메모리에서 사용되지 않고있는 영역을 합하더라도 파일 다운로드시에 필요한 임시 메모리 영역을 할당할 수 없는 경우에는 TFTP 파일 다운로드를 수행할 수 없게 된다.On the other hand, even if the RAM memory area and the area not used in the flash memory are combined in the present invention, the TFTP file download cannot be performed when the temporary memory area required for file download cannot be allocated.

나아가, 본 발명에 따른 실시예는 상술한 것으로 한정되지 않고, 본 발명과 관련하여 통상의 지식을 가진자에게 자명한 범위내에서 여러 가지의 대안, 수정 및 변경하여 실시할 수 있다.In addition, the embodiment according to the present invention is not limited to the above-described embodiments, and various alternatives, modifications, and changes can be made within the scope apparent to those skilled in the art.

이상과 같이, 본 발명은 TFTP 클라이언트가 다운로드 요청한 파일 크기 정보를 TFTP 서버가 전송해 줌으로써, TFTP 다운로드시에 파일 크기에 대응하는 만큼의 램 메모리만을 임시 메모리 영역으로 할당할 수 있어 보다 효과적인 램 메모리 활용이 가능해 진다.As described above, the present invention transmits the file size information requested by the TFTP client to the TFTP server so that only RAM memory corresponding to the file size can be allocated to the temporary memory area at the time of TFTP download. This becomes possible.

또한, 본 발명은 램 메모리만으로 TFTP 다운로드시에 필요한 임시 메모리를 할당할 수 없는 경우 TFTP 클라이언트가 플래시 메모리 사용 영역 정보를 관리함으로써, 플래시 메모리에서 사용되지 않고 있는 영역을 램 메모리만으로 부족한 임시 메모리 영역으로 할당할 수 있게 되고, 이로써 TFTP 다운로드를 수행할 수 있게 된다.In addition, in the present invention, when the RAM memory alone cannot allocate temporary memory required for TFTP download, the TFTP client manages flash memory usage area information, so that an area not used in the flash memory is replaced with a temporary memory area insufficient only by the RAM memory. Can be assigned, thereby enabling TFTP download.

Claims (5)

TFTP를 이용한 파일 다운로드 방법에 있어서,In the file download method using TFTP, TFTP 서버가 TFTP 클라이언트로부터 다운로드 요청된 파일의 크기 정보를 첫번째 데이터 패킷에 실어 상기 TFTP 클라이언트로 전송하는 과정과;Transmitting, by the TFTP server, the size information of the file requested to be downloaded from the TFTP client to the TFTP client by loading the first data packet; 상기 TFTP 서버로부터 전송되는 첫번째 데이터 패킷에서 파일 크기 정보를 추출한 후에 상기 파일 크기 정보에 대응하는 임시 메모리 영역을 할당하는 과정과;Allocating a temporary memory area corresponding to the file size information after extracting file size information from a first data packet transmitted from the TFTP server; 상기 TFTP 서버로부터 전송되는 데이터 패킷을 임시 메모리 영역에 저장했다가 파일 다운로드 완료시 특정 플래시 메모리 번지에 저장하는 과정을 포함하는 것을 특징으로 하는 티에프티피 파일 다운로드 방법.And storing the data packet transmitted from the TFTP server in a temporary memory area and storing the data packet in a specific flash memory address when the file download is completed. 제 1항에 있어서,The method of claim 1, 상기 TFTP 클라이언트에서 자신의 플래시 메모리에 대한 사용 영역 정보를 별도의 메모리 또는 테이블에 저장하여 관리하는 과정을 더 포함하는 것을 특징으로 하는 티에프티피 파일 다운로드 방법.And storing, by the TFTP client, usage area information of its own flash memory in a separate memory or table. 제 1항에 있어서,The method of claim 1, 상기 다운로드 요청된 파일 크기 정보를 첫번째 데이터 패킷에 실어 TFTP 클라이언트로 전송하는 과정은, TFTP 클라이언트가 특정 파일의 다운로드를 요청하는 경우 다운로드 요청한 파일을 패킷 단위로 분해하는 단계와;The process of transmitting the requested file size information in a first data packet to a TFTP client may include: decomposing the downloaded file into packet units when the TFTP client requests to download a specific file; 분해한 첫번째 데이터 패킷의 상위 4 바이트에 파일 크기 정보를 실어 상기 TFTP 클라이언트로 전송하는 단계를 포함하는 것을 특징으로 하는 티에프티피 파일 다운로드 방법.And transmitting the file size information to the TFTP client in the upper 4 bytes of the first data packet decomposed. 제 1항에 있어서,The method of claim 1, 상기 파일 크기 정보에 대응하는 임시 메모리 영역을 할당하는 과정은, 상기 TFTP 서버로부터 전송받은 첫번째 데이터 패킷에서 다운로드 요청한 파일 크기 정보를 추출하는 단계와;Allocating a temporary memory area corresponding to the file size information may include extracting file size information requested for download from a first data packet received from the TFTP server; 추출한 파일 크기 정보를 비사용중인 램 메모리 크기와 비교하여 램 메모리만으로 TFTP 다운로드에 필요한 임시 메모리 할당이 가능한지를 확인하는 단계와;Comparing the extracted file size information with an unused RAM memory size to determine whether temporary memory allocation for TFTP download is possible using only RAM memory; 램 메모리 만으로 임시 메모리 할당이 가능한 경우 램 메모리 만으로 다운로드 요청한 파일 크기에 대응하는 임시 메모리 영역을 할당하는 단계를 포함하는 것을 특징으로 하는 티에프티피 파일 다운로드 방법.And allocating a temporary memory area corresponding to a file size requested for downloading with only RAM memory when temporary memory allocation is possible using only RAM memory. 제 4항에 있어서,The method of claim 4, wherein 상기 램 메모리 만으로 TFTP 다운로드에 필요한 임시 메모리 할당이 가능한지를 확인하는 단계에서, 램 메모리 만으로 임시 메모리 할당이 가능하지 않은 경우 플래시 메모리 사용 영역 정보를 참조하여 플래시 메모리에서 사용되지 않고 있는 영역을 상기 램 메모리 영역만으로 부족한 임시 메모리 영역으로 할당하는 단계를 더 포함하는 것을 특징으로 하는 티에프티피 파일 다운로드 방법.In the step of checking whether the temporary memory allocation required for TFTP download is possible using only the RAM memory, when the temporary memory allocation is not possible using only the RAM memory, the RAM memory may be stored in the RAM memory by referring to flash memory usage area information. And a step of allocating a temporary memory area that is insufficient for the area only.
KR1020010069264A 2001-11-07 2001-11-07 TFTP File Downloading Method KR20030037917A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020010069264A KR20030037917A (en) 2001-11-07 2001-11-07 TFTP File Downloading Method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020010069264A KR20030037917A (en) 2001-11-07 2001-11-07 TFTP File Downloading Method

Publications (1)

Publication Number Publication Date
KR20030037917A true KR20030037917A (en) 2003-05-16

Family

ID=29568427

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020010069264A KR20030037917A (en) 2001-11-07 2001-11-07 TFTP File Downloading Method

Country Status (1)

Country Link
KR (1) KR20030037917A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100542368B1 (en) * 2004-02-10 2006-01-10 삼성전자주식회사 System and method for trivial file transfer protocol including broadcasting function
KR100590886B1 (en) * 2004-02-06 2006-06-19 삼성전자주식회사 apparatus and method of file transfer in File Transfer System
KR100736404B1 (en) * 2005-09-07 2007-07-09 삼성전자주식회사 Method for file download
US8769137B2 (en) 2011-06-23 2014-07-01 Honeywell International Inc. Systems and methods for negotiated accelerated block option for trivial file transfer protocol (TFTP)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100590886B1 (en) * 2004-02-06 2006-06-19 삼성전자주식회사 apparatus and method of file transfer in File Transfer System
KR100542368B1 (en) * 2004-02-10 2006-01-10 삼성전자주식회사 System and method for trivial file transfer protocol including broadcasting function
KR100736404B1 (en) * 2005-09-07 2007-07-09 삼성전자주식회사 Method for file download
US8769137B2 (en) 2011-06-23 2014-07-01 Honeywell International Inc. Systems and methods for negotiated accelerated block option for trivial file transfer protocol (TFTP)

Similar Documents

Publication Publication Date Title
EP1635256B1 (en) Communication system and method for upgrade of user terminal software and user terminal upgraded by same
US7395342B2 (en) Pre-execution environment compliant dynamic host configuration protocol relay agent
JP5557689B2 (en) Network system
US6668374B1 (en) Method and apparatus for upgrading firmware in an embedded system
US20080115144A1 (en) Method and Apparatus for Web Based Storage on Demand
CN107819802A (en) A kind of mirror image acquisition methods, node device and server in node cluster
CN1675621A (en) Method and apparatus for booting with remote configuration data
JP2003046569A (en) Load test execution device and system, and method and program thereof
JP2008518324A (en) Method and system for caching read requests for shared images in a computer network
CN101242330A (en) Electronic device, management server and control method thereof
KR20030037917A (en) TFTP File Downloading Method
CN114218317B (en) Progress information management and control method, micro-service device, electronic equipment and storage medium
KR100991891B1 (en) Connection management method, system, and program product
JP4642674B2 (en) Terminal management system
JP2008065611A (en) Software update method and software update program
CN112416509B (en) Virtual machine control system and related equipment
KR100397468B1 (en) Network management device and method using mib name server
KR100456978B1 (en) Method for File Downloading in Agent
CN102315958B (en) Method for loading file by communication blank panel and transmitting loaded file by host machine end
CN116302618B (en) Session information processing method and device
KR20060019146A (en) Apparatus and method of up-grade firmware in network card
CN112804371B (en) Domain name resolution processing method and device
KR100357637B1 (en) Image loading method of internet communication equipment
JP2000010786A (en) Server-client communication device and program downloading method using same device
KR100795185B1 (en) Method of program down load in client/server environment

Legal Events

Date Code Title Description
N231 Notification of change of applicant
WITN Withdrawal due to no request for examination