Title: Module09TCPIP Protocol Suite
1Module09-TCP/IP Protocol Suite IP Addressing
By Uditha Gamage Sri Lanka Institute of
Information Technology
2Introduction to TCP/IP
3TCP/IP model
The U.S. Department of Defense (DoD) created the
TCP/IP reference model because it wanted a
network that could survive any conditions. The
present version of TCP/IP was standardized in
September of 1981.
4Application layer
5Transport layer
- TCP and UDP
- Segmenting upper-layer application data
- Sending segments from one end device to another
end device - TCP only
- Establishing end-to-end operations
- Flow control provided by sliding windows
- Reliability provided by sequence numbers and
acknowledgme
6Internet layer
The purpose of the Internet layer is to select
the best path through the network for packets to
travel IP provides connectionless, best-effort
delivery routing of packets. Internet Control
Message Protocol (ICMP) provides control and
messaging capabilities. ARP resolves MAC
address, for known IP addresses. Reverse Address
Resolution Protocol (RARP) determines IP
addresses when the MAC address is known
7Network access layer
The network access layer defines the procedures
for interfacing with the network hardware and
accessing the transmission medium. Drivers for
software applications, modem cards and other
devices operate at the network access layer
8TCP/IP Vs OSI
- Similarities of the OSI and TCP/IP models
- Both have layers
- Both have application layers, though they include
very different services - Both have comparable transport and network layers
- Packet-switched, not circuit-switched, technology
is assumed - Networking professionals need to know both models
9- Differences of the OSI and TCP/IP models
- TCP/IP combines the presentation and session
layer 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 - TCP/IP transport layer using UDP does not always
guarantee reliable delivery of packets as the
transport layer in the OSI model does
10Internet architecture
11Internet Protocol AddressesIPV4 Addressing
12IP addressing and classes
- IP addresses are 32 bits long.
- They are represented as four octets in dotted
decimal format. -
233.14.17.0
- The IP address has two components
- The network ID
- The host ID
13(No Transcript)
14(No Transcript)
15Network address
16Private IP addresses
17Introduction to Subnetting
Network administrators sometimes need to divide
networks, particularly large networks, into
smaller networks, called subnetworks, in order to
provide extra flexibility. Most of the time
subnetworks are simply referred to as subnets.
The primary reason for using a subnet is to
reduce the size of a broadcast domain
18(No Transcript)
19- The minimum number of bits you can borrow is two.
20Calculating a Subnet
- We will subnet the IP address
- 223.14.17.0
- What class IP address is this?
- Class C
- Determine the default subnet mask
- Lets see how many subnets and hosts we will have
by borrowing 4 bits from the host. - Problem Given 195.137.92.0 and needing 8 usable
subnets, find the subnetwork numbers, the ranges
of host numbers, and subnetwork broadcast
numbers.
21IP4 Vs IP6
22Obtaining an IP Address
23Static assignment
24RARP IP address assignment
25- Reverse Address Resolution Protocol (RARP)
- Reverse Address Resolution Protocol (RARP) binds
MAC addresses to IP addresses. - A network device might know its MAC address but
not its IP address in diskless workstations or
dumb terminals. Devices using RARP require a RARP
server. - A RARP request consists of a MAC header, an IP
header, and an RARP request message. - Workstations running RARP have codes in ROM that
direct them to start the RARP process and locate
the RARP server.
26BOOTP IP address assignment
- BOOTstrap Protocol (BOOTP)
- A device uses BOOTstrap Protocol (BOOTP) when it
starts up to obtain an IP address. BOOTP uses
UDP to carry messages the UDP message is
encapsulated in an IP datagram. - A computer uses BOOTP to send a broadcast IP
datagram (using a destination IP address of all
1s - 255.255.255.255) a BOOTP server receives
the broadcast and then sends a broadcast. - The client receives a datagram and checks the MAC
address. If it finds its own MAC address in the
destination address field, it then takes the IP
address in that datagram.
27DHCP IP address assignment
28- Dynamic Host Configuration Protocol (DHCP)
- Dynamic Host Configuration Protocol (DHCP) has
been proposed as a SUCCESSOR to BOOTP and RARP.
Unlike BOOTP, DHCP allows a host to obtain an IP
address quickly and dynamically. - All that is required using DHCP is a defined
range of IP addresses on a DHCP server (commonly
referred to as a scope). - As hosts come online, they contact the DHCP
server and request an address. The DHCP server
chooses an address and allocates it to that host.
29- When DHCP clients boot, they enter an initialize
state. - Then they send a DHCPDISCOVER broadcast message,
which contains UDP packets with the port number
set to the BOOTP port. - After sending the DHCPDISCOVER, the server sends
a DHCPOFFER response. - The client responds by sending a DHCPREQUEST
packet to negotiate the lease. - The DHCP server acknowledges client requests with
DHCPACK packets.
30Problems in address resolution
31ARP
The TCP/IP suite has a protocol called ARP that
can automatically detect the MAC address. ARP
enables a computer to find the MAC address of the
computer that is associated with an IP address
32End Of Chapter.