<aside> 📖 Generic Packet Switch

Untitled

</aside>

<aside> 📖 Ethernet Switch

DA - Destination Addr. SA - Source Addr.

  1. Examine the header of each arriving frame.
  2. If the Ethernet DA is in the forwarding table, forward the frame to the correct output port(s).
  3. If the Ethernet DA is not in the table, broadcast the frame to all ports (except the one through which the frame arrived).
  4. Entries in the table are learned by examining the Ethernet SA of arriving packets. </aside>

<aside> 📖 Internet Router

  1. If the Ethernet DA of the arriving frame belongs to the router, accept the frame. Else drop it.
  2. Examine the IP version number and length of the datagram.
  3. Decrement the TTL, update the IP header checksum.
  4. Check to see if TTL == 0.
  5. If the IP DA is in the forwarding table, forward to the correct egress port(s) for the next hop.
  6. Find the Ethernet DA for the next hop router.
  7. Create a new Ethernet frame and send it. </aside>

Basic Operations

1. Lookup Address

2. Switching