Partition key (PKey) configuration for multi-tenancy: Worked Example — NVIDIA InfiniBand Networking (NVIDIA-Certified Professional: AI Networking)

Partition Key (PKey) Configuration for Multi-Tenancy in NVIDIA InfiniBand Networking In NVIDIA InfiniBand environments, Partition Keys (PKeys) are...

Partition Key (PKey) Configuration for Multi-Tenancy in NVIDIA InfiniBand Networking

In NVIDIA InfiniBand environments, Partition Keys (PKeys) are essential for enabling multi-tenancy by isolating traffic between different user groups or tenants on the same physical network. Proper PKey configuration ensures secure and efficient communication within each tenant's partition without interference.

Scenario Overview

Consider a data center hosting two AI research teams, Team Alpha and Team Beta, sharing the same InfiniBand fabric. Each team requires isolated network partitions to prevent cross-tenant traffic and maintain security and performance. We will configure PKeys to create two separate partitions and assign appropriate PKeys to each team's nodes.

Step-by-Step Worked Example

  1. Identify the Number of Partitions NeededWe need two partitions: one for Team Alpha and one for Team Beta.
  2. Assign PKey ValuesPKeys are 16-bit values where the lower 15 bits represent the partition ID and the highest bit indicates membership (full or limited).For example:
    • Team Alpha: PKey = 0x8001 (full membership, partition ID 0x0001)
    • Team Beta: PKey = 0x8002 (full membership, partition ID 0x0002)
  3. Configure PKeys on SwitchesUsing the NVIDIA Unified Fabric Manager (uFM) or switch CLI, add the PKeys to the switch's PKey table:
    • Command example: ibswitchcfg --add-pkey 0x8001
    • Command example: ibswitchcfg --add-pkey 0x8002
  4. Assign PKeys to Host Channel Adapters (HCAs)On each host node, configure the HCA to use the appropriate PKey:
    • Team Alpha nodes: assign PKey 0x8001
    • Team Beta nodes: assign PKey 0x8002
    This is typically done via the ibv_devinfo and ibv_rc_pingpong tools or through configuration files specific to the InfiniBand stack.
  5. Verify Partition MembershipCheck that each node's HCA reports the correct PKey membership:
    • Use ibv_devinfo -v to list PKeys and verify the assigned PKey is present and marked as full membership.
  6. Test Connectivity Within and Across PartitionsPerform connectivity tests:
    • Within the same partition (e.g., Team Alpha node to Team Alpha node): communication should succeed.
    • Across partitions (e.g., Team Alpha node to Team Beta node): communication should fail, confirming isolation.

Worked Example Summary

Problem: Configure PKeys for two tenant teams on a shared NVIDIA InfiniBand fabric to ensure network isolation.

Solution Steps:

This configuration enables secure multi-tenancy on the InfiniBand network, supporting concurrent AI workloads without interference.

For more detailed commands and best practices, refer to the NVIDIA InfiniBand User Guide.

More in this topic

Partition key (PKey) configuration for multi-tenancy — NVIDIA InfiniBand Networking (NVIDIA-Certified Professional: AI Networking)NVIDIA InfiniBand Networking — NVIDIA-Certified Professional: AI NetworkingInitial provisioning and high availability setup: Worked Example — NVIDIA InfiniBand Networking (NVIDIA-Certified Professional: AI Networking)QoS and adaptive routing implementation — NVIDIA InfiniBand Networking (NVIDIA-Certified Professional: AI Networking)Initial provisioning and high availability setup: Common Mistakes — NVIDIA InfiniBand Networking (NVIDIA-Certified Professional: AI Networking)UFM-based monitoring of link status and bandwidth — NVIDIA InfiniBand Networking (NVIDIA-Certified Professional: AI Networking)Partition key (PKey) configuration for multi-tenancy: Common Mistakes — NVIDIA InfiniBand Networking (NVIDIA-Certified Professional: AI Networking)Initial provisioning and high availability setup — NVIDIA InfiniBand Networking (NVIDIA-Certified Professional: AI Networking)Initial provisioning and high availability setup: Quick Reference — NVIDIA InfiniBand Networking (NVIDIA-Certified Professional: AI Networking)Partition key (PKey) configuration for multi-tenancy: Practice Questions — NVIDIA InfiniBand Networking (NVIDIA-Certified Professional: AI Networking)QoS and adaptive routing implementation: Practice Questions — NVIDIA InfiniBand Networking (NVIDIA-Certified Professional: AI Networking)Initial provisioning and high availability setup: Practice Questions — NVIDIA InfiniBand Networking (NVIDIA-Certified Professional: AI Networking)QoS and adaptive routing implementation: Common Mistakes — NVIDIA InfiniBand Networking (NVIDIA-Certified Professional: AI Networking)Partition key (PKey) configuration for multi-tenancy: Quick Reference — NVIDIA InfiniBand Networking (NVIDIA-Certified Professional: AI Networking)QoS and adaptive routing implementation: Worked Example — NVIDIA InfiniBand Networking (NVIDIA-Certified Professional: AI Networking)QoS and adaptive routing implementation: Quick Reference — NVIDIA InfiniBand Networking (NVIDIA-Certified Professional: AI Networking)

Related topics:

#NVIDIA #InfiniBand #AI Networking #PKey #Multi-Tenancy

Ready to test your knowledge?

Put what you've learned into practice with a quick quiz and track your progress.

Test your knowledge →