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

Sdílet
Vložit
  • čas přidán 7. 09. 2024

Komentáře • 77

  • @ChrisGreer
    @ChrisGreer  Před 2 lety +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 Před 2 lety +7

    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  Před 2 lety +3

      Thanks for the comment! That is a great analogy.

  • @ranjanadissanayaka5390
    @ranjanadissanayaka5390 Před 2 lety +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.

  • @gupttura2766
    @gupttura2766 Před 2 lety +7

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

  • @amvj
    @amvj Před 2 lety +5

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

    • @ChrisGreer
      @ChrisGreer  Před 2 lety +1

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

  • @thecowl626
    @thecowl626 Před 2 lety +3

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

  • @jairunet
    @jairunet Před 2 lety +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  Před 2 lety +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 Před 2 lety +1

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

  • @gaKz.
    @gaKz. Před 2 lety +3

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

  • @TheLongerD
    @TheLongerD Před 2 lety +2

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

  • @sahukarinaveenkumar3188

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

    • @ChrisGreer
      @ChrisGreer  Před 2 lety +1

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

  • @OrgrimmarGrunt
    @OrgrimmarGrunt Před rokem

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

  • @kallikantzaros
    @kallikantzaros Před 2 lety

    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

  • @Anglina1433
    @Anglina1433 Před 2 lety

    Great, simple and clear explanation means professional engineer behind it

  • @douski
    @douski Před 2 lety

    From morroco 🇲🇦you are the best man

  • @redfishiaven929
    @redfishiaven929 Před 2 lety

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

  • @jasgarcha4783
    @jasgarcha4783 Před rokem

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

  • @johnvardy9559
    @johnvardy9559 Před 2 lety

    your expression way is amazing.

  • @dareebenezer7
    @dareebenezer7 Před rokem

    Great explanation especially with the Wireshark example

  • @VideoJunkee
    @VideoJunkee Před 2 lety +2

    Awesome video. I’m stealing this…

    • @ChrisGreer
      @ChrisGreer  Před 2 lety +1

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

  • @moussatouhami7567
    @moussatouhami7567 Před 2 lety

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

  • @deverasjk
    @deverasjk Před 2 lety

    Awesome lesson! tyvm

  • @kon5791
    @kon5791 Před 2 lety

    excellent explanation! Thanks, my dude :)

  • @Techtips200
    @Techtips200 Před 2 lety +1

    Superb...a big fan of ur videos.

    • @ChrisGreer
      @ChrisGreer  Před 2 lety +1

      Thanks for the comment and for stopping by the channel!

  • @sri9277
    @sri9277 Před 2 lety +1

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

  • @visiblecantom
    @visiblecantom Před 2 lety

    very good comprehension video

  • @sharpestasset9615
    @sharpestasset9615 Před 2 lety

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

  • @Lucas-md8gg
    @Lucas-md8gg Před 2 lety

    You're the best!

  • @brentonm.newbon6026
    @brentonm.newbon6026 Před 2 lety

    Wow this was explained very clearly 👌🏾

  • @vyasG
    @vyasG Před 2 lety

    Great Explanation! Thank you.

  • @brahmadude8955
    @brahmadude8955 Před 2 lety

    Wow master is back...

  • @adedejiemmanuel1
    @adedejiemmanuel1 Před 2 lety

    Great video. Thank you.

  • @joerockhead7246
    @joerockhead7246 Před 2 lety

    Thanks, Chris

  • @tristanturner
    @tristanturner Před 2 lety +1

    Nice video my brother

  • @supriyochatterjee4095
    @supriyochatterjee4095 Před 2 lety

    Best explanations

  • @punggukbulan8674
    @punggukbulan8674 Před 2 lety

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

    • @ChrisGreer
      @ChrisGreer  Před 2 lety +1

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

    • @punggukbulan8674
      @punggukbulan8674 Před 2 lety

      @@ChrisGreer thanks Chris..

  • @donalddurham7999
    @donalddurham7999 Před 2 lety

    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

  • @danielj9865
    @danielj9865 Před 2 lety +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  Před 2 lety

      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!

  • @thehoffgamming7752
    @thehoffgamming7752 Před rokem

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

  • @canert3553
    @canert3553 Před 2 lety +1

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

    • @ChrisGreer
      @ChrisGreer  Před 2 lety

      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 Před 2 lety

    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  Před 2 lety

      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 Před 2 lety

      @@ChrisGreer so, tcp can not do that?

    • @ChrisGreer
      @ChrisGreer  Před 2 lety

      @@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 Před 2 lety

      @@ChrisGreer well noted. thank you Chris

  • @majiddehbi9186
    @majiddehbi9186 Před 2 lety

    hello chris

  • @testshar2117
    @testshar2117 Před 2 lety

    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  Před 2 lety

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

  • @prabaljainn
    @prabaljainn Před 2 lety +1

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

  • @robertthomas5906
    @robertthomas5906 Před 2 lety

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

    • @ChrisGreer
      @ChrisGreer  Před 2 lety

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

  • @manangandhi8338
    @manangandhi8338 Před 2 lety

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