Vous êtes sur la page 1sur 155

CONTENTS

1.

General Description

2.

Simulation

3.

Experiments with OSI - LAN

33

4.

PC to PC Communication

69

5.

Ethernet Trainer Experiments

79

6.

Serial and Parallel Communication

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.

Vi Microsystems Pvt. Ltd.,

[1]

Vi-RtSim
Vi-RtSim Can provide the following
*

An opportunity to understand networking concept

Includes programming exercises using Script language

Performance Analysis of various network methodology with EXCEL

Includes Simulation for network experiments with various LAN, Wireless


LAN, and LAN Protocols

Includes Real time Packet capture

Provides Real Time Interface with various hardware LAN trainer


ViLAN-01, ViLAN-01A, ViLAN-02 & ViLAN-03.

Provision to toggle between simulation and real time performance of


hardware LAN trainer for many experiments.

Vi Microsystems Pvt. Ltd.,

[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.

TCP/IP Simulation Dialog Box is displayed as follows,

Vi Microsystems Pvt. Ltd.,

[3]

Vi-RtSim

Click on Open Button, you have a Open Dialog Box and select file TCP.c. Then screen
looks like as follows.

Vi Microsystems Pvt. Ltd.,

[4]

Vi-RtSim

Then click on Run Button, you can view TCP/IP simulation.

Vi Microsystems Pvt. Ltd.,

[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();
}

Vi Microsystems Pvt. Ltd.,

[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();
}

2. To Send Data From B To A


include <protocol.h>
void main()
{
Frame X;
X="data2";
TCPIP_INIT();
ESTABLISH_CONNECTION();
CONNECTION_REQUEST(B,A);
CONNECTION ACK_REQUEST(A,B);
CONNECTION ACK_RESPONSE(B,A);
DATA TO_SEND(B,A,X);
ACK TO_SOURCE(A,B);
ACK TO_DEST(B,A);
CLOSE_REQUEST(B,A);
CLOSE ACK_REQUEST(A,B);
CLOSE ACK_RESPONSE(B,A);
CLOSE_CONNECTION();
}

Vi Microsystems Pvt. Ltd.,

[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.

Vi Microsystems Pvt. Ltd.,

[8]

Vi-RtSim

Then click on Run Button, you can view CSMA/CD simulation.

Vi Microsystems Pvt. Ltd.,

[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);
}
}

Single Node Transmission


include <protocol.h>
void main()
{
Frame X,Y;
X="data1"; // you can edit data within double quotes.
CSMACD_INIT();
CSMACD_START();
CSMA_SEND(source,dest,X);
}

Vi Microsystems Pvt. Ltd.,

[ 10 ]

Vi-RtSim
Examples for Two Nodes Transmission
1.

To Send Data From A to B and B to A

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.

To Send Data From A to C and B to C

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);
}
}

Vi Microsystems Pvt. Ltd.,

[ 11 ]

Vi-RtSim
3.

To Send Data From A to B and C to B

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.

To Send Data From A to C and C to A

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);
}
}

Vi Microsystems Pvt. Ltd.,

[ 12 ]

Vi-RtSim
5.

To Send Data From B to A and C to A

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.

To Send Data From B to C and C to B

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);
}
}

Vi Microsystems Pvt. Ltd.,

[ 13 ]

Vi-RtSim
Examples for Single Node Transmission
1.

To Send Data From A to B

include <protocol.h>
void main()
{
Frame X,Y;
X="data1";
CSMACD_INIT();
CSMACD_START();
CSMA_SEND(A,B,X);
}

2.

To Send Data From A to C

include <protocol.h>
void main()
{
Frame X,Y;
X="data1";
CSMACD_INIT();
CSMACD_START();
CSMA_SEND(A,C,X);
}

3.

To Send Data From B to A

include <protocol.h>
void main()
{
Frame X,Y;
X="data1";
CSMACD_INIT();
CSMACD_START();
CSMA_SEND(B,A,X);
}

Vi Microsystems Pvt. Ltd.,

[ 14 ]

Vi-RtSim
4.

To Send Data From B to C

include <protocol.h>
void main()
{
Frame X,Y;
X="data1";
CSMACD_INIT();
CSMACD_START();
CSMA_SEND(B,C,X);
}

5.

To Send Data From C to A

include <protocol.h>
void main()
{
Frame X,Y;
X="data1";
CSMACD_INIT();
CSMACD_START();
CSMA_SEND(C,A,X);
}

6.

To Send Data From C to B

include <protocol.h>
void main()
{
Frame X,Y;
X="data1";
CSMACD_INIT();
CSMACD_START();
CSMA_SEND(C,B,X);
}

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 16 ]

Vi-RtSim

Then click on Run Button,you can view CSMA/CA simulation.


General Form of the Algorithm
include <protocol.h>
void main()
{
Frame X;
X="data1"; // you can edit data within double quotes.
CSMACA_INIT();
CSMACA_START();
NODE_LISTEN();
REQUESTTO_SEND(source,dest);
CLEARTO_SEND(dest,source);
DATATO_SEND(source,dest,X);
ACKNOWLEDGE(dest,source);
}

Vi Microsystems Pvt. Ltd.,

[ 17 ]

Vi-RtSim

Examples
1.

To Send Data From A to B

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.

To Send Data From A to C

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);
}

Vi Microsystems Pvt. Ltd.,

[ 18 ]

Vi-RtSim
3.

To Send Data From B to A

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.

To Send Data From B to C

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);

Vi Microsystems Pvt. Ltd.,

[ 19 ]

Vi-RtSim
5.

To Send Data From C to A

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.

To Send Data From C to B

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);

Vi Microsystems Pvt. Ltd.,

[ 20 ]

Vi-RtSim
EXPERIMENT 4

To create scenario and simulate Token Bus protocol.


TOKEN BUS Simulation
From the menu bar, select Simulation -> TOKEN BUS. Token Bus Simulation Dialog
Box is displayed as follows,

Click on Open Button, you have a Open Dialog Box and select file TOKENBUS.c. Then
screen looks like as follows.

Vi Microsystems Pvt. Ltd.,

[ 21 ]

Vi-RtSim

Then click on Run Button, you can view TOKEN BUS simulation.

Vi Microsystems Pvt. Ltd.,

[ 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.

To Send Data From A to B

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();
}

Vi Microsystems Pvt. Ltd.,

[ 23 ]

Vi-RtSim
2.

To Send Data From A to C

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.

To Send Data From A to D

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();
}

Vi Microsystems Pvt. Ltd.,

[ 24 ]

Vi-RtSim
4.

To Send Data From B to A

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.

To Send Data From B to C

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();
}

Vi Microsystems Pvt. Ltd.,

[ 25 ]

Vi-RtSim
6.

To Send Data From B to D

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.

To Send Data From C to A

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();
}

Vi Microsystems Pvt. Ltd.,

[ 26 ]

Vi-RtSim
8.

To Send Data From C to B

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.

To Send Data From C to D

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();
}

Vi Microsystems Pvt. Ltd.,

[ 27 ]

Vi-RtSim
10.

To Send Data From D to A

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.

To Send Data From D to B

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();
}

Vi Microsystems Pvt. Ltd.,

[ 28 ]

Vi-RtSim
12.

To Send Data From D to C

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();
}

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 30 ]

Vi-RtSim

Then click on Run Button, you can view TOKEN RING simulation.

Vi Microsystems Pvt. Ltd.,

[ 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.

To Send Data From A to B

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();
}

Vi Microsystems Pvt. Ltd.,

[ 32 ]

Vi-RtSim
2.

To Send Data From A to C

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.

To Send Data From A to D

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();
}

Vi Microsystems Pvt. Ltd.,

[ 33 ]

Vi-RtSim
4.

To Send Data From B to A

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.

To Send Data From B to C

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();
}

Vi Microsystems Pvt. Ltd.,

[ 34 ]

Vi-RtSim
6.

To Send Data From B to D

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.

To Send Data From C to A

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();
}

Vi Microsystems Pvt. Ltd.,

[ 35 ]

Vi-RtSim
8.

To Send Data From C to B

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.

To Send Data From C to D

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();
}

Vi Microsystems Pvt. Ltd.,

[ 36 ]

Vi-RtSim
10.

To Send Data From D to A

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.

To Send Data From D to B

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();
}

Vi Microsystems Pvt. Ltd.,

[ 37 ]

Vi-RtSim
12.

To Send Data From D to C

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();
}

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 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,

Vi Microsystems Pvt. Ltd.,

[ 43 ]

Vi-RtSim

EXPERIMENTS WITH OSI-LAN


OSI LAN TRAINER
Vilan-02 LAN Trainer Consists of Three NIC cards(ARM Based).One PC is connected
to each NIC card. PC1 is connected to NIC1 card, PC2 is connected to NIC2 card and
PC3 is connected to NIC3 card. Additionally PC4 can also be connected to access NIC1,
NIC2 and NIC3. Or, These PCs can be randomly connected to each NIC card. This
Means PC4 can be connected to NIC1, PC3 can be connected to NIC2 and PC 1 can be
Connected to NIC3. Each NIC card has it own Ethernet Connectivity.

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.

Vi Microsystems Pvt. Ltd.,

[ 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

Vi Microsystems Pvt. Ltd.,

[ 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

Vi Microsystems Pvt. Ltd.,

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

Vi Microsystems Pvt. Ltd.,

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.

Arm Processor Programming / Execution Switch

2.

LED1 - Indicates whether NIC cards in Programming mode or Execution mode

3.

LDE2 - It shows Proper Reset.

4.

ARM Processor Reset Switch

5.

FPGA Reset switch

6.

For PROM Reset

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

Vi Microsystems Pvt. Ltd.,

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.

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 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)

Data Size Vs Transmission Time


Data Rate Vs Transmission Time

iii)
iv)

Data Rate Vs Throughput


Performance Analysis

DATA SIZE Vs TRANSMISSION TIME


i.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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.

Vi Microsystems Pvt. Ltd.,

[ 51 ]

Vi-RtSim
ii.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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.

Vi Microsystems Pvt. Ltd.,

[ 52 ]

Vi-RtSim
DATA RATE Vs TRANSMISSION TIME
i.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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.

Vi Microsystems Pvt. Ltd.,

[ 53 ]

Vi-RtSim
ii.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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.

Vi Microsystems Pvt. Ltd.,

[ 54 ]

Vi-RtSim
DATA RATE Vs THROUGHPUT
i.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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

Vi Microsystems Pvt. Ltd.,

[ 55 ]

Vi-RtSim
ii.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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.

Vi Microsystems Pvt. Ltd.,

[ 56 ]

Vi-RtSim
PERFORMANCE ANALYSIS
Calculation
Transmission Time : Packet Size * No of packets * 8 ? secs
1000000
CASE I
i.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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.

Vi Microsystems Pvt. Ltd.,

[ 57 ]

Vi-RtSim
ii.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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.

Vi Microsystems Pvt. Ltd.,

[ 58 ]

Vi-RtSim
iii.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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.

Vi Microsystems Pvt. Ltd.,

[ 59 ]

Vi-RtSim
iv.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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.

Vi Microsystems Pvt. Ltd.,

[ 60 ]

Vi-RtSim
v.

We will keep the following parameters constant


Bandwidth
Packet Size
No. of packets

:
:
:

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

Vi Microsystems Pvt. Ltd.,

[ 61 ]

Vi-RtSim
vi.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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.

Vi Microsystems Pvt. Ltd.,

[ 62 ]

Vi-RtSim
vii.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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.

Vi Microsystems Pvt. Ltd.,

[ 63 ]

Vi-RtSim
viii.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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.

Vi Microsystems Pvt. Ltd.,

[ 64 ]

Vi-RtSim
CASE II
i.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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.

Vi Microsystems Pvt. Ltd.,

[ 65 ]

Vi-RtSim
ii.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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.

Vi Microsystems Pvt. Ltd.,

[ 66 ]

Vi-RtSim
iii.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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.

Vi Microsystems Pvt. Ltd.,

[ 67 ]

Vi-RtSim
iv.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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.

Vi Microsystems Pvt. Ltd.,

[ 68 ]

Vi-RtSim
v.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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.

Vi Microsystems Pvt. Ltd.,

[ 69 ]

Vi-RtSim
vi.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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.

Vi Microsystems Pvt. Ltd.,

[ 70 ]

Vi-RtSim
vii.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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.

Vi Microsystems Pvt. Ltd.,

[ 71 ]

Vi-RtSim
viii.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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.

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 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)

Data Size Vs Transmission Time


Throughput

iii)

Data Rate Vs

ii)

Data Rate Vs Transmission Time

iv)

Performance Analysis

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 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)

Data Size Vs Transmission Time


Throughput

iii)

Data Rate Vs

ii)

Data Rate Vs Transmission Time

iv)

Performance Analysis

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 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)

Data Size Vs Transmission Time Throughput

ii)

Data Rate Vs Transmission Time

iii)

Data Rate Vs

iv)

Performance Analysis

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 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)

Data Size Vs Transmission Time

ii)

Data Rate Vs Transmission Time

iii)

Performance Analysis

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 89 ]

Vi-RtSim
Decryption window looks like as follows,

Click on Decrypt Button, to decrypt file.

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 91 ]

Vi-RtSim
Receiver window looks like as follows,

Click on Decrypt Button to decrypt data.

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 93 ]

Vi-RtSim
Receiver window looks like as follows,

To decrypt data, give Password and click on Decrypt Button,

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 97 ]

Vi-RtSim

ETHERNET TRAINER EXPERIMENTS


Real Time Ethernet Trainer
ViLAN-02 has built in Ethernet Trainer circuit is available to connect 4 PCs to 3 Types
of Topology. The Front Panel Shows 3 topologies using four RJ-45 connectors. To each
RJ-45 connector under one topology, One PC can be connected to form the
corresponding Topology. A Maximum of 4 PCs can be used in the Ethernet Trainer.
This is shown in the Figure.
Ring Topology

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

Vi Microsystems Pvt. Ltd.,

[ 98 ]

Vi-RtSim
Star Topology

PC

SERVER
RX

RJ-45

PC

Vi Microsystems Pvt. Ltd.,

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

Vi Microsystems Pvt. Ltd.,

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.

Open this window in both side like Client and Server.


In Client window, enter Remote IP and give data in Data to be send field and then
click on Send Button to send data.
In Server window, click on Bind Button.

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 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.

Open this window in both side like Client and Server.


In Client window, enter Remote IP and give data in Data to be send field and then
click on Send Button to send data.
In Server window, click on Bind Button.

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 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.

Open this window in both side like Client and Server.


In Client window, enter IPs for Node1, Node2, Node3 and Node4 sequentially and give
data in Data to be send field and then click on Send Button to send data.
In Server window, click on Bind Button.

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 106 ]

Vi-RtSim
Receiver window looks like as follows,

In Receiver window, enter Neighbour IP.

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 110 ]

Vi-RtSim
Receiver window looks like as follows,

In Receiver window, enter Neighbour IP.

Vi Microsystems Pvt. Ltd.,

[ 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,

Vi Microsystems Pvt. Ltd.,

[ 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)

Data Size Vs Transmission Time

iii)

Data Rate Vs Throughput

ii)

Data Rate Vs Transmission Time

iv)

Performance Analysis

Vi Microsystems Pvt. Ltd.,

[ 113 ]

Vi-RtSim
DATA SIZE Vs TRANSMISSION TIME
i.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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.

Vi Microsystems Pvt. Ltd.,

[ 114 ]

Vi-RtSim
ii.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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.

Vi Microsystems Pvt. Ltd.,

[ 115 ]

Vi-RtSim
DATA RATE Vs TRANSMISSION TIME
i.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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.

Vi Microsystems Pvt. Ltd.,

[ 116 ]

Vi-RtSim
ii.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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.

Vi Microsystems Pvt. Ltd.,

[ 117 ]

Vi-RtSim
DATA RATE Vs THROUGHPUT
i.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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

Vi Microsystems Pvt. Ltd.,

[ 118 ]

Vi-RtSim
ii.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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

Vi Microsystems Pvt. Ltd.,

[ 119 ]

Vi-RtSim

PERFORMANCE ANALYSIS
Calculation
Transmission Time : Packet Size * No of packets * 8 ? secs
1000000
CASE I
i.

We will keep the following parameters constant


Data Rate
:
2.5 Mbps
Packet Size
:
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.

Vi Microsystems Pvt. Ltd.,

[ 120 ]

Vi-RtSim
ii.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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

Vi Microsystems Pvt. Ltd.,

[ 121 ]

Vi-RtSim
iii.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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

Vi Microsystems Pvt. Ltd.,

[ 122 ]

Vi-RtSim
iv.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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

Vi Microsystems Pvt. Ltd.,

[ 123 ]

Vi-RtSim
CASE II
i.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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.

Vi Microsystems Pvt. Ltd.,

[ 124 ]

Vi-RtSim
ii.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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

Vi Microsystems Pvt. Ltd.,

[ 125 ]

Vi-RtSim
iii.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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

Vi Microsystems Pvt. Ltd.,

[ 126 ]

Vi-RtSim
iv.

We will keep the following parameters constant


Data Rate
Packet Size

:
:

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

Vi Microsystems Pvt. Ltd.,

[ 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

Vi Microsystems Pvt. Ltd.,

[ 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,

Vi Microsystems Pvt. Ltd.,

[ 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)

Data Size Vs Transmission Time

iii)

Data Rate Vs Throughput

ii) Data Rate Vs Transmission Time

iv)

Performance Analysis

Vi Microsystems Pvt. Ltd.,

[ 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

Vi Microsystems Pvt. Ltd.,

[ 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,

Vi Microsystems Pvt. Ltd.,

[ 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)

Data Size Vs Transmission Time

ii) Data Rate Vs Transmission Time


iii) Data Rate Vs Throughput
iv) Performance Analysis

Vi Microsystems Pvt. Ltd.,

[ 133 ]

Vi-RtSim
Receiver
From the menu bar, select Ethernet Trainer -> Selective Repeat -> Receiver.
The Selective Repeat Receiver window is as shown below

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 135 ]

Vi-RtSim
Receiver
From the menu bar, select Ethernet Trainer -> Token Ring -> Receiver.
Receiver window looks like as follows,

Enter Neighbour IP field.

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 137 ]

Vi-RtSim
Receiver
From the menu bar, select Ethernet Trainer -> Token Bus -> Receiver
Receiver window looks like as follows,

Enter Neighbour IP field.

Vi Microsystems Pvt. Ltd.,

[ 138 ]

Vi-RtSim

SERIAL AND PARALLEL COMMUNICATION


EXPERIMENT 1
To study the file transfer through serial communication using RS 232 between two PCs.
RS 232 FILE TRANSFER
From the menu bar, select Serial and Parallel Comm -> RS 232 File Transfer. Open
Transmitter in Client side and Receiver in Server side.
Transmitter

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 140 ]

Vi-RtSim
Receiver
From the menu bar, select Serial and Parallel Comm -> RS 232 File Transfer ->
Receiver.
Receiver window is displayed as follows

Vi Microsystems Pvt. Ltd.,

[ 141 ]

Vi-RtSim
Click on Connect to establish connection. Then click on Communication Tab, you
have another page like as follows.

Vi Microsystems Pvt. Ltd.,

[ 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

Click on Connect to establish connection. Then click on Communication Tab, you


have another page. In that page, enter data and click on Send Button.

Vi Microsystems Pvt. Ltd.,

[ 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

Vi Microsystems Pvt. Ltd.,

[ 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

Click on Connect to establish connection. Then click on Communication Tab, you


have another page. In that page, enter data and click on Send Button.

Vi Microsystems Pvt. Ltd.,

[ 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

Click on Connect to establish connection. Then click on Communication Tab, you


have another page like as follows.

Vi Microsystems Pvt. Ltd.,

[ 146 ]

Vi-RtSim

If you want to decrypt Cipher Text, click on Decrypt Button.

Vi Microsystems Pvt. Ltd.,

[ 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

Click on Connect to establish connection. Then click on Communication Tab, you


have another page. In that page, select File and click on Send File Button.

Vi Microsystems Pvt. Ltd.,

[ 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

Click on Connect to establish connection. Then click on Communication Tab, you


have another page like as follows.

Vi Microsystems Pvt. Ltd.,

[ 149 ]

Vi-RtSim

If you want to decrypt file, click on Decrypt Button.

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 151 ]

Vi-RtSim

In this page, enter data in Data to be send field and click on Send Button.

Vi Microsystems Pvt. Ltd.,

[ 152 ]

Vi-RtSim

CRYPTOGRAPHY SIMULATION
From the menu bar, select Cryptography Simulation ->Stream Cipher->Ceaser Shift
Cipher

Enter data in Text to Encode/Decode Field. Then click on Encryption Button to


encrypt data. To decrypt data click on Decryption Button.
In the same way you can proceed all other simulation.

Vi Microsystems Pvt. Ltd.,

[ 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.

Vi Microsystems Pvt. Ltd.,

[ 154 ]

Vous aimerez peut-être aussi