Chapter 4 Part I - 220121001702
Chapter 4 Part I - 220121001702
School of Informatics
Department of
Information Technology
Sodo, Ethiopia
Binary Notation
• Binary notation
refers to the fact
that computers
communicate in 1s
and 0s
• Converting binary
to decimal requires
an understanding of
the mathematical
basis of a
numbering system –
positional notation
2
Internet Protocol
3
Internet Protocol
4
Internet Protocol
IP as a Routed Protocol
IP is a connectionless,
unreliable, best-effort delivery
protocol.
IP accepts whatever data is
passed down to it from the
upper layers and forwards the
data in the form of IP Packets.
All the nodes are identified
using an IP address.
Packets are delivered from the
source to the destination using
IP address
5
Internet Protocol
Packet Propagation
6
Internet Protocol
IP Address
IP address is for the INTERFACE of a host. Multiple
interfaces mean multiple IP addresses, i.e., routers.
32 bit IP address in dotted-decimal notation for ease
of reading, i.e., 193.140.195.66
Address 0.0.0.0, 127.0.0.1 and 255.255.255.255
carries special meaning.
IP address is divided into a network number and a
host number.
Also bits in Network or Host Address cannot be all
0 or 1.
7
Internet Protocol
8
Internet Protocol
9
Internet Protocol
10
Internet Protocol
12
Internet Protocol
IP Address
13
Internet Protocol
IP Address
Class A : Address begins with bit 0. It has 8 bit
network number (range 0.0.0.0-to-127.255.255.255),
24 bit host number.
Class B : Address begins with bits 10. It has 16 bit
network number (range 128.0.0.0-to-
191.255.255.255), 16 bit host number.
Class C : Address begins with bits 110. It has 24 bit
network number (range 192.0.0.0-to-
223.255.255.255), 8 bit host number.
Class D : Begins with 1110, multicast addresses
(224.0.0.0-to-239.255.255.255)
Class E : Begins with 11110, unused
14
Internet Protocol
Subnet Mask
Consider IP address = 192.168.2.25
First few bits (left to right) identify network/subnet
Remaining bits identify host/interface
Number of subnet bits is called subnet mask, e.g.
Subnet IP Address range is 192.168.2.0 –
192.168.2.255 or Mask = 255.255.255.0
Subnet IP Address range is 192.168.2.0 –
192.168.2.15 or Mask = 255.255.255.240
15
Internet Protocol
IP Configuration of an Interface
Static DHCP
16
Internet Protocol
17
Internet Protocol
18
Internet Protocol
20
Internet Protocol
Classless Addressing
• Classless Addressing
• Formal name is Classless Inter-Domain Routing
(CIDR)
• Created a new set of standards that allowed service
providers to allocate IPv4 addresses on any
address bit boundary (prefix length) instead of only
by a class A, B, or C address
22
Internet Protocol
23
Internet Protocol
24
Internet Protocol
Assignment of IP Addresses
Regional Internet Registries (RIRs)
The major registries are:
26
Internet Protocol
Assignment of IP Addresses
ARP
ARP (Address Resolution Protocol) is used in
Ethernet Networks to find the MAC address of a
node given its IP address.
Source node (say 192.168.2.32) sends broadcast
message (ARP Request) on its subnet asking ``Who
is 192.168.2.33’’.
All computers on subnet receive this request
Destination responds (ARP Reply) since it has
192.168.2.33
Provides its MAC address in response
28
Internet Protocol
IPv6
Internet Protocol Version 4 is the most popular protocol in
use today, although there are some questions about its
capability to serve the Internet community much longer.
IPv4 was finished in the 1970s and has started to show its
age.
The main issue surrounding IPv4 is addressing—or, the
lack of addressing—because many experts believe that we
are nearly out of the four billion addresses available in
IPv4.
Although this seems like a very large number of addresses,
multiple large blocks are given to government agencies
and large organizations.
IPv6 could be the solution to many problems posed by IPv4
29
Internet Protocol
IPv6
IPv6 uses 128 bit address instead of 32 bit address.
The IPv6 addresses are being distributed and are
supposed to be used based on geographical
location.
30
Internet Protocol
31
Internet Protocol
32
Internet Protocol
36
Internet Protocol
37
Internet Protocol IPv6
–2001:0DB8:0000:1111:0000:0000:0000:0200
–FE80:0000:0000:0000:0123:4567:89AB:CDEF
39
Internet Protocol IPv6
40
Internet Protocol IPv6
#1
#2
41
Internet Protocol IPv6
Unicast
Multicast
Anycast.
42
Internet Protocol IPv6
43
Internet Protocol IPv6
44
Internet Protocol IPv6
45
Internet Protocol IPv6
46
Internet Protocol IPv6
Unspecified address
All-0’s address represented as ::/128 or just ::
Cannot be assigned to an interface and is only used as a
source address
An unspecified address is used as a source address when
the device does not yet have a permanent IPv6 address or
when the source of the packet is irrelevant to the destination 47
Internet Protocol IPv6
48
Internet Protocol IPv6
49
Internet Protocol IPv6
50
Internet Protocol IPv6
52
Internet Protocol IPv6
• Subnet ID
• Used by an organization to identify subnets within its site
• Interface ID
• Equivalent to the host portion of an IPv4 address
• Used because a single host may have multiple interfaces, each
having one or more IPv6 addresses
54
Internet Protocol IPv6
55
Internet Protocol IPv6
56
Internet Protocol IPv6
IPv6 routers
Forwards IPv6 packets between networks
Can be configured with static routes or a dynamic
IPv6 routing protocol
Sends ICMPv6 RA messages
57
Internet Protocol IPv6
58
Internet Protocol IPv6
59
Internet Protocol IPv6
Similar to IPv4
Automatically receive addressing information including a global
unicast address, prefix length, default gateway address and the
addresses of DNS servers using the services of a DHCPv6 server
Device may receive all or some of its IPv6 addressing
information from a DHCPv6 server depending upon whether
option 2 (SLAAC and DHCPv6) or option 3 (DHCPv6 only) is
specified in the ICMPv6 RA message
Host may choose to ignore whatever is in the router’s RA
message and obtain its IPv6 address and other information
directly from a DHCPv6 server.
60
Internet Protocol IPv6
61
Internet Protocol IPv6
EUI-64 Process
process uses a client’s 48-bit Ethernet MAC address, and
inserts another 16 bits in the middle of the 46-bit MAC address to
create a 64-bit Interface ID
advantage is Ethernet MAC address can be used to determine
the Interface – easily tracked
62
Internet Protocol IPv6
63
Internet Protocol IPv6
64
Internet Protocol IPv6
65
Internet Protocol IPv6
67
Internet Protocol IPv6
Configuring link-local
68
Internet Protocol IPv6
Configuring link-local
69
Internet Protocol IPv6
70
Internet Protocol IPv6
71
Internet Protocol IPv6
72
Internet Protocol IPv6
74
Internet Protocol IPv6
Similar to the all-nodes multicast address, matches only the last 24 bits of
the IPv6 global unicast address of a device
76
Internet Protocol IPv6
79
Internet Protocol IPv6
80
Internet Protocol IPv6
81
Internet Protocol IPv6
82
Internet Protocol IPv6
83
Internet Protocol IPv6
84
Internet Protocol IPv6
Traceroute (tracert)
85
Internet Protocol
Chapter Four
Part One End
86