More on Sliding Window, Ethernet




CS158a

Chris Pollett

Feb 15, 2023

Outline

Introduction

More Sliding Window

Finite Sequence Numbers

In-Class Exercise

Frame Order and Flow Control

The sliding window protocol is one of the best-known computer networking algorithms. It actually can be used to support three different roles:

Concurrent Logical Channels

Ethernet

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