Does rate limiting measure packet with or without IP header?

On what level is the packet length calculated for purposes of rate limiting? That is, is the IP header included in the packet size?