Lect4 2 IP - Fundamentals
Lect4 2 IP - Fundamentals
NETWORKING PROTOCOLS
IP Fundamentals
IP Fundamentals
• IP packet-Format
• IP addressing
• IP networking classes A-E
• Network address masks and wildcard mask
• Decimal vs. binary format
• Ipv4 vs. Ipv6
• Private/public IP addressing
• Static/dynamic Network Address Translation.
Network address masks
• For the network address scheme to work, every machine
on the network must know which part of the host
address will be used as the network address.
• If you try, the host will read that address as invalid and
usually won’t even let you type it in.
• Base IP Address:
—172.16.0.0
• Wildcard Mask:
—0.15.255.255
Wildcard Mask Examples
172.16.0.0
0.15.255.255
10101100 . 00010000 . 00000000 . 00000000
00000000 .00001111 . 11111111 . 11111111
Keep:
10101100 . 0001xxxx . xxxxxxxx . xxxxxxxx
Minimum:
10101100 . 00010000 . 00000000 . 00000000
Maximum:
10101100 . 00011111 . 11111111 . 11111111
Wildcard Mask Examples
• Question: What IP addresses does this
combination isolate?
—Base IP Address:
• 192.168.20.37
—Wildcard Mask:
• 0.0.0.254
Wildcard Mask Challenge
192.168.20.37
0.0.0.254
11000000 . 10101000 . 00010100 . 00100101
00000000 .00000000 . 00000000 . 11111110
Keep:
11000000 . 10101000 . 00010100 . xxxxxxx1
Wildcard Mask Challenge: Answer
11000000 . 10101000 . 00010100 . xxxxxxx1
• These are the network broadcasts that have all host bits
on.
• Here’s an example:
— Your host on a LAN sends out an FF.FF.FF.FF.FF.FF layer 2
broadcast and 255.255.255.255 layer 3 destination broadcast
looking for a DHCP server on the LAN.
Broadcast Addresses
• The router will see that this is a broadcast meant for the
DHCP server because it has a destination port number
of 67 (BootP server), and will forward the request to the
IP address of the DHCP server on another LAN.