Is exhaust pipe size ID or OD?

And mufflers are usually sold with connections that will slip over. In other words, inner diameter.
Exactly. Id and OD. For 2 pipes to fit together, one has to be OD and the other is ID the same size.