0% found this document useful (0 votes)
4 views

Cn rcrd

The document is a practical record note for students at SRM Institute of Science and Technology, detailing various computer networking experiments conducted during the academic year 2023-2024. It includes an index of experiments such as familiarizing with Windows network commands, establishing a local area network, and implementing a mini search engine. Each experiment outlines the aim, requirements, procedures, and results, showcasing the practical skills acquired in computer applications.

Uploaded by

mz9923
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Cn rcrd

The document is a practical record note for students at SRM Institute of Science and Technology, detailing various computer networking experiments conducted during the academic year 2023-2024. It includes an index of experiments such as familiarizing with Windows network commands, establishing a local area network, and implementing a mini search engine. Each experiment outlines the aim, requirements, procedures, and results, showcasing the practical skills acquired in computer applications.

Uploaded by

mz9923
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 67

SRM INSTITUTE OF SCIENCE AND TECHNOLOGY

FACULTY OF SCIENCE AND HUMANITIES


DEPARTMENT OF COMPUTER APPLICATIONS

PRACTICAL RECORD NOTE

STUDENT NAME :
REGISTER
:
NUMBER

CLASS : Section :

YEAR &
SEMESTER :
SUBJECT CODE :

SUBJECT TITLE :

OCTOBER 2023
SRM INSTITUTE OF SCIENCE AND TECHNOLOGY
FACULTY OF SCIENCE AND HUMANITIES
DEPARTMENT OF COMPUTER APPLICATIONS
SRM Nagar, Kattankulathur – 603 203
CERTIFICATE

Certified to be the bonafide record of practical work done by

Register No. of Degree course for

USA20502J – COMPUTER NETWORKS in the Computer lab in SRM Institute of

Science and Technology during the academic year 2023-2024.

Staff In-charge Head of the Department

Submitted for Semester Practical Examination held on _.

Internal Examiner External Examiner


INDEX

Staff
S.No. TITLE OF THE EXPERIMENT Page No.
Sign.
1.
FAMILIARIZING WITH WINDOWS NETWORK COMMANDS

2. ESTABLISHING A LOCAL AREA NETWORK (LAN)

3.
CONNECTING TWO LANS USING ROUTER WITH STATIC ROUTER

4.
MULTI-ROUTING CONNECTION WITH STATIC ROUTER

5.
IMPLEMENTING MINI SEARCH ENGINE

6.
IMPLEMENTING SIMPLE WEB SERVER

7. DESIGNING VARIOUS TOPOLOGIES USING CISCO PACKET TRACER

8. FTP SERVER SIMULATION USING CISCO PACKET TRACER

9. DNS SERVER SIMULATION USING CISCO PACKET TRACER

10. ARP SIMULATION USING CISCO PACKET TRACER


Exp No: 1

Date : FAMILIARIZING WITH WINDOWS NETWORK COMMANDS

AIM:

To familiarize with windows network commands and their outputs.

HOW TO EXECUTE:

1. Open the Command prompt by typing “CMD” in the Run Dialogue

2. Once the Command prompt opens type the commands

COMMAND DESCRIPTION

S.no Command Use


1. ipconfig This command can be utilized to verify a network
connection as well as verify your network settings
2. Netstat Displays active e TCP connections, ports on which the
computer is listening, Ethernet statistics, the IP routing
table etc.
3. Tracert The tracert command is used to visually see a network
packet being sent and received and the amount of hops
required for that packet to get to its destination.
4. Ping Helps in determining TCP/IP networks ip address as well
as determine issues with the network and assists in
resolving them.
5. Pathping Provides information about network latency and network
loss at intermediate hops between a source and
destination pathping sends.
6. Nslookup Displays information that you can use to diagnose
Domain Name System (DNS) infrastructure
Output:
ipconfig
Result:
Thus the various network commands are executed and the output is verified
Exp No: 2 ANALYZING THE PERFORMANCE OF VARIOUS
Date : CONFIGURATIONS AND PROTCOLS OF LAN
ESTABLISHING A LOCAL AREA NETWORK (LAN)

AIM
To set up a Local Area Network using Cisco Packet Tracer.

REQUIREMENTS:
• Three Windows PC or 3 Linux PC.
• One Switch or One Hub.
• Three Copper-Straight Line LAN (cat-5) Cables.
• Power Supply.
• Cisco Packet Tracer 6.0.1

PROCEDURES:
1. Open CISCO PACKET TRACER software.
2. Draw The Three PC using END Device Icons.
3. Draw The CISCO 24 Port Switch Using Switch icon lists.
4. Make The Connections using Copper-Straight-Through Ethernet Cables.
5. Enter The IP Address To Each Machine.
6. Check the Network Connections using Add Simple PDU(P).
NETWORK TOPOLOGY:

HOST PC0 IP ADDRESS:


HOST PC1 IP ADDRESS:

HOST PC2 IP ADDRESS:


VERIFY LAN NETWORK CONNECTIVITY:
Using Add Simple PDU(p), Click the mail icon and then drop one mail to PC0
and another mail to PC1. If the resultant window show the successful delivery then
network connectivity is successful or up.
HOST PC0 TO HOST PC1:
HOST PC1 TO HOST PC2:

RESULT:

Thus the LAN connection is established, hosts are configured,

the communications among the machines are verified and manipulated successfully.
Exp No: 3 ANALYZING THE PERFORMANCE OF VARIOUS
Date : CONFIGURATIONS AND PROTCOLS IN LAN
CONNECTING TWO LANs USING ROUTER WITH STATIC ROUTER

OBJECTIVE
To establish connection between two LANs by extending routing connection using
router.

REQUIREMENTS:
➢ Four windows PC or Four Linux PC.
➢ Two Switch (8 port) or 2 Hub.
➢ Six Straight Line LAN (cat-5) Cables with RJ-45 Sockets.
➢ Power supply
➢ Basic Network Configuration Commands. For Router, Switch and PCs.
➢ Cisco Packet Tracer 6.0.1
➢ Cisco Router(Model 1841)
➢ One console connection of router with PC to configure router.

PROCEDURES:
1. Open the CISCO PACKET TRACER software.
2. Draw the 4 PC using End Device Icons.
3. Draw the 2 CISCO 24 Port Switch using Switch icon lists.
4. Draw the Cisco Generic Routers using Router icon lists.
5. Make the Connections using Straight-Through Ethernet Cables.
6. Configure Router R0.
7. Enter the IP Address to Each Machine.
8. Check the Connections using Add Simple PDU(P).
NETWORK TOPOLOGY:

PC0 IP CONFIGURATION ADDRESS:

PC0 IP CONFIGURATION ADDRESS:


PC1 IP CONFIGURATION ADDRESS:

PC2 IP CONFIGURATION ADDRESS:


PC3 IP CONFIGURATION ADDRESS:

ROUTER 0 CONFIGURATION
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with
CNTL/Z.
Router(config)#interface fastethernet 0/0
Router(config-if)#ip address 1.0.0.1 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface
FastEthernet0/0, changed state to up
Router(config-if)#exit

Router(config)#interface fastethernet 0/0


Router(config-if)#interface fastethernet 1/0
Router(config-if)#ip address 2.0.0.1 255.0.0.0
Router(config-if)#no shutdown
Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet1/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface
FastEthernet1/0, changed state to up
Router(config-if)#exit

VERIFY LAN NETWORK CONNECTIVITY


Using Add Simple PDU(p), Click the mail icon and then drop one mail to one
of the PC in first LAN and another mail to PC in another LAN. If the resultant
window show the successful delivery of the mail then network connectivity is
successful.
PC0 TO PC2

CONCLUSION:

Thus two LANs are connected using router with static routes and the
communication between LANs is checked successfully.
Exp No: 4 MULTI-ROUTING CONNECTION WITH STATIC ROUTER
Date :

OBJECTIVE
To establish connection between two LANs by extending multi-routing connection
with static router.

REQUIREMENTS:
➢ Four windows PC or Four Linux PC.
➢ Two Switch (8 port).
➢ Six Straight Line LAN (cat-5) Cables with RJ-45 Sockets.
➢ Power supply
➢ Basic Network Configuration Commands. For Router, Switch and PCs.
➢ Cisco Packet Tracer 6.0.1
➢ Two Cisco Routers (Model 1841)

PROCEDURES:
➢ Open the CISCO PACKET TRACER software.
➢ Draw the 4 PC using End Device Icons.
➢ Draw the 2 CISCO 24 Port Switch using Switch icon lists.
➢ Draw the two Cisco Generic Routers using Router icon lists.
➢ Make the Connections using Straight-Through Ethernet Cables.
➢ Configure Routers R0 and R1.
➢ Enter the IP Address to Each Machine.
➢ Configuring Static Routing for Each routers.
➢ Check the Connections using Add Simple PDU(P).

NETWORK TOPOLOGY:
PC0 IP CONFIGURATION ADDRESS:
PC1 IP CONFIGURATION ADDRESS:

PC2 IP CONFIGURATION ADDRESS:


PC3 IP CONFIGURATION ADDRESS:

ROUTER 0 CONFIGURATION:
1Router>enable

Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface fastethernet 0/0
Router(config-if)#ip address 1.0.0.1 255.0.0.0
Router(config-if)#no shutdown

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to
up
%LINEPROTO-5-UPDOWN: Line protocol on Interface
FastEthernet0/0, changed state to up

Router(config-if)#exit
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface serial 2/0
Router(config-if)#ip address 3.0.0.1 255.0.0.0
Router(config-if)#clock rate 64000
Router(config-if)#no shutdown

%LINK-5-CHANGED: Interface Serial2/0, changed state to down


Router(config-if)#exit
Router(config)#ip route 2.0.0.0 255.0.0.0 3.0.0.0

ROUTER 1 CONFIGURATION:
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface fastethernet 0/0
Router(config-if)#ip address 2.0.0.1 255.0.0.0
Router(config-if)#no shutdown

Router(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to
up

%LINEPROTO-5-UPDOWN: Line protocol on Interface


FastEthernet0/0, changed state to up

Router(config-if)#exit
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#interface serial 2/0
Router(config-if)#ip address 3.0.0.0 255.0.0.0
Bad mask /8 for address 3.0.0.0
Router(config-if)#ip address 3.0.0.1 255.0.0.0
Router(config-if)#clock rate 64000
Router(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial2/0, changed state to down
Router(config-if)#exit
Router(config)#ip route 1.0.0.0 255.0.0.0 3.0.0.0

VERIFY LAN NETWORK CONNECTIVITY


Using Add Simple PDU(p), Click the mail icon and then drop one mail to one of the
PC in first LAN and another mail to PC in another LAN. If the resultant windows show the
successful delivery of the mail then network connectivity is successful.

PC0 TO PC2
PC1 TO PC3

CONCLUSION

Thus two LANs are connected using router with static routes and the communication
between LANs is checked successfully.
Exp No: 5 IMPLEMENTING MINI SEARCH ENGINE

Date :

AIM:
To implement Google search in a web page

PROCEDURE

➢ Create a HTML File.


➢ In the html file create a form using the <form > tag.
➢ Set the action attribute of the <form> as http://www.google.com/search.
➢ Inside the form create a text box for entering the search parameter
➢ Set the value of the “GoogleSearch”.
➢ Create two radio buttons with name as “sitesearch” and one with value as null and
the other with value as “srmuniv.ac.in”.
➢ Save the file with .html or .htm extension.

HOW TO EXECUTE:

➢ Double click the file and open it using any available browser
CODE:
<html>

<head>

<script type="text/javascript">

function chk()
{
var search=document.frm.s.value;

if (search=="WEB")

location.assign("https://www.google.com/search");

else

location.assign("http://www.srmuniv.ac.in");

}
</script>

</head>
<body bgcolor="cyan">
<center>
<font size="36" color = "red" face="Arial">

<b>SEARCH ENGINE</b></font><br> <br>

<form name="frm" method="get" action="">

Enter Search String <input type="text" name="t">

<input type="button" value="Search" onclick="chk()"> <br>

<input type="radio" name="s" value="WEB"> THE WEB

<input type="radio" name="s" value="SRM">SRM IST

</form>
</body>
</html>
OUPUT:

RESULT:

Thus the program to implement a mini search engine is executed successfully and the
output is verified.
Exp No: 6 IMPLEMENTING SIMPLE WEB SERVER

Date :
AIM:
To write a java web server that will read and process simple HTTP requests
from the client

PROCEDURE:
➢ In the main method of the java class, create a server socket and bind it to the
port
➢ Read the HTTP request from the client
➢ Depending on the type of file requested, retrieve the appropriate file
➢ Send the file back to the client.
➢ Close the streams
➢ Close the server socket.

HOW TO EXECUTE:
➢ Open the command prompt
➢ Save and Compile the java file using the command javac<file name>.java
➢ Run the server program using the command java <classname>
➢ Open the browser and type the url of the server in the browsers address bar
➢ The URL is of the form http://localhost:portno/file.html
➢ Note the web server is developed only to support html, gif and jpeg file types.
CODE:
// WebServer1.java
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.io.PrintStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.StringTokenizer;

public class WebServer1 {

public static void main(String[] args) throws Exception{


ServerSocket ss = new ServerSocket(5555);
System.out.println("Server waiting for client request");
while(true)
{

try
{
Socket sock = ss.accept();

BufferedReader in = new BufferedReader(new


InputStreamReader(sock.getInputStream()));
PrintStream out = new PrintStream(sock.getOutputStream(),true);

String reqLine = in.readLine();


System.out.println(reqLine);

StringTokenizer line = new StringTokenizer(reqLine);

if(line.nextToken().equals("GET"))
{
String fileName = line.nextToken();
if(fileName.startsWith("/") == true)
fileName = fileName.substring(1);
fileName = "C:\\Users\\user\\Desktop\\" + fileName ;
System.out.println(fileName);
File file = new File(fileName);
int fileSize = (int) file.length();

FileInputStream fis = new FileInputStream(fileName);


byte[] fileData = new byte[fileSize];
fis.read(fileData);

out.print("HTTP/1.0 200 OK\r\n");

if(fileName.endsWith(".html"))
out.print("Content-Type: text/html\r\n");
if(fileName.endsWith(".jpg"))
out.print("Content-Type: image/jpeg\r\n");
if(fileName.endsWith(".gif"))
out.print("Content-Type : image/gif\r\n");

out.print("Content-Length: "+fileSize+"\r\n\r\n");
out.write(fileData);
out.print("\r\n\r\n");
out.close();
}
else

System.out.println("Bad request message");

}catch(Exception e){
e.printStackTrace();
}
}
}

}
OUTPUT

RESULT:

Thus the program for implementing web server is successfully executed and the
output is verified.
Exp No: 7 DESIGNING VARIOUS TOPOLOGIES USING
CISCOPACKET TRACER
Date :

AIM:
To Designing various topologies using cisco packet tracer.

REQUIREMENTS:
➢ 16 windows PC or Four Linux PC.
➢ 12 2950-24 Switch.
➢13 Copper Cross-over cables.
➢16 Copper Straight – Through cables.
➢ Power supply
➢ Cisco Packet Tracer 6.0.1

PROCEDURES:
➢ Open the CISCO PACKET TRACER software.
➢ Draw the 16 PC using End Device Icons.
➢ Draw the 12 2950-24 Switch using Switch icon lists.
➢ Make the Connections using Straight-Through Ethernet Cables.
➢ Make the Connections between switches using Cross – Over Cables.
➢ Enter the IP Address to Each Machine.
➢ Check the Connections using Add Simple PDU(P)
NETWORK TOPOLOGY:
RING TOPOLOGY:

STAR TOPOLOGY:
BUS TOPOLOGY:

MESH TOPOLOGY:
HYBRID TOPOLOGY:

PC0 IP CONFIGURATION ADDRESS:


PC1 IP CONFIGURATION ADDRESS:

PC2 IP CONFIGURATION ADDRESS:


PC3 IP CONFIGURATION ADDRESS:

PC4 IP CONFIGURATION ADDRESS:


PC5 IP CONFIGURATION ADDRESS:

PC6 IP CONFIGURATION ADDRESS:


PC7 IP CONFIGURATION ADDRESS:

PC8 IP CONFIGURATION ADDRESS:


PC9 IP CONFIGURATION ADDRESS:

PC10 IP CONFIGURATION ADDRESS:


PC11 IP CONFIGURATION ADDRESS:

PC12 IP CONFIGURATION ADDRESS:


PC13 IP CONFIGURATION ADDRESS:

PC14 IP CONFIGURATION ADDRESS:


PC15 IP CONFIGURATION ADDRESS:

VERIFY LAN NETWORK CONNECTIVITY


Using Add Simple PDU(p), Click the mail icon and then drop one mail to one
of the PC in first LAN and another mail to PC in another LAN. If the resultant
window shows the successful delivery of the mail, then network connectivity is
successful.
PC0 TO PC15
PC4 TO PC9

PC6 TO PC13

CONCLUSION:
Thus, various topologies are designed using cisco packet tracer and the communication
between LANs is checked successfully
Exp No: 8 FTP SERVER SIMULATION USING CISCO
PACKETTRACER
Date :

AIM:
To simulate FTP server using cisco packet tracer.

REQUIREMENTS:
➢ 2 windows PC
➢ 1 2950-24 Switch.
➢3 Copper Straight – Through cables
➢Generic server PT
➢ Power supply
➢ Cisco Packet Tracer 6.0.1

PROCEDURES:
➢ Open the CISCO PACKET TRACER software.
➢ Draw the architecture of the network with the devices.
➢ Make the Connections using Straight-Through Ethernet Cables.
➢ Enter the IP Address to Each Machine and Gateway address for PC.
➢ Configure FTP server with IP Address and user accounts
➢ Log in the PC to the FTP server with the username and password.
NETWORK ARCHITECURE

SERVER 0 CONFIGURATION ADDRESS:


PC0 IP CONFIGURATION ADDRESS:

PC1 CONFIGURATION ADDRESS:


FTP SERVER0 CONFIGURATION:
Select services for FTP server S0. Switch off all the services except FTP.

Switch on FTP service. Enter a Username (jane ) and Password (123). Select the Read, Write, Delete
permission. Click ADD.
Go to the command prompt for PC0 . Connect to the FTP server and enter the username and password.
ipconfig
Packet Tracer PC Command Line 1.0
PC>ipconfig

FastEthernet0 Connection:(default port)

Link-local IPv6 Address......... : FE80::205:5EFF:FEC6:DC70


IP Address ..................... : 10.10.10.1
Subnet Mask. ................... : 255.0.0.0
Default Gateway ............... : 10.10.10.0

PC>
PC>ftp 10.10.10.0
Trying to connect .. 10.10.10.0
Connected to 10.10.10.0
220- Welcome to PT Ftp server
Username:jane
331- Username ok, need password
Password:
230- Logged in
(passive mode On)
ftp>

FTP LOGIN FROM PC0:


CONCLUSION:
Thus, FTP SERVER simulation using Cisco Packet Tracer is implemented successfully.
Exp No: 9 DNS SERVER SIMULATION USING CISCO PACKET
TRACER
Date

AIM:
To simulate DNS server using cisco packet tracer.

REQUIREMENTS:
➢ 1 windows PC
➢ 1 2950-24 Switch.
➢3 Copper Straight – Through cables
➢2 Generic servers PT
➢ Power supply
➢ Cisco Packet Tracer 6.0.1

PROCEDURES:
➢ Open the CISCO PACKET TRACER software.
➢ Draw the architecture of the network with the devices.
➢ Make the Connections using Straight-Through Ethernet Cables.
➢ Enter the IP Address to Each Machine and its DNS server IP address.
➢ Configure DNS server with IP Address of webserver.
➢Configure web server with IP Address of webserver
➢ Log in the PC to the FTP server with the username and password.
NETWORK ARCHITECTURE

PC0 CONFIGURATION ADDRESS:


SERVER0 CONFIGURATION ADDRESS:

WEB SERVER S1 CONFIGURATION ADDRESS:


DNS SERVER S0 CONFIGURATION:
Select index.html and click on the edit option.

Edit the index.html page as shown below.


Log in the web server from the web client.

CONCLUSION:
Thus, DNS SERVER simulation using Cisco Packet Tracer is implemented successfully.
Exp No: 10 ARP SIMULATION USING CISCO PACKET TRACER
Date

AIM:
To simulate ARP Address Resolution using cisco packet tracer.

REQUIREMENTS:
➢ 3 windows PC
➢ 1 2950-24 Switch.
➢3 Copper Straight – Through cables
➢1 Generic servers PT
➢ Power supply
➢ Cisco Packet Tracer 6.0.1

PROCEDURES:
➢ Open the CISCO PACKET TRACER software.
➢ Draw the architecture of the network with the devices.
➢ Make the Connections using Straight-Through Ethernet Cables.
➢ Enter the IP Address to Each Machine and its DNS server IP address.
➢ Configure DNS server with IP Address of webserver.
➢Configure web server with IP Address of webserver
➢ Log in the PC to the FTP server with the username and password.
NETWORK ARCHITECTURE

PC0 CONFIGURATION ADDRESS


PC1 CONFIGURATION ADDRESS

PC2 CONFIGURATION ADDRESS


SERVER S0 CONFIGURATION ADDRESS

SIMULATION SETTINGS
Click on the Simulation icon. Select Inspect (lens) tool. click on PC0 and Server0 and select ARP Table
Go to the command prompt of PC0 and type the following command to get the ARP entries
arp –a
Iniitially there will be no ARP entries.
Type the ping command for server(192.168.11.4)

Ping 192.168.11.4

Two packets will be created (ICMP and ARP).Click on the ARP packet and select OutboundPacket details
to find the IP Address a MAC Address
Click Capture/Forward button in the simulation panel. Ping request will be sent from PC to Switch. Click
again Capture/Forward button in the simulation panel. Ping request will be sent from switch to other PC’s.

PC1 and PC2 will not accept the request. As the ping command is for PC0.
Click Capture/Forward button in the simulation panel. Ping acceptance will be sent from PC0 to switch.
Click Capture/Forward button in the simulation panel. Ping acceptance will be sent from switch to PC0.

The updation of ARP table can be visualized.

CONCLUSION:
Thus, ARP simulation using Cisco Packet Tracer is implemented successfully.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy