A multifractal approach for detecting distributed denial of service attacks