You are on page 1of 8

KINGDOM OF SAUDI ARABIA | JAZAN UNIVERSITY

COLLEGE OF COMPUTER SCIENCE & INFORMATION TECHNOLOGY


LAB ASSIGNMENT - 2022
Academic Year 2021-2022 Semester SECOND
Course with code DATA COMMUNICATIONS & COMPUTER NETWORKS Section
Type of Assignment SOFT COPY via BLACKBOARD Marks 10
Date of Announcement 13/10/22 Deadline 27/10/22
ASSIGNMENT PROBLEM STATEMENT

1. What is ping command? Give the syntax for it. List out the options to be used with it.

Ping is a basic Internet program that lets you verify that a particular IP address exists and can accept
requests. The verb ping means the act of using the ping utility or command. Ping is used diagnostically to
ensure that a host computer you are trying to reach is actually operating.
Ping Command Syntax

ping [-t] [-a] [-n count] [-l size ] [-f] [-I TTL] [-v TOS] [-r count ] [-s count] [-w timeout]
[R] [-S srcaddr] [p] [-4] [6-] target [/?].

options available in the ping command:


-t : repetitively send packets.
-n : number of echo to be sent
-l : sending buffer size [Max: 65500 bytes]
-f : Don’t fragment; If this option is provided, then the packet should not be fragmented and should be
sent as it is.
-j : loose source route [Optionally it can follow a different route].
-k : strict source route [MUST follow the route specified by us].
2. What does the command Cd do? Write down the steps to change the main directory to the directory with your
name.(Attach the screenshot)

Cd - This command stands for "change directory", and does pretty much what it's name says.

3. What is Class A,B and C addressing? Give an example for each.


Class A IP addresses, where the 1st bit is 0, encompass the range of 0.0.0.0 to 127.255.255.255. This class is for large
networks and has 8 bits for network and 24 bits for hosts.
The default mask for class A is 255.0.0.0
Example : 1.0.0.1

Class B IP addresses, where the 1st two bits are 10, are in the range of 128.0.0.0 to 191.255.255.255. This class is for
medium networks and has 16 bits for network and 16 bits for hosts.
The default mask for class B is 255.255.0.0

Example : 168.212.22.203

Class C IP addresses, where the 1st three bits are 110, are in the range of 192.0.0.0 to 223.255.255.255. This class is for
smaller networks and has 24 bits for network and 8 bits for hosts.
The default mask for class A is 255.255.255.0
Example : 192.168.1.1
4. Establish the connection between 4 PC' s and a Hub and assign the following IP Address to
the devices as given below and save the file with your name.(Attach the screenshots)
PC0- 192.168.1.1
PC1- 192.168.1.2
PC2- 192.168.1.3
PC3- 192.168.1.4

Answer Q4 :
Name of the Course Teacher Ms. TAYYABA RASHEED Signature

You might also like