<aside>
📖 Generic Packet Switch
</aside>
<aside>
📖 Ethernet Switch
DA - Destination Addr.
SA - Source Addr.
- Examine the header of each arriving frame.
- If the Ethernet DA is in the forwarding table, forward the frame to the correct output port(s).
- If the Ethernet DA is not in the table, broadcast the frame to all ports (except the one through which the frame arrived).
- Entries in the table are learned by examining the Ethernet SA of arriving packets.
</aside>
<aside>
📖 Internet Router
- If the Ethernet DA of the arriving frame belongs to the router, accept the frame. Else drop it.
- Examine the IP version number and length of the datagram.
- Decrement the TTL, update the IP header checksum.
- Check to see if TTL == 0.
- If the IP DA is in the forwarding table, forward to the correct egress port(s) for the next hop.
- Find the Ethernet DA for the next hop router.
- Create a new Ethernet frame and send it.
</aside>
Basic Operations
1. Lookup Address
2. Switching