C613-50170-01 Rev B
Command Reference for x510 Series
2812
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
S
F
LOW
C
OMMANDS
SFLOW
MAX
-
HEADER
-
SIZE
sflow max-header-size
Overview
This command sets the maximum header size of the Ethernet frames sampled on
a specified port. The maximum header size is measured in bytes, referenced from
the first byte of the Ethernet destination address and excludes the Ethernet FCS
fields.
If a sampled Ethernet frame is longer than the maximum header size set by this
command, then the frame will be truncated to the first N bytes before being placed
in the sFlow datagram, where N is the maximum header size set by this command.
The
no
variant of this command resets the max-header-size to its default.
Syntax
sflow max-header-size <
14-200
>
no sflow max-header-size
Default
The max-header-size is 128 bytes.
Mode
Interface Configuration
Usage
The header size is measured from the first byte of the Ethernet frame MAC
Destination Address.
•
For an environment using standard TCP IPv4 over Ethernet frames, consider
the following basic protocol structure:
Ethernet header (including the 4 byte 802.1Q header component) = 18 bytes
IPv4 header = 24 bytes
TCP header = 24 bytes
Total = 66 bytes
CAUTION
:
For IPv4, any data existing between 66 bytes and the value set by this
command will be included in the sFlow packet samples. For example, with the
default of 128 applied, up to 128-66=62 bytes of user data could be included in
the sFlow datagram samples sent between the Agent and the Collector.
For more information, see the
sFlow Feature Overview and Configuration
.
Parameter
Description
<
14-200
>
The maximum number of header bytes to be sampled.