add measurement of comparing two-ends packets when having budget control