NEW YORK (AP) — Level 3 Communications Inc. says it has agreed to buy TW Telecom in a deal worth about $5.6 billion.