RDMA over Converged Ethernet
RDMA over Converged Ethernet (RoCE) or InfiniBand over Ethernet (IBoE)[1] is a network protocol which allows remote direct memory access (RDMA) over an Ethernet network. It does this by encapsulating an InfiniBand (IB) transport packet over Ethernet. There are multiple RoCE versions. RoCE v1 is an Ethernet link layer protocol and hence allows communication between any two hosts in the same Ethernet broadcast domain. RoCE v2 is an internet layer protocol which means that RoCE v2 packets can be routed. Although the RoCE protocol benefits from the characteristics of a converged Ethernet network, the protocol can also be used on a traditional or non-converged Ethernet network.[2][3][4][5]
Background
Network-intensive applications like networked storage or cluster computing need a network infrastructure with a high bandwidth and low latency. The advantages of RDMA over other network application programming interfaces such as Berkeley sockets are lower latency, lower CPU load and higher bandwidth.[6] The RoCE protocol allows lower latencies than its predecessor, the iWARP protocol.[7] There are RoCE HCAs (Host Channel Adapter) with a latency as low as 1.3 microseconds[8][9] while the lowest known iWARP HCA latency in 2011 was 3 microseconds.[10]
RoCE v1
The RoCE v1 protocol is an Ethernet link layer protocol with Ethertype 0x8915.[2] This means that the frame length limits of the Ethernet protocol apply: 1500 bytes for a regular Ethernet frame and 9000 bytes for a jumbo frame.
RoCE v1.5
The RoCE v1.5 is an uncommon, experimental, non-standardized protocol that is based on the IP protocol. RoCE v1.5 uses the IP protocol field to differentiate its traffic from other IP protocols such as TCP and UDP. The value used for the protocol number is unspecified and is left to the deployment to select.
RoCE v2
The RoCE v2 protocol exists on top of either the UDP/IPv4 or the UDP/IPv6 protocol.[3] The UDP destination port number 4791 has been reserved for RoCE v2.[11] Since RoCEv2 packets are routable the RoCE v2 protocol is sometimes called Routable RoCE[12] or RRoCE.[4] Although in general the delivery order of UDP packets is not guaranteed, the RoCEv2 specification requires that packets with the same UDP source port and the same destination address must not be reordered.[4] In addition, RoCEv2 defines a congestion control mechanism that uses the IP ECN bits for marking and CNP[13] frames for the acknowledgment notification.[14] Software support for RoCE v2 is still emerging[when?]. Mellanox OFED 2.3 or later has RoCE v2 support and also Linux Kernel v4.5.[15]
RoCE versus InfiniBand
RoCE defines how to perform RDMA over Ethernet while the InfiniBand architecture specification defines how to perform RDMA over an InfiniBand network. RoCE was expected to bring InfiniBand applications, which are predominantly based on clusters, onto a common Ethernet converged fabric.[16] Others expected that InfiniBand will keep offering a higher bandwidth and lower latency than what is possible over Ethernet.[17]
The technical differences between the RoCE and InfiniBand protocols are:
- Link Level Flow Control: InfiniBand uses a credit-based algorithm to guarantee lossless HCA-to-HCA communication. RoCE runs on top of Ethernet. Implementations may require lossless Ethernet network for reaching to performance characteristics similar to InfiniBand. Lossless Ethernet is typically configured via Ethernet flow control or priority flow control (PFC). Configuring a Data center bridging (DCB) Ethernet network can be more complex than configuring an InfiniBand network.[18]
- Congestion Control: Infiniband defines congestion control based on FECN/BECN marking, RoCEv2 defines a congestion control protocol that uses ECN for marking as implemented in standard switches and CNP frames for acknowledgments.
- InfiniBand switches typically have lower latency than Ethernet switches. Port-to-port latency for one particular type of Ethernet switch is 230 ns[19] versus 100 ns[20] for an InfiniBand switch with the same number of ports.
RoCE versus iWARP
While the RoCE protocols define how to perform RDMA using Ethernet and UDP/IP frames, the iWARP protocol defines how to perform RDMA over a connection-oriented transport like the Transmission Control Protocol (TCP). RoCE v1 is limited to a single Ethernet broadcast domain. RoCE v2 and iWARP packets are routable. The memory requirements of a large number of connections along with TCP's flow and reliability controls lead to scalability and performance issues when using iWARP in large-scale datacenters and for large-scale applications (i.e., large-scale enterprises, cloud computing, web 2.0 applications etc.[21]). Also, multicast is defined in the RoCE specification while the current iWARP specification does not define how to perform multicast RDMA.[22][23][24]
Reliability in iWARP is given by the protocol itself, as TCP is reliable. RoCEv2 on the other hand utilizes UDP which has a far smaller overhead and better performance but does not provide inherent reliability, and therefore reliability must be implemented alongside RoCEv2. One solution is to use converged Ethernet switches to make the local area network reliable. This requires converged Ethernet support on all the switches in the local area network and prevents RoCEv2 packets from traveling through a wide area network such as the internet which is not reliable. Another solution is to add reliability to the RoCE protocol (i.e., reliable RoCE) which adds handshaking to RoCE to provide reliability at the cost of performance.
The question of which protocol is better depends on the vendor. Chelsio recommends and exclusively support iWARP. Mellanox, Xilinx, and Broadcom recommend and exclusively support RoCE/RoCEv2. Intel initially supported iWARP but now supports both iWARP and RoCEv2.[25] Other vendors involved in the network industry provide support for both protocols such as Marvell, Microsoft, Linux and Kazan.[26] Cisco supports both RoCE[27] and their own VIC RDMA protocol.
Both Protocols are standardized with iWARP being the standard for RDMA over TCP defined by the IETF and RoCE being the standard for RDMA over Ethernet defined by the IBTA.[26]
Criticism
Some aspects that could have been defined in the RoCE specification have been left out. These are:
- How to translate between primary RoCE v1 GIDs and Ethernet MAC addresses.[28]
- How to translate between secondary RoCE v1 GIDs and Ethernet MAC addresses. It is not clear whether it is possible to implement secondary GIDs in the RoCE v1 protocol without adding a RoCE-specific address resolution protocol.
- How to implement VLANs for the RoCE v1 protocol. Current RoCE v1 implementations store the VLAN ID in the twelfth and thirteenth byte of the sixteen-byte GID, although the RoCE v1 specification does not mention VLANs at all.[29]
- How to translate between RoCE v1 multicast GIDs and Ethernet MAC addresses. Implementations in 2010 used the same address mapping that has been specified for mapping IPv6 multicast addresses to Ethernet MAC addresses.[30][31]
- How to restrict RoCE v1 multicast traffic to a subset of the ports of an Ethernet switch. As of September 2013, an equivalent of the Multicast Listener Discovery protocol has not yet been defined for RoCE v1.
In addition, any protocol running over IP cannot assume the underlying network has guaranteed ordering, any more than it can assume congestion cannot occur.
It is known that the use of PFC can lead to a network-wide deadlock.[32] [33] [34]
Vendors
Some vendors of RoCE enabled equipment include:
- Mellanox (acquired by Nvidia in 2020,[35] brand retained[36])
- Emulex (acquired by Broadcom)
- Broadcom
- QLogic (acquired by Cavium, rebranded)
- Cavium (acquired by Marvell Technology Group, rebranded)
- Huawei
- ATTO Technology
- Dell Technologies
- Intel
- Bloombase
- Xilinx (via FPGA soft IP core)
- Grovf[37]
References
- ↑ "Roland's Blog » Blog Archive » Two notes on IBoE". https://digitalvampire.org/blog/index.php/2010/12/06/two-notes-on-iboe/.
- ↑ 2.0 2.1 "InfiniBand™ Architecture Specification Release 1.2.1 Annex A16: RoCE". 13 April 2010. https://cw.infinibandta.org/document/dl/7148.
- ↑ 3.0 3.1 "InfiniBand™ Architecture Specification Release 1.2.1 Annex A17: RoCEv2". 2 September 2014. https://cw.infinibandta.org/document/dl/7781.
- ↑ 4.0 4.1 4.2 Ophir Maor (December 2015). "RoCEv2 Considerations". https://community.mellanox.com/docs/DOC-1451.
- ↑ Ophir Maor (December 2015). "RoCE and Storage Solutions". https://community.mellanox.com/docs/DOC-2283.
- ↑ Cameron, Don; Regnier, Greg (2002). Virtual Interface Architecture. Intel Press. ISBN 978-0-9712887-0-6.
- ↑ Feldman, Michael (22 April 2010). "RoCE: An Ethernet-InfiniBand Love Story". http://archive.hpcwire.com/hpcwire/2010-04-22/roce_an_ethernet-infiniband_love_story.html.
- ↑ "End-to-End Lowest Latency Ethernet Solution for Financial Services". March 2011. http://www.mellanox.com/pdf/applications/SB_EthSolutions_financial.pdf.
- ↑ "RoCE vs. iWARP Competitive Analysis Brief". 9 November 2010. http://www.mellanox.com/pdf/whitepapers/WP_RoCE_vs_iWARP.pdf.
- ↑ "Low Latency Server Connectivity With New Terminator 4 (T4) Adapter". 25 May 2011. http://www.chelsio.com/press-room/2164/.
- ↑ Diego Crupnicoff (17 October 2014). "Service Name and Transport Protocol Port Number Registry". https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml?search=IP+Routable+RocE.
- ↑ InfiniBand Trade Association (November 2013). "RoCE Status and Plans". http://www.ietf.org/proceedings/88/slides/slides-88-storm-3.pdf.
- ↑ Ophir Maor (December 2015). "RoCEv2 CNP Packet Format". https://community.mellanox.com/docs/DOC-2351.
- ↑ Ophir Maor (December 2015). "RoCEv2 Congestion Management". https://community.mellanox.com/docs/DOC-2321.
- ↑ "Kernel GIT". January 2016. https://git.kernel.org/cgit/linux/kernel/git/davem/net.git/commit/?id=048ccca8c1c8f583deec3367d7df521bb1f542ae.
- ↑ Merritt, Rick (19 April 2010). "New converged network blends Ethernet, InfiniBand". http://www.eetimes.com/electronics-news/4088625/New-converged-network-blends-Ethernet-Infiniband.
- ↑ Kerner, Sean Michael (2 April 2010). "InfiniBand Moving to Ethernet ?". http://www.enterprisenetworkingplanet.com/nethub/article.php/3879506/InfiniBand-Moving-to-Ethernet.htm.
- ↑ Mellanox (2 June 2014). "Mellanox Releases New Automation Software to Reduce Ethernet Fabric Installation Time from Hours to Minutes". http://ir.mellanox.com/releasedetail.cfm?ReleaseID=851785.
- ↑ "SX1036 - 36-Port 40/56GbE Switch System". http://www.mellanox.com/page/products_dyn?product_family=115&mtag=sx1036.
- ↑ "IS5024 - 36-Port Non-blocking Unmanaged 40Gb/s InfiniBand Switch System". http://www.mellanox.com/page/products_dyn?product_family=91&mtag=is5024.
- ↑ Rashti, Mohammad (2010). "iWARP Redefined: Scalable Connectionless Communication over High-Speed Ethernet". http://post.queensu.ca/~pprl/papers/HiPC-2010.pdf.
- ↑ H. Shah (October 2007). "Direct Data Placement over Reliable Transports". RFC 5041. doi:10.17487/RFC5041. http://tools.ietf.org/html/rfc5041. Retrieved May 4, 2011.
- ↑ C. Bestler (October 2007). "Stream Control Transmission Protocol (SCTP) Direct Data Placement (DDP) Adaptation". RFC 5043. doi:10.17487/RFC5043. http://tools.ietf.org/html/rfc5043. Retrieved May 4, 2011.
- ↑ P. Culley (October 2007). "Marker PDU Aligned Framing for TCP Specification". RFC 5044. doi:10.17487/RFC5044. http://tools.ietf.org/html/rfc5044. Retrieved May 4, 2011.
- ↑ "Intel® Ethernet 800 Series". Intel. May 2021. https://www.intel.com/content/www/us/en/architecture-and-technology/ethernet.html.
- ↑ 26.0 26.1 "RoCE vs. iWARP – The Next "Great Storage Debate"". October 2007. http://sniaesfblog.org/roce-vs-iwarp-the-next-great-storage-debate/.
- ↑ "Benefits of Remote Direct Memory Access Over Routed Fabrics". Cisco. October 2018. https://www.cisco.com/c/dam/en/us/products/collateral/switches/nexus-9000-series-switches/white-paper-c11-741091.pdf.
- ↑ Dreier, Roland (6 December 2010). "Two notes on IBoE". http://digitalvampire.org/blog/index.php/2010/12/06/two-notes-on-iboe.
- ↑ Cohen, Eli (26 August 2010). "IB/core: Add VLAN support for IBoE". https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=af7bd463761c6abd8ca8d831f9cc0ac19f3b7d4b.
- ↑ Cohen, Eli (13 October 2010). "RDMA/cm: Add RDMA CM support for IBoE devices". https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=3c86aa70bf677a31b71c8292e349242e26cbc743.
- ↑ Crawford, M. (1998). RFC 2464 - Transmission of IPv6 Packets over Ethernet Networks. doi:10.17487/RFC2464. http://tools.ietf.org/html/rfc2464#section-7.
- ↑ Hu, Shuihai; Zhu, Yibo; Cheng, Peng; Guo, Chuanxiong; Tan, Kun; Padhye1, Jitendra; Chen, Kai (2016). "Deadlocks in Datacenter Networks: Why Do They Form, and How to Avoid Them". 15th ACM Workshop on Hot Topics in Networks. pp. 92–98. https://www.microsoft.com/en-us/research/wp-content/uploads/2016/10/hotnets16-final67.pdf.
- ↑ Shpiner, Alex; Zahavi, Eitan; Zdornov, Vladimir; Anker, Tal; Kadosh, Matty (2016). "Unlocking credit loop deadlocks". 15th ACM Workshop on Hot Topics in Networks. pp. 85–91. https://www.researchgate.net/publication/309638534.
- ↑ Mittal, Radhika; Shpiner, Alexander; Panda, Aurojit; Zahavi, Eitan; Krishnamurthy, Arvind; Ratnasamy, Sylvia; Shenker, Scott (21 June 2018). "Revisiting Network Support for RDMA". arXiv:1806.08159 [cs.NI].
- ↑ "Nvidia: Mellanox Deal May Not Close Until Early 2020". 14 November 2019. https://www.crn.com/news/components-peripherals/nvidia-mellanox-deal-may-not-close-until-early-2020.
- ↑ "Israel's AI Ecosystem Toasts NVIDIA's Proposed Mellanox Acquisition | NVIDIA Blog". 27 March 2019. https://blogs.nvidia.com/blog/2019/03/27/israel-mellanox-nvidia/.
- ↑ "Grovf Inc. Releases Low Latency RDMA RoCE V2 FPGA IP Core for Smart NICs". Yahoo News. https://www.yahoo.com/now/grovf-inc-releases-low-latency-000000059.html.
Original source: https://en.wikipedia.org/wiki/RDMA over Converged Ethernet.
Read more |