cisco Ccna- Networking Fundamentals-TCP and UDP (2024)

1.1. TCP and UDP

Two types of Internet Protocol (IP) are Transmission Control Protocol (TCP) and UserDatagram Protocol (UDP). TCP is connection oriented and data can be sent bidirectional afterestablishment of a connection. UDP is a simpler, connectionless Internet protocol. Multiplemessages are sent as packets in chunks using UDP. TCP uses sequence numbers for tracking thereceipt of the packets at the destination. UDP is more like a telegram, and any packets that doesnot arrive at the destination can not be determined. This function has to be done by theapplication layer (or higher level protocols). Hence, it (UDP) is also known as connectionlessprotocol. A detailed comparison of both TCP and UDP protocols is given below

TCPUDP
Suitability Suitable for applications that require high reliability, and not very critical of transmission delays. Suitable for applications that need fast, efficient transmission, such as games. UDP's stateless nature is also useful for servers that answer small queries from a large numbers of clients.
Use by protocols HTTP, HTTPs, FTP, SMTP, Telnet DNS, DHCP, TFTP, SNMP, RIP, VOIP.
Ordering of data packets TCP rearranges data packets in the order specified. UDP has no inherent order as all packets are independent of each other. If ordering is required, it has to be managed by the application layer.
Speed and reliability The speed for TCP is slower than UDP. When using TCP, any missing packets are retransmitted. TCP guarantees packet delivery and hence more reliable. UDP is faster because error recovery is not attempted. It is a "best effort" protocol. There is no guarantee that a packet is received at the destination and hence less reliable than TCP.
Header Size TCP header size is 20 bytes UDP Header size is 8 bytes.
Common Header Fields Source port, Destination port, Check Sum
Source port, Destination port, Check Sum
Streaming of data Data is read as a byte stream, no distinguishing indications are transmitted to signal message (segment) boundaries. Packets are sent individually and are checked for integrity only if they arrive. Packets have definite boundaries which are honored upon receipt, meaning a read operation at the receiver socket will yield an entire message as it was originally sent.
Connection Setup TCP requires three packets to set up a socket connection, before any user data can be sent. UDP is lightweight. There is no ordering of messages, no tracking connections, etc. It is a small transport layer designed on top of IP.
Data Flow Control TCP does Flow Control. TCP requires three packets to set up a socket connection, before any user data can be sent. TCP handles reliability and congestion control. UDP does not have an option for flow control
Error Checking TCP does error checking and error recovery. Erroneous packets are retransmitted from the source to the destination. UDP does error checking but simply discards erroneous packets. Error recovery is not attempted.
Fields 1. Sequence Number, 2. AcK number, 3. Data offset, 4. Reserved, 5. Control bit, 6. Window, 7. Urgent Pointer 8. Options, 9. Padding, 10. Check Sum, 11. Source port, 12. Destination port 1. Length, 2. Source port, 3. Destination port, 4. Check Sum
Acknowledgement Acknowledges segments No Acknowledgment
Handshake SYN, SYN-ACK, ACK No handshake (connectionless protocol)
cisco Ccna- Networking Fundamentals-TCP and UDP (2024)
Top Articles
Comporium Help Center
Places like Costa Rica: 9 Alternatives to Visit
Warren Ohio Craigslist
AllHere, praised for creating LAUSD’s $6M AI chatbot, files for bankruptcy
Kathleen Hixson Leaked
Restored Republic January 20 2023
Best Big Jumpshot 2K23
Nco Leadership Center Of Excellence
Chambersburg star athlete JJ Kelly makes his college decision, and he’s going DI
9192464227
Prosper TX Visitors Guide - Dallas Fort Worth Guide
7.2: Introduction to the Endocrine System
Bank Of America Appointments Near Me
Craigslist - Pets for Sale or Adoption in Zeeland, MI
How to Watch Braves vs. Dodgers: TV Channel & Live Stream - September 15
Mndot Road Closures
2021 Tesla Model 3 Standard Range Pl electric for sale - Portland, OR - craigslist
Items/Tm/Hm cheats for Pokemon FireRed on GBA
Watch TV shows online - JustWatch
Craigslist Pets Sac
Radio Aleluya Dialogo Pastoral
Enterprise Car Sales Jacksonville Used Cars
Straight Talk Phones With 7 Inch Screen
Spectrum Field Tech Salary
Spoilers: Impact 1000 Taping Results For 9/14/2023 - PWMania - Wrestling News
Prestige Home Designs By American Furniture Galleries
Melissababy
Barber Gym Quantico Hours
Encore Atlanta Cheer Competition
Exl8000 Generator Battery
4 Times Rihanna Showed Solidarity for Social Movements Around the World
Tokyo Spa Memphis Reviews
Page 2383 – Christianity Today
Milwaukee Nickname Crossword Clue
Grave Digger Wynncraft
Chelsea Hardie Leaked
Myaci Benefits Albertsons
How Do Netspend Cards Work?
Diggy Battlefield Of Gods
October 19 Sunset
Wbli Playlist
Garrison Blacksmith's Bench
Maybe Meant To Be Chapter 43
Page 5662 – Christianity Today
Stafford Rotoworld
When His Eyes Opened Chapter 2048
Indio Mall Eye Doctor
Author's Purpose And Viewpoint In The Dark Game Part 3
Promo Code Blackout Bingo 2023
Star Sessions Snapcamz
Nfl Espn Expert Picks 2023
Latest Posts
Article information

Author: Manual Maggio

Last Updated:

Views: 5882

Rating: 4.9 / 5 (69 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Manual Maggio

Birthday: 1998-01-20

Address: 359 Kelvin Stream, Lake Eldonview, MT 33517-1242

Phone: +577037762465

Job: Product Hospitality Supervisor

Hobby: Gardening, Web surfing, Video gaming, Amateur radio, Flag Football, Reading, Table tennis

Introduction: My name is Manual Maggio, I am a thankful, tender, adventurous, delightful, fantastic, proud, graceful person who loves writing and wants to share my knowledge and understanding with you.