What is a DDoS attack and how to stop it?

Lately DDoS attacks have been on the agenda. After the closure of Megaupload, the Anonymous collective lay back by this technique places the US Department of Justice and Universal, among others. But in what really is a DDoS attack? What affects the server, and what effects can it cause? How effective is a DDoS attack as a means of protest? …