Professional Documents
Culture Documents
Gige For The MSR: Fred Kuhns Fredk@Arl - Wustl.Edu
Gige For The MSR: Fred Kuhns Fredk@Arl - Wustl.Edu
Gige For The MSR: Fred Kuhns Fredk@Arl - Wustl.Edu
Fred Kuhns
fredk@arl.wustl.edu
fredk@arl.wustl.edu Washington
WASHINGTON UNIVERSITY IN ST LOUIS
Ethernet Forwarding Scenario 1
Packet arrives with
IP: 192.163.204.2
Destination Addr:
MAC: 08:00:20:7C:E3:25
destination
IP: 192.163.204.3
host
MAC: 08:00:20:7C:F2:45
on local
IP: 192.163.150.3
MAC: 08:00:20:54:6C:4A
192.168.204.2 network. Output port must
IP hdr Host Host Host
P3data map destination IP address
to MAC address.
Ethernet Ethernet
MSR P1
Switch Switch
Port 1: P0
IP: 192.163.204.2 Use theRouter
Address P1 Resolution
MAC: 00:00:5E:04:00:01 Host
Protocol
Port 0:
to Map 192.168.204.2 IP: 192.163.150.2
to192.163.204.4
IP: 08:00:20:7C:E3:25. MAC: 00:40:33:A3:4C:04
MAC: 00:01:03:7C:23:03
Encapsulation
Port 1: datagram in
IP: 192.163.150.1
Ethernet frame and send.
MAC: 00:01:03:7C:56:34
IP Source Address
IP Destination Address
Datagram
Transport Header
IP
Fred Kuhns - 1/9/01 Washington
WASHINGTON UNIVERSITY IN ST LOUIS
4
IP Encapsulation in Ethernet Frames
• Ethernet frame size: 64 - 1518 Bytes
• if type 1500, then IEEE frame, otherwise Ethernet V2.
Ethernet Encapsulation, RFC 894
type Pad
dst address (6) src address (6) Data (46-1500) (0-46) FCS (4)
0800
0 len 1500
dst address src address type has pas hl pl op sha spa tha tpa FCS
pad
ff:ff:ff:ff:ff:ff <eth-A> 08060001 0800 6 4 01 <eth-A> <ip-A> <??> <ip-B> xx
18 Byte Pad
ARP Reply Reply (02)
dst address src address type has pas hl pl op sha spa tha tpa FCS
pad
<eth-A> <eth-B> 806 1 800 6 4 02 <eth-B> <ip-B> <eth-A> <ip-A> xx
Datagram
Destination Address
IP
Options ??
Link Interface
add shim
rem shim
shim
FIPL
... ... proc.
IP1 MAC1
No ARP entry aging!
... ...
IP Header
IPM MACM
Ethernet
FPX/SPC
data IP Header
From
AAL5 trailer
VIN Table - 4 entries data
VC MyIP NhIP
50 MyIP0 0 Add Ethernet header
51 MyIP0 NhIP0 using the derived
52 MyIP1 NhIP1 destination address
53 MyIP2 NhIP2 and out source address.
To a next hop router Protocol is IP.
NH #1 = Base + 1 = 51 if VC != 50, Software creates
NH #2 = Base + 2 = 52 Lookup VC in VIN table at boot
VIN table time by writing to
NH #3 = Base + 3 = 53 returns IP used interface.
for ARP lookup
(support N = 4)
... ...
if (eth->arp->pas != IP/0800) Drop Frame
IPM MACM update {eth->arp->spa, eth->arp->sha} in ARP table
if (eth->arp->tpa NOT in {MyIP0, MyIP1, MyIP2})
Drop Frame // target IP not ours to FPX/SPC
if (eth->arp->op == Request/01) { Base VC
Ethernet swap source and target ARP info
To FPX/SPC
IP Header set operation to Reply
set ether header src and dst address IP Header
data send reply
data
}
// Already handled eth->arp->op == Reply/02 AAL5 trailer
// when updated cache above
else if (eth->type == IPv4)
remove ethernet header, padding and CRC
add AAL5 trailer and required padding
break into cells and send on default Base VC
else
Error, drop packet