Looking at ARP and ping packets | Networking tutorial (10 of 13)

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ก.ย. 2024
  • Let's use Wireshark to capture some actual packets!
    Support me on Patreon: / beneater
    This video is part 10 of an intro to networking tutorial: • Networking tutorial

ความคิดเห็น • 69

  • @Golgafrincham
    @Golgafrincham 5 ปีที่แล้ว +74

    Seriously, I can start working as a Network Technician just by looking a this series of videos. You really manage to make a complicated subject into something understandable, awesome work!

  • @philbrammer3632
    @philbrammer3632 3 ปีที่แล้ว +6

    Brilliant. Thankyou. Your completely thorough explanation, leaving no stone unturned, not even a snippet of info deemed irrelevant, using not just information but getting us to think before revealing is the only way I learn complex subjects, and this series is a fine example. Very well done, a thousand thumbs up.

  • @cheesecake667
    @cheesecake667 7 ปีที่แล้ว +43

    Genius Explanation + Demonstration.

  • @SatishKumar-jb9qm
    @SatishKumar-jb9qm 7 ปีที่แล้ว +25

    Hi Ben - your videos are pure gold! Thanks for creating these videos.

  • @realgreencookie
    @realgreencookie 6 หลายเดือนก่อน +3

    Dude, 10 years later and this vid still kicks ass! Thanks for this tutorial. It has helped me (Software developer since 2000) A LOT!! I had a lot of holes in my networking knowledge and now I feel more confident going in.

  • @nik93393
    @nik93393 ปีที่แล้ว

    Ben I watched your all videos and I'm electrical engineer but now I can work as network technician by just watching your videos. Great Sir😊😊

  • @bighugejake
    @bighugejake 9 ปีที่แล้ว +28

    the "arp" command is available on windows. "arp -a" shows all the learned mac addresses of your computer

  • @jaygade
    @jaygade 4 ปีที่แล้ว

    I learned more about internetworking from this video than from reading a dozen internet tutorials and trying to read RFCs.

  • @fukuyama2252
    @fukuyama2252 4 ปีที่แล้ว +2

    Thank you. It's very interesting to see my router sending hundreds of ARP requests asking who has 192.168.*.*

  • @aliparpar1
    @aliparpar1 3 ปีที่แล้ว

    I can't stop binge watching these videos

  • @noelthomasbejoy3089
    @noelthomasbejoy3089 4 ปีที่แล้ว

    This series is too good!Before I didn’t have an overall understanding of how all this works together,you’ve made this hated subject easy🤞👌👌

    • @equim7363
      @equim7363 4 ปีที่แล้ว

      Try learning BGP, lol) Now that is a mess!

  • @nik93393
    @nik93393 ปีที่แล้ว

    Ben has uncovered the information technology for every one❤❤

  • @azixaka
    @azixaka 4 ปีที่แล้ว

    These are the most concise videos I've ever seen. Thank you!

  • @alfredm.s.6396
    @alfredm.s.6396 4 ปีที่แล้ว +3

    Just to clarify; This example is made up with a local network with Ben's router posing as San Fransisco Router and computer B as destination somewhere in NY.

  • @LucaAliberti
    @LucaAliberti 9 ปีที่แล้ว +39

    Person giving the thumb down should explain!...

    • @darwinvinci7744
      @darwinvinci7744 5 ปีที่แล้ว +9

      They are incompetent uni lecturers.

    • @alanclarke4646
      @alanclarke4646 3 ปีที่แล้ว

      @@darwinvinci7744 no, they're just trolls, and should crawl back under their bridge and leave the internet alone.

  • @samirghedjati4024
    @samirghedjati4024 8 ปีที่แล้ว +8

    thank u so so so much, PLEASE BEN, share more videos ... :)

  • @nithyavasudevan272
    @nithyavasudevan272 3 ปีที่แล้ว +8

    Dear Sir, I have watched almost every of your videos. I kindly request you to build a series on internet connection on the custom hardware like the 8 bit computer or the 6502 computer. I am currently building a 32 bit computer with vga output and a usb keyboard, mouse input. I am also planing to build an OS for it. From your kind subscriber. Thank you for your kind support.

  • @cindyespindola4946
    @cindyespindola4946 4 ปีที่แล้ว

    Thank you so much!,
    this has been the easyiest to understand and most useful explination I've found

  • @akshhatsrivastava1972
    @akshhatsrivastava1972 3 ปีที่แล้ว

    Sir, you're a genius. Thanks a ton for these videos!

  • @richardwang3438
    @richardwang3438 4 ปีที่แล้ว

    best tutorial I find on youtube!

  • @divyeshpatel7860
    @divyeshpatel7860 5 ปีที่แล้ว +2

    Quite clear explanation

  • @sajibsrs
    @sajibsrs 3 ปีที่แล้ว

    wow, so much effort. Pure respect!

  • @jjbv2044
    @jjbv2044 11 หลายเดือนก่อน

    I wish my college professors would have such simple explanations!

  • @BR-lx7py
    @BR-lx7py 8 ปีที่แล้ว +2

    Why isn't the ARP response a broadcast package ? Aren't the other computers interested in the router's MAC ?

  • @peter1762
    @peter1762 ปีที่แล้ว +1

    Thanks!

  • @banama1758
    @banama1758 9 ปีที่แล้ว +5

    thank you i learned a lot

  • @magiczerda3120
    @magiczerda3120 5 ปีที่แล้ว +2

    So did he somehow delete the router's mac address from his computer or why does a ping start with an arp request? Shouldn't the computer have known the router's ip for a long time already?

  • @linardssmeiksts6558
    @linardssmeiksts6558 6 ปีที่แล้ว +14

    192.168.*.* is the local network. how could you send ping to the other side of the country to the other local network?

    • @orbik_fin
      @orbik_fin 6 ปีที่แล้ว +3

      Note that the ping also took only 1.8ms whereas actual SFO-NYC ping times are around 90ms.

    • @HanS662
      @HanS662 4 ปีที่แล้ว +4

      I think he is just using a general example. The LAN works on similar ideas to the internet. The complexity is just handled by the ISPs' switches/routers. You can think of the modem as just a router belonging to the ISP.... (if you rent the modem)

    • @SThomas1972
      @SThomas1972 4 ปีที่แล้ว +1

      The is local network is in fact not 192.168.x.x as the subnet mask is 255.255.255.0 and that mean the local network is in fact 192.168.9.0 is the network address so addresses on 192.168.20.0 are not part of the same subnet. Because of subneting for the subnet to cover both 192.168.9.x and 192.168.20.x the mask would need to be 255.255.0.0 or /16. The is also 2 special addresses in IP they the network address that is the first address in the subnet ie 192.168.9.0/24 and the broadcast address and this the last address in the range in This example that would be 192.168.9.255/24 making usable host addresses ranging from 192.168.9.1 through to 192.168.9.254.

  • @ronichoudhury
    @ronichoudhury ปีที่แล้ว

    This video sequence is amazing. For me networking has always been the hardest CS nut to crack (despite all my years of CS schooling) but this series really makes things clear. Thank you!
    What tools did you use to set up this example network?

  • @yunyingma5523
    @yunyingma5523 7 ปีที่แล้ว +4

    Thanks a lot!

  • @Vivacior
    @Vivacior 4 ปีที่แล้ว

    Ben...yet another great explanation of how an IP packet travels.
    Now... I've yet to understand...
    If Client A is on a private subnet with an unregistered address...
    What IP address does it send to contact Client B (across the web, different registered host)...only knowing the public registered IP address of Client B's server?
    In other words, since computers on a private LAN have private unregistered IP addresses that the outside public internet has no access to, what IP address does a client/requestor know to send, to reach that specific destination computer/server, which is hidden from the public internet?
    Long q, I know...lol...
    Just don't know how unregistered clients talk to one another across the internet, since both their addresses are unregistered and private.
    Cheers!

  • @Thenpakkam_Manibalan
    @Thenpakkam_Manibalan 4 ปีที่แล้ว

    Thanks for the great demonstration

  • @justinli19901027
    @justinli19901027 4 ปีที่แล้ว

    great series

  • @itaiavni1444
    @itaiavni1444 3 ปีที่แล้ว

    thank you

  • @88888jagadish
    @88888jagadish ปีที่แล้ว

    Thanks

  • @ramichasygov1037
    @ramichasygov1037 ปีที่แล้ว

    So if I set up ARP server the way so that it answers to anyone that it has a target ip address - will it create a malicious agent that jams the whole local network?

  • @chitoiup
    @chitoiup 7 ปีที่แล้ว +2

    What if the computer you are trying to reach is behind a router? Its IP will be some virtual IP assigned by the router. The request will get to the router, but then how does the router know which machine to send it to?

    • @AlexanderKrivacsSchrder
      @AlexanderKrivacsSchrder 7 ปีที่แล้ว +10

      Through a technique called Network Address Translation or NAT. The most common type of NAT is the one known as "port forwarding," which tells a router that if you get a connection on TCP or UDP port X, it should be forwarded to a specific IP address and port on the other side.

    • @Nasirmah
      @Nasirmah 5 ปีที่แล้ว

      Thanks Alex, it seems in this case SFO router sends Ethernet packet outside routers. Will it need Mac of the router it is sending to. Is there ARP between routers. From my understanding you need MAC address to send Ethernet packet.Ny router did same to get the Mac of 20.2 as well. I understand you don’t need that if you have NAT, for NY to 20.2 and same for SFO to 9.2

    • @SampadMohanty7
      @SampadMohanty7 4 ปีที่แล้ว +1

      @@AlexanderKrivacsSchrder NAT is not port forwarding, NAT is to support multiple devices when you cannot afford public IP for each. You are confusing a en.wikipedia.org/wiki/Router_(computing) with a en.wikipedia.org/wiki/Residential_gateway

  • @DesertHash
    @DesertHash 3 ปีที่แล้ว

    How does the ethernet frame of the data packet, particularly the source and destination MAC address, change as it's hopping routers until it eventually reaches the target computer?

  • @bejoscha
    @bejoscha 5 ปีที่แล้ว

    Great series. One thing not clear from the video though: How often is this handshaking type of addresses-lookup performed? Is it done once and then buffered? For how long? Or is it don’e for each and every frame(set) send out?

    • @AltoidJTP
      @AltoidJTP 5 ปีที่แล้ว +2

      The local network stack maintains an ARP table for cached lookups, yes. What I thought could have been made a little more clear is why Host A asked for the hardware address for the router, and not Host B. When trying to reach Host B, Host A determined that it was not on the same local network, and asked for the hardware address for the IP listed as its default gateway, not the actual target IP, since that's the next physical target for the packet to be sent.

  • @tanchienhao
    @tanchienhao 2 ปีที่แล้ว

    How do you get such clean captures? I understand he did some behind the scenes work to stop other connections but I’m surprised how nothing except the ping command shows up? Anyone could enlighten me please :) thank u

  • @enditend2
    @enditend2 8 ปีที่แล้ว +4

    someone reply please, how was he able to ping that ip? at first I thought he was doing a test inside the local network, but he didn't get 3rd ARP so it must been outside of his network, but that ip is private , no?

    • @benjaminhartmann8118
      @benjaminhartmann8118 8 ปีที่แล้ว +2

      It propably was a local network. But 2 and not 1 network. As explained by ben. The host wanting to ping the second host send the arp request to get the mac-adress of his router and received a reply. Then when he send the ICMP paket it got picked up by the router. The router then checked to whom it have to send the paket so it gets received by the destination. In this case both ( Sender and Receiver ) are on seperate Networks. So you can't see a arp request for the mac-adress of the destination.

    • @elgs1980
      @elgs1980 7 ปีที่แล้ว

      It could be within virtual private network.

    • @SampadMohanty7
      @SampadMohanty7 4 ปีที่แล้ว

      Are you saying if you had two routers with subnets 192.168.20.1/24 and one 192.168.9.1/24 you cannot ping from devices in one subnet to the other? What has the router to do with being a private IP or not? Router simply looks up forwarding table and sends the packet. You are probably confusing with NAT which home routers use. Router in the sense of pure routing have nothing to do with NAT. A router doesn't need to have NAT capabilities. You are confusing a en.wikipedia.org/wiki/Router_(computing) with a en.wikipedia.org/wiki/Residential_gateway

  • @Nasirmah
    @Nasirmah 5 ปีที่แล้ว

    It seems in this case SFO router sends Ethernet packet outside routers with IP header inside. Will it need Mac of the router it is sending to. Is there ARP between routers. From my understanding you need MAC address to send Ethernet packet.Ny router did same to get the Mac of 20.2 as well. I understand you don’t need that if you have NAT, for NY to 20.2 and same for SFO to 9.2.

  • @hohowtf
    @hohowtf 6 ปีที่แล้ว +1

    Ok I asked whether ping is doing ARP in the last video, the answer is here lol

  • @MET3
    @MET3 9 ปีที่แล้ว +1

    Ben, What does the wireshark output look like if you were to capture from 10.0.15.1 interface? How does this change if you are behind a NAT? If you are behind a NAT how does the ping packet know how to get back to the original source?

    • @benjaminhartmann8118
      @benjaminhartmann8118 8 ปีที่แล้ว

      With nat there isn't a big difference. In wireshark it actually looks the same. But when it hits the router he is going to insert an entry into an internal lookup table. This contains the source ip, the destination ip and in cases where tcp/udp is used a port mapping. In case of icmp requests in uses the icmp request id. The source ip of the request paket is also altert by the router to contain the internet facing public ip. When the reply gets back to the internet facing router he checks his lookup table and is then able to send the paket to right receiver. In this case the reply gets also altert. The destination address will be set to the internal host and send on his way. Hope this helps

  • @arjunchauhan7339
    @arjunchauhan7339 4 ปีที่แล้ว

    just wondering. can we change the ICMP packet data the system sends when we ping?

  • @victormponcec
    @victormponcec 4 ปีที่แล้ว

    fascinating

  • @pagola
    @pagola 8 ปีที่แล้ว +1

    please do more...thanks

  • @gaiuszeno1331
    @gaiuszeno1331 4 ปีที่แล้ว

    Is his network a simulated virtual network of some kind?

  • @opm-sriram2070
    @opm-sriram2070 4 ปีที่แล้ว

    great😍

  • @rohanmadiratta6421
    @rohanmadiratta6421 3 ปีที่แล้ว

    How to find router ip through arp packet?

  • @amitbohra9283
    @amitbohra9283 3 ปีที่แล้ว

    sir just add that pinging on private network would not work. rest is great.

  • @srujankumar5020
    @srujankumar5020 5 ปีที่แล้ว

    don't know why this video got few dislikes.

  • @khristianss
    @khristianss 3 ปีที่แล้ว

    traslate to spanish pls