8 FTP, TFTP and XModem
Quidway NetEngine20/20E
Configuration Guide - Basic Configurations
8-2
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 05 (2010-01-30)
8.1 Introduction
8.1.1 FTP
File Transfer Protocol (FTP) is an application layer protocol in the TCP/IP protocol suite. It
implements file transfer between remote hosts based on related file systems. The FTP protocol
is implemented based on corresponding file system.
The router provides the following FTP services:
z
FTP server service. Users can run the FTP client program to log in to the router and
access the files on the router.
z
FTP client service. Users can establish a connection with the router by running a terminal
emulation program or a Telnet program on a PC. Enter an FTP command to connect with
the remote FTP server and access the files on the remote host.
The FTP supports two file transfer formats:
z
Binary format for program files
z
ASCII format for text files
8.1.2 TFTP
The Trivial File Transfer Protocol (TFTP) is a simple file transfer protocol.
Compared with FTP, TFTP does not have a complex interactive access interface and
authentication control. TFTP is applicable in an environment where there is no complex
interaction between the client and the server. For example, TFTP is used to obtain the memory
image of the system when the system starts up.
TFTP is implemented based on UDP.
The client initiates the TFTP transfer. To download files, the client sends a read request packet
to the TFTP server, receives packets from the server, and sends acknowledgement to the
server. To upload files, the client sends a write request packet to the TFTP server, sends
packets to the server, and receives acknowledgement from the server.
The NE20/20E can serve as the TFTP client only and thus can be used only to transfer files in
the binary format.
8.1.3 XModem
XModem is a file transfer protocol and is widely used due to its simplicity and performance.
XModem transfers files through serial interfaces. It supports packets of 128 bytes and 1K
bytes, common checksum and CRC, and retransmission for several times (usually 10 times)
when packet error occurs.
z
XModem file transfer consists of the receiving program and the sending program. The
receiving program first sends the negotiation character to negotiate the check mode.
z
After the negotiation succeeds, the sending program begins to send packets.
z
When the receiving program receives a complete packet, it checks the packet according
to the negotiated mode: