Repository navigation
Add RoCEv2 IBTH packet header (ibth_message) to flow model - #496
Open
apratimmukherjee wants to merge 2 commits into
Open
apratimmukherjee wants to merge 2 commits into
apratimmukherjee wants to merge 2 commits into
Conversation
- Add flow/packet-headers/ibth.yaml defining Flow.IbthMessage, a composite InfiniBand Transport Header (BTH + extended headers) for RoCEv2 flows (IBTA Vol 1 Ch 9, UDP dst port 4791) - Select transport via choice: reliable_connection, unreliable_connection, reliable_datagram, unreliable_datagram, congestion_notification; each with its operations (send, write, read request/response, ack, atomic, atomic ack where defined). The BTH OpCode is derived, never set directly - Model extended transport headers as reusable objects: RETH, AETH, AtomicETH, RDETH, DETH, ImmDt, IETH - Add icrc pattern field (32 bit, auto/value/values/increment/decrement); auto means the implementation SHOULD compute the Invariant CRC and falls back to 0 if it cannot - Register ibth_message in Flow.Header (header.yaml, choice uid 26, property uid 27) - Add .venv to .gitignore
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Feature Overview
#TBD)Adds RoCEv2 (RDMA over Converged Ethernet v2) traffic support to the flow packet headers.
A new ibth_message header models the InfiniBand Transport Header (IBTH, IBTA Volume 1 Chapter 9) carried over UDP destination port 4791, so RoCEv2 flows can be built as Ethernet / IPv4 or IPv6 / UDP / IBTH.
The message is composite: the user selects the transport service type (reliable connection, unreliable connection, reliable datagram, unreliable datagram, congestion notification) and the operation (for example send, write, read request/response, ack, atomic), and the implementation derives the BTH OpCode and the required extended transport headers (RETH, AETH, AtomicETH, RDETH, DETH, ImmDt, IETH). The trailing 32-bit Invariant CRC (ICRC) is exposed as an icrc pattern field; by default (auto) the implementation computes it, and it falls back to 0 where it cannot (sufficient when only transit switches that do not inspect the ICRC are in the path).
Feature Details
- New Locations/Nomenclature:
New packet header choice ibth_message (Flow.IbthMessage) added to Flow.Header in flow/packet-headers/header.yaml, defined in flow/packet-headers/ibth.yaml.
Extended transport headers are modeled as reusable objects (Flow.Ibth.Reth, Aeth, AtomicEth, Rdeth, Deth, ImmDt, Ieth). The ICRC is the icrc field on Flow.IbthMessage.
go get github.com/open-traffic-generator/snappi/gosnappi@ibth_roce_pkt_template
Code snippets
Test Specification:
Example test scenario:
Configuration details: Test Port - DUT -Test Port
Configure an IPv6 RoCEv2 RC RDMA WRITE flow (Ethernet / IPv6 / UDP 4791 / IBTH) from device d1 (behind p1) through the transit switch to device d2 (behind p2), with the destination MAC resolved automatically.
Verify the switch forwards the traffic, ECMP-hashes on UDP source port, applies QoS from the DSCP, and can ECN-mark packets. Verify all transmitted packets are received on p2.