04 - TCPIP Protocol
04 - TCPIP Protocol
Version 3.0
Cisco Regional Networking Academy
Objectives
• Explain why the Internet was developed and how TCP/IP fits the design
of the Internet.
• List the four layers of the TCP/IP model.
• Describe the functions of each layer of the TCP/IP model.
• Compare the OSI model and the TCP/IP model.
• Describe the function and structure of IP addresses.
• Understand why subnetting is necessary.
• Explain the difference between public and private addressing.
• Understand the function of reserved IP addresses.
• Explain the use of static and dynamic addressing for a device.
• Understand how dynamic addressing can be done using RARP, BootP
and DHCP.
• Use ARP to obtain the MAC address to send a packet to another device.
• Understand the issues related to addressing between networks.
Table of Content
1 Introduction to TCP/IP
2 Internet addresses
3 Obtaining an IP addressing
INTRODUCTION TO TCP/IP
History and future of TCP/IP
• Responsibility
– Handles high-level protocols, issues of representation,
encoding, and dialog control, and assures this data is
properly packaged for the next layer.
• Concerned
– File Transfer ( TFTP*, FTP*, NFS)
– E-Mail (SMTP)
– Remote Login (Telnet*, rlogin)
– Network management (SNMP*)
– Name Management (DNS*)
* Used by the Router
Transport Layer
• Responsibility
–Provides reliable transport services from the source host to
the destination host (end-to-end) over networks.
• Concerned
–Segments, data stream, datagram.
–Defines end-to-end connectivity between host
applications.
–Transmission control protocol (TCP) – Connection oriented
–User datagram protocol (UDP) – Connectionless
–Flow control provided by sliding windows
–Reliability provided by sequence numbers and
acknowledgments
Transport Layer: TCP
• Responsibility
– Select the best path through the network for packets to
travel and packet switching
• Concerned
– Main protocol that functions at this layer is the Internet
Protocol (IP).
– Provides connectionless, best-effort delivery routing of
packets
– Defines a packet and an addressing scheme
– Transfers data between the Internet layer and network
access layers
– Routes packets to remote hosts
Internet layer (other protocols)
Similarities:
– Both have layers.
– Both have application layers, though they include very
different services.
– Both have comparable transport and network layers
– Packet-switched technology is assumed.
– Networking professionals need to know both.
Comparing TCP/IP with OSI (cont.)
Differences:
– TCP/IP combines the presentation and session layer
issues into its application layer.
– TCP/IP combines the OSI data link and physical layers
into one layer.
– TCP/IP appears simpler because it has fewer layers.
– Typically networks aren't built on the OSI protocol,
even though the OSI model is used as a guide.
Internet architecture
Internet architecture
32 bits
Decimal and binary conversion
Fast conversion
Network layer communication path
• According to RFC-1918.
• Organizations make use of the private Internet
address space for hosts that require IP
connectivity within their enterprise network, but
do not require external connections to the global
Internet.
• Class A: 10.0.0.0.
• Class B: 172.16.0.0 - 172.31.0.0.
• Class C: 192.168.0.0 - 192.168.255.0.
Introduction to subnetting
131.3.0.0
131.1.0.0 131.2.0.0
RARP Request
RARP Reply
MAC:
MAC: Known
Known RARP server
IP:
IP: Unknown
Unknown
Dynamic addressing: RARP
UDP Broadcast
UDP Broadcast
MAC:
MAC: Known
Known BOOTP server
IP:
IP: Unknown
Unknown IP
IP Address
Address
Gateway
Gateway MAC
MAC11 –– IP
IP11
IP
IP of
of server
server MAC
MAC22 –– IP
IP22
Filename
Filename ofof MAC
MAC33 –– IP
IP33
boot
boot file
file
Dynamic addressing: BOOTP
DHCP Discover
UDP Broadcast
DHCP Offer
UDP Broadcast
DHCP Request
IP Address
IP Address
Lease
Lease time
time
DHCP Ack
DHCP
DHCP sever
sever IP
IP DHCP server
MAC:
MAC: Known
Known Address
Address
IP:
IP: Unknown
Unknown IP
Gateway
Gateway IP11
IP
IP of
of other
other servers
servers IP
IP22
And
And more
more …… IP
IP33
DHCP message structure
Address Resolution Protocol (ARP)
A M
R
ARP operation
ARP Table:
? MAC
A.B.C.1.2.3
MAC
?
IP IP
197.15.22.33 197.15.22.35
Data
A B C
ARP operation: ARP request
A B C
ARP operation: Checking
is
at P
h I
T y
m
197.15.22.33 197.15.22.34 197.15.22.35
A B C
ARP operation: ARP reply
A B C
ARP operation: Caching
ARP Table:
A.B.C.7.3.5 – 197.15.22.35
A B C
ARP: Destination local
ARP: Destination not local
Default gateway
AR
PR
ep
ly
Send Data
to a device
Is the
MAC address N Send an
ARP request
in my ARP
cache
Y Get an
ARP reply
Send Data
Flowchart: Exercises
• Why the Internet was developed and how TCP/IP fits the
design of the Internet
• The four layers of the TCP/IP model
• The functions of each layer of the TCP/IP model
• The OSI model compared to the TCP/IP model
• IP addressing gives each device on the Internet a unique
identifier
• IP address classes are logical divisions of the address space
used to meet the needs of various sizes of networks
• Subnetting is used to divide a network into smaller networks
• Reserved addresses fulfill a special role in IP addressing and
cannot be used for any other purpose
• Private addresses cannot be routed on the public Internet.
Summary