pgy-nego application notes

14
PGY-NEGO KR/KX DME and Line Training Analysis Suit Introduction Ethernet is currently the most popular way of connecting computers onto networks with an estimated 100 million nodes installed worldwide. The original standard for Ethernet operated at 10-Mbps but the state-of-the-art now is 1/10/100 Gbps Ethernet. A complete working Gigabit Ethernet system can be broken down into three components: The physical medium which carries Ethernet signals between computers Media access control (MAC) rules which control access to the Ethernet channel The Ethernet frame which contains the data to be carried Ethernet operation over electrical backplanes, also referred to as “Backplane Ethernet”, combines the IEEE 802.3 Media Access Control (MAC) and MAC Control sublayers with a family of Physical Layers defined to support operation over a modular chassis backplane. Backplane Ethernet supports the IEEE 802.3 MAC operating at 1000 Mbps or 10 Gbps. For 1000 Mbps operation, the family of 1000BASE-X Physical Layer signaling systems is extended to include 1000BASE- KX. For 10 Gbps operation, two Physical Layer signaling systems are defined. For operation over four logical lanes, the 10GBASE-X family is extended to include 10GBASE-KX4. For operation over single logical lane, the 10GBASE-R family is extended to include 10GBASE-KR. Backplane Ethernet also specifies an Auto-Negotiation function to enable two devices that share a backplane link segment to automatically select the best mode of operation common to both devices.

Upload: lamtuong

Post on 12-Feb-2017

236 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: PGY-NEGO Application Notes

PGY-NEGO KR/KX DME and Line Training Analysis Suit Introduction Ethernet is currently the most popular way of connecting computers onto networks with an estimated 100 million nodes installed worldwide. The original standard for Ethernet operated at 10-Mbps but the state-of-the-art now is 1/10/100 Gbps Ethernet. A complete working Gigabit Ethernet system can be broken down into three components:

The physical medium which carries Ethernet signals between computers Media access control (MAC) rules which control access to the Ethernet channel The Ethernet frame which contains the data to be carried

Ethernet operation over electrical backplanes, also referred to as “Backplane Ethernet”, combines the IEEE 802.3 Media Access Control (MAC) and MAC Control sublayers with a family of Physical Layers defined to support operation over a modular chassis backplane.

Backplane Ethernet supports the IEEE 802.3 MAC operating at 1000 Mbps or 10 Gbps. For 1000 Mbps operation, the family of 1000BASE-X Physical Layer signaling systems is extended to include 1000BASE-KX. For 10 Gbps operation, two Physical Layer signaling systems are defined. For operation over four logical lanes, the 10GBASE-X family is extended to include 10GBASE-KX4. For operation over single logical lane, the 10GBASE-R family is extended to include 10GBASE-KR.

Backplane Ethernet also specifies an Auto-Negotiation function to enable two devices that share a backplane link segment to automatically select the best mode of operation common to both devices.

Page 2: PGY-NEGO Application Notes

Backplane Ethernet (KR/KX) overview:

Using Ethernet as backplane [earlier PCI, PCIe, Multibus II etc were popular] standard gives added advantage of Autoneg based link speed, usage of single or multiple links, link training [as in 10G KR] for better timing management. Additional of FEC and successful line coding like 8B: 10B reduce possibility of errors on backplane due to DC level on signals.

Apart from the above things, usage of Ethernet as backplane has more advantages. Systems like routers, network boxes etc at different locations can be connected over cable and be made as if they are co-located in a chassis Main Features

Full duplex operation only Auto-negotiation Upto 1m length of backplane trace Support BER of 10-2 Optional support for Energy Efficient Ethernet [EEE] for 10Gbps or lower Forward Error Correction [FEC] for KR standard Management interface to PHY though MDC/MDIO bus It supports operation of the following PHY over differential, controlled impedance traces on a printed

circuit board with two connectors and total length up to at least 1 m

i) 1 Gbps PHY (KX/KR) ii) Four-lane 10 Gbps PHY (KX4) iii) Single-lane 10 Gbps PHY (KR4)

Auto-Negotiation Overview:

Auto-Negotiation provides a linked device with the capability to detect the abilities (modes of operation) supported by the device at the other end of the link, determine common abilities, and configure for joint operation.

Auto-Negotiation for Backplane Ethernet is based on the IEEE 802.3ap (Clause 28) definition of Auto-Negotiation for twisted-pair link segments. Auto-Negotiation for Backplane Ethernet utilizes an extended base page and Next Page format. Furthermore, Auto-Negotiation does not utilize Fast Link Pulses (FLPs) for link Codeword signaling and instead uses a DME signaling technique, signaling more suitable for electrical backplanes

While implementation of Auto-Negotiation is mandatory for Backplane Ethernet PHYs, the use of Auto-Negotiation is optional. Parallel detection shall be provided for legacy devices that do not support Auto-Negotiation.

Auto-Negotiation is performed using differential Manchester encoding (DME) pages. DME provides a DC balanced signal. DME does not add packet or upper layer overhead to the network devices. Auto-Negotiation does not test the link segment characteristics

Page 3: PGY-NEGO Application Notes

DME transmission: Auto-Negotiation’s method of communication builds upon the encoding mechanism known as Differential Manchester Encoding (DME). The DME page encodes the data that is used to control the Auto-Negotiation function. DME pages will not be transmitted when Auto-Negotiation is complete and the highest common denominator PHY has been enabled.

DME pages can be transmitted by local devices capable of operating in 1 Gbps (1000BASE-KX) mode, 10 Gbps over 4 lane (10GBASE-KX4) mode or 10 Gbps over 1 lane (10GBASE-KR) mode.

DME page encoding: A DME page carries a 48-bit Auto-Negotiation page. It consists of 106 evenly spaced transition positions that contain a Manchester violation delimiter, the 48-bit page, and a single pseudo-random bit. The odd-numbered transition positions represent clock information. The even numbered transition positions represent data information. DME pages are transmitted continuously without any idle or gap.

The first eight transition positions contain the Manchester violation delimiter, which marks the beginning of the page. The Manchester violation delimiter is the only place where four intervals occur between transitions. This allows the receiver to obtain page synchronization

Fig 1: Manchester Violation and DME Page

— A transition present in an even-numbered transition position represents a logical one

— A transition absent from an even-numbered DME position represents a logical zero. The first 48 of these positions shall carry the data of the Auto-Negotiation page. The final position carries the pseudo-random bit.

Page 4: PGY-NEGO Application Notes

The purpose of the 49th bit is to remove the spectral peaks that would otherwise occur when sending the same page repeatedly.

Clock transition positions are differentiated from data transition positions by the spacing between them, as shown in the following figure and enumerated in the following table. The encoding of data using DME bits in a DME page is illustrated in figure below.

Fig 2: Clock and Data Transition

DME page timing:

T1 to T6 DME Page Timing Parameters Description

T1 Transition position spacing (period) T2 Clock Transition to Clock Transition

T3 Clock Transition to Data Transition (data =1)

T4 Transition in a DME page

T5 DME page width

T6 DME Manchester delimiter width

Quiet Time Time between end of Auto negotiation and start of Line Training is indicated by the “Quiet time”

Frame Marker Frames are delimited by the 32-bit pattern, hexadecimal FFFF0000

Coefficient Update Frame Marker have been identified and transferred, then it is followed by 16 Octets (128bits) for the coefficient update field

Status Report 128bits of Status Report Field data is followed after the Coefficient update field data,

Training Pattern The training pattern shall be a 512 octet pattern consisting of 4094 bits from the output of a pseudo-random bit sequence of order 11 (PRBS11) generator followed by two zeros

Table 1: Timing Detail

Page 5: PGY-NEGO Application Notes

Fig 3: Clock and Data Timing

Base Link Codeword (Base Page): The base Link Codeword (Base Page) transmitted within a DME page shall convey the 48 bits information as depicted is the figure below. The Auto-Negotiation function supports additional pages using the Next Page function. D0 shall be the first bit transmitted.

Fig 4: 48bit Base Page Details

Selector field: Selector field (S [4:0]) is a five-bit wide field; Combinations not specified are reserved for future use. Reserved combinations of the Selector field shall not be transmitted.

SelectorDescription S4 S3 S2 S1 S0

IEEESTD802.3 0 0 0 0 1

IEEESTD802.9 0 0 0 1 0

Page 6: PGY-NEGO Application Notes

Echoed Nonce field: Echoed Nonce field (E [4:0]) is a 5-bit wide field containing the nonce received from the link partner. When acknowledge is set to 0, the bits in this field shall contain 0s. When acknowledge is set to 1, the bits in this field shall contain the value received in the Transmitted Nonce field from the link partner.

Transmitted Nonce field: Transmitted Nonce field (T [4:0]) is a 5-bit wide field containing a random or pseudo-random number. A new value shall be generated for each entry to the Ability Detect state.

Technology Ability field: Technology Ability field (A [24:0]) is a 25-bit wide field containing information indicating supported technologies specific to the selector field value when used with the Auto-Negotiation for Backplane Ethernet. These bits are mapped to individual technologies such that abilities are advertised in parallel for a single selector field value.

FEC capability: FEC (F0:F1) is encoded in bits D46:D47 of the base Link Codeword. The two FEC bits are used as follows:

F0 is FEC ability F1 is FEC requested

When the FEC ability bit is set to 1 it indicates that the 10GBASE-KR PHY has FEC ability. When FEC requested bit is set to 1, it indicates a request to enable FEC on the link.

Remote Fault: Remote Fault (RF) is encoded in bit D13 of the base Link Codeword. The default value is logical zero. The Remote Fault bit provides a mechanism for the transmission of simple fault information. When the RF bit in the AN advertisement register is set to logical one, the RF bit in the transmitted base Link Codeword is set to logical one. When the RF bit in the received base Link Codeword is set to logical one, the Remote Fault bit in the AN LP Base Page ability register will be set to logical one.

Acknowledge: Acknowledge (Ack) is used by the Auto-Negotiation function to indicate that a device has successfully received its link partner’s Link Codeword. The Acknowledge Bit is encoded in bit D14 of Link Codeword. If no Next Page information is to be sent, this bit shall be set to logical one in the Link Codeword after the reception of at least three consecutive and consistent DME pages. If Next Page information is to be sent, this bit shall be set to logical one after the device has successfully received at least three consecutive and matching DME pages (ignoring the Acknowledge bit value).

Next Page: The Next Page shall use the encoding shown in Figure below for the NP, Ack, MP, Ack2, and T bits. There are two types of Next Page encodings— message and unformatted. For message Next Pages, the MP bit shall be set to logical one, the 11-bit field D [10:0] shall be encoded as a Message Code field, and D [47:16] shall be encoded as Unformatted Code field. For unformatted Next Pages, the MP bit shall be set to logical zero; D [10:0] and D [47:16] shall be encoded as the Unformatted Code field.

Page 7: PGY-NEGO Application Notes

Fig 5: Message Page and Unformatted Page

Line Training: The training frame is 548 octets in length and contains a control channel and training pattern, the training frame is a fixed length structure that is sent continuously during training.

Fig 6: Line Training Frame

The control channel is signaled using differential Manchester encoding (DME) at a signaling rate equal to one quarter of the 10GBASE-KR signaling rate. Since each DME symbol contains two DME transition positions and each transition position is 4 10GBASE-KR UI, one control channel bit is transmitted every 8 10GBASE-KR UI.

Frame marker: Frame marker is delimited by the 32-bit pattern, hexadecimal FFFF0000 (ones transmitted first), as expressed in 10.3125 Gbd symbols. This pattern does not appear in the control channel or the training pattern and therefore serves as a unique indicator of the start of a training frame.

Page 8: PGY-NEGO Application Notes

Control channel encoding: The control channel shall be transmitted using differential Manchester encoding (DME). The rules of differential Manchester encoding are as follows:

A data transition shall occur at each cell boundary.

A mid-cell data transition shall be used to signal a logical one.

The absence of a mid-cell data transition shall be used to signal a logical zero.

If a coding violation is detected within the bounds of the control channel in a given training frame, the contents of the control channel for that frame shall be ignored. The data cell length shall be 8 10GBASE-KR UI.

Coefficient update field: The coefficient update field carries correction information from the local receiver to the link partner transmits equalizer. The field consists of preset controls, initialization controls, and coefficient updates for three transmit equalizer taps. The format of the coefficient update field is as shown in Table below.

Cell Name Descriptions 15: 14 Reserved Transmitted as 0, ignored on reception

13 Preset

1=Preset Coefficient 0=Normal Operation

12 Initialize 1=Preset Coefficient 0=Normal Operation

11:6 Reserved Transmitted as 0, ignored on reception

5:4 Coefficient (+1) Update

1 1 = Reserved 0 1 = Increment 1 0 = Decrement 0 0 = Hold

3:2 Coefficient (+0) Update

1 1 = Reserved 0 1 = Increment 1 0 = Decrement 0 0 = Hold

1:0 Coefficient (-1) Update

1 1 = Reserved 0 1 = Increment 1 0 = Decrement 0 0 = Hold

Table 2: Coefficient Update

Status report field: The status report field is used to signal state information from the local PMD to the link partner. The format of the status report field is as shown in Table below. Cell 15 of the status report field is transmitted first.

Page 9: PGY-NEGO Application Notes

Cell Name Descriptions

15 Reserved Ready

1= The local Receiver has determined that training is complete and is prepared to receive data 0= The local Receiver is requesting to continue training

14:6 Reserved Transmitted as 0, ignored on reception

5:4 Coefficient (+1) Update

1 1 =Maximum 0 1 =Minimum 1 0 =Updated 0 0 =Not Updated

3:2 Coefficient (+0) Update

1 1 =Maximum 0 1 =Minimum 1 0 =Updated 0 0 =Not Updated

1:0 Coefficient (-1) Update

1 1 =Maximum 0 1 =Minimum 1 0 =Updated 0 0 =Not Updated

Table 3: Status Report

Training pattern: The training pattern shall be a 512 octet pattern consisting of 4094 bits from the output of a pseudo-random bit sequence of order 11 (PRBS11) generator followed by two zeros.

Challenges Validating KR/KX Interface:

In today’s Gigabit Ethernet world, considerable time is dedicated by the Semiconductors leaders in validating their IPs. As the Gigabit Ethernet technology grows rapidly, the time to market this product shirks. Therefore the major challenge faced by today’s designer and validation engineers is to validate their IP supporting Gigabit Backplane Ethernet within the short window of validation phase. During Validation, the engineer spends quality time in validating the Ethernet protocol by using the expensive solution available in the market like protocol analyzer and modules. These solutions come without flexibility in handling the Physical and protocol layer challenges, reducing efficiency and time. Challenges faced while validating the Backplane Ethernet KR/KX interface are listed below:

There is no single tool/ Instrument to handle physical and Protocol layer challenges Increasing the complexity of the test system due to multiple equipment.

The Quiet time spec has wide range and varies from vendor to vendor, and hence make it difficult to negotiate

DME Page Timing /Line Training Timing calculation during Auto-Negotiation for each page cannot be carried out manually.

Page 10: PGY-NEGO Application Notes

No information for Auto-Negotiation regarding the number of DME pages and Line Training sequence used.

PGY-NEGO KX/KR DME and Line Training Analysis Software: Industry’s first Oscilloscope based PGY-NEGO KX/KR Protocol Analysis software lets you see every event in the KX/KR stream from Auto-Negotiation Phase to Line Training analog signals which conventional protocol analyzer cannot show. This software runs inside Tektronix oscilloscope with windows operating System. PGY-NEGO KX/KR Protocol Analyzer software performs the Auto-negotiation and Line Training protocol timing tests as per IEEE 802.3ap Standards. It provides unmatched flexibility in analyzing, debugging, and correlating the test results from Auto-Negotiation Phase to Line Training phase analog waveforms to address the KX/KR Backplane Ethernet design challenges. PGY-NEGO Software provides protocol aware triggering using Tektronix oscilloscopes real-time serial pattern trigger and pulse trigger feature. This enables capturing signal at Manchester violation or based on content in DME page. This allows capturing correct signals for analysis in continuously varying protocol activities.

KX/KR Protocol Aware Trigger setup PGY-NEGO KX/KR protocol analyzer suit is ready to trigger the KX/KR traffic. It will make a list of timing test related to Auto-Negotiation and Line Training Phase. The test results from PFY-NEGO Software are as follows.

Page 11: PGY-NEGO Application Notes

Fig 9: Analyze Window

The result has min, mean and max values of each timing parameter. This result is computed after processing each and every DME and Line training packet. The min, mean and max value is for the entire acquired data. To know the timing parameters of DME and Line Training page, PGY-NEGO software has DME listing feature. . This lists the timing parameter for each page and indicates the status, when it meets standard specification.

Page 12: PGY-NEGO Application Notes

Fig 10: DME and Line Timing parameter

Page 13: PGY-NEGO Application Notes

The Detail View Window provides comprehensive view of KX/KR Signal Analysis. This view has following features.

Plot of the captured waveform data Zoomed view of the DME or Line training packet Timing measurements annotation on the waveform window Each DME page protocol content Each Line training packet content Bus diagram along with waveform for easy correlation protocol data with electrical signals Utility features for zoom out/zoom in, image capture for report, cursors for timing measurements

Fig 11: Detail View

If the failure is due to timing violation on either one of the DME page/Line Training phase not adhering to the timing spec. This can be easily analyzed by selecting the corresponding DME page or Line Training packet.

Page 14: PGY-NEGO Application Notes

Selected DME page waveform is zoomed out in the selected message view. In this view DME timing parameters are annotated on waveform.

Fig 12: DME page and Line Training in Zoom Mode

Summary:

The industry’s firstoscilloscope based PGY-NEGO KX/KR DME and Line Training software provides superior debugging capabilities. PGY-NEGO software provides in-depth visibility into Auto-negotiation phase to Line Training phase, which no other protocol analyzer can offer. It provides correlation between different DME pages/Line Training sequence via Analyze window, DME Detail, Line Training Detail and Detail view window. It provides more flexibility in debugging Timing issues associated with Auto-Negotiation and line training phase. The software serves as one single box solution for debugging Physical and Protocol Layer. An oscilloscope can be used for Physical Layer and Protocol Layer Testing. The software reduces your test system complexity by reducing the requirement of dedicated Protocol Analyzer and Logic Analyzer and therefore reducing the overall cost of the test system PGY-NEGO KX/KR protocol analysis software along with Tektronix physical layer compliance test solutions and Tektronix oscilloscope offers a single box solution for physical and protocol layer testing.