GFP - caobangwei/fpga_rd GitHub Wiki

名词解释

PDU:product data unit

GFP帧

image

image

GFP core header

GFP core header共由4字节组成,分别为2 Bytes的PLI字段和2 Bytes cHEC字段,如下图所示:

image

Payload Length Indicator(PLI) field

表示GFP中有效载荷区域的长度。

UPI:user payload identifier

Core HEC(cHEC) field

HEC:Header Error Control

GFP payload area

该区域有payload header、payload information field和payload FCS三部分组成。

image

Payload header

image

Payload heaer是一个可变长度字段,区间为4~64字节。

GFP type field

该字段组成如下图:

image

PTI: payload type identifier,一共3bit。表示是用户数据还是用户管理帧。

image

PFI:payload fcs indicator

A one-bit subfield of the Type field indicating the presence (PFI = 1) or absence (PFI = 0) of the Payload FCS field.

EXI:extension header identifier

扩展头定义相关字段。

image

tHEC

采用crc16算出的2字节来保护Type field的完整性?

GFP extension headers

Extension HEC field

采用crc16算出的字节来保护extension header的完整性?

Payload information field

该字段长度为 0~65535-X 字节,其中x是payload header的大小。

Payload Frame Check Sequence filed(pFCS)

该字段为可选的4字节crc32.

Payload area scrambling

GFP有效载荷区域进行加扰,加扰方式如下:

image

GFP client frames

Client data frames

对应core header中各字段的定义如下:

• PTI = 000. • PFI = Payload specific. • EXI = Payload specific. • UPI = Payload specific.

image

client management frames

对应core header中各字段的定义如下:

image

GFP control frames

GFP idle frames

image

image

没有载荷,只有core header字段,并且PLI和cHEC全部为0。但会异或上图中的值。

other control frames

Control frames with PLI = 1, 2, or 3 are for further study.

GFP frame-level functions

GFP 帧封装和解封装的示意图。

image

Payload-specific aspects for frame-mapped GFP

Ethernet MAC payload

image