Our Course: Prof. David Hay Rothberg A - 411 Dhay@cs - Huji.ac - Il
Our Course: Prof. David Hay Rothberg A - 411 Dhay@cs - Huji.ac - Il
Course
Lectures
twice
a
week
Introduction
1-1
Introduction
Calendar
1-2
Syllabus
March
Monday
Tuesday
Wednesday
Thursday
10
11
12
15
16
17
18
19
Design
principles
Scheduling
algorithms
for
packet
switches
Packet
classicaVon
(algorithms/hardware)
AcVve
queue
management
(=buer
management)
April
Passover Vacation
12
13
14
15
16
19
20
21
22
23
26
27
28
29
30
Introduction
Introduction
1-4
Syllabus
Course Material
Switches
Routers
Firewalls
Network
Intrusion
DetecVon
Systems
(NIDS)
Interdisciplinary
subject
System
design
Hardware
Algorithms
Queuing
Networking
Introduction
1-6
001100
011001
110101
11011
Data
Head
Head
http://www.adalovelace.com
http://www.adalovelace.com
Ada Lovelace
DeniVons
Juniper T640
Capacity: 640Gb/s
Power: 5kW
0.5 m
Capacity: 320Gb/s
Power: 3kW
0.5 m
3
4
5
6
7
1.8 m
0.9 m
0.6 m
0.75 m
Data
Header
01000111100010101001110100011001
1. Internet Address
2. Age
3. Checksum to protect header
Barebones Router
Barebones Router
Barebones Router
Boilenecks
Memory, memory,
R
R
R
R
R
R
R
R
3
Bottlenecks
Nx
R
1xR
Arbiter
Arbiter
44thth
GGeneration
eneraVon
Router
Router
Mul$rack;
op$cs
inside
Multirack;
optics
inside
Juniper TX
TX
Optical links
Avici TSR
Cisco CRS-1
100s
of metres
Linecards
Switch
th
GeneraVon
Router?
(Future)
4th5Generation
Router
Op$cal
switch
fabricinside
Multirack;
optics
16
14
Power (kW)
12
Optical links
10
8
6
4
2
100s
of metres
0
1990 1993 1996 1999 2002 2003 2004
Linecards
Optical
Switch
10 Tb/s
Larger
Bandwidth
100 Gb/s
1 Gb/s
x 5 every 3 years
Bandwidth-Hungry
Applications
10 Mb/s
1987
1990
1993
1996
1999
2002
2005
2008
29
30
a
Explosion
of
complexity
in
routers
Boilenecks
Memory, memory,
Firewall, ACL
34
Line
40B
packets
(Mpkt/s)
622Mb/s
2.5Gb/s
10Gb/s
40Gb/s
1.94
7.81
31.25
125
Technology
Single
chip
density
$/chip
($/MByte)
Access
speed
Watts/
chip
Networking
DRAM
64 MB
$30-$50
($0.50-$0.75)
40-80ns
0.5-2W
SRAM
4 MB
$20-$30
($5-$8)
4-8ns
1-3W
TCAM
1 MB
$200-$250
($200-$250)
4-8ns
15-30W
Note: Price, speed and power are manufacturer and market dependent.
Numbers are a bit outdated but give the general idea
10
IP Addressing
17
134
255.17.134.0
Dotted quad notation
4 memory accesses
Class A
Class B
Class C
Classful Addresses
11
:
:
:
12.254.0.0/16
:
:
:
12.3.0.0/24
12.3.1.0/24
:
:
12.3.254.0/24
200.23.16.0/23
Organization 1
200.23.18.0/23
Organization 2
200.23.20.0/23
Organization 7
12.253.0.0/19
12.253.32.0/19
12.253.64.0/19
12.253.96.0/19
12.253.128.0/19
12.253.160.0/19
.
.
.
.
.
.
Fly-By-Night-ISP
Send me anything
with addresses
beginning
200.23.16.0/20
Internet
200.23.30.0/23
ISPs-R-Us
Send me anything
with addresses
beginning
199.31.0.0/16
Classless Forwarding
IP Address : 12.4.0.0
Address
IP Mask: 255.254.0.0
Destination =12.5.9.16
------------------------------payload
Prefix
Mask
for hosts
OK
better
Next Hop
Interface
0.0.0.0/0
10.14.11.33
Output-port 1
12.0.0.0/8
10.14.22.19
Output-port 2
even better
12.4.0.0/15 10.1.3.77
Output-port 3
best!
12.5.8.0/23 10.1.3.23
Output-port 4
IP Forwarding Table
12
Problem DeniVon
192.2.2/24, R3
192.2.0/22, R2
LPM in IPv4
192.2.2/24
192.2.0/22 200.11.0/22
Network Address
200.11.0/22, R4
Exact match
against prefixes
of length 2
192.2.0.1 192.2.2.100200.11.0.33
LPM: Find the most specific route, or the longest
matching prefix among all the prefixes matching the
destination address of an incoming packet
Priority
Encode
and pick
Port
Exact match
against prefixes
of length 32
13