What determines the respiratory rhythm in the body?

What determines the respiratory rhythm in the body?