Text this: AS-level model for restraining DoS attacks