Routing, Performance, Layers, Internetworking



Link-State Routing



Distance-Vector Routing



Network Performance



7-Layer model

  1. physical layer: how the bits are sent
  2. data-link layer: framing, MAC (single-hop)
  3. network layer: getting data end to end
  4. transport layer: reliability, control
  5. session layer: logins, authentication
  6. presentation layer: data encoding, encryption
  7. application layer, e.g. telnet, http



Transport Layer Functions



Transmission Error Prevention

  1. add a sequence number (a counter) to each packet
  2. when packets are received in order, send an acknowledgement
  3. when packets are received out of order, send a negative acknowledgement (NAK) or wait for the sender to time out
  4. sender must time out anyway in case the last packet is lost
  5. recycled sequence numbers can cause trouble if packets can be arbitrarily delayed
  6. eliminates duplicate or out-of-order delivery, and packet loss



Flow and Congestion control

  1. an ack can carry information from the receiver back to the sender
  2. the information can state how much more data the receiver can handle: a window -- the sender can only send data in the window
  3. as further acks are received, the window slides to the right in sequence number space
  4. a window-size of 1 can be encoded simply by returning the ack: a stop-and-wait protocol
  5. if a congested network can reduce the size of the window, senders will slow down -- one form of congestion control
  6. throughput with a sliding window of size W bits, bottleneck bandwidth B, round-trip delay D is T = min(B, W/D)



Universal Service



Internetworks and Routers



Internet Protocols



Requirements for Internet Protocols



IP Addresses



IP Address Classes



Limitations of Address Classes



IP Address Masks