Hash migration
This section illustrates how a hashing NTPL example from Green Bay 2 matching on an IPv4 address can be converted to a Huntington Beach 4.1 4GA NTPL example with the equivalent functionality.
Green Bay 2
This is the NTPL example from Green Bay 2.
IPMatchList[ListType=OuterIP] = IPv4Addr == [10.10.10.1] HashMode[IPMatch=SrcOrDstIP; InnerLayer3Type = IPV4; MaskNo=1; TupleSwap=IPMatchLast] = HashInner2Tuple HashMask[HashWord0=[FF.FF.FF.FF]; HashWord4=[0.0.0.0]] = MaskNo == 1 Assign[StreamId=(0..7)] = (IPMatch == SrcIP,DstIP and TunnelType == GTPv1-U-GPDU)
Huntington Beach 4.1 4GA
This is a converted Huntington Beach 4.1 4GA NTPL example.
Define SourceIP = Field(Layer3Header[12]/32) Define DestIP = Field(Layer3Header[16]/32) Define InnerSourceIP = Field(InnerLayer3Header[12]/32) Define InnerDestIP = Field(InnerLayer3Header[16]/32) Define UplinkHash = Hash(HashWord0_3=InnerSourceIP) Define DownlinkHash = Hash(HashWord0_3=InnerDestIP) Define UplinkFilter = Filter(TunnelType == GTPv1-U-GPDU AND(KeyMatch(SourceIP)==1 AND KeyMatch(DestIP)==ANY)) Define DownlinkFilter = Filter(TunnelType == GTPv1-U-GPDU AND(KeyMatch(DestIP)==1 AND KeyMatch(SourceIP)==ANY)) IPMatchList = IPv4Addr == [10.10.10.1] Assign[Hash=UplinkHash; StreamId=(0..7)] = UplinkFilter Assign[Hash=DownlinkHash; StreamId=(0..7)] = DownlinkFilter
Style Conventions
Bold typeface is used for names of, for instance, user interface elements and software components.
Italic typeface is used for replaceable text.
Monospaced typeface is used for code, commands and file names.
Abbreviations
4GA
Fourth-Generation Architecture
ANL
ANaLysis
BP
ByPass
CPU
Central Processing Unit
CRC
Cyclic Redundancy Check
Dedup
DEDUPlication
DN
Document Number
E
Ethernet
Ext
EXTernal
FCS
Frame Check Sequence
GPDU
GSM Protocol Data Unit
GRE
Generic Routing Encapsulation
GREv0
Generic Routing Encapsulation Version 0
GREv1
Generic Routing Encapsulation Version 1
GSM
Global System for Mobile Communications
GTP
GPRS Tunneling Protocol
GTPv0-U
GPRS Tunneling Protocol Version 0 – User data tunneling
GTPv1-C
GPRS Tunneling Protocol Version 1 – Control section
GTPv1-U
GPRS Tunneling Protocol Version 1 – User data tunneling
GTPv1v2-C
GPRS Tunneling Protocol Version 1 or Version 2 – Control section
GTPv2-C
GPRS Tunneling Protocol Version 2 – Control section
ICMP
Internet Control Message Protocol
ID
IDentifier
IEEE
The Institute of Electrical and Electronics Engineers
Ifg
Inter-Frame Gap
IOMMU
Input/Output Memory Management Unit
Ip, IP
Internet Protocol
IPF
IP Fragment handling
IPv4
Internet Protocol Version 4
IPv6
Internet Protocol Version 6
IPX
Internetwork Packet eXchange
ISL
Inter-Switch Link
LLC
Logical Link Control
Mac, MAC
Media Access Control
MPLS
MultiProtocol Label Switching
N
Napatech
NDIS
Network Driver Interface Specification
NEBS
Network Equipment-Building System
nt, NT
NapaTech
NT-TS
NapaTech Time Synchronization
NTPL
NapaTech Programming Language
Ntts
NapaTech Time Synchronization
NVGRE
Network Virtualization using Generic Routing Encapsulation
OS
Operating System
PCAP
Packet CAPture
PCIe
Peripheral Component Interconnect Express
PHY
PHYsical layer device
PKT
PacKeT
PPS
Pulse Per Second
Ptp, PTP
Precision Time Protocol
QPI
QuickPath Interconnect
Rev.
REVision
RMON
Remote network MONitoring
RX
Reception/Receive
SCTP
Stream Control Transmission Protocol
Sof, SOF
Start Of Frame
STD
STanDard
Sync
SYNChronization
Tcp, TCP
Transmission Control Protocol
Tx, TX
Transmission/Transmit
Udp, UDP
User Datagram Protocol
UNIX
UNiplexed Information and Computing System
v
Version
VLAN
Virtual Local Area Network
References
DN-0449
Napatech, Napatech Software Suite, Reference Documentation
DN-1128
Napatech, NT 4GA SmartNICs with Napatech Software Suite, Feature Set N-ANL11, Feature
Description