DDoS detection based on traffic self-similarity