Ethernet and Token Rings




CS158a

Chris Pollett

Feb. 21, 2011

Outline

Quiz

Which of the following is true?

  1. The internet checksum algorithm used in PPP uses one's complement arithmetic
  2. The code 101 is used to encode an x in the polynomials in CRC codes.
  3. Usually, a receiver chooses the receiver window size to be larger than the sender window size in the sliding window protocol

Physical Properties of Ethernet

Variations on Physical Properties of Ethernet

Access Protocol

Ethernet Frame Format

64 bits48 bits48 bits16 bits32 bits
PreambleDestination AddressSource AddressTypeBodyCRC

Ethernet Addresses

MAC Algorithm

The smarts of Ethernet resides in how the sender sends frames it needs to send. It uses the following transmitter algorithm:

In fast ethernet pseudo-random number generation is done using Linear feedback shift registers.

The worst case for detecting a collision is when the hosts are on opposite ends of the Ethernet. If d is the time for a signal to go the complete length of the Ethernet. Then Host A might transmit for d seconds and Host B might just start transmitting and immediately send a jamming sequence, this takes d second to get back to A. So A might transmit for 2*d before detecting a collision. On a 10Mbps Ethernet limited to 2500m, the delay would be at most 51.2μs and this would correspond to 512 bits = 96 bytes, which is why this is used as the shortest frame length.

Real world experience with Ethernet

Rings

Keeping Rings connected

Multistation Access Unit Image

The IBM 8228 MSAU

Token Ring Media Access Control

Token Holding Time

Reliable Delivery

Token Ring Maintenance

Corrupt and Orphaned Frames and Dead Stations

802.5 Frame Format

88848483288
Start DelimeterAccess ControlFrame ControlDestination AddressSource AddressBodyChecksumEnd DelimiterFrame Status

The frame is sent using Manchester encoding, except start and end delimiters.

Access Control - contains the frame priority, and reservation bits.

Frame Control - says the higher level protocol.

Frame Status - has the A and C bits.