Professional Documents
Culture Documents
Vi RtSim
Vi RtSim
1.
General Description
2.
Simulation
3.
33
4.
PC to PC Communication
69
5.
79
6.
116
7.
Cryptography Simulation
130
8.
Packet Analyser
131
Vi-RtSim
GNERAL DESCRIPTION
Networking Study Software is developed to provide basic understanding and
implementation of various fundamental and advanced concepts on networking in Real
Time and under simulation. The software provides an opportunity to understand
network fundamental through animation.
The simulation provides network
experimentation with various LAN & Wireless Protocols.
Vi-RtSim also includes programming exercises for students to get hands on practice on
networking parameters. All networking theory is explained using simulation and
animation.
[1]
Vi-RtSim
Vi-RtSim Can provide the following
*
[2]
Vi-RtSim
SIMULATION
EXPERIMENT 1
To create scenario and simulate TCP/IP protocol.
TCP/IP Simulation
From the menu bar, select Simulation -> TCP/IP.
[3]
Vi-RtSim
Click on Open Button, you have a Open Dialog Box and select file TCP.c. Then screen
looks like as follows.
[4]
Vi-RtSim
[5]
Vi-RtSim
General Form of the Algorithm
include <protocol.h>
void main()
{
Frame X;
X="data1"; // you can edit data within double quotes.
TCPIP_INIT();
ESTABLISH_CONNECTION();
CONNECTION_REQUEST(source,dest);
CONNECTION ACK_REQUEST(dest,source);
CONNECTION ACK_RESPONSE(source,dest);
DATA TO_SEND(source,dest,X);
ACK TO_SOURCE(dest,source);
ACK TO_DEST(source,dest);
CLOSE_REQUEST(source,dest);
CLOSE ACK_REQUEST(dest,source);
CLOSE ACK_RESPONSE(source,dest);
CLOSE_CONNECTION();
}
[6]
Vi-RtSim
Examples
1. To Send Data From A To B
include <protocol.h>
void main()
{
Frame X;
X="data1";
TCPIP_INIT();
ESTABLISH_CONNECTION();
CONNECTION_REQUEST(A,B);
CONNECTION ACK_REQUEST(B,A);
CONNECTION ACK_RESPONSE(A,B);
DATA TO_SEND(A,B,,X);
ACK TO_SOURCE(B,A);
ACK TO_DEST(A,B);
CLOSE_REQUEST(A,B);
CLOSE ACK_REQUEST(B,A);
CLOSE ACK_RESPONSE(A,B);
CLOSE_CONNECTION();
}
[7]
Vi-RtSim
EXPERIMENT 2
To create scenario and simulate CSMA/CD protocol.
CSMA/CD Simulation
From the menu bar, select Simulation -> CSMA/CD.CSMA/CD Simulation Dialog Box
is displayed as follows,
Click on Open Button, you have a Open Dialog Box and select file CSMACD.c. Then
screen looks like as follows.
[8]
Vi-RtSim
[9]
Vi-RtSim
General Form of the Algorithm
Two Nodes Transmission
include <protocol.h>
void main()
{
Frame X,Y;
X="data1"; // you can edit data within double quotes.
Y="data2"; // you can edit data within double quotes.
CSMACD_INIT();
CSMACD_START();
CSMA_SEND(source1,dest1,X);
CSMA_SEND(source2,dest2,Y);
R=COLLISION_OCCUR();
if(R)
{
WAIT(1000);
RETRANSMIT(source1,dest1); // to be same as given in CSMA_SEND(source1,dest1,data1);
RETRANSMIT(source2,dest2); // to be same as given in CSMA_SEND(source2,dest2,data2);
}
}
[ 10 ]
Vi-RtSim
Examples for Two Nodes Transmission
1.
include <protocol.h>
void main()
{
Frame X,Y;
X="data1";
Y="data2";
CSMACD_INIT();
CSMACD_START();
CSMA_SEND(A,B,X);
CSMA_SEND(B,A,Y);
R=COLLISION_OCCUR();
if(R)
{
WAIT(1000);
RETRANSMIT(A,B);
RETRANSMIT(B,A);
}
}
2.
include <protocol.h>
void main()
{
Frame X,Y;
X="data1";
Y="data2";
CSMACD_INIT();
CSMACD_START();
CSMA_SEND(A,C,X);
CSMA_SEND(B,C,Y);
R=COLLISION_OCCUR();
if(R)
{
WAIT(1000);
RETRANSMIT(A,C);
RETRANSMIT(B,C);
}
}
[ 11 ]
Vi-RtSim
3.
include <protocol.h>
void main()
{
Frame X,Y;
X="data1";
Y="data2";
CSMACD_INIT();
CSMACD_START();
CSMA_SEND(A,B,X);
CSMA_SEND(C,B,Y);
R=COLLISION_OCCUR();
if(R)
{
WAIT(1000);
RETRANSMIT(A,B);
RETRANSMIT(C,B);
}
}
4.
include <protocol.h>
void main()
{
Frame X,Y;
X="data1";
Y="data2";
CSMACD_INIT();
CSMACD_START();
CSMA_SEND(A,C,X);
CSMA_SEND(C,A,Y);
R=COLLISION_OCCUR();
if(R)
{
WAIT(1000);
RETRANSMIT(A,C);
RETRANSMIT(C,A);
}
}
[ 12 ]
Vi-RtSim
5.
include <protocol.h>
void main()
{
Frame X,Y;
X="data1";
Y="data2";
CSMACD_INIT();
CSMACD_START();
CSMA_SEND(B,A,X);
CSMA_SEND(C,A,Y);
R=COLLISION_OCCUR();
if(R)
{
WAIT(1000);
RETRANSMIT(B,A);
RETRANSMIT(C,A);
}
}
6.
include <protocol.h>
void main()
{
Frame X,Y;
X="data1";
Y="data2";
CSMACD_INIT();
CSMACD_START();
CSMA_SEND(B,C,X);
CSMA_SEND(C,B,Y);
R=COLLISION_OCCUR();
if(R)
{
WAIT(1000);
RETRANSMIT(B,C);
RETRANSMIT(C,B);
}
}
[ 13 ]
Vi-RtSim
Examples for Single Node Transmission
1.
include <protocol.h>
void main()
{
Frame X,Y;
X="data1";
CSMACD_INIT();
CSMACD_START();
CSMA_SEND(A,B,X);
}
2.
include <protocol.h>
void main()
{
Frame X,Y;
X="data1";
CSMACD_INIT();
CSMACD_START();
CSMA_SEND(A,C,X);
}
3.
include <protocol.h>
void main()
{
Frame X,Y;
X="data1";
CSMACD_INIT();
CSMACD_START();
CSMA_SEND(B,A,X);
}
[ 14 ]
Vi-RtSim
4.
include <protocol.h>
void main()
{
Frame X,Y;
X="data1";
CSMACD_INIT();
CSMACD_START();
CSMA_SEND(B,C,X);
}
5.
include <protocol.h>
void main()
{
Frame X,Y;
X="data1";
CSMACD_INIT();
CSMACD_START();
CSMA_SEND(C,A,X);
}
6.
include <protocol.h>
void main()
{
Frame X,Y;
X="data1";
CSMACD_INIT();
CSMACD_START();
CSMA_SEND(C,B,X);
}
[ 15 ]
Vi-RtSim
EXPERIMENT 3
To create scenario and simulate CSMA/CA protocol.
CSMA/CA Simulation
From the menu bar, select Simulation -> CSMA/CA.CSMA/CA Simulation Dialog Box
is displayed as follows,
Click on Open Button, you have a Open Dialog Box and select file CSMACA.c. Then
screen looks like as follows.
[ 16 ]
Vi-RtSim
[ 17 ]
Vi-RtSim
Examples
1.
include <protocol.h>
void main()
{
Frame X;
X="data1";
CSMACA_INIT();
CSMACA_START();
NODE_LISTEN();
REQUESTTO_SEND(A,B);
CLEARTO_SEND(B,A);
DATATO_SEND(A,B,X);
ACKNOWLEDGE(B,A);
}
2.
include <protocol.h>
void main()
{
Frame X;
X="data1";
CSMACA_INIT();
CSMACA_START();
NODE_LISTEN();
REQUESTTO_SEND(A,C);
CLEARTO_SEND(C,A);
DATATO_SEND(A,C,X);
ACKNOWLEDGE(C,A);
}
[ 18 ]
Vi-RtSim
3.
include <protocol.h>
void main()
{
Frame X;
X="data1";
CSMACA_INIT();
CSMACA_START();
NODE_LISTEN();
REQUESTTO_SEND(B,A);
CLEARTO_SEND(A,B);
DATATO_SEND(B,A,X);
ACKNOWLEDGE(A,B);
}
4.
include <protocol.h>
void main()
{
Frame X;
X="data1";
CSMACA_INIT();
CSMACA_START();
NODE_LISTEN();
REQUESTTO_SEND(B,C);
CLEARTO_SEND(C,B);
DATATO_SEND(B,C,X);
ACKNOWLEDGE(C,B);
[ 19 ]
Vi-RtSim
5.
include <protocol.h>
void main()
{
Frame X;
X="data1";
CSMACA_INIT();
CSMACA_START();
NODE_LISTEN();
REQUESTTO_SEND(C,A);
CLEARTO_SEND(A,C);
DATATO_SEND(C,A,X);
ACKNOWLEDGE(A,C);
}
6.
include <protocol.h>
void main()
{
Frame X;
X="data1";
CSMACA_INIT();
CSMACA_START();
NODE_LISTEN();
REQUESTTO_SEND(C,B);
CLEARTO_SEND(B,C);
DATATO_SEND(C,B,X);
ACKNOWLEDGE(B,C);
[ 20 ]
Vi-RtSim
EXPERIMENT 4
Click on Open Button, you have a Open Dialog Box and select file TOKENBUS.c. Then
screen looks like as follows.
[ 21 ]
Vi-RtSim
Then click on Run Button, you can view TOKEN BUS simulation.
[ 22 ]
Vi-RtSim
General Form of the Algorithm
include <protocol.h>
void main()
{
Frame X;
Token t;
X="data1"; // you can edit data within double quotes.
BUS_TOPOLOGY();
CONSTRUCT_LOGICAL RING();
START TOKEN_PASSING(t);
WANT TO_TRANSMIT(source);
repeat
r=TOKEN_CAPTURE(source);
until(r);
TRANSMIT_DATA(source,dest,X);
STOP TOKEN_PASSING();
}
Examples
1.
include <protocol.h>
void main()
{
Frame X;
Token t;
X="data1";
BUS_TOPOLOGY();
CONSTRUCT_LOGICAL RING();
START TOKEN_PASSING(t);
WANT TO_TRANSMIT(A);
repeat
r=TOKEN_CAPTURE(A);
until(r);
TRANSMIT_DATA(A,B,X);
STOP TOKEN_PASSING();
}
[ 23 ]
Vi-RtSim
2.
include <protocol.h>
void main()
{
Frame X;
Token t;
X="data1";
BUS_TOPOLOGY();
CONSTRUCT_LOGICAL RING();
START TOKEN_PASSING(t);
WANT TO_TRANSMIT(A);
repeat
r=TOKEN_CAPTURE(A);
until(r);
TRANSMIT_DATA(A,C,X);
STOP TOKEN_PASSING();
}
3.
include <protocol.h>
void main()
{
Frame X;
Token t;
X="data1";
BUS_TOPOLOGY();
CONSTRUCT_LOGICAL RING();
START TOKEN_PASSING(t);
WANT TO_TRANSMIT(A);
repeat
r=TOKEN_CAPTURE(A);
until(r);
TRANSMIT_DATA(A,D,X);
STOP TOKEN_PASSING();
}
[ 24 ]
Vi-RtSim
4.
include <protocol.h>
void main()
{
Frame X;
Token t;
X="data1";
BUS_TOPOLOGY();
CONSTRUCT_LOGICAL RING();
START TOKEN_PASSING(t);
WANT TO_TRANSMIT(B);
repeat
r=TOKEN_CAPTURE(B);
until(r);
TRANSMIT_DATA(B,A,X);
STOP TOKEN_PASSING();
}
5.
include <protocol.h>
void main()
{
Frame X;
Token t;
X="data1";
BUS_TOPOLOGY();
CONSTRUCT_LOGICAL RING();
START TOKEN_PASSING(t);
WANT TO_TRANSMIT(B);
repeat
r=TOKEN_CAPTURE(B);
until(r);
TRANSMIT_DATA(B,C,X);
STOP TOKEN_PASSING();
}
[ 25 ]
Vi-RtSim
6.
include <protocol.h>
void main()
{
Frame X;
Token t;
X="data1";
BUS_TOPOLOGY();
CONSTRUCT_LOGICAL RING();
START TOKEN_PASSING(t);
WANT TO_TRANSMIT(B);
repeat
r=TOKEN_CAPTURE(B);
until(r);
TRANSMIT_DATA(B,D,X);
STOP TOKEN_PASSING();
}
7.
include <protocol.h>
void main()
{
Frame X;
Token t;
X="data1";
BUS_TOPOLOGY();
CONSTRUCT_LOGICAL RING();
START TOKEN_PASSING(t);
WANT TO_TRANSMIT(C);
repeat
r=TOKEN_CAPTURE(C);
until(r);
TRANSMIT_DATA(C,A,X);
STOP TOKEN_PASSING();
}
[ 26 ]
Vi-RtSim
8.
include <protocol.h>
void main()
{
Frame X;
Token t;
X="data1";
BUS_TOPOLOGY();
CONSTRUCT_LOGICAL RING();
START TOKEN_PASSING(t);
WANT TO_TRANSMIT(C);
repeat
r=TOKEN_CAPTURE(C);
until(r);
TRANSMIT_DATA(C,B,X);
STOP TOKEN_PASSING();
}
9.
include <protocol.h>
void main()
{
Frame X;
Token t;
X="data1";
BUS_TOPOLOGY();
CONSTRUCT_LOGICAL RING();
START TOKEN_PASSING(t);
WANT TO_TRANSMIT(C);
repeat
r=TOKEN_CAPTURE(C);
until(r);
TRANSMIT_DATA(C,D,X);
STOP TOKEN_PASSING();
}
[ 27 ]
Vi-RtSim
10.
include <protocol.h>
void main()
{
Frame X;
Token t;
X="data1";
BUS_TOPOLOGY();
CONSTRUCT_LOGICAL RING();
START TOKEN_PASSING(t);
WANT TO_TRANSMIT(D);
repeat
r=TOKEN_CAPTURE(D);
until(r);
TRANSMIT_DATA(D,A,X);
STOP TOKEN_PASSING();
}
11.
include <protocol.h>
void main()
{
Frame X;
Token t;
X="data1";
BUS_TOPOLOGY();
CONSTRUCT_LOGICAL RING();
START TOKEN_PASSING(t);
WANT TO_TRANSMIT(D);
repeat
r=TOKEN_CAPTURE(D);
until(r);
TRANSMIT_DATA(D,B,X);
STOP TOKEN_PASSING();
}
[ 28 ]
Vi-RtSim
12.
include <protocol.h>
void main()
{
Frame X;
Token t;
X="data1";
BUS_TOPOLOGY();
CONSTRUCT_LOGICAL RING();
START TOKEN_PASSING(t);
WANT TO_TRANSMIT(D);
repeat
r=TOKEN_CAPTURE(D);
until(r);
TRANSMIT_DATA(D,C,X);
STOP TOKEN_PASSING();
}
[ 29 ]
Vi-RtSim
EXPERIMENT 5
To create scenario and simulate Token Ring protocol.
TOKEN RING Simulation
From the menu bar, select Simulation -> TOKEN RING. Token Ring Simulation Dialog
Box is displayed as follows,
Click on Open Button, you have a Open Dialog Box and select file TOKENRING.c.
Then screen looks like as follows.
[ 30 ]
Vi-RtSim
Then click on Run Button, you can view TOKEN RING simulation.
[ 31 ]
Vi-RtSim
General Form of the Algorithm:
include <protocol.h>
void main()
{
Frame X;
Token t;
X="data1"; // you can edit data within double quotes.
RING_TOPOLOGY();
CONSTRUCT_LOGICAL RING();
START TOKEN_PASSING(t);
WANT TO_TRANSMIT(source);
repeat
r=TOKEN_CAPTURE(source);
until(r);
TRANSMIT_DATA(source,dest,X);
STOP TOKEN_PASSING();
}
Examples
1.
include <protocol.h>
void main()
{
Frame X;
Token t;
X="data1";
RING_TOPOLOGY();
CONSTRUCT_LOGICAL RING();
START TOKEN_PASSING(t);
WANT TO_TRANSMIT(A);
repeat
r=TOKEN_CAPTURE(A);
until(r);
TRANSMIT_DATA(A,B,X);
STOP TOKEN_PASSING();
}
[ 32 ]
Vi-RtSim
2.
include <protocol.h>
void main()
{
Frame X;
Token t;
X="data1";
RING_TOPOLOGY();
CONSTRUCT_LOGICAL RING();
START TOKEN_PASSING(t);
WANT TO_TRANSMIT(A);
repeat
r=TOKEN_CAPTURE(A);
until(r);
TRANSMIT_DATA(A,C,X);
STOP TOKEN_PASSING();
}
3.
include <protocol.h>
void main()
{
Frame X;
Token t;
X="data1";
RING_TOPOLOGY();
CONSTRUCT_LOGICAL RING();
START TOKEN_PASSING(t);
WANT TO_TRANSMIT(A);
repeat
r=TOKEN_CAPTURE(A);
until(r);
TRANSMIT_DATA(A,D,X);
STOP TOKEN_PASSING();
}
[ 33 ]
Vi-RtSim
4.
include <protocol.h>
void main()
{
Frame X;
Token t;
X="data1";
RING_TOPOLOGY();
CONSTRUCT_LOGICAL RING();
START TOKEN_PASSING(t);
WANT TO_TRANSMIT(B);
repeat
r=TOKEN_CAPTURE(B);
until(r);
TRANSMIT_DATA(B,A,X);
STOP TOKEN_PASSING();
}
5.
include <protocol.h>
void main()
{
Frame X;
Token t;
X="data1";
RING_TOPOLOGY();
CONSTRUCT_LOGICAL RING();
START TOKEN_PASSING(t);
WANT TO_TRANSMIT(B);
repeat
r=TOKEN_CAPTURE(B);
until(r);
TRANSMIT_DATA(B,C,X);
STOP TOKEN_PASSING();
}
[ 34 ]
Vi-RtSim
6.
include <protocol.h>
void main()
{
Frame X;
Token t;
X="data1";
RING_TOPOLOGY();
CONSTRUCT_LOGICAL RING();
START TOKEN_PASSING(t);
WANT TO_TRANSMIT(B);
repeat
r=TOKEN_CAPTURE(B);
until(r);
TRANSMIT_DATA(B,D,X);
STOP TOKEN_PASSING();
}
7.
include <protocol.h>
void main()
{
Frame X;
Token t;
X="data1";
RING_TOPOLOGY();
CONSTRUCT_LOGICAL RING();
START TOKEN_PASSING(t);
WANT TO_TRANSMIT(C);
repeat
r=TOKEN_CAPTURE(C);
until(r);
TRANSMIT_DATA(C,A,X);
STOP TOKEN_PASSING();
}
[ 35 ]
Vi-RtSim
8.
include <protocol.h>
void main()
{
Frame X;
Token t;
X="data1";
RING_TOPOLOGY();
CONSTRUCT_LOGICAL RING();
START TOKEN_PASSING(t);
WANT TO_TRANSMIT(C);
repeat
r=TOKEN_CAPTURE(C);
until(r);
TRANSMIT_DATA(C,B,X);
STOP TOKEN_PASSING();
}
9.
include <protocol.h>
void main()
{
Frame X;
Token t;
X="data1";
RING_TOPOLOGY();
CONSTRUCT_LOGICAL RING();
START TOKEN_PASSING(t);
WANT TO_TRANSMIT(C);
repeat
r=TOKEN_CAPTURE(C);
until(r);
TRANSMIT_DATA(C,D,X);
STOP TOKEN_PASSING();
}
[ 36 ]
Vi-RtSim
10.
include <protocol.h>
void main()
{
Frame X;
Token t;
X="data1";
RING_TOPOLOGY();
CONSTRUCT_LOGICAL RING();
START TOKEN_PASSING(t);
WANT TO_TRANSMIT(D);
repeat
r=TOKEN_CAPTURE(D);
until(r);
TRANSMIT_DATA(D,A,X);
STOP TOKEN_PASSING();
}
11.
include <protocol.h>
void main()
{
Frame X;
Token t;
X="data1";
RING_TOPOLOGY();
CONSTRUCT_LOGICAL RING();
START TOKEN_PASSING(t);
WANT TO_TRANSMIT(D);
repeat
r=TOKEN_CAPTURE(D);
until(r);
TRANSMIT_DATA(D,B,X);
STOP TOKEN_PASSING();
}
[ 37 ]
Vi-RtSim
12.
include <protocol.h>
void main()
{
Frame X;
Token t;
X="data1";
RING_TOPOLOGY();
CONSTRUCT_LOGICAL RING();
START TOKEN_PASSING(t);
WANT TO_TRANSMIT(D);
repeat
r=TOKEN_CAPTURE(D);
until(r);
TRANSMIT_DATA(D,C,X);
STOP TOKEN_PASSING();
}
[ 38 ]
Vi-RtSim
EXPERIMENT 6
To study and simulate Distance Vector Routing Algorithm.
DISTANCE VECTOR ROUTING Algorithm:
From the menu bar, select Simulation ->Routing Algorithm->Distance Vector Routing.
Distance Vector Routing Algorithm Dialog Box is displayed as follows,
To find shortest path between two nodes, you should click on two nodes, then click on
Find Path Button. Find Shortest Path Dialog Box is opened.
[ 39 ]
Vi-RtSim
In Find Shortest Path Dialog Box, click on Calculate Button. Then Shortest path is
calculated.
Note:
*
You can add or delete a router and line during run time using Editor menu.
[ 40 ]
Vi-RtSim
EXPERIMENT 7
To study and simulate Link State Routing Algorithm.
LINK STATE ROUTING Algorithm:
From the menu bar, select Simulation ->Routing Algorithm->Link State Routing. Link
State Routing Dialog Box is displayed as follows,
To find shortest path between two nodes, you should click on two nodes, then click on
Find Path Button. Find Shortest Path Dialog Box is opened.
[ 41 ]
Vi-RtSim
In Find Shortest Path Dialog Box, click on Calculate Button. Then Shortest path is
calculated.
Note:
*
You can add or delete a router and line during run time using Editor menu.
[ 42 ]
Vi-RtSim
EXPERIMENT - 8
To study and simulate Transmission types like Multicasting, Broadcasting, & Point to
Point
TRANSMISSION TYPE
From the menu bar, select Simulation ->Transmission Type. Transmission Type Dialog
Box is displayed as follows,
[ 43 ]
Vi-RtSim
Inside the Emulator Unit has one Switching device (HUB),where three NIC card is
connected Internally. For an External Connectivity (To PCs -PC1,PC2,PC3 & PC4) ,
four RJ-45 connector is provided.
[ 44 ]
Vi-RtSim
Ring Topology
SERVER
NODE 1
RJ-45
RJ-45
NODE 2
NODE 3
RJ-45
RJ-45
SERVER1
RJ-45
RX
TX
TX
NODE3
RJ-45
RX
RJ-45
RING TOPOLOGY
RX
NODE1
TX
TX
RX
RJ-45
NODE2
[ 45 ]
Vi-RtSim
Star Topology
NIC 1
SERVER
NODE 1
NODE 2
NODE 3
RJ-45
RJ-45
RJ-45
RJ-45
STAR TOPOLOGY
SERVER
RX
RX
RJ-45
NODE1
TX
RX
RJ-45
RJ-45
NODE2
TX
TX
RX
RJ-45
TX
NODE3
[ 46 ]
Vi-RtSim
Bus Topology
SERVER
NODE 1
RJ-45
RJ-45
NODE 2
NODE 3
RJ-45
RJ-45
BUS TOPOLOGY
RJ-45
RX
TX
SERVER
RJ-45
TX RX
EXEC / PROG
2 3
TX
NODE3
F-RST
NODE2
A-RST
NODE1
RJ-45
TX RX
P-CON
RJ-45
RX
[ 47 ]
Vi-RtSim
Each NIC card has LED display to indicate the various status as shown below.
1.
2.
3.
4.
5.
6.
Circuitry is added to each NIC card for Error Generation. Each Error Generator can add
Error as Bit wise and Frame wise. This is shown below.
ERROR GENERATOR
FRAME
BIT
ERROR
[ 48 ]
Vi-RtSim
EXPERIMENT 1
To study the TCP/IP protocol and analyse the performance of TCP/IP protocol.
TCP/IP
From the menu bar, select OSI LAN Trainer -> TCP/IP. TCP/IP Dialog Window is
opened as follows.
Change the Remote IP field, if you want to communicate with other than given IP.
Then click on Connect Button to establish connection with remote host. If you want
to send data, enter data in Data to be send field, then click on Send Button.
Disconnect Button is used to terminate connection from remote host. To close Dialog
window click on Quit Button.
[ 49 ]
Vi-RtSim
EXPERIMENT 2
To study the Stop and Wait protocol and analyze the performance of Stop and Wait
protocol using various parameters like Data Rate, Packet Size etc.
STOP AND WAIT
From the menu bar, select OSI LAN Trainer ->Protocols ->Stop and Wait. Stop and
Wait Dialog Window is opened as follows.
Change the Remote IP field, if you want to communicate with other than given IP.
Then click on Connect Button to establish connection with remote host. You can edit
Data Rate to change data flow speed. You can change Inter Packet Delay and Packet
Size also. If you want to send data, enter data in Data to be sent field, then click on
Send Button. Disconnect Button is used to terminate connection from remote host.
[ 50 ]
Vi-RtSim
To generate error remove Error Bit. To refresh the connection click on Refresh Button.
Ping Button is used to check whether the connection is established or not. To close
Dialog window click on Quit Button.
Note: You can plot various graphs by pressing Plot Button
i)
ii)
iii)
iv)
:
:
1 Mbps
1 Byte
We will vary the no. of packets from 1 to 7 in step 1 and corresponding time taken for
the data transfer will be noted and a plot of Data Size Vs Transmission Time can be
viewed and printout can be taken.
[ 51 ]
Vi-RtSim
ii.
:
:
1 Mbps
2 Bytes
We will vary the no. of packets from 1 to 7 in step 1 and corresponding time taken for
the data transfer will be noted and a plot of Data Size Vs Transmission Time can be
viewed and printout can be taken.
[ 52 ]
Vi-RtSim
DATA RATE Vs TRANSMISSION TIME
i.
:
:
1 Mbps
1 Byte
We will vary the no. of packets from 1 to 7 in step 1 and corresponding time taken for
the data transfer will be noted and a plot of Data Rate Vs Transmission Time can be
viewed and printout can be taken.
[ 53 ]
Vi-RtSim
ii.
:
:
1 Mbps
2 Bytes
We will vary the no. of packets from 1 to 7 in step 1 and corresponding time taken for
the data transfer will be noted and a plot of Data Rate Vs Transmission Time can be
viewed and printout can be taken.
[ 54 ]
Vi-RtSim
DATA RATE Vs THROUGHPUT
i.
:
:
1 Mbps
1 Byte
We will vary the no. of packets from 1 to 7 in step 1 and corresponding effective
throughput for the data transfer will be noted and a plot of Data Rate Vs Throughput
can be viewed and printout can be taken
[ 55 ]
Vi-RtSim
ii.
:
:
1 Mbps
2 Bytes
We will vary the no. of packets from 1 to 7 in step 1 and corresponding effective
throughput for the data transfer will be noted and a plot of Data Rate Vs Throughput
can be viewed and printout can be taken.
[ 56 ]
Vi-RtSim
PERFORMANCE ANALYSIS
Calculation
Transmission Time : Packet Size * No of packets * 8 ? secs
1000000
CASE I
i.
:
:
8 Kbps
1 Byte
We will vary the no. of packets from 1 to 7 in step 1 and corresponding time taken for
the data transfer will be noted and a plot of No. of Packets Vs Time can be viewed and
printout can be taken.
[ 57 ]
Vi-RtSim
ii.
:
:
16 Kbps
1 Byte
We will vary the no. of packets from 1 to 7 in step 1 and corresponding time taken for
the data transfer will be noted and a plot of No. of Packets Vs Time can be viewed and
printout can be taken.
[ 58 ]
Vi-RtSim
iii.
:
:
32 Kbps
1 Byte
We will vary the no. of packets from 1 to 7 in step 1 and corresponding time taken for
the data transfer will be noted and a plot of No. of Packets Vs Time can be viewed and
printout can be taken.
[ 59 ]
Vi-RtSim
iv.
:
:
64 Kbps
1 Byte
We will vary the no. of packets from 1 to 7 in step 1 and corresponding time taken for
the data transfer will be noted and a plot of No. of Packets Vs Time can be viewed and
printout can be taken.
[ 60 ]
Vi-RtSim
v.
:
:
:
128 Kbps
1 Byte
7
Now send the data, after the data transfer is completed click the Performance Analysis
button .
The graph is displayed as follows
[ 61 ]
Vi-RtSim
vi.
:
:
256 Kbps
1 Byte
We will vary the no. of packets from 1 to 7 in step 1 and corresponding time taken for
the data transfer will be noted and a plot of No. of Packets Vs Time can be viewed and
printout can be taken.
[ 62 ]
Vi-RtSim
vii.
:
:
512 Kbps
1 Byte
We will vary the no. of packets from 1 to 7 in step 1 and corresponding time taken for
the data transfer will be noted and a plot of No. of Packets Vs Time can be viewed and
printout can be taken.
[ 63 ]
Vi-RtSim
viii.
:
:
1 Mbps
1 Byte
We will vary the no. of packets from 1 to 7 in step 1 and corresponding time taken for
the data transfer will be noted and a plot of No. of Packets Vs Time can be viewed and
printout can be taken.
[ 64 ]
Vi-RtSim
CASE II
i.
:
:
8 Kbps
2 Bytes
We will vary the no. of packets from 1 to 7 in step 1 and corresponding time taken for
the data transfer will be noted and a plot of No. of Packets Vs Time can be viewed and
printout can be taken.
[ 65 ]
Vi-RtSim
ii.
:
:
16 Kbps
2 Bytes
We will vary the no. of packets from 1 to 7 in step 1 and corresponding time taken for
the data transfer will be noted and a plot of No. of Packets Vs Time can be viewed and
printout can be taken.
[ 66 ]
Vi-RtSim
iii.
:
:
32 Kbps
2 Bytes
We will vary the no. of packets from 1 to 7 in step 1 and corresponding time taken for
the data transfer will be noted and a plot of No. of Packets Vs Time can be viewed and
printout can be taken.
[ 67 ]
Vi-RtSim
iv.
:
:
64 Kbps
2 Bytes
We will vary the no. of packets from 1 to 7 in step 1 and corresponding time taken for
the data transfer will be noted and a plot of No. of Packets Vs Time can be viewed and
printout can be taken.
[ 68 ]
Vi-RtSim
v.
:
:
128 Kbps
2 Bytes
We will vary the no. of packets from 1 to 7 in step 1 and corresponding time taken for
the data transfer will be noted and a plot of No. of Packets Vs Time can be viewed and
printout can be taken.
[ 69 ]
Vi-RtSim
vi.
:
:
256 Kbps
2 Bytes
We will vary the no. of packets from 1 to 7 in step 1 and corresponding time taken for
the data transfer will be noted and a plot of No. of Packets Vs Time can be viewed and
printout can be taken.
[ 70 ]
Vi-RtSim
vii.
:
:
512 Kbps
2 Bytes
We will vary the no. of packets from 1 to 7 in step 1 and corresponding time taken for
the data transfer will be noted and a plot of No. of Packets Vs Time can be viewed and
printout can be taken.
[ 71 ]
Vi-RtSim
viii.
:
:
1 Mbps
2 Bytes
We will vary the no. of packets from 1 to 7 in step 1 and corresponding time taken for
the data transfer will be noted and a plot of No. of Packets Vs Time can be viewed and
printout can be taken.
[ 72 ]
Vi-RtSim
EXPERIMENT 3
To study the Go Back n protocol and analyze the performance of Go Back n protocol
using various parameters like Data Rate, Packet Size etc.
GO BACK N
From the menu bar, select OSI LAN Trainer ->Protocols ->Go Back N.
Go Back n Dialog Window is opened as follows.
[ 73 ]
Vi-RtSim
Change the Remote IP field, if you want to communicate with other than given IP.
Then click on Connect Button to establish connection with remote host. You can edit
Data Rate to change data flow speed. You can change Inter Packet Delay and Packet
Size also. If you want to send data, enter data in Data to be sent field, then click on
Error to generate manual error and click Send Button. Disconnect Button is used to
terminate connection from remote host.
To generate error remove Error Bit. To refresh the connection click on Refresh Button.
Ping Button is used to check whether the connection is established or not. To close
Dialog window click on Quit Button.
Note:
You can plot various graphs by pressing Plot Button
i)
iii)
Data Rate Vs
ii)
iv)
Performance Analysis
[ 74 ]
Vi-RtSim
EXPERIMENT 4
To study the Selective Repeat protocol and analyse the performance of Selective Repeat
protocol using various parameters like Data Rate, Packet Size etc.
SELECTIVE REPEAT
From the menu bar, select OSI LAN Trainer ->Protocols ->Selective Repeat.
Selective Repeat Dialog Window is opened as follows.
[ 75 ]
Vi-RtSim
Change the Remote IP field, if you want to communicate with other than given IP.
Then click on Connect Button to establish connection with remote host. You can edit
Data Rate to change data flow speed. You can change Inter Packet Delay and Packet
Size also. If you want to send data, enter data in Data to be sent field, then click on
Error to generate manual error and click Send Button. Disconnect Button is used to
terminate connection from remote host.
To generate error remove Error Bit. To refresh the connection click on Refresh Button.
Ping Button is used to check whether the connection is established or not. To close
Dialog window click on Quit Button.
Note:
You can plot various graphs by pressing Plot Button
i)
iii)
Data Rate Vs
ii)
iv)
Performance Analysis
[ 76 ]
Vi-RtSim
EXPERIMENT 5
To study about the performance of bus topology.
BUS TOPOLOGY
From the menu bar, select OSI LAN Trainer ->Topology -> Bus.
Bus Topology Dialog Window is opened as follows.
Change the Remote IP field, if you want to communicate with other than given IP.
Then click on Connect Button to establish connection with remote host. If you want
to send data, enter data in Data to be sent field and select Node, then click on Send
Button. Disconnect Button is used to terminate connection from remote host. To
refresh the connection click on Refresh Button. Ping Button is used to check whether
the connection is established or not. To close Dialog window click on Quit Button.
[ 77 ]
Vi-RtSim
EXPERIMENT 6
To study about the performance of star topology.
STAR TOPOLOGY
From the menu bar, select OSI LAN Trainer ->Topology ->Star.
Star Topology Dialog Window is opened as follows.
Change the Remote IP field, if you want to communicate with other than given IP.
Then click on Connect Button to establish connection with remote host. If you want
to send data, enter data in Data to be sent field and select Node, then click on Send
Button. Disconnect Button is used to terminate connection from remote host. To
refresh the connection click on Refresh Button. Ping Button is used to check whether
the connection is established or not. To close Dialog window click on Quit Button.
[ 78 ]
Vi-RtSim
EXPERIMENT 7
To study about the performance of ring topology.
RING TOPOLOGY
From the menu bar, select OSI LAN Trainer ->Topology -> Ring.
Ring Topology Dialog Window is opened as follows.
Change the Remote IP field, if you want to communicate with other than given IP.
Then click on Connect Button to establish connection with remote host. If you want
to send data, enter data in Data to be sent field and select Node, then click on Send
Button. Disconnect Button is used to terminate connection from remote host. To
refresh the connection click on Refresh Button. Ping Button is used to check whether
the connection is established or not. To close Dialog window click on Quit Button.
[ 79 ]
Vi-RtSim
EXPERIMENT 8
To study the CSMA/CD protocol and analyse the performance of CSMA/CD protocol.
CSMA/CD
From the menu bar, select OSI LAN Trainer -> CSMA -> CSMA/CD.
[ 80 ]
Vi-RtSim
Change the Remote IP field, if you want to communicate with other than given IP.
Then click on Connect Button to establish connection with remote host. You can edit
Data Rate to change data flow speed. If you want to send data, enter data in Data to be
sent field, then click on Send Button. Disconnect Button is used to terminate
connection from remote host.
To refresh the connection click on Refresh Button. Ping Button is used to check
whether the connection is established or not. To close Dialog window click on Quit
Button.
Note:
You can plot various graphs by pressing Plot Button
i)
ii)
iii)
Data Rate Vs
iv)
Performance Analysis
[ 81 ]
Vi-RtSim
EXPERIMENT 9
To study the CSMA/CA protocol and analyse the performance of CSMA/CA protocol.
CSMA/CA
From the menu bar, select OSI LAN Trainer -> CSMA -> CSMA/CA.
[ 82 ]
Vi-RtSim
Change the Remote IP field, if you want to communicate with other than given IP.
Then click on Connect Button to establish connection with remote host. You can edit
Data Rate to change data flow speed. If you want to send data, enter data in Data to be
sent field, then click on Send Button. Disconnect Button is used to terminate
connection from remote host.
To refresh the connection click on Refresh Button. Ping Button is used to check
whether the connection is established or not. To close Dialog window click on Quit
Button.
Note:
You can plot various graphs by pressing Plot Button
i)
ii)
iii)
Performance Analysis
[ 83 ]
Vi-RtSim
EXPERIMENT 10
TOKEN RING
To study the Token Ring protocol and analyse the performance of Token Ring protocol.
From the menu bar, select OSI LAN Trainer ->Token Ring.
[ 84 ]
Vi-RtSim
Change the Remote IP field, if you want to communicate with other than given IP.
Then click on Connect Button to establish connection with remote host. You can edit
Data Rate to change data flow speed. When you click on Start Button, token is
circulated. If you want to send data click on any one of the capture buttons like
Capture 1, Capture 2 and Capture 3 then enter Destination and Data in floating
window. Disconnect Button is used to terminate connection from remote host.
To refresh the connection click on Refresh Button. Ping Button is used to check
whether the connection is established or not. To close Dialog window click on Quit
Button.
To capture token in node1, press Capture 1 Button.
To capture token in node2, press Capture 2 Button.
To capture token in node3, press Capture 3 Button.
[ 85 ]
Vi-RtSim
EXPERIMENT 11
TOKEN BUS
To study the Token Ring protocol and analyse the performance of Token Ring protocol.
From the menu bar, select OSI LAN Trainer ->Token Bus.
[ 86 ]
Vi-RtSim
Change the Remote IP field, if you want to communicate with other than given
IP. Then click on Connect Button to establish connection with remote host.
You can edit Data Rate to change data flow speed. Then click on Configure
Button, to set priority. When you click on Start Button, token is circulated. If
you want to send data click on any one of the capture buttons like Capture 1,
Capture 2 and Capture 3 then enter Destination and Data in floating window.
Disconnect Button is used to terminate connection from remote host.
To refresh the connection click on Refresh Button. Ping Button is used to check
whether the connection is established or not. To close Dialog window click on
Quit Button.
To capture token in node1, press Capture 1 Button.
To capture token in node2, press Capture 2 Button.
To capture token in node3, press Capture 3 Button.
[ 87 ]
Vi-RtSim
PC to PC COMMUNICATION
EXPERIMENT - 1
To study the file transfer between two PCs
FILE TRANSFER
From the menu bar, select PC TO PC -> File Transfer. Open Transmitter in Client side
and Receiver in Server side. Transmitter window looks like as follows,
To establish connection with remote host, fill Remote IP field and click on Connect
Button. If you want to transfer file to server, select file and then click on Send File
Button. Disconnect Button is used to terminate connection from remote host. To close
Dialog window click on Quit Button.
[ 88 ]
Vi-RtSim
EXPERIMENT 2
To study the encryption and decryption algorithm in file transfer between two PCs
FILE SECURITY
From the menu bar, select PC TO PC -> File Security. Open Encryption in Client side
and Decryption in Server side. Encryption window looks like as follows,
To establish connection with remote host, fill Remote IP field and click on Connect
Button. If you want to transfer file to server, select file and then click on Send File
Button. Remote Destination is displayed in client side. Disconnect Button is used to
terminate connection from remote host. To close Dialog window click on Quit Button.
[ 89 ]
Vi-RtSim
Decryption window looks like as follows,
[ 90 ]
Vi-RtSim
EXPERIMENT 3
To study the RSA encryption and decryption algorithm in file transfer between two
PCs
RSA ALGORITHM
From the menu bar, select PC TO PC -> RSA Algorithm. Open Transmitter in Client
side and Receiver in Server side. Transmitter window looks like as follows,
To establish connection with remote host, fill Remote IP field and click on Connect
Button. If you want to transfer data, enter data in Plain text field, click on Generate
Key Button, then click on Encrypt Button and then click on Send Data Button.
Disconnect Button is used to terminate connection from remote host. To close Dialog
window click on Quit Button.
[ 91 ]
Vi-RtSim
Receiver window looks like as follows,
[ 92 ]
Vi-RtSim
EXPERIMENT 4
To study the RC4 encryption and decryption algorithm in file transfer between two
PCs
RC4 ALGORITHM
From the menu bar, select PC TO PC -> RC4.Open Transmitter in Client side and
Receiver in Server side. Transmitter window looks like as follows,
To establish connection with remote host, fill Remote IP field and click on Connect
Button. If you want to transfer data, enter data in Plain text field and give password in
Password field then click on Encrypt Button and then click on Send Data Button.
Disconnect Button is used to terminate connection from remote host. To close Dialog
window click on Quit Button.
[ 93 ]
Vi-RtSim
Receiver window looks like as follows,
[ 94 ]
Vi-RtSim
EXPERIMENT 5
To study the XMODEM file transfer protocol.
XMODEM
From the menu bar, select PC TO PC -> XModem. Open Transmitter in Client side and
Receiver in Server side. Transmitter window looks like as follows,
To establish connection with remote host, fill Remote IP field and click on Connect
Button. If you want to transfer file to server, select file using Browse File icon and then
click on Send File Button. If we remove underscore _ from Errorness Bit Field, an
error is generated. Disconnect Button is used to terminate connection from remote
host. To close Dialog window click on Quit Button.
[ 95 ]
Vi-RtSim
EXPERIMENT 6
To study the YMODEM file transfer protocol.
YMODEM
From the menu bar, select PC TO PC -> YModem. Open Transmitter in Client side
and Receiver in Server side. Transmitter window looks like as follows,
To establish connection with remote host, fill Remote IP field and click on Connect
Button. If you want to transfer file to server, select file using Browse File icon and then
click on Send File Button. If we remove underscore _ from errorness Bit Field, an
error is generated. Disconnect Button is used to terminate connection from remote
host. To close Dialog window click on Quit Button.
[ 96 ]
Vi-RtSim
PING
From the menu bar, select PC TO PC -> Ping.
To get Ping Information, edit the Ping IP Number field and then click on Ping Button.
[ 97 ]
Vi-RtSim
PC
SERVER1
RJ-45
RX
TX
TX
PC
RJ-45
NODE3
RX
RJ-45
RING TOPOLOGY
RX
TX
TX
PC
NODE1
RX
RJ-45
NODE2
PC
[ 98 ]
Vi-RtSim
Star Topology
PC
SERVER
RX
RJ-45
PC
TX
TX
NODE2
NODE1
RX
RJ-45
RX
RJ-45
PC
TX
NODE3
RX
RJ-45
TX
PC
[ 99 ]
Vi-RtSim
Bus Topology
PC
BUS TOPOLOGY
RJ-45
RX
TX
SERVER
NODE1
RJ-45
RX
RJ-45
TX RX
PC
NODE2
RJ-45
TX RX
PC
NODE3
TX
PC
[ 100 ]
Vi-RtSim
EXPERIMENT 1
To study the data transfer in bus topology using existing Ethernet card in PC.
DATA TRANSFER IN BUS TOPOLOGY
Module I
From the menu bar, select Ethernet Trainer -> Data Transfer ->Module I ->Bus.
[ 101 ]
Vi-RtSim
Module II
From the menu bar, select Ethernet Trainer -> Data Transfer ->Module II ->Bus. Open
Transmitter in Client side and Receiver in Server side. Transmitter window looks like
as follows,
In Transmitter window, enter Remote IP and give data and then click on Send Button
to send data.
[ 102 ]
Vi-RtSim
EXPERIMENT 2
To study the data transfer in star topology using existing Ethernet card in PC.
DATA TRANSFER IN STAR TOPOLOGY
Module I
From the menu bar, select Ethernet Trainer -> Data Transfer ->Module I ->Star.
[ 103 ]
Vi-RtSim
Module II
From the menu bar, select Ethernet Trainer -> Data Transfer ->Module II ->Star.
Open Transmitter in Client side and Receiver in Server side. Transmitter window looks
like as follows,
In Transmitter window, enter Remote IP and give data and then click on Send Button
to send data.
[ 104 ]
Vi-RtSim
EXPERIMENT 3
To study the data transfer in ring topology using existing Ethernet card in PC.
DATA TRANSFER IN RING TOPOLOGY
Module I
From the menu bar, select Ethernet Trainer -> Data Transfer ->Module I ->Ring.
[ 105 ]
Vi-RtSim
Module II
From the menu bar, select Ethernet Trainer -> Data Transfer ->Module II ->Ring.
Open Transmitter in Client side and Receiver in Server side. Transmitter window looks
like as follows,
In Transmitter window, enter Remote IP, Neighbour IP and give data and then click on
Send Button to send data.
[ 106 ]
Vi-RtSim
Receiver window looks like as follows,
[ 107 ]
Vi-RtSim
EXPERIMENT 4
To study the file transfer in bus topology using existing Ethernet card in PC.
FILE TRANSFER IN BUS TOPOLOGY
From the menu bar, select Ethernet Trainer -> File Transfer ->Bus. Open Transmitter
in Client side and Receiver in Server side. Transmitter window looks like as follows,
To Establish connection with remote host, fill Remote IP field and click on Connect
Button. If you want to transfer file to server, select file and then click on Send File
Button. Disconnect Button is used to terminate connection from remote host. To close
Dialog window click on Quit Button.
[ 108 ]
Vi-RtSim
EXPERIMENT 5
To study the file transfer in star topology using existing Ethernet card in PC.
FILE TRANSFER IN STAR TOPOLOGY
From the menu bar, select Ethernet Trainer -> File Transfer ->Star. Open Transmitter
in Client side and Receiver in Server side. Transmitter window looks like as follows,
To Establish connection with remote host, fill Remote IP field and click on Connect
Button. If you want to transfer file to server, select file and then click on Send File
Button. Disconnect Button is used to terminate connection from remote host. To close
Dialog window click on Quit Button.
[ 109 ]
Vi-RtSim
EXPERIMENT 6
To study the file transfer in ring topology using existing Ethernet card in PC.
FILE TRANSFER IN RING TOPOLOGY
From the menu bar, select Ethernet Trainer -> File Transfer ->Ring. Open Transmitter
in Client side and Receiver in Server side. Transmitter window looks like as follows,
In Transmitter window, to Establish connection with remote host, fill Remote IP field,
Neighbour IP and click on Connect Button. If you want to transfer file to server, select
file and then click on Send File Button. Disconnect Button is used to terminate
connection from remote host. To close Dialog window click on Quit Button.
[ 110 ]
Vi-RtSim
Receiver window looks like as follows,
[ 111 ]
Vi-RtSim
EXPERIMENT 7
To study the Stop and Wait protocol using existing Ethernet card in PC and analyse the
performance of Stop and Wait protocol using various parameters like Data Rate, Packet
Size etc.
STOP AND WAIT
Transmitter
From the menu bar, select Ethernet Trainer -> Stop and Wait. Open Transmitter in
Client side and Receiver in Server side. Transmitter window looks like as follows,
[ 112 ]
Vi-RtSim
Change the Remote IP field, if you want to communicate with other than given IP.
Then click on Connect Button to establish connection with remote host. You can edit
Data Rate to change data flow speed. You can change Inter Packet Delay and Packet
Size also. If you want to send data, enter data in Data to be sent field, then click on
Send Button. To generate error remove data from Error Bit. Disconnect Button is used
to terminate connection from remote host. To close Dialog window click on Quit
Button.
Note:
You can plot various graphs by pressing Plot Button
i)
iii)
ii)
iv)
Performance Analysis
[ 113 ]
Vi-RtSim
DATA SIZE Vs TRANSMISSION TIME
i.
:
:
10 Mbps
64 Bytes
We will vary the no. of packets from 1 to 13 in step 1 and corresponding time taken for
the data transfer will be noted and a plot of Data Size Vs Transmission Time can be
viewed and printout can be taken.
[ 114 ]
Vi-RtSim
ii.
:
:
10 Mbps
128 Bytes
We will vary the no. of packets from 1 to 13 in step 1 and corresponding time taken for
the data transfer will be noted and a plot of Data Size Vs Transmission Time can be
viewed and printout can be taken.
[ 115 ]
Vi-RtSim
DATA RATE Vs TRANSMISSION TIME
i.
:
:
10 Mbps
64 Bytes
We will vary the no. of packets from 1 to 13 in step 1 and corresponding time taken for
the data transfer will be noted and a plot of Data Rate Vs Transmission Time can be
viewed and printout can be taken.
[ 116 ]
Vi-RtSim
ii.
:
:
10 Mbps
128 Bytes
We will vary the no. of packets from 1 to 13 in step 1 and corresponding time taken for
the data transfer will be noted and a plot of Data Rate Vs Transmission Time can be
viewed and printout can be taken.
[ 117 ]
Vi-RtSim
DATA RATE Vs THROUGHPUT
i.
:
:
10 Mbps
64 Bytes
We will vary the no. of packets from 1 to 13 in step 1 and corresponding effective
throughput for the data transfer will be noted and a plot of Data Rate Vs Throughput
can be viewed and printout can be taken
[ 118 ]
Vi-RtSim
ii.
:
:
10 Mbps
128 Bytes
We will vary the no. of packets from 1 to 13 in step 1 and corresponding effective
throughput for the data transfer will be noted and a plot of Data Rate Vs Throughput
can be viewed and printout can be taken
[ 119 ]
Vi-RtSim
PERFORMANCE ANALYSIS
Calculation
Transmission Time : Packet Size * No of packets * 8 ? secs
1000000
CASE I
i.
We will vary the no. of packets from 1 to 13 in step 1 and corresponding time taken for
the data transfer will be noted and a plot of No. of Packets Vs Time can be viewed and
printout can be taken.
[ 120 ]
Vi-RtSim
ii.
:
:
5.0 Mbps
64 Bytes
We will vary the no. of packets from 1 to 13 in step 1 and corresponding time taken for
the data transfer will be noted and a plot of No. of Packets Vs Time can be viewed and
printout can be taken
[ 121 ]
Vi-RtSim
iii.
:
:
7.5 Mbps
64 Bytes
We will vary the no. of packets from 1 to 13 in step 1 and corresponding time taken for
the data transfer will be noted and a plot of No. of Packets Vs Time can be viewed and
printout can be taken
[ 122 ]
Vi-RtSim
iv.
:
:
10 Mbps
64 Bytes
We will vary the no. of packets from 1 to 13 in step 1 and corresponding time taken for
the data transfer will be noted and a plot of No. of Packets Vs Time can be viewed and
printout can be taken
[ 123 ]
Vi-RtSim
CASE II
i.
:
:
2.5 Mbps
128 Bytes
We will vary the no. of packets from 1 to 13 in step 1 and corresponding time taken for
the data transfer will be noted and a plot of No. of Packets Vs Time can be viewed and
printout can be taken.
[ 124 ]
Vi-RtSim
ii.
:
:
5.0 Mbps
128 Bytes
We will vary the no. of packets from 1 to 13 in step 1 and corresponding time taken for
the data transfer will be noted and a plot of No. of Packets Vs Time can be viewed and
printout can be taken
[ 125 ]
Vi-RtSim
iii.
:
:
7.5 Mbps
128 Bytes
We will vary the no. of packets from 1 to 13 in step 1 and corresponding time taken for
the data transfer will be noted and a plot of No. of Packets Vs Time can be viewed and
printout can be taken
[ 126 ]
Vi-RtSim
iv.
:
:
10 Mbps
128 Bytes
We will vary the no. of packets from 1 to 13 in step 1 and corresponding time taken for
the data transfer will be noted and a plot of No. of Packets Vs Time can be viewed and
printout can be taken
[ 127 ]
Vi-RtSim
Receiver
From the menu bar, select Ethernet Trainer -> Stop and Wait -> Receiver.
The Stop and Wait Receiver window is as shown below
[ 128 ]
Vi-RtSim
EXPERIMENT 8
To study the Go Back n protocol using existing Ethernet card in PC and analyse the
performance of Go Back n protocol using various parameters like Data Rate, Packet Size
etc.
GO BACK N
Transmitter
From the menu bar, select Ethernet Trainer -> Go Back n.. Open Transmitter in Client
side and Receiver in Server side. Transmitter window looks like as follows,
[ 129 ]
Vi-RtSim
Change the Remote IP field, if you want to communicate with other than given IP.
Then click on Connect Button to establish connection with remote host. You can edit
Data Rate to change data flow speed. You can change Inter Packet Delay and Packet
Size also. If you want to send data, enter data in Data to be sent field, then click on
Send Button.
To generate error remove the Error Bit. Disconnect Button is used to terminate
connection from remote host. Ping button is used to check whether the connection is
established or not. To close Dialog window click on Quit Button.
Note:
You can plot various graphs by pressing Plot Button
i)
iii)
iv)
Performance Analysis
[ 130 ]
Vi-RtSim
Receiver
From the menu bar, select Ethernet Trainer -> Go Back n -> Receiver.
The Go Back N Receiver window is as shown below
[ 131 ]
Vi-RtSim
EXPERIMENT 9
To study the Selective Repeat protocol using existing Ethernet card in PC and analyse
the performance of Selective Repeat protocol using various parameters like Data Rate,
Packet Size etc.
SELECTIVE REPEAT
Transmitter
From the menu bar, select Ethernet Trainer -> Selective Repeat..
Open Transmitter in Client side and Receiver in Server side. Transmitter window looks
like as follows,
[ 132 ]
Vi-RtSim
Change the Remote IP field, if you want to communicate with other than given IP.
Then click on Connect Button to establish connection with remote host. You can edit
Data Rate to change data flow speed. You can change Inter Packet Delay and Packet
Size also. If you want to send data, enter data in Data to be sent field, then click on
Send Button.
To generate error remove the Error Bit. Disconnect Button is used to terminate
connection from remote host. Ping button is used to check whether the connection is
established or not. To close Dialog window click on Quit Button.
Note:
You can plot various graphs by pressing Plot Button
i)
[ 133 ]
Vi-RtSim
Receiver
From the menu bar, select Ethernet Trainer -> Selective Repeat -> Receiver.
The Selective Repeat Receiver window is as shown below
[ 134 ]
Vi-RtSim
EXPERIMENT 10
To study the Token Ring protocol and analyse the performance of Token Ring protocol
using existing Ethernet card in PC.
Token Ring
Transmitter
From the menu bar, select Ethernet Trainer -> Token Ring.. Open Transmitter in
Client side and Receiver in Server side. Transmitter window looks like as follows,
Enter Remote IP, Neighbour IP and then click on Connect Button to establish
connection. To circulate token, Click on Start Token Button. Then enter data in Data
to be send field and click on Send Data Button.
[ 135 ]
Vi-RtSim
Receiver
From the menu bar, select Ethernet Trainer -> Token Ring -> Receiver.
Receiver window looks like as follows,
[ 136 ]
Vi-RtSim
EXPERIMENT 11
To study the Token Bus protocol and analyse the performance of Token Bus protocol
using existing Ethernet card in PC.
Token Bus
Transmitter
From the menu bar, select Ethernet Trainer -> Token Bus. Open Transmitter in Client
side and Receiver in Server side. Transmitter window looks like as follows,
Enter Remote IP, Neighbour IP and then click on Connect Button to establish
connection. To circulate token, Click on Start Token Button. Then enter data in Data
to be send field and click on Send Data Button.
[ 137 ]
Vi-RtSim
Receiver
From the menu bar, select Ethernet Trainer -> Token Bus -> Receiver
Receiver window looks like as follows,
[ 138 ]
Vi-RtSim
[ 139 ]
Vi-RtSim
Click on Connect to establish connection. Then click on Communication Tab, you
have another page like as follows.
In this page, select file and then click on Send File Button.
[ 140 ]
Vi-RtSim
Receiver
From the menu bar, select Serial and Parallel Comm -> RS 232 File Transfer ->
Receiver.
Receiver window is displayed as follows
[ 141 ]
Vi-RtSim
Click on Connect to establish connection. Then click on Communication Tab, you
have another page like as follows.
[ 142 ]
Vi-RtSim
EXPERIMENT 2
To study the Data Transfer through serial communication using RS 232 between two
PCs.
RS 232 Data Transfer
From the menu bar, select Serial and Parallel Comm -> RS 232 Data Transfer. Open
Data Transfer in Client side and Data Receiverd in Server side.
Data Transfer
[ 143 ]
Vi-RtSim
Data Receiver
From the menu bar, select Serial and Parallel Comm->RS 232 Data Transfer->Receiver.
Receiver window is displayed as follows
[ 144 ]
Vi-RtSim
EXPERIMENT 3
To study the Data Security through serial communication using RS 232 between two
PCs.
RS 232 Data Security
From the menu bar, select Serial and Parallel Comm -> RS 232 Data Security. Open
Data Encryption in Client side and Data Decryption in Server side.
Data Encryption
[ 145 ]
Vi-RtSim
Data Decryption
From the menu bar, select Serial and Parallel Comm->RS 232 Data Security->Data
Decryption
The Data decryption window is displayed as follows
[ 146 ]
Vi-RtSim
[ 147 ]
Vi-RtSim
EXPERIMENT 4
To study the File Security through serial communication using RS 232 between two
PCs.
RS 232 File Security
From the menu bar, select Serial and Parallel Comm -> RS 232 File Security. Open
File Encryption in Client side and File Decryption in Server side.
File Encryption
[ 148 ]
Vi-RtSim
File Decryption
From the menu bar, select Serial and Parallel Comm -> RS 232 File Security -> File
Decryption
The File Decryption window is displayed as follows
[ 149 ]
Vi-RtSim
[ 150 ]
Vi-RtSim
EXPERIMENT 5
To study the Data Transfer through parallel communication using parallel port(LPT)
between two PCs.
PARALLEL PORT DATA TRANSFER
From the menu bar,select Serial and Parallel Comm -> Parallel Cable.
Choose any one of the LPT Port like LPT1,LPT2 and LPT3.Then click on
Communication Tab,you have another page as follows.
[ 151 ]
Vi-RtSim
In this page, enter data in Data to be send field and click on Send Button.
[ 152 ]
Vi-RtSim
CRYPTOGRAPHY SIMULATION
From the menu bar, select Cryptography Simulation ->Stream Cipher->Ceaser Shift
Cipher
[ 153 ]
Vi-RtSim
PACKET ANALYSER
From the menu bar, select Utilities -> Packet Analyser
Click on start Button, to capture packets. To view particular row data, click on that
row and you can view detailed packets.
[ 154 ]