Text this: Investigation of application layer DDoS attacks in legacy and software-defined networks