Computer Networks (Final)

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/35

flashcard set

Earn XP

Description and Tags

Lecture 12 and beyond (for final; I don't remember if it's cumulative).

36 Terms

1
New cards

Network layer

  • Highest level layer that is present in hosts and routers

  • performs addressing, forwarding, and routing, etc.


2
New cards

Autonomous System/Domain

region of a network under a single administrative entity (routers/switches); can make decisions within itself as long as everyone uses IP routing protocol; assigned unique identifier (ASN)

3
New cards

Local forwarding

directing a packet to the correct interface so that it progresses to its destination via reading address from packet header & search forwarding table (in memory)

4
New cards

Global routing

Setting up network-wide forwarding tables to enable end-to-end communication

5
New cards

Forwarding (data plane)

directing one data packet and each router uses local routing state

6
New cards

Routing (control plane)

compute the forwarding tables that guide packets

  • jointly computed by routers using a distributed system


7
New cards

IP packet header/IP header

present in all devices

  • IP version number (4 bits), packet length (16 bits)

  • destination’s IP address (32 bits)

  • TTL (8 bits)

  • checksum (16 bits)

  • fragmentation fields (32 bits)

  • ToS (8 bits), options (variable length)


<p>present in all devices</p><ul><li><p>IP version number (4 bits), packet length (16 bits)</p></li><li><p>destination’s IP address (32 bits)</p></li><li><p>TTL (8 bits)</p></li><li><p>checksum (16 bits)</p></li><li><p>fragmentation fields (32 bits)</p></li><li><p>ToS (8 bits), options (variable length)</p></li></ul><p></p>
8
New cards

IP header checksum

router discards if checksum is invalid; checksum recalculated at every router

9
New cards

ToS (Type of Service)/Differentiated Service

allows packets to be treated differently based on needs (e.g. indicate priority, congestion notification)

10
New cards

IP header option field examples

  • record route

  • strict source route

  • loose source route

  • timestamp


11
New cards

IP header protocol byte

tells destination what to do with the received packet (transport layer protocol)

12
New cards

IPv4 fragmentation fields

  • identifier: which fragments belong together

  • flags: (reserved: ignore, DF: don’t fragment, MF: more fragments coming)

  • offset: portion of original payload this fragment contains


13
New cards

Router capacity

number of external router ports * speed of a port

14
New cards

What’s inside a router?

linecards & interconnect/switching fabric

<p>linecards &amp; interconnect/switching fabric</p>
15
New cards

Input linecard

  • Receive incoming packets (physical layer)

  • update the IP header

  • lookup the output port for the destination IP address

  • queue the packet at the switch fabric


16
New cards

Router hardware processing

  • packet classification: map packets to flows

  • buffer management: decide when and which packet to drop

  • scheduler: decide when and which packet to transmit


17
New cards

Max-min fairness

How round-robin routers attempt to service flows in a fair fashion assuming packets are of same size

<p>How round-robin routers attempt to service flows in a fair fashion assuming packets are of same size</p>
18
New cards

Fair queuing

How round-robin routers attempt to service flows fairly with packets of varyinig sizes

19
New cards

Explicit Congestion Notification

packet header, set by congested routers (serves as early indicator of congestion to avoid delays)

20
New cards

Valid routing state

  • produces forwarding decisions that always deliver packets to their destinations

  • no dead ends & no loops


21
New cards

Flooding

node sends its link-state info (edge + cost to reach) out on all of its links, the next node forwards the info on all of its links (except the one the info originated from)

22
New cards

What causes flooding?

  • topology change (e.g. link/node failure/recovery)

  • configuration change (e.g. link cost change)

  • periodically


23
New cards

Link-state routing protocols

  • OSPF: open shortest path first (uses IP as opposed to TCP or UDP)

  • IS-IS: intermediate system to intermediate system


24
New cards

Distance vector routing protocol

each node tells its neighbors about its global view

25
New cards

Link-state routing protocol

each node broadcasts its local information

26
New cards

Border Gateway Protocol

extends distance-vector ideas to accommodate policy (autonomy, policy, privacy)

27
New cards

IP addressing hierarchy

Network: 23 bits prefix (inter-domain routing uses this)

Host: 9 bits suffix

<p>Network: 23 bits prefix (inter-domain routing uses this)</p><p>Host: 9 bits suffix</p>
28
New cards

Subnet mask

a group of machines that share the same IP address prefix

29
New cards

BGP route selection

controls whether/how traffic leaves the network

<p>controls whether/how traffic leaves the network</p>
30
New cards

BGP route export

controls whether/how traffic enters the network

<p>controls whether/how traffic enters the network</p>
31
New cards

Gao-Rexford

rules for determining how to export routes

<p>rules for determining how to export routes</p>
32
New cards

eBGP sessions

sessions between border routers in different ASes (learn routes to external destinations)

33
New cards

iBGP session

sessions between border routers and other routers within the same AS (distribute externally leraned routes internally)

34
New cards

IGP (Interior Gateway Protocol)

provide internal reachability

35
New cards

Messages in BGP

  • open: establishes BGP session (it uses TCP)

  • notification: report unusual conditions

  • update: inform neighbor of new routes & old routes that become inactive

  • keep-alive: inform neighbor that connection is still viable


36
New cards

Route selection priority order

based on the attributes provided in BGP, it determines which route is chosen

<p>based on the attributes provided in BGP, it determines which route is chosen</p>