Presentation is loading. Please wait.

Presentation is loading. Please wait.

Link-layer EE122 Discussion 10/14/2011. MAC Addresses Link-layer deals with MAC addresses – 48-bit addresses, flat name space – E.g., 88-9F-FA-F9-74-75.

Similar presentations


Presentation on theme: "Link-layer EE122 Discussion 10/14/2011. MAC Addresses Link-layer deals with MAC addresses – 48-bit addresses, flat name space – E.g., 88-9F-FA-F9-74-75."— Presentation transcript:

1 Link-layer EE122 Discussion 10/14/2011

2 MAC Addresses Link-layer deals with MAC addresses – 48-bit addresses, flat name space – E.g., 88-9F-FA-F9-74-75 – Use ipconfig (Windows) or ifconfig (Linux)

3 Address Resolution Protocol “I want to reach IP address a.b.c.d. What is the MAC address of the corresponding machine?” – Broadcast Response from appropriate machine – Cache mappings …default, use the gateway router

4 Question 1 1.Use subnet mask; not in same network 2.ARP: - “Who has 10.1.1.7?” 3.ARP Response: - “I do” 4.A  5.ARP: - “Who is 198.56.7.99?” 6.ARP Response: - “I do” 7.R 

5 Multiple Access “How can multiple hosts share a medium?” Channel Partitioning – Access to channel in fixed slots (TDMA/FDMA) – Easy to implement and reason about

6 Random Access Carrier Sense Multiple Access (CSMA/CD) 1.Listen and transmit only if free 2.If collisions detected, abort transmission – Why would there be collisions?? 3.Resend after a probabilistic wait

7 Limitations of length Collision is detected after twice the propagation delay – Keep transmitting in that interval Frame needs to be big enough!

8 Efficiency of CSMA/CD Time wasted in collisions – Proportional to distance d Time spend transmitting a packet – Packet length p divided by bandwidth b Rough estimate for efficiency (k some constant) = (p/b) / ((p/b) + kd)

9 Binary Exponential Back-off Hold on for a while after you detect collision – Introduce some randomness After each collision, choose K randomly from {0, …, 2 m-1 } – m is the #collisions since last successful transmission – Wait for K * 512 bit times before trying again

10 Question 3 a)p is low  lower probability of collisions  CSMA/CD is good a)p is high  high probability of collisions  channel partitioning is better

11 Question 4 Host must send data at least for twice propagation delay Propagation Delay = (d/2*10 8 ) Min size of frame ≥ 2 * (d/2*10 8 ) * 1Gbps …d ≤ 100m

12 Question 5

13 Question 6 Efficiency of CSMA/CD is (p/b) / ((p/b) + kd) As link speed increases, the efficiency goes down – (c)


Download ppt "Link-layer EE122 Discussion 10/14/2011. MAC Addresses Link-layer deals with MAC addresses – 48-bit addresses, flat name space – E.g., 88-9F-FA-F9-74-75."

Similar presentations


Ads by Google