Detecting the Onset of a Network Layer DoS Attack with a Graph-Based Approach