TCP vs UDP Crash Course

Поделиться
HTML-код
  • Опубликовано: 7 фев 2025

Комментарии • 473

  • @hnasr
    @hnasr  2 года назад +7

    Get my fundamentals of networking engineering udemy course head to network.husseinnasser.com for a discount coupon

  • @jeronlloyd4703
    @jeronlloyd4703 5 лет назад +216

    You have taught me 2 semester worth of knowledge in a few hours !!! Thanks for your long videos...love your work

    • @hnasr
      @hnasr  5 лет назад +29

      Jeron Lloyd thanks Jeron for taking the time and leaving a comment. Really genuinely happy that I could help. Cheers !

    • @aryankumar87771
      @aryankumar87771 2 года назад

      same for me

    • @newbie8051
      @newbie8051 6 месяцев назад

      Damnm, you guys study networking for 2 semesters
      Most undergrad programs I know of only have a single subject of "Computer Netwoks" in the sophomore year...

  • @shahrukh49
    @shahrukh49 4 года назад +41

    Nobody in the history of mankind has ever explained tcp and udp this perfect way. Thanks.

  • @ssreejit3674
    @ssreejit3674 4 года назад +33

    Great video as usual. 33:51 The reason you got 3 byte is because you piped "hi
    " and in the TCP example it was "hi
    " as it was sent by pressing enter in the terminal. 13 is the ascii number for carriage return
    and 10 is the ascii number for newline feed
    .

    • @Mastermind-pz9eu
      @Mastermind-pz9eu 2 года назад +3

      It’s usually a windows vs unix thing. I believe that it happens because different tools were used for sending data. And they just adhere to different standards.
      The logic behind having “/r/n” is related to printers. This way you could send all file characters to the printer and it would know to go back to the left and drop to a new line. Unix (or at least the modern ones) says that it’s redundant and just rolls with “/n”.
      Sometimes this can cause weird git commit if the developers don’t stick to the same new line encoding and may even cause python scripts to malfunction on different systems.

  • @ManhPham-fh6on
    @ManhPham-fh6on 2 месяца назад +1

    I'm currently at your fifth video in Backend Engineering Playlist. Really appreciate your contents. You're doing wonderful things.

    • @hnasr
      @hnasr  26 дней назад +1

      glad its useful!

  • @Maniac-007
    @Maniac-007 2 года назад +4

    I am a software engineer (backend dev primarily) for almost 2 years now. kinda got interested in the DevOps field lately and these videos are a refresher. Very well explained and I hope that others will benefit from it too. Thank you so much Nasser for your time and effort into creating videos for the 'Backend Engineering' series

  • @vimalmunjani
    @vimalmunjani 4 года назад +1

    This is my first comment on RUclips in life. This guy's humor and teaching skills are exceptional. GREAT CONTENT

    • @hnasr
      @hnasr  4 года назад +1

      I am honored to receive your first comment 😊 thank you so much for taking the time to watch. Glad you liked the content

    • @vimalmunjani
      @vimalmunjani 4 года назад +1

      @@hnasr Hi, I see you are bit of a nodejs enthusiast too. It would be great to have a "Hussien Nasser" style video of under the hoods of node, specially event loop, libuv and related internals. Just a thought.

  • @iftekharuddin
    @iftekharuddin 2 года назад

    It's like a friend is telling a story around the campfire somewhere in Mt. Shashta/NorCal and everyone is listening intently. Thanks Hussein.

  • @AbandonedVoid
    @AbandonedVoid 4 года назад +13

    I highly appreciate that you go in-depth on these subjects. It really helps me to retain information when I have the full context behind it.

  • @sirpeace_coding
    @sirpeace_coding 11 месяцев назад

    For anyone like me who struggles to understand low level fundamentals of modern software engineering - your channel is a splendid place! Thanks so much Hussein for your hard work!

  • @ebukaegbunam8716
    @ebukaegbunam8716 3 года назад +1

    You are making me a backend engineer
    I will send you a check when i get a job soon

  • @glenfernandes5248
    @glenfernandes5248 2 года назад +2

    Best video for some one who is just getting into software engineering. Love the long video format upto 40mins-1hr. Thanks a lot Hussein Nasser, you are a great teacher. Please keep adding more content!

  • @dylanroberts4577
    @dylanroberts4577 3 года назад +2

    Loved the video! Thanks, my networking prof was very boring so I skimmed these topics just to pass the course. Now that I've interviewing for backend engineering positions at large companies, all the gaps in my knowledge is coming back to bite me in the ass! Your videos are great and are really helping me go over topics that I haven't thought about for a while / barely learned. Thank you for making these, it is literally directly influencing my life. Thanks again!

  • @newtonsarr1234
    @newtonsarr1234 4 года назад +5

    Honestly dude, I have been looking more into your tutorials and this stuff is just amazing. Love how you keep it with minimal code while demonstrating understanding for the basic concepts. Genius...I AM A FAN OF YOURS NOW.

  • @MonikaImbibe
    @MonikaImbibe Год назад

    I have become your fan. I have been trying to learn backend for 3 years and every time the topic came up - I procrastinated, ended up honing my skills at front-end, UI, design etc.etc. Not only your videos are so explanatory but you have made the topic so interesting that a beginner like me can truly enjoy it, would want to sneak deep into it. Thank you so much.

    • @hnasr
      @hnasr  Год назад

      appreciate it dear thank you! all the best on your career

  • @AbhishekJaiswal608226
    @AbhishekJaiswal608226 3 года назад

    This is my first RUclips comment since I started watching RUclips which might be several years ago.
    I reached till the end and first time I understood the differences between TCP and UDP so clearly.
    Thanks for such crisp and detailed quality stuff

    • @hnasr
      @hnasr  3 года назад

      Thanks for watching! Glad you enjoyed the content

  • @Crucialzz
    @Crucialzz 3 года назад +1

    Newly hired backend SWE here, just letting you know I finished this video and watching your beginners backend engineering Playlist. I appreciate all the content you make.

  • @gamebiasee6417
    @gamebiasee6417 3 года назад

    Super video! I applauded for ₹100.00 👏👏

  • @mtushar
    @mtushar 2 года назад

    Hey Hussein, I reached the end! This was a truckload of reliable and deep knowledge for something I suck at right now. Thank you for your content as always, big fan and evangelist here :)

  • @dankman7603
    @dankman7603 4 года назад

    I've reached the end and am now going back to The Complete Guide to WebSockets
    .
    You make back end easy to understand, thank you.

    • @hnasr
      @hnasr  4 года назад

      Thanks for watching! Hope you are enjoying the content , take your time and ask questions ❤️

  • @kartheeque
    @kartheeque 5 месяцев назад

    Great video. This is the first time I have ever understood TCP and UDO properly. Beautifully explained.

  • @RK-xl2uq
    @RK-xl2uq 4 года назад +1

    reached the end, not sure why i saw your videos but they are addicting so i'll watch more in coming days :)

    • @hnasr
      @hnasr  4 года назад

      ❤️ thank you for watching

  • @mohamedgnana1705
    @mohamedgnana1705 2 года назад

    This was really one of the best videos I have seen on TCP and Udp. Thanks Hussein

  • @matts8911
    @matts8911 Год назад

    22:55 you had me laughing out loud 😂man, I recently found your channel and I want to say I really appreciate your videos and what you do, teaching us so much while also just sharing your thoughts and authentic self. You're helping tons of people and spreading positive energy, particularly in a community that doesn't have enough of it, imo. Thank you so much!!!!

  • @raffayhussain6717
    @raffayhussain6717 3 года назад

    My man's been on fire lately. I really appreciate this content. It feels wrong to consume it for free, it's so good.

  • @djsigmann
    @djsigmann 4 года назад +12

    Dude, I just wanna say thanks for the video, very informative and well structured. I'll admit, your accent can be a bit hard to follow at times but overall still coherent. looking forward to watching more of your content.

  • @elijahlair
    @elijahlair Год назад

    Reached to the end. Never knew you could build Servers in Nodejs for tcp and udp. Very insightful, Thanks

  • @IzzatBinAfiff
    @IzzatBinAfiff 5 лет назад +58

    "These exotic foreign hosts, man. They keep closing these connections, man!" 23:58 hahaha!

  • @devansuyadav6738
    @devansuyadav6738 2 года назад +2

    The best explanation to TCP and UDP through this video! Cannot emphasize how useful this was, in-depth, crisp and well-explained with examples 💯💯
    Gonna check out the entire playlist now 🙌

  • @mohammadhumayunkhan3642
    @mohammadhumayunkhan3642 3 года назад

    I wanna thank RUclips for recommending your video. Your style of teaching is addictive! 😃

  • @rodmajuelojr
    @rodmajuelojr 4 года назад

    Appreciate the long explanations. Shows how knowledgable you are with the topic, includes easy to understand examples and insights. Looking forward to more!

    • @rodmajuelojr
      @rodmajuelojr 4 года назад

      In the udp code test maybe 'w' means wait i dunno...

    • @hnasr
      @hnasr  4 года назад

      Thanks Rod for your message! Appreciate you

  • @karamjotsingh7479
    @karamjotsingh7479 3 года назад +1

    Your channel made backend engineering more fun for me. Your videos provide the best foundation to learn about a topic and set the path to dive deeper.

  • @RoryGaddin
    @RoryGaddin 3 года назад +6

    Thanks Hussein, you are a superb educator. Love the thoroughness in your videos. Even though I have been working as a developer in the industry for a number of years I always learn something new on this channel and it enriches my understanding of what the heck I'm trying to do. Keep up the great work!

  • @nuncapierdaslaclase3216
    @nuncapierdaslaclase3216 4 года назад +16

    Hey I reached until the end! This is amazing! THANK YOU!

    • @hnasr
      @hnasr  4 года назад +2

      nunca pierdas la clase thank you 😊 i am glad you enjoyed the video!!

  • @RomanFalcon13
    @RomanFalcon13 4 года назад +2

    I reached until the end, thanks for the long videos and all the insights!

  • @mehrshaddarvish2762
    @mehrshaddarvish2762 3 года назад +1

    you always say that your videos are too long, however my friends and I are your fan because we believe you explain essential and important sessions in short videos :)

  • @mridulverma1535
    @mridulverma1535 4 года назад +1

    love from all the engineers on this engineering day. Thankyou Hussein.

    • @mridulverma1535
      @mridulverma1535 4 года назад

      Also I reached till the end.

    • @hnasr
      @hnasr  4 года назад +1

      Sending love ❤️ back to all engineers

  • @gjuoun
    @gjuoun 4 года назад +7

    wow, I made it to the end! It refreshed my knowledge about UDP and TCP, thanks a lot!

    • @hnasr
      @hnasr  4 года назад

      Nice 👍

  • @zenocitium7114
    @zenocitium7114 4 года назад

    Man you are the GOAT! learn more from that JS code server stuff than all the hours put in before. Keep on teaching mate! Natural

  • @bajojohn
    @bajojohn 4 года назад +5

    Thanks for posting these. It’s really helpful. I’m taking an intro to networking course and these videos are are way better than the course material/lectures.

  • @bautistabuyatti6495
    @bautistabuyatti6495 Год назад

    Coming from the field of physics and wanting to understand everything to a deeper level, this is gold to start getting into networks eng!

  • @M0rdFustang
    @M0rdFustang 4 года назад +2

    One of the better explanations on this subject on RUclips, thanks

  • @andredias5061
    @andredias5061 3 года назад

    "There is one W in timeout" back end engineers truly speaks an other language
    Unbelievable work, if one day a get to teach at university I'll 100% try to be as good as you

  • @LifeRandomArchive
    @LifeRandomArchive 2 года назад

    Make a video long as long you want . I wanna understand everything in depth . Thank you so much for these videos .

  • @saifsalim6084
    @saifsalim6084 4 года назад +1

    I have written my networking paper by cramming all these and spitting out in the examination paper.
    But now after watching this video till end, I really learnt a lot.
    Looking forward to learn more. 😇

  • @protyaybanerjee5051
    @protyaybanerjee5051 3 года назад +1

    Love from India, Brother. Keep making longer videos. You are a mentor i wish i had access to in person

  • @mishrasidhant
    @mishrasidhant 4 года назад +11

    I'm thoroughly enjoying your explanations. They're invaluable! Much love, excited to watch your channel grow. Thank you!

  • @dabbopabblo
    @dabbopabblo 2 года назад

    God there's so much value in your videos, literally the most useful educational videos on RUclips

  • @abdourahman87
    @abdourahman87 11 месяцев назад

    Thank you so much husseine, I started my journey to be a software engineer inshaa Allah , and I can say your videos have being very helpful and has made me understand what happens under the hood.
    Allahuma barik 😊

  • @vladyslavkarpenko9372
    @vladyslavkarpenko9372 2 года назад

    Thank you Hussein 🤝 You had described a lot of stuff that rarely even discussed in the RUclips world.

  • @sudhirag
    @sudhirag 3 года назад

    Amazing stuff !!! I watched from start till the end in one sitting and not only this video but I do this for all of your videos. Keep posting, thanks.

  • @kurianbenoy2
    @kurianbenoy2 4 года назад +1

    Hey I reached until the end. Thanks and I am binge-watching your Backend playlist for beginners today

    • @hnasr
      @hnasr  4 года назад

      Enjoy 😊

  • @chaitanyaasati
    @chaitanyaasati 3 года назад

    I watched till last. Thank you for showing coding part of UDP and TCP both.

  • @ruslanvs
    @ruslanvs 2 месяца назад

    Thanks for this wonderful material! It would also be cool to see how Telnet actually found out that the connection was closed when you terminated the TCP server.

  • @sunshine-music
    @sunshine-music 2 года назад +2

    We need more teachers like you. @Hussein, Kindly start teaching to teachers especially of Institutes where faculties makes interesting lecture so boring. You are amazing 🙂 !

  • @ericlien86
    @ericlien86 2 года назад

    Gratefulness from Taiwan...really love your videos, can’t wait to watch the next one!

  • @Ryfibi
    @Ryfibi 4 года назад

    I reached until the end. And I think you do a good job explaining complex things in a NOT boring way. Cheers!

  • @shubhamsaxena587
    @shubhamsaxena587 4 года назад

    I just want to say, Absolutely love your videos. Also great point when you said your videos are long because you try to cover all information, I have seen 5 min TCP videos which don't explain anything. Keep up the good work

    • @hnasr
      @hnasr  4 года назад

      ❤️❤️ thank you

  • @ahmedtarek8792
    @ahmedtarek8792 4 года назад

    Even though I knew about TCP and UDP, I reached at the end of video. You represented it so nicely. Your videos are very entertaining, I don't really feel any learning stress.

  • @maryblessingumeh1320
    @maryblessingumeh1320 4 года назад +1

    I made it to the end and I am still going on to the next, thanks for the good work.

  • @amitkumargouda1768
    @amitkumargouda1768 Год назад

    You are really helping me in getting my CS fundamental correct.

  • @arbaztyagi123
    @arbaztyagi123 3 года назад

    Honestly man.. enjoying your explanation.. You channel have lots of lots of high quality content videos..I must watch all of them..I am sure I'm gonna do this.

  • @ProdbyZyruh
    @ProdbyZyruh 5 лет назад +1

    I love how long the videos they are. So much better than reading

    • @hnasr
      @hnasr  5 лет назад +2

      Thanks! I am glad you enjoy the length or the video, its very difficult to explain various related topics to clarify the main one in a short video.

  • @vamsishankar2825
    @vamsishankar2825 4 года назад

    I literally binged your channel and just subscribed now.. please make lot of longer videos with in depth explanations. Really liked your videos

  • @sadsorbet3897
    @sadsorbet3897 3 года назад

    I'm addicted to your tutorials, thanks

  • @lenkamoravcikova311
    @lenkamoravcikova311 3 года назад

    obligatory I reached until the end :D thanks for much for this and all of your videos!

  • @widyguilias3738
    @widyguilias3738 4 года назад +1

    I reach till the end, it's just make sense. Thanks for the video

  • @ashutoshdas3010
    @ashutoshdas3010 3 года назад

    Not boring at all, finished the whole video in a go

  • @sebantichandra9318
    @sebantichandra9318 3 года назад

    thank you so much! I can finally say I have a much clearer understanding of concepts like DOS, congestion control, acknowledgment than I did earlier by mindlessly going through all those videos and pages after pages of very difficult explanation.

  • @hardikawasthi6210
    @hardikawasthi6210 4 года назад

    Hey, I reached until the end ! The depth of your content is really amazing. Thanks for such amazing videos.

  • @jayjayma
    @jayjayma 4 года назад

    Made it to the end. Thanks. Your videos really help keep me awake during long drives.

  • @ardyjovi3414
    @ardyjovi3414 4 года назад +1

    Made it to the end lol
    Thanks for the video, man! Thought I lost a bunch of fundamentals and now trying to recollect it slowly and your vids help a lot!
    Anyway I think you should keep post the long video, it serves the right amount of info I guess. Nice one!
    Oh and maybe you can address what to learn next or some references to check out to after watching the vids, it might help some ppl who's just trying to learn step by step

    • @hnasr
      @hnasr  4 года назад +3

      Thanks Ardy! And good idea to what to learn next. I can use end screens for that or a playlist.
      I suggest the TCP 3 way handhake next ruclips.net/video/bW_BILl7n0Y/видео.html

    • @ardyjovi3414
      @ardyjovi3414 4 года назад

      @@hnasr Thank you!
      Yes and actually I watch your videos starting with the Backend Engineer Playlist, in order. If it's already in the right order then it's cool! 🙇

  • @engsalahmahmoud2418
    @engsalahmahmoud2418 4 года назад +4

    Hey I reached until the end! THANK YOU!

  • @junebug941
    @junebug941 2 года назад

    Thanks!

  • @shashikantsingh840
    @shashikantsingh840 3 года назад

    You are inspiring a ton of backend engineers . Having so much fun while going through your videos.Thanks a lot man:)

  • @juggernaut838
    @juggernaut838 4 года назад +2

    Great content Hussein. One tip, upload your videos at 1.25x, this will bring down the video length.

  • @pratikgaur21
    @pratikgaur21 3 года назад

    I reached until the end. Thanks for the effort to explain.

  • @anantsaini
    @anantsaini 4 года назад

    Well Hussein , it was nice but keep in mind we are beginner to the beginner. I felt many times in video that you are not explaining to the complete noob and some background knowledge is required other than your previous video. So thank you for these amazing videos but keep them simplified and detailed (no problem with lengthy videos). Always keep in mind that you are explaining these to complete noobs. Thank You.

    • @hnasr
      @hnasr  4 года назад

      Thanks for the feedback!

  • @coffeesoup
    @coffeesoup 4 года назад +1

    I reached until the end! Love your vids Hussein!

  • @duongcaomusic8062
    @duongcaomusic8062 4 года назад +1

    Hey, I reached until the end! Very useful! Thanks!

  • @thatfunkyduck
    @thatfunkyduck 4 года назад +5

    Great vid as always dude, just started liking each one and have subscribed!

  • @dhruvbhavsar1669
    @dhruvbhavsar1669 Год назад

    Hey Thanks so much! Really shows how much you put effort without expecting anything in return. Giving is a bliss❤

  • @julioenrique19
    @julioenrique19 4 года назад

    Reach until the end. I like your idea of explaining this theoretical and sometimes boring things with examples. I wish they would have done the same in my university. It makes your channel different. Keep it up!

    • @hnasr
      @hnasr  4 года назад +1

      So happy you like the content and I will keep them coming 😊 thanks for watching

  • @sdeske
    @sdeske 8 месяцев назад

    Very Good. Long videos are good. Packed with code and facts. Perfect.

  • @codingwithsmallsteps2878
    @codingwithsmallsteps2878 3 года назад

    Hey I reached till the end. I really enjoyed your video. You put a lot of efforts to understand the concepts. Thank you for this. Plus the examples you showed were like the cherry on the cake. :)

  • @shahlazulkarnine9628
    @shahlazulkarnine9628 3 года назад

    Hey Hussein, I reached the end. Love your tutorials, Thank you so so much!

  • @chandrakant2852
    @chandrakant2852 Год назад

    Superb explanation! Glad you are helping the community. Keep up the good work :)

  • @GuyjinBu
    @GuyjinBu Год назад

    Great video, learned a lot! Also very good sense of humor. Looking forward to learning more from your videos!

  • @embededmind418
    @embededmind418 Год назад

    Hey reached till end..! Really appreciate your effort mate :)

  • @j03Biz
    @j03Biz 4 года назад

    Watched through the whole thing to broaden my backend knowledge.

  • @AISynthetic
    @AISynthetic 5 лет назад +70

    HTTP which is stateless uses TCP/IP protocol. But TCP/IP is stateful. How does HTTP use TCP if one is stateless and protocol it uses is stateful?

    • @hnasr
      @hnasr  5 лет назад +127

      Great question! The implementation of HTTP itself is stateless, that is achieved by hiding the underlying TCP connection. Example you as an HTTP client do not have access to the stateful tcp connection, so if the connection broke, disconnected or the server just restarted etc.. the HTTP client will establish a new tcp connection without you knowing and it will work normally. This is also possible because HTTP is a request response system..
      However if you are a client that directly use a raw tcp connection ,and that tcp connection is closed or. the server got restarted. You are maintaining the state of the TCP connection and guess what its gone. Now your application state is “disconnected” so you are responsible to reestablish the connection yourself..
      back to the definition of stateless, if the state is gone the application should keep running.
      Hope that helps..

    • @AISynthetic
      @AISynthetic 5 лет назад +2

      @@hnasr Thanks for the reply. I now understand. 😊

    • @mukeshbisht2411
      @mukeshbisht2411 3 года назад +4

      Great question and great answer

    • @amsterdenko9854
      @amsterdenko9854 3 года назад +1

      Great stuff. I need watch all videos on this channel

    • @shubhammurarka6589
      @shubhammurarka6589 Год назад

      Great

  • @varunkmr19
    @varunkmr19 4 года назад +1

    Hey! I reached until the end. THANK YOU! for this amazing content.

    • @hnasr
      @hnasr  4 года назад

      You rock! thanks Varun!

  • @dhvanitpopat2952
    @dhvanitpopat2952 3 года назад

    Hey I reached until the end! This is amazing! THANK YOU! looking forward to learn more

  • @johnlynch5896
    @johnlynch5896 4 года назад +2

    Hey Hussein, thank you! I love your passion and your humility. Would love to sit down with you with coffee to discuss the vagaries of software engineering! After watching three of your videos, I am hooked!

  • @mohitdhingra27
    @mohitdhingra27 5 лет назад +5

    Great work man. I really like all of your videos. It really clears the concepts. Thanks for such a good work. #KeepBeingAwesome.

    • @hnasr
      @hnasr  5 лет назад

      mohit dhingra thanks Mohit! Appreciate it and glad I could help. Stay Awesome!

  • @shivampandey149
    @shivampandey149 3 года назад +1

    Hi! (this must be coming through a TCP connection) Yes, I reached the end.

  • @hooow23
    @hooow23 3 года назад

    Dude, I love the way you're teaching things, and how you demystify concepts and explain them in great details.
    I would really like to support your channel, so can you please guide me on how to do that !
    Good luck hussein, you're the best.

  • @shashikantpawar7069
    @shashikantpawar7069 3 года назад +1

    Great video ..I reached till the end ...Thank you 🙏🙏🙏.
    TCP used for database and UDP for DNS and gaming application..
    Can u show some realtime stuff abt how actually they use it ..just like the demo

  • @tuanvinhto1849
    @tuanvinhto1849 3 года назад +1

    Thanks for your video, it's very good to understand deeply about the network layer, now I can say I understand TCP/UDP and can make choice if needed later

  • @ronokdev
    @ronokdev 4 года назад +2

    As always SPOT ON !!
    Thank you for your hard work !!