Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
IP Addressing
12/09/2011
Agenda
Decimal numbers
Binary numbers
Counting in Binary
Decimal
Base-10
12/09/2011
Binary
Base-2
12/09/2011
100 = 102
10 = 101
1 = 100
0
1
2
3
4
5
6
7
8
Now
What?
100 = 102
10 = 101
1 = 100
0
1
2
3
4
5
6
7
8
9
12/09/2011
100 = 102
10 = 101
1 = 100
0
:
:
:
:
1
0
:
:
12/09/2011
How do I
Count in
Binary?
4 = 22
2 = 21
1 = 20
0
What Now!
I have no
more digits!
12/09/2011
8 = 23
4 = 22
2 = 21
1 = 20
0
(1 x 2) + (0 x 1) = 2
8 = 23
4 = 22
2 = 21
1 = 20
0
12/09/2011
Decimal
4 = 22
2 = 21
1 = 20
2
3
4
8 = 23
4 = 22
2 = 21
1 = 20
7
8
See the
pattern
Now?
12/09/2011
8 = 23 4 = 22 2 = 21 1 = 20
8 = 23 4 = 22 2 = 21 1 = 20
10
2
3
11
12
13
14
15
Practice
Using the template at
the side, count up to
the first 16 binary
number. I have even
given you a start
8 = 23
4 = 22
2 = 21
1 = 20
12/09/2011
Practice
Using the
template at the
side, count up to
the first 32
binary numbers.
16 = 24
8 = 23
4 = 22
2 = 21
1 = 20
10
12/09/2011
Objective
At the end of this lesson you will be able to
covert between binary, decimal, and
hexadecimal numbering systems
11
12/09/2011
Exponent
22 = 2 x 2 = 4
23 = 2 x 2 x 2 = 8
24 = 2 x 2 x 2 x 2 = 16
25 = 2 x 2 x 2 x 2 x 2 =32
Decimal Value
20
28
256
21
29
512
22
210
1,024
23
211
2,048
24
16
212
4,096
25
32
213
8,192
26
64
214
16,384
27
128
215
32,768
12
12/09/2011
64
1
0
0
1
32
0
1
0
1
16
0
0
1
1
8
0
1
0
1
4
0
0
1
1
2
0
0
0
1
1
0
0
0
1
1
0
0
0
0
0
1
0
0
0
1
1
1
0
1
1
0
1
0
0
1
0
0
1
Decimal Value
Answers
128
1
1
0
0
64
1
0
0
1
32
0
1
0
1
16
0
0
1
1
8
0
1
0
1
4
0
0
1
1
2
0
0
0
1
1
0
0
0
1
Decimal Value
1
0
0
0
0
0
1
0
0
0
1
1
1
0
1
1
0
1
0
0
1
0
0
1
172
16
31
192
168
20
127
13
12/09/2011
Decimal-to-Binary Conversion
By successive division by 2 ( R is the remainder )
178
89
44
22
11
5
2
1
/
/
/
/
/
/
/
/
2
2
2
2
2
2
2
2
=
=
=
=
=
=
=
=
89
44
22
11
5
2
1
0
R
R
R
R
R
R
R
R
10110010
0
1
0
0
1
1
0
1
Right
Left
30
14
12/09/2011
BINARY TO HEXADECIMAL
CONVERSION
15
12/09/2011
Hex.
0
1
2
3
4
5
6
7
Binary
0000
0001
0010
0011
0100
0101
0110
0111
Dec.
8
9
10
11
12
13
14
15
Hex.
8
9
A
B
C
D
E
F
Binary
1000
1001
1010
1011
1100
1101
1110
1111
33
Binary-to-Hexadecimal Conversion
Dec. Hex. Binary
Dec.
Hex.
Binary
0
0
0000
8
8
1000
1
1
0001
8
9
1001
2
2
0010
10
A
1010
3
3
0011
11
B
1011
4
4
0100
12
C
1100
5
5
0101
13
D
1101
6
6
0110
14
E
1110
7
7
0111
15
F
1111
----------------------------------------------------Here are 48 bits e.g. a MAC Address:
000000000010000011100000011010110001011101100010
Break them up into 4 bit chunks:
0000 0000 0010 0000 1110 0000 0110 1011 0001 0111 0110 0010
Convert each 4 bits to Hexadecimal:
0
0
2
0
E
0
6
16
12/09/2011
HEXADECIMAL TO BINARY
CONVERSION
Dec.
Hex
10
11
12
13
14
15
17
12/09/2011
Five Minutes
Question 1
Convert 184 to Binary
184 /2 = 92 R 0
92 / 2 = 46 R 0
46 / 2 = 23 R 0
23 / 2 = 11 R 1
11 / 2 = 5 R 1
5 /2 = 2 R1
2 /2 = 1 R0
Answer = 10111000
18
12/09/2011
Question 2
Convert 10110110 to Decimal
128
64
32
16
128
32
16
Answer = 182
Question 3
Convert 1011011011110011 to Hexadecimal
1. 1011 0110 1111 0011
2. 11 6
15 3
3. b
6
f
3
Answer = 0xb6f3
19
12/09/2011
Question 4
Convert 0x6b1e to Binary
Convert each Hexadecimal digit to its binary
equivalent (4 bits)
0110 1011 0001 1110
Answer = 0110101100011110
Address Formats
20
12/09/2011
IPv6
Addresses
Address
Formats
21
12/09/2011
Physical
Address
Burnt-InAddress
Hardware
Address
00000000-00011111-00101001-00000011-01000011-11101110
00-1F-29-03-43-EE
12 Hex
Digits
22
12/09/2011
IPv4 Addresses
32 Bits
Written as four groups of decimal digits, separated by .
(dots)
Logical Address
Assigned to Hosts
23
12/09/2011
IPv6 Addresses
128 Bits
Eight groups of four hexadecimal digits
Each group is separated by a colon (:)
Logical Address
Assigned to Hosts
24
12/09/2011
25
12/09/2011
26
12/09/2011
Objectives
Given a scenario, evaluate the proper use of
the following addressing technologies and
addressing schemes
Addressing schemes
Private IP Addresses
Assigning IP Addresses
Subnetting
Classful and Classless Addressing
27
12/09/2011
Unicast
Broadcast
Multicast
28
12/09/2011
Unicast Addresses
Are Assigned to a Single Interface
Broadcast Addresses
NEVER Assigned to an Interface
ALWAYS Destination Address
Used to send Traffic to ALL Devices
All Ones:
11111111.1111111.11111111.11111111
29
12/09/2011
Multicast Addresses
NEVER Assigned to an Interface
ALWAYS Destination Address
Used to send Traffic to SOME Devices
Special Multicast Range:
224.0.0.0 239.255.255.255
ADDRESSING TECHNOLOGIES
30
12/09/2011
IP Address
Classes
Start
End
Start
End
Class A
00000001
01111110
126
Class B
10000000
10111111
128
191
Class C
11000000
11011111
192
223
Class D
11100000
11101111
224
239
Class E
11110000
11111111
240
255
IP Address
Classes
Start
End
Start
End
Class A
00000001
01111110
126
Class B
10000000
10111111
128
191
Class C
11000000
11011111
192
223
Class D
11100000
11101111
224
239
Class E
11110000
11111111
240
255
31
12/09/2011
1 Byte
8 Bits
1 Byte
8 Bits
1 Byte
8 Bits
Class A
Class B
Class C
32
12/09/2011
2 Octet
3 Octet
4 Octet
Class A
10
16
200
10
SN Mask
255
Class B
165
28
12
16
SN Mask
255
255
Class C
196
212
16
200
SN Mask
255
255
255
Prefix
/8
/16
/24
10.0.0.0
to
10.255.255.255
172.16.0.0
to
172.31.255.255
192.168.0.0
to
192.168.255.255
33
12/09/2011
Reserved IP Addresses
Address
Network address of all 0s
Function
Network 127.0.0.1
34
12/09/2011
Pattern of 1s and 0s
Maps Network and Host parts of the IPv4 Address
1s indicate the Network part
0s indicate the Host part
1s start from left and continues unbroken, until the
host part starts
NNNNNNNN.NNNNNNNN.NNNNNNNN.HHHHHHHH
11111111.11111111.11111111.00000000
255
.
255 .
255 .
0
IP Address
Classes
First
Octet
Class A
1 126
255
255
255
255
255
255
128 191
192 223
35
12/09/2011
0
0
1
1
0
1
0
1
OUTPUT
A AND B
0
0
0
1
172
38
74
.10
IP Address in Binary:
10101100.00100110.01001010.00001010
Subnet Mask:
11111111.11111111.00000000.00000000
ANDED:
10101100.00100110.00000000.00000000
Network Address:
Try ANDing IP
Addr. and
Subnet Mask
yourself
172
38
A AND B
. 0
36
12/09/2011
Assigning IP Addresses
Statically
Manual
Configuration
Dynamically
Automatic
DHCP
APIPA
37
12/09/2011
Use range:
169.254.0.0
to
169.254.255.255
Used for
DHCP-less
Automatic
Address
Assignment
38
12/09/2011
39
12/09/2011
40
12/09/2011
41
12/09/2011
42
12/09/2011
43
12/09/2011
WHAT IS SUBNETTING?
44
12/09/2011
45
12/09/2011
192.168.40.0/26
( 0 63 )
192.168.40.128/26
( 128 191 )
192.168.40.64/26
( 64 127
192.168.40.0/24
46
12/09/2011
Why do we Subnet?
Control Broadcasts
Improve Security
Organize Network by:
Department
Location
Applications
used
Job Function
Classful
Original
IP
Address
Classes
All equal
sized
subnets
Classless
No IP
Address
Classes
Subnets
can be of
different
sizes
47
12/09/2011
Summary
Addressing schemes
Unicast
Multicast
Broadcast
Addressing Technologies
Private IP Addresses
Assigning IP Addresses DHCP, static, APIPA
Subnetting
Classful and Classless Addressing
IP version 6 (IPv6)
48
12/09/2011
We will cover:
Why go to IPv6
IPv6 features
Abbreviating IPv6 addresses
IPv6 address ranges
49
12/09/2011
90%
80%
70%
60%
February 3, 2011
Available Pool of Unallocated IPv4 Internet
Addresses Now Completely Emptied
ICANN News Release
50%
40%
30%
20%
10%
0%
1980
1985
1990
1995
2000
2005
2010
50
12/09/2011
340,282,366,920,938,463,374,607,432,768,2
11,456
340 UNDECILLION
51
12/09/2011
IPv6 Features
48 Bits
16 Bits
64 Bits
52
12/09/2011
2001:db8:3c4d:12:0:0:1234:56ab
Can replace blocks of zeros with double colons (::),
2001:db8:0000:0000:ac23:0000:0000:56ab
So, the above becomes:
2001:db8::ac23:0:0:56ab
Equivalent Addresses
2001:0db8:0000:0000:0000:0000:1428:57ab
2001:0db8:0000:0000:0000::1428:57ab
2001:0db8::0000:0000:0000:1428:57ab
2001:0db8:0:0:0:0:1428:57ab
2001:0db8:0:0::1428:57ab
2001:0db8::0:1428:57ab
2001:0db8::1428:57ab
2001:db8::1428:57ab
53
12/09/2011
Unicast
IPv6
Address
Types
54
12/09/2011
Global Unicast
[RFC4291]
FC00::/7
[RFC4193]
FE80::/10
[RFC4291]
FF00::/8
Multicast
[RFC4291]
::1/128
::/128
Unicast
Assigned to a single interface
There are several IPv6 Unicast address types
Global
Unique Local
Link Local
55
12/09/2011
Global
Global Scope
Unique Local
Routable only
within a site
Link Local
Only valid on a
given link
Link
Local
Global
Unicast
Unique
Local
Interface
Global
Anycast
56
12/09/2011
Multicast
One-to-many
Enables more efficient
use of the network
IPv6 uses a larger
address range
Anycast
One-to-nearest
Multiple devices share the same
Global Unicast address.
Routers decide on closest device.
57
12/09/2011
Review
58