CISCO CCNA1 Exploration - Network - Chapter - 4
CISCO CCNA1 Exploration - Network - Chapter - 4
CISCO CCNA1 Exploration - Network - Chapter - 4
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 1
Objectives
Explain the role of Transport Layer protocols and
services in supporting communications across data
networks
Analyze the application and operation of TCP
mechanisms that support reliability
Analyze the application and operation of TCP
mechanisms that support reassembly and manage
data loss.
Analyze the operation of UDP to support
communicate between two processes on end devices
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 2
Transport Layer Role and Services
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 3
Cont…
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 4
Transport Layer Role and Services
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 5
Separating Multiple Communications
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 6
Controlling the conversation
The primary functions specified by all Transport layer protocols include:
Segmentation and Reassembly
Conversation Multiplexing - There may be many applications or services
running on each host in the network. Each of these applications or services is
assigned an address known as a port so that the Transport layer can
determine with which application or service the data is identified.
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 9
Reliable Delivery
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 10
Same Order Delivery
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 11
Flow Control
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 12
Supporting Reliable communication
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 13
Transport Layer Role and Services
Supporting Reliable Communication
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 14
TCP & UDP
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 16
Transport Layer Role and Services
Identify how a port number is represented and describe
the role port numbers play in the TCP and UDP
protocols.
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 17
Types of ports
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 18
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 19
Client sends TCP segment with:
–Destination Port: 23 (Well known port number)
–Source Port: 1028 (Dynamic Port assigned by client)
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 20
Server responds with TCP segment with:
–Destination Port: 1028 (Dynamic Port assigned by client)
–Source Port: 23 (Well known port number)
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 21
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 22
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 23
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 24
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 25
Using NetStat
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 27
Application and Operation of TCP Mechanisms
Trace the steps that show how the TCP reliability
mechanism works as part of a session
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 28
Application and Operation of TCP Mechanisms
An individual server cannot have two services assigned to the same port number
within the same Transport layer services. A host running a web server application
and a file transfer application cannot have both configured to use the same port (for
example, TCP port 8080).
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 29
TCP Connection Establishment and Termination
In TCP connections, the host serving as a client initiates the session to the
server. The three steps in TCP connection establishment are:
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 31
Application and Operation of TCP Mechanisms
Trace the steps in the handshake in the termination of
TCP sessions
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 32
Managing TCP Sessions
Describe how TCP sequence numbers are used to
reconstruct the data stream with segments placed in
the correct order
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 33
Managing TCP Sessions
Describe the retransmission.remedy for lost data
employed by TCP (see 4.3.3)
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 34
Flow control
As the transport layer sends data segments, it tries to ensure that
data is not lost. Data loss may occur if a host cannot process data
as quickly as it arrives. The host is then forced to discard the data.
Flow control ensures that a source host does not overflow the
buffers in a destination host. To provide flow control, TCP allows
the source and destination hosts to communicate. The two hosts
then establish a data-transfer rate that is agreeable to both.
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 35
Managing TCP Sessions
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 36
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 37
Reducing Window size
Describe the mechanisms in TCP that manage the
interrelationship between window size, data loss and
congestion during a session
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 38
UDP Protocol
Describe the characteristics of the UDP protocol and
the types of communication for which it is best suited
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 39
UDP Datagram Reassembly
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 41
UDP Protocol
Describe in detail the process specified by the UDP
protocol to reassemble PDUs at the destination device
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 42
UDP server process and requests
Like TCP-based applications, UDP-based server applications are
assigned Well Known or Registered port numbers. When these
applications or processes are running, they will accept the data matched
with the assigned port number. When UDP receives a datagram destined
for one of these ports, it forwards the application data to the appropriate
application based on its port number.
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 43
UDP Protocol
The UDP client process randomly selects a port number from the dynamic
range of port numbers and uses this as the source port for the conversation.
The destination port will usually be the Well Known or Registered port
number assigned to the server process.
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 44
ITE PC v4.0
Chapter 1 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 45