Configuring an FTP Download Test Instance
Context
Before configuring an FTP download test instance, configure the FTP user name, password, and the login directory for the FTP server, and ensure reachable routes between the FTP client and the FTP server.
Pay attention to the following points for an FTP download test:
- The local device functions as an FTP client to download the specified file from the FTP server.
- An FTP download test can obtain statistics about each FTP phase, including the time spent in setting up an FTP control connection and the time spent in transmitting data.
The NQA client also functions as the FTP client. Perform the following steps on the NQA client.
Procedure
- Run:
system-view
The system view is displayed.
- Run:
nqa test-instance admin-name test-name
An NQA test instance is created, and the NQA view is displayed.
- Run:
test-type ftp
The test type is set to FTP.
- Run:
destination-address ipv4 ipv4-address
The destination address is configured.
- (Optional) Run the following commands as required to configure
parameters for the FTP test.
Run:
description string
A description is configured for the test instance.
Run:
frequency interval
The test period is set for the NQA test instance.
Run:
timeout time
The timeout period of a probe is set for the NQA test instance.
By default, the timeout period of a FTP probe is 15 seconds.
Run:
destination-port port-number
The destination port number is configured.
Run:
source-address ipv4 ipv4-address
The source IP address is configured.
Run:
source-port port-number
The source port number is configured.
Run:
ttl number
The TTL value in the NQA test packet is set.
Run:
sendpacket passroute
The NQA test instance is configured to send packets without searching the routing table.
Run:
tos value
Type of Service (TOS) is set for the test packet.
Run:
ftp-filesize size
The file size is set for the FTP test instance.
Run:
vpn-instance vpn-instance-name
The VPN instance name is configured.
Run:
records history number
The maximum number of historical records is set for the NQA test instance.
Run:
records result number
The maximum number of result records is set for the NQA test instance.
Run:
agetime hh:mm:ss
The aging time is set for the NQA test instance.
- Run:
ftp-operation get
The FTP operation type is set to Get.
- Run:
ftp-username name
The FTP user name is configured.
- Run:
ftp-password { password | cipher cipher-password }
The FTP password is configured.
- Run:
ftp-filename file-name
The file name and file path are configured for the FTP test instance.
During the FTP test, select a file of a small size. If the file is too large, the test may fail because of timeout.
The file download operation cannot save the file to the local file system, but only count the time taken to download the file. The system releases the memory immediately after obtaining the data.