How Switches learn MAC addresses and forward frames | Switching Methods and Types

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ธ.ค. 2024

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

  • @khaledabuelnaga
    @khaledabuelnaga 7 หลายเดือนก่อน +1

    Really its a great job

  • @Rogerson112
    @Rogerson112 7 หลายเดือนก่อน +1

    A lot of worth knowledge, thank you for this!

  • @Canada_Indian
    @Canada_Indian 4 หลายเดือนก่อน

    How come pc1 will know the mac address of the destination and add it in the frame?

    • @computernetworkingnotesyoutube
      @computernetworkingnotesyoutube  4 หลายเดือนก่อน

      Computers use ARP protocol to find the MAC addresses of other devices available on the local segment.

    • @Canada_Indian
      @Canada_Indian 4 หลายเดือนก่อน

      Arp packet uses Src ip and dst ip but switch never learn IPs than how come this type of transaction is possible.

    • @computernetworkingnotesyoutube
      @computernetworkingnotesyoutube  4 หลายเดือนก่อน +1

      @@Canada_Indian
      Hi, a switch does not need to learn the IP addresses of connected devices.
      I am not getting what exactly you are asking.
      Anyway, the whole process goes as the following:-
      PC1 does not know the MAC address of the destination.
      PC1 generates an ARP frame to learn the MAC address of the destination.
      The frame contains the source MAC address (As PC1 knows its own address) and the destination MAC address ( A local broadcast address, as it does not know the destination MAC address)
      The Frame reaches the switch.
      The switch adds PC1's MAC address in the CAM table and forwards the frame from all ports except the incoming port.
      The destination PC replies to the broadcast frame. The reply frame contains the destination PC's MAC address.
      PC1 learns the MAC address of the destination PC.
      In this entire process, a switch never needs to learn the IP address. It only needs the MAC address and every frame contains it.

    • @Canada_Indian
      @Canada_Indian 4 หลายเดือนก่อน

      @@computernetworkingnotesyoutube thank you very much. It's clear now