The size of a pipe is measured according to its: