Debian Codegraph @

Documentation/ibacm.md

raw
1 # The Assistant for InfiniBand Communication Management (IB ACM)
2
3 The IB ACM library implements and provides a framework for name, address, and
4 route resolution services over InfiniBand. The IB ACM provides information
5 needed to establish a connection, but does not implement the CM protocol.
6
7 IB ACM services are used by librdmacm to implement the rdma_resolve_addr,
8 rdma_resolve_route, and rdma_getaddrinfo routines.
9
10 The IB ACM is focused on being scalable and efficient. The current
11 implementation limits network traffic, SA interactions, and centralized
12 services. ACM supports multiple resolution protocols in order to handle
13 different fabric topologies.
14
15 This release is limited in its handling of dynamic changes.
16
17 The IB ACM package is comprised of two components: the ibacm service
18 and a test/configuration utility - ib_acme.
19
20 # Details
21
22 ### ib_acme
23
24 The ib_acme program serves a dual role. It acts as a utility to test
25 ibacm operation and help verify if the ibacm service and selected
26 protocol is usable for a given cluster configuration. Additionally,
27 it automatically generates ibacm configuration files to assist with
28 or eliminate manual setup.
29
30
31 ### acm configuration files
32
33 The ibacm service relies on two configuration files.
34
35 The acm_addr.cfg file contains name and address mappings for each IB
36 <device, port, pkey> endpoint. Although the names in the acm_addr.cfg
37 file can be anything, ib_acme maps the host name and IP addresses to
38 the IB endpoints.
39
40 The acm_opts.cfg file provides a set of configurable options for the
41 ibacm service, such as timeout, number of retries, logging level, etc.
42 ib_acme generates the acm_opts.cfg file using static information. A
43 future enhancement would adjust options based on the current system
44 and cluster size.
45
46 ### ibacm
47
48 The ibacm service is responsible for resolving names and addresses to
49 InfiniBand path information and caching such data. It is implemented as a
50 daemon that execute with administrative privileges.
51
52 The ibacm implements a client interface over TCP sockets, which is
53 abstracted by the librdmacm library. One or more back-end protocols are
54 used by the ibacm service to satisfy user requests. Although the
55 ibacm supports standard SA path record queries on the back-end, it
56 provides an experimental multicast resolution protocol in hope of
57 achieving greater scalability. The latter is not usable on all fabric
58 topologies, specifically ones that may not have reversible paths.
59 Users should use the ib_acme utility to verify that multicast protocol
60 is usable before running other applications.
61
62 Conceptually, the ibacm service implements an ARP like protocol and either
63 uses IB multicast records to construct path record data or queries the
64 SA directly, depending on the selected route protocol. By default, the
65 ibacm services uses and caches SA path record queries.
66
67 Specifically, all IB endpoints join a number of multicast groups.
68 Multicast groups differ based on rates, mtu, sl, etc., and are prioritized.
69 All participating endpoints must be able to communicate on the lowest
70 priority multicast group. The ibacm assigns one or more names/addresses
71 to each IB endpoint using the acm_addr.cfg file. Clients provide source
72 and destination names or addresses as input to the service, and receive
73 as output path record data.
74
75 The service maps a client's source name/address to a local IB endpoint.
76 If a client does not provide a source address, then the ibacm service
77 will select one based on the destination and local routing tables. If the
78 destination name/address is not cached locally, it sends a multicast
79 request out on the lowest priority multicast group on the local endpoint.
80 The request carries a list of multicast groups that the sender can use.
81 The recipient of the request selects the highest priority multicast group
82 that it can use as well and returns that information directly to the sender.
83 The request data is cached by all endpoints that receive the multicast
84 request message. The source endpoint also caches the response and uses
85 the multicast group that was selected to construct or obtain path record
86 data, which is returned to the client.
87
88 The current implementation of the IB ACM has several additional restrictions:
89 - The ibacm is limited in its handling of dynamic changes;
90 the ibacm should be stopped and restarted if a cluster is reconfigured.
91 - Support for IPv6 has not been verified.
92 - The number of addresses that can be assigned to a single endpoint is
93 limited to 4.
94 - The number of multicast groups that an endpoint can support is limited to 2.
95
96 The ibacm contains several internal caches. These include caches for
97 GID and LID destination addresses. These caches can be optionally
98 preloaded. ibacm supports the OpenSM dump_pr plugin "full" PathRecord
99 format which is used to preload these caches. The file format is specified
100 in the ibacm_opts.cfg file via the route_preload setting which should
101 be set to opensm_full_v1 for this file format. Default format is
102 none which does not preload these caches. See dump_pr.notes.txt in dump_pr
103 for more information on the opensm_full_v1 file format and how to configure
104 OpenSM to generate this file.
105
106 Additionally, the name, IPv4, and IPv6 caches can be be preloaded by using
107 the addr_preload option. The default is none which does not preload these
108 caches. To preload these caches, set this option to acm_hosts and
109 configure the addr_data_file appropriately.