Direct link multi-access networks - Communication Systems Group

Direct link multi-access networks - Communication Systems Group Direct link multi-access networks - Communication Systems Group

<strong>Direct</strong> <strong>link</strong> <strong>multi</strong>-<strong>access</strong> <strong>networks</strong>1


Problem statementHow can we co-ordinate <strong>multi</strong>ple independent senders andreceivers that use a shared medium for data exchange?Various solutions may be considered• Distributed or centralized co-ordination• Pre-allocate medium to each sender (synchronous TDMA)• Allocate medium on demand– Constant frame lengths (cell-based approaches, e.g.Asynchronous Transfer Mode - ATM)– Variable frame lengths (e.g. Local Area Network – LAN)• Random <strong>access</strong>, contention-based (e.g. Ethernet)• Reservation-based (e.g. Token Ring)• LAN technology: distributed, on-demand, variable framelength2


Typical properties of LANs• Span a room or a building (10 m to 2.5 km)• 10-50 computers connected to one LAN• Raw transmission rate (channel encoding) 10-1000 Mbit/s• Cheap adapters available (CHF 15 and up)• Build and operate it yourself• New computers may be connected easily• Standardized equipment, products from different vendorsare compatible (IEEE 802.x series of standards)3


Issues to be considered• Performance: f(number of stations, traffic load, trafficcharacteristics, parameters of medium)– Total throughput– Throughput of each station– Medium <strong>access</strong> delay• Fairness: Does every station receive a similar service?5


Aloha medium <strong>access</strong> algorithm/* send one frame */repeatsend(data)r=receive()if r ack thenwait_random_timeenduntil r=ack6


Model for the Aloha medium <strong>access</strong> algorithmS = Gp erferfolgreichsuccessgesendetSenden einesSend kollidierten framePaketswith p=q(mitWahrsch. q rr)idle freiNeuzugang New frame (mitWahrsch. with p=q q aa)A = λmG = λ 1msending sendenbackloggedKollision collision7


Model for CSMAerfolgreichsuccessgesendetidlefreiNeuzugang New frame(mitWahrsch. with p=q q aa)Senden einesSend kollidierten framePakets with p=q (mit rWahrsch. q r)Kan.prüfencheckKan.Channel availablefreisendingsendenbackloggedKanal chan.occupiedbesetztcollisionKollision10


Vulnerable interval with CSMAP1(A)ABP1(B)xτ = t p+ t Dτ = t p+ t Dvulnerable verletzliches interval Intervall2 τt11


Performance tuning of CSMAMaximum throughput isroughly indirectlyproportional to β:β = τ /m = (τ ∗ C) / Lτ: Propagation delay [s]m: Frame length [s]L: Frame length [bit]C: Transmission rate [bit/s]For good performance, βshould be


Variants of CSMAfree:occ.:sendwait until free, thensendMonitor the mediumbefore <strong>access</strong>ing itpersistentCSMA CSMAnonpersistentnon-p-persistentIf transmission unsuccessful: collision.Repeat after random waitfree:occ:free:occ:sendwait random time,then re-testmedium; send iffreesend withprobability pwait till free, thensend withprobability p13


Ethernet: CSMA with Collision Detection(CSMA/CD)• Stations can onlydetect collisionsreliably if frame hasminimum length• Jamming signal makessure that everystation knows thatthe channel is in acollision state• Random wait timeincreasesexponentially withrepeated collisionsBinary ExponentialBackoffA detectscollisioncollisionknown to allpartiesA repeatsframe afterrandom waittABx14


CSMA/CD AlgorithmBinaryExponentialBackoff/* send one frame */t=1Repeatwait_channel_available()r=monitor_while_sending(data)if r = collision thenwait_random_time(t)t=2*tenduntil r=success15


Achievable throughput for various variants16


Throughput with different b10.8Vergleich CSMA mit CSMA/CD, beta=0.01 resp. 0.1CSMA/CDS0.60.40.2CSMACSMA/CDCSMA00 50 100 150 200 250 300G17


Medium <strong>access</strong> delay increases with load18


Ethernet history• Developed at Xerox Palo Alto Research Center (PARC)• Patent see http://www.delphion.com/details?pn=US04063220__(1st page)• CSMA/CD medium <strong>access</strong> control algorithm• Industry standard set by DEC, Intel, Xerox (DIX), 1978• Standardized by IEEE (802.3) and ISO (8802-3)• Variants:– (3 Mbit/s) 10 Mbit/s, 100 Mbit/s, 1 Gbit/s– Thick coax, thin coax, STP, UTP, fiber– Segment lengths: 500 m, 200 m, 100 m– Baseband and modulated carrier versions• Ethernet is a success story19


IEEE 802.x standard architecturenetworklogical <strong>link</strong> control (LLC)medium <strong>access</strong> control (MAC)<strong>link</strong>physicalmediummedium20


IEEE 802.3 service interfaces• MAC sub-layer– Connectionless, unreliable– unicast, <strong>multi</strong>cast, and broadcast addressing– FCS checked• LLC sub-layer– Type 1: connection-less, unreliable, all addressing modes– Type 2: connection-oriented, reliable, flow control, …– Type 3: connection-less, request / response type of service21


CSMA/CD Frame Format7 1 2/6 2/6 2 max. 1500 max. 46 4 (byte)preambleSFDDASA length payload pad fcspreamble:SFD:DA:SA:length:payload:pad:FCS:Bit synchronizationByte synchronizationDestination addressSource addressLength of payloadUpper layer frameTo fill up a short frame32-Bit CRC for error detection22


CSMA/CD frame format7 1 2/6 2/6 2 max. 1500 max. 46 4preambleSFDDASA length payload pad fcsInterim DIX Ethernet frame format7 1 2/6 2/6 2 max. 1500, min. 46 4preambleSFDDASAtypepayloadfcs23


Technical realizations24


Current technology• Shared medium: Realized as a hub with UTP unshieldedtwisted pair cabling• Not more than 4 hubs in between any station in the network• Network diameter max. 500 m• 10 Mbit/s, 100 Mbit/s, (1000 Mbit/s)• Hubs are being replaced by switches in professionalenvironments25


Hubs vs. LAN Switches– At similar locations in <strong>networks</strong>.– Hubs repeat all packets while switches examine all of them.– Switches require address examination and forwarding.• Store-and-forward: Analyze the entire packet.• Cut-through: Examines destination and starts forwarding.• Blocking vs. non-blocking (highly parallel) architectures.• Buffering: backpressure or large buffers.• Half-duplex and full-duplex modes (if 4-wire cables used)• CSMA/CD collision domain is greatly reduced or even eliminatedB C D EB C D EAHubFASwitchFto E26to E


Topologies (1)• Shared backboneand sharedworkgroup LANs• SwitchedBackbone(collapsedbackbone)• MultiswitchBackbone27


Topologies (2)• WorkgroupSegmentation(decentralized)• WorkgroupSegmentation(centralized)• MicroSegmentation28


Fast Ethernet• 100 Mbit/s version of Ethernet, using CSMA/CD algorithm(later addition to IEEE 802.3).– 10 times faster than “normal” Ethernet, and 10 times smaller(max. app. 200 m between stations).– Easy upgrade path from Ethernet, simply replace Ethernethubs, adapters, and driver software!– Autosensing of physical media (10/100 Mbit/s)• Works with several physical media:Physical Layer Media Types100BASE-TX 2 pairs category 5 balanced cable, or 2 pairs 150 ohmshielded balanced cable as defined by ISO/IEC11801100BASE-FX 2 <strong>multi</strong>-mode fiber as defined by ISO 9314100BASE-T44 pairs of category 3, 4 or 5 balanced cable asdefined by ISO/IEC 1180129


Gigabit Ethernet• Marketing aspect:– Term Ethernet used to hint at easy and cheap upgrade,reliability.• Theory is different:– CSMA/CD = Ethernet (historically)– If CSMA/CD is used on a shared medium, the allowable sizeof a Gigabit Ethernet segment will be rather small (roughly20 m). Shared Gbit-Ethernet is not very useful.– If CSMA/CD is not used, is it still an Ethernet?• Realistically, a Gigabit/s LAN need not be a CSMA/CDbasedLAN to grant compatibility.– Important are cost, compatibility with existing cabling, andavailability of good drivers for popular operating systems.30


Gigabit Ethernet – Objectives• IEEE 802.3z working group key objectives:– Half- and full-duplex operation at 1000 Mbit/s.– Complying with IEEE 802.3 Ethernet frame format.– Applying CSMA/CD <strong>access</strong> method. (!)– Allowing one repeater per physical collision domain.– Providing address compatibility with Ethernet and FastEthernet technologies.31


Gigabit Ethernet – Layering• New enhanced interface: GMII– Support of different physical media: 10…1000 Mbit/s.– Automated detection of media type.– State and statistics of current connections.Logical Link Control (LLC)Data Link LayerMedia Access Control (MAC)Gigabit Media Independent Interface(GMII)Physical LayerPhysical (PHY)Medium32


Gigabit Ethernet Layering and Standards33


Gigabit Ethernet – Frames• Frames compatible withclassic Ethernet.Preamble7 Byte• Preamble: 101010 … 10.• Start Delimiter: 10101011.• Padding: Even # of Bytes.• Extension used to safelydetect collisions.• Bursts: Concatenation ofmax. 65536 Byte.TransmissionStart Frame DelimiterDestination AddressSource AddressLength/TypeDataPaddingFrame Check SequenceExtension1 Byte6 Byte6 Byte6 Byte1518 Byte0/1 Byte4 Bytebit 0 bit 7MAC Frame/Extension Inter Frame MAC Frame Inter Frame MAC FrameBurst Limit34


Gigabit Ethernet – Physical Layer• Symbols are used to code MAC data:– 8B/10B coding scheme (8 bit user data/10 bit phy. data)– Code-inherent clock regeneration.– Always min 4 and max 7 state changes per symbol.– 1250 Mbaud.– Code group symbols (always different to data symbols):• Carrier Extension,• Idle,• Start-of-Packet,• End-of-Packet,• Configuration Marks, and• Violations.35


Gigabit Ethernet – Physical Media• Standard for UTP cabling accepted in June 1999 (802.3ab,1000BASE-T)• Smaller distances for fiber cabling compared to Fast Ethernet andFDDI due to dispersion.Type Cabling Waves Distance Plugs1000BASE-SX62,5 µm FiberMultimode830 nm2 – 260 mDuplex SC1000BASE-SX50,0 µm FiberMultimode830 nm2 – 550 mDuplex SC1000BASE-LX62,5 µm FiberMultimode1270 nm2 – 550 mDuplex SC1000BASE-LX50,0 µm FiberMultimode1270 nm2 – 550 mDuplex SC1000BASE-LX10,0 µm FiberMonomode1270 nm2 – 3000 mDuplex SC1000BASE-CXSTPTwinax25 mDB9 (Style 1)1000BASE-CXIEC 61076Twinax25 mIEC (Style 2)1000BASE-TUTP, Cat 5100mRJ-4536


Other wire-based LAN standards ...... are only of historical interest• IEEE 802.5 Token Ring• IEEE 802.4 Token Passing Bus• IEEE 802.6 Distributed Queue Dual Bus MAN• IEEE 802.12 Demand Priority Access (voice-grade anylan)37


Complete list of IEEE 802 LAN Standards802.1: LAN/MAN Bridging &Management (.1p, .1q)802.2 Logical Link Control*802.3 CSMA/CD Access Method(.3z)802.4 Token-Passing Bus* AccessMethod802.5 Token Ring Access Method802.6 DQDB Access Method*802.7 Broadband*802.8 Fiber Optic802.9 Integrated Services /Isochronous LAN802.10: LAN/MAN Security802.11: Wireless LAN802.12: Demand Priority AccessMethod802.13 n/a (!)802.14: Cable Modems*: inactive38

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!