Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

CN Lab File-1

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 51

GOEL INSTITUTE OF TECHNOLOGY AND

MANAGEMENT
LUCKNOW,UTTAR PRADESH

Department of Computer Science & Engineering

COMPUTER NETWORKS LAB


KCS-653
B.Tech. CSE 3rd Year (VIth Sem.)

Academic Session 2021-22

Submitted by: - Submitted to: -


Suraj Yadav Peeyush Kumar Pathak
1903600100057 Assistant Professor
INDEX
S.No Experiments Date Sign
1. To learn handling and configuration of networking 09/02/2022
hardware like RJ-45 connector, CAT-6 cable,
crimping tool, etc

2. Configuration of router, hub, switch, etc. (using real 16/02/2022


devices or simulators)

3. Implementation of Stop and Wait Protocol and 02/03/2022


Sliding Window Protocol
4. Create a socket for HTTP for web page upload and 09/03/2022
download

5. Implementation of Subnetting. 23/03/2022

6. Applications using TCP Sockets like 30/03/2022


a. Chat
b. File Transfer

7. Perform a case study about the different 13/04/2022


routing algorithms to select the network
path with its optimum and economical
during data transfer.
i. Link State routing
ii. Flooding
iii. Distance vector

8. Running and using services/commands 20/04/2022


like ping, traceroute, arp, telnet, etc.

9. Network simulation using tools like Cisco Packet 27/04/2022


Tracer, NetSim, OMNeT++, NS2, NS3, etc.

10. Windows file sharing over a network 11/05/2022


EXPERIMENT-1

Objective: To learn handling and configuration of networking hardware like


RJ-45 connector, CAT-6 cable, crimping tool, etc.

Theory: Ethernet cable Color-coded wiring sequences exist as a cabling industry standard. It allows
cabling technicians to reliably predict how Ethernet cable is terminated on both ends so they can follow
other technicians' work without having to guess or spend time deciphering the function and connections
of each wire pair. Ethernet cable jack wiring follows the T568A and T568B standards.
There are two kinds of Ethernet cables you can make, Straight Through and Crossover.
Standard Cabling:
1. 10BaseT and 100BaseT are most common mode of LAN. You can use UTP category-5 cable for
both modes.
2. A straight cable is used to connect a computer to a hub
CROSSOVER CABLES - The purpose of a Crossover Ethernet cable is to directly connect one
computer to another computer (or device) without going through a router, switch or hub.
Bulk RJ45 Crimpable Connectors for CAT-6

RJ-45 Crimping tool

A crimping tool is a device used to conjoin two pieces of metal by deforming one or both of them in a
way that causes them to hold each other. The result of the tool's work is called a crimp. A good
example of crimping is the process of affixing a connector to the end of a cable. For instance, network
cables and phone cables are created using a crimping tool (shown below) to join the RJ-45 and RJ-
11 connectors to the both ends of either phone

Cable Crimping steps:


1. Remove the outmost vinyl shield for 12mm at one end of the cable (we call this side A-side).
2. Arrange the metal wires in parallel
3. Insert the metal wires into RJ45 connector on keeping the metal wire arrangement.
4. Set the RJ45 connector (with the cable) on the pliers, and squeeze it tightly.
5. Make the other side of the cable (we call this side B-side) in the same way.
6. After you made it, you don't need to take care of the direction of the cable.
IO connector crimping: Run the full length of Ethernet cable in place, from
endpoint to endpoint, making sure to leave excess.

At one end, cut the wire to length leaving enough length to work, but not too much excess.
Strip off about 2 inches of the Ethernet cable sheath.
Align each of the colored wires according to the layout of the jack.
Use the punch down tool to insert each wire into the jack.
Repeat the above steps for the second RJ45 jack.

Testing the crimped cable using a cable tester:


Step 1 : Skin off the cable jacket 3.0 cm long cable stripper up to cable
Step 2: Untwist each pair and straighten each wire 190 0 1.5 cm long.
Step 3 : Cut all the wires
Step 4 : Insert the wires into the RJ45 connector right white orange left brown the pins facing up
Step 5 : Place the connector into a crimping tool, and squeeze hard so that the handle reaches its
full swing.
Step 6: Use a cable tester to test for proper continuity
Result:

Cable Crimping, Standard Cabling and Cross Cabling, IO connector crimping and testing the crimped
cable using a cable tester are done successfully

EXPERIMENT-2
Objective: Configuration of router, hub, switch etc. (using real devices or
simulators)

Procedure: Following should be done to understand this practical.

1. Repeater: Functioning at Physical Layer. A Repeater is an electronic device that receives a


signal and retransmits it at a higher level and/or higher power, or onto the other side of an obstruction,
so that the signal can cover longer distances. Repeater have two ports ,so cannot be use to connect for
more than two devices

2. Hub: An Ethernet hub, active hub, network hub, repeater hub, hub or concentrator
is a device for connecting multiple twisted pair or fiber optic Ethernet devices together and making
them act as a single network segment. Hubs work at the physical layer (layer 1) of the OSI model. The
device is a form of multiport repeater. Repeater hubs also participate in collision detection, forwarding
a jam signal to all ports if it detects a collision.
3. Switch: A network switch or switching hub is a computer networking device that connects
network segments. The term commonly refers to a network bridge that processes and routes data at the
data link layer (layer 2) of the OSI model. Switches that additionally process data at the network layer
(layer 3 and above) are often referred to as Layer 3 switches or multilayer switches.

4. Bridge: A network bridge connects multiple network segments at the data link layer (Layer
2) of the OSI model. In Ethernet networks, the term bridge formally means a device that behaves
according to the IEEE 802.1D standard. A bridge and switch are very much alike; a switch being a
bridge with numerous ports. Switch or Layer 2 switch is often used interchangeably with bridge
.Bridges can analyze incoming data packets to determine if the bridge is able to send the given packet
to another segment of the network.

5. Router: A router is an electronic device that interconnects two or more computer networks,
and selectively interchanges packets of data between them. Each data packet contains address
information that a router can use to determine if the source and destination are on the same network, or
if the data packet must be transferred from one network to another. Where multiple routers are used in a
large collection of interconnected networks, the routers exchange information about target system
addresses, so that each router can build up a table showing the preferred paths between any two systems
on the interconnected networks.

6. Gate Way: In a communications network, a network node equipped for interfacing with
another network that uses different protocols.
• A gateway may contain devices such as protocol translators, impedance matching devices, rate
converters, fault isolators, or signal translators as necessary to provide system interoperability. It also
requires the establishment of mutually acceptable administrative procedures between both networks.
• A protocol translation/mapping gateway interconnects networks with different network protocol
technologies by performing the required protocol conversions.
EXPERIMENT-3
Objective: Implementation of Stop and Wait Protocol and Sliding Window
Protocol.

Theory: It is the simplest flow control method in which the sender will send the packet and then wait
for the acknowledgement by the receiver that it has received the packet then it will send the next
packet. Stop and wait protocol is very easy to implement.
Total time taken to send is,
Ttotal = Tt(data) + Tp + Tq + Tprocess + Tt(ack) + Tp
( since, Tq and Tprocess = 0)
Ttotal = Tt(data) + 2Tp + Tt(ack)
Ttotal = Tt(data) + 2Tp
(when Tt(ack) is negligible)
Efficiency
= useful time / total cycle time
= Tt / (Tt+2Tp)
= 1 / (1+2a) [a = Tp/Tt]

Design
 Sender Site: The data link layer in the sender site waits for the network layer for a data
packet. It then checks whether it can send the frame. If it receives a positive notification from
the physical layer, it makes frames out of the data and sends it. It then waits for an
acknowledgement before sending the next frame.
 Receiver Site: The data link layer in the receiver site waits for a frame to arrive. When it
arrives, the receiver processes it and delivers it to the network layer. It then sends an
acknowledgement back to the sender.

Algorithm: Sender Site Algorithm of Simplex Stop – and – Wait Protocol for Noiseless Channel
begin
canSend = True; //Allow the first frame to be sent
while (true) //check repeatedly
do
Wait_For_Event(); //wait for availability of packet
if ( Event(Request_For_Transfer) AND canSend) then
Get_Data_From_Network_Layer();
Make_Frame();
Send_Frame_To_Physical_Layer();
canSend = False;
else if ( Event(Acknowledgement_Arrival)) then
Receive_ACK();
canSend = True;
end if
end while
end

Algorithm: Receiver Site Algorithm of Simplex Stop – and – Wait Protocol for Noiseless Channel
begin
while (true) //check repeatedly
do
Wait_For_Event(); //wait for arrival of frame
if ( Event(Frame_Arrival) then
Receive_Frame_From_Physical_Layer();
Extract_Data();
Deliver_Data_To_Network_Layer();
Send_ACK();
end if
end while
end

Algorithm : Sliding Window Protocol

In computer networks sliding window protocol is a method to transmit data on a network. Sliding
window protocol is applied on the Data Link Layer of OSI model. At data link layer data is in the
form of frames. In Networking, Window simply means a buffer which has data frames that needs to
be transmitted.

Both sender and receiver agrees on some window size. If window size=w then after sending w frames
sender waits for the acknowledgement (ack) of the first frame.
As soon as sender receives the acknowledgement of a frame it is replaced by the next frames to be
transmitted by the sender. If receiver sends a collective or cumulative acknowledgement to sender
then it understands that more than one frames are properly received, for eg:- if ack of frame 3 is
received it understands that frame 1 and frame 2 are received properly.

In sliding window protocol the receiver has to have some memory to compensate any loss in
transmission or if the frames are received unordered .

Sliding window works in full duplex mode


It is of two types:-
1. Selective Repeat: Sender transmits only that frame which is erroneous or is lost.
2. Go back n: Sender transmits all frames present in the window that occurs after the error bit
including error bit also.

Sliding Window Protocol Program in C


#include<stdio.h>

int main()
{
int w,i,f,frames[50];

printf("Enter window size: ");


scanf("%d",&w);

printf("\nEnter number of frames to transmit: ");


scanf("%d",&f);

printf("\nEnter %d frames: ",f);

for(i=1;i<=f;i++)
scanf("%d",&frames[i]);

printf("\nWith sliding window protocol the frames will be sent in the following manner (assuming no
corruption of frames)\n\n");
printf("After sending %d frames at each stage sender waits for acknowledgement sent by the receiver\n\n",w);

for(i=1;i<=f;i++)
{
if(i%w==0)
{
printf("%d\n",frames[i]);
printf("Acknowledgement of above frames sent is received by sender\n\n");
}
else
printf("%d ",frames[i]);
}
if(f%w!=0)
printf("\nAcknowledgement of above frames sent is received by sender\n");

return 0;
}

Output

Enter window size: 3


Enter number of frames to transmit: 5
Enter 5 frames: 12 5 89 4 6
With sliding window protocol the frames will be sent in the following manner (assuming no corruption
of frames)
After sending 3 frames at each stage sender waits for acknowledgement sent by the receiver
12 5 89
Acknowledgement of above frames sent is received by sender
46
Acknowledgement of above frames sent is received by sender
EXPERIMENT-4

Objective: Create a socket for HTTP for web page upload and download

Concept:
Concurrent Server: The server can be iterative, i.e. it iterates through each client and serves one
request at a time. Alternatively, a server can handle multiple clients at the same time in parallel,
and this type of a server is called a concurrent server.

Algorithm:
Server

Step 1: Create a socket and bind to the address. Leave socket unconnected.
Step 2 : Leave socket in passive mode, making it ready for use by a server.
Step 3: Repeatedly call accept to receive the next request from a client to handle the response with
the through socket.
Client
Step 1: Begin with a connection passed from the server (i.e., a socket for the connection).
Step 2: Use input streams; get the message from user to be given to the server.
Step 3: Use input streams read message given by server and print it.
Step 4: Use output streams to write message to the server.
Step 5: Close the connection and exit, i.e., slave terminates after handling all requests from one
client.

Sample Program:
ConServer.java
/*… Register service on port 8020…*/
ServerSocketss=new ServerSocket(8500);
System.out.println("Waiting for client...");
while(true)

/*... ServerSocket in order to listen for and accept connections from clients...*/
{Socket s=ss.accept();

/*…getInputStream()-This method take the permission to write the data from client program to
server program and server program to client program…*/
BufferedReader br=new BufferedReader(new InputStreamReader(s.getInputStream()));
cli_name=br.readLine();
System.out.println("\nCLIENT NAME: "+cli_name);
no=Integer.parseInt(br.readLine());
sq=no*no;
PrintWriter pw=new PrintWriter(s.getOutputStream(),true);
pw.println(sq);
System.out.println("OUTPUT - The square of "+no+" is "+sq);}}}
ConClient1.java

{Socket s=new Socket("localhost",8500);


BufferedReader br=new BufferedReader(new InputStreamReader(System.in));

/*...Integer.parseInt() java method is used primarily in parsing a String method


argument into an Integer object. The Integer object is a wrapper class for the int primitive
data type ...*/

int num=Integer.parseInt(br.readLine());

/* …getOutputStream()-This method is used to take the permission to read data from client
system by the server or from the server system by the client…*/
PrintWriterpw=new PrintWriter(s.getOutputStream(),true);
pw.println("Client 1");
pw.println(num);
BufferedReader br1=new BufferedReader(new InputStreamReader(s.getInputStream()));
intsqu=Integer.parseInt(br1.readLine());
System.out.println("Square of "+num+" is "+squ+"\n");

ConClient2.java
Socket s=new Socket("localhost",8500);
BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("\
nCLIENT 2:\nEnter the number to find square: "); intnum=Integer.parseInt(br.readLine());
PrintWriter pw=new PrintWriter(s.getOutputStream(),true);
pw.println("Client 2");
pw.println(num);
BufferedReader br1=new BufferedReader(new InputStreamReader(s.getInputStream()));
intsqu=Integer.parseInt(br1.readLine());
System.out.println("Square of "+num+" is "+squ+"\n"); s.close();
Sample Output:

Viva questions:

1. Define server and what are the types of server?


2. What are the three types of socket function?
3. What are concurrent servers?
4. Define Iterative server
5. Compare Iterative server and concurrent server
6. Explain socket address structure
7. List some character stream support classes

8. What do you mean by socket programming?


EXPERIMENT-5
Objective: Implementation of Subnetting
Theory:
If an organization was granted a large block in class A or B, it could divide the addresses
into several contiguous groups and assign each group to smaller networks (called subnets) or, in
rare cases, share part of the addresses with neighbours.

Algorithm:

Step1: Get the input from the user by using scanner method.
Step 2: Read the input by using nextLine() and store it.
Step 3: Split the string based on string by using
split(“\\”) Step4 : Convert it into binary.
Step 5: calculating the network mask by using math and logarithmic
Step 6: get the first address by ANDding the last n bits with 0.
Step7 : get the last address by ANDding the last n bits with 1.

Sample Coding:

//…Calculation of mask…//

int bits = (int)Math.ceil(Math.log(n)/Math.log(2));


/*eg if address = 120, log 120/log 2 gives log to the base 2 => 6.9068, ceil gives us upper integer */
System.out.println("Number of bits required for address = "+bits);
int mask = 32-bits;
System.out.println("The subnet mask is = "+mask);
//…Calculation of first address and last address…//
intfbip[] = new int[32];
for(int i=0; i<32;i++) fbip[i] = (int)bip.charAt(i)-48;
//convert cahracter 0,1 to integer 0,1
for(int i=31;i>31-bits;i--)//Get first address by ANDing last n bits with 0 fbip[i] &= 0;
String fip[] = {"","","",""};
for(int i=0;i<32;i++)
fip[i/8] = new String(fip[i/8]+fbip[i]);
System.out.print("First address is = ");
for(int i=0;i<4;i++)
{
System.out.print(Integer.parseInt(fip[i],2));
if(i!=3) System.out.print(".");
}
Sample Output:

Viva questions:

1. What are the advantages of subnetting?


2. Your router has the following IP address on Ethernet0: 172.16.2.1/23. Which of the following
can be valid host IDs on the LAN interface attached to the router?
a. 172.16.1.100 2) 172.16.1.198 3) 172.16.2.255 4) 172.16.3.0
b. 1 only
c. 2 and 3 only
d. 3 and 4 only
e. None of the above
3. A network administrator is connecting hosts A and B directly through their Ethernet
interfaces, as shown in the illustration. Ping attempts between the hosts are unsuccessful. What
can be done to provide connectivity between the hosts?
4. What is the maximum number of IP addresses that can be assigned to hosts on a local subnet
that uses the 255.255.255.224 subnet mask?
5. If an Ethernet port on a router were assigned an IP address of 172.16.112.1/25, what would
be the valid subnet address of this host?
6. What are the network address, broadcast address, and the subnet mask for a host with the IP
Address below?IP Address: 101. 39. 85. 201/ 23 Network Address: 101.39.84.0 Subnet
Mask: 255.255.254.0 Broadcast Address: 101.39.85.255
7. On a VLSM network, which mask should you use on point-to-point WAN links in order to
reduce the waste of IP addresses?
8. To test the IP stack on your local host, which IP address would you ping?

EXPERIMENT-6(a)
Objective: Applications using TCP Sockets like Chat
A server program to establish the socket connection with the client for performing chat.
A client program which on establishing a connection with the server for performing chat.
Concept:
It uses TCP socket communication .We have a server as well as a client.
Both can be run in the same machine or different machines. If both are running in the machine, the
address to be given at the client side is local host address.
If both are running in different machines, then in the client side we need to specify the ip address of
machine in which server application is running.

Algorithm:
Server
Step1: Start the program and create server and client sockets.
Step2: Use input streams to get the message from user.
Step3: Use output streams to send message to the client.
Step4: Wait for client to display this message and write a new one to be displayed by the server.
Step5: Display message given at client using input streams read from socket.
Step6: Stop the program.
Client
Step1: Start the program and create a client socket that connects to the required host and port.
Step2: Use input streams read message given by server and print it.
Step3: Use input streams; get the message from user to be given to the server.
Step4: Use output streams to write message to the server.
Step5: Stop the program.

Sample Program: GossipServer.java

ServerSocketsersock = new serverSocket(3000);


System.out.println("Server ready for chatting");
Socket sock = sersock.accept( );

/*…reading from keyboard (keyRead object)…*/


BufferedReader keyRead = new BufferedReader(new InputStreamReader(System.in));

/*…sending to client (pwrite object)…*/


OutputStreamostream = sock.getOutputStream();
PrintWriterpwrite = new PrintWriter(ostream,
true);

/*… receiving from server ( receiveRead object)…*/


InputStreamistream = sock.getInputStream();
BufferedReader receiveRead = new BufferedReader(new InputStreamReader(istream));
String receiveMessage, sendMessage;
while(true)
{if((receiveMessage = receiveRead.readLine()) != null)
{System.out.println(receiveMessage); }

GossipClient.java
Socket sock = new Socket("127.0.0.1", 3000);

/*…reading from keyboard (keyRead object)…*/


BufferedReader keyRead = new BufferedReader(new InputStreamReader(System.in));

/*…sending to client (pwrite object)…*/

OutputStreamostream = sock.getOutputStream();

PrintWriterpwrite = new PrintWriter(ostream, true);

/*… receiving from server ( receiveRead object)…*/


InputStreamistream = sock.getInputStream();

BufferedReader receiveRead = new BufferedReader(new InputStreamReader(istream));

System.out.println("Start the chitchat, type and press Enter key");


String receiveMessage, sendMessage;
while(true)
{sendMessage = keyRead.readLine(); /*... keyboard reading
...*/ pwrite.println(sendMessage); /*... sending to server...*/
pwrite.flush(); /*... flush the data...*/

if((receiveMessage = receiveRead.readLine()) != null) /*...receive from server...*/

{System.out.println(receiveMessage);} /*... displaying at DOS prompt...*/


Sample Output:

EXPERIMENT-6(b)
Objective: Applications using TCP Sockets like file Transfer

Algorithm

Server
Step1: Import java packages and create class file server.
Step2: Create a new server socket and bind it to the port.
Step3: Accept the client connection
Step4: Get the file name and stored into the BufferedReader.
Step5: Create a new object class file and realine.
Step6: If file is exists then FileReader read the content until EOF is reached.
Step7: Stop the program.

Client

Step1: Import java packages and create class file server.


Step2: Create a new server socket and bind it to the port.
Step3: Now connection is established.
Step4: The object of a BufferReader class is used for storing data content which has been
retrieved from socket object.
Step5: The content of file is displayed in the client window and the connection is closed.
Step6: Stop the program.

Sample Code: Se.java

{/*… Register service on port 15123…*/


ServerSocketserverSocket = new ServerSocket(15123);

/*… Wait and accept a connection…*/


Socket socket = serverSocket.accept();
System.out.println("Accepted connection : " + socket);

/*… enter the source file name which is to be transferred to client…*/


File transferFile = new File ("sunithanandhinifiletransfer.doc");
byte [] bytearray = new byte [(int)transferFile.length()];
/*…FileInputStream is meant for reading streams of raw bytes such as image data…*/
FileInputStream fin = new FileInputStream(transferFile);
BufferedInputStream bin = new BufferedInputStream(fin);bin.read(bytearray,0,bytearray.length);

/*… Get a communication stream associated with the


socket…*/ OutputStreamos = socket.getOutputStream();
System.out.println("Sending Files...");
os.write(bytearray,0,bytearray.length);
os.flush();socket.close();
Cl.java

/*… Open your connection to a server, at port 15123…*/


Socket socket = new Socket("127.0.0.1",15123); byte [] bytearray = new byte [filesize];
InputStream is = socket.getInputStream();

/*… enter the destinationfile name which is to be transferred …*/


FileOutputStream fos = new
FileOutputStream("kalpanasonikafiletransfer.doc"); BufferedOutputStream
bos = new BufferedOutputStream(fos);
bytesRead = is.read(bytearray,0,bytearray.length);
currentTot = bytesRead;

do { bytesRead = is.read(bytearray, currentTot, (bytearray.length-currentTot)); if(bytesRead>= 0)


currentTot += bytesRead;}
while(bytesRead> -1);
bos.write(bytearray, 0 , currentTot);
bos.flush(); bos.close(); socket.close(); } }

Sample Output:

Viva questions:

1. What are the types of protocol?


2. Define socket.
3. What information is needed to create a TCP Socket?
4. What are the two important TCP Socket classes?
5. What is the difference between the File and Random Access File classes?
6. What are some advantages and disadvantages of Java Sockets?
7. How to build FileInputStream object with byte array as a parameter
8. How to read file in byte array with FileInputStream

EXPERIMENT-7
Objective: Perform a case study about the different routing algorithms to select the
network path with its optimum and economical during data transfer. i. Link State
routing ii. Flooding iii. Distance vector

a) LINK STATE ROUTING


Routing is the process of selecting best paths in a network. In the past, the term routing was
also used to mean forwarding network traffic among networks. However this latter function is
muchbetter described as simply forwarding. Routing is performed for many kinds of networks,
including the telephone network (circuit switching), electronic data networks (such as the Internet),
and transportation networks. This article is concerned primarily with routing in electronic data
networks using packet switching technology .In packet switching networks, routing directs packet
forwarding (the transit of logically addressed network packets from their source toward their
ultimate destination) through intermediate nodes. Intermediate nodes are typically network
hardware devices such as routers, bridges, gateways, firewalls, or switches. General-purpose
computers can also forward packets and perform routing, though they are not specialized hardware
and may suffer from limited performance. The routing process usually directs forwarding on the
basis of routing tables which maintain a record of the routes to various network destinations. Thus,
constructing routing tables, which are held in the router's memory, is very important for efficient
routing. Most routing algorithms use only one network path at a time. Multipath routing techniques
enable the use of multiple alternative paths. In case of overlapping/equal routes, the following
elements are considered in order to decide which routes get installed into the routing table (sorted
by priority):
1. Prefix-Length: where longer subnet masks are preferred (independent of whether it is within a
routing protocol or over different routing protocol)
2. Metric: where a lower metric/cost is preferred (only valid within one and the same routing
protocol)
3. Administrative distance: where a lower distance is preferred (only valid between different
routing protocols) Routing, in a more narrow sense of the term, is often contrasted with bridging
in its assumption that network addresses are structured and that similar addresses imply proximity
within the network. Structured addresses allow a single routing table entry to represent the route to
a group of devices. In large networks, structured addressing (routing, in the narrow sense)
outperforms unstructured addressing (bridging). Routing has become the dominant form of
addressing on the Internet. Bridging is still widely used within localized environments.

b) FLOODING
Flooding is a simple routing algorithm in which every incoming packet is sent through every
outgoing link except the one it arrived on Flooding is used in bridging and in systems such as
Usenet and peer-to-peer file sharing and as part of some routing protocols, including OSPF,
DVMRP, and those used in ad-hoc wireless networks. There are generally two types of flooding
available, Uncontrolled Flooding and Controlled Flooding. Uncontrolled Flooding is the fatal law
of flooding. All nodes have neighbors and route packets indefinitely. More than two neighbors
create a broadcast storm. Controlled Flooding has its own two algorithms to make it reliable,
SNCF (Sequence Number Controlled Flooding) and RPF (Reverse Path Flooding). In SNCF, the
node attaches its own address and sequence number to the packet, since every node has a memory
of addresses and sequence numbers. If it receives a packet in memory, it drops it immediately
while in RPF, the node will only send the packet forward. If it is received from the next node, it
sends it back to the sender.
Algorithm
There are several variants of flooding algorithm. Most work roughly as follows:
1. Each node acts as both a transmitter and a receiver.

2. Each node tries to forward every message to every one of its neighbours except the source node.
This results in every message eventually being delivered to all reachable parts of the network.
Algorithms may need to be more complex than this, since, in some case, precautions have to be
taken to avoid wasted duplicate deliveries and infinite loops, and to allow messages to eventually
expire from the system. A variant of flooding called selective flooding partially addresses these
issues by only sending packets to routers in the same direction. In selective flooding the routers
don't send every incoming packet on every line but only on those lines which are going
approximately in the right direction.

Advantages
 packet can be delivered, it will (probably multiple times).
 Since flooding naturally utilizes every path through the network, it will also use the shortest path.
 This algorithm is very simple to implement.

Disadvantages
Flooding can be costly in terms of wasted bandwidth. While a message may only have one
destination it has to be sent to every host. In the case of a ping flood or a denial of service attack, it
can be harmful to the reliability of a computer network. Messages can become duplicated in the
network further increasing the load on the networks bandwidth as well as requiring an increase in
processing complexity to disregard duplicate messages. Duplicate packets may circulate forever,
unless certain precautions are taken: Use a hop count or a time to live count and include it with
each packet. This value should take into account the number of nodes that a packet may have to
pass through on the way to its destination.
c)DISTANCE VECTOR ROUTING PROTOCOL USING NS2
In computer communication theory relating to packet-switched networks, a distance vector
routing protocol is one of the two major classes of routing protocols, the other major class being
the link-state protocol. Distance-vector routing protocols use the Bellman–Ford algorithm, Ford–
Fulkerson algorithm, or DUAL FSM (in the case of Cisco Systems protocols) to calculate paths.
A distance-vector routing protocol requires that a router informs its neighbours of topology changes
periodically. Compared to link-state protocols, which require a router to inform all the nodes in a
network of topology changes, distance-vector routing protocols have less computational complexity
and message overhead. The term distance vector refers to the fact that the protocol manipulates
vectors (arrays) of distances to other nodes in the network. The vector distance algorithm was the
original ARPANET routing algorithm and was also used in the internet under the name of RIP
(Routing Information Protocol). Examples of distance-vector routing protocols include RIPv1 and
RIPv2 and IGRP.
Method:
Routers using distance-vector protocol do not have knowledge of the entire path to a
destination. Instead they use two methods:
1. Direction in which router or exit interface a packet should be forwarded.

2. Distance from its destination

Distance-vector protocols are based on calculating the direction and distance to any link in a
network. "Direction" usually means the next hop address and the exit interface. "Distance" is a
measure of the cost to reach a certain node. The least cost route between any two nodes is the route
with minimum distance. Each node maintains a vector (table) of minimum distance to every
node. The cost of reaching a destination is calculated using various route metrics. RIP uses the hop
count of the destination whereas IGRP takes into account other information such as node delay and
available bandwidth. Updates are performed periodically in a distance-vector protocol where all or
part of a router's routing table is sent to all its neighbors that are configured to use the same
distance-vector routing protocol. RIP supports cross-platform distance vector routing whereas
IGRP is a Cisco Systems proprietary distance vector routing protocol. Once a router has this
information it is able to amend its own routing table to reflect the changes and then inform its
neighbors of the changes. This process has been described as routing by rumor‘ because routers are
relying on the information they receive from other routers and cannot determine if the
information is actually valid and true. There are a number of features which can be used to help
with instability and inaccurate routing information.
EGP and BGP are not pure distance-vector routing protocols because a distance-vector protocol
calculates routes based only on link costs whereas in BGP, for example, the local route preference
value takes priority over the link cost.

Count-to-infinity problem
The Bellman–Ford algorithm does not prevent routing loops from happening and suffers from the
count to infinity problem. The core of the count-to-infinity problem is that if A tells B that it has a
path somewhere, there is no way for B to know if the path has B as a part of it. To see the problem
clearly, imagine a subnet connected like A–B–C–D–E–F, and let the metric between the routers be
"number of jumps". Now suppose that A is taken offline. In the vector-update-process B notices
that the route to A, which was distance 1, is down – B does not receive the vector update from A.
The problem is, B also gets an update from C, and C is still not aware of the fact that A is down –
so it tells B that A is only two jumps from C (C to B to A), which is false. This slowly propagates
through the network until it reaches infinity (in which case the algorithm corrects itself, due to the
relaxation property of Bellman–Ford).
EXPERIMENT-8
Objective: Running and using services/commands like ping, traceroute, arp, telnet,
etc

Tracert / traceroute

Tracert: Determines the path taken to a destination by sending Internet Control Message Protocol
(ICMP) Echo Request messages to the destination with incrementally increasing Time to Live (TTL)
field values. The path displayed is the list of near-side router interfaces of the routers in the path
between a source host and a destination. The near-side interface is the interface of the router that is
closest to the sending host in the path. Used without parameters, tracert displays help.
This diagnostic tool determines the path taken to a destination by sending ICMP Echo Request
messages with varying Time to Live (TTL) values to the destination. Each router along the path is
required to decrement the TTL in an IP packet by at least 1 before forwarding it.

Effectively, the TTL is a maximum link counter. When the TTL on a packet reaches 0, the router is
expected to return an ICMP Time Exceeded message to the source computer. Tracert determines the
path by sending the first Echo Request message with a TTL of 1 and incrementing the TTL by 1 on
each subsequent transmission until the target responds or the maximum number of hops is reached. The
maximum number of hops is 30 by default and can be specified using the -h parameter.

The path is determined by examining the ICMP Time Exceeded messages returned by intermediate
routers and the Echo Reply message returned by the destination. However, some routers do not return
Time Exceeded messages for packets with expired TTL values and are invisible to the tracert
command. In this case, a row of asterisks (*) is displayed for that hop.

Examples:

To trace the path to the host named www.google.co.in use following command

tracert www.google.co.in

To trace the path to the host named www.google.com and prevent the resolution of each IP
address to its name, type:
tracert -d www.google.com

To trace the path to the host named www.google.com and use the loose source route
10.12.0.1-10.29.3.1-10.1.44.1, type:
tracert -j 10.12.0.1 10.29.3.1 10.1.44.1 www.google.com
Syntax

tracert [-d] [-h MaximumHops] [-j HostList] [-w Timeout] [TargetName]

Parameters

-d Prevents tracert from attempting to resolve the IP addresses of intermediate routers to their names.
This can speed up the display of tracert results.
-h Maximum Hops Specifies the maximum number of hops in the path to search for the target (destination).
The default is 30 hops.
-j HostList Specifies that Echo Request messages use the Loose Source Route option in the IP header with
the set of intermediate destinations specified in HostList. With loose source routing, successive
intermediate destinations can be separated by one or multiple routers. The maximum number of addresses
or names in the host list is 9. The HostList is a series of IP addresses (in dotted decimal notation) separated
by spaces.
-w Timeout Specifies the amount of time in milliseconds to wait for the ICMP Time Exceeded or Echo
Reply message corresponding to a given Echo Request message to be received. If not received within
the time-out, an asterisk (*) is displayed. The default time-out is 4000 (4 seconds).

Ping
Verifies IP-level connectivity to another TCP/IP computer by sending Internet Control Message
Protocol (ICMP) Echo Request messages. The receipt of corresponding Echo Reply messages are
displayed, along with round-trip times. Ping is the primary TCP/IP command used to troubleshoot
connectivity, reachability, and name resolution.

You can use ping to test both the computer name and the IP address of the computer. If pinging the IP
address is successful, but pinging the computer name is not, you might have a name resolution
problem. In this case, ensure that the computer name you are specifying can be resolved through the
local Hosts file, by using Domain Name System (DNS) queries, or through NetBIOS name resolution
techniques.

To test a TCP/IP configuration by using the ping command:

 To quickly obtain the TCP/IP configuration of a computer, open Command Prompt, and then
type ipconfig . From the display of the ipconfig command, ensure that the network adapter for
the TCP/IP configuration you are testing is not in a Media disconnected state.
 At the command prompt, ping the loopback address by typing ping 127.0.0.1
 Ping the IP address of the computer.
 Ping the IP address of the default gateway. If the ping command fails, verify that the default
gateway IP address is correct and that the gateway (router) is operational.
 Ping the IP address of a remote host (a host that is on a different subnet). If the ping command
fails, verify that the remote host IP address is correct, that the remote host is operational, and
that all of the gateways (routers) between this computer and the remote host are operational.
 Ping the IP address of the DNS server. If the ping command fails, verify that the DNS server IP
address is correct, that the DNS server is operational, and that all of the gateways (routers)
between this computer and the DNS server are operational.
ARP
Displays and modifies entries in the Address Resolution Protocol (ARP) cache, which contains one or
more tables that are used to store IP addresses and their resolved Ethernet or Token Ring physical
addresses. There is a separate table for each Ethernet or Token Ring network adapter installed on your
computer.

Syntax

arp [-a [InetAddr] [-N IfaceAddr]] [-g [InetAddr] [-N IfaceAddr]] [-d InetAddr [IfaceAddr]]
[-s InetAddr EtherAddr [IfaceAddr]]
Parameters

Used without parameters displays help


-a [InetAddr] Displays current ARP cache tables for all interfaces. To display the ARP
[-N IfaceAddr] cache entry for a specific IP address, use arp -a with the InetAddr
parameter, where InetAddr is an IP address. To display the ARP cache
table for a specific interface, use the -N IfaceAddr parameter where
IfaceAddr is the IP address assigned to the interface.
The -N parameter is case-sensitive.
-g [InetAddr] Identical to -a.
[-N IfaceAddr]
-d InetAddr [IfaceAddr] Deletes an entry with a specific IP address, where InetAddr is the IP
address. To delete an entry in a table for a specific interface, use the
IfaceAddr parameter where IfaceAddr is the IP address assigned to the
interface. To delete all entries, use the asterisk (*) wildcard character in
place of InetAddr.
-s InetAddr EtherAddr [IfaceAddr] Adds a static entry to the ARP cache that resolves the IP address
InetAddr to the physical address EtherAddr. To add a static ARP cache
entry to the table for a specific interface, use the IfaceAddr parameter
where IfaceAddr is an IP address assigned to the interface.

Examples:

To display the ARP cache tables for all interfaces use following command

arp -a
To display the ARP cache table for the interface that is assigned the IP address 192.168.42.171

TELNET

The telnet command is used for connection and communication with a remote or local host via the
Telnet TCP/IP protocol.
You can enter a domain or IP address and try connecting to it via the chosen port. In case the port is
not specified, telnet utility tries to connect via the default port 23.
The command is really useful in cases when you need to check whether the needed port is open on
your computer and on the side of the remote host.
How to use Telnet
For Windows

Telnet is disabled on Windows by default. To enable it, perform these steps:


1. Press the Start button > Control Panel:

2. Go to the Programs section:


3. Select Programs and Features > Turn Windows Features on or off:

4. Scroll down the list available in the Windows Features window > check Telnet Client option
> press OK > wait a few moments for the changes to be applied
5. Telnet is enabled now, so we can run it in the same way as other commands:

 Select the Start button > click on the Run option.


 In the command line, type in cmd and press Enter.
 After that, type in the following and press Enter:

telnet [domain name or IP] [port number]

for example:
telnet namecheap.com 80

If you see the blank output after that, you have connected successfully. To quit you can press CTRL +
C or any key:
As a result of successful telnet, we can conclude, that the entered domain or IP exists, and the chosen
port is open on your computer and on the side of the target host.

If connection has not been established, the following error will appear:

Possible reasons for it are:

 domain or IP does not exist/not available/entered with a typo


 the chosen port is closed by a security software or via network configurations on your computer
or on the side of the host you connect to
 connection/networking issue has occurred
EXPERIMENT-9
Objective: Network simulation using tools like Cisco Packet Tracer, NetSim,
OMNeT++, NS2, NS3, etc

Theory:
Simulation is a very important technology in modern time. Computer assisted simulation can model
hypothetical and real-life objects or activities on a computer to study the well-designed structure. A network
simulator is a system of implementing the network on the computer through which the performance of the
network is calculated. The computer assisted simulation technologies are applied in the simulation of
networking algorithms. The functional network field is narrower than general simulation and it is natural that
more specific requirements will be placed on network simulations.

Network simulator allows the researchers to test the scenarios that are difficult or expensive to
simulate in real world. Design of various network topologies using nodes, hosts, hubs, bridges, routers and
mobile units etc. is possible. The network simulators are of various types which can be compared on the basis
of: range (simple to the complex), specification of nodes, links and traffic between the nodes. Specifying
about the protocols used to handle traffic in a network, user friendly applications (allow users to easily
visualize the simulated environment.), text-based applications (permit more advanced forms of
customization) and programming-oriented tools (providing a programming framework that customizes to
create an application that simulates the networking environment to be tested).

Network simulators are used by people from different areas such as academic researchers,
industrialized sectors and Quality Assurance (QA) to design, simulate and analyze the performance of
different network protocols. They can also be used to evaluate the outcome of the different parameters of the
protocols being studied. Normally a network simulator comprises of wide range of networking technologies
and protocols that help users to build complex networks from basic building blocks like clusters of nodes and
links. With their help, different network topologies can be designed using various types of nodes such as end-
hosts, network bridges, routers, hubs, optical link-layer devices and mobile units.

Concepts in network simulation

Generally, network simulators try to represent the real world networks and it is a useful technique, given that
the activities of a network can be modeled by calculating the interaction between the different network
components (they can be end-host or network entities such as routers, packets or physical links) using
mathematical formulas. They can also be modeled by actually or virtually capturing and playing back
experimental observations from real networks. Upon receipt of the observation data from simulation
experiments, the behavior of the network and protocols supported are analyzed in a series of offline test
experiments. All types of attributes can also be modified in a controlled manner to assess how the network can
behave under different parameter combinations. Another feature of network simulation worth noticing is that
the simulation program can be used and analyzed together with various strategy, links, applications etc.
Typically, users can then adapt the simulator to fulfill their exact needs. Simulators support the most popular
protocols and networks such as WLAN, TCP and WSN.
Simulators
Most of the commercial simulators are Graphical User Interface (GUI) driven, while some
network simulators are Command-Line Interface (CLI). The design of the network describes the state of the
network (nodes, routers, switches and links) and the events (data transfer, transmission delay, packet error
etc.). The major output of simulation is the trace files which log every packet and event that occurred during
simulation and is used for analysis. Also provides other tools to facilitate visual analysis of trends and
potential trouble spots. Most of the network simulators are discrete event, in which the list of pending "events"
are stored and processed in order. Some events triggers the future events (i.e.) the event of the arrival of a
packet at one node triggering the event of the arrival of that packet at a downstream node.

Simulation of networks is a very difficult task. For example, if blocking is high, then evaluation of the
average occupancy is challenging because of high variance. To evaluate the probability of buffer overflow in a
network, the time required for a precise answer can be enormously large. Techniques like "control variants"
and “sampling" have been developed to speed simulation.

List of Network Simulators


There are many both free/open-source and proprietary simulators. Examples of notable simulation
software are ordered based on how frequently they are

NS2 (Network Simulator 2)


1. NS3 (Network Simulator 3)
2. OPNET.
3. OMNeT++.
4. NetSim.

Uses of Network Simulators


Network simulators serve a variety of requirements. Simulators are relatively fast and economical
when compared to the cost and time involved in setting up an entire bed containing multiple network
computers, data links and routers. They authorize researchers to test scenarios that might be particularly
difficult or expensive to emulate using a real hardware - for instance simulating a scenario with several nodes
or experimenting with a new protocol in the network. Simulators are mainly useful in allowing researchers to
test new networking protocols or changes to existing protocols in controlled and reproducible surroundings.

A typical simulator encompasses a wide range of networking technologies and can help the users to
build complex networks from basic building blocks such as selection of nodes and links. Various types of
nodes in Hierarchical networks resembling computers, hubs, bridges, routers, links, switches mobile units etc
can be designed with the help of simulators.

Various types of Wide Area Network (WAN) technologies like TCP, ATM, IP etc. and Local Area
Network (LAN) technologies like Ethernet, token rings etc., can be imitated with a simulator and the user can
examine various standard results apart from devising some novel protocol or routing strategy. Network
simulators are widely used to simulate battlefield networks in Network-centric warfare.
There are ample varieties of simulators, ranging from simple to complex. A simple simulator must
enable a user to represent network topology, to specify nodes on the network, the links and the traffic between
the nodes. More complex systems may permit the user to specify everything about the protocols used to
handle traffic in a network. User friendly applications permit users to envision easily the working mechanism
of their simulated situation. Text-based applications offer a less sensitive interface, but permits more advanced
forms of customization.
Overview of Network Simulators
Currently there are many network simulators that have different features in different aspects. Short
lists of the current network simulators include NS-2, NS-3, OPNET, OMNeT++, NETSIM, QualNet, and J-
Sim. These network simulators are selected for discussion regarding their features, advantages and
restrictions.

NS2
The Ns2 is a discrete event simulator targeted at packet level networking research and
provides substantial support to simulate group of protocols like TCP, UDP, FTP and HTTP. It
comprises of two simulation tools. Ns-2 is primarily UNIX based and fully simulates a layered wire
or wireless network from the physical radio transmission channel to high-level applications. The
simulator is written in C++ and a script language called OTcl.

C++: C++ is fast to run but slower to change, making it suitable for detailed protocol implementation.

Otcl: OTcl runs much slower but can be changed very quickly (and interactively), making it
ideal for simulation configuration. Ns provides glue to make objects and variables appear on both
languages.

NS2 uses an OTcl interpreter by which the user writes an OTcl script that defines the
network, (number of nodes and links) the transaction in the network (sources destinations, type of
traffic) and the type of protocols used. The outcome of the simulation is a trace file that can be used
for data processing (calculate delay, throughput etc). To visualize the simulation, a program called
Network Animator (NAM) is used. It visualizes the packets as they propagate throughout the
network. The ns- 2 simulator has numerous features that make it suitable for our simulations.

 A network environment for ad-hoc networks,


 Wireless channel modules (e.g.802.11),
 Routing along multiple paths,
 Mobile hosts for wireless cellular networks.
 Download of ns-2 source code is possible and can be compiled for multiple platforms.
Advantages:
1. NS2 has large number of available models, realistic mobility models, powerful and flexible
scripting and simulation setup, large user community and ongoing development.
2. NS2 provides an easy traffic and movement pattern by including an efficient energy model.
3. It provides a set of randomized mobility model and there are several projects to bring
advanced mobility models to the simulators.
4. Complex scenarios can be easily tested.
5. Popular for its modularity.

Limitations:
1. NS2 needs to be recompilation every time if there is a change in the user code.
2. Real system is too complex to model i.e. complicated infrastructure.

NS3
The ns-3 simulator is a discrete-event network simulator for Internet systems, targeted
primarily for research and learning purpose. The ns-3 project, started in 2006, is open-source free
software, licensed under the GNU GPLv2 license. It will rely on the current contributions of the
community to develop new models, debug or maintain the existing ones, and share the results. Ns3 is
mainly used on LINUX systems and not limited to internet based systems alone.

C++: implementation of simulation and core model.Ns-3 is built as a library which may be
statically or dynamically linked to a C++ main program. These libraries describe the beginning of
simulation and their topology.
Python: C++ wrapped by Python. Python programs to import an “ns3” module. The features of NS3
simulator are given below.

1. Modular, documented core


2. C++ programs and Python scripting
3. Alignment with real systems
4. Software integrations
5. Virtualization and test bed integration
6. Attribute system
7. Updated models
Advantages:
1.High modularity than its ancestor NS2.
2.Support simulation for TCP, UDP, ICMP, IPv4, multicast routing, P2P and CSMA protocols.
3.Support for ported code should make model validation easier and more credible.
4.Much more flexible than any other simulators.
5. Wide range of use in both optimization and expansion of the existing networks.

Limitations:
1. NS3 still suffers from lack of credibility.
2. NS3 is intended to replicate the successful mode of NS2 in which various organizations
contributed to the models and components based on the framework of NS2.
3. NS3 needs a lot of specialized maintainers in order to avail the merits of NS3 as the
commercial OPNET network simulators.
4. Active maintainers are required to respond to the user questions, bug reports and help to Test
& validate the system.

OMNET++
It is a component-based, modular and open architecture discrete event simulator framework.
The most common use of OMNeT++ is for simulation of networks, but it is also used for queuing
network simulations and other areas as well. It is licensed under its own Academic Public License,
which permits GNU Public License like freedom but only in noncommercial settings. It provides
component architecture for models.

C++: The C++ class library comprises of simulation kernel and utility classes (for random
number generation, statistics collection, topology discovery etc) -- this one is used to create
simulation components (simple modules and channels); infrastructure to assemble simulations from
these components and configure (NED language, ini files); runtime user interfaces or environments
for simulations (Tkenv, Cmdenv); an Eclipse-based simulation IDE for designing, running and
evaluating simulations; extension interfaces for real-time simulation, emulation, MRIP, parallel
distributed simulation, database connectivity and so on.

The OMNeT++ components include:

1.Simulation kernel library


2.Compiler for the NED topology description language (nedc)
3.Graphical network editor for NED files (GNED)
4.GUI for simulation execution, links into simulation executable (Tkenv)
5.Command-line user interface for simulation execution (Cmdenv)
6.Graphical output vector plotting tool (Plove)
7.Graphical output scalars visualization tool (Scalars)
8.Model documentation tool (opp_neddoc)
9.Utilities (random number seed generation tool, make file creation tool, etc.)
10.Documentation, sample simulations, etc.
Advantages:
 Provides a powerful GUI environment.
 Tracing and debugging are much easier than other simulators.
 Accurately models most hardware and include the modeling of physical phenomena.
Limitations:
 It does not offer a great variety of protocols and very few protocols have been implemented,
leaving users with significant background work.
 Poor analysis and management of typical performance. The mobility extension is relatively
incomplete

NETSIM

NetSim is a discrete event simulator developed by Tetcos in 1997, in association with Indian
Institute of Science. It has also been featured with Computer Networks and Internets V edition by
Dr. Douglas Comer, published by Prentice Hall. It has an object-oriented system simulating
environment to support simulation and analysis of voice and data communication scenarios for High
Frequency Global Communication Systems (HFGCS).

Java: It creating fast, platform independent software that could be used in simple, consumer
electronic products. Java designed for simple, efficient, platform-independent program for creating
WWW-based programs. Using Java one can create small programs called applets that are entrenched
into an HTML document and viewable on any Java-compatible browser. Java applets are compiled
into a set of byte-codes, or machine-independent processing instructions.
Features:
 NetSim modeling and simulation are supported for Aloha, Slotted Aloha, Token Ring/Bus,
Ethernet CSMA/CD, Fast Ethernet, WLAN - IEEE 802.11 a/b/g/n and e, X.25, Frame Relay,
TCP, UDP, IPv4 and IPv6, Routing - RIP, OSPF, BGP,MPLS, MANET, GSM, CDMA,
Wire-less Sensor Network, Zigbee, Cognitive radio)[5].
 It simulates a wide variety of Cisco routers, including 2500 series, 2600 series, 2800 series,
and 3600 series, as well as the Cisco Catalyst 1900 series, 2900 series, and 3500 series
switches. Protocol libraries are available as open C code for user modification. This can help
to avoid the time consuming process such as encoding, customization and configuring
commercial simulators to meet customer specific needs. Along with the Boson Virtual Packet
Technology engine NetSim utilizes Boson’s proprietary Router & Simulator EROUTER
software technologies, to produce individual packets. These packets are routed and switched
through the simulated network, allowing the simulator to build an appropriate virtual routing
table and simulate proper networking. Other simulation products on the market do not
support this level of functionality.

 It can be used to create a simulation of the topology of corporate network and help practice
trouble-shooting without using devices on the production network.
Advantages:
1. NetSim has a GUI which features drag and drop functionality for devices, links etc. i.e.
Modeling in NetSim is simple and user friendly.
2. It has a built in analysis framework that provides intra and inter-protocol performance
comparison with graphical options.
3. Data packet and control packet flow can be visual-ized through NetSim built-in packet
animator.
4. It is easy to learn all about NetSim.

Limitations:

1. NetSim is a single process discrete event simulator. A single event queue is used for the
simulation which at any given time contains one entry for each station on the network.
2. Free version of NetSim is not available.

Cisco Packet Tracer


Cisco Packet Tracer is a powerful network simulation program that allows students to experiment
with network behavior and ask “what if” questions. As an integral part of the Networking Academy
comprehensive learning experience, Packet Tracer provides simulation, visualization, authoring,
assessment, and collaboration capabilities to facilitate the teaching and learning of complex
technology concepts.

Packet Tracer supplements physical equipment in the classroom by allowing students to create a
network with an almost unlimited number of devices, encouraging practice, discovery, and
troubleshooting. The simulation-based learning environment helps students develop 21st century
skills such as decision making, creative and critical thinking, and problem solving. Packet Tracer
complements the Networking Academy curricula, allowing instructors to easily teach and
demonstrate complex technical concepts and networking systems design. Instructors can customize
individual or multiuser activities, providing hands-on lessons for students that offer value and
relevance in their classrooms. Students can build, configure, and troubleshoot networks using virtual
equipment and simulated connections, alone or in collaboration with other students. Packet Tracer
offers an effective, interactive environment for learning networking concepts and protocols. Most
importantly, Packet Tracer helps students and instructors create their own virtual “network worlds”
for exploration, experimentation, and explanation of networking concepts and technologies.

Packet Tracer’s drag-and-drop interface allows students to configure and validate system
architecture

Key Features Packet Tracer Workspaces:

Cisco Packet Tracer has two workspaces—logical and physical. The logical workspace allows users
to build logical network topologies by placing, connecting, and clustering virtual network devices.
The physical workspace provides a graphical physical dimension of the logical network, giving a
sense of scale and placement in how network devices such as routers, switches, and hosts would look
in a real environment. The physical view also provides geographic representations of networks,
including multiple cities, buildings, and wiring closets.
Packet Tracer Modes:
Cisco Packet Tracer provides two operating modes to visualize the behavior of a network—real-time
mode and simulation mode. In real-time mode the network behaves as real devices do, with
immediate real-time response for all network activities. The real-time mode gives students a viable
alternative to real equipment and allows them to gain configuration practice before working with real
equipment.
In simulation mode the user can see and control time intervals, the inner workings of data transfer, and
the propagation of data across a network. This helps students understand the fundamental concepts
behind network operations.

Layer Cisco Packet Tracer Supported Protocols


Application • FTP , SMTP, POP3, HTTP, TFTP, Telnet, SSH, DNS, DHCP, NTP, SNMP, AAA,
ISR VOIP, SCCP config and calls ISR command support, Call Manager Express
Transport • TCP and UDP, TCP Nagle Algorithm & IP Fragmentation RTP

Network • BGP, IPv4, ICMP, ARP, IPv6, ICMPv6, IPsec, RIPv1/ v2/ng, Multi-Area OSPF,
EIGRP, Static Routing, Route Redistribution, Multilayer Switching, L3 QoS, NAT, CBAL, ,
Zone-based policy firewall and Intrusion Protection, System on the ISR, GRE VPN, IPsec
VPN
Network Access/ • Ethernet (802.3), 802.11, HDLC, Frame Relay, PPP, PPPoE, STP, RSTP, VTP, DTP,
Interface CDP, 802.1q, PAgP, L2 QoS, SLARP, Simple WEP, WPA, EAP

You might also like