Adaptive frequency control of packet processing engines in telecommunication networks