Cn rcrd
Cn rcrd
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
Staff
S.No. TITLE OF THE EXPERIMENT Page No.
Sign.
1.
FAMILIARIZING WITH WINDOWS NETWORK COMMANDS
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
AIM:
HOW TO EXECUTE:
COMMAND DESCRIPTION
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:
RESULT:
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:
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
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:
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
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
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
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
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">
</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;
try
{
Socket sock = ss.accept();
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();
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
}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:
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
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
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>
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
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
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.
CONCLUSION:
Thus, ARP simulation using Cisco Packet Tracer is implemented successfully.