Modeling Interactions between Link Layer and Transport Layer in Wireless Networks