Switch MAC Address – Does a Switch Always Get a MAC Address from a PC?

mac addressswitchswitchingudp

I was wondering if there is a possibility that a switch won't get the needed MAC address to it's CAM.

For example, if the used protocol is UDP, where the sender doesn't need an answer back from the receiver?

Thank you

Best Answer

A switch learns the source MAC from the sender. If the destination is not in the CAM table, the switch floods the frame out all ports. So if the receiver never responds, the switch will never learn the receiver's MAC and it will always flood the frame.