Tutorial 1 - Introduction
Tutorial 1 - Introduction
Introduction
SoCP Tutorial 1
To give you an idea of the environment in which networking devices are situated, we will investigate some key figures of current LAN/WAN transmission standards.
Solution 1:
a) Ethernet II (DIX; DEC, Intel, Xerox): PRE 7 56 SFD DA 1 8 6 48 SA 6 48 Type Data 2 16 46-1500 368-12000 FCS IFG 4 32 12 96 bytes bit
Minimum frame: 72 (64) byte, 46 byte payload, (ratio: 63.9%, 54.7% w/ IFG) Maximum frame: 1526 (1518) byte, 1500 byte payload, (ratio: 98.3%, 97.5%) IEEE 802.3, identical except for Type, which is Length (2 bytes) => 802.2 SNAP as additional protocol necessary b) Mimimum frame size (w/IFG): 84 byte=672 bit per frame Frame rate: 100 Mbit/s / 672 bit/frame = 148,809.5 frames/s Data rate: 148,809.5 frames/s * (46*8) bit/frame = 54.76 Mbit/s see ratio! Maximum frame size: 100 Mbit/s / 12304 bit/frame * 12000 bit/frame = 97.53 Mbit/s 1 Institute for Integrated Systems, Technische Universitt Mnchen, 2013
SoCP Tutorial c) 1 Gbit/s: same frame format, constant overheads => scaling to 975.3 Mbit/s (@ max frame size) and 547.6 Mbit/s (@ min frame size) 10 Gbit/s: still same overheads => 9.753 Gbit/s (@ max frame size) 5.476 Gbit/s (@ min frame size)
Introduction
d) 100 Mbit/s: 100 Mbit/s / (84*8) bit/frame = 148,810 frames/s => IAT: 6.72 s 1 Gbit/s: 1000 Mbit/s / (84*8) bit/frame = 1,488,100 frames/s => IAT: 672 ns 10 Gbit/s: 10 Gbit/s / (84*8) bit/frame = 14,880,952 frames/s => IAT: 67.2 ns Processing budget in cycles for a 200 MHz circuit (5 ns): 100 Mbit/s: 1,344 cycles, 1 Gbit/s: 134 cycles, 10 Gbit/s: 13 cycles
SoCP Tutorial
Introduction
Solution 2:
a)
9 byte 1 byte 260 byte
OAM
P O H
Payload
9 rows
Total: 270*9*8 bit / 125 s = 155.520 Mbit/s Payload: 260*9*8 bit / 125 s = 149.760 Mbit/s b) 10*9*8 / 270*9*8 = 3.7% for STM-1 10*9*8*64 / 270*9*8*64 = 3.7% for STM-64 c) ATM-Cell:
5 byte Header 48 byte Payload
40 byte TCP/IP packet: AAL5 PDU contains 40B packet+8B trailer and fits into one 53B ATM cell => 40B/53B = 75.47% 46 byte TCP/IP packet (could come from an Ethernet frame): AAL5 PDU contains 46B packet+42B padding+8B trailer and fits into 2 ATM cells => 46B/106B = 43.40% 1500 byte TCP/IP packet: AAL5 PDU contains 1500B packet+28B padding+8B trailer and fits into 32 ATM cells => 1500B/(32*53B)=88.44% d) STM-256 payload rate: 256*260*9*8 bit/125 s = 38.338560 Gbit/s The payload is now filled with 40 byte or 1500 byte encapsulated payloads (efficiency from c)): 40 byte: 75.47% * 38.338560 Gbit/s = 28.93 Gbit/s 1500 byte: 88.44% * 38.338560 Gbit/s = 33.91 Gbit/s 3 Institute for Integrated Systems, Technische Universitt Mnchen, 2013
SoCP Tutorial e) Processor clock period: 1/800 MHz = 1.25 ns 40 byte packets: coming in at 28.93 Gbit/s from the framers Time budget: 40*8 bit / 28.93 Gbit/s = 11.06 ns per packet 16 processors: 16*floor(11.06 ns/1.25 ns)=128 cycles 1500 byte packets: coming in at 33.91 Gbit/s from the framers Time budget: 1500*8 bit / 33.91 Gbit/s = 353.88 ns per packet
Introduction
16 processors: 16*floor(353.88 ns/1.25 ns)=4,528 cycles, which is far more relaxed than for the 40B packets!