Template for Raw socket transmission with separate packet management and algorithm