txRxPreamble

txRxPreamble - configure the transmit and received preamble settings for 10GE LAN ports.

SYNOPSIS

txRxPreamble sub-command options

DESCRIPTION

The txRxPreamble command is used to set the options related to preamble transmit and receive operation on 10GE ports. Two of the options (enableCiscoCDL and enableCDLStats) apply to the use of the Cisco Converged Data Layer (CDL) on 10GE ports. The enablePreambleView option controls the ability to view the preamble in the result of a stream cget -packetView command.

STANDARD OPTIONS
enableCiscoCDL

true | false

This option enables the use of a Cisco CDL preamble to replace the standard Ethernet preamble. This feature is only available on some ports, which can be checked by a call to port isValidFeature... portFeatureCiscoCDL. The contents of the preamble are programmed through the use of the cdlPreamble command. (default = false)

enableCDLStats

true | false

This option enables the generation of preamble statistics and capture. This feature is only available on some ports, which can be checked by a call to port isValidFeature... portFeaturePreambleCapture. The statistics are available through the use of the stat command and the captured data is available through the use of the capture and captureBuffer commands.

enableIncludePreamble

InRxCrc

true | false

This option enables the inclusion of the preamble length in the receive side CRC calculation. (default = false)

enablePreambleView

true | false

This option enables the inclusion of the preamble in the packetView option of the stream command. This feature is only available on some ports, which can be checked by a call to port isValidFeature... portFeaturePreambleView.(default = 0)

rxMode

The receive mode for the port.

Option

Value

Usage

preambleModeSFDDetect

0

The SFD is the last byte in the preamble (the 8th byte in this case). This mode checks for the first occurrence of the SFD byte. The next byte is considered the start of the frame.

preambleByteCount

1

This mode counts the bytes of the preamble (8 bytes in this case), and considers the next byte (9th) the first byte of the frame.

preambleSameAsTransmit

2

(default) The Receive side accepts the same choices/entries that were made for the Transmit side.

txMode

The transmit mode for the port.

Option

Value

Usage

preambleModeSFDDetect

0

(default) The SFD is the last byte in the preamble (the 8th byte in this case). This mode checks for the first occurrence of the SFD byte. The next byte is considered the start of the frame.

preambleByteCount

1

This mode counts the bytes of the preamble (8 bytes in this case), and considers the next byte (9th) the first byte of the frame.

COMMANDS

The txRxPreamble command is invoked with the following sub-commands. If no sub-command is specified, returns a list of all sub-commands available.

txRxPreamble cget option

Returns the current value of the configuration option txRxPreamble by option. Option may have any of the values accepted by the txRxPreamble command, subject to the setting of the enableValidStats option.

txRxPreamble config option value

Modify the configuration options of the time server. If no option is specified, returns a list describing all of the available options (see STANDARD OPTIONS) for txRxPreamble.

txRxPreamble get chasID cardID portID

Gets the current preamble configuration of the port with id portID on card cardID, chassis chasID. Call this command before calling txRxPreamble cget option to get the value of the configuration option.

txRxPreamble set chasID cardID portID

Sets the preamble configuration of the port with id portID on card cardID, chassis chasID by reading the configuration option values set by the txRxPreamble config option value command.

txRxPreamble setDefault

Sets to IxTclHal default values for all configuration options.

EXAMPLES

set chasID 1

set cardID 4

set portID 1

txRxPreamble setDefault

txRxPreamble config -rxMode preambleByteCount

txRxPreamble config -txMode preambleModeSFDDetect

if [port isValidFeature $chasID $cardID $portID /

portFeatureCiscoCDL] {

txRxPreamble config -enableCiscoCDL true

}

if [port isValidFeature chasID cardID portID portFeaturePreambleCapture] {

txRxPreamble config -enableCDLStats true

}

if [port isValidFeature chasID cardID portID portFeaturePreambleView] {

txRxPreamble config -enablePreambleView true

}

SEE ALSO

stream, cdlPreamble