4 transmit back-off, 1 transmission, 2 the fcs field – Cirrus Logic EP93xx User Manual

Page 309: 4 transmit back-off -7, 1 transmission -7 9.1.4.2 the fcs field -7

Advertising
background image

DS785UM1

9-7

Copyright 2007 Cirrus Logic

1/10/100 Mbps Ethernet LAN Controller

EP93xx User’s Guide

9

9

9

9.1.4 Transmit Back-Off

Refer to

Figure 9-3

. Once transmission is started, either the transmission is completed, or

there is a collision. There are two kinds of collision: normal collision (one that occurs within
the first 512 bits of the packet) and late collision (one that occurs after the first 512 bits). In
either collision type, the MAC engine always sends a 32 bit jam sequence, and stops
transmission.

After a normal collision and the jam, transmission is stopped, or “backed-off”. The MAC
attempts transmission again according to one of two algorithms. The ISO/IEC standard
algorithm or a modified back-off algorithm may be used, and the host chooses which
algorithm through the ModBackoffE control bit (TXCtl). The standard algorithm from ISO/IEC
paragraph 4.2.3.2.5 is called the “truncated binary exponential backoff” and is shown below:

0 <= r <= 2

k

where r is a random integer for the number of slot times the MAC waits before attempting
another transmission, and a slot time is time of 512 bits (51.2

μ

sec), k = minimum (n,10), and

n is the nth retransmission attempt. The modified back-off algorithm uses delays longer than
the ISO/IEC standard after each of the first three transmit collisions as shown below:

0 <= r <= 2

k

where k = minimum (n,10), but not less than 3, and n is the nth retransmission attempt

The advantage of the modified algorithm over the standard algorithm is that the modification
reduces the possibility of multiple collisions on any transmission attempt. The disadvantage is
that the modification extends the maximum time needed to acquire access to the medium.

The host may choose to disable the back-off algorithm altogether. This is done through the
control bit DisableBackoff (TestCtl). When set, the MAC transmitter waits for the Inter Frame
Gap time before starting transmission. There is no back-off algorithm employed. When clear,
the MAC uses either the standard or the modified algorithm.

9.1.4.1 Transmission

After the transmission has passed the time for a normal collision (512 bits), then transmission
is either completed, or aborted due to a late collision. For a late collision, the transmitter
sends the 32 bit jam sequence, but does not back-off and try again. When a late collision
occurs, Out-of-wdw collision (XStatQ) is set. A late collision is not retried, because the first 64
bytes of the FIFO are freed after the normal collision window, and will likely be refilled by a
following packet. Driver intervention is needed to reconstruct the FIFO data.

9.1.4.2 The FCS Field

If InhibitCRC (Transmit Descriptor) is clear, the MAC automatically appends the standard 32
bit FCS to the end of the frame. The MAC tests the last 32 bits received against the standard
CRC computation. If received in error, CRCerror (RStatQ) is set. If CRCerroriE (Interrupt
Enable) is set, there is an interrupt associated with CRCerror. The standard CRC conforms to
ISO/IEC 8802-3 section 3.2.8. The polynomial for the CRC is:

G(x) = x

32

+ x

26

+ x

23

+ x

22

+ x

16

+ x

12

+ x

11

+ x

10

+ x

8

+ x

7

+ x

5

+ x

4

+ x

2

+ x + 1

Advertising