Modeling the interaction between TCP and Rate Adaptation