The match-action is composed of multiple sub-control blocks:
- TcpProcessSegment_p
- Processes incoming TCP packet headers. It uses TCP flags to implement a state
machine defined in RFC9293.Note: Only listen, syn_rcvd, established and last_ack states are included.
- TcpServerMain_p
- Implements the main server's process, which in this case, is assigning the incoming packet payload of established connections to metadata.
In the example traffic input provided, only a single client is registered. It sends corresponding packets to establish the connection, sends traffic through to the server when the connection is established and closes the connection. In this example, packets from unregistered clients can also be found, and these are expected to be dropped.