add loss packets calculation
add timer func api
fix timer
variables for queue control
add info resend