tcp ip service programs appl
TRANSCRIPT
-
8/6/2019 Tcp Ip Service Programs Appl
1/32
TCP/IP service programs and applications
RA22236EN10GLS0 2009 Nokia Siemens Networks
1
Contents
1 TCP/IP service programs 3
1.1
Ping 4
1.2 Tracert 6
1.3 PathPing 8
2 Remarks on TCP 11
2.1 Slow start and congestion avoidance 12
3 Remarks on FTP 15
4 WWW 21
5 Exercise 25
6 Solution 29
TCP/IP service programs and
applications
-
8/6/2019 Tcp Ip Service Programs Appl
2/32
TCP/IP service programs and applications
RA22236EN10GLS0
2009 Nokia Siemens Networks2
-
8/6/2019 Tcp Ip Service Programs Appl
3/32
TCP/IP service programs and applications
RA22236EN10GLS0 2009 Nokia Siemens Networks
3
1 TCP/IP service programs
-
8/6/2019 Tcp Ip Service Programs Appl
4/32
TCP/IP service programs and applications
RA22236EN10GLS0
2009 Nokia Siemens Networks4
1.1 Ping
The command Ping can be used to check the network connection to one or severalremote hosts. The command runs an application which generates an ICMP (InternetControl Message Protocol) Echo Request data packet (this is an IP packet withProtocol = 1, Type field = 8) which is sent to the host. An Echo Reply is expectedfrom the host (this is an IP packet with Protocol = 1, Type field = 0).
In the Windows Ping, after 1 second a new packet is sent again. As a default, 4packets, each having 32 bytes data, are sent. The sent and received data arecompared. The length of the data sent can be modified with the command ping [l] tomaximum 65527 bytes. In the output of the ping command the number of sent,received, and lost packets as well as the ping delay is given.
The following figure shows an example:
-
8/6/2019 Tcp Ip Service Programs Appl
5/32
TCP/IP service programs and applications
RA22236EN10GLS0 2009 Nokia Siemens Networks
5
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Fig. 1 An example for the ping command
-
8/6/2019 Tcp Ip Service Programs Appl
6/32
TCP/IP service programs and applications
RA22236EN10GLS0
2009 Nokia Siemens Networks6
1.2 Tracert
The Tracert (trace route) tool checks the route to a destination by sending ICMP(Internet Control Message Protocol) Echo Request data packets with different TTL(time to live) values starting with TTL=1 for the first packet, then TTL=2 for the nextpacket,
Each node decreases the TTL value by 1 before further transmitting the data packet.
If the TTL value of a data packet reaches value 0, the corresponding node sendsback an error message ("time exceeded"). By checking these error messages, theTracert tool checks the route to the destination.
The following figure shows an example:
-
8/6/2019 Tcp Ip Service Programs Appl
7/32
TCP/IP service programs and applications
RA22236EN10GLS0 2009 Nokia Siemens Networks
7
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Fig. 2 An example for the tracert command
-
8/6/2019 Tcp Ip Service Programs Appl
8/32
TCP/IP service programs and applications
RA22236EN10GLS0
2009 Nokia Siemens Networks8
1.3 PathPing
The tool PathPing extends the features of the Ping and Tracert commands and offersmore information than those commands do.
During a certain time, data packets are sent to each node contained in the path to acertain destination. Statistics are calculated based on the data packets which aresent back from these nodes. Since the PathPing command shows losses of packetsfor each of the nodes and each connection, this command can be used to localizethose nodes and/or connections making problems.
The following figure shows an example:
Fig. 3 Part 1 of an example for the pathping command
-
8/6/2019 Tcp Ip Service Programs Appl
9/32
TCP/IP service programs and applications
RA22236EN10GLS0 2009 Nokia Siemens Networks
9
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Fig. 4 Part 2 of an example for the pathping command
-
8/6/2019 Tcp Ip Service Programs Appl
10/32
TCP/IP service programs and applications
RA22236EN10GLS0
2009 Nokia Siemens Networks10
-
8/6/2019 Tcp Ip Service Programs Appl
11/32
TCP/IP service programs and applications
RA22236EN10GLS0 2009 Nokia Siemens Networks
11
2 Remarks on TCP
-
8/6/2019 Tcp Ip Service Programs Appl
12/32
TCP/IP service programs and applications
RA22236EN10GLS0
2009 Nokia Siemens Networks12
Since many applications are running based on TCP (Transmission Control Protocol)we want to shortly mention in this chapter some problems arising from the usage ofTCP.
2.1 Slow start and congestion avoidance
In TCP the transmission performance in the beginning of a data transmission andafter a congestion situation is characterized by the so called slow start phase.
During slow start, the initial size of the so called congestion window, which is usedby the sender for flow control, is usually one segment only. Each time anacknowledgement is received by the sender, the size of the congestion window isdoubled during slow start phase, i.e. the amount of transmitted data startsexponentially. At a certain point, when the congestion window becomes too large,congestion occurs and data packets are discarded.
The initial slow start threshold, which is set to 65535 bytes, is reset to one half of thereceiver's window size. If now the congestion window is less or equal to this resetslow start threshold, then TCP restarts with slow start.
If the congestion window size reaches the slow start threshold again, TCP changesfrom the slow start to the so called congestion avoidance phase. In this phase, thecongestion window is not increased exponentially but linearly: Each time anacknowledgement is received, the congestion window is increased by 1 step, butcannot be increased more than the value suggested by the receiver.
In case of congestion, the slow start threshold is reset to half of its actual value and
the congestion window is reset to 1 segment.
-
8/6/2019 Tcp Ip Service Programs Appl
13/32
TCP/IP service programs and applications
RA22236EN10GLS0 2009 Nokia Siemens Networks
13
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8,760
Slow start threshold, start value = 65535
congestion occurs
Slow start threshold, readjusted value
receivers window seize
cwnd
readjustment
of slow start
threshold
first phase:
slow start,
exponential growth
second phase:
slow start,
exponential growth
third phase:
congestion avoidance,
linear growth
Fig. 5 Slow start and congestion avoidance
-
8/6/2019 Tcp Ip Service Programs Appl
14/32
TCP/IP service programs and applications
RA22236EN10GLS0
2009 Nokia Siemens Networks14
-
8/6/2019 Tcp Ip Service Programs Appl
15/32
TCP/IP service programs and applications
RA22236EN10GLS0 2009 Nokia Siemens Networks
15
3 Remarks on FTP
-
8/6/2019 Tcp Ip Service Programs Appl
16/32
TCP/IP service programs and applications
RA22236EN10GLS0
2009 Nokia Siemens Networks16
With FTP (File Transmission Protocol) , files can be transferred between computers.
FTP is standardized in RFC 959.
A FTP session requires two programs:
On the server side: A FTP server implementation.
On the client side: A FTP client program which, on most PC systems, is availableunder the command "ftp".
A FTP session is started from the client side by the ftp command with the name orthe IP number of the (remote) server. The server requires an identification andauthentication from the client and therefore prompts the client for the username andpassword. After the login procedure has been successful, the client can access theservers file system and enter commands for the transfer of files.
-
8/6/2019 Tcp Ip Service Programs Appl
17/32
TCP/IP service programs and applications
RA22236EN10GLS0 2009 Nokia Siemens Networks
17
User command meaning
User login with user namedir show directory content
ls list directory content
Pwd print working directory
Cd change dir
get get file
put put file
mget get several files(*)
mput put several files(*)
send send file
receive receive file
binary use transparent transmission
text use text transmission (ascii)
? show available commands (help)
! go to local shell
rmdir remove directory
open open connection to host
quit end connection
bye end connection
status show current status
remotehelp help from remote server
hash generates a # symbol on the screen for
every 2 kbytes transmitted
-
8/6/2019 Tcp Ip Service Programs Appl
18/32
TCP/IP service programs and applications
RA22236EN10GLS0
2009 Nokia Siemens Networks18
Fig. 6 Download of a file with 100 KBytes using FTP and CS2
-
8/6/2019 Tcp Ip Service Programs Appl
19/32
TCP/IP service programs and applications
RA22236EN10GLS0 2009 Nokia Siemens Networks
19
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Fig. 7 Download of a file with 500 KBytes using FTP and CS2 (3 timeslots)
-
8/6/2019 Tcp Ip Service Programs Appl
20/32
TCP/IP service programs and applications
RA22236EN10GLS0
2009 Nokia Siemens Networks20
Fig. 8 Download of a file with 1Mbyte using FTP and MCS9 (2 timeslots)
-
8/6/2019 Tcp Ip Service Programs Appl
21/32
TCP/IP service programs and applications
RA22236EN10GLS0 2009 Nokia Siemens Networks
21
4 WWW
-
8/6/2019 Tcp Ip Service Programs Appl
22/32
TCP/IP service programs and applications
RA22236EN10GLS0
2009 Nokia Siemens Networks22
The success of the Internet during the last years arises mainly from one applicationcalled WWW (World Wide Web). One has to distinguish the application WWW fromthe internet itself.
The WWW as a protocol standard was developed in the CERN research center inGeneva. Scientists developed the HTTP (Hypertext Transfer Protocol) which allowsan easy transmission of information containing not only text, but also pictures,programs, sound files links to other information etc.
An example for the download of an Internet page using a (3+1) GPRS mobile is givenin the following picture:
-
8/6/2019 Tcp Ip Service Programs Appl
23/32
TCP/IP service programs and applications
RA22236EN10GLS0 2009 Nokia Siemens Networks
23
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Fig. 9 Example for the download of an Internet page
-
8/6/2019 Tcp Ip Service Programs Appl
24/32
TCP/IP service programs and applications
RA22236EN10GLS0
2009 Nokia Siemens Networks24
-
8/6/2019 Tcp Ip Service Programs Appl
25/32
TCP/IP service programs and applications
RA22236EN10GLS0 2009 Nokia Siemens Networks
25
5 Exercise
-
8/6/2019 Tcp Ip Service Programs Appl
26/32
TCP/IP service programs and applications
RA22236EN10GLS0
2009 Nokia Siemens Networks26
-
8/6/2019 Tcp Ip Service Programs Appl
27/32
TCP/IP service programs and applications
RA22236EN10GLS0 2009 Nokia Siemens Networks
27
Exercise
Title: Throughput when using FTPObjectives: Understanding of different throughput rates when using FTP
Pre-requisite: none
Task
Answer the following questions
Query
Consider the screenshot of Figure 6. How many bytes are received by the (3+1)
GPRS mobile in 28.89 seconds?
Consider the screenshot of Figure 7. How many bytes are received by the (3+1)GPRS mobile in 133.75 seconds?
Concerning FTP, why is the throughput usually higher when downloading larger files?
-
8/6/2019 Tcp Ip Service Programs Appl
28/32
TCP/IP service programs and applications
RA22236EN10GLS0
2009 Nokia Siemens Networks28
-
8/6/2019 Tcp Ip Service Programs Appl
29/32
TCP/IP service programs and applications
RA22236EN10GLS0 2009 Nokia Siemens Networks
29
6 Solution
-
8/6/2019 Tcp Ip Service Programs Appl
30/32
TCP/IP service programs and applications
RA22236EN10GLS0
2009 Nokia Siemens Networks30
-
8/6/2019 Tcp Ip Service Programs Appl
31/32
-
8/6/2019 Tcp Ip Service Programs Appl
32/32
TCP/IP service programs and applications