Vous êtes sur la page 1sur 52

EX.

NO: 1

DATE:
PC TO PC COMMUNICATION (PARALLEL)

AIM:
To study the data transfer through parallel communication using parallel port(LPT) between
two PCs.
APPARATUS REQUIRED:
Serial and Parallel interface card
RS232 Cables
Computers with Vi Rt Sim
Patch cords

PROCEDURE:
a. From the menu bar, select Serial and Parallel communication Parallel cable
b. Open data encryption in client side and data decryption in server side.
c. Choose any one of the LPT port like LPT1, LPT2 and LPT3. Then click on Communication
Tab. Another page will be displayed.
d. In that page, enter data in Data to be send field and click on Send Button.
e. The data will be received by the received by the receiver side.
f. To close dialog window, click on Quit button.

BLOCK DIAGRAM:

RESULT
3

Implemented and studied the data transfer through parallel communication using parallel port
(LPT) between two PCs.

EX.NO: 2

DATE:
PC TO PC COMMUNICATION (SERIAL)

AIM :
To study file transfer through serial communication using RS 232 between two PCs.

APPARATUS REQUIRED :
1. Serial interface
2. RS 232 cables
3. Computers with Vi-Rtsim
4. Patch cords

PROCEDURE :
TRANSMITTER :
1. From the menu bar select the SERIAL AND PARALLEL COMMUNICATIONRS
232file transfer transmitter.
2. Click CONNECT in RS 232 file transfer window.
3. Click on COMMUNICATION in RS 232 file transfer window.
4. Browse the file to be transferred from the window appeared.
5. Click SEND FILE.
6. FILE SENT SUCCESSFULLY will be displayed.

RECEIVER :
1. From the menu bar select SERIAL and PARALLEL COMMUNICATIONRS 232
filereceiver.
2. Click CONNECT in RS 232 file transfer window.
3. Click on COMMUNICATION RS 232 file transfer window.
4. Click whether the RECEIVER IS LISTENING message is displayed on the screen.
5. A separate window will be opened to save the file and specify the file name and save.

6. In the receiver side byte will be received in the receiver side.


7. FILE RECEIVING COMPLETED message will be displayed.

BLOCK DIAGRAM:

RESULT :
Thus the study of file transfer through serial and parallel communication using RS 232
between two PCs is completed successfully and the output is verified.

EX.NO:

DATE:
IMPLEMENTATION AND STUDY OF CSMA/CD PROTOCOL

AIM:
To implement and study the CSMA\CD protocol.

APPARATUS REQUIRED:
1. PCs with Ethernet Adapter cord.
2. RJ-45 LAN connecting cable.
3. VILAN-08 LAN trainer kit.
4. Vi-Rtsim network simulator software.

PROCEDURE:
1. Keep the EXEC\PROG in the trainer kit in program mode.
2. From the menu bar click UTILITIES and select ARM DOWNLOADER.
3. A new window FLASH MAGIC will open.
4. Click BROWSE select CSMA CD.hex file and open it.
5. Click on START.
6. Hex file starts to download.
7. Open IMPACT icon from the desktop.
8. Right click the MOUSE above the XILINK module and select assign new configuration.
9. A new window will be opened from that select CSMA-CD.bit file and open it.
10. Right click on XILINK module and select program.

11. A separate window will be opened from that select FPGA device specific programming
and click OK.
12. PROGRAM SUCCEEDED message will be displayed.
13. In the Vi-Rtsim window select OSI LAN trainer from the menu bar.
14. Select CSMA-CD.
15. A new window will be opened.
16. Set time as <100ms.
17. In the data option type the data to be transferred from source node2 and source node3.
18. In the trainer kit change the EXEC\PROG switch to the execution mode.
19. Press the ARST push button switch.
20. In the window click CONNECT option.
21. Click START end.

BLOCK DIAGRAM:

10

11

RESULT :
Thus the study and implementation of CSMA\CD is completed successfully and the output
is verified.

BLOCK DIAGRAM (TOKEN BUS):

12

BLOCK DIAGRAM (TOKEN RING):

13

EX.NO:4

DATE:
IMPLEMENTATION AND STUDY OF TOKEN BUS AND TOKEN RING

AIM :
To create scenario and study the performance of token bus using simulation.

APPARATUS REQUIRED :
1. PCS with Ethernet adapter.
2. RJ-45 LAN connecting cable.
3. Vi-LAN 03 trainer kit.
4. Vi-Rtsim network simulation software.

PROCEDURE (TOKEN BUS) :


1. Keep the EXEC\PROG in the trainer kit in PROG mode.
2. From the menu bar,clickUTILITIES select ARM DOWNLOADER.
3. A new window FLASH MAGIC will open.
4. Click BROWSE select TOKEN BUS.hex file and open it.
5. Clickon START.
6. Hex file starts to download.
7. Open IMPACT ITEM from the desktop.
8. Right click the mouse above the XILINX module and select ASSIGN
NEWCONFIGURATION.
9. A new window will be opened from that select CSMA, TOKEN BUS bit,
10. Right click on XILINX module and select it.
11. A separate window will be opened from that select FPGA device specific programming
activities.
12. Click OK button.
13. PROGRAM SUCCEEDED message will be displayed.
14. In the trainer Vi-Rt simulator select OSI LAN trainer.
15. Select TOKEN BUS.
16. In the trainer kit change EXEC\PROG mode.
17. Click on CONNECT.
18. In the next step click PING option.
14

19. Click CAPTURE and enter the destination.


20. Enter the data to be sent and click START.

15

PROCEDURE (TOKEN RING):


1. Keep the EXEC\PROG in PROG mode in the trainer kit.
2. From the menu bar click UTILITIES and select ARM DOWNLOADER.
3. A new window FLASH MAGIC will open.
4. Click on BROWSE and select CSMA, TOKEN RING-Hex file and open it.
5. Click on START.
6. Hex file starts to download.
7. Open IMPACT icon from desktop.
8. Right click the mouse above the XILINX module and select ASSIGN
NEWCONFIGURATION.
9. Anew window will be opened from that select CSMA, TOKEN RING bit file and open it.
10. Right click on XILINX module and select it.
11. A separate window is opened from that, select FPGA device specific programming
properties.
12. PROGRAM SUCCEEDED MESSAGE will be displayed.
13. In the trainer kit change the EXEC\PROG switch to execution mode.
14. Press the ARST switch button switch.
15. In the Vi-Rt simulator,select OSI LAN transfer from the menu bar.
16. Select TOKEN RING.
17. A new window will be opened.
18. In that window,select CONNECT option.
19. Select CHAPTER 1\2\3 as a new window for entering the destination.
20. In the enter destination mode no 2\3\4 opened for entering the data.
21. In that enter data, click OK.
16

22. Acknowledgement message is displayed.

17

18

RESULT:
Thus the study and implementation of token bus and token ring is completed successfully
and the output is verified.

19

EX.NO:5

DATE:

STUDY OF CSMA/CA AND CSMA/CD PROTOCOL USING WIRELESS LAN


AIM:
To create scenario and study the performance of hardware with CSMA/CA protocol and compare
with CSMA/CD protocol using wireless LAN.
APPARATUS REQUIRED:

VIRtSim Network Simulator Software

D-LINK Software

Antenna

PC

PROCEDURE:
In the Transmitter and Receiver Side
1. Select the D-LINK SOFTWARE
2. In MY WIRELESS NETWORK click new and type profile name and SSID name transmitter1
and transmitter 2 should have same profile name and SSID name.
20

3. Click ADHOC and ok.


4. Click open NETWORK AND SHARING CENTER. Select the given profile name right click
and connect.
5. Now the network name is displayed in the d-link dialog box.
6. Open VIRTSIM in the system.
7. Click Ethernet LAN Trainer and select CSMA/CA or CSMA/CD.
8. Change the IP address of transmitter to the IP address of receiver
9. Change the data rate and click connect in the transmitter
10. Type the data in transmitter then click PING and send.
11. In the receiver transmitted data will be received.

21

22

RESULT
Thus the study and implementation of CSMA/CD and CSMA/CA protocol was completed
successfully and the output is verified.

23

EX.NO: 6

DATE:
IMPLEMENTATION AND STUDY OF STOP AND WAIT PROTOCOL

AIM:
To implement and study stop and wait protocol.
APPARATUS REQUIRED:
Vi-Rt sim network simulator software.
PROCEDURE:
1. In both the transmitter and receiver pcs select VI-RTSIM from the menu bar.
2. In the transmitter and receiver side
i.

Select ETHERNET LAN TRAINER click stop and wait.

ii.

Select transmitter in transmitter pc

iii.

Select receiver in receiver pc.


24

3. A new window will be open on both transmitter and receiver.


4. In transmitter side window enter the data in data to be send.
5. Click CONNECT.
6. In the receiver side the data will be received.
7. ACK will be received by transmitter from receiver.

25

26

RESULT:
Thus the implement and study of stop and wait protocol was completed successfully and output
verified.

27

EX.NO: 7

DATE:
IMPLEMENTATION AND STUDY OF GO BACK-N PROTOCOL

AIM:
To study Go back N protocol and to analyse the performance of this protocol using the
various parameters link speed inter packet delays etc.
APPARATUS REQUIRED:
1. Pc with Ethernet
2. ViLan-03 LAN Trainer kit.
3. Vi-Rt sim network simulator software.
28

PROCEDURE:
1. Keep the EXEC/PROG the trainer kit in program kit.
2. From the menubar click utilities select ARM downloader.
3. A new window FLASH MAGIC will open.
4. Click browser select GO BACK N HEX FILE.
5. Click on START.
6. Hex files starts to download.
7. Open IMPACT ICON form the desktop.
8. Right click the mouse above the Xilinx module and select assign new
configuration.
9. A new window will be opened form the select GO BACK N BIT FILE and open
it.
10. Right click on XILINX MODULE and select program.
11. A separate window will be opened from that select FPGA device specific
programming properties.
12. Click OK.
13. PROGRAM SUCCEEDED message will be displayed.
14. In the trainer kit change the EXEC/PROG switch to the execution mode.
15. Press the ARST push button switch.
16. In the VI-RTSIM window select OSI LAN trainer form the menu bar.
17. Select GO BACK N .
18. A new window will open.
19. Enter the data in and data to be sent.
20. Click ERROR OPTION.
21. In the trainer kit from the error generator select frame error.
22. Select the frame at which error has to introduced.

29

23. Suppose we are introducing error in the 17th bit then click the frame button for m
times and press enter.
24. Click PING and send option in the VI-RTSIM window.
25. The data will be send and ack will be received for 17-1 frames and NACK will be
received for the 17th frame.
26. Message saying that NAK for 17th frame will be display of press.
27. New from the plane of NAK the data will be retransmitted or resend again.
28. Message saying retransmission complete successfully will be display.

30

31

RESULT
Thus study and implementation of Go back N protocol was completed successfully and the output
was verified.

32

EX.NO:8

DATE:

IMPLEMENTATION AND STUDY OF SELECTIVE REPEAT PROTOCOL

AIM:
To implement and study of selective repeat protocol.
APPARATUS REQUIRED:
VI-RT SIM software (network simulator)
PROCEDURE:
1. In both the transmitter and receiver pcs select VI-RTSIM from the menu bar.
2. In the transmitter and receiver side
i. Select ETHERNET LAN TRAINER click selective repeat protocol.
ii. Select transmitter in transmitter pc
iii. Select receiver in reciver pc.
3. A new window will be open on both transmitter and receiver.
4. In transmitter side window enter the data in data to be send.
5. Click CONNECT.
6. In the receiver side the data will be received.
7. If there is any error is introduced in the 17th frame then error in 17th frame message will be
displayed.
8. Click OK.
33

9. The particular 17th frame will be retransmitted.

34

35

RESULT
Thus study and implementation of selective repeat was completed successfully and the output was
verified.

36

EX.NO: 9

DATE:

IMPLEMENTATION OF DISTANCE VECTOR ROUTING ALGORITHM

AIM:
To find the shortest path using Distance Vector Routing Algorithm
SOFTWARE REQUIRED:

PC WITH VI-RTSIM

PROCEDURE:
1. Open VI-RT SIM icon from the window
2. From the menu bar select SIMULATION select ROUTING ALGORITHM AND DISTANCE
VECTOR ROUTING
3. A new window bar for DISTANCE VECTOR ROUTING ALGORITHM will open.
4. Select any two nodes.
5. Click final path.
6. A new window to find the shortest path will open.
7. Click calculate.
37

8. Distance vector table and distance from a particular to all nodes will display.
9. Note down the values.
10. In the distance vector routing algorithm window note down the available paths.

OUTPUT

38

39

RESULT:
Thus the shortest path for the given network is found by using Distance Vector Routing Algorithm.

40

EX.NO: 10

DATE:
IMPLEMENTATION OF LINK STATE ROUTING ALGORITHM

AIM:To find the shortest path using Link State Routing.


SOFTWARE REQUIRED:

PC WITH VI-RT SIM

PROCEDURE:1. Open VI-RT SIM icon from the window.


2. From the menu bar click SIMULATION select ROUTING ALGORITHM and select LINK
STATE ROTING ALGORITHM
3. A new window for LINK STATE ROUTING will open.
4. Select any two nodes.
5. Click FIND PATH.
41

6. A new window for find shortest path will open.


7. Click calculate.
8. LINK STATE TABLE and distance from the particular node to all node will be displayed.
9. Note down the values.
10. In the LINK STATE ROUTNG WINDOW note down the available path.

OUTPUT

42

43

RESULT:
Thus the shortest path for given network is found by using link state routing algorithm

44

EX.NO:11

DATE:
IMPLEMENTATION OF DATA ENCRYPTION AND DECRYPTION

AIM:
To implement encryption and decryption algorithm.

APPARATUS REQUIRED:

Pc with Ethernet

ViLan-05 LAN Trainer kit.

Vi-Rt sim network simulator software.

PROCEDURE:
1. Keep the EXEC/PROG the trainer kit in program mode.
2. From the menubar click utilities select ARM downloader.
45

3. A new window FLASH MAGIC will open.


4. Click browser select ENCRYPTION AND DECRYPTION hex file and open it.
5. Click start.
6. Hex files starts to download.
7. Open impact icon from the desktop.
8. Right click the mouse above the Xilinx module and select assign new configuration.
9. A new window will be opened from that select encryption and decryption bit file
and open it.
10. Right click on Xilinx module and select program.
11. A separate window will be opened from that select FPGA device specific
programming properties.
12. Click OK.
13. program succeeded message will be displayed.
14. In the trainer kit change the EXEC/Prog switch to the execution mode.
15. Press the ARST push button switch.
16. In the Vi-Rtsim window select OSI LAN trainer form the menu bar.
17. Select encryption and decryption .
18. A new window will open for encryption and decryption
19. In that select comport as 1
20. Give the data to be sent
21. Give the keyword.
22. Click SEND, data will be displayed on the client 2 of trainer kit.
23. Click encrypt the code and encrypted data will be displayed on the CLIENT2 of
trainer kit
24. Give the same keyword used while encryption for decryption and click
DECRYPTION
25. In client2 of trainer kit the code and decrypted data will be displayed.
46

OUTPUT

47

RESULT:
Thus study of encryption and decryption was completed successfully and the output verified.

48

49

EX.NO:12

DATE:

TRANSFER OF FILES FROM PC TO PC USING WINDOWS/ UNIX SOCKET


PROGRAMMING
AIM:
To study transfer of file from PC to PC using window/unix socket programming.
APPARATUS REQUIRED:
Pc with LAN connection and CYGWIN software
PROCEDURE:
CLIENT PROGRAM:
1. Open CYGWIN SOFTWARE.
2. Enter the following commands one by one.
3. Cd -> enter
4. Ls -> enter
5. Cd file name -> enter
6. Ls socket -> enter
7. Cd socket ->enter
8. Gcc client.c any name ->enter
9. /give name password -> enter
10. Enter the message to send.
SERVER SIDE:
1. Open cygwin software.
2. Enter the texts one by one.
3. Cd -> enter
4. Ls -> enter
5. Cd filename -> enter
6. Ls socket ->enter
7. Cd socket -> enter
8. Gcc server.c any name -> enter
9. /give name same password given in client -> enter
10. Message will be displayed.

50

OUTPUT

SERVER:

CLIENT:

51

RESULT:
Thus the study of transfer of files from PC to PC using Windows / UNIX socket
programming was completed successfully and output verified.

52

Vous aimerez peut-être aussi