Data and Computer Communications: Chapter 18 - Internet Protocols
Data and Computer Communications: Chapter 18 - Internet Protocols
Communications
Chapter 18 – Internet Protocols
Ninth Edition
by William Stallings
IP
• initially developed for the DARPA internet
project
• protocol is needed to access a particular
network
Connectionless Internetworking
Connectionless internet facility is flexible
IP provides a connectionless service
between end systems.
Advantages:
• is flexible
• can be made robust
• does not impose unnecessary overhead
IP
Operation
source routing
• indicate next
router to which
• source specifies route recording
datagram is sent
• static route to be (for testing &
followed debugging)
• dynamic
• can be useful for
ES / routers maintain security & priority
routing tables
Datagram Lifetime
More flag
• indicates that this is not the last fragment
Fragmentation Example
Error and Flow Control
Error control Flow control
discarded datagram allows routers to limit
identification is needed the rate they receive
reasons for discarded data
datagrams include: send flow control
• lifetime expiration packets requesting
• congestion reduced data flow
• FCS error (ICMP)
(frame check
sequence)
Internet Protocol (IP) v4
specification of
specification of
actual protocol
interface with a
format and
higher layer
mechanisms
IP Services
Primitives Parameters
specifies functions to used to pass data and
be performed control information
form of primitive
implementation
dependent
Send : request
transmission of data
unit
Deliver : notify user of
arrival of data unit
IP Parameters
source & destination addresses
protocol
type of Service
identification
“don’t fragment” indicator
time to live
data length
option data
user data
IP Options
route
security
recording
source
routing
stream
identification timestamping
IPv4 Header
IPv4 Header
http://www.tcpipguide.com/free/t_IPDatagr
amGeneralFormat.htm
ipconfig /all
netmask, default gateway…
ping 127.0.0.1 (and pinging your own
address)
Subnets and Subnet Masks
allows arbitrary complexity of internetworked
LANs within organization
insulate overall internet from growth of network
numbers and routing complexity
site looks to rest of internet like single network
each LAN assigned subnet number
host portion of address partitioned into subnet
number and host number
local routers route within subnetted network
subnet mask indicates which bits are subnet
number and which are host number
IP Addresses and Subnet Masks
Other
notation used to represent the
netmask: CIDR notation
The
number after the ‘/’ represents the
number of ‘1’ of the netmask.
Proxy server..
Subnets and Subnet Masks
Obtaining an IP address
DHCP :
dynamic host configuration protocol
belongs to the application layer
uses UDP port 68 on the client and port 67 on
the server
see figure in
http://
wiki.cas.mcmaster.ca/index.php/Dynamic_Host_
Configuration_Protocol
Information sent by DHCP server
Default gateway
Domain name
Name servers …
Network adapter
configuration
In a command window => ipconfig /all
Sequence of events :
• See
http://www.tcpipguide.com/free/t_ARPAddressSpecificationandGeneralOperation-2.htm
Note: one can modify the arp table if he has admin status …
(« spoofing »)
Internet Control Message
Protocol (ICMP)
RFC 792
transfer messages from routers and hosts
to hosts
provides feedback about problems
• datagram cannot reach its destination
• router does not have buffer capacity to forward
• router can send traffic on a shorter route
encapsulated in IP datagram
hence not reliable
ICMP Message Format
(inserted at the end of the IP header)
Common ICMP Messages
destinationunreachable
time exceeded (traceroute)
parameter problem
source quench
redirect
echo & echo reply
timestamp & timestamp reply
address mask request & reply
IP Versions
IP v 1-3 defined and replaced
IP v4 - current version
IP v5 - streams protocol
IP v6 - replacement for IP v4
during development, it was called IPng (IP
Next Generation)
Why Change IP?
address space
exhaustion: requirements for new types of
• two level addressing (network service
and host) wastes space • address configuration
• network addresses used even • routing flexibility
if not connected • traffic support
• growth of networks and the
Internet
• extended use of TCP/IP
• single address per host
IPv6 RFCs
http://
www.iana.org/assignments/ipv6-address-s
IPv6
PDU
(Packet)
Structure
IP v6 Header
IP v6 Flow Label
internetworking principles
Internet protocol operation
design issues, connectionless operation
IP
services, addresses, subnets, ICMP, ARP
IPv6
structure, header, addresses
VPNs and IP Security
IPsec applications, benefits, functions