Ioe Assignment5

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

IOE ASSIGNMENT 5

AIM: To perform UDP client server communication simulation using Contiki


Cooja simulator.

THEORY:
User Datagram Protocol (UDP) is a communications protocol that is primarily
used to establish low-latency and loss-tolerating connections between
applications on the internet. UDP speeds up transmissions by enabling the
transfer of data before an agreement is provided by the receiving party. As a
result, UDP is beneficial in time-sensitive communications, including voice
over IP (VoIP), domain name system (DNS) lookup, and video or audio
playback.UDP is an alternative to Transmission Control Protocol (TCP). Both
UDP and TCP run on top of IP and are sometimes referred to as UDP/IP or
TCP/IP. However, there are important differences between the two. For
example, UDP enables process-to-process communication, while TCP supports
host-to-host communication.
REQUIREMENTS: Vmware (Virtual Environment), Contiki cooja simulator

PROCEDURE:
1) Open Vmware.
2) Open Contiki Cooja from the Vmware.
3) When asked for password enter it as “user”.
4) Create new simulation from file menu. The network window will appear.
5) From motes option add mote for udp server → sky mote→contiki3.0→
examples→ipv6 → rpl-udp → udp-server.c
6) Clean, compile and create.
7) Enter the number of required motes and add motes.

8) Repeat above steps to create udp client → rpl-udp udp-client.c (10 motes)
From motes option add mote for udp client → sky mote→contiki3.0→
examples→ipv6 → rpl-udp → udp-client.c
9) Check all required specifications for the motes from view menu.

10) Keep the clients close to the server.


11) Start and run the simulations.
OUTPUT:

CONCLUSION:
We have successfully learned the basics of UDP client-server communication
and hence performed simulation for the same using Contiki Cooja.

You might also like