Docsity

Computer Networks Course Review, Study notes of Wireless Networking

Toggle sidebar
bg1
1
Computer)Networks)
Course)Review)
(12)weeks)in)80)minutes))
1
Final)exam)and)course)logis?cs)
• April)27,)next)Wed)
– 10:30AMG12:30PM,)in)CSE)1670)
– Open)book,)open)notes,)calculator)allowed)
– Expect)roughly)the)same)length)as)the)prac?ce)final)
(solu?on)posted))
– Material:)cumula?ve)
• Midterm)material)included)
• Grading)
– HW2)graded,)available)outside)my)door)later)by)tomorrow)
– PA3)graded)
– PA4’s)face)to)face)grading)to)be)scheduled)via)email)
– Reminder:)HW3)is)due)this)Wed)
• Solu?on)to)HW2)is)available)online)
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28

Partial preview of the text

Download Computer Networks Course Review and more Study notes Wireless Networking in PDF only on Docsity!

Computer Networks

Course Review

(12 weeks in 80 minutes)

1

Final exam and course logis?cs

  • April 27, next Wed
    • 10:30AM-­‐12:30PM, in CSE 1670
    • Open book, open notes, calculator allowed
    • Expect roughly the same length as the prac?ce final (solu?on posted)
    • Material: cumula?ve
      • Midterm material included
  • Grading
    • HW2 graded, available outside my door later by tomorrow
    • PA3 graded
    • PA4’s face to face grading to be scheduled via email
    • Reminder: HW3 is due this Wed
  • Solu?on to HW2 is available online

Final exam topics

• Focus on concepts, understanding and

applica?on of main ideas

• Important topics

  • Network security
  • Transport layer
  • Mul?media networking
  • Wireless networking
    • Media access control
  • Mobile networking

Think at two levels

  • Protocols (Details of protocols may change!)
    • HTTP, SMTP, FTP, DNS, RTP, RTCP, RSVP, SNMP, SIP, H323, MobileIP
    • UDP, TCP, ICMP
    • BGP, RIP, OSPF, (link-­‐state, distance-­‐vector, path-­‐vector)
    • IP, ARP
    • CSMA/CD (CA), MPLS, CDMA, FDMA
  • Principles/concepts ( fundamental to network design)
    • Packet switching, conges?on control, flow control,
    • Caching/replica?on, layering (level of indirec?on), mul?plexing
    • Hierarchical structure, signaling, pipelining, error coding
    • End to end principle, virtualiza?on, randomiza?on

Topics

  • Link layer:
    • Ethernet and CSMA/CD
    • Wireless protocols and CSMA/CA
    • Spanning tree, switching and bridging
    • Transla?ng addrs: DHCP and ARP
  • Network layer:
    • IPv4, addressing, and forwarding
    • IP rou?ng
      • Link-­‐state and distance vector
      • BGP: path vector, policies
    • IP mul?cast and anycast
    • Middleboxes: NATs, firewalls
    • Tunneling: MPLS, IPSec
    • Addt. Considera?ons: mobility
      • Transport layer:
        • Socket interface
        • UDP
        • TCP
          • Reliability
          • Conges?on Control
        • Reliable mul?cast
      • Applica?on layer:
        • Transla?ng names: DNS
        • HTTP and CDNs
        • Overlay networks 7

Link Layer

8

Link-­‐Layer Services

• Encoding

  • Represen?ng the 0s and 1s

• Framing

  • Encapsula?ng packet into frame, adding header

and trailer

  • Using MAC addresses, rather than IP addresses

• Error detec?on

  • Errors caused by signal aeenua?on, noise.
  • Receiver detec?ng presence of errors 9

Mul?ple Access Protocol

• Single shared broadcast channel

  • Avoid having mul?ple nodes speaking at once
  • Otherwise, collisions lead to garbled data

• Mul?ple access protocol

  • Distributed algorithm for sharing the channel
  • Algorithm determines which node can transmit

• Classes of techniques

  • Channel par??oning: divide channel into pieces
    • Time-­‐division mul?plexing, frequency division mul?plexing
  • Taking turns: passing a token for right to transmit
  • Random access: allow collisions, and then recover 10

Wireless: Avoidance, Not Detec?on

• Collision detec?on in wired Ethernet

  • Sta?on listens while transmigng
  • Detects collision with other transmission
  • Aborts transmission and tries sending again

• Problem #1: cannot detect all collisions

  • Hidden terminal problem
  • Fading

• Problem #2: listening while sending

  • Strength of received signal is much smaller
  • Expensive to build hardware that detects collisions

• So, 802.11 does not do collision detec?on

13

Medium Access Control in 802.

  • Collision avoidance, not detec?on
    • First exchange control frames before transmigng data
      • Sender issues ā€œRequest to Sendā€ (RTS), including length of data
      • Receiver responds with ā€œClear to Sendā€ (CTS)
    • If sender sees CTS, transmits data (of specified length)
    • If other node sees CTS, will idle for specified period
    • If other node sees RTS but not CTS, free to send
  • Link-­‐layer acknowledgment and retransmission
    • CRC to detect errors
    • Receiving sta?on sends an acknowledgment
    • Sending sta?on retransmits if no ACK is received
    • Giving up aker a few failed transmissions (^) 14

Scaling the Link Layer

  • Ethernet tradi?onally limited by fading signal

strength in long wires

  • Introduc?on of hubs/repeaters to rebroadcast
  • S?ll a maximum ā€œlengthā€ for a Ethernet segment
  • Otherwise, two nodes might be too far for carrier sense to detect concurrent broadcasts
  • Further, too many nodes in shorter Ethernet can

yield low transmissions rates

  • Constantly conflict with one another 15

Bridges/Switches: Traffic Isola?on

  • Switch breaks subnet into LAN segments
  • Switch filters packets
    • Frame only forwarded to the necessary segments
    • Segments can support separate transmissions hub hub hub switch/bridge segment (^) segment segment 16

Solu?on: Spanning Trees

  • Ensure the topology has no loops
    • Avoid using some of the links when flooding
    • … to avoid forming a loop
  • Spanning tree
    • Sub-­‐graph that covers all ver?ces but contains no cycles
    • Links not in the spanning tree do not forward frames 19

Evolu?on Toward Virtual LANs

  • In the olden days…
    • Thick cables snaked through cable ducts in buildings
    • Every computer they passed was plugged in
    • All people in adjacent offices were put on the same LAN
    • Independent of whether they belonged together or not
  • More recently…
    • Hubs and switches changed all that
    • Every office connected to central wiring closets
    • Oken mul?ple LANs ( k hubs) connected by switches
    • Flexibility in mapping offices to different LANs Group users based on organizational structure, rather than the physical layout of the building. (^20)

Example: Two Virtual LANs

Red VLAN and Orange VLAN Switches forward traffic as needed R O RO R R R R (^) O O O R O R R O O O 21

Network Layer

22

Hierarchical Addressing: IP Prefixes

• IP addresses can be divided into two por?ons

  • Network (lek) and host (right)

• 12.34.158.0/24 is a 24-­‐bit prefix

  • Which covers 2^8 addresses (e.g., up to 255 hosts) 25

Network (24 bits) Host (8 bits)

Classful Addressing

• In the olden days, only fixed alloca?on sizes

  • Class A: 0*
    • Very large /8 blocks (e.g., MIT has 18.0.0.0/8)
  • Class B: 10*
    • Large /16 blocks (e.g,. Princeton has 128.112.0.0/16)
  • Class C: 110*
    • Small /24 blocks (e.g., AT&T Labs has 192.20.225.0/24)
  • Class D: 1110*
    • Mul?cast groups
  • Class E: 11110*
    • Reserved for future use

• This is why folks use doeed-­‐quad nota?on!

26

CIDR: Hierarchal Address Alloca?on

27 12.0.0.0/ 12.0.0.0/ 12.254.0.0/ 12.1.0.0/ 12.2.0.0/ 12.3.0.0/

12.3.0.0/ 12.3.1.0/ : : 12.3.254.0/ 12.253.0.0/ 12.253.32.0/ 12.253.64.0/ 12.253.96.0/ 12.253.128.0/ 12.253.160.0/

  • Prefixes are key to Internet scalability
    • Address allocated in contiguous chunks (prefixes)
    • Routing protocols and packet forwarding based on prefixes
    • Today, routing tables contain ~200,000 prefixes (vs. 4B)

Two types of addresses

• Provider independent (from IANA)

• Provider allocated (from upstream ISP)

• Provider allocated addresses seem to offer

more poten?al for aggrega?on (and reducing

rou?ng table size), but not always so…

28

CIDR Makes Packet Forwarding Harder

  • Forwarding table may have many matches
    • E.g., entries for 201.10.0.0/21 and 201.10.6.0/
    • The IP address 201.10.6.17 would match both!
    • Use Longest Prefix Matching
  • Can lead to rou?ng table expansion
    • To sa?fy LPM, need to announce /23 from both 1 and 2 31 201.10.0.0/ 201.10.0.0/22 201.10.4.0/24 (^) 201.10.5.0/24 201.10.6.0/ Provider 1 Provider 2

Two types of addresses

• Provider independent (from IANA)

• Provider allocated (from upstream ISP)

• Provider allocated addresses seem to offer

more poten?al for aggrega?on (and reducing

rou?ng table size), but not always so…

  • Mul?-­‐homing a PA address
  • Traffic engineering between mul?ple links to

same single provider

32

Internet-­‐wide Internet Rou?ng

• AS-­‐level topology

  • Des?na?ons are IP prefixes (e.g., 12.0.0.0/8)
  • Nodes are Autonomous Systems (ASes)
  • Edges are links and business rela?onships 33 1 2 3 4 5 7 6

Client

Web server

Intradomain rou?ng

(Interior Gateway Protocol – IGP)

Link-­‐state:

  • Keep complete map of all links
  • Fast convergence
  • Node can adver?se incorrect link cost
  • Each node computes only its own table
  • OSPF, IS-­‐IS, …

Distance Vector:

  • Keep only next-­‐hop and cost informa?on for each des?na?on
  • Convergence ?me varies (can be loops, count-­‐to-­‐infinity)
  • DV node can adver?se incorrect path cost
  • Each node’s table used by others (error propagates)
  • RIP, … 34

BGP Policy: Applying Policy to Routes

• Import policy

  • Filter unwanted routes from neighbor
    • E.g. prefix that your customer doesn’t own
  • Manipulate aeributes to influence path selec?on
    • E.g., assign local preference to favored routes

• Export policy

  • Filter routes you don’t want to tell your neighbor
    • E.g., don’t tell a peer a route learned from other peer
  • Manipulate aeributes to control what they see
    • E.g., make a path look ar?ficially longer than it is 37

Customer-­‐Provider Rela?onship

• Customer needs to be reachable from everyone

  • Provider tells all neighbors how to reach the customer

• Customer does not want to provide transit service

  • Customer does not let its providers route through it 38 d d provider customer customer provider Traffic to the customer Traffic from the customer announcements traffic

Peer-­‐Peer Rela?onship

• Peers exchange traffic between customers

  • AS exports only customer routes to a peer
  • AS exports a peer’s routes only to its customers
  • Oken the rela?onship is seelement-­‐free (i.e., no $$$) 39 peer peer Traffic to/from the peer and its customers d announcements traffic

Iden?fy the peer/transit links!

40 1 2 3 4 5 7 6

Client

Web server