Simulation and optimization of SPIT detection frameworks