Lesson5_IP_Subnetting_Networks_Presentation.pptx

IP Addressing, Subnetting & Network Essentials


1 / 26
next
Slide 1: Slide
New lesson editor

This lesson contains 26 slides, with text slides.

Report this lesson

Items in this lesson

IP Addressing, Subnetting & Network Essentials


A data packet contains the sender’s and receiver’s address.

Each device in the network is assigned a unique address, which is called an IP address.

IP addresses consist of binary numbers and are usually represented in decimal or hexadecimal format.

Network Addressing

2

An IP address should not be confused with a MAC address.

A MAC address is the address provided by the manufacturer that uniquely identifies the network interface card.

IP addresses are provided by a network administrator and define the connection between network and device.

IP address vs. MAC address

3


IPv4 and IPv6

5

IPv4

In IPv4 (Internet Protocol version 4), each device is assigned a 32-bit address.

For example: 197.154.13.145.

With 32 bits, around 4 billion unique IP addresses can be assigned.

8 bits form an octet. Each octet may represent any number between 0 to 255.

IPv6

In IPv6 (Internet Protocol version 6), each device is assigned a 128-bit address.

For example: 2001: db8: ac10: fa03: 1528: 11: 134: 2.


IPv4 vs IPv6

  • IPv4:

  • - 32-bit

  • - Dotted decimal (e.g., 192.168.0.1)


  • IPv6:

  • - 128-bit

  • - Hexadecimal (e.g., 2001:0db8:85a3::8a2e:0370:7334)

Some reserved IP addresses that cannot be used for individual networks or hosts are:

127.x.x.x represents private, non-routable addresses that are used within local networks for diagnostics purposes.

x.x.x.0 represents a network identifier

x.x.x.1 represents a default router address

x.x.x.255 represents a broadcast address on a subnet

IPv4 reserved addresses

7

  • IPv4 addresses consist of two parts: network ID and host ID.

  • A network ID represents the individual network, and the host ID represents the host computer within the network.

  • As the network ID is represented by the first bits of the IPv4 address, its size determines the remaining bits for host IDs.

IPv4 addresses

8

Public and private IP addresses

9

Public addresses

Also called routable, an IP address is globally unique.

The public address of a computer can be globally addressed by any computer in the world.

Examples of public IP addresses include the address of a company’s web server and the address of an internet router.

Private addresses

Also called non-routable, IP addresses are addresses used within a local network.

The router forwards data to the correct node using this address. This type of address is unique only within the local network and need not be unique globally.

Public and private IP addresses

10

Public addresses

Some public IP addresses are also identified using domain names.

A Domain Name Server (DNS) translates the domain name to IP address.

Private addresses

These addresses need not be registered on the Internet registry.

The commonly used Class C private addresses range from 192.168.0.0 to 192.168.255.255.

Private addressing for internal networks saves unique IPv4 addresses that can be used for routers and web servers that connect to the Internet directly.


Public vs Private IPs

  • Private: Only used in local networks

  • - 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


  • Public: Routable on the internet

  • The network of a large organisation may be divided into several segments using subnet IDs.

  • This improves ease in management and efficiency in routing.

  • As the main network is now subdivided, collisions are reduced. Also, the speed, reliability and security of the network improves.

Subnetting

12

What is Subnetting?

  • Subnetting is dividing a large network into smaller, manageable subnets.

  • Analogy: Like dividing land into smaller plots.

Why Subnet?

  • • Organise networks (e.g., HR, Sales, R&D)

  • • Improve security

  • • Reduce network congestion

The Basics of an IP Address

  • • 32-bit IP address split into:

  • - Network part (subnet ID)

  • - Host part (device ID)

  • • Subnet mask determines how it's divided

  • • Example: 255.255.255.0 = /24

What is a Subnet Mask?

  • • Used to divide an IP address into network and host parts

  • • Example: 255.255.255.0 (or /24)

  • • Helps determine which devices are on the same network

Basic Subnetting

  • • CIDR Notation: e.g., /24 = 255.255.255.0

  • • /24 = 256 IPs, ~254 usable hosts

  • • /30 = 4 IPs, ~2 usable hosts

Subnetting by Adjusting the Subnet Mask

  • • Class C: 192.168.15.0/24 = 256 IPs

  • • Need smaller subnets (e.g., 64 IPs each)

Step 1: Borrow Bits for Subnets

  • • Starting mask: /24 (255.255.255.0)

  • • Borrow 2 bits → new mask: /26 (255.255.255.192)

  • • Creates 4 subnets

Step 2: Calculate Subnets & Hosts

  • • Each /26 subnet = 64 IPs

  • • 62 usable addresses (2 reserved)

  • • Network + broadcast = not usable

Subnetting Example: 192.168.15.0/24 Split into /26

  • • 192.168.15.0/26 → .1 to .62

  • • 192.168.15.64/26 → .65 to .126

  • • 192.168.15.128/26 → .129 to .190

  • • 192.168.15.192/26 → .193 to .254

Why Subnetting Matters

  • • Simplifies management

  • • Increases efficiency

  • • Reduces broadcast traffic

Default Gateways

  • • Device (usually a router) that routes traffic from a local network to external networks

  • • Needed for internet access

DNS and Ports

  • DNS:

  • - Translates domain names to IPs (e.g., google.com → 142.250.70.78)

  • Ports:

  • - Identify specific services (e.g., HTTP = port 80, HTTPS = 443)

Real-World Example: Home Network

  • Router: 192.168.1.1

  • PC: 192.168.1.10

  • Subnet Mask: 255.255.255.0

  • DNS: 8.8.8.8

  • Gateway: 192.168.1.1

Review Questions

  • • What is the difference between IPv4 and IPv6?

  • • What does a subnet mask do?

  • • Why do we need DNS?