But I do not understand how exactly routers resolves broadcast storm
problem. Any explanation in detail?
When a router receives a packet, it gets inspected, then forwarded out the appropriate interface or it gets dropped. When a router receives a broadcast packet, it drops it (excluding directed-broadcasts, dhcp, etc).
When a switch receives a frame, it either forwards it on to a known interface or floods it out all of its ports if it doesn't know where to go. When a broadcast frame comes along, it get's flooded out all interfaces. Every machine in your segment sees it. Excessive amounts of these constitute a storm.
The most common way for a broadcast storm to happen is from a switching loop. If you somehow get a switching loop on your network, these broadcasts will perpetually send this data back and forth forever, or until you remove the loop. This will cause data to hit every machine on your segment. This can cause your network to stop.
When you have a router in between multiple layer 2 segments, each is inherently protected from the other. Remember, a router won't forward on broadcasts.
For instance:
+-----+ +------+ +-----+
|LAN 1|----|ROUTER|----|LAN 2|
+-----+ +------+ +-----+
LAN 1
can be all sorts of messed up, and LAN 2
will be none the wiser because ROUTER
won't forward LAN 1
broadcast packets on to anyone.
Best Answer
Each VLAN creates its own broadcast domain in 1 or more physical switches. If you have a switch taken out of the box it tends to put all ports in vlan 1 so for say a 24 ports the broadcast domain includes all 24 ports. If you were to create a vlan 2 and configure half the ports to be members of vlan 2 you then have 2 broadcast domains each of 12 ports. if you create a vlan 3 and put half the ports that are still in vlan 1 in it you would end up with 3 broadcast domains 2 with 6 ports and another 1 with 12 ports.