Research Article

A Novel Protective Framework for Defeating HTTP-Based Denial of Service and Distributed Denial of Service Attacks

Algorithm 1

Service traceback oriented architecture (STBOA) algorithm.
  Begin:
  Declare string variable called Usr
  Declare string variable called Acpt
  Declare string variable called Conn
  Declare string variable called Cokie
  Declare string variable called Rmeth
      Declare an integer variable called X
  set Usr to $hdr‘User-Agent’
  set Acpt to $hdr‘Accept’
  set Conn to $hdr‘Connection’
  set Cokie to $_COOKIE‘cookie’
  set Rmeth to $_SERVER‘REQUEST_METHOD’
  set X to GenX()
      repeat
         set Usr not null, set Acpt not null and set Conn not null
         set resp_code 200
         repeat
           Cokie set not null
                 repeat
                   set Rmeth not null
                   calculate Puzz_Solve()
                   calculate Puzz_verify()
                   calculate GenNonce()
                   calculate VerifyNonce()
                   if Puzz_Solve <> Puzz_verify
                                                            EdgeRouter_Bsn(src_ip)
                    set resp_code 403
                   if GenNonce <> VerifyNonce
                                                            EdgeRouter_Ban(src_ip)
                   set resp_code 403
                 until Rmeth set null
         until Cokie set null
until Usr set null or Acpt set null or Conn set null
  End.