3 Tcp Ip Protocol Suite And Ip Addressing

Network and System Administration · Unit 3

TCP/IP Protocol Suite and IP Addressing

Exam-focused notes for TCP/IP Protocol Suite and IP Addressing (Network and System Administration, BIT451): what the TU syllabus asks and how it has actually been tested, with 5 solved past questions from this unit.

TCP/IP Protocol Suite and IP Addressing in short

Every network service depends on TCP/IP and correct IP addressing. An administrator must understand the protocol layers, plan subnets, and know how addresses are shared out efficiently.

TCP/IP Protocol Suite and IP Addressing: notes

TCP/IP protocol layers and functionalities

The TCP/IP model has four layers. Each layer does one job and serves the layer above it.

LayerFunctionExamples
ApplicationGives network services to user programsHTTP, FTP, SMTP, DNS, DHCP
TransportEnd to end delivery, ports, error and flow controlTCP, UDP
InternetLogical addressing and routing of packetsIP, ICMP, ARP
Network accessMoves frames over the physical linkEthernet, Wi-Fi
  • TCP is connection oriented. It uses a three-way handshake, acknowledgements and retransmission to give reliable delivery.
  • UDP is connectionless and fast, but it gives no guarantee. DNS queries and video streams use it.
  • IP delivers packets hop by hop on a best effort basis.
  • The network access layer sends frames using MAC addresses.

IPv4 addressing and principles

An IPv4 address is 32 bits long, written as four decimal numbers (octets) such as 192.168.10.25. It has a network part and a host part. The subnet mask shows where the split lies.

ClassFirst octetDefault maskUse
A1 to 126255.0.0.0Very large networks
B128 to 191255.255.0.0Medium networks
C192 to 223255.255.255.0Small networks
D224 to 239NoneMulticast
E240 to 255NoneReserved

Private ranges are not routed on the Internet: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. The address 127.0.0.1 is the loopback address.

In each subnet, the first address is the network address and the last is the broadcast address. So usable hosts are:

$$\text{hosts} = 2^{n} - 2$$

where $n$ is the number of host bits. For a /24 network, $n = 8$, so there are $2^8 - 2 = 254$ hosts.

What this unit covers

  • TCP/IP protocol layers and functionalities
  • IPv4 addressing and principles
  • IPv6 addressing and differences from IPv4
  • Classless Inter-Domain Routing (CIDR)
  • Variable Length Subnet Masking (VLSM)
  • CIDR and VLSM benefits and differences
  • Multicast addressing and concepts

CIDR and VLSM benefits and differences

2082 · 5 marks

What is the difference between VLSM and CIDR? List the benefits of VLSM? [5]

Show solved answer

Model Answer: VLSM vs CIDR and Benefits of VLSM

Difference between VLSM and CIDR

AspectVLSMCIDR
Full FormVariable Length Subnet MaskClassless Inter-Domain Routing
ScopeUsed within an organization for internal subnettingUsed across the internet for routing and address allocation
Subnet MaskDifferent subnet masks for different subnets within same networkSingle prefix length notation (e.g., /24) for address blocks
PurposeMaximizes address utilization within a single networkEliminates class-based addressing and improves global routing efficiency
ImplementationApplied at the organizational/internal levelApplied at ISP and inter-domain level
FlexibilityAllows multiple levels of subnetting with varying mask lengthsProvides flexible allocation of address space in blocks

Key Distinction: VLSM is a subnetting technique used internally, while CIDR is a global routing and addressing architecture.

Benefits of VLSM

  1. Efficient Address Utilization

    • Reduces IP address wastage by allocating only the required number of addresses to each subnet
    • Different subnets can have different sizes based on actual host requirements
  2. Reduced Network Overhead

    • Minimizes unused IP addresses in each subnet
    • Lowers the cost of IP address allocation
  3. Hierarchical Subnetting

    • Allows multiple levels of subnetting within a single network
    • Enables creation of subnets of subnets for better organization
  4. Improved Routing Efficiency

    • Supports route summarization (supernetting)
    • Reduces routing table size and improves routing performance
  5. Scalability

    • Accommodates networks of varying sizes within the same organization
    • Supports network growth without major restructuring
  6. Better Network Design

    • Allows network administrators to design networks that match actual organizational requirements
    • Provides flexibility in allocating resources based on departmental needs
Open this answer on its own page →

Classless Inter-Domain Routing

2081 · 5 marks

How do you think classless Inter-Domain Routing improves the efficiency of address distribution? Explain. [5]

Classless Inter-Domain Routing (CIDR) is a method of allocating IP addresses and routing that removes the rigid class-based structure (Class A, B, C) of traditional IP addressing. - CIDR uses variable-length subnet masks (VLSM) instead of fixed class boundaries - Allows networks to be sized preci...

Open this answer on its own page →

Multicast addressing and concepts

2081 · 5 marks

Write short notes on: (a) Multicast (b) IPv4 [5]

Definition: Multicast is a communication method where data is transmitted from one source to multiple destinations simultaneously. It is a one-to-many transmission model where a single packet is sent once and delivered to a group of interested receivers. Key Characteristics: - Uses special multic...

Open this answer on its own page →

TCP/IP protocol layers and functionalities

2082.1 · 10 marks

Explain the functionalities of different layers of TCP/IP protocol suite.How IPV6 is different from IPV4? Explain.[6+4]

(a) Functionalities of Different Layers of TCP/IP Protocol Suite The TCP/IP model consists of four layers, each with distinct functionalities: - Provides network services directly to user applications and end-users - Handles user interaction and data formatting - Key protocols: HTTP, HTTPS, FTP, ...

Open this answer on its own page →

Variable Length Subnet Masking

2082.1 · 10 marks

Write short notes on: a) VLSM b) ACL [5+2.5+2.5]

Definition: VLSM is a subnetting technique that allows different subnets within the same network to have different subnet mask lengths. Unlike traditional subnetting where all subnets use the same mask, VLSM enables variable-length masks, making efficient use of IP address space. Key Characterist...

Open this answer on its own page →