< Home

Configuring an FTP Upload Test

An FTP upload test measures the speed at which a client uploads a specified file to 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 Put.

    ftp-operation put

  8. Configure the file to be uploaded.
    • Run the ftp-filename file-name command to set the name of the to-be-uploaded file.
    • Run the ftp-filesize size command to set the size of the to-be-uploaded file.

    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 name is specified, but the file size is not.
      • If the specified file is a local file, upload the local file to the FTP server.
      • If the specified file is not a local file, construct a 1000-kbyte file based on the file name specified by ftp-filesize.
    • 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.

    • Both the file name and the file size are specified.
      • 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.

      • If the specified file is not a local file, construct a file based on the file name specified by ftp-filesize, and the size of the uploaded local file is specified by ftp-filesize.

  9. Optional: Configure other FTP upload 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, 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.

  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, 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 %                
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 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

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