TCP vs UDP Explained // Hands On Lab Example with Wireshark

Поділитися
Вставка
  • Опубліковано 29 гру 2024

КОМЕНТАРІ • 81

  • @ChrisGreer
    @ChrisGreer  3 роки тому +11

    Every network engineer at some point will need to explain the difference between TCP and UDP, along with a few details about the protocol. Whether for a certification exam like the CCNA or Network+, or for a job interview.
    Let's keep it simple.
    In this video we will chat about the differences between TCP and UDP using this pcap example in Wireshark:
    Download and follow along - www.cloudshark.org/captures/af9dc6ba427a

  • @adkhansholeh
    @adkhansholeh 2 роки тому +8

    Hi Chris, I always enjoy your video. I sometimes have to explain about this two transport protocol to my students, cause I am a lecturer.
    My favourite way to explain this 2 protocol is to compare TCP with a phone call, and UDP with a mail delivery. A phone call can only be proceed if both parties agree for a conversation, that's implemented by dialing AND pick up the phone... So that's exactly the handshake in telephone system. Meanwhile, we can always send email and don't need to worry the state of the recipient. That's the point that mail delivery and UDP don't need initial or handshake process.

    • @ChrisGreer
      @ChrisGreer  2 роки тому +4

      Thanks for the comment! That is a great analogy.

    • @theanimepanda1819
      @theanimepanda1819 2 місяці тому +1

      studying for the CompTIA Network plus exam that actually a really good explanation that helped me understand a lot better thank you

  • @ranjanadissanayaka5390
    @ranjanadissanayaka5390 2 роки тому +2

    I'm studying for my CCNA. At the moment I'm learning about TCP vs UDP. So your video is very helpful. Those practical demonstrations are awesome. They help me to understand things better. Thanks man.

  • @thecowl626
    @thecowl626 2 роки тому +3

    Dude. You're so helpful and using wireshark to give examples is 🔥🔥

  • @amvj
    @amvj 3 роки тому +5

    You are a very good teacher. Thank you for the videos.

    • @ChrisGreer
      @ChrisGreer  3 роки тому +1

      Glad you like them! Thank you very much for the feedback!

  • @gupttura2766
    @gupttura2766 3 роки тому +7

    awesome work...it was straight forward and made sense. Thank you for doing this.

  • @jairunet
    @jairunet 3 роки тому +2

    Finally! explained simply and straight forward, and the wireshark capture is definitely an important bonus. Thank you so much! we need a similar video explaining IPsec protocol IKE and ESP please! and if the packet capture can be included even better. Until the next one!

    • @ChrisGreer
      @ChrisGreer  3 роки тому +1

      Glad it helps Jair! And thank you for the suggested videos as well. I'll see if I can add them to my list.

    • @ichigoofy
      @ichigoofy 2 роки тому +1

      @Chris Greer I agree, and how about this for even MORE fun, UDP across an IPsec tunnel and trying to troubleshoot dropped packets.

  • @sahukarinaveenkumar3188
    @sahukarinaveenkumar3188 3 роки тому

    No words to explain😍 Best thing is we are getting this valuable information for free of cost.

    • @ChrisGreer
      @ChrisGreer  3 роки тому +1

      Glad it helps you! Please share with anyone you think could benefit, like, and sub!

  • @gaKz.
    @gaKz. 3 роки тому +3

    really good video, thank you for the simple explanations and practical examples in wireshark!

    • @ChrisGreer
      @ChrisGreer  3 роки тому +1

      Thanks for the comment Angelo!

  • @Techtips200
    @Techtips200 3 роки тому +1

    Superb...a big fan of ur videos.

    • @ChrisGreer
      @ChrisGreer  3 роки тому +1

      Thanks for the comment and for stopping by the channel!

  • @TheLongerD
    @TheLongerD 2 роки тому +2

    Thanks for your time and dedication in doing this content, man! Clear and nicely presented!

    • @ChrisGreer
      @ChrisGreer  2 роки тому

      Thanks for the comment David!

  • @dareebenezer7
    @dareebenezer7 Рік тому

    Great explanation especially with the Wireshark example

  • @kallikantzaros
    @kallikantzaros 2 роки тому

    Thank you so much. I will check every video on TCP playlist on your channel. Your explanations are simple and can be grasped easily. Kudos Chris

  • @jasgarcha4783
    @jasgarcha4783 Рік тому

    Hey Chris, super video. Easy breakdown and simple to understand. Thank you👍.

  • @VideoJunkee
    @VideoJunkee 3 роки тому +2

    Awesome video. I’m stealing this…

    • @ChrisGreer
      @ChrisGreer  3 роки тому +1

      Go for it! Yours for the stealing... Just please promote my channel when you do. Thanks!

  • @OrgrimmarGrunt
    @OrgrimmarGrunt 2 роки тому

    Awesome! 10/10 friend. Keep up the good work.

  • @BLUbeast9
    @BLUbeast9 2 місяці тому +1

    good video :) had to watch this for HW

  • @johnvardy9559
    @johnvardy9559 2 роки тому

    your expression way is amazing.

  • @brahmadude8955
    @brahmadude8955 3 роки тому

    Wow master is back...

    • @ChrisGreer
      @ChrisGreer  3 роки тому

      Glad you like the channel!

  • @sri9277
    @sri9277 3 роки тому +1

    Man your videos are always help full 👍👍 keep going 👍

  • @douski
    @douski 3 роки тому

    From morroco 🇲🇦you are the best man

  • @Rai_Te
    @Rai_Te 2 місяці тому

    Quite a good summary about the main differences between TCP and UDP ...
    but one difference (which at least I find also important) was entirely missed:
    A tcp-connection (being a connection) is between two distinct endpoints.
    So, if your program talks to 10000 clients at the same time, it needs to maintain
    10000 connections and will therefore need 10000 socket-filedescriptors.
    A UDP-socket on the other side (being connectionless) can talk to 10000 clients
    at the same time just using the one socket-filedescriptor. The one udp socket-fd
    can be used to receive packets from all remote peers and also send packets to them.

  • @kon5791
    @kon5791 2 роки тому

    excellent explanation! Thanks, my dude :)

  • @sharpestasset9615
    @sharpestasset9615 2 роки тому

    Dude you’re awesome. Thanks so much for these vids

  • @vyasG
    @vyasG 3 роки тому

    Great Explanation! Thank you.

  • @deverasjk
    @deverasjk 2 роки тому

    Awesome lesson! tyvm

  • @brentonm.newbon6026
    @brentonm.newbon6026 3 роки тому

    Wow this was explained very clearly 👌🏾

  • @meow-iskander
    @meow-iskander 2 роки тому

    You're the best!

  • @moussatouhami7567
    @moussatouhami7567 3 роки тому

    Your videos are just catalyst for me to get back and focus on Packet analysis 🙄, thanks.

  • @redfishiaven929
    @redfishiaven929 2 роки тому

    Am glad I came across to know the difference.
    By the way, which firewall uses UDP?
    Thanks.

  • @visiblecantom
    @visiblecantom 2 роки тому

    very good comprehension video

  • @joerockhead7246
    @joerockhead7246 3 роки тому

    Thanks, Chris

  • @tristanturner
    @tristanturner 3 роки тому +1

    Nice video my brother

    • @ChrisGreer
      @ChrisGreer  3 роки тому

      Thanks Tristan! Great to see ya!

  • @adedejiemmanuel1
    @adedejiemmanuel1 3 роки тому

    Great video. Thank you.

  • @supriyochatterjee4095
    @supriyochatterjee4095 3 роки тому

    Best explanations

  • @danielj9865
    @danielj9865 3 роки тому +1

    Hey Chris just found you on Dave’s channel I like the way you present. Do you have a beginners course for wire shark? I have a small experience with it in class but my class was a boot camp so not much time was spent on it. Please if you have a course that I can buy please let me know.

    • @ChrisGreer
      @ChrisGreer  3 роки тому

      Hey Daniel! Thanks for stopping by the channel and for the comment. Yes, I do have courses you can take to get up to speed on Wireshark - one is on-demand on Pluralsight - www.bit.ly/wiresharkintro The other is a live, instructor-led (me) course that I teach via zoom www.bit.ly/virtualwireshark I hope these help you on your journey!

  • @punggukbulan8674
    @punggukbulan8674 2 роки тому

    Hi Chris, how to measure packet loss, jitter, throughput of UDP using wireshark ?

    • @ChrisGreer
      @ChrisGreer  2 роки тому +1

      Great question - I will look at covering it in a future video.

    • @punggukbulan8674
      @punggukbulan8674 2 роки тому

      @@ChrisGreer thanks Chris..

  • @canert3553
    @canert3553 3 роки тому +1

    Hi Chris. How can I get your packet head t-shirt :)

    • @ChrisGreer
      @ChrisGreer  3 роки тому

      packetpioneer.creator-spring.com/ check it out on my store! Or you can find links to it from my channel under the "Store" view.

  • @masaksehat24
    @masaksehat24 2 роки тому

    Hi Chris, i just read book related tcp/ip and found this statement "One difference between TCP and UDP is that UDP preserves message boundaries."
    what is "message boundaries" means?

    • @ChrisGreer
      @ChrisGreer  2 роки тому

      Hey Nanda! great question. So when an application sends data to the kernel for transmission, it can do so in "chunks" of data. The start and end of those chunks of data are called "message boundaries". TCP does not care where data starts and ends because it is a stream-based protocol. So it chops data up and sends it along, regardless if it is at the middle or end of the boundary. (Hint - you can usually tell the end of the boundary by the PSH bit) UDP however will preserve the boundaries it is given by the application. So if 800 bytes is handed down, a UDP packet of 800 bytes will go out, without waiting for more data to fill the packet, etc. Hope this helps answer the question!

    • @masaksehat24
      @masaksehat24 2 роки тому

      @@ChrisGreer so, tcp can not do that?

    • @ChrisGreer
      @ChrisGreer  2 роки тому

      @@masaksehat24 If the application uses a small block size, TCP can kick it out with a PSH bit set. But since TCP is designed as a stream-based protocol, it not supposed to look for message boundaries.

    • @masaksehat24
      @masaksehat24 2 роки тому

      @@ChrisGreer well noted. thank you Chris

  • @donalddurham7999
    @donalddurham7999 2 роки тому

    You say "Ethernet" is layer two. Can you describe in more detail why Ethernet is considered layer 2 to someone running an Ethernet cable who may consider "Ethernet" (the cable) as layer 1?
    The cable is layer 1, but the layer 2 encapsulation of frames transmitting through the Ethernet cable is known as "Ethernet"?
    Confusing

  • @thehoffgamming7752
    @thehoffgamming7752 Рік тому

    Why do they call tcp/ip but not udp/ip. Does udp packet have ip address?

  • @majiddehbi9186
    @majiddehbi9186 3 роки тому

    hello chris

  • @testshar2117
    @testshar2117 3 роки тому

    I am kinda very upset that why doesn't my university teachers mention about wireshark at all and why this topics arn't shown with wireshark in action during lectures. Till date whenever someone mentioned UDP, i visualized bytes flowing in air and whenever someone mentioned TCP, i could see a wire between 2 points and thats it i understood. Damn what a waste of my time during the degree ..
    Thanks Anyway Chris !!!!

    • @ChrisGreer
      @ChrisGreer  3 роки тому

      Glad you stopped by the channel Test Shar! Feel free to share the video with anyone you think would benefit. Thank you

  • @prabaljainn
    @prabaljainn 2 роки тому +3

    Let me tell you a UDP Joke, but i'm afraid you won't get it.

  • @PearsonLester-m5q
    @PearsonLester-m5q 2 місяці тому

    Thompson Amy Allen Brian Hernandez Deborah

  • @DoloresRichardson-n8q
    @DoloresRichardson-n8q 3 місяці тому

    Jackson Timothy Anderson Scott Walker Mary

  • @robertthomas5906
    @robertthomas5906 3 роки тому

    I have a good UDP joke.
    I don't care if you get it.

    • @ChrisGreer
      @ChrisGreer  3 роки тому

      ACK! Oh wait... wrong protocol. 🙃 Gotta love TCP humor.

  • @manangandhi8338
    @manangandhi8338 3 роки тому

    I have joke on UDP.
    But you won't get it.

    • @ChrisGreer
      @ChrisGreer  3 роки тому +1

      Haha! Gotta love that one