1 / 17

UDP & TCP

UDP & TCP. BS IT 4 th Semester By: Muhammad Hanif. User Datagram Protocol & Transmission Control Protocol. Quote of the day……. Many of life's failures are people who did not realize how close they were to success when they gave up. ~Thomas Edison Have a blessed day!.

maylin
Download Presentation

UDP & TCP

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. UDP & TCP BS IT 4th Semester By: Muhammad Hanif User Datagram Protocol & Transmission Control Protocol

  2. Quote of the day…… • Many of life's failures are people who did not realize how close they were to success when they gave up. • ~Thomas Edison Have a blessed day!

  3. Transport Protocols • Provide logical communication between application processes running on different hosts • Run on end hosts • Sender: breaks application messages into segments, and passes to network layer • Receiver: reassembles segments into messages, passes to application layer • Multiple transport protocol available to applications • Internet: TCP and UDP

  4. UDP BS IT 4th Semester By: Muhammad Hanif User Datagram Protocol

  5. Position of UDP in the TCP/IP protocol suite

  6. User Datagram Protocol • UDP is an end-to-end or transport protocol that allows an application program to serve as the end-point of communication

  7. UDP Characteristics • End-to-end • Connectionless • Message-oriented • Each UDP message must fit within one IP datagram • UDP message can be lost, duplicated, or corrupted • Suitable for applications that can tolerate delivery errors • One-to-one, one-to-many • E.g. Internet Telephony, Conference Call

  8. UDP Format

  9. UDP Format Detail • Source Port/Destination Port: A port Virtual circuit between two communicating processes on two different computers or devices • The source port is the port on the sending device. • The destination port is a TCPport on a receiving device that corresponds with the source port on the sending device • Length: contains information about the length of the frame • Checksum: This field is used to detect errors over the entire user datagram (header plus data). • Placed in the frame by the sending station. • The recipient also calculates the checksum and compares its calculation with the value in the checksum field.

  10. Encapsulation and Decapsulation

  11. TCP BS IT 4th Semester By: Muhammad Hanif Transmission Control Protocol

  12. Quote of the day…… • Be noble minded! Our own heart, and not other men's opinions of us, forms our true honor. • - Johann Friedrich • Johann Friedrich was a German anatomist.

  13. Position of TCP in the TCP/IP protocol suite

  14. TCP Features • Reliable, in-order delivery (TCP) • Connection Oriented • Discarding of corrupted packets • Retransmission of lost packets • Flow control

  15. Establishing a TCP Connection • Three-way handshake to establish connection • Host A sends a SYN (open) to the host B • Host B returns a SYN acknowledgment (SYN ACK) • Host A sends anACK to acknowledge the SYN ACK

  16. TCP segment format

  17. Control Fields

More Related