Hi subitshatlk2001,
RoCE and RoCEv2 are described in Infiniband Specification - annex A16 and A17:
https://www.infinibandta.org/ibta-specification/
Courses are also available on the NVIDIA academy which go in depth with examples - recommend reviewing the RoCE A-to-Z course, as well as the Fundamentals of RDMA Programming - linked below:
Thanks, and best regards,
NVIDIA Enterprise Support