Ethernet: History, Overview, and CSMA/CD Protocol - Prof. Zongming Fei, Study notes of Computer Science

An overview of ethernet, a widely used local area network (lan) technology. It covers the history of ethernet, its csma/cd protocol, and the frame format. The document also explains the concept of minimum frame length and its relation to maximum network length.

Typology: Study notes

Pre 2010

Uploaded on 10/01/2009

koofers-user-nsy
koofers-user-nsy 🇺🇸

9 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1
1
Ethernet 2.6
Adapted from Peterson&Davie Book
and other universities
2
Ethernet Overview
History
developed by Xerox PARC in mid-1970s
roots in Aloha packet-radio network
standardized by Xerox, DEC, and Intel in 1978
similar to IEEE 802.3 standard
•CSMA/CD
carrier sense
multiple access
collision detection
•Frame Format
Dest
addr
64 48 32
CRCPreamble Src
addr Type Body
1648
3
Ethernet (cont)
Addresses
unique, 48-bit unicastaddress assigned to each adapter
example: 8:0:e4:b1:2
broadcast: all 1s
multicast
Bandwidth: 10Mbps, 100Mbps, 1Gbps
Length: 2500m (500m segments with 4 repeaters)
Problem: Distributed algorithm that provides fair access
4
Multiple Access Communications
Broadcast networks
Also referred to as multiple access networks
All information is received by all users, routing is not
necessary
A flat addressing scheme is sufficient to indicate which
user a given packet is destined
Medium access control protocol is required to
orchestrate the transmissions from the various users
Main concern is interference form other users
5
Transmit Algorithm
If line is idle…
send immediately
upper bound message size of 1500 bytes
must wait 9.6us between back-to-back frames
If line is busy…
wait until idle and transmit immediately
called 1-persistent (special case of p-persistent)
6
Algorithm (cont)
If collision…
jam for 32 bits, then stop transmitting frame
minimum frame is 64 bytes (header + 46 bytes of data)
delay and try again
1st time: 0 or 51.2us
2nd time: 0, 51.2, 102.4, or 153.6us
3rd time: 0, 51.2, 102.4, 153.6, 204.8, 256.0, 307.2, or 358.4us
nth time: k x51.2us, for randomly selected k=0..2m–1,where
m=min(10,n).
give up after several tries (usually 16)
exponential backoff
pf3
pf4

Partial preview of the text

Download Ethernet: History, Overview, and CSMA/CD Protocol - Prof. Zongming Fei and more Study notes Computer Science in PDF only on Docsity!

Ethernet 2.

• Adapted from Peterson&Davie Book

and other universities

Ethernet Overview

• History

  • developed by Xerox PARC in mid-1970s
  • roots in Aloha packet-radio network
  • standardized by Xerox, DEC, and Intel in 1978
  • similar to IEEE 802.3 standard

• CSMA/CD

  • carrier sense
  • multiple access
  • collision detection

• Frame Format

Dest

addr

Preamble Src CRC

addr

Type Body

Ethernet (cont)

• Addresses

– unique, 48-bit unicast address assigned to each adapter

– example: 8:0:e4:b1:

– broadcast: all 1 s

– multicast

• Bandwidth: 10Mbps, 100Mbps, 1Gbps

• Length: 2500m (500m segments with 4 repeaters)

• Problem: Distributed algorithm that provides fair access

Multiple Access Communications

– Broadcast networks

• Also referred to as multiple access networks

• All information is received by all users, routing is not

necessary

• A flat addressing scheme is sufficient to indicate which

user a given packet is destined

• Medium access control protocol is required to

orchestrate the transmissions from the various users

• Main concern is interference form other users

Transmit Algorithm

• If line is idle…

– send immediately

– upper bound message size of 1500 bytes

– must wait 9.6us between back-to-back frames

• If line is busy…

– wait until idle and transmit immediately

– called 1-persistent (special case of p-persistent )

Algorithm (cont)

• If collision…

  • jam for 32 bits, then stop transmitting frame
  • minimum frame is 64 bytes (header + 46 bytes of data)
  • delay and try again
    • 1st time: 0 or 51.2us
    • 2nd time: 0, 51.2, 102.4, or 153.6us
    • 3rd time: 0, 51.2, 102.4, 153.6, 204.8, 256.0, 307.2, or 358.4us
    • nth time: k x 51.2us, for randomly selected k =0..2 m^ – 1,where

m=min(10,n).

  • give up after several tries (usually 16)
  • exponential backoff

CSMA/CD procedure

Collision Detected?

too many attempts?

Transmit Frame

send jam

transmission done?

increment attempts

compute backoff

wait backoff Done time transmit OK

Done excessive collision error

No

No

Yes

Yes

Yes

No

Simplified flowchart for transmitting frame

Inter-packet Gap Time

In addition, it is not sufficiently for a node to wait until

the network is quiet and then begin to transmit

immediately. There must be some time between

packets on the network so receiving nodes can

distinguish that the prior packet has ended and

prepare to receive a new packet. The standard

requires that a node wait at least the defined inter-

packet gap time after the network becomes quiet

before beginning to transmit.

LAN Standard - IEEE 802.

  • The 802 Project Model
    • Named for the year and month it began (1980, February)
    • IEEE 802 standards actually predated the ISO standards
    • Split the data link layer into two different sublayers:
      • Logical Link Control (LLC) and Media Access

Control (MAC)

  • Modularity
    • Standardize those that can be generalized:
      • LLC is the upper layer of the IEEE 802 data link

layer and is common to all LAN protocols

  • Isolated those that must remain specific
    • MAC protocols are specific to the LAN using them

(Ethernet, Token Ring, etc.).

OSI Model and Project 802

The IEEE 802 LAN model

An Example to Illustrate the Need of Minimum Frame Length

A B C D E

A B C D E

A B C D E

The frame sent by host A have a collision with the frame sent by host E.

After the collision, if the frame sent by host A is long enough, host A will be able to detect the collision.

After the collision, if the frame sent by host A is not long enough, host A will not be able to detect the collision.

Minimum Frame Length and the Maximum Network Length

  • Maximum propagation delay (D)
    • For station A, the worst case is as follows:

Just before the first bit of a frame sent from station A reaches station E,

it collides with the first bit of a frame sent from station E.

  • Maximum propagation delay (D) is the time for a bit to travel form

station A to station E (from one end of a network to the other end of the

network)

  • Time needed for station A to detect a collision is 2 * D.
  • Minimum frame length
    • For a station, it is important that it detects a collision before it

completes the transmit of a frame so that the station can abort the frame

and resend the frame later. Otherwise, the station would think the frame

has been successfully sent.

  • Time needed to transmit a frame should be greater than 2D. This

implies that minimum time needed to transmit a frame should be 2D.

  • Note: minimum time needed to transmit a frame = (minimum frame

length in bits) / (transmit speed in bits/second)

Minimum Frame Length and the Maximum Network Length

  • Maximum network length
    • Given a minimum frame length, the maximum length of an Ethernet

network can be calculated from minimum frame length and the transmit

speed.

  • Example:
    • For a given minimum frame length, the faster the transmit speed, the

shorter the maximum Ethernet network length.

2002 10 Gigabit Ethernet 10,000 Mbps

1998 Gigabit Ethernet 1,000 Mbps

1993 Fast Ethernet 100 Mbps

1972 Ethernet 10 Mbps

Year Technology Speed

A History of Speeds of Ethernet