eCPRI Intel® FPGA IP User Guide

ID 683685
Date 5/19/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

4.3.2. Ethernet Header Insertion/Removal

The Ethernet header insertion block inserts Ethernet header to incoming eCPRI packet on TX path. Optionally it can insert IPv4/UDP headers to the packet based on the configuration. The Ethernet header removal block removes Ethernet header to incoming eCPRI packet on RX path. Optionally it can remove IPv4/UDP headers to the packet based on the configuration selected. The Ethernet header encapsulated the incoming eCPRI packets as shown in the figure below. The table listed the source of each fields within the Ethernet header.
Figure 7. Ethernet Header Field
Table 12.  Ethernet Header Field and CSR
Ethernet Header Field CSR
Destination MAC address

Destination MAC address <N=0,1,2,3,4,5,6,7> Register 0,1

With enabled Advance mapping mode:

N – eCPRI message PCID [2:0]

Default mapping mode:

N = 0 for all eCPRI message
Source MAC address Source MAC address register 0, and 1
VLAN tag

VLAN Tag Register <N=0,1,2,3,4,5,6,7>

With Enabled advance mapping mode:

N – eCPRI message PCID [2:0]

Default mapping mode:

N = 0 for all eCPRI message
Ethertype 0xAEFE
eCPRI payload Incoming eCPRI packet from the eCPRI IP
If you select IPv4 header as encapsulation to eCPRI payload, the following table lists the CSR to fill the IPv4 header fields:
Table 13.  IPv4 Field and CSR
Number of Bits IPv4 Header CSR
48 (6 Bytes) MAC destination Address Refer to the Table: Ethernet Header Field and CSR above.
48 (6 Bytes) MAC source address Refer to the Table: Ethernet Header Field above.
16 (2 Bytes) Ethertype (2 Bytes)= IP 0x0800
4 Version ipv4_dw0_address
4 Internet header length ipv4_dw0_address
6 Differentiated Services Code Point (DSCP) ipv4_dw0_address
2 Explicit Congestion Notification (ECN) ipv4_dw0_address
16 Total length eCPRI IP calculates incoming IP packet header length
16 Identification ipv4_dw1_address
3 Flags ipv4_dw1_address
13 Fragment offset ipv4_dw1_address
8 Time to live ipv4_dw2_address
8 Protocol ipv4_dw2_address
16 Header checksum eCPRI IP calculates incoming IP packet header checksum
32 Source address ipv4_src_address_0
32 Destination address ipv4_dst_address_0
Table 14.  UDP Field and CSR
Number of Bytes IPv4 Header CSR
14 Ethernet header Refer to the Table: Ethernet Header Field and CSR above.
20 IPv4 header Refer to the Table: IPv4 Field and CSR Header above.
2 Source port mudp_dw0_address
2 Destination port mudp_dw0_address
2 Length eCPRI IP calculates incoming payload length
2 Checksum eCPRI IP calculates incoming payload checksum