155
CONTENTS 1. General Description 1 2. Simulation 2 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

  • Upload
    jenisha

  • View
    86

  • Download
    18

Embed Size (px)

DESCRIPTION

manual

Citation preview

Page 1: Vi-RtSim

CONTENTS

1. General Description 1

2. Simulation 2

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

Page 2: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 1 ]

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.

Page 3: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 2 ]

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.

Page 4: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 3 ]

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,

Page 5: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 4 ]

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

Page 6: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 5 ]

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

Page 7: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 6 ]

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

Page 8: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 7 ]

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

Page 9: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 8 ]

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.

Page 10: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 9 ]

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

Page 11: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 10 ]

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

Page 12: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 11 ]

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

Page 13: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 12 ]

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

Page 14: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 13 ]

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

Page 15: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 14 ]

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

Page 16: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 15 ]

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

Page 17: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 16 ]

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.

Page 18: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 17 ]

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

Page 19: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 18 ]

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

Page 20: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 19 ]

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

Page 21: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 20 ]

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

Page 22: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 21 ]

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.

Page 23: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 22 ]

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

Page 24: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 23 ]

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

Page 25: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 24 ]

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

Page 26: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 25 ]

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

Page 27: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 26 ]

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

Page 28: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 27 ]

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

Page 29: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 28 ]

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

Page 30: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 29 ]

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

Page 31: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 30 ]

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.

Page 32: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 31 ]

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

Page 33: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 32 ]

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

Page 34: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 33 ]

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

Page 35: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 34 ]

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

Page 36: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 35 ]

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

Page 37: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 36 ]

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

Page 38: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 37 ]

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

Page 39: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 38 ]

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

Page 40: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 39 ]

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.

Page 41: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 40 ]

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.

Page 42: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 41 ]

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.

Page 43: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 42 ]

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.

Page 44: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 43 ]

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,

Page 45: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 44 ]

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.

Page 46: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 45 ]

Ring Topology

RJ-45RJ-45RJ-45

NODE 1SERVER NODE 2 NODE 3

RJ-45

TX RX

TXRX

RX

TXRX

TX

RJ-45RING TOPOLOGYRJ-45NODE3

NODE2RJ-45

NODE1

SERVER1

RJ-45

Page 47: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 46 ]

Star Topology

RJ-45RJ-45RJ-45

NODE 1SERVER NODE 2 NODE 3

RJ-45

NIC 1

TXRX

TXRX RXTXTX RX

NODE3NODE2NODE1

RJ-45RJ-45RJ-45

RJ-45

SERVER

STAR TOPOLOGY

Page 48: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 47 ]

Bus Topology

RJ-45

NODE 3NODE 2SERVER NODE 1

RJ-45 RJ-45 RJ-45

TXRXTXRXTXRX

TXRX

NODE3

RJ-45RJ-45

NODE2NODE1

RJ-45

RJ-45

SERVER

BUS TOPOLOGY

1 2 3 4 5 6

EXEC / PROG A-R

ST

F-R

ST

P-C

ON

Page 49: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 48 ]

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.

FRAME BIT ERROR

ERROR GENERATOR

Page 50: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 49 ]

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.

Page 51: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 50 ]

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.

Page 52: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 51 ]

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 iii) Data Rate Vs Throughput ii) Data Rate Vs Transmission Time iv) Performance Analysis

DATA SIZE Vs TRANSMISSION TIME i. We will keep the following parameters constant Data Rate : 1 Mbps

Packet Size : 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.

Page 53: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 52 ]

ii. We will keep the following parameters constant Data Rate : 1 Mbps

Packet Size : 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.

Page 54: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 53 ]

DATA RATE Vs TRANSMISSION TIME i. We will keep the following parameters constant Data Rate : 1 Mbps

Packet Size : 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.

Page 55: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 54 ]

ii. We will keep the following parameters constant Data Rate : 1 Mbps

Packet Size : 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.

Page 56: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 55 ]

DATA RATE Vs THROUGHPUT i. We will keep the following parameters constant Data Rate : 1 Mbps

Packet Size : 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

Page 57: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 56 ]

ii. We will keep the following parameters constant Data Rate : 1 Mbps

Packet Size : 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.

Page 58: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 57 ]

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 : 8 Kbps

Packet Size : 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.

Page 59: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 58 ]

ii. We will keep the following parameters constant Data Rate : 16 Kbps

Packet Size : 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.

Page 60: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 59 ]

iii. We will keep the following parameters constant Data Rate : 32 Kbps

Packet Size : 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.

Page 61: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 60 ]

iv. We will keep the following parameters constant Data Rate : 64 Kbps

Packet Size : 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.

Page 62: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 61 ]

v. We will keep the following parameters constant Bandwidth : 128 Kbps

Packet Size : 1 Byte No. of packets : 7

Now send the data, after the data transfer is completed click the Performance Analysis button . The graph is displayed as follows

Page 63: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 62 ]

vi. We will keep the following parameters constant Data Rate : 256 Kbps

Packet Size : 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.

Page 64: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 63 ]

vii. We will keep the following parameters constant Data Rate : 512 Kbps

Packet Size : 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.

Page 65: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 64 ]

viii. We will keep the following parameters constant Data Rate : 1 Mbps

Packet Size : 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.

Page 66: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 65 ]

CASE – II i. We will keep the following parameters constant Data Rate : 8 Kbps

Packet Size : 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.

Page 67: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 66 ]

ii. We will keep the following parameters constant Data Rate : 16 Kbps

Packet Size : 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.

Page 68: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 67 ]

iii. We will keep the following parameters constant Data Rate : 32 Kbps

Packet Size : 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.

Page 69: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 68 ]

iv. We will keep the following parameters constant Data Rate : 64 Kbps

Packet Size : 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.

Page 70: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 69 ]

v. We will keep the following parameters constant Data Rate : 128 Kbps

Packet Size : 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.

Page 71: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 70 ]

vi. We will keep the following parameters constant Data Rate : 256 Kbps

Packet Size : 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.

Page 72: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 71 ]

vii. We will keep the following parameters constant Data Rate : 512 Kbps

Packet Size : 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.

Page 73: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 72 ]

viii. We will keep the following parameters constant Data Rate : 1 Mbps

Packet Size : 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.

Page 74: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 73 ]

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.

Page 75: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 74 ]

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 iii) Data Rate Vs Throughput

ii) Data Rate Vs Transmission Time iv) Performance Analysis

Page 76: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 75 ]

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.

Page 77: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 76 ]

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 iii) Data Rate Vs Throughput

ii) Data Rate Vs Transmission Time iv) Performance Analysis

Page 78: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 77 ]

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.

Page 79: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 78 ]

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.

Page 80: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 79 ]

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.

Page 81: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 80 ]

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.

Page 82: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 81 ]

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

Page 83: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 82 ]

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.

Page 84: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 83 ]

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

Page 85: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 84 ]

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.

Page 86: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 85 ]

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.

Page 87: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 86 ]

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.

Page 88: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 87 ]

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.

Page 89: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 88 ]

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.

Page 90: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 89 ]

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.

Page 91: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 90 ]

Decryption window looks like as follows,

Click on Decrypt Button, to decrypt file.

Page 92: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 91 ]

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.

Page 93: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 92 ]

Receiver window looks like as follows,

Click on Decrypt Button to decrypt data.

Page 94: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 93 ]

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.

Page 95: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 94 ]

Receiver window looks like as follows,

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

Page 96: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 95 ]

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.

Page 97: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 96 ]

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.

Page 98: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 97 ]

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.

Page 99: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 98 ]

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

RJ-45SERVER1

NODE1

RJ-45NODE2

NODE3

RJ-45 RING TOPOLOGY RJ-45

TX

RX TX

RX

RX TX

RXTX

PC

PC

PC

PC

Page 100: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 99 ]

Star Topology

SERVER

RJ-45

RJ-45 RJ-45 RJ-45

NODE1 NODE2 NODE3

RXTX TX RXRX TX

RX TX

PC PC PC

PC

Page 101: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 100 ]

Bus Topology

BUS TOPOLOGY

SERVER

RJ-45

RJ-45

NODE1 NODE2

RJ-45 RJ-45

NODE3

RX TX

RX TX RX TX RX TX

PCPCPC

PC

Page 102: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 101 ]

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.

Page 103: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 102 ]

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.

Page 104: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 103 ]

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.

Page 105: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 104 ]

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.

Page 106: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 105 ]

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.

Page 107: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 106 ]

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.

Page 108: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 107 ]

Receiver window looks like as follows,

In Receiver window, enter Neighbour IP.

Page 109: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 108 ]

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.

Page 110: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 109 ]

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.

Page 111: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 110 ]

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.

Page 112: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 111 ]

Receiver window looks like as follows,

In Receiver window, enter Neighbour IP.

Page 113: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 112 ]

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,

Page 114: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 113 ]

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

Page 115: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 114 ]

DATA SIZE Vs TRANSMISSION TIME i. We will keep the following parameters constant Data Rate : 10 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 Data Size Vs Transmission Time can be viewed and printout can be taken.

Page 116: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 115 ]

ii. We will keep the following parameters constant Data Rate : 10 Mbps

Packet Size : 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.

Page 117: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 116 ]

DATA RATE Vs TRANSMISSION TIME i. We will keep the following parameters constant Data Rate : 10 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 Data Rate Vs Transmission Time can be viewed and printout can be taken.

Page 118: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 117 ]

ii. We will keep the following parameters constant Data Rate : 10 Mbps

Packet Size : 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.

Page 119: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 118 ]

DATA RATE Vs THROUGHPUT i. We will keep the following parameters constant Data Rate : 10 Mbps

Packet Size : 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

Page 120: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 119 ]

ii. We will keep the following parameters constant Data Rate : 10 Mbps

Packet Size : 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

Page 121: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 120 ]

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.

Page 122: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 121 ]

ii. We will keep the following parameters constant Data Rate : 5.0 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

Page 123: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 122 ]

iii. We will keep the following parameters constant Data Rate : 7.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

Page 124: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 123 ]

iv. We will keep the following parameters constant Data Rate : 10 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

Page 125: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 124 ]

CASE II i. We will keep the following parameters constant Data Rate : 2.5 Mbps

Packet Size : 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.

Page 126: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 125 ]

ii. We will keep the following parameters constant Data Rate : 5.0 Mbps

Packet Size : 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

Page 127: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 126 ]

iii. We will keep the following parameters constant Data Rate : 7.5 Mbps

Packet Size : 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

Page 128: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 127 ]

iv. We will keep the following parameters constant Data Rate : 10 Mbps

Packet Size : 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

Page 129: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 128 ]

Receiver From the menu bar, select Ethernet Trainer -> Stop and Wait -> Receiver. The Stop and Wait Receiver window is as shown below

Page 130: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 129 ]

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,

Page 131: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 130 ]

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

Page 132: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 131 ]

Receiver From the menu bar, select Ethernet Trainer -> Go Back n -> Receiver. The Go Back N Receiver window is as shown below

Page 133: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 132 ]

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,

Page 134: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 133 ]

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

Page 135: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 134 ]

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

Page 136: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 135 ]

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.

Page 137: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 136 ]

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

Enter Neighbour IP field.

Page 138: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 137 ]

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.

Page 139: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 138 ]

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

Enter Neighbour IP field.

Page 140: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 139 ]

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

Page 141: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 140 ]

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.

Page 142: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 141 ]

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

Page 143: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 142 ]

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

Page 144: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 143 ]

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.

Page 145: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 144 ]

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

Page 146: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 145 ]

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.

Page 147: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 146 ]

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.

Page 148: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 147 ]

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

Page 149: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 148 ]

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.

Page 150: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 149 ]

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.

Page 151: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 150 ]

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

Page 152: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 151 ]

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.

Page 153: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 152 ]

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

Page 154: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 153 ]

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.

Page 155: Vi-RtSim

Vi-RtSim

Vi Microsystems Pvt. Ltd., [ 154 ]

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.