+ All Categories
Home > Documents > Layer 2 Technologies At layer 2 we create and transmit frames over communications channels Format of...

Layer 2 Technologies At layer 2 we create and transmit frames over communications channels Format of...

Date post: 31-Dec-2015
Category:
Upload: frank-randall
View: 213 times
Download: 1 times
Share this document with a friend
25
Layer 2 Technologies • At layer 2 we create and transmit frames over communications channels • Format of frames and layer 2 transmission protocols are dependent on technology and topology • There are two major classes of networks Wide Area Networks (WAN) Local Area Networks (LAN) • Each class may use a variety of topologies
Transcript
Page 1: Layer 2 Technologies At layer 2 we create and transmit frames over communications channels Format of frames and layer 2 transmission protocols are dependent.

Layer 2 Technologies

• At layer 2 we create and transmit frames over communications channels

• Format of frames and layer 2 transmission protocols are dependent on technology and topology

• There are two major classes of networks Wide Area Networks (WAN) Local Area Networks (LAN)

• Each class may use a variety of topologies

Page 2: Layer 2 Technologies At layer 2 we create and transmit frames over communications channels Format of frames and layer 2 transmission protocols are dependent.

Layer 2 Technologies

Point-to-Point A station is directly connected to another Often used in WANs Each station may connect to all other stations

(fully meshed) Or, one station may connect to only a subset

of stations in a network For large networks, fully meshed networks are

rare due to cabling complexity and costs May be wired or wireless

Page 3: Layer 2 Technologies At layer 2 we create and transmit frames over communications channels Format of frames and layer 2 transmission protocols are dependent.

Layer 2 Technologies

Shared Channels Stations share a communications channel Most often used in LANs May require some form of addressing May allow transmitting to ‘many’ or ‘all’ stations

• Full broadcast• Multicast – group of stations

How does a station get its ‘fair’ share? How does a station gain ‘permission’ to transmit?

• Must implement Media Access Control

May also be wired or wireless

Page 4: Layer 2 Technologies At layer 2 we create and transmit frames over communications channels Format of frames and layer 2 transmission protocols are dependent.

Layer 2 Topologies

• Topology is a connection strategy

• May be influenced by the medium

• Dictates in part the path a frame will take

• Many general topologies have been implemented. Both for LANs and WANs

Page 5: Layer 2 Technologies At layer 2 we create and transmit frames over communications channels Format of frames and layer 2 transmission protocols are dependent.

LAN/WAN Topologies

Star Ring

Page 6: Layer 2 Technologies At layer 2 we create and transmit frames over communications channels Format of frames and layer 2 transmission protocols are dependent.

LAN/WAN Topology

Bus Tree

Page 7: Layer 2 Technologies At layer 2 we create and transmit frames over communications channels Format of frames and layer 2 transmission protocols are dependent.

LAN/WAN Topologies

Full Mesh Partial Mesh

Page 8: Layer 2 Technologies At layer 2 we create and transmit frames over communications channels Format of frames and layer 2 transmission protocols are dependent.

Locality of Reference

• Computers are most often organized in groups and locally interconnected as LANs

• Computers often communicate with computers that are close by or ‘local’.

• Examples are computers communicating with departmental servers

• As a result, most traffic is ‘local’ and never leaves the LAN

• Thus, networks are organized in groups, or LANs.

• LANs of any topology can then be interconnected to form larger networks

Page 9: Layer 2 Technologies At layer 2 we create and transmit frames over communications channels Format of frames and layer 2 transmission protocols are dependent.

Interconnected LANs

Bridge

Page 10: Layer 2 Technologies At layer 2 we create and transmit frames over communications channels Format of frames and layer 2 transmission protocols are dependent.

Interconnected LANs

Bridge

Page 11: Layer 2 Technologies At layer 2 we create and transmit frames over communications channels Format of frames and layer 2 transmission protocols are dependent.

LAN Standards

• Managed by an IEEE committee – called the 802 committee

• Many subgroups within the 802 committee802.1802.2 Logical Link (inactive)802.3 Ethernet and variants802.4 Token Bus802.5 Token Ring802.6 Metropolitan Area Networks (inactive)…….802.11 Wireless LANs (WiFi) (a,b,g,e,I,n)

………802.16 Broadband wireless (WiMAX)

Page 12: Layer 2 Technologies At layer 2 we create and transmit frames over communications channels Format of frames and layer 2 transmission protocols are dependent.

Network Architectures

We will discuss two major layer two network architectures.

LANEthernet and IEEE 802.3

Wireless LANS and IEEE802.11

WANPoint to Point Protocols (HDLC)

Page 13: Layer 2 Technologies At layer 2 we create and transmit frames over communications channels Format of frames and layer 2 transmission protocols are dependent.

Broadcast Networks

• Consider N users on a shared channel• User transmits when a frame is ready to

send• Other users also transmit at will• If frames from 2 users ‘overlap’ we have a

collision• Collisions yield damaged frames• Users can ‘hear’ own transmission and

therefore can detect collisions

Page 14: Layer 2 Technologies At layer 2 we create and transmit frames over communications channels Format of frames and layer 2 transmission protocols are dependent.

Broadcast Networks

• Summary Transmit at will Listen for own frame Retransmit if collision

• Collisions are wasted bandwidth

• On average, if we have a shared broadcast channel what throughput can we expect?

Page 15: Layer 2 Technologies At layer 2 we create and transmit frames over communications channels Format of frames and layer 2 transmission protocols are dependent.

Aloha Network

• Early broadcast network developed at University of Hawaii – 1970

• Designed to interconnect 7 campuses of the U of H on 4 islands

• Used radio broadcasts

• Central Computing Center served as hub

• Campuses communicated through this center over shared radio frequencies

Page 16: Layer 2 Technologies At layer 2 we create and transmit frames over communications channels Format of frames and layer 2 transmission protocols are dependent.

Aloha Network

ComputingCenter

Campus A Campus B

413 MHz 413 MHz

407 MHz 407 MHz

Channels 9600 bps

Frame 704 bits

What is maximum channel utilization ?

Page 17: Layer 2 Technologies At layer 2 we create and transmit frames over communications channels Format of frames and layer 2 transmission protocols are dependent.

t = time to transmit frame

vulnerable

t0 t0 + t t0 + 2t

t

t0 + 3t

Page 18: Layer 2 Technologies At layer 2 we create and transmit frames over communications channels Format of frames and layer 2 transmission protocols are dependent.

Aloha Throughput• Let time to transmit a packet to be 1 unit• Let S = Average number of packets per packet

time 0 < S < 1

• Let G = retransmissions + new packets (S) G ≥ S

• It is assumed that G and S follow Poisson Distribution

!)(

k

ekf

k

Page 19: Layer 2 Technologies At layer 2 we create and transmit frames over communications channels Format of frames and layer 2 transmission protocols are dependent.

Aloha Throughput

Based on this we can show

GGeS 2

G

S

.5

at G = .5

S = .5(e-1) = 1/(2e)

S = approx .18

Page 20: Layer 2 Technologies At layer 2 we create and transmit frames over communications channels Format of frames and layer 2 transmission protocols are dependent.

Aloha• This is called Pure Aloha – stations transmitted

at will• This was later modified that required stations to

only transmit at predefined times – driven by a central clock

• Now we need no collision for 1 packet time rather than 2

• In this case the utilization improved toGGeS or S = 1/e = .36

This is called Slotted Aloha

Page 21: Layer 2 Technologies At layer 2 we create and transmit frames over communications channels Format of frames and layer 2 transmission protocols are dependent.

Aloha

Page 22: Layer 2 Technologies At layer 2 we create and transmit frames over communications channels Format of frames and layer 2 transmission protocols are dependent.

Carrier Sense Multiple Access

• We can improve on Aloha if we listen before transmitting

• A family of protocols called Carrier Sense Multiple Access (CSMA) has evolved

• All involved some form of listen before speak

• Variations of when to speak if no transmissions (carrier) heard

Page 23: Layer 2 Technologies At layer 2 we create and transmit frames over communications channels Format of frames and layer 2 transmission protocols are dependent.

CSMANon Persistent

Listen on channel If free, transmit If busy, wait random time – repeat If collision, wait random time – repeat

Persistent (also called 1-persistent) Listen on channel If free, transmit If busy, continue to listen until free – transmit If collision, wait random time - repeat

Page 24: Layer 2 Technologies At layer 2 we create and transmit frames over communications channels Format of frames and layer 2 transmission protocols are dependent.

CSMA

p – Persistent Compromise Listen on channel If free, transmit with probability p

and delay 1 unit time with probability 1-p If channel busy wait until free, repeat

Page 25: Layer 2 Technologies At layer 2 we create and transmit frames over communications channels Format of frames and layer 2 transmission protocols are dependent.

CSMA


Recommended