Professional Documents
Culture Documents
IP Addresses
IP Addresses
32 bits
version (4 bits) header length Type of Service/TOS (8 bits) flags (3 bits) Total Length (in bytes) (16 bits) Fragment Offset (13 bits) Header Checksum (16 bits)
Ethernet Header
IP Header
TCP Header
Application data
Ethernet Trailer
Ethernet frame
IP Addresses
32 bits
0x4 0x5 9d08 12810 0x06 128.143.137.144 128.143.71.21 0x00 0102 4410 00000000000002 8bff
Ethernet Header
IP Header
TCP Header
Application data
Ethernet Trailer
Ethernet frame
What is an IP Address?
An IP address is a unique global address for a network interface Exceptions: Dynamically assigned IP addresses ( DHCP) IP addresses in private networks An IP address: - is a 32 bit long identifier - encodes a network number (network prefix) and a host number
How do we know how long the network prefix is? Before 1993: The network prefix is implicitly defined (see class-based addressing) or After 1993: The network prefix is indicated by a netmask.
Example:
10000000 1st Byte = 128 10001111 2nd Byte = 143 10001001 3rd Byte = 137 10010000 4th Byte = 144
128.143.137.144
Classful IP Addressing
Identifying Network and Host ID Range of First Octet 1126 Number of Network ID Bits 8 Number of Host ID Bits 24
B
C
128191
192223
16
24
16
8
Example
Example: tip.edu.ph 61 9.0.107
(or 61 - Netid)
Special IP Addresses
Reserved or (by convention) special addresses:
Loopback interfaces
all addresses 127.0.0.1-127.255.255.255 are reserved for loopback interfaces Most systems use 127.0.0.1 as loopback address loopback interface is associated with name localhost
Private IP addresses
10.0.0.0 172.16.0.0 192.168.0.0 IP address of a network Broadcast address
Host number is all ones, e.g., 128.143.255.255 Broadcast goes to all hosts on the network Often ignored due to security concerns