DOC PREVIEW
CMU 15441 Computer Networking - Lecture

This preview shows page 1-2-23-24 out of 24 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 24 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 24 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 24 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 24 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 24 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

115-441 Computer NetworkingLecture 18 – Datalink and LANs10/31/2002Link layer 2Goals• Understand and services provided by the datalink layer and the the principles used to implement them.• Understand the design principles and tradeoffs of various implementations of link layer technologies.ApplicationApplicationTransportTransportNetworkNetworkDatalinkDatalinkPhysicalPhysical210/31/2002Link layer 3Outline••Physical Layer Recap.Physical Layer Recap.• Link Layer Overview.• Multiple Access Protocols.• Ethernet.• Bridges and Switches.10/31/2002Link layer 4Physical layer recap• Modulation.Put bits on the wire, i.e. convert bits into either a digital or analog signal.• Bit encoding.• Framing (Link layer).• Errors.• Detection.• Correction.310/31/2002Link layer 7e.g., switched Ethernet, ATM.Shared wire or medium; e.g., Ethernet, air (radio waves).Single wire; e.g., phone line, PPP, SLIP.SwitchedBroadcastPoint to pointLink Taxonomy10/31/2002Link layer 8Similar to point to point.Shared, resource contention.Dedicated. Half duplex or full duplexSwitchedBroadcastPoint to pointLink Speed10 Mbps10 Mbps10 Mbps10 Mbps10 Mbps56 Kbps410/31/2002Link layer 9• Channel partitioning.• Divide channel into smaller “pieces” (frequency, time slots).• Allocate piece to node for exclusive use.• “Taking turns”.• Tightly coordinate shared access to avoid collisions.• Random access.• Allow collisions.• “Recover” from collisions.Goal: efficient, fair, simple, decentralized.Sharing the media: MAC Protocols10/31/2002Link layer 10Time Division Multiple AccessTDMAWavelength Division Multiple AccessWDMAFrequency Division Multiple AccessFDMAChannel Partitioning MACProtocolsOpticalSplitterFrequencyFrequencyTimeBands510/31/2002Link layer 11Outline• Physical Layer Recap.• Link Layer.• Overview.• Services.• Multiple Access Protocols.• Ethernet.• Bridges and Switches.10/31/2002Link layer 12Link Layer: Overview• Two or more physically connected devices.• Implemented in the “adapter”.• E.g., Ethernet card, PCMCIA card.• Typically includes: RAM, DSP chips, host bus interface, and linkinterface + device driver software.HlHnHtMMHtMHnHtMMessageSegmentFramePacketHlHnHtMFramelinkapplicationtransportnetworkphysicallinknetworkphysicaldata linkprotocoladapter cardphysical link610/31/2002Link layer 13Link Layer Services• Framing and addressing. (  )• Link access. (this lecture)• Reliable delivery. (  )• Flow control. (  )• Error detection. (  )• Error correction. (  )10/31/2002Link layer 16Outline • Physical Layer Recap.• Link Layer.• Multiple Access Protocols.••“Taking Turns” (Token ring).“Taking Turns” (Token ring).• Random Access Protocol -- Ethernet CSMA/CD.• Ethernet.• Bridges and Switches.710/31/2002Link layer 17Multiple Access Protocols• Single shared communication channel.• Two or more simultaneous transmissions interference.• Only one node can send successfully at a time.• Multiple Access Protocol:• Distributed algorithm that determines how stations share channel, i.e., determine when station can transmit.• Communication about channel sharing must use channel itself!10/31/2002Link layer 19“Taking Turns”: Token Rings• Packets broadcast around ring.• Token “right to send” rotates around ring.• Every host holds token for limited time.• Fair, real-time bandwidth allocation.• Higher latency when only one sender.• High utilization: > 98%.• Higher bandwidth: Point to point links electrically simpler than bus.• Concerns:• Token overhead.• Latency.• Single point of failure (token).810/31/2002Link layer 20Outline • Physical Layer Recap.• Link Layer.• Multiple Access Protocols.• “Taking Turns” MAC and Other LANs.••Random Access Protocol Random Access Protocol -- Ethernet CSMA/CD.• Ethernet.• Bridges and Switches.10/31/2002Link layer 21Random Access Protocols• When node has packet to send:• Transmit at full channel data rate R.• No a priori coordination among nodes.• Two or more transmitting nodes  “collision”.• Random access MAC protocol specifies:• How to detect collisions.• How to recover from collisions (e.g., via delayed retransmissions).• Examples of random access MAC protocols:• Slotted ALOHA.• ALOHA.• CSMA and CSMA/CD.910/31/2002Link layer 25Ethernet• First practical local area network, built at Xerox PARC in 70’s.• “Dominant” LAN technology: • Cheap $20 for 100Mbs!• Kept up with speed race: 10, 100, 1000 Mbps .Metcalfe’s Ethernetsketch.10/31/2002Link layer 26Ethernet MAC – Carrier SenseBasic idea:• Listen to wire before transmission.• Avoid collision with active transmission.1010/31/2002Link layer 28Collisions can occur:Propagation delay means two nodes may not yet hear each other’s transmission.Collision:Entire packet transmission time wasted.Note:Role of distance and propagation delay in determining collision prob.CSMA CollisionsSpatial layout of nodes along Ethernet.10/31/2002Link layer 29Ethernet MAC – Collision DetectionBasic idea:• Listen while transmitting.• If you notice interference thenassume collision.1110/31/2002Link layer 31Ethernet MAC – CSMA/CDPacket?Sense CarrierDiscard PacketSendDetect CollisionJam channel b=CalcBackoff(); wait(b);attempts++;NoYesattempts < 16attempts == 16• Carrier Sense Multiple Access/Collision Detection.10/31/2002Link layer 34Ethernet’s CSMA/CD (more)Jam Signal: Make sure all other transmitters are aware of collision; 48 bits.Exponential Backoff:• If deterministic delay after collision, collision will occur again in lockstep.• If random delay with fixed mean:• Few senders  needless waiting.• Too many senders  too many collisions.• Goal: Adapt retransmission attempts to estimated current load.• Under heavy load the random wait is longer.1210/31/2002Link layer 35Ethernet Backoff Calculation• Exponentially increasing random delay:• Infer senders from # of collisions.• More senders  increase wait time.• First collision: choose K from {0,1}; delay is K x 512 bit transmission times.• After second collision: choose K from {0,1,2,3}.• After n <= 10 collisions: choose K from {0, …, 2n}.• After ten or more collisions, choose K from {0,1,2,3,4,…,1023}.10/31/2002Link layer 41Outline • Physical Layer Recap.• Link Layer.• Multiple Access Protocols.• Ethernet.••Minimum Packet


View Full Document

CMU 15441 Computer Networking - Lecture

Documents in this Course
Lecture

Lecture

14 pages

Lecture

Lecture

19 pages

Lecture

Lecture

14 pages

Lecture

Lecture

78 pages

Lecture

Lecture

35 pages

Lecture

Lecture

4 pages

Lecture

Lecture

4 pages

Lecture

Lecture

29 pages

Lecture

Lecture

52 pages

Lecture

Lecture

40 pages

Lecture

Lecture

44 pages

Lecture

Lecture

41 pages

Lecture

Lecture

38 pages

Lecture

Lecture

40 pages

Lecture

Lecture

13 pages

Lecture

Lecture

47 pages

Lecture

Lecture

49 pages

Lecture

Lecture

7 pages

Lecture

Lecture

18 pages

Lecture

Lecture

15 pages

Lecture

Lecture

74 pages

Lecture

Lecture

35 pages

Lecture

Lecture

17 pages

lecture

lecture

13 pages

Lecture

Lecture

21 pages

Lecture

Lecture

14 pages

Lecture

Lecture

53 pages

Lecture

Lecture

52 pages

Lecture

Lecture

40 pages

Lecture

Lecture

11 pages

Lecture

Lecture

20 pages

Lecture

Lecture

39 pages

Lecture

Lecture

10 pages

Lecture

Lecture

40 pages

Lecture

Lecture

25 pages

lecture

lecture

11 pages

lecture

lecture

7 pages

Lecture

Lecture

10 pages

lecture

lecture

46 pages

lecture

lecture

7 pages

Lecture

Lecture

8 pages

lecture

lecture

55 pages

lecture

lecture

45 pages

lecture

lecture

47 pages

lecture

lecture

39 pages

lecture

lecture

33 pages

lecture

lecture

38 pages

lecture

lecture

9 pages

midterm

midterm

16 pages

Lecture

Lecture

39 pages

Lecture

Lecture

14 pages

Lecture

Lecture

46 pages

Lecture

Lecture

8 pages

Lecture

Lecture

40 pages

Lecture

Lecture

11 pages

Lecture

Lecture

41 pages

Lecture

Lecture

38 pages

Lecture

Lecture

9 pages

Lab

Lab

3 pages

Lecture

Lecture

53 pages

Lecture

Lecture

51 pages

Lecture

Lecture

38 pages

Lecture

Lecture

42 pages

Lecture

Lecture

49 pages

Lecture

Lecture

63 pages

Lecture

Lecture

7 pages

Lecture

Lecture

51 pages

Lecture

Lecture

35 pages

Lecture

Lecture

29 pages

Lecture

Lecture

65 pages

Lecture

Lecture

47 pages

Lecture

Lecture

41 pages

Lecture

Lecture

41 pages

Lecture

Lecture

32 pages

Lecture

Lecture

35 pages

Lecture

Lecture

15 pages

Lecture

Lecture

52 pages

Lecture

Lecture

16 pages

Lecture

Lecture

4 pages

lecture

lecture

27 pages

lecture04

lecture04

46 pages

Lecture

Lecture

46 pages

Lecture

Lecture

13 pages

lecture

lecture

41 pages

lecture

lecture

38 pages

Lecture

Lecture

40 pages

Lecture

Lecture

25 pages

Lecture

Lecture

38 pages

lecture

lecture

11 pages

Lecture

Lecture

42 pages

Lecture

Lecture

12 pages

Lecture

Lecture

36 pages

Lecture

Lecture

46 pages

Lecture

Lecture

35 pages

Lecture

Lecture

34 pages

Lecture

Lecture

9 pages

lecture

lecture

49 pages

class03

class03

39 pages

Lecture

Lecture

8 pages

Lecture 8

Lecture 8

42 pages

Lecture

Lecture

20 pages

lecture

lecture

29 pages

Lecture

Lecture

9 pages

lecture

lecture

46 pages

Lecture

Lecture

12 pages

Lecture

Lecture

24 pages

Lecture

Lecture

41 pages

Lecture

Lecture

37 pages

lecture

lecture

59 pages

Lecture

Lecture

47 pages

Lecture

Lecture

34 pages

Lecture

Lecture

38 pages

Lecture

Lecture

28 pages

Exam

Exam

17 pages

Lecture

Lecture

21 pages

Lecture

Lecture

15 pages

Lecture

Lecture

9 pages

Project

Project

20 pages

Lecture

Lecture

40 pages

L13b_Exam

L13b_Exam

17 pages

Lecture

Lecture

48 pages

Lecture

Lecture

10 pages

Lecture

Lecture

52 pages

21-p2p

21-p2p

16 pages

lecture

lecture

77 pages

Lecture

Lecture

18 pages

Lecture

Lecture

62 pages

Lecture

Lecture

25 pages

Project

Project

20 pages

Lecture

Lecture

47 pages

Lecture

Lecture

38 pages

Lecture

Lecture

35 pages

Roundup

Roundup

45 pages

Lecture

Lecture

47 pages

Lecture

Lecture

39 pages

Lecture

Lecture

13 pages

Midterm

Midterm

22 pages

Project

Project

26 pages

Lecture

Lecture

11 pages

Project

Project

27 pages

Lecture

Lecture

10 pages

Lecture

Lecture

50 pages

Lab

Lab

9 pages

Lecture

Lecture

30 pages

Lecture

Lecture

6 pages

r05-ruby

r05-ruby

27 pages

Lecture

Lecture

8 pages

Lecture

Lecture

28 pages

Lecture

Lecture

30 pages

Project

Project

13 pages

Lecture

Lecture

11 pages

Lecture

Lecture

12 pages

Lecture

Lecture

48 pages

Lecture

Lecture

55 pages

Lecture

Lecture

36 pages

Lecture

Lecture

17 pages

Load more
Download Lecture
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Lecture and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Lecture 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?