Tcpand Ip Architecture
Tcpand Ip Architecture
Origins of TCP/IP
• Transmission Control Protocol/Internet Protocol (TCP/IP)
– Resulted from a coordinated effort by the U.S. Department
of Defense (DOD)
• Advanced Research Projects Agency (ARPA)
– Charged with creating a wide area network (WAN)
– Results were TCP/IP and ARPANET
• DOD funded two projects
– The adaptation of TCP/IP to work with UNIX
– The inclusion of the TCP/IP protocol with Berkeley UNIX
(BSD UNIX)
• The TCP/IP protocols that support file transfer, e-mail, and remote
login are probably the most familiar to users of the Internet.
Topics discussed in this section:
2.9
The TCP/IP Protocol Suite
The DoD and OSI models are alike in design and concept
and have similar functions in similar layers.
10
Encapsulation in the TCP/IP Suite
User data
Application
Application
Header User data
TCP
TCP Header Application data
IP TCP segment
Ethernet frame
Copyright by Jorg Liebeherr 98, 99
TCP/IP Protocol Suite
Hardware
ARP RARP Link Layer
Interface
Media
Copyright by Jorg Liebeherr 98, 99
Quiz
Name one function of the network layer
2.14
Figure 2.18 Relationship of layers and addresses in TCP/IP
2.15
Example 2.1
2.16
Figure 2.19 Physical addresses
2.17
Application Layer
• Handles high-level protocols, issues of
representation, encoding, and dialog control.
• The TCP/IP protocol suite combines all application
related issues into one layer and ensures this data is
properly packaged before passing it on to the next
layer.
TCP/IP Applications
Application Layer
21
Well Known Port Numbers
The following port numbers should be memorized:
NOTE:
The curriculum forgot to mention one of the most important port numbers.
Port 80 is used for HTTP or WWW protocols. (Essentially access to the internet.)
DNS
Imagine the difficulty of remembering the IP addresses of tens, hundreds, or even
thousands of Internet sites. A domain naming system was developed in order to
associate the contents of the site with the address of that site.
The Domain Name System (DNS) is a system used on the Internet for translating
names of domains and their publicly advertised network nodes into IP addresses.
There are more than 200 top-level domains on the Internet, examples of which
include the following:
.us – United States
.uk – United Kingdom
There are also generic names, which examples include the following:
.edu – educational sites
.com – commercial sites
.gov – government sites
.org – non-profit sites
.net – network service
FTP
FTP is a reliable, connection-oriented service that uses TCP to
transfer files between systems that support FTP.
These modes determine the encoding used for data file, which in the
OSI model is a presentation layer task.
After the file transfer has ended, the data connection terminates
automatically.
TFTP
TFTP is a connectionless service that uses User Datagram Protocol
(UDP).
TFTP can read, write, or mail files to or from a remote server but it
cannot list directories and currently has no provisions for user
authentication.
The Web pages are created with a format language called Hypertext
Markup Language (HTML).
The Telnet operation uses none of the processing power from the
transmitting computer. Instead, it transmits the keystrokes to the remote
host and sends the resulting screen output back to the local monitor. All
processing and storage take place on the remote computer.
Flow control avoids the problem of a transmitting host overflowing the buffers in
the receiving host. The two hosts communicate and then establish a data-transfer
rate that is agreeable to both.
Basic Windowing
Data packets must be
delivered to the
recipient in the same
order in which they
were transmitted to
have a reliable,
connection-oriented
data transfer.
An easy solution is to
have a recipient
acknowledge the
receipt of each packet
before the next
packet is sent.
Sliding Window
Sliding Window
with Different Window Sizes
TCP Sequence & Acknowledgement
TCP
Transmission Control Protocol (TCP) is a connection-oriented Layer 4
protocol that provides reliable full-duplex data transmission.
42
UDP
User Datagram Protocol (UDP) is the connectionless transport protocol
in the TCP/IP protocol stack.
Port numbers are used to keep track of different conversations crossing the
network at the same time.
Application software developers agree to use well-known port numbers that are
issued by the Internet Assigned Numbers Authority (IANA).
45
Key concepts of Host to Host
Protocols
TCP UDP
Sequenced Unsequenced
Reliable Unreliable
Connection-oriented Connectionless
Virtual circuit Low overhead
Acknowledgments No acknowledgment
Windowing flow control No windowing or flow
control
46
Key Protocols and Port Numbers
TCP UDP
Telnet 23 SNMP 161
SMTP 25 TFTP 69
HTTP 80 DNS 53
FTP 21
DNS 53
HTTPS 443
47
Network Layer Protocols and Internet Protocol (IP)
Provides services
to exchange data
over the network
between end
devices.
4 Processes:
Addressing
Encapsulation
Routing
Decapsulation
Internet Layer
• The purpose of the Internet layer is to send packets
from a network node and have them arrive at the
destination node independent of the path taken.
• Internet layer protocols:
– Internet Protocol (IP)
– Internet Control Message Protocol (ICMP)
– Address Resolution Protocol (ARP)
– Reverse Address Resolution Protocol (RARP)
Internet Layer Protocols
Internetwork Layer
• ARP
– A routed protocol
– Maps IP addresses to MAC addresses
– ARP tables contain the MAC and IP addresses of other
devices on the network
• ARP (continued)
– When a computer transmits a frame to a destination on
the local network
• It checks the ARP cache for an IP to MAC address mapping
for the destination node
• ARP request
– If a source computer cannot locate an IP to MAC address
mapping in its ARP table
• It must obtain the correct mapping
53
Internetwork Layer (continued)
56
Internet Layer
ICMP
Internet Control Message Protocol (ICMP)
works at the Network layer and is used by IP
for many different services.
58
Internetwork Layer (continued)
• Routers and ARP
– ARP requests use broadcasts
– Routers filter broadcast traffic
– Source must forward the frame to the router
Depends on
TCP to
manage the
reliability
factor. It just
gets data
from point A
to point B
Network Layer Protocols and Internet Protocol (IP)
Source/Destination IP addresses get added at the network
layer (layer 3).
Network Layer Protocols and Internet Protocol (IP)
IP packet looks like this. Now let’s break down the 6 key
fields.
Packet Forwarding
Decisions have to be made at each DEVICE along the path
until the packet reaches its final destination
Routing packets
Routers and routing tables
3 main features: Destination network, next-hop, and the
metric. Discuss the routing table below.
Discuss
routing table
information –
know these !
IP Address as a
32-Bit Binary Number
Binary and Decimal Conversion
IP Address Classes
IP Address Classes
IP Addresses as Decimal Numbers
Hosts for Classes of
IP Addresses
• Plays the same role as the Data Link and Physical layers of
the OSI model
• The MAC address, network card drivers, and specific
interfaces for the network card function at this level
• No specific IP functions exist at this layer
– Because the layer’s focus is on communication with the
network card and other networking hardware