The Backend Engineering Show with Hussein Nasser

Episode 95 - TCP vs UDP


Listen Later

 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. coming up

Code! 

https://github.com/hnasr/javascript_playground/tree/master/tcp

Jump Codes 🏷 

tcp pros cons(4:12)

Tcp demo (19:00)

Udp pros cons (24:25)

Udp demo (31:25)

Summary (35:40)

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

2:24 osi model tag 

14:20 stateful. S stateless video 

...more
View all episodesView all episodes
Download on the App Store

The Backend Engineering Show with Hussein NasserBy Hussein Nasser

  • 4.9
  • 4.9
  • 4.9
  • 4.9
  • 4.9

4.9

40 ratings


More shows like The Backend Engineering Show with Hussein Nasser

View all
Freakonomics Radio by Freakonomics Radio + Stitcher

Freakonomics Radio

32,267 Listeners

Software Engineering Radio - the podcast for professional software developers by team@se-radio.net (SE-Radio Team)

Software Engineering Radio - the podcast for professional software developers

273 Listeners

Risky Business by Patrick Gray

Risky Business

373 Listeners

Science Vs by Spotify Studios

Science Vs

12,172 Listeners

Syntax - Tasty Web Development Treats by Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

Syntax - Tasty Web Development Treats

990 Listeners

Darknet Diaries by Jack Rhysider

Darknet Diaries

8,108 Listeners

Practical AI by Practical AI LLC

Practical AI

212 Listeners

Within Reason by Alex J O'Connor

Within Reason

1,659 Listeners

All-In with Chamath, Jason, Sacks & Friedberg by All-In Podcast, LLC

All-In with Chamath, Jason, Sacks & Friedberg

10,224 Listeners

Dwarkesh Podcast by Dwarkesh Patel

Dwarkesh Podcast

551 Listeners

Big Technology Podcast by Alex Kantrowitz

Big Technology Podcast

513 Listeners

Hard Fork by The New York Times

Hard Fork

5,546 Listeners

The AI Daily Brief: Artificial Intelligence News and Analysis by Nathaniel Whittemore

The AI Daily Brief: Artificial Intelligence News and Analysis

662 Listeners

Prof G Markets by Vox Media Podcast Network

Prof G Markets

1,471 Listeners

The Pragmatic Engineer by Gergely Orosz

The Pragmatic Engineer

74 Listeners