Wired Lan Ethernet - DATA Link Layer

49
Data Communication and Computer Networks [EEE 314] Mubashir Husain Rehmani Assistant Professor Department of Electrical Engineering COMSATS Institute of Information Technology, Wah Cantt, Pakistan

Transcript of Wired Lan Ethernet - DATA Link Layer

Page 1: Wired Lan Ethernet - DATA Link Layer

Data Communication and Computer Networks

[EEE 314]

Mubashir Husain RehmaniMubashir Husain Rehmani

Assistant Professor

Department of Electrical Engineering

COMSATS Institute of Information Technology,

Wah Cantt, Pakistan

Page 2: Wired Lan Ethernet - DATA Link Layer

Wired LAN

Ethernet

Page 3: Wired Lan Ethernet - DATA Link Layer

Data Link

Layer

Page 4: Wired Lan Ethernet - DATA Link Layer

Position of Data Link Layer

Page 5: Wired Lan Ethernet - DATA Link Layer

LLC and MAC

Page 6: Wired Lan Ethernet - DATA Link Layer

IEEE standards for LAN

Page 7: Wired Lan Ethernet - DATA Link Layer

Data Link Layer

� Data Link Layer consists of two sub-layers

� Logical Link Control (LLC) Layer

� Medium Access Control (MAC) Layer

� We may not have a dedicated link (channel) for � We may not have a dedicated link (channel) for

communication

� Upper layer (LLC) is responsible for

� Data link control (flow or error control)

� Lower layer (MAC) is responsible for

� Medium access resolution

Page 8: Wired Lan Ethernet - DATA Link Layer

Multiple Access to a Link

� Multicast link or Broadcast link

� Nodes are connected with single link

� We need multiple access protocol

To coordinate access to the link� To coordinate access to the link

� Two devices do not send data at the same time

� Two devices do not interrupt each other

� A device do not monopolize the link

Page 9: Wired Lan Ethernet - DATA Link Layer

Multiple

Access

Page 10: Wired Lan Ethernet - DATA Link Layer

Multiple Access Protocols

Page 11: Wired Lan Ethernet - DATA Link Layer

Random Access

� Also called ‘contention methods’

� No device is superior to another device

� No station permits another station to send data

� At each instance, when a station has data to send, it willAt each instance, when a station has data to send, it will

make a decision by itself on whether or not to send

� This decision is based on the state of the medium

� Why we call Random Access or Contention Methods?

� There is no scheduled time for a station to transmit

� Transmission is random among the stations

� No rules say which station should send next

� Stations compete with each other

Page 12: Wired Lan Ethernet - DATA Link Layer

Random Access

� In Random Access, each station has a right to send

� However, if more than one station tries to send, collision

will occur

� In order to avoid this collision problem, each station will

answer these questions

� When can the station access the medium?

� What can the station do if the medium is busy?

� How can the station determine the success or failure of the transmission?

� What can the station do if there is an access conflict?

Page 13: Wired Lan Ethernet - DATA Link Layer

ALOHA Protocol

� Random access evolved from ALOHA Protocol

� It uses a simple procedure called ‘Multiple Access (MA)’

� MA is further improved by forces the station to sense the MA is further improved by forces the station to sense the

medium before transmitting

� Called Carrier Sense Multiple Access (CSMA)

� CSMA evolved into two methods:

� CSMA/CD: Carrier Sense Multiple Access / Collision Detection

� Tells the station what to do when a collision is detected

� CSMA/CA: Carrier Sense Multiple Access / Collision Avoidance

� Tries to avoid the collision

Page 14: Wired Lan Ethernet - DATA Link Layer

Evolution of Random Access

Methods

Page 15: Wired Lan Ethernet - DATA Link Layer

ALOHA Protocol

� Developed at University of Hawaii in early1970

� Original ALOHA protocol is called as Pure ALOHA

� Slotted ALOHA was invented to improve the performance of Pure � Slotted ALOHA was invented to improve the performance of Pure ALOHA

Page 16: Wired Lan Ethernet - DATA Link Layer

ALOHA Network

Page 17: Wired Lan Ethernet - DATA Link Layer

Pure ALOHA

Page 18: Wired Lan Ethernet - DATA Link Layer

Slotted ALOHA

Page 19: Wired Lan Ethernet - DATA Link Layer

Some Questions� A pure ALOHA network transmits 200-bit frames on a shared

channel of 200 kbps. What is the requirement to make this frame collision-free?

� A pure ALOHA network transmits 200-bit frames on a shared channel of 200 kbps. What is the throughput if the system (all stations together) produces

� 1000 frames per second

� 500 frames per second

� 250 frames per second

� A slotted ALOHA network transmits 200-bit frames using a shared channel with a 200-kbps bandwidth. Find the throughput if the system (all stations together) produces

� 1000 frames per second

� 500 frames per second

� 250 frames per second

Page 20: Wired Lan Ethernet - DATA Link Layer
Page 21: Wired Lan Ethernet - DATA Link Layer

Random Access

MA

CSMA

CSMA/CD

CSMA/CA

Page 22: Wired Lan Ethernet - DATA Link Layer

Collision in CSMA

Page 23: Wired Lan Ethernet - DATA Link Layer

Persistence Strategies

Page 24: Wired Lan Ethernet - DATA Link Layer

CSMA/CD Procedure

Page 25: Wired Lan Ethernet - DATA Link Layer

CSMA/CA Procedure

Page 26: Wired Lan Ethernet - DATA Link Layer

Controlled Access

• Stations consult each other to find which station has the

right to send

• A station can not send unless it has been authorized by

other stations

Reservation: make reservation before sending data

Polling: Select and Poll functions are used

Token Passing: Network is organized in logical ring

other stations

Page 27: Wired Lan Ethernet - DATA Link Layer

Select

Page 28: Wired Lan Ethernet - DATA Link Layer

Poll

Page 29: Wired Lan Ethernet - DATA Link Layer

Token Passing Network

Page 30: Wired Lan Ethernet - DATA Link Layer

Token Passing Procedure

Page 31: Wired Lan Ethernet - DATA Link Layer

Channelization

Channelization is a multiple-access method in which the

available bandwidth of a link is shared in time, frequency, or

through code, between different stations.

FDMA

TDMA

CDMA

Page 32: Wired Lan Ethernet - DATA Link Layer

In FDMA, the bandwidth is divided into

channels.

Page 33: Wired Lan Ethernet - DATA Link Layer

In TDMA, the bandwidth is just one

channel that is timeshared.

Page 34: Wired Lan Ethernet - DATA Link Layer

In CDMA, one channel carries all

transmissions simultaneously.

Page 35: Wired Lan Ethernet - DATA Link Layer
Page 36: Wired Lan Ethernet - DATA Link Layer
Page 37: Wired Lan Ethernet - DATA Link Layer

Project 802

Page 38: Wired Lan Ethernet - DATA Link Layer

Project 802

Page 39: Wired Lan Ethernet - DATA Link Layer
Page 40: Wired Lan Ethernet - DATA Link Layer
Page 41: Wired Lan Ethernet - DATA Link Layer
Page 42: Wired Lan Ethernet - DATA Link Layer
Page 43: Wired Lan Ethernet - DATA Link Layer
Page 44: Wired Lan Ethernet - DATA Link Layer

Ethernet Address in

Hexadecimal Notation

Page 45: Wired Lan Ethernet - DATA Link Layer
Page 46: Wired Lan Ethernet - DATA Link Layer

A Network with and without a

Bridge

Page 47: Wired Lan Ethernet - DATA Link Layer

Collision Domain

Page 48: Wired Lan Ethernet - DATA Link Layer

Switched Ethernet

Page 49: Wired Lan Ethernet - DATA Link Layer

Fast Ethernet