Onion routing wraps one message in layers of encryption, one per hop. Garlic routing, the approach used by I2P, wraps several messages together into a single bundle and encrypts that. Each message inside is called a clove. Michael Freedman coined the term in the early 2000s as part of work on the Free Haven project.

Bundling has a couple of uses. Delivery confirmations and routing information can ride inside the same garlic message as the payload, so an observer sees fewer, more uniform packets. It also makes it harder to match a particular message to a particular sender just by watching message counts.

I2P differs from Tor in other ways that matter more day to day. Tunnels are one-way, so your outgoing and incoming traffic take different paths. Every participant routes traffic for others by default. And it's built mainly for services inside the network (eepsites with .i2p addresses) rather than for reaching the regular web.

In practice garlic routing gives similar protection to onion routing against the same kinds of observers. Neither defeats a global adversary doing end-to-end timing correlation. See I2P vs Tor for the practical comparison.