186635a91SGarrett D'Amore.\" Copyright 2014 Garrett D'Amore <garrett@damore.org> 286635a91SGarrett D'Amore.\" Redistribution and use in source and binary forms, with or without 386635a91SGarrett D'Amore.\" modification, are permitted provided that the following conditions 486635a91SGarrett D'Amore.\" are met: 586635a91SGarrett D'Amore.\" 1. Redistributions of source code must retain the above copyright 686635a91SGarrett D'Amore.\" notice, this list of conditions and the following disclaimer. 786635a91SGarrett D'Amore.\" 2. Redistributions in binary form must reproduce the above copyright 886635a91SGarrett D'Amore.\" notice, this list of conditions and the following disclaimer in the 986635a91SGarrett D'Amore.\" documentation and/or other materials provided with the distribution. 1086635a91SGarrett D'Amore.\" 1186635a91SGarrett D'Amore.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS 1286635a91SGarrett D'Amore.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1386635a91SGarrett D'Amore.\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 1486635a91SGarrett D'Amore.\" FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 1586635a91SGarrett D'Amore.\" COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 1686635a91SGarrett D'Amore.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 1786635a91SGarrett D'Amore.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF 1886635a91SGarrett D'Amore.\" USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 1986635a91SGarrett D'Amore.\" ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2086635a91SGarrett D'Amore.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 2186635a91SGarrett D'Amore.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE 2286635a91SGarrett D'Amore.\" 2386635a91SGarrett D'Amore.Dd "Aug 7, 2014" 2486635a91SGarrett D'Amore.Dt IEEE802.3 5 2586635a91SGarrett D'Amore.Os 2686635a91SGarrett D'Amore.Sh NAME 2786635a91SGarrett D'Amore.Nm ieee802.3 2886635a91SGarrett D'Amore.Nd IEEE 802.3 Ethernet parameters and statistics 2986635a91SGarrett D'Amore.Sh DESCRIPTION 3086635a91SGarrett D'AmoreThe IEEE 802.3 standard specifies the details for Ethernet 3186635a91SGarrett D'Amorenetworking. This page describes the various statistics and tunables 3286635a91SGarrett D'Amorethat device drivers supporting Ethernet commonly offer. 3386635a91SGarrett D'Amore. 3486635a91SGarrett D'AmoreNote that not every device or driver supports every one of these 3586635a91SGarrett D'Amorevalues, and many devices offer additional statistics and tunables that 3686635a91SGarrett D'Amoreare specific to that hardware. See the device driver's documentation 3786635a91SGarrett D'Amorefor those specific details. 3886635a91SGarrett D'Amore. 3986635a91SGarrett D'Amore.Lp 4086635a91SGarrett D'AmoreValues that are statistics are visible 4186635a91SGarrett D'Amore.Xr kstat 1M , 4286635a91SGarrett D'Amorewhereas properties are visible using the 4386635a91SGarrett D'Amore.Xr dladm 1M 4486635a91SGarrett D'Amore.Sy show-linkprop 4586635a91SGarrett D'Amoresubcommand. Tunables are properties that can be changed using the 4686635a91SGarrett D'Amore.Xr dladm 1M 4786635a91SGarrett D'Amore.Sy set-linkprop 4886635a91SGarrett D'Amoresubcommand. A more useful summary of current operational 4986635a91SGarrett D'Amorestate can be seen with the 5086635a91SGarrett D'Amore.Xr dladm 1M 5186635a91SGarrett D'Amore.Sy show-ether 5286635a91SGarrett D'Amoresubcommand. 5386635a91SGarrett D'Amore. 5486635a91SGarrett D'Amore.Ss Statistics 5586635a91SGarrett D'AmoreThe following statistics are accessible with 5686635a91SGarrett D'Amore.Xr kstat 1M . 5786635a91SGarrett D'AmoreNote that some statistics are available in both 32- and 64-bit counters, 5886635a91SGarrett D'Amorein which case the name of the 64 bit statistic will be the same as the 5986635a91SGarrett D'Amore32-bit, but with 6086635a91SGarrett D'Amore.Dq Sy 64 6186635a91SGarrett D'Amoreappended. For example, 6286635a91SGarrett D'Amore.Sy ipackets64 6386635a91SGarrett D'Amoreis the 64-bit version of the 6486635a91SGarrett D'Amore.Sy ipackets 6586635a91SGarrett D'Amorestatistic. These are indicated with the special suffix 6686635a91SGarrett D'Amore.Op Sy 64 6786635a91SGarrett D'Amorein the table below. 6886635a91SGarrett D'Amore. 6986635a91SGarrett D'Amore.Bl -tag -width tx_late_collisions 7086635a91SGarrett D'Amore.It Sy adv_cap_1000fdx 7186635a91SGarrett D'AmoreAdvertises 1000 Mbps full-duplex support. 7286635a91SGarrett D'Amore.It Sy adv_cap_1000hdx 7386635a91SGarrett D'AmoreAdvertises 1000 Mbps half-duplex support. 7486635a91SGarrett D'Amore.It Sy adv_cap_100fdx 7586635a91SGarrett D'AmoreAdvertises 100 Mbps full-duplex support. 7686635a91SGarrett D'Amore.It Sy adv_cap_100hdx 7786635a91SGarrett D'AmoreAdvertises 100 Mbps half-duplex support. 7886635a91SGarrett D'Amore.It Sy adv_cap_100T4 7986635a91SGarrett D'AmoreAdvertises 100BASE-T4 support. 8086635a91SGarrett D'Amore.It Sy adv_cap_10fdx 8186635a91SGarrett D'AmoreAdvertises 10 Mbps full-duplex support. 8286635a91SGarrett D'Amore.It Sy adv_cap_10gfdx 8386635a91SGarrett D'AmoreAdvertises 10 Gbps support. 8486635a91SGarrett D'Amore.It Sy adv_cap_10hdx 8586635a91SGarrett D'AmoreAdvertises 10 Mbps half-duplex support. 8686635a91SGarrett D'Amore.It Sy adv_cap_autoneg 8786635a91SGarrett D'AmoreAdvertises auto-negotiation support. 8886635a91SGarrett D'Amore.It Sy adv_cap_asmpause 8986635a91SGarrett D'AmoreAdvertises asymmetric flow control support. 9086635a91SGarrett D'Amore.It Sy adv_cap_pause 9186635a91SGarrett D'AmoreAdvertises flow control support. 9286635a91SGarrett D'Amore.It Sy adv_rem_fault 9386635a91SGarrett D'AmoreRemote fault status sent to peer. 9486635a91SGarrett D'Amore.It Sy align_errors 9586635a91SGarrett D'AmoreMis-aligned frames received. 9686635a91SGarrett D'Amore.It Sy brdcstrcv 9786635a91SGarrett D'AmoreBroadcast frames received. 9886635a91SGarrett D'Amore.It Sy brdcstxmt 9986635a91SGarrett D'AmoreBroadcast frames transmitted. 10086635a91SGarrett D'Amore.It Sy cap_1000fdx 10186635a91SGarrett D'AmoreDevice supports 1000 Mbps full-duplex. 10286635a91SGarrett D'Amore.It Sy cap_1000hdx 10386635a91SGarrett D'AmoreDevice supports 1000 Mbps half-duplex. 10486635a91SGarrett D'Amore.It Sy cap_100fdx 10586635a91SGarrett D'AmoreDevice supports 100 Mbps full-duplex. 10686635a91SGarrett D'Amore.It Sy cap_100hdx 10786635a91SGarrett D'AmoreDevice supports 100 Mbps half-duplex. 10886635a91SGarrett D'Amore.It Sy cap_100T4 10986635a91SGarrett D'AmoreDevice supports 100BASE-T4. 11086635a91SGarrett D'Amore.It Sy cap_10fdx 11186635a91SGarrett D'AmoreDevice supports 10 Mbps full-duplex. 11286635a91SGarrett D'Amore.It Sy cap_10gfdx 11386635a91SGarrett D'AmoreDevice supports 10 Gpbs. 11486635a91SGarrett D'Amore.It Sy cap_10hdx 11586635a91SGarrett D'AmoreDevice supports 10 Mbps half-duplex. 11686635a91SGarrett D'Amore.It Sy cap_asmpause 11786635a91SGarrett D'AmoreDevice supports asymmetric flow control. 11886635a91SGarrett D'Amore.It Sy cap_autoneg 11986635a91SGarrett D'AmoreDevice supports auto-negotiation. 12086635a91SGarrett D'Amore.It Sy cap_pause 12186635a91SGarrett D'AmoreDevice supports symmetric flow control. 12286635a91SGarrett D'Amore.It Sy cap_rem_fault 12386635a91SGarrett D'AmoreDevice supports remote fault notification. 12486635a91SGarrett D'Amore.It Sy carrier_errors 12586635a91SGarrett D'AmoreFrames dropped due to loss of link. 12686635a91SGarrett D'Amore.It Sy collisions 12786635a91SGarrett D'AmoreCollisions. 12886635a91SGarrett D'Amore.It Sy defer_xmts 12986635a91SGarrett D'AmoreTransmits deferred due to link activity. 13086635a91SGarrett D'Amore.It Sy ex_collisions 13186635a91SGarrett D'AmoreFrames dropped due to too many collisions. 13286635a91SGarrett D'Amore.It Sy fcs_errors 13386635a91SGarrett D'AmoreFrames received with bad frame checksum. 13486635a91SGarrett D'Amore.It Sy first_collisions 13586635a91SGarrett D'AmoreFrames with at least one collision. 13686635a91SGarrett D'Amore.It Sy ierrors 13786635a91SGarrett D'AmoreReceive errors. 13886635a91SGarrett D'Amore.It Sy ifspeed 13986635a91SGarrett D'AmoreLink speed in bits per second. 14086635a91SGarrett D'Amore.It Sy ipackets Ns Op Sy 64 14186635a91SGarrett D'AmoreFrames received successfully. 14286635a91SGarrett D'Amore.It Sy jabber_errors 14386635a91SGarrett D'AmoreJabber errors. 14486635a91SGarrett D'Amore.It Sy link_asmpause 14586635a91SGarrett D'AmoreAsymmetric flow control; works together with 14686635a91SGarrett D'Amore.Sy link_pause . 14786635a91SGarrett D'AmoreSee the description for it below. 14886635a91SGarrett D'Amore.It Sy link_autoneg 14986635a91SGarrett D'AmoreLink was auto-negotiated. 15086635a91SGarrett D'Amore.It Sy link_duplex 15186635a91SGarrett D'AmoreLink duplex status, values as follows: 15286635a91SGarrett D'Amore.Bl -column "0" infinity 15386635a91SGarrett D'Amore.It 0 Ta Unknown. 15486635a91SGarrett D'Amore.It 1 Ta Half-duplex. 15586635a91SGarrett D'Amore.It 2 Ta Full-duplex. 15686635a91SGarrett D'Amore.El 15786635a91SGarrett D'Amore.It Sy link_pause 15886635a91SGarrett D'AmoreLink flow control available; works together with 15986635a91SGarrett D'Amore.Sy link_asmpause . 16086635a91SGarrett D'AmoreThe meanings of these bits are: 16186635a91SGarrett D'Amore.Bl -column "pause" "asmpause" 16286635a91SGarrett D'Amore.It Sy pause Ta Sy asmpause Ta Sy meaning 16386635a91SGarrett D'Amore.It 0 Ta 0 Ta "No flow control." 16486635a91SGarrett D'Amore.It 1 Ta 0 Ta Symmetric flow control. 16586635a91SGarrett D'Amore.It 0 Ta 1 Ta Honor received pause frames. 16686635a91SGarrett D'Amore.It 1 Ta 1 Ta Send pause frames when congested. 16786635a91SGarrett D'Amore.El 16886635a91SGarrett D'Amore.It Sy link_state 16986635a91SGarrett D'AmoreLink state; 0 for down, 1 for up. 17086635a91SGarrett D'Amore.It Sy link_up 17186635a91SGarrett D'AmoreLink is up if 1. 17286635a91SGarrett D'Amore.It Sy lp_cap_1000fdx 17386635a91SGarrett D'AmorePeer supports 1000 Mbps full-duplex. 17486635a91SGarrett D'Amore.It Sy lp_cap_1000hdx 17586635a91SGarrett D'AmorePeer supports 1000 Mbps half-duplex. 17686635a91SGarrett D'Amore.It Sy lp_cap_100fdx 17786635a91SGarrett D'AmorePeer supports 100 Mbps full-duplex. 17886635a91SGarrett D'Amore.It Sy lp_cap_100hdx 17986635a91SGarrett D'AmorePeer supports 100 Mbps half-duplex. 18086635a91SGarrett D'Amore.It Sy lp_cap_100T4 18186635a91SGarrett D'AmorePeer supports 100BASE-T4. 18286635a91SGarrett D'Amore.It Sy lp_cap_10fdx 18386635a91SGarrett D'AmorePeer supports 10 Mbps full-duplex. 18486635a91SGarrett D'Amore.It Sy lp_cap_10gfdx 18586635a91SGarrett D'AmorePeer supports 10 Gbps. 18686635a91SGarrett D'Amore.It Sy lp_cap_10hdx 18786635a91SGarrett D'AmorePeer supports 10 Mbps half-duplex. 18886635a91SGarrett D'Amore.It Sy lp_cap_asmpause 18986635a91SGarrett D'AmorePeer supports asymmetric flow control. 19086635a91SGarrett D'Amore.It Sy lp_cap_autoneg 19186635a91SGarrett D'AmorePeer supports auto-negotiation. 19286635a91SGarrett D'Amore.It Sy lp_cap_pause 19386635a91SGarrett D'AmorePeer advertises flow control support. 19486635a91SGarrett D'Amore.It Sy lp_rem_fault 19586635a91SGarrett D'AmorePeer announces a remote fault. 19686635a91SGarrett D'Amore.It Sy macrv_errors 19786635a91SGarrett D'AmoreGeneric receive errors. 19886635a91SGarrett D'Amore.It Sy macxmt_errors 19986635a91SGarrett D'AmoreGeneric transmit errors. 20086635a91SGarrett D'Amore.It Sy multi_collisions 20186635a91SGarrett D'AmoreFrames with more than one collision. 20286635a91SGarrett D'Amore.It Sy multircv 20386635a91SGarrett D'AmoreMulticast frames received. 20486635a91SGarrett D'Amore.It Sy multixmt 20586635a91SGarrett D'AmoreMulticast frames transmitted. 20686635a91SGarrett D'Amore.It Sy norcvbuf 20786635a91SGarrett D'AmoreReceive frames dropped due to lack of resources. 20886635a91SGarrett D'Amore.It Sy noxmtbuf 20986635a91SGarrett D'AmoreTransmit frames dropped due to lack of resources. 21086635a91SGarrett D'Amore.It Sy obytes Ns Op Sy 64 21186635a91SGarrett D'AmoreBytes (octets) transmitted successfully. 21286635a91SGarrett D'Amore.It Sy oerrors 21386635a91SGarrett D'AmoreTransmit errors. 21486635a91SGarrett D'Amore.It Sy oflo 21586635a91SGarrett D'AmoreOverflow errors. 21686635a91SGarrett D'Amore.It Sy opackets Ns Op Sy 64 21786635a91SGarrett D'AmoreFrames successfully transmitted. 21886635a91SGarrett D'Amore.It Sy promisc 21986635a91SGarrett D'AmoreInterface is in promiscuous mode. 22086635a91SGarrett D'Amore.It Sy rbytes Ns Op Sy 64 22186635a91SGarrett D'AmoreBytes (octets) received successfully. 22286635a91SGarrett D'Amore.It Sy runt_errors 22386635a91SGarrett D'AmoreFrames received that were too short. 22486635a91SGarrett D'Amore.It Sy sqe_errors 22586635a91SGarrett D'AmoreSquelch errors. 22686635a91SGarrett D'Amore.It Sy toolong_errors 22786635a91SGarrett D'AmoreFrames received that were too long. 22886635a91SGarrett D'Amore.It Sy tx_late_collisions 22986635a91SGarrett D'AmoreLate collisions on transmit. 23086635a91SGarrett D'Amore.It Sy uflo 23186635a91SGarrett D'AmoreUnderflow errors. 23286635a91SGarrett D'Amore.It Sy unknowns 23386635a91SGarrett D'AmoreFrames received with no local recipient. 23486635a91SGarrett D'Amore.It Sy xcvr_addr 23586635a91SGarrett D'AmoreTransceiver address. 23686635a91SGarrett D'Amore.It Sy xcvr_id 23786635a91SGarrett D'AmoreTransceiver vendor and device ID. 23886635a91SGarrett D'Amore.It Sy xcvr_inuse 23986635a91SGarrett D'AmoreIdentifies the type of transceiver in use. Values are as follows: 24086635a91SGarrett D'Amore.Bl -column "0" 24186635a91SGarrett D'Amore.It 0 Ta Unknown or undefined. 24286635a91SGarrett D'Amore.It 1 Ta None. 24386635a91SGarrett D'Amore.It 2 Ta 10 Mbps 24486635a91SGarrett D'Amore.It 3 Ta 100BASE-T4 24586635a91SGarrett D'Amore.It 4 Ta 100BASE-X 24686635a91SGarrett D'Amore.It 5 Ta 100BASE-T2 24786635a91SGarrett D'Amore.It 6 Ta 1000BASE-X 24886635a91SGarrett D'Amore.It 7 Ta 1000BASE-T 24986635a91SGarrett D'Amore.El 25086635a91SGarrett D'Amore.El 25186635a91SGarrett D'Amore.Ss Properties 25286635a91SGarrett D'AmoreThe following parameters are accessible with 25386635a91SGarrett D'Amore.Xr dladm 1M . 25486635a91SGarrett D'AmoreSome of these are normally read-only. Other properties that are not 25586635a91SGarrett D'Amorespecific to IEEE 802.3 / Ethernet links are also available via 25686635a91SGarrett D'Amore.Xr dladm 1M , 25786635a91SGarrett D'Amoreand are documented in its man page rather than here. 25886635a91SGarrett D'Amore. 25986635a91SGarrett D'Amore.Bl -tag -width adv_1000hdx_cap 26086635a91SGarrett D'Amore.It Sy speed 26186635a91SGarrett D'AmoreLink speed, in Mbps per second (dladm only). 26286635a91SGarrett D'Amore.It Sy duplex 26386635a91SGarrett D'AmoreLink duplex, either "full" or "half". 26486635a91SGarrett D'Amore.It Sy state 26586635a91SGarrett D'AmoreLink state, either "up" or "down". 26686635a91SGarrett D'Amore.It Sy mtu 26786635a91SGarrett D'AmoreMaximum link frame size in bytes. See 26886635a91SGarrett D'Amore.Sx Jumbo Frames . 26986635a91SGarrett D'Amore.It Sy flowctrl 27086635a91SGarrett D'AmoreFlow control setting, one of \(dqno\(dq, \(dqtx\(dq, \(dqrx\(dq, or \(dqbi\(dq. 27186635a91SGarrett D'AmoreSee 27286635a91SGarrett D'Amore.Sx Flow Control . 27386635a91SGarrett D'Amore.It Sy adv_10gfdx_cap 27486635a91SGarrett D'AmoreAdvertising 10 Gbps support. 27586635a91SGarrett D'Amore.It Sy en_10gfdx_cap 27686635a91SGarrett D'AmoreEnable 10 Gbps support. 27786635a91SGarrett D'Amore. 27886635a91SGarrett D'Amore.It Sy adv_1000fdx_cap 27986635a91SGarrett D'AmoreAdvertising 1000 Mbps full-duplex support. 28086635a91SGarrett D'Amore.It Sy en_1000fdx_cap 28186635a91SGarrett D'AmoreEnable 1000 Mbps full-duplex. 28286635a91SGarrett D'Amore. 28386635a91SGarrett D'Amore.It Sy adv_1000hdx_cap 28486635a91SGarrett D'AmoreAdvertising 1000 Mbps half-duplex support. 28586635a91SGarrett D'Amore.It Sy en_1000hdx_cap 28686635a91SGarrett D'AmoreEnable 1000 Mbps half-duplex. 28786635a91SGarrett D'Amore. 28886635a91SGarrett D'Amore.It Sy adv_100fdx_cap 28986635a91SGarrett D'AmoreAdvertising 100 Mbps full-duplex support. 29086635a91SGarrett D'Amore.It Sy en_100fdx_cap 29186635a91SGarrett D'AmoreEnable 100 Mbps full-duplex. 29286635a91SGarrett D'Amore. 29386635a91SGarrett D'Amore.It Sy adv_100hdx_cap 29486635a91SGarrett D'AmoreAdvertising 100 Mbps half-duplex support. 29586635a91SGarrett D'Amore.It Sy en_100hdx_cap 29686635a91SGarrett D'AmoreEnable 100 Mbps half-duplex. 29786635a91SGarrett D'Amore. 29886635a91SGarrett D'Amore.It Sy adv_10fdx_cap 29986635a91SGarrett D'AmoreAdvertising 10 Mbps full-duplex support. 30086635a91SGarrett D'Amore.It Sy en_10fhdx_cap 30186635a91SGarrett D'AmoreEnable 100 Mbps full-duplex. 30286635a91SGarrett D'Amore. 30386635a91SGarrett D'Amore.It Sy adv_10hdx_cap 30486635a91SGarrett D'AmoreAdvertising 10 Mbps half-duplex support. 30586635a91SGarrett D'Amore.It Sy en_10fhdx_cap 30686635a91SGarrett D'AmoreEnable 10 Mbps half-duplex. 30786635a91SGarrett D'Amore.El 30886635a91SGarrett D'Amore.Ss Auto-negotiation 30986635a91SGarrett D'AmoreWith modern devices, auto-negotiation is normally handled automatically. With 31086635a91SGarrett D'Amore10 Gbps and 1000 Gbps, it is mandatory. (10GBASE-T also requires full-duplex 31186635a91SGarrett D'Amoreoperation.) It is also 31286635a91SGarrett D'Amore.Em strongly 31386635a91SGarrett D'Amorerecommended for use whenever possible; without auto-negotiation the link 31486635a91SGarrett D'Amorewill usually not operate unless both partners are configured to use the 31586635a91SGarrett D'Amoresame link mode. 31686635a91SGarrett D'Amore.Lp 31786635a91SGarrett D'AmoreAuto-negotiation, when enabled, takes place by comparing the local capabilities 31886635a91SGarrett D'Amorethat have been advertised (which must also be supported by the local device), 31986635a91SGarrett D'Amorewith the capabilities that have been advertised by the link partner (peer). 32086635a91SGarrett D'Amore. 32186635a91SGarrett D'AmoreThe first of the following modes that is supported by both partners is 32286635a91SGarrett D'Amoreselected as the link negotiation result: 32386635a91SGarrett D'Amore.Lp 32486635a91SGarrett D'Amore.Bl -bullet -offset indent -compact 32586635a91SGarrett D'Amore.It 32686635a91SGarrett D'Amore10 Gbps (10gfdx) 32786635a91SGarrett D'Amore.It 32886635a91SGarrett D'Amore1000 Mbps full-duplex (1000fdx) 32986635a91SGarrett D'Amore.It 33086635a91SGarrett D'Amore1000 Mbps half-duplex (1000hdx) 33186635a91SGarrett D'Amore.It 33286635a91SGarrett D'Amore100 Mbps full-duplex (100fdx) 33386635a91SGarrett D'Amore.It 33486635a91SGarrett D'Amore100BASE-T4 (100T4) 33586635a91SGarrett D'Amore.It 33686635a91SGarrett D'Amore100 Mbps half-duplex (100hdx) 33786635a91SGarrett D'Amore.It 33886635a91SGarrett D'Amore10 Mbps full-duplex (10fdx) 33986635a91SGarrett D'Amore.It 34086635a91SGarrett D'Amore10 Mbps half-duplex (10hdx) 34186635a91SGarrett D'Amore.El 34286635a91SGarrett D'Amore.Lp 34386635a91SGarrett D'AmoreAdvertisement of these modes can be enabled or disabled by setting the 34486635a91SGarrett D'Amoreappropriate 34586635a91SGarrett D'Amore.Sy en_ 34686635a91SGarrett D'Amoreproperty in 34786635a91SGarrett D'Amore.Xr dladm 1M . 34886635a91SGarrett D'Amore.Lp 34986635a91SGarrett D'AmoreAuto-negotation may also be disabled, by setting the 35086635a91SGarrett D'Amore.Sy adv_autoneg_cap 35186635a91SGarrett D'Amoreproperty to 0. In this case, the highest enabled link mode (using the above 35286635a91SGarrett D'Amorelist) is 35386635a91SGarrett D'Amore.Dq forced 35486635a91SGarrett D'Amorefor the link. 35586635a91SGarrett D'Amore.Ss Flow Control 35686635a91SGarrett D'AmoreLink layer flow control is available on many modern devices, and is mandatory 35786635a91SGarrett D'Amorefor operation at 10 Gbps. It requires that the link be auto-negotiated, and 35886635a91SGarrett D'Amorethat the link be full-duplex, in order to function. 35986635a91SGarrett D'Amore.Lp 36086635a91SGarrett D'AmoreFlow control is applied when a receiver becomes congested. In this case the 36186635a91SGarrett D'Amorereceiver can send a special frame, called a pause frame, to request its 36286635a91SGarrett D'Amorepartner cease transmitting for a short period of time. 36386635a91SGarrett D'Amore.Lp 36486635a91SGarrett D'AmoreFlow control can be said to be either symmetric, in which case both partners 36586635a91SGarrett D'Amorecan send and honor pause frames, or asymmetric, in which case one partner 36686635a91SGarrett D'Amoremay not transmit pause frames. 36786635a91SGarrett D'Amore.Lp 36886635a91SGarrett D'AmoreThe flow control mode used is driven by the 36986635a91SGarrett D'Amore.Sy flowctrl 37086635a91SGarrett D'Amoreproperty. It has the following meanings: 37186635a91SGarrett D'Amore.Lp 37286635a91SGarrett D'Amore.Bl -column -compact -offset indent Dv 37386635a91SGarrett D'Amore.It \(dqno\(dq Ta Neither send, nor honor pause frames. 37486635a91SGarrett D'Amore.It \(dqtx\(dq Ta Send pause frames, provided that the peer can support them, 37586635a91SGarrett D'Amorebut do not honor them. 37686635a91SGarrett D'Amore.It \(dqrx\(dq Ta Receive and honor pause frames. 37786635a91SGarrett D'Amore.It \(dqbi\(dq Ta Both send and receive (and honor) pause frames. 37886635a91SGarrett D'Amore.El 37986635a91SGarrett D'Amore.Lp 38086635a91SGarrett D'AmoreThe statistics for flow control 38186635a91SGarrett D'Amore.Po Sy adv_cap_pause , adv_cap_asmpause , lp_cap_pause , lp_cap_asmpause , 38286635a91SGarrett D'Amore.Sy link_pause , 38386635a91SGarrett D'Amoreand 38486635a91SGarrett D'Amore.Sy link_asmpause 38586635a91SGarrett D'Amore.Pc 38686635a91SGarrett D'Amoreare based on the properties exchanged in the auto-negotiation and are 38786635a91SGarrett D'Amoreconfusing as a result. Administrators are advised to use the 38886635a91SGarrett D'Amore.Sy flowctrl 38986635a91SGarrett D'Amoreproperty instead. 39086635a91SGarrett D'Amore. 39186635a91SGarrett D'Amore.Ss Jumbo Frames 39286635a91SGarrett D'AmoreThe IEEE 802.3 standard specifies a standard frame size of 1518 bytes, 39386635a91SGarrett D'Amorewhich includes a 4-byte frame checksum, a 14-byte header, and 1500 bytes 39486635a91SGarrett D'Amoreof payload. Most devices support larger frame sizes than this, and 39586635a91SGarrett D'Amorewhen all possible parties on the same local network can do so, it may be 39686635a91SGarrett D'Amoreadvantageous to choose a larger frame size; 9000 bytes is the most common 39786635a91SGarrett D'Amoreoption, as it allows a transport layer to convey 8 KB (8192) of data, while 39886635a91SGarrett D'Amoreleaving room for various link, network, and transport layer headers. 39986635a91SGarrett D'Amore.Lp 40086635a91SGarrett D'AmoreNote that the use of frames carrying more than 1500 bytes of payload is 40186635a91SGarrett D'Amorenot standardized, even though it is common practice. 40286635a91SGarrett D'Amore.Lp 40386635a91SGarrett D'AmoreThe 40486635a91SGarrett D'Amore.Sy mtu 40586635a91SGarrett D'Amoreproperty is used to configure the frame size. Note that this is the size of 40686635a91SGarrett D'Amorethe payload, and excludes the preamble, checksum, and header. It also excludes 40786635a91SGarrett D'Amorethe tag for devices that support tagging (see 40886635a91SGarrett D'Amore.Sx Virtual LANs 40986635a91SGarrett D'Amorebelow). 41086635a91SGarrett D'Amore.Lp 41186635a91SGarrett D'AmoreCare must be taken to ensure that all communication parties agree on the same 41286635a91SGarrett D'Amoresize, or communication may cease to function properly. 41386635a91SGarrett D'Amore.Lp 41486635a91SGarrett D'AmoreNote that the 41586635a91SGarrett D'Amore.Sy mtu 41686635a91SGarrett D'Amoreproperty refers to the link layer property. It may be necessary to configure 41786635a91SGarrett D'Amoreupper layer protocols such as IP to use a different size when this changes. 41886635a91SGarrett D'AmoreSee 41986635a91SGarrett D'Amore.Xr ifconfig 1M . 42086635a91SGarrett D'Amore. 42186635a91SGarrett D'Amore.Ss Virtual LANs 42286635a91SGarrett D'AmoreMost devices support virtual LANs (and also priority control tagging) though 42386635a91SGarrett D'Amorethe use of a 4-byte tag inserted between the frame header and payload. The 42486635a91SGarrett D'Amoredetails of configuration of this are covered in the 42586635a91SGarrett D'Amore.Xr dladm 1M 42686635a91SGarrett D'Amoremanual. 42786635a91SGarrett D'Amore. 42886635a91SGarrett D'Amore.Ss Data Link Provider Interface (DLPI) Details 42986635a91SGarrett D'Amore. 43086635a91SGarrett D'AmoreThe correct method for applications to access Ethernet devices directly 43186635a91SGarrett D'Amoreis to use the DLPI. See 43286635a91SGarrett D'Amore.Xr dlpi 7P 43386635a91SGarrett D'Amoreand 43486635a91SGarrett D'Amore.Xr libdlpi 3LIB 43586635a91SGarrett D'Amorefor further information. 43686635a91SGarrett D'Amore.Lp 43786635a91SGarrett D'AmoreThe following DLPI parameters are presented to applications. 43886635a91SGarrett D'Amore.Bl -column -offset indent "Broadcast address" 43986635a91SGarrett D'Amore.It Maximum SDU Ta 1500 (or larger, as determined by the Sy mtu No property.) 44086635a91SGarrett D'Amore.It Minimum SDU Ta 0 44186635a91SGarrett D'Amore.It Address length Ta 6 44286635a91SGarrett D'Amore.It MAC type Ta Dv DL_ETHER 44386635a91SGarrett D'Amore.It SAP length Ta \(mi2 44486635a91SGarrett D'Amore.It Service mode Ta Dv DL_CLDLS 44586635a91SGarrett D'Amore.It Broadcast address Ta Li ff:ff:ff:ff:ff:ff No (6 bytes with all bits set) 44686635a91SGarrett D'Amore.El 44786635a91SGarrett D'Amore.Lp 44886635a91SGarrett D'AmoreNote that if the application binds to SAP of 0, then standard IEEE 802.3 44986635a91SGarrett D'Amoremode is assumed and the frame length is stored in place of the Ethernet type. 45086635a91SGarrett D'AmoreFrames that arrive with the type field set to 1500 or less, are delivered 45186635a91SGarrett D'Amoreto applications that bind to SAP 0. 45286635a91SGarrett D'Amore.Lp 45386635a91SGarrett D'AmoreEthernet drivers on the support both DLPI style 1 and style 2 operation. 45486635a91SGarrett D'AmoreAdditionally, it is possible to configure provide 45586635a91SGarrett D'Amore.Dq vanity 45686635a91SGarrett D'Amorenames to interfaces using the 45786635a91SGarrett D'Amore.Xr dladm 1M 45886635a91SGarrett D'Amore.Sy rename-link 45986635a91SGarrett D'Amoresubcommand. Such vanity names are only accessible using DLPI style 1. 46086635a91SGarrett D'Amore.Sh NOTES 46186635a91SGarrett D'AmoreThere may be other mechanisms available to configure link layer properties. 46286635a91SGarrett D'AmoreHistorically the 46386635a91SGarrett D'Amore.Xr ndd 1M 46486635a91SGarrett D'Amorecommand, and 46586635a91SGarrett D'Amore.Xr driver.conf 4 46686635a91SGarrett D'Amorefiles could be used to do this. These methods are deprecated in favor of 46786635a91SGarrett D'Amore.Xr dladm 1M 46886635a91SGarrett D'Amoreproperties. 46986635a91SGarrett D'Amore. 47086635a91SGarrett D'Amore.Sh INTERFACE STABILITY 47186635a91SGarrett D'AmoreWhen present, the statistics and properties presented here 47286635a91SGarrett D'Amoreare 47386635a91SGarrett D'Amore.Sy Committed . 47486635a91SGarrett D'AmoreHowever, note that not every Ethernet device supports all of these, 47586635a91SGarrett D'Amoreand some devices may support additional statistics and properties. 47686635a91SGarrett D'Amore.Lp 47786635a91SGarrett D'AmoreThe DLPI and IEEE 802.3 itself are 47886635a91SGarrett D'Amore.Sy Standard . 47986635a91SGarrett D'Amore.Sh SEE ALSO 48086635a91SGarrett D'Amore.Xr dladm 1M , 48186635a91SGarrett D'Amore.Xr ifconfig 1M , 48286635a91SGarrett D'Amore.Xr kstat 1M , 48386635a91SGarrett D'Amore.Xr ndd 1M , 484*3a005aadSYuri Pankov.Xr netstat 1M , 48586635a91SGarrett D'Amore.Xr libdlpi 3LIB , 48686635a91SGarrett D'Amore.Xr driver.conf 4 , 48786635a91SGarrett D'Amore.Xr dlpi 7P 48886635a91SGarrett D'Amore.Rs 48986635a91SGarrett D'Amore.%T IEEE 802.3: Ethernet 49086635a91SGarrett D'Amore.%Q IEEE Standards Association 49186635a91SGarrett D'Amore.Re 49286635a91SGarrett D'Amore.Rs 49386635a91SGarrett D'Amore.%B Data Link Provider Interface (DLPI) 49486635a91SGarrett D'Amore.%Q The Open Group 49586635a91SGarrett D'Amore.%D 1997 49686635a91SGarrett D'Amore.Re 49786635a91SGarrett D'Amore.Rs 49886635a91SGarrett D'Amore.%B STREAMs Programming Guide 49986635a91SGarrett D'Amore.%Q Sun Microsystems, Inc. 50086635a91SGarrett D'Amore.%D January 2005 50186635a91SGarrett D'Amore.Re 502