Ping command through network

I have been trying to understand how and what tables are populated ( if they are clean at the start) when a ping command goes through. Lets say I have this network: enter image description here

I want to send a ping command from PC A to PC C. I have a couple of questions regarding this -

  1. In terms of switches what is the difference between a layer 2 and layer 3 one?
  2. Does a Layer 3 switch have a routing table and a layer 2 one doesn't?
  3. If im looking at switches 20,30,50 how do their tables look like?
  4. Does SW10 need to know the MAC address of both SW20 and A or does it just know the nearest hop ( SW20)?

Can someone guide me step by step on what's happening here if a ping command is sent.

Leave Your Comment