How packets travel through a network
There are simple rules for a packet flow in a network: If the destination host is present in the same network of the source host then the packet will be delivered directly to the destination host using MAC address. Within a network, the packet will be delivered on the basis of MAC address. MAC address never crosses its broadcast domain.