Cross-Chain Message Passing (XCMP) is the protocol designed for parachains in the Polkadot network to exchange messages directly with one another. Under XCMP, a sending parachain places a message in an outgoing queue, and only small proofs of the queue, rather than the full messages, pass through the relay chain, whose validators check that messages are delivered in order. Because all parachains share the relay chain's security, the receiving chain can trust messages without a separate bridge.
XCMP is the transport layer and should be distinguished from XCM, the cross-consensus message format that describes what a message asks the receiving chain to do, such as transferring an asset. While full XCMP was being developed, Polkadot used an interim system called horizontal relay-routed message passing (HRMP), which carries the same kind of messages but stores them on the relay chain, at greater cost. XCMP is one of several approaches to interchain messaging, comparable in purpose to IBC in Cosmos.
Ref 1070001133