160 likes | 303 Views
Lecture 13. Packet Switching: A Network Layer Function. Switches and Hubs. Switches Only forward traffic to a network containing the addressee Hubs Forward traffic to everyone Switched networks scale much better. Broadcast and Multi-cast on Switched Networks.
E N D
Lecture 13 Packet Switching: A Network Layer Function
Switches and Hubs • Switches • Only forward traffic to a network containing the addressee • Hubs • Forward traffic to everyone • Switched networks scale much better
Broadcast and Multi-cast on Switched Networks • Broadcast address-how’s it different from ethernet? • Multi-cast address-
Bridges Learn the Port of Each Host! • Hosts must sign in with the bridges to build the routing table—but this is transparent to the users • Routing table starts empty • Addresses not in the table are handled as broadcasts • The first message you send sets up your entry (address and port) in the routing table
Multicast • Bridges have a jointly-held multi-cast address • Members of a multi-cast address send a message using their multicast address to the bridges’ multicast address
An Extended LAN with loops • Broadcast packets loop endlessly
Spanning Tree-Dealing with loops • Idea is to temporarily deselect redundant ports to eliminate loops • Bridges are labeled: B1, B2, B3 etc • Bridge with smallest label becomes the root bridge • Each bridge computes distance to the root for each port—number of hops • Bridge on each LAN with smallest distance to the root becomes a designated bridge-using the port closest to the root
Running Spanning Tree • Bridge maintains dynamic values of : • the root id • the minimum distance to the root (in hops) • These numbers are determined by exchanging configuration messages (X,d,Y) • Y=myid • d=minimum distance to root • X=rootid
Initially each bridge thinks itself to be the root and sends----(myid, 0, myid) • Update and resend (incrementing d) if • Receive a message with a smaller rootid • Receive a message with a smaller distance to root • Receive a message with same rootid and distance but smaller sender id
Do not forward traffic from Port A to Port B if a message arrives on Port A with a smaller distance to the root than Port B. (remember ties are broken using smallest ID)
Limits of Extended LANs • Spanning tree becomes inoperable for more than 10’s of LANs • Broadcast traffic becomes a burden • VLANs can be used to break up an extended LAN into logical domains • Security