Docsity

Medium Access Control and Routing Protocols Review, Study notes of Computer Networks

Partial preview of the text

Download Medium Access Control and Routing Protocols Review and more Study notes Computer Networks in PDF only on Docsity!

CSE 461

FINAL EXAM REVIEW

HELP YOURSELF TO SNACKS

FIRST HALF OF THE QUARTER

  • Network layers & encapsulation
  • Types of addresses
  • Ports and sockets
  • TCP vs. UDP
    • Sliding window
  • Analysis metrics
    • Error handling
    • Projects 0 and 1
    • See midterm review slides for more

MEDIUM ACCESS CONTROL (1)

  • Pure ALOHA Protocol
    • Used random access (collisions inevitable but traffic infrequent)
    • Central station rebroadcasts received frames
    • Frames with bad checksums are thrown away
    • If you don’t hear your frame, wait a random amount of time and try again

CARRIER SENSE MULTIPLE ACCESS WITH COLLISION

DETECTION (CSMA/CD)

  • Nodes detect traffic on the line and wait to transmit until it’s clear
  • Collisions are detected, and a random amount of time is waited before a retransmit
  • Bonus question : Why doesn’t Ethernet use this anymore?
    • Hosts can communicate directly with Ethernet switches, completely avoiding collisions.

BINARY EXPONENTIAL BACKOFF

  • Wait a random number of slots between 0 and n
  • n starts at 1 and doubles each time there’s a collision

HIDDEN TERMINAL PROBLEM

  • Issue that can cause wireless interference
  • Bonus Question : what are some ways to mitigate this?
    • RTS/CTS, power increases, and relocating the node/obstacles

TOKEN RING NETWORKS

  • Nodes are arranged in a ring
  • Nodes take turns, passing around a token
  • The node with the token can talk
  • If a token hasn’t been seen recently, it may have been lost
  • When a new token needs to be generated, one node (the “active monitor”) regenerates it
  • If this fails, stations will contend to be the new active monitor
  • Bonus Question : How do you determine who gets to be the new active monitor?
    • Node with the highest MAC address wins.

LAN BRIDGING

  • Allows two or more network segments to create an aggregate network
  • Simply forward received frames (as opposed to routers, which route them)

SPANNING TREE ALGORITHM

  • Creates a loop-free connected graph for bridges to communicate
  • Node with lowest MAC is root; low MAC addresses break ties
  • Each node remembers shortest path to the root it sees

RFID

  • Store a serial number or other small amount of data
  • Passive tags: reflect back radio waves
  • Active tags: broadcast signals when woken up by nearby readers

ROUTING BASICS

  • Distributed algorithm to determine efficient paths in a network
  • Distributed approach
    • Distance vector algorithm
    • Link-state algorithm

LINK-STATE ALGORITHM

  • Each node floods out packets identifying its neighbors and the metrics for the link with each neighbor (its “link state”)
  • Nodes construct a map of network connectivity
  • Nodes calculate the shortest path to every possible destination (usually with Dijkstra’s algorithm)
  • These paths are put into a routing table
  • Requires more processing power/logic to calculate link properties/metrics

BORDER GATEWAY PROTOCOL (BGP)

  • Deals with routes between “autonomous systems”
  • Routers exchange information about routes to nodes
  • Routers maintain a shortest path vector for other routers
  • BGP must be manually configured; no discovery, and often based on policy