Week 4 - Lecture Notes
Week 4 - Lecture Notes
Computer
Networks
Module Code: COM5014M
Level: 5
Credits: 20
Week 4
IP Addressing &
Subnetting
Internet Protocol (IP)
• At the network layer the TCP/IP model supports IP.
• IP is a transmission mechanism that uses IP addresses to deliver packets to network
devices through best effort service.
• The best effort service means, IP does its best to deliver a packet to destination, but
no error checking or tracking (no guarantee).
• IP is unreliable protocol, has no guarantee for delivery, meaning that a packet might
be lost, corrupted, delivered late or out of order.
• IP transports data in individual packers called datagrams, each of which is
transported separately.
• Core Functionalities: Routing, address assignment, multicasting
IP Address
• An IP address is a unique logical address
that identifies a device on a network,
either in a local network or the Internet.
• IP address for a device in a network is
like a postal code in a mailing address.
• IP addresses are how computers on the
internet recognise one another.
• It is basically developed to supports
networks consisting of multiple
networks or sub-networks.
IP Address
• IP addresses are made up of two
main components.
• 32 binary digits
• 4 octets
• Dotted decimal notation
• Two versions:
• IP Version 4 (IPv4)
o Most common IP addresses
• IP Version 6 (IPv6)
IPv4
• Internet Protocol version 4 is the original and most
common deployed internet protocol used to connect
devices to the internet.
• The IP address is made up of binary numbers (1 or 0)
• IPv4 uses 32-bit address scheme, divided into four 8-
bit fields, called octets, separated by a period or dot.
11000000.10101000.00000001.00001010 192.168.1.10
IPv4
IPv4
• Each of the 4 Octets has 8 Bits.
• Each Bit can only be a One or a Zero.
• In addressing each octet is converted to a 128+64+32+16+8+4+2+1=255
decimal number, ranging from 0 to 255
and separated by a by a period.
• Example of IPv4 address: 163.1.125.98
• IPv4 with this format allows only around 4
billion IP addresses, that is not enough for
supporting addressing of all devices in the
future.
IPv4 Addressing • IP addresses are made up of
two main components.
o Net ID (Network ID)
o Host ID
• Determined by IP class
Source: Cisco
Multicast Address - IPv4 Addressing
• Send packet to a group of devices
• Must use multicast address range
• Range 224.0.0.0 – 239.255.255.255
• Used for remote gaming
Source: Cisco
Broadcast Address - IPv4 Addressing
• All ones in the host portion of the IP address
Source: Cisco
IPv4 & Subnet Mask / Subnet Address
• We use an IP address with the subnet mask.
• A subnet mask separates the network address from the host address.
• It is an easy way of identifying which part of the IP address relates to the network and
which part relates to the host.
• Each IP address class has a matching subnet mask.
A 255.0.0.0 11111111.00000000.00000000.00000000
B 255.255.0.0 11111111. 11111111. 00000000.00000000
C 255.255.255.0 11111111. 11111111. 1111111.00000000
IPv4 & Subnet Mask
• The subnet mask is a 32-bit value just
like the IP address
• Subnet mask bits:
• 1: Correspond to the network and
subnet portions of the address
• 0: Contain host information
IPv4 & Subnet Mask
IP Address 12 34 158 5
• What is subnetting?
o Process of subdividing a single class of
network into multiple subnetworks.
• Why subnet
o Creating and using subnets can help to keep your network organised and functional.
o Makes it easier to manage your network (lower total cost of ownership)
o Makes you network more secure
o Reduce Collision Domain
IPv4 Subnetting
• Before Net Host
subnetting
• After
Net Host Host
subnetting
…
190 152 Host
22
IPv6
• It stands for Internet Protocol version 6 and is the successor version of IP.
• IPv6 developed by the IETF to replace IP4, to supply IP addressing for a greater
number of connected devices, as predicted growth of connected devices in the
future.
• IPv6 uses a 128-bit address, divided into eight 16 bits blocks, each block is converted
into 4 digits Hexadecimal numbers separated by colon.
• Example: 8145 : 010C : 0000 : 0000 : 1100 : 1A06 : 8800 : 0001
• IPv6 can support addressing for around 340 trillion devices.
• IPv6 support more new features: Auto-configuration, better Multicast, better quality
of service (QoS), built-in authentication and privacy support, and more efficient
routing.
• IPv6 address is split into 2 segments:
o Network segment: 64 bits
o Host segment: 64 bits
Assigned Solicited-Node