When a ping passes a switch, how does the switch know which port to send it to?


1 Answer 1


Maybe I misunderstood your question, in that case i apologize in advance. But packets contain in their header many fields, one of which is the destination port. So the switch simply reads that information.

  • This is a basic network. I got a question is PC1 ping to PC2. Internal process how it work.
    – Dikaot
    Jan 12, 2015 at 8:52
  • 3
    Packets DO NOT contain a destination SWITCH port in their header. There is such a thing as a destination port in TCP/UDP, but it has no relationship to switch ports.
    – Gerben
    Jan 12, 2015 at 9:21

Not the answer you're looking for? Browse other questions tagged or ask your own question.