udp & tcp
DESCRIPTION
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!. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: UDP & TCP](https://reader033.vdocuments.us/reader033/viewer/2022061615/56815601550346895dc3c96c/html5/thumbnails/1.jpg)
UDP & TCPUDP & TCP
BS IT 4th SemesterBy: Muhammad Hanif
User Datagram ProtocolUser Datagram Protocol&&
Transmission Control ProtocolTransmission Control Protocol
![Page 2: UDP & TCP](https://reader033.vdocuments.us/reader033/viewer/2022061615/56815601550346895dc3c96c/html5/thumbnails/2.jpg)
Quote of the day……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!
![Page 3: UDP & TCP](https://reader033.vdocuments.us/reader033/viewer/2022061615/56815601550346895dc3c96c/html5/thumbnails/3.jpg)
Transport ProtocolsTransport 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
![Page 4: UDP & TCP](https://reader033.vdocuments.us/reader033/viewer/2022061615/56815601550346895dc3c96c/html5/thumbnails/4.jpg)
UDPUDP
BS IT 4th SemesterBy: Muhammad Hanif
User Datagram User Datagram ProtocolProtocol
![Page 5: UDP & TCP](https://reader033.vdocuments.us/reader033/viewer/2022061615/56815601550346895dc3c96c/html5/thumbnails/5.jpg)
Position of UDP in the Position of UDP in the TCP/IP protocol suiteTCP/IP protocol suite
![Page 6: UDP & TCP](https://reader033.vdocuments.us/reader033/viewer/2022061615/56815601550346895dc3c96c/html5/thumbnails/6.jpg)
User Datagram ProtocolUser Datagram ProtocolUDP is an end-to-end or transport
protocol that allows an application program to serve as the end-point of communication
![Page 7: UDP & TCP](https://reader033.vdocuments.us/reader033/viewer/2022061615/56815601550346895dc3c96c/html5/thumbnails/7.jpg)
UDP CharacteristicsUDP CharacteristicsEnd-to-endConnectionlessMessage-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-manyE.g. Internet Telephony,
Conference Call
![Page 8: UDP & TCP](https://reader033.vdocuments.us/reader033/viewer/2022061615/56815601550346895dc3c96c/html5/thumbnails/8.jpg)
UDP FormatUDP Format
![Page 9: UDP & TCP](https://reader033.vdocuments.us/reader033/viewer/2022061615/56815601550346895dc3c96c/html5/thumbnails/9.jpg)
UDP Format DetailUDP 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 TCP port 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.
![Page 10: UDP & TCP](https://reader033.vdocuments.us/reader033/viewer/2022061615/56815601550346895dc3c96c/html5/thumbnails/10.jpg)
Encapsulation and Encapsulation and DecapsulationDecapsulation
![Page 11: UDP & TCP](https://reader033.vdocuments.us/reader033/viewer/2022061615/56815601550346895dc3c96c/html5/thumbnails/11.jpg)
TCPTCP
BS IT 4th SemesterBy: Muhammad Hanif
Transmission Transmission Control ProtocolControl Protocol
![Page 12: UDP & TCP](https://reader033.vdocuments.us/reader033/viewer/2022061615/56815601550346895dc3c96c/html5/thumbnails/12.jpg)
Quote of the day……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.
![Page 13: UDP & TCP](https://reader033.vdocuments.us/reader033/viewer/2022061615/56815601550346895dc3c96c/html5/thumbnails/13.jpg)
Position of TCP in the Position of TCP in the TCP/IP protocol suiteTCP/IP protocol suite
![Page 14: UDP & TCP](https://reader033.vdocuments.us/reader033/viewer/2022061615/56815601550346895dc3c96c/html5/thumbnails/14.jpg)
TCP FeaturesTCP FeaturesReliable, in-order delivery (TCP)
◦Connection Oriented◦Discarding of corrupted packets◦Retransmission of lost packets◦Flow control
![Page 15: UDP & TCP](https://reader033.vdocuments.us/reader033/viewer/2022061615/56815601550346895dc3c96c/html5/thumbnails/15.jpg)
Establishing a TCP Establishing a TCP ConnectionConnectionThree-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 an ACK to acknowledge the SYN ACK
![Page 16: UDP & TCP](https://reader033.vdocuments.us/reader033/viewer/2022061615/56815601550346895dc3c96c/html5/thumbnails/16.jpg)
TCP segment formatTCP segment format
![Page 17: UDP & TCP](https://reader033.vdocuments.us/reader033/viewer/2022061615/56815601550346895dc3c96c/html5/thumbnails/17.jpg)
Control FieldsControl Fields