Professional Documents
Culture Documents
Introduction
A key feature of the E6474A Drive Test tool is its data test capabilities, including FTP testing of the TCP-IP layer.
This document shows some typical testing scenarios that highlight the capabilities of using the FTP IPv4/IPv6
test.
Network troubleshooting - a simple FTP transaction can help identify network failures, traffic problems and
highlight performance issues.
Network benchmarking - comparing network performance using different FTP tests running in parallel.
Network capacity evaluation - the buffer size feature combined with real-time measurements can help identify
network capacity issues or physical limits.
In this document the following aspects of FTP testing, using the E6474A solution, are outlined and explained:
Features of the FTP test
Parallel FTP
Multiple file downloads and uploads
Passive versus Active mode
IPv4 and IPv6
Buffer size
Abstract
Progress bar
The FTP IPv4/IPv6 Test is
Saving files to disc
designed to meet your Drive Test
Measurements
needs and accommodate the fast
Connection performance KPIs
evolution of wireless networks.
Running and average/final throughput
Find out how to best configure
E6474A FTP versus DOS FTP
your FTP test environment to get
Device binding
the most accurate information
IPv6 addressing format
from your data network.
Frequently Asked Questions
WEBSITE: www.jdsu.com/test
Features
Parallel FTP
A unique feature of the JDSU FTP test is its ability to run multiple
instances on more than one device in parallel. The FTP test has
been designed to run network benchmarking using multiple
devices each connected to a different network. To enable this
feature all the network communication and FTP protocol code
has been implemented without using any third-party or high level
APIs. Both the data and control sockets are bound to the chosen
device. This ensures all traffic goes to the targeted interface such as
modems, wireless cards and network cards.
on a random port and this time it is the server that will connect to
the client. If the client is behind a firewall, the connection request
from the server might be blocked.
If the FTP test fails to connect while in active mode then it is
recommended you try using passive mode before investigating
other possible reasons for the test failure.
Passive mode is mostly used within a LAN network because most
firewalls block incoming connections from unknown ports.
The FTP test supports IPv4 and IPv6 protocols. This means you
can test IPv6 to IPv6 network and IPv4 to IPv4 network nodes by
selecting the appropriate protocol in the FTP IP Network Type
as shown below:
The FTP test supports multiple download and upload of files. All
files must be downloaded from, or uploaded to, the same folder
defined in the properties of the test. This differs from repeating a
single file FTP test for two reasons:
The connection to the remote FTP server is kept open
and only the data link is reopened. This has the benefit of
simulating what the real user would do when downloading
or uploading multiple files.
Different files can be chosen for the same connection.
When selecting multiple files you can also define a pause between
each file which is uploaded or downloaded.
Node A
Network Type
Node B
Supported
IPv4
IPv6
Yes
IPv4
IPv4
IPv6
No
IPv4
IPv4
IPv4
Yes
IPv6
IPv6
Yes
IPv6
IPv6
IPv6
IPv4 or IPv6
IPv4
No
TCP-IP Stack
Socket
TCP Buffer
File to be transferred
data
send
Block 1
Buffer size
Block 2
GPRS
4 KBytes
64 KBytes
Server
Packet 2
send
ack
send
ack
Packet N
send
ack
Packet 1
fragmentation
ACK
The TCP buffer size can be set in the FTP test properties.
The default FTP buffer size is 64 KBytes. It is also the default buffer
size of most FTP clients.
As explained previously the buffer size will affect the performance
of TCP. For instance, in case of FTP upload, a buffer too large will
increase network congestion and the throughput will drop. On the
other hand a buffer size too small will have the opposite effect and
the throughput will be consistent but low.
The following figure shows a FTP upload running throughput
line chart. The square shape shows periods of no activity due
to the socket being nonresponsive for too long. This is usually
an indication that the buffer is too large and that the network is
overloaded:
Upload Throughput
Time
Progress bar
The JDSU FTP test has the ability to monitor the file transfer
progress using the FTP Test Completed data item from the FTP
Results frame. By selecting this data item and adding it to a Grid
View and then configuring the properties of that data items to
display the range of expected values you can generate a progress
bar for the FTP test. Here are the values for this data item reported
during an FTP transaction.
0 = FTP connecting to server
5 = FTP connected
7 = User authenticated
10 = Data connection established
10 to 100 = File transfer progress
If there is a test failure, this data item can help to troubleshoot the
test by showing where to start looking for a problem.
For example if the test fails at the stage FTP connecting to server
(value = 0), check that you have the right server name and IP
address.
Measurements
Time calculation
DNS Resolution
DNS Time
Connect
Connect Time
Authentication Pause
Authentication Time
Response
Transfer
Response Time
GET Time
Total Time
Pause
Second File
Response
Transfer
Response Time
GET Time
Total Time
Optional pauses can be added to the FTP test after the connection
has been authenticated. For multi-file FTP tests a different pause
can be added for each subsequent file transfer.
Throughput calculation
The DOS FTP is faster than any Windows FTP tool due to its
extra access privileges. However, the JDSU FTP can be as fast as
the DOS FTP.
The main advantages of using the JDSU FTP test over DOS FTP
are:
Produces real-time measurements and timers
Provides error reports
Supports multiple devices
The DOS FTP only provides final measurements and does
not allow device selection. The JDSU FTP test provides more
details about progress and errors. The JDSU FTP test also uses
synchronous socket mode which is also used by DOS FTP.
A benchmark test was used to compare the DOS FTP and E6474A
FTP tests. First five FTP GET tests were run for both the DOS and
E6474A FTP tests in parallel. The tests used the same device and
remote file from the same FTP server. Then five FTP PUT tests
were performed using the same conditions but this time using
source files of the same size but with different file names to prevent
file writing violations on the server.
E6474A FTP
Time
Total
Throughput
Time
Total
Throughput
Get
51.94
967.76
50.189
978.06
Put
25.92
1939.04
26.40
1858.90
Get
52.00
966.64
45.95
1068.18
Put
24.64
2039.84
25.76
1905.07
Get
99.42
505.60
99.11
495.28
Put
26.39
1904.64
25.11
1954.84
Get
99.21
506.72
98.86
496.53
Put
25.45
1974.80
26.17
1875.52
Get
88.42
568.48
88.72
553.28
Put
24.75
2030.96
24.47
2006.05
2500
2000
1500
E6474A Tp Uplink
1000
DOS Tp Uplink
500
0
1200
1000
800
600
400
E6474A Tp Downlink
200
0
DOS Tp Downlink
Device binding
The JDSU FTP test supports device binding which allows
multiple FTP tests to bind to different devices and run in parallel.
Device binding is a two step process. The socket is first bound to
the assigned IP address of the device parent, with both IPv6 and
IPv4 being supported.
A second binding occurs at the routing table level. Unfortunately
in the Windows Operating System, the routing table supersedes
the socket binding. The routing table decides which device to use
for sending packets. To ensure data goes to the correct device a
route is added to the operating system routing table.
Note: Since IPv6 does not share the same routing table as IPv4 this
makes the bindings more complicated. However, E6474A FTP
deals with those complications to make sure the communication
is bound to the correct device.
16
32 bits
IPv4 address
Changing the buffer size for download has less impact than for
upload. Most PCs can receive and store data faster than the FTP
server can send data. Thus a small buffer size can be as effective
as a large one. However, a very large buffer size can be a waste
of memory and take up resources that can be used by other
processes running on your PC. JDSU recommends a buffer size of
2000KBytes for downloads.
Yes. Large buffer size will increase the risk of network congestion.
This means that the FTP test sends more data than the network
can cope with, resulting in packets being dropped and resent. Also
the FTP server bandwidth is shared amongst multiple users and
can be limited. The server might not be able to receive as fast as the
FTP client can send. It is possible to check packets dropped and
other network information using the DOS command
netstat s1.
Additionally using a line chart and monitoring the throughput
you will see the square stepped shape line indicating periods of low
throughput as the network layer is overloaded and consequently
not updating the layer above (FTP application layer) fast enough.
If you believe your network can cope with a larger buffer sizes
but you still see throughput problems then check your network
reliability using the DOS command netstat s. Refer to the
section on Buffer size (page 3) for more information.
Why does IE FTP and DOS FTP work while the JDSU
FTP does not?
This IPv4 error occurs when the remote FTP server is not
responding to connection attempts. This could be due to network
congestion or the FTP server not completely disconnecting from
the previous session.
This IPv4 error occurs when the application can not parse the
reply returned from the remote FTP server. For example, the
servers reply might include additional spaces between command
codes or the FTP server welcome/warning message is too large to
fit into single a internet packet and get phrased.
IPv6
NORTH AMERICA
LATIN AMERICA
ASIA PACIFIC
http://technet.microsoft.com/en-us/network/bb530961.aspx
EMEA
Product specifications and descriptions in this document subject to change without notice. 2010 JDS Uniphase Corporation
WEBSITE: www.jdsu.com/test
DTFTPTEST.AN.NSD.TM.AE
Jan 2011