update tcp_ser so that can pass error rate in param