xref: /titanic_53/usr/src/man/man5/ieee802.3.5 (revision 86635a91ceb503bad0052c7a964ec3fd28d548dc)
1*86635a91SGarrett D'Amore.\" Copyright 2014 Garrett D'Amore <garrett@damore.org>
2*86635a91SGarrett D'Amore.\" Redistribution and use in source and binary forms, with or without
3*86635a91SGarrett D'Amore.\" modification, are permitted provided that the following conditions
4*86635a91SGarrett D'Amore.\" are met:
5*86635a91SGarrett D'Amore.\" 1. Redistributions of source code must retain the above copyright
6*86635a91SGarrett D'Amore.\"    notice, this list of conditions and the following disclaimer.
7*86635a91SGarrett D'Amore.\" 2. Redistributions in binary form must reproduce the above copyright
8*86635a91SGarrett D'Amore.\"    notice, this list of conditions and the following disclaimer in the
9*86635a91SGarrett D'Amore.\"    documentation and/or other materials provided with the distribution.
10*86635a91SGarrett D'Amore.\"
11*86635a91SGarrett D'Amore.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS
12*86635a91SGarrett D'Amore.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
13*86635a91SGarrett D'Amore.\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
14*86635a91SGarrett D'Amore.\" FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE
15*86635a91SGarrett D'Amore.\" COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
16*86635a91SGarrett D'Amore.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
17*86635a91SGarrett D'Amore.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
18*86635a91SGarrett D'Amore.\" USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
19*86635a91SGarrett D'Amore.\" ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
20*86635a91SGarrett D'Amore.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
21*86635a91SGarrett D'Amore.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
22*86635a91SGarrett D'Amore.\"
23*86635a91SGarrett D'Amore.Dd "Aug 7, 2014"
24*86635a91SGarrett D'Amore.Dt IEEE802.3 5
25*86635a91SGarrett D'Amore.Os
26*86635a91SGarrett D'Amore.Sh NAME
27*86635a91SGarrett D'Amore.Nm ieee802.3
28*86635a91SGarrett D'Amore.Nd IEEE 802.3 Ethernet parameters and statistics
29*86635a91SGarrett D'Amore.Sh DESCRIPTION
30*86635a91SGarrett D'AmoreThe IEEE 802.3 standard specifies the details for Ethernet
31*86635a91SGarrett D'Amorenetworking.  This page describes the various statistics and tunables
32*86635a91SGarrett D'Amorethat device drivers supporting Ethernet commonly offer.
33*86635a91SGarrett D'Amore.
34*86635a91SGarrett D'AmoreNote that not every device or driver supports every one of these
35*86635a91SGarrett D'Amorevalues, and many devices offer additional statistics and tunables that
36*86635a91SGarrett D'Amoreare specific to that hardware.  See the device driver's documentation
37*86635a91SGarrett D'Amorefor those specific details.
38*86635a91SGarrett D'Amore.
39*86635a91SGarrett D'Amore.Lp
40*86635a91SGarrett D'AmoreValues that are statistics are visible
41*86635a91SGarrett D'Amore.Xr kstat 1M ,
42*86635a91SGarrett D'Amorewhereas properties are visible using the
43*86635a91SGarrett D'Amore.Xr dladm 1M
44*86635a91SGarrett D'Amore.Sy show-linkprop
45*86635a91SGarrett D'Amoresubcommand.  Tunables are properties that can be changed using the
46*86635a91SGarrett D'Amore.Xr dladm 1M
47*86635a91SGarrett D'Amore.Sy set-linkprop
48*86635a91SGarrett D'Amoresubcommand.  A more useful summary of current operational
49*86635a91SGarrett D'Amorestate can be seen with the
50*86635a91SGarrett D'Amore.Xr dladm 1M
51*86635a91SGarrett D'Amore.Sy show-ether
52*86635a91SGarrett D'Amoresubcommand.
53*86635a91SGarrett D'Amore.
54*86635a91SGarrett D'Amore.Ss Statistics
55*86635a91SGarrett D'AmoreThe following statistics are accessible with
56*86635a91SGarrett D'Amore.Xr kstat 1M .
57*86635a91SGarrett D'AmoreNote that some statistics are available in both 32- and 64-bit counters,
58*86635a91SGarrett D'Amorein which case the name of the 64 bit statistic will be the same as the
59*86635a91SGarrett D'Amore32-bit, but with
60*86635a91SGarrett D'Amore.Dq Sy 64
61*86635a91SGarrett D'Amoreappended.  For example,
62*86635a91SGarrett D'Amore.Sy ipackets64
63*86635a91SGarrett D'Amoreis the 64-bit version of the
64*86635a91SGarrett D'Amore.Sy ipackets
65*86635a91SGarrett D'Amorestatistic. These are indicated with the special suffix
66*86635a91SGarrett D'Amore.Op Sy 64
67*86635a91SGarrett D'Amorein the table below.
68*86635a91SGarrett D'Amore.
69*86635a91SGarrett D'Amore.Bl -tag -width tx_late_collisions
70*86635a91SGarrett D'Amore.It Sy adv_cap_1000fdx
71*86635a91SGarrett D'AmoreAdvertises 1000 Mbps full-duplex support.
72*86635a91SGarrett D'Amore.It Sy adv_cap_1000hdx
73*86635a91SGarrett D'AmoreAdvertises 1000 Mbps half-duplex support.
74*86635a91SGarrett D'Amore.It Sy adv_cap_100fdx
75*86635a91SGarrett D'AmoreAdvertises 100 Mbps full-duplex support.
76*86635a91SGarrett D'Amore.It Sy adv_cap_100hdx
77*86635a91SGarrett D'AmoreAdvertises 100 Mbps half-duplex support.
78*86635a91SGarrett D'Amore.It Sy adv_cap_100T4
79*86635a91SGarrett D'AmoreAdvertises 100BASE-T4 support.
80*86635a91SGarrett D'Amore.It Sy adv_cap_10fdx
81*86635a91SGarrett D'AmoreAdvertises 10 Mbps full-duplex support.
82*86635a91SGarrett D'Amore.It Sy adv_cap_10gfdx
83*86635a91SGarrett D'AmoreAdvertises 10 Gbps support.
84*86635a91SGarrett D'Amore.It Sy adv_cap_10hdx
85*86635a91SGarrett D'AmoreAdvertises 10 Mbps half-duplex support.
86*86635a91SGarrett D'Amore.It Sy adv_cap_autoneg
87*86635a91SGarrett D'AmoreAdvertises auto-negotiation support.
88*86635a91SGarrett D'Amore.It Sy adv_cap_asmpause
89*86635a91SGarrett D'AmoreAdvertises asymmetric flow control support.
90*86635a91SGarrett D'Amore.It Sy adv_cap_pause
91*86635a91SGarrett D'AmoreAdvertises flow control support.
92*86635a91SGarrett D'Amore.It Sy adv_rem_fault
93*86635a91SGarrett D'AmoreRemote fault status sent to peer.
94*86635a91SGarrett D'Amore.It Sy align_errors
95*86635a91SGarrett D'AmoreMis-aligned frames received.
96*86635a91SGarrett D'Amore.It Sy brdcstrcv
97*86635a91SGarrett D'AmoreBroadcast frames received.
98*86635a91SGarrett D'Amore.It Sy brdcstxmt
99*86635a91SGarrett D'AmoreBroadcast frames transmitted.
100*86635a91SGarrett D'Amore.It Sy cap_1000fdx
101*86635a91SGarrett D'AmoreDevice supports 1000 Mbps full-duplex.
102*86635a91SGarrett D'Amore.It Sy cap_1000hdx
103*86635a91SGarrett D'AmoreDevice supports 1000 Mbps half-duplex.
104*86635a91SGarrett D'Amore.It Sy cap_100fdx
105*86635a91SGarrett D'AmoreDevice supports 100 Mbps full-duplex.
106*86635a91SGarrett D'Amore.It Sy cap_100hdx
107*86635a91SGarrett D'AmoreDevice supports 100 Mbps half-duplex.
108*86635a91SGarrett D'Amore.It Sy cap_100T4
109*86635a91SGarrett D'AmoreDevice supports 100BASE-T4.
110*86635a91SGarrett D'Amore.It Sy cap_10fdx
111*86635a91SGarrett D'AmoreDevice supports 10 Mbps full-duplex.
112*86635a91SGarrett D'Amore.It Sy cap_10gfdx
113*86635a91SGarrett D'AmoreDevice supports 10 Gpbs.
114*86635a91SGarrett D'Amore.It Sy cap_10hdx
115*86635a91SGarrett D'AmoreDevice supports 10 Mbps half-duplex.
116*86635a91SGarrett D'Amore.It Sy cap_asmpause
117*86635a91SGarrett D'AmoreDevice supports asymmetric flow control.
118*86635a91SGarrett D'Amore.It Sy cap_autoneg
119*86635a91SGarrett D'AmoreDevice supports auto-negotiation.
120*86635a91SGarrett D'Amore.It Sy cap_pause
121*86635a91SGarrett D'AmoreDevice supports symmetric flow control.
122*86635a91SGarrett D'Amore.It Sy cap_rem_fault
123*86635a91SGarrett D'AmoreDevice supports remote fault notification.
124*86635a91SGarrett D'Amore.It Sy carrier_errors
125*86635a91SGarrett D'AmoreFrames dropped due to loss of link.
126*86635a91SGarrett D'Amore.It Sy collisions
127*86635a91SGarrett D'AmoreCollisions.
128*86635a91SGarrett D'Amore.It Sy defer_xmts
129*86635a91SGarrett D'AmoreTransmits deferred due to link activity.
130*86635a91SGarrett D'Amore.It Sy ex_collisions
131*86635a91SGarrett D'AmoreFrames dropped due to too many collisions.
132*86635a91SGarrett D'Amore.It Sy fcs_errors
133*86635a91SGarrett D'AmoreFrames received with bad frame checksum.
134*86635a91SGarrett D'Amore.It Sy first_collisions
135*86635a91SGarrett D'AmoreFrames with at least one collision.
136*86635a91SGarrett D'Amore.It Sy ierrors
137*86635a91SGarrett D'AmoreReceive errors.
138*86635a91SGarrett D'Amore.It Sy ifspeed
139*86635a91SGarrett D'AmoreLink speed in bits per second.
140*86635a91SGarrett D'Amore.It Sy ipackets Ns Op Sy 64
141*86635a91SGarrett D'AmoreFrames received successfully.
142*86635a91SGarrett D'Amore.It Sy jabber_errors
143*86635a91SGarrett D'AmoreJabber errors.
144*86635a91SGarrett D'Amore.It Sy link_asmpause
145*86635a91SGarrett D'AmoreAsymmetric flow control; works together with
146*86635a91SGarrett D'Amore.Sy link_pause .
147*86635a91SGarrett D'AmoreSee the description for it below.
148*86635a91SGarrett D'Amore.It Sy link_autoneg
149*86635a91SGarrett D'AmoreLink was auto-negotiated.
150*86635a91SGarrett D'Amore.It Sy link_duplex
151*86635a91SGarrett D'AmoreLink duplex status, values as follows:
152*86635a91SGarrett D'Amore.Bl -column "0" infinity
153*86635a91SGarrett D'Amore.It 0 Ta Unknown.
154*86635a91SGarrett D'Amore.It 1 Ta Half-duplex.
155*86635a91SGarrett D'Amore.It 2 Ta Full-duplex.
156*86635a91SGarrett D'Amore.El
157*86635a91SGarrett D'Amore.It Sy link_pause
158*86635a91SGarrett D'AmoreLink flow control available; works together with
159*86635a91SGarrett D'Amore.Sy link_asmpause .
160*86635a91SGarrett D'AmoreThe meanings of these bits are:
161*86635a91SGarrett D'Amore.Bl -column "pause" "asmpause"
162*86635a91SGarrett D'Amore.It Sy pause Ta Sy asmpause Ta Sy meaning
163*86635a91SGarrett D'Amore.It 0 Ta 0 Ta "No flow control."
164*86635a91SGarrett D'Amore.It 1 Ta 0 Ta Symmetric flow control.
165*86635a91SGarrett D'Amore.It 0 Ta 1 Ta Honor received pause frames.
166*86635a91SGarrett D'Amore.It 1 Ta 1 Ta Send pause frames when congested.
167*86635a91SGarrett D'Amore.El
168*86635a91SGarrett D'Amore.It Sy link_state
169*86635a91SGarrett D'AmoreLink state; 0 for down, 1 for up.
170*86635a91SGarrett D'Amore.It Sy link_up
171*86635a91SGarrett D'AmoreLink is up if 1.
172*86635a91SGarrett D'Amore.It Sy lp_cap_1000fdx
173*86635a91SGarrett D'AmorePeer supports 1000 Mbps full-duplex.
174*86635a91SGarrett D'Amore.It Sy lp_cap_1000hdx
175*86635a91SGarrett D'AmorePeer supports 1000 Mbps half-duplex.
176*86635a91SGarrett D'Amore.It Sy lp_cap_100fdx
177*86635a91SGarrett D'AmorePeer supports 100 Mbps full-duplex.
178*86635a91SGarrett D'Amore.It Sy lp_cap_100hdx
179*86635a91SGarrett D'AmorePeer supports 100 Mbps half-duplex.
180*86635a91SGarrett D'Amore.It Sy lp_cap_100T4
181*86635a91SGarrett D'AmorePeer supports 100BASE-T4.
182*86635a91SGarrett D'Amore.It Sy lp_cap_10fdx
183*86635a91SGarrett D'AmorePeer supports 10 Mbps full-duplex.
184*86635a91SGarrett D'Amore.It Sy lp_cap_10gfdx
185*86635a91SGarrett D'AmorePeer supports 10 Gbps.
186*86635a91SGarrett D'Amore.It Sy lp_cap_10hdx
187*86635a91SGarrett D'AmorePeer supports 10 Mbps half-duplex.
188*86635a91SGarrett D'Amore.It Sy lp_cap_asmpause
189*86635a91SGarrett D'AmorePeer supports asymmetric flow control.
190*86635a91SGarrett D'Amore.It Sy lp_cap_autoneg
191*86635a91SGarrett D'AmorePeer supports auto-negotiation.
192*86635a91SGarrett D'Amore.It Sy lp_cap_pause
193*86635a91SGarrett D'AmorePeer advertises flow control support.
194*86635a91SGarrett D'Amore.It Sy lp_rem_fault
195*86635a91SGarrett D'AmorePeer announces a remote fault.
196*86635a91SGarrett D'Amore.It Sy macrv_errors
197*86635a91SGarrett D'AmoreGeneric receive errors.
198*86635a91SGarrett D'Amore.It Sy macxmt_errors
199*86635a91SGarrett D'AmoreGeneric transmit errors.
200*86635a91SGarrett D'Amore.It Sy multi_collisions
201*86635a91SGarrett D'AmoreFrames with more than one collision.
202*86635a91SGarrett D'Amore.It Sy multircv
203*86635a91SGarrett D'AmoreMulticast frames received.
204*86635a91SGarrett D'Amore.It Sy multixmt
205*86635a91SGarrett D'AmoreMulticast frames transmitted.
206*86635a91SGarrett D'Amore.It Sy norcvbuf
207*86635a91SGarrett D'AmoreReceive frames dropped due to lack of resources.
208*86635a91SGarrett D'Amore.It Sy noxmtbuf
209*86635a91SGarrett D'AmoreTransmit frames dropped due to lack of resources.
210*86635a91SGarrett D'Amore.It Sy obytes Ns Op Sy 64
211*86635a91SGarrett D'AmoreBytes (octets) transmitted successfully.
212*86635a91SGarrett D'Amore.It Sy oerrors
213*86635a91SGarrett D'AmoreTransmit errors.
214*86635a91SGarrett D'Amore.It Sy oflo
215*86635a91SGarrett D'AmoreOverflow errors.
216*86635a91SGarrett D'Amore.It Sy opackets Ns Op Sy 64
217*86635a91SGarrett D'AmoreFrames successfully transmitted.
218*86635a91SGarrett D'Amore.It Sy promisc
219*86635a91SGarrett D'AmoreInterface is in promiscuous mode.
220*86635a91SGarrett D'Amore.It Sy rbytes Ns Op Sy 64
221*86635a91SGarrett D'AmoreBytes (octets) received successfully.
222*86635a91SGarrett D'Amore.It Sy runt_errors
223*86635a91SGarrett D'AmoreFrames received that were too short.
224*86635a91SGarrett D'Amore.It Sy sqe_errors
225*86635a91SGarrett D'AmoreSquelch errors.
226*86635a91SGarrett D'Amore.It Sy toolong_errors
227*86635a91SGarrett D'AmoreFrames received that were too long.
228*86635a91SGarrett D'Amore.It Sy tx_late_collisions
229*86635a91SGarrett D'AmoreLate collisions on transmit.
230*86635a91SGarrett D'Amore.It Sy uflo
231*86635a91SGarrett D'AmoreUnderflow errors.
232*86635a91SGarrett D'Amore.It Sy unknowns
233*86635a91SGarrett D'AmoreFrames received with no local recipient.
234*86635a91SGarrett D'Amore.It Sy xcvr_addr
235*86635a91SGarrett D'AmoreTransceiver address.
236*86635a91SGarrett D'Amore.It Sy xcvr_id
237*86635a91SGarrett D'AmoreTransceiver vendor and device ID.
238*86635a91SGarrett D'Amore.It Sy xcvr_inuse
239*86635a91SGarrett D'AmoreIdentifies the type of transceiver in use.  Values are as follows:
240*86635a91SGarrett D'Amore.Bl -column "0"
241*86635a91SGarrett D'Amore.It 0 Ta Unknown or undefined.
242*86635a91SGarrett D'Amore.It 1 Ta None.
243*86635a91SGarrett D'Amore.It 2 Ta 10 Mbps
244*86635a91SGarrett D'Amore.It 3 Ta 100BASE-T4
245*86635a91SGarrett D'Amore.It 4 Ta 100BASE-X
246*86635a91SGarrett D'Amore.It 5 Ta 100BASE-T2
247*86635a91SGarrett D'Amore.It 6 Ta 1000BASE-X
248*86635a91SGarrett D'Amore.It 7 Ta 1000BASE-T
249*86635a91SGarrett D'Amore.El
250*86635a91SGarrett D'Amore.El
251*86635a91SGarrett D'Amore.Ss Properties
252*86635a91SGarrett D'AmoreThe following parameters are accessible with
253*86635a91SGarrett D'Amore.Xr dladm 1M .
254*86635a91SGarrett D'AmoreSome of these are normally read-only.  Other properties that are not
255*86635a91SGarrett D'Amorespecific to IEEE 802.3 / Ethernet links are also available via
256*86635a91SGarrett D'Amore.Xr dladm 1M ,
257*86635a91SGarrett D'Amoreand are documented in its man page rather than here.
258*86635a91SGarrett D'Amore.
259*86635a91SGarrett D'Amore.Bl -tag -width adv_1000hdx_cap
260*86635a91SGarrett D'Amore.It Sy speed
261*86635a91SGarrett D'AmoreLink speed, in Mbps per second (dladm only).
262*86635a91SGarrett D'Amore.It Sy duplex
263*86635a91SGarrett D'AmoreLink duplex, either "full" or "half".
264*86635a91SGarrett D'Amore.It Sy state
265*86635a91SGarrett D'AmoreLink state, either "up" or "down".
266*86635a91SGarrett D'Amore.It Sy mtu
267*86635a91SGarrett D'AmoreMaximum link frame size in bytes. See
268*86635a91SGarrett D'Amore.Sx Jumbo Frames .
269*86635a91SGarrett D'Amore.It Sy flowctrl
270*86635a91SGarrett D'AmoreFlow control setting, one of \(dqno\(dq, \(dqtx\(dq, \(dqrx\(dq, or \(dqbi\(dq.
271*86635a91SGarrett D'AmoreSee
272*86635a91SGarrett D'Amore.Sx Flow Control .
273*86635a91SGarrett D'Amore.It Sy adv_10gfdx_cap
274*86635a91SGarrett D'AmoreAdvertising 10 Gbps support.
275*86635a91SGarrett D'Amore.It Sy en_10gfdx_cap
276*86635a91SGarrett D'AmoreEnable 10 Gbps support.
277*86635a91SGarrett D'Amore.
278*86635a91SGarrett D'Amore.It Sy adv_1000fdx_cap
279*86635a91SGarrett D'AmoreAdvertising 1000 Mbps full-duplex support.
280*86635a91SGarrett D'Amore.It Sy en_1000fdx_cap
281*86635a91SGarrett D'AmoreEnable 1000 Mbps full-duplex.
282*86635a91SGarrett D'Amore.
283*86635a91SGarrett D'Amore.It Sy adv_1000hdx_cap
284*86635a91SGarrett D'AmoreAdvertising 1000 Mbps half-duplex support.
285*86635a91SGarrett D'Amore.It Sy en_1000hdx_cap
286*86635a91SGarrett D'AmoreEnable 1000 Mbps half-duplex.
287*86635a91SGarrett D'Amore.
288*86635a91SGarrett D'Amore.It Sy adv_100fdx_cap
289*86635a91SGarrett D'AmoreAdvertising 100 Mbps full-duplex support.
290*86635a91SGarrett D'Amore.It Sy en_100fdx_cap
291*86635a91SGarrett D'AmoreEnable 100 Mbps full-duplex.
292*86635a91SGarrett D'Amore.
293*86635a91SGarrett D'Amore.It Sy adv_100hdx_cap
294*86635a91SGarrett D'AmoreAdvertising 100 Mbps half-duplex support.
295*86635a91SGarrett D'Amore.It Sy en_100hdx_cap
296*86635a91SGarrett D'AmoreEnable 100 Mbps half-duplex.
297*86635a91SGarrett D'Amore.
298*86635a91SGarrett D'Amore.It Sy adv_10fdx_cap
299*86635a91SGarrett D'AmoreAdvertising 10 Mbps full-duplex support.
300*86635a91SGarrett D'Amore.It Sy en_10fhdx_cap
301*86635a91SGarrett D'AmoreEnable 100 Mbps full-duplex.
302*86635a91SGarrett D'Amore.
303*86635a91SGarrett D'Amore.It Sy adv_10hdx_cap
304*86635a91SGarrett D'AmoreAdvertising 10 Mbps half-duplex support.
305*86635a91SGarrett D'Amore.It Sy en_10fhdx_cap
306*86635a91SGarrett D'AmoreEnable 10 Mbps half-duplex.
307*86635a91SGarrett D'Amore.El
308*86635a91SGarrett D'Amore.Ss Auto-negotiation
309*86635a91SGarrett D'AmoreWith modern devices, auto-negotiation is normally handled automatically.  With
310*86635a91SGarrett D'Amore10 Gbps and 1000 Gbps, it is mandatory.  (10GBASE-T also requires full-duplex
311*86635a91SGarrett D'Amoreoperation.) It is also
312*86635a91SGarrett D'Amore.Em strongly
313*86635a91SGarrett D'Amorerecommended for use whenever possible; without auto-negotiation the link
314*86635a91SGarrett D'Amorewill usually not operate unless both partners are configured to use the
315*86635a91SGarrett D'Amoresame link mode.
316*86635a91SGarrett D'Amore.Lp
317*86635a91SGarrett D'AmoreAuto-negotiation, when enabled, takes place by comparing the local capabilities
318*86635a91SGarrett D'Amorethat have been advertised (which must also be supported by the local device),
319*86635a91SGarrett D'Amorewith the capabilities that have been advertised by the link partner (peer).
320*86635a91SGarrett D'Amore.
321*86635a91SGarrett D'AmoreThe first of the following modes that is supported by both partners is
322*86635a91SGarrett D'Amoreselected as the link negotiation result:
323*86635a91SGarrett D'Amore.Lp
324*86635a91SGarrett D'Amore.Bl -bullet -offset indent -compact
325*86635a91SGarrett D'Amore.It
326*86635a91SGarrett D'Amore10 Gbps (10gfdx)
327*86635a91SGarrett D'Amore.It
328*86635a91SGarrett D'Amore1000 Mbps full-duplex (1000fdx)
329*86635a91SGarrett D'Amore.It
330*86635a91SGarrett D'Amore1000 Mbps half-duplex (1000hdx)
331*86635a91SGarrett D'Amore.It
332*86635a91SGarrett D'Amore100 Mbps full-duplex (100fdx)
333*86635a91SGarrett D'Amore.It
334*86635a91SGarrett D'Amore100BASE-T4 (100T4)
335*86635a91SGarrett D'Amore.It
336*86635a91SGarrett D'Amore100 Mbps half-duplex (100hdx)
337*86635a91SGarrett D'Amore.It
338*86635a91SGarrett D'Amore10 Mbps full-duplex (10fdx)
339*86635a91SGarrett D'Amore.It
340*86635a91SGarrett D'Amore10 Mbps half-duplex (10hdx)
341*86635a91SGarrett D'Amore.El
342*86635a91SGarrett D'Amore.Lp
343*86635a91SGarrett D'AmoreAdvertisement of these modes can be enabled or disabled by setting the
344*86635a91SGarrett D'Amoreappropriate
345*86635a91SGarrett D'Amore.Sy en_
346*86635a91SGarrett D'Amoreproperty in
347*86635a91SGarrett D'Amore.Xr dladm 1M .
348*86635a91SGarrett D'Amore.Lp
349*86635a91SGarrett D'AmoreAuto-negotation may also be disabled, by setting the
350*86635a91SGarrett D'Amore.Sy adv_autoneg_cap
351*86635a91SGarrett D'Amoreproperty to 0.  In this case, the highest enabled link mode (using the above
352*86635a91SGarrett D'Amorelist) is
353*86635a91SGarrett D'Amore.Dq forced
354*86635a91SGarrett D'Amorefor the link.
355*86635a91SGarrett D'Amore.Ss Flow Control
356*86635a91SGarrett D'AmoreLink layer flow control is available on many modern devices, and is mandatory
357*86635a91SGarrett D'Amorefor operation at 10 Gbps. It requires that the link be auto-negotiated, and
358*86635a91SGarrett D'Amorethat the link be full-duplex, in order to function.
359*86635a91SGarrett D'Amore.Lp
360*86635a91SGarrett D'AmoreFlow control is applied when a receiver becomes congested.  In this case the
361*86635a91SGarrett D'Amorereceiver can send a special frame, called a pause frame, to request its
362*86635a91SGarrett D'Amorepartner cease transmitting for a short period of time.
363*86635a91SGarrett D'Amore.Lp
364*86635a91SGarrett D'AmoreFlow control can be said to be either symmetric, in which case both partners
365*86635a91SGarrett D'Amorecan send and honor pause frames, or asymmetric, in which case one partner
366*86635a91SGarrett D'Amoremay not transmit pause frames.
367*86635a91SGarrett D'Amore.Lp
368*86635a91SGarrett D'AmoreThe flow control mode used is driven by the
369*86635a91SGarrett D'Amore.Sy flowctrl
370*86635a91SGarrett D'Amoreproperty.  It has the following meanings:
371*86635a91SGarrett D'Amore.Lp
372*86635a91SGarrett D'Amore.Bl -column -compact -offset indent Dv
373*86635a91SGarrett D'Amore.It \(dqno\(dq Ta Neither send, nor honor pause frames.
374*86635a91SGarrett D'Amore.It \(dqtx\(dq Ta Send pause frames, provided that the peer can support them,
375*86635a91SGarrett D'Amorebut do not honor them.
376*86635a91SGarrett D'Amore.It \(dqrx\(dq Ta Receive and honor pause frames.
377*86635a91SGarrett D'Amore.It \(dqbi\(dq Ta Both send and receive (and honor) pause frames.
378*86635a91SGarrett D'Amore.El
379*86635a91SGarrett D'Amore.Lp
380*86635a91SGarrett D'AmoreThe statistics for flow control
381*86635a91SGarrett D'Amore.Po Sy adv_cap_pause , adv_cap_asmpause , lp_cap_pause , lp_cap_asmpause ,
382*86635a91SGarrett D'Amore.Sy link_pause ,
383*86635a91SGarrett D'Amoreand
384*86635a91SGarrett D'Amore.Sy link_asmpause
385*86635a91SGarrett D'Amore.Pc
386*86635a91SGarrett D'Amoreare based on the properties exchanged in the auto-negotiation and are
387*86635a91SGarrett D'Amoreconfusing as a result.  Administrators are advised to use the
388*86635a91SGarrett D'Amore.Sy flowctrl
389*86635a91SGarrett D'Amoreproperty instead.
390*86635a91SGarrett D'Amore.
391*86635a91SGarrett D'Amore.Ss Jumbo Frames
392*86635a91SGarrett D'AmoreThe IEEE 802.3 standard specifies a standard frame size of 1518 bytes,
393*86635a91SGarrett D'Amorewhich includes a 4-byte frame checksum, a 14-byte header, and 1500 bytes
394*86635a91SGarrett D'Amoreof payload.  Most devices support larger frame sizes than this, and
395*86635a91SGarrett D'Amorewhen all possible parties on the same local network can do so, it may be
396*86635a91SGarrett D'Amoreadvantageous to choose a larger frame size; 9000 bytes is the most common
397*86635a91SGarrett D'Amoreoption, as it allows a transport layer to convey 8 KB (8192) of data, while
398*86635a91SGarrett D'Amoreleaving room for various link, network, and transport layer headers.
399*86635a91SGarrett D'Amore.Lp
400*86635a91SGarrett D'AmoreNote that the use of frames carrying more than 1500 bytes of payload is
401*86635a91SGarrett D'Amorenot standardized, even though it is common practice.
402*86635a91SGarrett D'Amore.Lp
403*86635a91SGarrett D'AmoreThe
404*86635a91SGarrett D'Amore.Sy mtu
405*86635a91SGarrett D'Amoreproperty is used to configure the frame size.  Note that this is the size of
406*86635a91SGarrett D'Amorethe payload, and excludes the preamble, checksum, and header.  It also excludes
407*86635a91SGarrett D'Amorethe tag for devices that support tagging (see
408*86635a91SGarrett D'Amore.Sx Virtual LANs
409*86635a91SGarrett D'Amorebelow).
410*86635a91SGarrett D'Amore.Lp
411*86635a91SGarrett D'AmoreCare must be taken to ensure that all communication parties agree on the same
412*86635a91SGarrett D'Amoresize, or communication may cease to function properly.
413*86635a91SGarrett D'Amore.Lp
414*86635a91SGarrett D'AmoreNote that the
415*86635a91SGarrett D'Amore.Sy mtu
416*86635a91SGarrett D'Amoreproperty refers to the link layer property.  It may be necessary to configure
417*86635a91SGarrett D'Amoreupper layer protocols such as IP to use a different size when this changes.
418*86635a91SGarrett D'AmoreSee
419*86635a91SGarrett D'Amore.Xr ifconfig 1M .
420*86635a91SGarrett D'Amore.
421*86635a91SGarrett D'Amore.Ss Virtual LANs
422*86635a91SGarrett D'AmoreMost devices support virtual LANs (and also priority control tagging) though
423*86635a91SGarrett D'Amorethe use of a 4-byte tag inserted between the frame header and payload.  The
424*86635a91SGarrett D'Amoredetails of configuration of this are covered in the
425*86635a91SGarrett D'Amore.Xr dladm 1M
426*86635a91SGarrett D'Amoremanual.
427*86635a91SGarrett D'Amore.
428*86635a91SGarrett D'Amore.Ss Data Link Provider Interface (DLPI) Details
429*86635a91SGarrett D'Amore.
430*86635a91SGarrett D'AmoreThe correct method for applications to access Ethernet devices directly
431*86635a91SGarrett D'Amoreis to use the DLPI. See
432*86635a91SGarrett D'Amore.Xr dlpi 7P
433*86635a91SGarrett D'Amoreand
434*86635a91SGarrett D'Amore.Xr libdlpi 3LIB
435*86635a91SGarrett D'Amorefor further information.
436*86635a91SGarrett D'Amore.Lp
437*86635a91SGarrett D'AmoreThe following DLPI parameters are presented to applications.
438*86635a91SGarrett D'Amore.Bl -column -offset indent "Broadcast address"
439*86635a91SGarrett D'Amore.It Maximum SDU Ta 1500 (or larger, as determined by the Sy mtu No property.)
440*86635a91SGarrett D'Amore.It Minimum SDU Ta 0
441*86635a91SGarrett D'Amore.It Address length Ta 6
442*86635a91SGarrett D'Amore.It MAC type Ta Dv DL_ETHER
443*86635a91SGarrett D'Amore.It SAP length Ta \(mi2
444*86635a91SGarrett D'Amore.It Service mode Ta Dv DL_CLDLS
445*86635a91SGarrett D'Amore.It Broadcast address Ta Li ff:ff:ff:ff:ff:ff No (6 bytes with all bits set)
446*86635a91SGarrett D'Amore.El
447*86635a91SGarrett D'Amore.Lp
448*86635a91SGarrett D'AmoreNote that if the application binds to SAP of 0, then standard IEEE 802.3
449*86635a91SGarrett D'Amoremode is assumed and the frame length is stored in place of the Ethernet type.
450*86635a91SGarrett D'AmoreFrames that arrive with the type field set to 1500 or less, are delivered
451*86635a91SGarrett D'Amoreto applications that bind to SAP 0.
452*86635a91SGarrett D'Amore.Lp
453*86635a91SGarrett D'AmoreEthernet drivers on the support both DLPI style 1 and style 2 operation.
454*86635a91SGarrett D'AmoreAdditionally, it is possible to configure provide
455*86635a91SGarrett D'Amore.Dq vanity
456*86635a91SGarrett D'Amorenames to interfaces using the
457*86635a91SGarrett D'Amore.Xr dladm 1M
458*86635a91SGarrett D'Amore.Sy rename-link
459*86635a91SGarrett D'Amoresubcommand.  Such vanity names are only accessible using DLPI style 1.
460*86635a91SGarrett D'Amore.Sh NOTES
461*86635a91SGarrett D'AmoreThere may be other mechanisms available to configure link layer properties.
462*86635a91SGarrett D'AmoreHistorically the
463*86635a91SGarrett D'Amore.Xr ndd 1M
464*86635a91SGarrett D'Amorecommand, and
465*86635a91SGarrett D'Amore.Xr driver.conf 4
466*86635a91SGarrett D'Amorefiles could be used to do this.  These methods are deprecated in favor of
467*86635a91SGarrett D'Amore.Xr dladm 1M
468*86635a91SGarrett D'Amoreproperties.
469*86635a91SGarrett D'Amore.
470*86635a91SGarrett D'Amore.Sh INTERFACE STABILITY
471*86635a91SGarrett D'AmoreWhen present, the statistics and properties presented here
472*86635a91SGarrett D'Amoreare
473*86635a91SGarrett D'Amore.Sy Committed .
474*86635a91SGarrett D'AmoreHowever, note that not every Ethernet device supports all of these,
475*86635a91SGarrett D'Amoreand some devices may support additional statistics and properties.
476*86635a91SGarrett D'Amore.Lp
477*86635a91SGarrett D'AmoreThe DLPI and IEEE 802.3 itself are
478*86635a91SGarrett D'Amore.Sy Standard .
479*86635a91SGarrett D'Amore.Sh SEE ALSO
480*86635a91SGarrett D'Amore.Xr dladm 1M ,
481*86635a91SGarrett D'Amore.Xr ifconfig 1M ,
482*86635a91SGarrett D'Amore.Xr kstat 1M ,
483*86635a91SGarrett D'Amore.Xr netstat 1M ,
484*86635a91SGarrett D'Amore.Xr ndd 1M ,
485*86635a91SGarrett D'Amore.Xr libdlpi 3LIB ,
486*86635a91SGarrett D'Amore.Xr driver.conf 4 ,
487*86635a91SGarrett D'Amore.Xr dlpi 7P
488*86635a91SGarrett D'Amore.Rs
489*86635a91SGarrett D'Amore.%T IEEE 802.3: Ethernet
490*86635a91SGarrett D'Amore.%Q IEEE Standards Association
491*86635a91SGarrett D'Amore.Re
492*86635a91SGarrett D'Amore.Rs
493*86635a91SGarrett D'Amore.%B Data Link Provider Interface (DLPI)
494*86635a91SGarrett D'Amore.%Q The Open Group
495*86635a91SGarrett D'Amore.%D 1997
496*86635a91SGarrett D'Amore.Re
497*86635a91SGarrett D'Amore.Rs
498*86635a91SGarrett D'Amore.%B STREAMs Programming Guide
499*86635a91SGarrett D'Amore.%Q Sun Microsystems, Inc.
500*86635a91SGarrett D'Amore.%D January 2005
501*86635a91SGarrett D'Amore.Re
502