< Home

Configuring an FTP Download Test

An FTP download test measures the speed at which a client downloads a specified file from an FTP server.

Procedure

  1. Access the system view.

    system-view

  2. Create an NQA test instance and access the test instance view.

    nqa test-instance admin-name test-name

  3. Set the test type to FTP.

    test-type ftp

  4. Set the destination address.

    destination-address ipv4 ip-address

  5. Configure an FTP user name.

    ftp-username name

  6. Configure an FTP password.

    ftp-password password

  7. Set the operation type to Get.

    ftp-operation get

  8. Set the name of the file to be downloaded.

    ftp-filename file-name

    The specified file name must indicate a file existing on the FTP server. Otherwise, the test will fail.

  9. Optional: Configure other FTP download test parameters as required.

    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, port 21 is used as the destination port for FTP download tests.

    Setting the size of the file to be downloaded ftp-filesize size

    By default, no file size is specified. This is, the complete file is downloaded.

    If the specified size value is greater than the actual size of the file on the FTP server, download the complete file. If the specified size value is smaller than the actual file size, download only the specified part of the file.

    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, an FTP download probe times out in 15s.

    Setting the maximum number of historical records records history number

    By default, there are a maximum of 50 historical records.

    Setting the maximum number of test result records records result number

    By default, a maximum of 5 test results can be 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.

  10. Start the NQA test.

    start

    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 } ]

Follow-up Procedure

Run the display nqa results command to view the test results.

<FW> display nqa results
 NQA entry(admin, ftpdownload) :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: 26/26/26                                
   DataConnTime Min/Max/Average: 115/115/115                                   
   SumTime Min/Max/Average: 141/141/141                                     
   Average RTT:141                                                        
   Lost packet ratio:0 %                
Table 1 Description of the display nqa results command output

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:
  • success: The test is successful.

  • no result: The test is running, and no result has been obtained.

  • failed: The test fails.

RTD OverThresholds number

Number of times the RTD exceeds the specified threshold

MessageBodyOctetsSum

Total number of bytes transmitted in the FTP download 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

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >