Infrastructure Managers (IMs)
An "'infrastructure manager' means any body or firm responsible in particular for establishing, managing and maintaining railway infrastructure, including traffic management and control-command and signalling; the functions of the infrastructure manager on a network or part of a network may be allocated to different bodies or firms;"
Essentially, an IM is the entity (often a state-owned enterprise like ÖBB-Infrastruktur in Austria or DB InfraGO in Germany) that owns or manages the tracks, signalling, and stations. They act as the "neutral referee" selling capacity (train paths) to railway operators (the transport companies). In some countries, the allocation of capacity is performed by an Allocation Body instead of an Infrastructure Manager (see below).
Source of definition in Article 3 of Directive 2012/34/EU: https://eur-lex.europa.eu/legal-content/EN/TXT/PDF/?uri=CELEX:32012L0034
Allocation Bodies (ABs)
Article 7 of Directive 2012/34/EU states: "Member States may decide that infrastructure charging and path allocation shall be performed by a charging body and/or by an allocation body that are independent in their legal form, organisation and decision-making from any railway undertaking."
Source of definition: https://eur-lex.europa.eu/legal-content/EN/TXT/PDF/?uri=CELEX:32012L0034
