Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
TCP vs UDP Crash Course
Play lesson

Backend Engineering (Beginner) - TCP vs UDP Crash Course

5.0 (3)
28 learners

What you'll learn

This course includes

  • 14.5 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

TCP and UDP are communication protocols that allows us to send and receive data in a network. We have both for a reason since each has its advantages and disadvantages. In this video we will talk about two protocols, pros and cons of each one and will write tcp and udp server with nodejs showing you these in ACTION. We also talk about how reliable udp is used in gaming for intermitted network connection. Code! https://github.com/hnasr/javascript_playground/tree/master/tcp Jump Codes 🏷 0:00 Intro 04:12 TCP pros cons 19:00 Tcp demo (code) 24:25 UDP pros cons 31:25 UDP demo (code) 35:40 Summary Explain TCP Pros: acknolwedgment, garenteed delivery, connection based congestion control ordered packets Cons Larger packets More bandwidth since more headers. Slower (because of retransmission) stateful once connection is lost its lost, cannot resume it. TCP Example (Code) telnet 127.0.0.1 8080 Explain UDP Pros Statless, Less bandwidth smaller packets Faster to transmit Cons no ack, no garenteed delivery, no congestion control no ordered packets UDP client echo "foo" | nc -w1 -u 127.0.0.1 41234 Stay Awesome! Hussein

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere