An FTP upload test measures the speed at which a client uploads a specified file to an FTP server.
nqa test-instance admin-name test-name
test-type ftp
destination-address ipv4 ip-address
ftp-username name
ftp-password password
The uploaded files may have the following conditions according to different file names (configured by using the ftp-filename command) and file sizes (configured by using the ftp-filesize command):
The file size is specified, but the file name is not.
The NQA client creates a file named NQA-ftp-client.txt in the size specified in the ftp-filesize command.
If the specified file is a local file, upload the local file to the FTP server. If the size of the local file is greater than the file size specified in the ftp-filesize command, only the specified part of the file is uploaded. If the size of the local file is smaller than the file size specified in the ftp-filesize command, the NQA client directly sends the file.
| Item | Command | Description |
|---|---|---|
| Configuring description of a test instance | description description-information | - |
| Configuring a tested VPN instance | vpn-instance vpn-instance-name | - |
| Setting the source IP address of test packets | source-address ipv4 ip-address | By default, no source IP address is specified for test packets. The packets use the primary IP address of the outbound interface as their source IP address. The specified source IP address must be the IP address of an Up interface on the FW. Otherwise, the test will fail. |
| Setting the source port of test packets | source-port port-number | - |
| Setting the destination port of test packets | destination-port port-number | By default, the destination port of the test packet in the FTP upload test is set to 21. |
| Setting the TTL value of test packets | ttl value | The default value is 30. |
| Setting the ToS value of test packets | tos value | The default value is 0. |
| Setting the test interval | frequency interval | By default, no test interval is set, and the test runs only once. |
| Setting the timeout for a single probe | timeout time | By default, the expiration time for a single probe in the FTP upload test is 15s. |
| Setting the maximum number of historical records | records history number | By default, there are a maximum of 50 historical records. |
| Configuring the maximum number of test result records | records result number | By default, a maximum of five test results are recorded. |
| Setting the aging time of a test instance | agetime hh:mm:ss | The default value is 0. That is, test instances are never aged. |
| Configuring the system to send test packets without querying the routing table | sendpacket passroute | By default, the FW forwards the test packets based on the route queried in the routing table. |
Select one of the following start modes as required.
Start the NQA test immediately.
start now [ end { at [ yyyy/mm/dd ] hh:mm:ss | delay { seconds second | hh:mm:ss } | lifetime { seconds second | hh:mm:ss } ]
Start the NQA test at a specified time point.
start at [ yyyy/mm/dd ] hh:mm:ss [ end { at [ yyyy/mm/dd ] hh:mm:ss | delay { seconds second | hh:mm:ss } | lifetime { seconds second | hh:mm:ss } ]
Start the NQA test after the delay of a specified period.
start delay { seconds second | hh:mm:ss } [ end { at [ yyyy/mm/dd ] hh:mm:ss | delay { seconds second | hh:mm:ss } | lifetime { seconds second | hh:mm:ss } ]
Run the display nqa results command to view the test results.
<FW> display nqa results NQA entry(admin, ftpupload) :testFlag is inactive ,testtype is ftp 1 . Test 1 result The test is finished SendProbe:1 ResponseProbe:1 Completion:success RTD OverThresholds number: 0 MessageBodyOctetsSum: 167201 Stats errors number: 0 Operation timeout number: 0 System busy operation number:0 Drop operation number:0 Disconnect operation number: 0 CtrlConnTime Min/Max/Average: 25/25/25 DataConnTime Min/Max/Average: 115/115/115 SumTime Min/Max/Average: 140/140/140 Average RTT:140 Lost packet ratio:0 %
Item |
Description |
|---|---|
SendProbe |
Number of FTP connection initiation times |
ResponseProbe |
Number of times the FTP server responds to the FTP connection requests from the NQA client |
Completion |
Test completion state:
|
RTD OverThresholds number |
Number of times the RTD exceeds the specified threshold |
MessageBodyOctetsSum |
Total number of bytes transmitted in the FTP upload test |
Stats errors number |
Number of RTT measurement failures |
Operation timeout number |
Number of expiration times in the test |
System busy operation number |
Number of initialization or resource application failures |
Drop operation number |
Number of test packet sending failures |
Disconnect operation number |
Number of times the peer tears down the connection |
CtrlConnTime Min/Max/Average |
Minimum, maximum, and average periods for establishing control connections |
DataConnTime Min/Max/Average |
Minimum, maximum, and average periods for establishing data connections |
SumTime Min/Max/Average |
Minimum, maximum, and average test completion periods |
Average RTT |
Average RTT value |
Lost packet ratio |
Packet loss ratio |