MACsec Intel® FPGA IP User Guide

ID 736108
Date 3/31/2024
Public
Document Table of Contents

5.4.2.2. Stream Interleaving

Traffic using MACsec profiles can interleave based on different streams. Packets between different streams do not follow an order, but packets within the same stream do follow an order, as shown in the example below. The soft crypto packet output format is slightly different from the Crypto QHIP, where idles can be inserted after the MAC and before the next packet, since the next packet doesn’t send in full 512 bits of data within that cycle. In this case, the next packet (Pkt 0) is pushed to the subsequent cycle to wait for full 512 bits of data before being processed in the soft Crypto.

Table 46.  Crypto Ingress Interface Showing Stream Interleaving
TID[31:26] - Stream ID Packet 1 X 1 4 X 1
TID[25:16] - Channel Packet 1 X 22 77 X 22
TID[15:10] - Stream Packet 0 4 1 4 4 1
TID[9:0] - Channel Packet 0 77 23 44 44 23
Data[127:0]

IV +

AAD_Len (Pkt 0)

DATA (Pkt 1) DATA (Pkt 1) DATA (Pkt 0) DATA (Pkt 0)
Data[255:128] DATA (Pkt 0) DATA (Pkt 1)

IV +

AAD_Len (Pkt 0)

DATA (Pkt 0) DATA (Pkt 0)
Data[383:256] DATA (Pkt 0)

IV +

AAD_Len (Pkt 0)

DATA (Pkt 0) DATA (Pkt 0) DATA (Pkt 0)
Data[511:384] DATA (Pkt 0) DATA (Pkt 0) DATA (Pkt 0) DATA (Pkt 0) DATA (Pkt 0, EOP)
Table 47.  Crypto Egress Interface Showing Stream Interleaving
TID[31:26] - Stream ID Packet 1 X 4 X 1 X
TID[25:16] - Channel Packet 1 X 77 X 22 X
TID[15:10] - Stream Packet 0 4 4 4 1 1
TID[9:0] - Channel Packet 0 77 44 44 23 23
Data[127:0] DATA (Pkt 0) MAC (Pkt 1) DATA (Pkt 0) DATA (Pkt 0) DATA (Pkt 0)
Data[255:128] DATA (Pkt 0) DATA (Pkt 0) DATA (Pkt 0) MAC (Pkt 1) DATA (Pkt 0)
Data[383:256] DATA (Pkt 0) DATA (Pkt 0) DATA (Pkt 0) DATA (Pkt 0) DATA (Pkt 0)
Data[511:384] DATA (Pkt 0) DATA (Pkt 0) MAC (Pkt 1) DATA (Pkt 0) MAC (Pkt 1)