BSD 4_2 development
[unix-history] / usr / man / man4 / ec.4
CommitLineData
95e9dfc1
C
1.TH EC 4 "27 July 1983"
2.UC 4
3.SH NAME
4ec \- 3Com 10 Mb/s Ethernet interface
5.SH SYNOPSIS
6.B "device ec0 at uba0 csr 161000 vector ecrint eccollide ecxint"
7.SH DESCRIPTION
8The
9.I ec
10interface provides access to a 10 Mb/s Ethernet network through
11a 3com controller.
12.PP
13The hardware has 32 kilobytes of dual-ported memory on the UNIBUS.
14This memory
15is used for internal buffering by the board, and the interface code reads
16the buffer contents directly through the UNIBUS.
17.PP
18The host's Internet address is specified at boot time with an SIOCSIFADDR
19ioctl. The
20.I ec
21interface employs the address resolution protocol described in
22.IR arp (4P)
23to dynamically map between Internet and Ethernet addresses on the local
24network.
25.PP
26The interface software implements an exponential backoff algorithm
27when notified of a collision on the cable. This algorithm utilizes
28a 16-bit mask and the VAX-11's interval timer in calculating a series
29of random backoff values. The algorithm is as follows:
30.TP 5
311.
32Initialize the mask to be all 1's.
33.TP 5
342.
35If the mask is zero, 16 retries have been made and we give
36up.
37.TP 5
383.
39Shift the mask left one bit and formulate a backoff by
40masking the interval timer with the mask (this is actually
41the two's complement of the value).
42.TP 5
434.
44Use the value calculated in step 3 to delay before retransmitting
45the packet. The delay is done in a software busy loop.
46.PP
47The interface normally tries to use a ``trailer'' encapsulation
48to minimize copying data on input and output. This may be
49disabled, on a per-interface basis, by setting the IFF_NOTRAILERS
50flag with an SIOCSIFFLAGS ioctl.
51.SH DIAGNOSTICS
52.BR "ec%d: send error" .
53After 16 retransmissions using the
54exponential backoff algorithm described above, the packet
55was dropped.
56.PP
57.BR "ec%d: input error (offset=%d)" .
58The hardware indicated an error
59in reading a packet off the cable or an illegally sized packet.
60The buffer offset value is printed for debugging purposes.
61.PP
62.BR "ec%d: can't handle af%d" .
63The interface was handed
64a message with addresses formatted in an unsuitable address
65family; the packet was dropped.
66.SH SEE ALSO
67intro(4N), inet(4F), arp(4P)
68.SH BUGS
69The PUP protocol family should be added.
70.PP
71The hardware is not capable of talking to itself. The software
72implements local sending and broadcast by sending such packets to the
73loop interface. This is a kludge.
74.PP
75Backoff delays are done in a software busy loop. This can degrade the
76system if the network experiences frequent collisions.