Presentation is loading. Please wait.

Presentation is loading. Please wait.

Project Title: Establishing communication between the server and Envirobat using TCP/IP Presented by Apourva.P.

Similar presentations


Presentation on theme: "Project Title: Establishing communication between the server and Envirobat using TCP/IP Presented by Apourva.P."— Presentation transcript:

1 Project Title: Establishing communication between the server and Envirobat using TCP/IP Presented by Apourva.P

2 Currently, User Datagram Protocol (UDP) is used being used as the transport layer protocol to facilitate communication between the device and the server. The client side is programmed using Embedded C and the server side is programmed using Java network programming. My objective is to implement TCP/IP for communication between the device and the server. The following table shows some of the major differences between TCP and UDP and which protocol is preferred for a specific application :

3 Data is sent as a byte stream. Does not preserve message boundaries Data is forwarded as datagrams. Preserves message boundary Used in applications that require reliable transmission. Used where prompt delivery is more important than accurate delivery Transmission Control Protocol (TCP) User Datagram Protocol (UDP) Connection orientedConnectionless ReliableUnreliable Provides ordering of packetsDoes not provide ordering of packets Heavy weight and lower speed when compared with UDP. Lighter and faster. Preferred for two way communication Preferred for one way communication

4 One of the important factors to be considered during the implementation for TCP is the identification of message boundaries. UDP preserves message boundaries whereas TCP doesn’t. Eg : Send 3 packets -‘good’ ‘morning’ ‘everyone’ using UDP. Each of these is sent as a separate datagram. Each receive function call at the receiver will obtain each of these datagrams from the buffer. TCP however is a stream oriented protocol. It does not preserve message boundaries. The send and receive calls will send and obtain all the data in the buffer which may be more than one message or even a fraction of the message. Hence, we have to explicitly code the identification of message boundaries.

5 This is usually implemented in 3 ways: Send fixed sized packets. Use a delimiter to distinguish the message boundary. Prefix each message with the length of the message.

6 Thank you.


Download ppt "Project Title: Establishing communication between the server and Envirobat using TCP/IP Presented by Apourva.P."

Similar presentations


Ads by Google