Both consoles provide excellent online capabilities. The Xbox Live service offers far more online capabilities than Sony's Playstation Network. Xbox Live allows you the opportunity to play against other gamers around the globe. And you can do this at any time.
PlayStation Network will not allow you online play unless you are within a certain area of a specific place. This makes playing online less convenient.