I have started reading on Computer Networks recently(beginner), and have come across some of the doubts regarding how the broadcasting is handled by routers and switches. Assuming there are no restrictions on the routers for forwarding the packets, these are the queries I am having:-
Since in the case of directed broadcasting to a foreign network, the last router changes the unicast packet to a broadcast one so that it gets delivered to all hosts in the network, does the same procedure happens in the case of directed broadcasting in the same network?
What is the role of Switches in the case of directed broadcasting? In the case of local broadcasting, switches were responsible for sending out the packets to everyone in the network on receiving the 255.255.255.255 packet, do they perform the same way in directed broadcasting too? Like, does the 'last' router which converted the unicast packet to broadcast packet sends out this packet to switch which then forwards it to all the hosts in the network?