You are on page 1of 7

Home GATE Subjects  B.

Tech Subjects  GATE 2022 GATE CSE Books Job Opportunities Contact Us Subscribe

Follow us on Facebook IP Address in Networking | Problems Job Opportunities


Computer Networks

IP Address in Networking-

Before you go through this article, make sure that you have gone through the previous article on IP Address.

Follow us on Instagram
We have discussed-

IP Address is a unique address assigned to each computing device in an IP network. Recommended Books
ISP assigns IP Address to all the devices present on its network.
Casting refers to transmitting data (stream of packets) over the network.

Computer Networks Notes


Also Read- Types of Casting
Introduction

Types of Delays In this article, we will discuss some practice problems based on IP Address.

Simplex | Half Duplex | Full Duplex

Important Points-
Flow Control

Stop and Wait Protocol Point-01:


Stop and Wait ARQ

Problems On Stop and Wait Protocol For any given IP Address,

Sliding Window Protocol If the range of first octet is [1, 126], then IP Address belongs to class A.
Problems On Sliding Window Protocol If the range of first octet is [128, 191], then IP Address belongs to class B.

Go back N Protocol If the range of first octet is [192, 223], then IP Address belongs to class C.

Problems On Go Back N Protocol If the range of first octet is [224, 239], then IP Address belongs to class D.
If the range of first octet is [240, 254], then IP Address belongs to class E.
Selective Repeat Protocol

Problems On SR Protocol

Comparison of Flow Control Protocols Point-02:


Why This Book?
Problems On Flow Control Protocols

For any given IP Address,


Error Control IP Address of its network is obtained by setting all its Host ID part bits to 0.

Single Parity Check

Cyclic Redundancy Check Point-03:


Checksum

For any given IP Address,

Access Control Direct Broadcast Address is obtained by setting all its Host ID part bits to 1.

Access Control Methods


Point-04:
Time Division Multiplexing

Polling
For any given IP Address, limited Broadcast Address is obtained by setting all its bits to 1.
CSMA / CD
For any network, its limited broadcast address is always 255.255.255.255 Popular Gate Books
Back Off Algorithm

Problems On CSMA / CD

Token Passing Point-05:


Problems On Token Passing

Aloha | Pure Aloha | Slotted Aloha


Class D IP Addresses are not divided into Net ID and Host ID parts.
Class E IP Addresses are not divided into Net ID and Host ID parts.

LAN Technologies
PRACTICE PROBLEMS BASED ON IP ADDRESS IN NETWORKING-
Ethernet | Ethernet Frame Format

Problems On Ethernet
Problem-01:

Switching
For the following IP Addresses-

Circuit Switching 1. 1.2.3.4


2. 10.15.20.60
Message Switching
3. 130.1.2.3
Packet Switching
4. 150.0.150.150
Circuit Switching Vs Packet Switching
5. 200.1.10.100
6. 220.15.1.10
Routing Algorithms 7. 250.0.1.2
8. 300.1.2.3
Distance Vector Routing

Identify the Class, Network IP Address, Direct broadcast address and Limited broadcast address of each IP
IP Address Address.

Classes of IP Address

Types of Casting

Problems On IP Addresses

Classless Inter Domain Routing

Subnetting

IPv4 Subnetting

How to Calculate Subnet Mask

Problems On Subnet Mask Solution-


Routing Table

Use of Subnet Mask


Part-A:

Internet Protocols Subscribe to get Email Notifications


Given IP Address is-
First Name
IPv4 Header
1.2.3.4

Fragmentation in Network Layer


Last Name
Practice Problems On Fragmentation IP Address belongs to class A
Network IP Address = 1.0.0.0
Email Address
Direct Broadcast Address = 1.255.255.255
Transport Layer Protocols
Limited Broadcast Address = 255.255.255.255

Characteristics Of TCP
Submit
TCP Header
Part-B:
Sequence Numbers | Wrap Around GATE Exam Corner
Concept
Important Topics For GATE Exam
Given IP Address is-
Three Way Handshake
Standard GATE Textbooks
TCP Retransmission 10.15.20.60

TCP Connection Termination

Problems On TCP IP Address belongs to class A


TCP Congestion Control Network IP Address = 10.0.0.0

Problems On TCP Congestion Control Direct Broadcast Address = 10.255.255.255

TCP Timers
Limited Broadcast Address = 255.255.255.255

Time Out Timer | Computation


Algorithms
Part-C:
Silly Window Syndrome

User Datagram Protocol


Given IP Address is-

130.1.2.3
Application Layer Protocols
Domain Name Service IP Address belongs to class B
HyperText Transfer Protocol Network IP Address = 130.1.0.0

Simple Mail Transfer Protocol Direct Broadcast Address = 130.1.255.255


Limited Broadcast Address = 255.255.255.255
Post Office Protocol | POP Vs IMAP

File Transfer Protocol

Comparison of Protocols Part-D:

Network Security Given IP Address is-

150.0.150.150
Symmetric Key Cryptography

RSA Algorithm
IP Address belongs to class B
Diffie Hellman Key Exchange
Algorithm Network IP Address = 150.0.0.0

Digital Signatures Direct Broadcast Address = 150.0.255.255


Limited Broadcast Address = 255.255.255.255

Popular GATE Books

Part-E:

Given IP Address is-

200.1.10.100

IP Address belongs to class C


Network IP Address = 200.1.10.0
Direct Broadcast Address = 200.1.10.255
Limited Broadcast Address = 255.255.255.255

Look Inside This Book Part-F:

Given IP Address is-

220.15.1.10

IP Address belongs to class C


Network IP Address = 220.15.1.0
Direct Broadcast Address = 220.15.1.255
Limited Broadcast Address = 255.255.255.255

Part-G:

Given IP Address is-

Look Inside This Book 250.0.1.2

IP Address belongs to class E


Network IP Address = Not available
Direct Broadcast Address = Not available
Limited Broadcast Address = Not available

Part-H:

Given IP Address is-

300.1.2.3

This is not a valid IP Address.


This is because for any given IP Address, the range of its first octet is always [1, 254].
Choose your Subject First and Last IP Addresses are reserved.
GATE Subjects
Problem-02:
Database Management System

Computer Networks
A device has two or more IP Addresses, the device is called-
Operating System
1. Workstation
Computer Organization & Architecture
2. Router
Data Structures
3. Gateway
Theory of Automata & Computation
4. All of these
Compiler Design

Graph Theory

Design & Analysis of Algorithms


Solution-
Digital Design

Number System All the given devices have a network layer.


So, they will have at least one IP Address.
Discrete Mathematics

B.Tech Subjects In TCP/IP suite-

Computer Graphics Workstation and gateway have all the 5 layers.

Machine Learning Router has only 3 layers last layer being network layer.

Artificial Intelligence

Pattern Recognition Workstation-


Software Engineering

A user may configure more than one IP Addresses in his workstation / computer.
With more than one IP Address, it remains present in more than one networks.
So, if one network goes down, it is always reachable from other networks.

The following figure shows a host present in more than one networks-

It is important to note that IP Addresses are assigned to interfaces.


When we buy a new laptop, we usually get 2-3 interfaces.
Thus, a workstation can have more than one IP Addresses.

Router-

A router may be connected to various interfaces.


Each interface has a unique IP Address.
Thus, a router may also have more than IP Addresses.
Similar is the case with gateways because gateways are extension of routers.

Thus, Option (D) is correct.

Problem-03:

A host with IP Address 200.100.1.1 wants to send a packet to all the hosts in the same network.

What will be-

1. Source IP Address
2. Destination IP Address

Solution-
1. Source IP Address = IP Address of the sender = 200.100.1.1
2. Destination IP Address = Limited Broadcast Address = 255.255.255.255

Problem-04:

A host with IP Address 10.100.100.100 wants to use loop back testing.

What will be-

1. Source IP Address
2. Destination IP Address

Solution-

Source IP Address = 10.100.100.100


Destination IP Address = Loopback Testing Address = 127.0.0.1

Problem-05:

How many bits are allocated for Network ID and Host ID in 23.192.157.234 address?

Solution-

Given IP Address belongs to class A.

Thus,

Number of bits reserved for Network ID = 8


Number of bits reserved for Host ID = 24

Problem-06:

Which devices can use logical addressing system?

1. Hub
2. Switch
3. Bridge
4. Router

Solution-

Devices which have network layer as the last layer can only use logical addressing system.
Devices which have data link layer as the last layer can only use physical addressing system.
IP Addresses are the logical addresses and MAC Addresses are the physical addresses.

Option-A:

Hub can neither use physical addressing system nor logical addressing system.
This is because it has physical layer as the last layer.

Option-B:

Switch can use physical addressing system but not logical addressing system.
This is because it has data link layer as the last layer.

Option-C:

Bridge can use physical addressing system but not logical addressing system
Bridge can use physical addressing system but not logical addressing system.
This is because it has data link layer as the last layer.

Option-D:

Router can use physical addressing system as well as logical addressing system.
This is because it has network layer as the last layer.

Thus, option (D) is correct.

Problem-07:

What is the network ID of the IP Address 230.100.123.70?

Solution-

Given IP Address belongs to class D.


Class D IP Addresses are not divided into the Network ID and Host ID parts.
Thus, there is no network ID for the given IP Address.

Problem-08:

Match the following-

Column-I:

1. 200.10.192.100
2. 7.10.230.1
3. 128.1.1.254
4. 255.255.255.255
5. 100.255.255.255

Column-II:

1. Class A
2. Limited Broadcast Address
3. Direct Broadcast Address
4. Class C
5. Class B

Solution-

(I, D), (II, A), (III, E), (IV, B), (V, C)

Problem-09:

Suppose that instead of using 16 bits for network part of a class B Address, 20 bits have been used. How
many class B networks would have been possible?

Solution-

Total 20 bits are used for Network ID of class B.


The first two bits are always set to 10.

Then, with 18 bits, number of networks possible = 218


Problem-10:

What is the default mask for 192.0.46.10?

Solution-

Given IP Address belongs to class C.


For class C, default mask = 255.255.255.0

Next Article- Classless Addressing

Get more notes and other study material of Computer Networks.

Watch video lectures by visiting our YouTube channel LearnVidFun.

Summary

Article Name IP Address in Networking | Problems

Description Practice Problems based on IP


Address in Networking. IP Address in
Networking is a unique address for
each device in a IP network. Classes
of IP Address- A, B, C, D, E. IP
Address Format- It is a 32 bit binary
address written as 4 numbers
separated by dots.

Author Akshay Singhal

Publisher Name Gate Vidyalay

Publisher Logo

Gate Vidyalay © 2020 Managed by MetaDiv Systems

You might also like