new trailers
[unix-history] / usr / src / share / man / man4 / man4.vax / ec.4
CommitLineData
5c22c951
KM
1.\" Copyright (c) 1983 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
15e8e6d2 5.\" @(#)ec.4 6.4 (Berkeley) %G%
5c22c951 6.\"
83d4fb6d 7.TH EC 4 ""
5c22c951
KM
8.UC 5
9.SH NAME
10ec \- 3Com 10 Mb/s Ethernet interface
11.SH SYNOPSIS
b38f7b2b 12.B "device ec0 at uba0 csr 161000 vector ecrint eccollide ecxint flags 0"
5c22c951
KM
13.SH DESCRIPTION
14The
15.I ec
16interface provides access to a 10 Mb/s Ethernet network through
17a 3com controller.
18.PP
19The hardware has 32 kilobytes of dual-ported memory on the UNIBUS.
20This memory
21is used for internal buffering by the board, and the interface code reads
22the buffer contents directly through the UNIBUS.
b38f7b2b
MK
23The address of this memory is given in the \fIflags\fP field
24in the configuration file.
25The first interface normally has its memory at Unibus address 0.
5c22c951 26.PP
15e8e6d2
MK
27Each of the host's network addresses
28is specified at boot time with an SIOCSIFADDR
5c22c951
KM
29ioctl. The
30.I ec
31interface employs the address resolution protocol described in
32.IR arp (4P)
33to dynamically map between Internet and Ethernet addresses on the local
34network.
35.PP
15e8e6d2
MK
36The interface normally tries to use a ``trailer'' encapsulation
37to minimize copying data on input and output.
38The use of trailers is negotiated with ARP.
39This negotiation may be disabled, on a per-interface basis,
40by setting the IFF_NOTRAILERS
41flag with an SIOCSIFFLAGS ioctl.
42.PP
5c22c951
KM
43The interface software implements an exponential backoff algorithm
44when notified of a collision on the cable. This algorithm utilizes
45a 16-bit mask and the VAX-11's interval timer in calculating a series
46of random backoff values. The algorithm is as follows:
47.TP 5
481.
49Initialize the mask to be all 1's.
50.TP 5
512.
52If the mask is zero, 16 retries have been made and we give
53up.
54.TP 5
553.
56Shift the mask left one bit and formulate a backoff by
03f6238e
MK
57masking the interval timer with the smaller of the complement of this mask
58and a 5-bit mask, resulting in a pseudo-random number between 0 and 31.
59This produces the number of slot times to delay,
60where a slot is 51 microseconds.
5c22c951
KM
61.TP 5
624.
63Use the value calculated in step 3 to delay before retransmitting
03f6238e
MK
64the packet.
65The delay is done in a software busy loop.
5c22c951
KM
66.SH DIAGNOSTICS
67.BR "ec%d: send error" .
68After 16 retransmissions using the
69exponential backoff algorithm described above, the packet
70was dropped.
71.PP
72.BR "ec%d: input error (offset=%d)" .
73The hardware indicated an error
74in reading a packet off the cable or an illegally sized packet.
75The buffer offset value is printed for debugging purposes.
76.PP
77.BR "ec%d: can't handle af%d" .
78The interface was handed
79a message with addresses formatted in an unsuitable address
80family; the packet was dropped.
81.SH SEE ALSO
82intro(4N), inet(4F), arp(4P)
83.SH BUGS
5c22c951
KM
84The hardware is not capable of talking to itself. The software
85implements local sending and broadcast by sending such packets to the
86loop interface. This is a kludge.
87.PP
88Backoff delays are done in a software busy loop. This can degrade the
89system if the network experiences frequent collisions.