3-Switching Flashcards
How does a host learn the MAC address of another host?
ARP - Address Resolution Protocol
Host queries with an IP Address:
“Who has IP address 130.207.160.47?”
Response is the MAC address corresponding to 130.207.160.47. Once the host receives the reply, it starts to build the ARP table.
ARP - Address Resolution Protocol
(When hosts wants to send a packet to a destination with a IP address… the hosts puts the IP packet and encapsulates it within an Ethernet frame with the corresponding destination MAC address.
ARP - Address Resolution Protocol
What are the queries and responses in ARP?
Query: Broadcast asking about IP
Response: Unicast with MAC address
Creates a broadcast medium and is now replaced by switches in todays networks
Hubs
Issues with Hubs
flooding, collisions of frames ->latency, failures/misconfig
Perform some amount of traffic isolation by partitioning the LAN into separate segments. This type of isolation maps destination MAC to output port.
Switches
Maintains a table between destination addresses and output ports on a switch.
Learning Switched
Initially, the forwarding table is empty.
1) If no entry in forwarding table, the host would simply flood
2) Otherwise, send to output port in table
3) Switches in turn forward broadcast frames (e.g. ARP queries)
Learning switch
Cycles
1) forwarding loops
2) Broadcast storms
Solution for cycles?
Spanning trees - a loop free topology
Construct Spanning Tree part 1
1) Elect root(switch with smallest ID)
2) Each switch must decide which of its links to include in the spanning tree. Excludes link if not on shortest path to root.
Construct Spanning Tree part 2 (determining the root)
Initially: every node thinks it is the root!
1) Each switch run an election process to determine smallest ID
2) Once smallest ID learned, it updates the view of root
3) Compute distance to new root
Switches
Operate at layer 2 - common protocol at layer 2 is ethernet
- auto-configuring
- forwarding tends to be fast
Routers
Typically operate at layer 3 where IP is the typical protocol
*Not restricted to spanning tree