This paper analyzes the way payments by content providers to an Internet service provider may affect investment in Internet speed and content quality. It derives payment mechanisms capable of aligning investment incentives between the two groups; in fact, some of them are Pareto-improving also for consumers, who are willing to pay for quality of content. On the other hand, some parameter combinations may require public intervention for Pareto improvement to be attained.