1 part iv local area networks (lans). 2 classification terminology network technologies classified...

Post on 14-Jan-2016

215 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

1

Part IV

Local Area Networks

(LANs)

2

Classification TerminologyClassification Terminology

Network technologies classified into three broad categories

Local Area Network (LAN)Metropolitan Area Network (MAN)Wide Area Network (WAN)

LAN and WAN most widely deployed

3

The Local Area Network (LAN)

The Local Area Network (LAN)

Engineering classificationExtremely popular (most networks are LANs)Many LAN technologies exist

4

Key Features of a LANKey Features of a LAN

High throughputRelatively low costLimited to short distanceOften rely on shared media

5

Scientific Justification ForLocal Area Networks

Scientific Justification ForLocal Area Networks

A computer is more likely to communicate with computers that are nearby than with computers that are distant

Known as the locality principle

6

TopologyTopology

Mathematical termRoughly interpreted as “geometry for curved

surfaces”

7

Network TopologyNetwork Topology

Specifies general “shape” of a networkHandful of broad categoriesOften applied to LANPrimarily refers to interconnectionsHides details of actual devices

8

Star TopologyStar Topology

Central component of network known as hubEach computer has separate connection to

hub

9

Ring TopologyRing Topology

No central facilityConnections go directly from one computer

to another

10

Bus TopologyBus Topology

Shared medium forms main interconnectEach computer has a connection to the

medium

11

Example Bus Network: Ethernet

Example Bus Network: Ethernet

Most popular LANWidely usedIEEE standard 802.3Several generations

Same frame formatDifferent data ratesDifferent wiring schemes

12

Shared Medium in a LANShared Medium in a LAN

Shared medium used for all transmissionsOnly one station transmits at any timeStations “take turns” using mediumMedia Access Control (MAC) policy ensures

fairness

13

Illustration of Ethernet Transmission

Illustration of Ethernet Transmission

Only one station transmits at any timeSignal propagates across entire cableAll stations receive transmissionCSMA/CD media access scheme

14

CSMA/CD ParadigmCSMA/CD Paradigm

Multiple Access (MA)Multiple computers attach to shared mediaEach uses same access algorithm

Carrier Sense (CS)Wait until medium idleBegin to transmit frame

Simultaneous transmission possible

15

CSMA/CD Paradigm(continued)

CSMA/CD Paradigm(continued)

Two simultaneous transmissionsInterfere with one anotherCalled collision

CSMA plus Collision Detection (CD)Listen to medium during transmissionDetect whether another station’s signal interferesBack off from interference and try again

16

Backoff After CollisionBackoff After Collision

When collision occursWait random time t1, 0 < t1 < dUse CSMA and try again

If second collision occursWait random time t2, 0 < t2 < 2*d

Double range for each successive collisionCalled exponential backoff

17

Media Access on a Wireless Net

Media Access on a Wireless Net

Limited rangeNot all stations receive all transmissionsCannot use CSMA/CD

Example in diagramMaximum transmission distance is dStations 1 and 3 do not receive each other’s

transmissions

18

CSMA/CACSMA/CA

Used on wireless networksBoth sides send small message followed by data

transmission“X is about to send to Y”“Y is about to receive from X”Data from sent from X to Y

Purpose: inform all stations in range of X or Y before transmission

Known as Collision Avoidance (CA)

19

Identifying a DestinationIdentifying a Destination

All stations on shared-media LAN receive all transmissions

To allow sender to specify destinationEach station assigned unique numberKnown as station’s addressEach frame contains address of intended

recipient

20

Assignment of physical address

Assignment of physical address

The stations may get their address in different ways:

StaticConfigurableDynamic

21

Ethernet AddressingEthernet Addressing

Standardized by IEEEEach station assigned by unique 48-bit

addresse.g. 00:30:65:52:2E:96 in hexadecimal form

Address assigned when network interface card (NIC) manufactured (In most cases)

22

Ethernet Address Recognition

Ethernet Address Recognition

Each frame contains destination addressAll stations receive a transmissionStation discards any frame addresses to

another stationImportant: interface hardware, not software,

checks address

23

Possible DestinationsPossible Destinations

Packet can be sent to:Single destination (unicast)All stations on network (broadcast)Subset of stations (multicast)

Address used to distinguish

24

Advantages of Address Alternatives

Advantages of Address Alternatives

UnicastEfficient for interaction between two computers

BroadcastEfficient for transmitting to all computers

MulticastEfficient for transmitting to a subset of

computers

25

Broadcast on EthernetBroadcast on Ethernet

All 1s address specifies broadcast(FF:FF:FF:FF:FF:FF in hexcode)

SenderPlaces broadcast address in frameTransmits one copy on shared networkAll stations receive copy

Receive always accepts frame that contains this address

26

MulticastMulticast

Half of addresses reserved for multicastNetwork interface card

Always accepts unicast and broadcastCan accept zero or more multicast addresses

SoftwareDetermines multicast address to acceptInforms network interface card

27

Promiscuous ModePromiscuous Mode

Designed for testing / debuggingAllows interface to accept all packetsAvailable on most interface hardware

28

Identifying Frame Contents

Identifying Frame Contents

Integer type field tells recipient the type of data being carried

Two possibilitiesSelf-identifying or explicit type (hardware record

type)Implicit type (application sending data must

handle type)

29

Conceptual Frame FormatConceptual Frame Format

HeaderContains address and type informationLayout fixed

PayloadContains data being sent

30

Illustration Of Ethernet Frame

Illustration Of Ethernet Frame

Sender placesSender’s address in sourceRecipient’s address in destinationType of data in frame typeCyclic redundancy check in CRC

31

Example Ethernet TypesExample Ethernet Types

32

When Network HardwareDoes Not Include Types

When Network HardwareDoes Not Include Types

Sending and receiving computers must agreeTo only send one type of dataTo put type information in first few octets of

payloadMost systems need type information

33

Illustration of TypeInformation Added to Data

Illustration of TypeInformation Added to Data

In practiceType information small compared to data carriedFormat of type information standardized

34

A Standard For Type Information

A Standard For Type Information

Defined by IEEEUsed when hardware does not include type fieldCalled LLC / SNAP header

Logical Link ControlSubNetwork Attachment Point

35

Demultiplexing On TypeDemultiplexing On Type

Network interface hardwareReceives copy of each transmitted frameExamines address and either discards or acceptsPasses accepted frame to system software

Network device softwareExamines frame typePasses frame to correct software module

36

Network AnalyzerNetwork Analyzer

Device used for testing and maintenanceListens in promiscuous modeProduces

Summaries (e.g., % of broadcast frames)Specific items (e.g., frames from a given address)

37

Ethernet WiringEthernet Wiring

Three schemes Correspond to three generationsAll use same frame format

38

Original Ethernet WiringOriginal Ethernet Wiring

Used heavy coaxial cableFormal name 10Base5Called thicknet

39

Second Generation Ethernet Wiring

Second Generation Ethernet Wiring

Used thinner coaxial cableFormal name 10Base2Called thinnet

40

Modern Ethernet WiringModern Ethernet Wiring

Uses a hubFormal name 10Base-TCalled twisted pair Ethernet

41

Ethernet Wiring In An Office

Ethernet Wiring In An Office

42

A Note About Ethernet Topology

A Note About Ethernet Topology

ApparentlyOriginal Ethernet used bus topologyModern Ethernet uses star topology

In fact, modern Ethernet isPhysical starLogical busCalled star-shaped bus

43

Higher Speed EthernetsHigher Speed Ethernets

Fast EthernetOperates at 100 MbpsFormally 100Base-TTwo wiring standards10/100 Ethernet devices available

Gigabit EthernetOperates at 1000 Mbps (1 Gbps)Slightly more expensive

44

Another LAN Using Bus Topology

Another LAN Using Bus Topology

LocalTalkDeveloped by Apple Corp.Simple to useSlow by current standards

45

Illustration Of LocalTalkIllustration Of LocalTalk

Transceiver required per stationTransceiver terminates cable

46

Ring TopologyRing Topology

Second most popular LAN topologyBits flow in single directionSeveral technologies exist

47

Token PassingToken Passing

Used with ring topologyGuarantees fair accessToken

Special (reserved) messageSmall (a few bits)

48

Token Passing ParadigmToken Passing Paradigm

StationWaits for the token to arriveTransmits one packet around ringTransmits token around ring

When no station has data to sendToken circulates continuously

49

Token Passing Ring Transmission

Token Passing Ring Transmission

Station waits for token before sendingSignal travels around entire ringSender receives its own transmission

50

Strengths of Token Ring Approach

Strengths of Token Ring Approach

Easy detection ofBroken ringHardware failuresInterference

51

Weaknesses of Token Ring Approach

Weaknesses of Token Ring Approach

Broken wire disables entire ringPoint-to-point wiring

Awkward in office environmentDifficult to add / move stations

52

Token Passing Ring Technologies

Token Passing Ring Technologies

ProNet-10Operated at 10 Mbps

IBM Token RingOriginally operated at 4 MbpsLater version operated at 16 Mbps

Fiber Distributed Data Interconnect (FDDI)Operated at 100 Mbps

53

FDDI TerminologyFDDI TerminologyFDDI

Uses optical fibersHigh reliabilityImmune to interference

CDDIFDDI over copperSame frame formatSame data rateLess noise immunity

54

FDDI Hub TechnologyFDDI Hub Technology

Part of FDDI standardStations attach to hubSame frame format and data rate as FDDICalled star-shaped ring

55

FDDI Failure RecoveryFDDI Failure Recovery

Uses two ringsAutomatic failure recoveryTerminology

Dual-attachedCounter rotatingSelf healing

56

Illustration of FDDIFailure Recovery

Illustration of FDDIFailure Recovery

57

Another Example of aPhysical Star TopologyAnother Example of aPhysical Star Topology

Asynchronous Transfer Mode (ATM)Designed by telephone companiesIntended to accommodate

VoiceVideoData

58

ATMATM

Building block known as ATM switchEach station connects to switchSwitches can be interconnected

59

Details of ATM ConnectionDetails of ATM Connection

Full-duplex connectionsTwo fibers required

60

ATM CharacteristicsATM Characteristics

High data rates (e.g. 155 Mbps)Fixed size packets

Called cellsImportant for voice

Cell size is 53 octets48 octets of data5 octets of header

61

SummarySummary

Local Area NetworksDesigned for short distanceUse shared mediaMany technologies exist

Topology refers to general shapeBusRingStar

62

Summary (continued)Summary (continued)

AddressUnique number assigned to stationPut in frame headerRecognized by hardware

Address formsUnicastBroadcastMulticast

63

Summary (continued)Summary (continued)

Type informationDescribes data in frameSet by senderExamined by receiver

Frame formatHeader contains address and type informationPayload contains data being sent

64

Summary (continued)Summary (continued)

LAN technologiesEthernet (bus)IBM Token RingFDDI (ring)ATM (star)

65

Summary (continued)Summary (continued)

Wiring and topologyCan distinguish

Logical topologyPhysical topology (wiring)

Hub allows Star-shaped busStar-shaped ring

top related